@redocly/reference-docs 2.38.2 → 2.39.0
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.
- package/bin/cli/commands/redocly-docs-cli.min.js +6 -6
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +74 -74
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +361 -361
- package/lib/components/console/ServersDropdown/ServersDropdown.js +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -0
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib/redoc-lib/src/services/types.d.ts +2 -0
- package/lib/services/ProStore.d.ts +1 -0
- package/lib/services/ProStore.js +1 -1
- package/lib/services/code-samples/generator.js +1 -1
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -0
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib-esm/redoc-lib/src/services/types.d.ts +2 -0
- package/lib-esm/services/ProStore.d.ts +1 -0
- package/lib-esm/services/ProStore.js +1 -1
- package/lib-esm/services/code-samples/generator.js +1 -1
- package/package.json +1 -1
|
@@ -2,48 +2,48 @@ var Sr=Math.pow;/*!
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.
|
|
5
|
+
* Version: "2.39.0"
|
|
6
6
|
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(p,I,o)=>{p.exports=o(27698)},77766:(p,I,o)=>{p.exports=o(8065)},72119:(p,I,o)=>{p.exports=o(57448)},20116:(p,I,o)=>{p.exports=o(11955)},94473:(p,I,o)=>{p.exports=o(61577)},78580:(p,I,o)=>{p.exports=o(33778)},2991:(p,I,o)=>{p.exports=o(61798)},3649:(p,I,o)=>{p.exports=o(82073)},92762:(p,I,o)=>{p.exports=o(2348)},59340:(p,I,o)=>{p.exports=o(8933)},51942:(p,I,o)=>{p.exports=o(63383)},26295:(p,I,o)=>{p.exports=o(86209)},86902:(p,I,o)=>{p.exports=o(23059)},93476:(p,I,o)=>{p.exports=o(27460)},52424:(p,I,o)=>{p.exports=o(72010)},53592:(p,I,o)=>{p.exports=o(27385)},78363:(p,I,o)=>{p.exports=o(81522)},19996:(p,I,o)=>{p.exports=o(32209)},30699:(p,I,o)=>{p.exports=o(44442)},28834:(p,I,o)=>{p.exports=o(57152)},95683:(p,I,o)=>{p.exports=o(69447)},95238:(p,I,o)=>{p.exports=o(81493)},189:(p,I,o)=>{p.exports=o(76094)},32752:(p,I,o)=>{p.exports=o(70573)},44341:(p,I,o)=>{p.exports=o(73685)},58377:(p,I,o)=>{p.exports=o(27533)},13038:(p,I,o)=>{p.exports=o(39057)},63263:(p,I,o)=>{p.exports=o(84710)},24889:(p,I,o)=>{p.exports=o(74303)},89356:(p,I,o)=>{p.exports=o(93799)},79542:(p,I,o)=>{p.exports=o(55122)},69798:(p,I,o)=>{p.exports=o(29531)},13535:(p,I,o)=>{p.exports=o(10856)},83863:(p,I,o)=>{p.exports=o(31524)},51446:(p,I,o)=>{p.exports=o(86600)},23882:(p,I,o)=>{p.exports=o(9759)},63109:(p,I,o)=>{p.exports=o(35666)},79742:(p,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,b=x.length;h<b;++h)o[h]=x[h],c[x.charCodeAt(h)]=h;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 M=X===k?0:4-X%4;return[X,M]}function g(H){var k=S(H),X=k[0],M=k[1];return(X+M)*3/4-M}function L(H,k,X){return(k+X)*3/4-X}function D(H){var k,X=S(H),M=X[0],C=X[1],V=new v(L(H,M,C)),J=0,q=C>0?M-4:M,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 M,C=[],V=k;V<X;V+=3)M=(H[V]<<16&16711680)+(H[V+1]<<8&65280)+(H[V+2]&255),C.push(B(M));return C.join("")}function _(H){for(var k,X=H.length,M=X%3,C=[],V=16383,J=0,q=X-M;J<q;J+=V)C.push(j(H,J,J+V>q?q:J+V));return M===1?(k=H[X-1],C.push(o[k>>2]+o[k<<4&63]+"==")):M===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:(p,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var h;return x instanceof c?h=x:h=c.from(x.toString(),"binary"),h.toString("base64")}p.exports=v})()},48764:(p,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=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:h(),I.kMaxLength=b();function h(){try{var ge=new Uint8Array(1);return ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ge.foo()===42&&typeof ge.subarray=="function"&&ge.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ge,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ge=new Uint8Array(G),ge.__proto__=g.prototype):(ge===null&&(ge=new g(G)),ge.length=G),ge}function g(ge,G,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ge,G,$);if(typeof ge=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ge)}return L(this,ge,G,$)}g.poolSize=8192,g._augment=function(ge){return ge.__proto__=g.prototype,ge};function L(ge,G,$,Se){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?k(ge,G,$,Se):typeof G=="string"?_(ge,G,$):X(ge,G)}g.from=function(ge,G,$){return L(null,ge,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 D(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be a number');if(ge<0)throw new RangeError('"size" argument must not be negative')}function B(ge,G,$,Se){return D(G),G<=0?S(ge,G):$!==void 0?typeof Se=="string"?S(ge,G).fill($,Se):S(ge,G).fill($):S(ge,G)}g.alloc=function(ge,G,$){return B(null,ge,G,$)};function j(ge,G){if(D(G),ge=S(ge,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<G;++$)ge[$]=0;return ge}g.allocUnsafe=function(ge){return j(null,ge)},g.allocUnsafeSlow=function(ge){return j(null,ge)};function _(ge,G,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(G,$)|0;ge=S(ge,Se);var Ie=ge.write(G,$);return Ie!==Se&&(ge=ge.slice(0,Ie)),ge}function H(ge,G){var $=G.length<0?0:M(G.length)|0;ge=S(ge,$);for(var Se=0;Se<$;Se+=1)ge[Se]=G[Se]&255;return ge}function k(ge,G,$,Se){if(G.byteLength,$<0||G.byteLength<$)throw new RangeError("'offset' is out of bounds");if(G.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?G=new Uint8Array(G):Se===void 0?G=new Uint8Array(G,$):G=new Uint8Array(G,$,Se),g.TYPED_ARRAY_SUPPORT?(ge=G,ge.__proto__=g.prototype):ge=H(ge,G),ge}function X(ge,G){if(g.isBuffer(G)){var $=M(G.length)|0;return ge=S(ge,$),ge.length===0||G.copy(ge,0,0,$),ge}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Dt(G.length)?S(ge,0):H(ge,G);if(G.type==="Buffer"&&x(G.data))return H(ge,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(ge){if(ge>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ge|0}function C(ge){return+ge!=ge&&(ge=0),g.alloc(+ge)}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 Se=G.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(G[Ge]!==$[Ge]){Se=G[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?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 Se;if($===void 0)for($=0,Se=0;Se<G.length;++Se)$+=G[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<G.length;++Se){var Ke=G[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ge,G){if(g.isBuffer(ge))return ge.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ge)||ge instanceof ArrayBuffer))return ge.byteLength;typeof ge!="string"&&(ge=""+ge);var $=ge.length;if($===0)return 0;for(var Se=!1;;)switch(G){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return jt(ge).length;default:if(Se)return Et(ge).length;G=(""+G).toLowerCase(),Se=!0}}g.byteLength=V;function J(ge,G,$){var Se=!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(ge||(ge="utf8");;)switch(ge){case"hex":return rt(this,G,$);case"utf8":case"utf-8":return ae(this,G,$);case"ascii":return Re(this,G,$);case"latin1":case"binary":return Pe(this,G,$);case"base64":return fe(this,G,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,$);default:if(Se)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function q(ge,G,$){var Se=ge[G];ge[G]=ge[$],ge[$]=Se}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?ae(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,$,Se,Ie,Ge){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=G?G.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>G.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===G)return 0;for(var Ke=Ge-Ie,P=Se-$,Me=Math.min(Ke,P),K=this.slice(Ie,Ge),T=G.slice($,Se),O=0;O<Me;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ge,G,$,Se,Ie){if(ge.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ge.length-1),$<0&&($=ge.length+$),$>=ge.length){if(Ie)return-1;$=ge.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof G=="string"&&(G=g.from(G,Se)),g.isBuffer(G))return G.length===0?-1:Y(ge,G,$,Se,Ie);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ge,G,$):Uint8Array.prototype.lastIndexOf.call(ge,G,$):Y(ge,[G],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ge,G,$,Se,Ie){var Ge=1,Ke=ge.length,P=G.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ge.length<2||G.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Me(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Me(ge,K)===Me(G,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,se=0;se<P;se++)if(Me(ge,K+se)!==Me(G,se)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(G,$,Se){return this.indexOf(G,$,Se)!==-1},g.prototype.indexOf=function(G,$,Se){return Q(this,G,$,Se,!0)},g.prototype.lastIndexOf=function(G,$,Se){return Q(this,G,$,Se,!1)};function ce(ge,G,$,Se){$=Number($)||0;var Ie=ge.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=G.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(G.substr(Ke*2,2),16);if(isNaN(P))return Ke;ge[$+Ke]=P}return Ke}function ee(ge,G,$,Se){return St(Et(G,ge.length-$),ge,$,Se)}function ie(ge,G,$,Se){return St(Wt(G),ge,$,Se)}function xe(ge,G,$,Se){return ie(ge,G,$,Se)}function we(ge,G,$,Se){return St(jt(G),ge,$,Se)}function he(ge,G,$,Se){return St(Ut(G,ge.length-$),ge,$,Se)}g.prototype.write=function(G,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),G.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,G,$,Se);case"utf8":case"utf-8":return ee(this,G,$,Se);case"ascii":return ie(this,G,$,Se);case"latin1":case"binary":return xe(this,G,$,Se);case"base64":return we(this,G,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,G,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(ge,G,$){return G===0&&$===ge.length?c.fromByteArray(ge):c.fromByteArray(ge.slice(G,$))}function ae(ge,G,$){$=Math.min(ge.length,$);for(var Se=[],Ie=G;Ie<$;){var Ge=ge[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Me,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Me=ge[Ie+1],(Me&192)==128&&(O=(Ge&31)<<6|Me&63,O>127&&(Ke=O));break;case 3:Me=ge[Ie+1],K=ge[Ie+2],(Me&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Me&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Me=ge[Ie+1],K=ge[Ie+2],T=ge[Ie+3],(Me&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Me&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ge){var G=ge.length;if(G<=Fe)return String.fromCharCode.apply(String,ge);for(var $="",Se=0;Se<G;)$+=String.fromCharCode.apply(String,ge.slice(Se,Se+=Fe));return $}function Re(ge,G,$){var Se="";$=Math.min(ge.length,$);for(var Ie=G;Ie<$;++Ie)Se+=String.fromCharCode(ge[Ie]&127);return Se}function Pe(ge,G,$){var Se="";$=Math.min(ge.length,$);for(var Ie=G;Ie<$;++Ie)Se+=String.fromCharCode(ge[Ie]);return Se}function rt(ge,G,$){var Se=ge.length;(!G||G<0)&&(G=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=G;Ge<$;++Ge)Ie+=Ft(ge[Ge]);return Ie}function Qe(ge,G,$){for(var Se=ge.slice(G,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(G,$){var Se=this.length;G=~~G,$=$===void 0?Se:~~$,G<0?(G+=Se,G<0&&(G=0)):G>Se&&(G=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<G&&($=G);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(G,$),Ie.__proto__=g.prototype;else{var Ge=$-G;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+G]}return Ie};function Je(ge,G,$){if(ge%1!=0||ge<0)throw new RangeError("offset is not uint");if(ge+G>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,$,Se){G=G|0,$=$|0,Se||Je(G,$,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(G,$,Se){G=G|0,$=$|0,Se||Je(G,$,this.length);for(var Ie=this[G+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[G+--$]*Ge;return Ie},g.prototype.readUInt8=function(G,$){return $||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,$){return $||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,$){return $||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,$){return $||Je(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,$){return $||Je(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,$,Se){G=G|0,$=$|0,Se||Je(G,$,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(G,$,Se){G=G|0,$=$|0,Se||Je(G,$,this.length);for(var Ie=$,Ge=1,Ke=this[G+--Ie];Ie>0&&(Ge*=256);)Ke+=this[G+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(G,$){return $||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,$){$||Je(G,2,this.length);var Se=this[G]|this[G+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(G,$){$||Je(G,2,this.length);var Se=this[G+1]|this[G]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(G,$){return $||Je(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,$){return $||Je(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,$){return $||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,$){return $||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,$){return $||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,$){return $||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ct(ge,G,$,Se,Ie,Ge){if(!g.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ie||G<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ge.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,$,Se,Ie){if(G=+G,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ct(this,G,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=G&255;++P<Se&&(Ke*=256);)this[$+P]=G/Ke&255;return $+Se},g.prototype.writeUIntBE=function(G,$,Se,Ie){if(G=+G,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ct(this,G,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=G&255;--Ke>=0&&(P*=256);)this[$+Ke]=G/P&255;return $+Se},g.prototype.writeUInt8=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[$]=G&255,$+1};function vt(ge,G,$,Se){G<0&&(G=65535+G+1);for(var Ie=0,Ge=Math.min(ge.length-$,2);Ie<Ge;++Ie)ge[$+Ie]=(G&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):vt(this,G,$,!0),$+2},g.prototype.writeUInt16BE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):vt(this,G,$,!1),$+2};function wt(ge,G,$,Se){G<0&&(G=4294967295+G+1);for(var Ie=0,Ge=Math.min(ge.length-$,4);Ie<Ge;++Ie)ge[$+Ie]=G>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=G>>>24,this[$+2]=G>>>16,this[$+1]=G>>>8,this[$]=G&255):wt(this,G,$,!0),$+4},g.prototype.writeUInt32BE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255):wt(this,G,$,!1),$+4},g.prototype.writeIntLE=function(G,$,Se,Ie){if(G=+G,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ct(this,G,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Me=0;for(this[$]=G&255;++Ke<Se&&(P*=256);)G<0&&Me===0&&this[$+Ke-1]!==0&&(Me=1),this[$+Ke]=(G/P>>0)-Me&255;return $+Se},g.prototype.writeIntBE=function(G,$,Se,Ie){if(G=+G,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ct(this,G,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Me=0;for(this[$+Ke]=G&255;--Ke>=0&&(P*=256);)G<0&&Me===0&&this[$+Ke+1]!==0&&(Me=1),this[$+Ke]=(G/P>>0)-Me&255;return $+Se},g.prototype.writeInt8=function(G,$,Se){return G=+G,$=$|0,Se||ct(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,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):vt(this,G,$,!0),$+2},g.prototype.writeInt16BE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):vt(this,G,$,!1),$+2},g.prototype.writeInt32LE=function(G,$,Se){return G=+G,$=$|0,Se||ct(this,G,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8,this[$+2]=G>>>16,this[$+3]=G>>>24):wt(this,G,$,!0),$+4},g.prototype.writeInt32BE=function(G,$,Se){return G=+G,$=$|0,Se||ct(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):wt(this,G,$,!1),$+4};function nt(ge,G,$,Se,Ie,Ge){if($+Se>ge.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ft(ge,G,$,Se,Ie){return Ie||nt(ge,G,$,4,34028234663852886e22,-34028234663852886e22),v.write(ge,G,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(G,$,Se){return ft(this,G,$,!0,Se)},g.prototype.writeFloatBE=function(G,$,Se){return ft(this,G,$,!1,Se)};function mt(ge,G,$,Se,Ie){return Ie||nt(ge,G,$,8,17976931348623157e292,-17976931348623157e292),v.write(ge,G,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(G,$,Se){return mt(this,G,$,!0,Se)},g.prototype.writeDoubleBE=function(G,$,Se){return mt(this,G,$,!1,Se)},g.prototype.copy=function(G,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=G.length&&($=G.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||G.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),G.length-$<Ie-Se&&(Ie=G.length-$+Se);var Ge=Ie-Se,Ke;if(this===G&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)G[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)G[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(G,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(G,$,Se,Ie){if(typeof G=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),G.length===1){var Ge=G.charCodeAt(0);Ge<256&&(G=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof G=="number"&&(G=G&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,G||(G=0);var Ke;if(typeof G=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=G;else{var P=g.isBuffer(G)?G:Et(new g(G,Ie).toString()),Me=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Me]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function ht(ge){if(ge=Rt(ge).replace(xt,""),ge.length<2)return"";for(;ge.length%4!=0;)ge=ge+"=";return ge}function Rt(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")}function Ft(ge){return ge<16?"0"+ge.toString(16):ge.toString(16)}function Et(ge,G){G=G||1/0;for(var $,Se=ge.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ge.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(G-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(G-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(G-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(G-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((G-=1)<0)break;Ge.push($)}else if($<2048){if((G-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((G-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((G-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Wt(ge){for(var G=[],$=0;$<ge.length;++$)G.push(ge.charCodeAt($)&255);return G}function Ut(ge,G){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ge.length&&!((G-=2)<0);++Ke)$=ge.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function jt(ge){return c.toByteArray(ht(ge))}function St(ge,G,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=G.length||Ie>=ge.length);++Ie)G[Ie+$]=ge[Ie];return Ie}function Dt(ge){return ge!==ge}},21924:(p,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));p.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(p,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),h=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(h,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}p.exports=function(j){var _=b(c,h,arguments);if(S&&g){var H=S(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var D=function(){return b(c,x,arguments)};g?g(p.exports,"apply",{value:D}):p.exports.apply=D},82801:(p,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(S(h(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function h(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:D,Enter:B};function S(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(M){return function(C){return H(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function D(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=h(C,"pairs"),J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var Y=J[q].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&h(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
-
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;M.indentLine(ee,null,!0),M.indentLine(ee+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),q=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(q=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}M.setSelections(V,q)}function _(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function H(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=h(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=h(V,"closeBefore"),Y=h(V,"triples"),ce=J.charAt(q+1)==C,ee=M.listSelections(),ie=q%2==0,xe,we=0;we<ee.length;we++){var he=ee[we],fe=he.head,ae,Fe=M.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!he.empty())ae="surround";else if((ce||!ie)&&Fe==C)ce&&X(M,fe)?ae="both":Y.indexOf(C)>=0&&M.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?ae="skipThree":ae="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;ae="addFour"}else if(ce){var Le=fe.ch==0?" ":M.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))ae="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))ae="both";else return c.Pass;if(!xe)xe=ae;else if(xe!=ae)return c.Pass}var Re=q%2?J.charAt(q-1):C,Pe=q%2?C:J.charAt(q+1);M.operation(function(){if(xe=="skip")j(M,1);else if(xe=="skipThree")j(M,3);else if(xe=="surround"){for(var rt=M.getSelections(),Qe=0;Qe<rt.length;Qe++)rt[Qe]=Re+rt[Qe]+Pe;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]=_(rt[Qe]);M.setSelections(rt)}else xe=="both"?(M.replaceSelection(Re+Pe,null),M.triggerElectric(Re+Pe),j(M,-1)):xe=="addFour"&&(M.replaceSelection(Re+Re+Re+Re,"before"),j(M,1))})}function k(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(p,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,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,_,H){var k=j.getLineHandle(_.line),X=_.ch-1,M=H&&H.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!M&&X>=0&&C.test(k.text.charAt(X))&&h[k.text.charAt(X)]||C.test(k.text.charAt(X+1))&&h[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 M=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 Y=j.getLine(Q);if(!!Y){var ce=H>0?0:Y.length-1,ee=H>0?Y.length:-1;if(!(Y.length>M))for(Q==_.line&&(ce=_.ch-(H<0?1:0));ce!=ee;ce+=H){var ie=Y.charAt(ce);if(J.test(ie)&&(k===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(k||""))){var xe=h[ie];if(xe&&xe.charAt(1)==">"==H>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}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,M=[],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";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=k&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(_)setTimeout(Q,800);else return Q}}function D(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",D),j.off("focus",D),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",D),j.on("focus",D),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:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.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 h(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(M,C){if(this.cm=M,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;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;h.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,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=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<M.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(M){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,M)})}},finishUpdate:function(M,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=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.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(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function D(M,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=M.options.customKeys,Q=q?{}:V;function Y(ie,xe){var we;typeof xe!="string"?we=function(he){return xe(he,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ie]=we}if(q)for(var ce in q)q.hasOwnProperty(ce)&&Y(ce,q[ce]);var ee=M.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,Y=this.hints=q.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=M.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var xe=Y.appendChild(q.createElement("li")),we=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);we.className!=null&&(he=we.className+" "+he),xe.className=he,ie==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ie,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(q.createTextNode(we.displayText||L(we))),xe.hintId=ie}var fe=M.options.container||q.body,ae=J.cursorCoords(M.options.alignWithWord?C.from:null),Fe=ae.left,Le=ae.bottom,Re=!0,Pe=0,rt=0;if(fe!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Je=Qe?fe:fe.offsetParent,ct=Je.getBoundingClientRect(),vt=q.body.getBoundingClientRect();Pe=ct.left-vt.left-Je.scrollLeft,rt=ct.top-vt.top-Je.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var wt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ft=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,mt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var ht=ft.bottom-nt;if(ht>0){var Rt=ft.bottom-ft.top,Ft=ae.top-(ae.bottom-ft.top);if(Ft-Rt>0)Y.style.top=(Le=ae.top-Rt-rt)+"px",Re=!1;else if(Rt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=ae.bottom-ft.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(ae=J.cursorCoords(Et),Y.style.left=(Fe=ae.left-Pe)+"px",ft=Y.getBoundingClientRect())}}var Wt=ft.right-wt;if(mt&&(Wt+=J.display.nativeBarWidth),Wt>0&&(ft.right-ft.left>wt&&(Y.style.width=wt-5+"px",Wt-=ft.right-ft.left-wt),Y.style.left=(Fe=ae.left-Wt-Pe)+"px"),mt)for(var Ut=Y.firstChild;Ut;Ut=Ut.nextSibling)Ut.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(M,{moveFocus:function(Dt,ge){V.changeActive(V.selectedHint+Dt,ge)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var jt;J.on("blur",this.onBlur=function(){jt=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(jt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ge=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var G=Le+xt.top-Dt.top,$=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Re||($+=Y.offsetHeight),$<=ge.top||$>=ge.bottom)return M.close();Y.style.top=G+"px",Y.style.left=Fe+xt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ge=B(Y,Dt.target||Dt.srcElement);ge&&ge.hintId!=null&&(V.changeActive(ge.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ge=B(Y,Dt.target||Dt.srcElement);ge&&ge.hintId!=null&&(V.changeActive(ge.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.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 M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.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 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,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],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 M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.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 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,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(M,C,V,J){if(M.async)M(C,J,V);else{var q=M(C,V);q&&q.then?q.then(J):J(q)}}function k(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,Y,ce){var ee=_(Q,V);function ie(xe){if(xe==ee.length)return Y(null);H(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ie(xe+1)})}ie(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:k}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),q,Q=c.Pos(V.line,J.start),Y=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 ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,q.length)==q&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),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:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function h(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function xe(we){if(!ie.parentNode)return c.off(document,"mousemove",xe);ie.style.top=Math.max(0,we.clientY-ie.offsetHeight-5)+"px",ie.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var xe=h(Y,ce,ee);function we(){c.off(ie,"mouseout",we),xe&&(S(xe),xe=null)}var he=setInterval(function(){if(xe)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(he)},400);c.on(ie,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function _(Y,ce,ee,ie,xe){var we=document.createElement("div"),he=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=we.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(he,"mouseover",function(fe){g(Y,fe,ce,he)}),we}function H(Y,ce){return Y=="error"?Y:ce}function k(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],xe=ie.from.line;(ce[xe]||(ce[xe]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function M(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function xe(){ie=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,he){Y.off("change",xe),ee.waitingFor==ie&&(he&&we instanceof c&&(we=he),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)M(Y,ie);else{var xe=ie(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var xe=k(ce),we=0;we<xe.length;++we){var he=xe[we];if(!!he){var fe=[];he=he.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var ae=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Re=he[Le],Pe=Re.severity;Pe||(Pe="error"),ae=H(ae,Pe),ie.formatAnnotation&&(Re=ie.formatAnnotation(Re)),ee.hasGutter&&Fe.appendChild(X(Re)),Re.to&&ee.marked.push(Y.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Re}))}ee.hasGutter&&Y.setGutterMarker(we,v,_(Y,Fe,ae,xe[we].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(we,"wrap",x+ae)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function q(Y,ce,ee){for(var ie=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var he=ce[we];xe.appendChild(X(he))}g(Y,ee,xe,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),xe=(ie.left+ie.right)/2,we=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],ae=0;ae<he.length;++ae){var Fe=he[ae].__annotation;Fe&&fe.push(Fe)}fe.length&&q(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),xe=!1,we=0;we<ie.length;++we)ie[we]==v&&(xe=!0);var he=Y.state.lint=new L(Y,ce,xe);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(p,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 h(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=h(V,"g");for(var q=J.line,Q=J.ch,Y=C.lastLine();q<=Y;q++,Q=0){V.lastIndex=Q;var ce=C.getLine(q),ee=V.exec(ce);if(ee)return{from:v(q,ee.index),to:v(q,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=h(V,"gm");for(var q,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);q=q==null?ie:q+`
|
|
13
|
-
`+
|
|
14
|
-
`),
|
|
15
|
-
`),fe=J.line+we.length-1,
|
|
16
|
-
`+q}Q*=2;var we=L(q,V,Y);if(we){var
|
|
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:h(),I.kMaxLength=b();function h(){try{var ge=new Uint8Array(1);return ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ge.foo()===42&&typeof ge.subarray=="function"&&ge.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ge,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ge=new Uint8Array(G),ge.__proto__=g.prototype):(ge===null&&(ge=new g(G)),ge.length=G),ge}function g(ge,G,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ge,G,$);if(typeof ge=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ge)}return L(this,ge,G,$)}g.poolSize=8192,g._augment=function(ge){return ge.__proto__=g.prototype,ge};function L(ge,G,$,Ae){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?k(ge,G,$,Ae):typeof G=="string"?_(ge,G,$):X(ge,G)}g.from=function(ge,G,$){return L(null,ge,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 D(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be a number');if(ge<0)throw new RangeError('"size" argument must not be negative')}function B(ge,G,$,Ae){return D(G),G<=0?S(ge,G):$!==void 0?typeof Ae=="string"?S(ge,G).fill($,Ae):S(ge,G).fill($):S(ge,G)}g.alloc=function(ge,G,$){return B(null,ge,G,$)};function j(ge,G){if(D(G),ge=S(ge,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<G;++$)ge[$]=0;return ge}g.allocUnsafe=function(ge){return j(null,ge)},g.allocUnsafeSlow=function(ge){return j(null,ge)};function _(ge,G,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Ae=V(G,$)|0;ge=S(ge,Ae);var Ie=ge.write(G,$);return Ie!==Ae&&(ge=ge.slice(0,Ie)),ge}function H(ge,G){var $=G.length<0?0:M(G.length)|0;ge=S(ge,$);for(var Ae=0;Ae<$;Ae+=1)ge[Ae]=G[Ae]&255;return ge}function k(ge,G,$,Ae){if(G.byteLength,$<0||G.byteLength<$)throw new RangeError("'offset' is out of bounds");if(G.byteLength<$+(Ae||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Ae===void 0?G=new Uint8Array(G):Ae===void 0?G=new Uint8Array(G,$):G=new Uint8Array(G,$,Ae),g.TYPED_ARRAY_SUPPORT?(ge=G,ge.__proto__=g.prototype):ge=H(ge,G),ge}function X(ge,G){if(g.isBuffer(G)){var $=M(G.length)|0;return ge=S(ge,$),ge.length===0||G.copy(ge,0,0,$),ge}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Dt(G.length)?S(ge,0):H(ge,G);if(G.type==="Buffer"&&x(G.data))return H(ge,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(ge){if(ge>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ge|0}function C(ge){return+ge!=ge&&(ge=0),g.alloc(+ge)}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 Ae=G.length,Ie=$.length,Ge=0,Ke=Math.min(Ae,Ie);Ge<Ke;++Ge)if(G[Ge]!==$[Ge]){Ae=G[Ge],Ie=$[Ge];break}return Ae<Ie?-1:Ie<Ae?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 Ae;if($===void 0)for($=0,Ae=0;Ae<G.length;++Ae)$+=G[Ae].length;var Ie=g.allocUnsafe($),Ge=0;for(Ae=0;Ae<G.length;++Ae){var Ke=G[Ae];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ge,G){if(g.isBuffer(ge))return ge.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ge)||ge instanceof ArrayBuffer))return ge.byteLength;typeof ge!="string"&&(ge=""+ge);var $=ge.length;if($===0)return 0;for(var Ae=!1;;)switch(G){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return jt(ge).length;default:if(Ae)return Et(ge).length;G=(""+G).toLowerCase(),Ae=!0}}g.byteLength=V;function J(ge,G,$){var Ae=!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(ge||(ge="utf8");;)switch(ge){case"hex":return rt(this,G,$);case"utf8":case"utf-8":return se(this,G,$);case"ascii":return Re(this,G,$);case"latin1":case"binary":return Pe(this,G,$);case"base64":return fe(this,G,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,$);default:if(Ae)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),Ae=!0}}g.prototype._isBuffer=!0;function q(ge,G,$){var Ae=ge[G];ge[G]=ge[$],ge[$]=Ae}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?se(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,$,Ae,Ie,Ge){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Ae===void 0&&(Ae=G?G.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Ae>G.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Ae)return 0;if(Ie>=Ge)return-1;if($>=Ae)return 1;if($>>>=0,Ae>>>=0,Ie>>>=0,Ge>>>=0,this===G)return 0;for(var Ke=Ge-Ie,P=Ae-$,Me=Math.min(Ke,P),K=this.slice(Ie,Ge),T=G.slice($,Ae),O=0;O<Me;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ge,G,$,Ae,Ie){if(ge.length===0)return-1;if(typeof $=="string"?(Ae=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ge.length-1),$<0&&($=ge.length+$),$>=ge.length){if(Ie)return-1;$=ge.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof G=="string"&&(G=g.from(G,Ae)),g.isBuffer(G))return G.length===0?-1:Y(ge,G,$,Ae,Ie);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ge,G,$):Uint8Array.prototype.lastIndexOf.call(ge,G,$):Y(ge,[G],$,Ae,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ge,G,$,Ae,Ie){var Ge=1,Ke=ge.length,P=G.length;if(Ae!==void 0&&(Ae=String(Ae).toLowerCase(),Ae==="ucs2"||Ae==="ucs-2"||Ae==="utf16le"||Ae==="utf-16le")){if(ge.length<2||G.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Me(N,te){return Ge===1?N[te]:N.readUInt16BE(te*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Me(ge,K)===Me(G,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,le=0;le<P;le++)if(Me(ge,K+le)!==Me(G,le)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(G,$,Ae){return this.indexOf(G,$,Ae)!==-1},g.prototype.indexOf=function(G,$,Ae){return Q(this,G,$,Ae,!0)},g.prototype.lastIndexOf=function(G,$,Ae){return Q(this,G,$,Ae,!1)};function ce(ge,G,$,Ae){$=Number($)||0;var Ie=ge.length-$;Ae?(Ae=Number(Ae),Ae>Ie&&(Ae=Ie)):Ae=Ie;var Ge=G.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Ae>Ge/2&&(Ae=Ge/2);for(var Ke=0;Ke<Ae;++Ke){var P=parseInt(G.substr(Ke*2,2),16);if(isNaN(P))return Ke;ge[$+Ke]=P}return Ke}function ee(ge,G,$,Ae){return St(Et(G,ge.length-$),ge,$,Ae)}function ne(ge,G,$,Ae){return St(Wt(G),ge,$,Ae)}function xe(ge,G,$,Ae){return ne(ge,G,$,Ae)}function we(ge,G,$,Ae){return St(jt(G),ge,$,Ae)}function ve(ge,G,$,Ae){return St(Ut(G,ge.length-$),ge,$,Ae)}g.prototype.write=function(G,$,Ae,Ie){if($===void 0)Ie="utf8",Ae=this.length,$=0;else if(Ae===void 0&&typeof $=="string")Ie=$,Ae=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Ae)?(Ae=Ae|0,Ie===void 0&&(Ie="utf8")):(Ie=Ae,Ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Ae===void 0||Ae>Ge)&&(Ae=Ge),G.length>0&&(Ae<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,G,$,Ae);case"utf8":case"utf-8":return ee(this,G,$,Ae);case"ascii":return ne(this,G,$,Ae);case"latin1":case"binary":return xe(this,G,$,Ae);case"base64":return we(this,G,$,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,G,$,Ae);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(ge,G,$){return G===0&&$===ge.length?c.fromByteArray(ge):c.fromByteArray(ge.slice(G,$))}function se(ge,G,$){$=Math.min(ge.length,$);for(var Ae=[],Ie=G;Ie<$;){var Ge=ge[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Me,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Me=ge[Ie+1],(Me&192)==128&&(O=(Ge&31)<<6|Me&63,O>127&&(Ke=O));break;case 3:Me=ge[Ie+1],K=ge[Ie+2],(Me&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Me&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Me=ge[Ie+1],K=ge[Ie+2],T=ge[Ie+3],(Me&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Me&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Ae.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Ae.push(Ke),Ie+=P}return Le(Ae)}var Fe=4096;function Le(ge){var G=ge.length;if(G<=Fe)return String.fromCharCode.apply(String,ge);for(var $="",Ae=0;Ae<G;)$+=String.fromCharCode.apply(String,ge.slice(Ae,Ae+=Fe));return $}function Re(ge,G,$){var Ae="";$=Math.min(ge.length,$);for(var Ie=G;Ie<$;++Ie)Ae+=String.fromCharCode(ge[Ie]&127);return Ae}function Pe(ge,G,$){var Ae="";$=Math.min(ge.length,$);for(var Ie=G;Ie<$;++Ie)Ae+=String.fromCharCode(ge[Ie]);return Ae}function rt(ge,G,$){var Ae=ge.length;(!G||G<0)&&(G=0),(!$||$<0||$>Ae)&&($=Ae);for(var Ie="",Ge=G;Ge<$;++Ge)Ie+=Ft(ge[Ge]);return Ie}function Qe(ge,G,$){for(var Ae=ge.slice(G,$),Ie="",Ge=0;Ge<Ae.length;Ge+=2)Ie+=String.fromCharCode(Ae[Ge]+Ae[Ge+1]*256);return Ie}g.prototype.slice=function(G,$){var Ae=this.length;G=~~G,$=$===void 0?Ae:~~$,G<0?(G+=Ae,G<0&&(G=0)):G>Ae&&(G=Ae),$<0?($+=Ae,$<0&&($=0)):$>Ae&&($=Ae),$<G&&($=G);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(G,$),Ie.__proto__=g.prototype;else{var Ge=$-G;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+G]}return Ie};function Je(ge,G,$){if(ge%1!=0||ge<0)throw new RangeError("offset is not uint");if(ge+G>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,$,Ae){G=G|0,$=$|0,Ae||Je(G,$,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(G,$,Ae){G=G|0,$=$|0,Ae||Je(G,$,this.length);for(var Ie=this[G+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[G+--$]*Ge;return Ie},g.prototype.readUInt8=function(G,$){return $||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,$){return $||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,$){return $||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,$){return $||Je(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,$){return $||Je(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,$,Ae){G=G|0,$=$|0,Ae||Je(G,$,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(G,$,Ae){G=G|0,$=$|0,Ae||Je(G,$,this.length);for(var Ie=$,Ge=1,Ke=this[G+--Ie];Ie>0&&(Ge*=256);)Ke+=this[G+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(G,$){return $||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,$){$||Je(G,2,this.length);var Ae=this[G]|this[G+1]<<8;return Ae&32768?Ae|4294901760:Ae},g.prototype.readInt16BE=function(G,$){$||Je(G,2,this.length);var Ae=this[G+1]|this[G]<<8;return Ae&32768?Ae|4294901760:Ae},g.prototype.readInt32LE=function(G,$){return $||Je(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,$){return $||Je(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,$){return $||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,$){return $||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,$){return $||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,$){return $||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ct(ge,G,$,Ae,Ie,Ge){if(!g.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ie||G<Ge)throw new RangeError('"value" argument is out of bounds');if($+Ae>ge.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,$,Ae,Ie){if(G=+G,$=$|0,Ae=Ae|0,!Ie){var Ge=Math.pow(2,8*Ae)-1;ct(this,G,$,Ae,Ge,0)}var Ke=1,P=0;for(this[$]=G&255;++P<Ae&&(Ke*=256);)this[$+P]=G/Ke&255;return $+Ae},g.prototype.writeUIntBE=function(G,$,Ae,Ie){if(G=+G,$=$|0,Ae=Ae|0,!Ie){var Ge=Math.pow(2,8*Ae)-1;ct(this,G,$,Ae,Ge,0)}var Ke=Ae-1,P=1;for(this[$+Ke]=G&255;--Ke>=0&&(P*=256);)this[$+Ke]=G/P&255;return $+Ae},g.prototype.writeUInt8=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[$]=G&255,$+1};function vt(ge,G,$,Ae){G<0&&(G=65535+G+1);for(var Ie=0,Ge=Math.min(ge.length-$,2);Ie<Ge;++Ie)ge[$+Ie]=(G&255<<8*(Ae?Ie:1-Ie))>>>(Ae?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):vt(this,G,$,!0),$+2},g.prototype.writeUInt16BE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):vt(this,G,$,!1),$+2};function wt(ge,G,$,Ae){G<0&&(G=4294967295+G+1);for(var Ie=0,Ge=Math.min(ge.length-$,4);Ie<Ge;++Ie)ge[$+Ie]=G>>>(Ae?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=G>>>24,this[$+2]=G>>>16,this[$+1]=G>>>8,this[$]=G&255):wt(this,G,$,!0),$+4},g.prototype.writeUInt32BE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>24,this[$+1]=G>>>16,this[$+2]=G>>>8,this[$+3]=G&255):wt(this,G,$,!1),$+4},g.prototype.writeIntLE=function(G,$,Ae,Ie){if(G=+G,$=$|0,!Ie){var Ge=Math.pow(2,8*Ae-1);ct(this,G,$,Ae,Ge-1,-Ge)}var Ke=0,P=1,Me=0;for(this[$]=G&255;++Ke<Ae&&(P*=256);)G<0&&Me===0&&this[$+Ke-1]!==0&&(Me=1),this[$+Ke]=(G/P>>0)-Me&255;return $+Ae},g.prototype.writeIntBE=function(G,$,Ae,Ie){if(G=+G,$=$|0,!Ie){var Ge=Math.pow(2,8*Ae-1);ct(this,G,$,Ae,Ge-1,-Ge)}var Ke=Ae-1,P=1,Me=0;for(this[$+Ke]=G&255;--Ke>=0&&(P*=256);)G<0&&Me===0&&this[$+Ke+1]!==0&&(Me=1),this[$+Ke]=(G/P>>0)-Me&255;return $+Ae},g.prototype.writeInt8=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(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,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8):vt(this,G,$,!0),$+2},g.prototype.writeInt16BE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=G>>>8,this[$+1]=G&255):vt(this,G,$,!1),$+2},g.prototype.writeInt32LE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(this,G,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=G&255,this[$+1]=G>>>8,this[$+2]=G>>>16,this[$+3]=G>>>24):wt(this,G,$,!0),$+4},g.prototype.writeInt32BE=function(G,$,Ae){return G=+G,$=$|0,Ae||ct(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):wt(this,G,$,!1),$+4};function nt(ge,G,$,Ae,Ie,Ge){if($+Ae>ge.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ft(ge,G,$,Ae,Ie){return Ie||nt(ge,G,$,4,34028234663852886e22,-34028234663852886e22),v.write(ge,G,$,Ae,23,4),$+4}g.prototype.writeFloatLE=function(G,$,Ae){return ft(this,G,$,!0,Ae)},g.prototype.writeFloatBE=function(G,$,Ae){return ft(this,G,$,!1,Ae)};function mt(ge,G,$,Ae,Ie){return Ie||nt(ge,G,$,8,17976931348623157e292,-17976931348623157e292),v.write(ge,G,$,Ae,52,8),$+8}g.prototype.writeDoubleLE=function(G,$,Ae){return mt(this,G,$,!0,Ae)},g.prototype.writeDoubleBE=function(G,$,Ae){return mt(this,G,$,!1,Ae)},g.prototype.copy=function(G,$,Ae,Ie){if(Ae||(Ae=0),!Ie&&Ie!==0&&(Ie=this.length),$>=G.length&&($=G.length),$||($=0),Ie>0&&Ie<Ae&&(Ie=Ae),Ie===Ae||G.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Ae<0||Ae>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),G.length-$<Ie-Ae&&(Ie=G.length-$+Ae);var Ge=Ie-Ae,Ke;if(this===G&&Ae<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)G[Ke+$]=this[Ke+Ae];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)G[Ke+$]=this[Ke+Ae];else Uint8Array.prototype.set.call(G,this.subarray(Ae,Ae+Ge),$);return Ge},g.prototype.fill=function(G,$,Ae,Ie){if(typeof G=="string"){if(typeof $=="string"?(Ie=$,$=0,Ae=this.length):typeof Ae=="string"&&(Ie=Ae,Ae=this.length),G.length===1){var Ge=G.charCodeAt(0);Ge<256&&(G=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof G=="number"&&(G=G&255);if($<0||this.length<$||this.length<Ae)throw new RangeError("Out of range index");if(Ae<=$)return this;$=$>>>0,Ae=Ae===void 0?this.length:Ae>>>0,G||(G=0);var Ke;if(typeof G=="number")for(Ke=$;Ke<Ae;++Ke)this[Ke]=G;else{var P=g.isBuffer(G)?G:Et(new g(G,Ie).toString()),Me=P.length;for(Ke=0;Ke<Ae-$;++Ke)this[Ke+$]=P[Ke%Me]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function ht(ge){if(ge=Rt(ge).replace(xt,""),ge.length<2)return"";for(;ge.length%4!=0;)ge=ge+"=";return ge}function Rt(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")}function Ft(ge){return ge<16?"0"+ge.toString(16):ge.toString(16)}function Et(ge,G){G=G||1/0;for(var $,Ae=ge.length,Ie=null,Ge=[],Ke=0;Ke<Ae;++Ke){if($=ge.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(G-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Ae){(G-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(G-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(G-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((G-=1)<0)break;Ge.push($)}else if($<2048){if((G-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((G-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((G-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Wt(ge){for(var G=[],$=0;$<ge.length;++$)G.push(ge.charCodeAt($)&255);return G}function Ut(ge,G){for(var $,Ae,Ie,Ge=[],Ke=0;Ke<ge.length&&!((G-=2)<0);++Ke)$=ge.charCodeAt(Ke),Ae=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Ae);return Ge}function jt(ge){return c.toByteArray(ht(ge))}function St(ge,G,$,Ae){for(var Ie=0;Ie<Ae&&!(Ie+$>=G.length||Ie>=ge.length);++Ie)G[Ie+$]=ge[Ie];return Ie}function Dt(ge){return ge!==ge}},21924:(p,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));p.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(p,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),h=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(h,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}p.exports=function(j){var _=b(c,h,arguments);if(S&&g){var H=S(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var D=function(){return b(c,x,arguments)};g?g(p.exports,"apply",{value:D}):p.exports.apply=D},82801:(p,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(S(h(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function h(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:D,Enter:B};function S(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(M){return function(C){return H(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function D(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=h(C,"pairs"),J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var Y=J[q].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&h(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=k(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
+
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;M.indentLine(ee,null,!0),M.indentLine(ee+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),q=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(q=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}M.setSelections(V,q)}function _(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function H(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=h(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=h(V,"closeBefore"),Y=h(V,"triples"),ce=J.charAt(q+1)==C,ee=M.listSelections(),ne=q%2==0,xe,we=0;we<ee.length;we++){var ve=ee[we],fe=ve.head,se,Fe=M.getRange(fe,x(fe.line,fe.ch+1));if(ne&&!ve.empty())se="surround";else if((ce||!ne)&&Fe==C)ce&&X(M,fe)?se="both":Y.indexOf(C)>=0&&M.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?se="skipThree":se="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;se="addFour"}else if(ce){var Le=fe.ch==0?" ":M.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))se="both";else return c.Pass}else if(ne&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))se="both";else return c.Pass;if(!xe)xe=se;else if(xe!=se)return c.Pass}var Re=q%2?J.charAt(q-1):C,Pe=q%2?C:J.charAt(q+1);M.operation(function(){if(xe=="skip")j(M,1);else if(xe=="skipThree")j(M,3);else if(xe=="surround"){for(var rt=M.getSelections(),Qe=0;Qe<rt.length;Qe++)rt[Qe]=Re+rt[Qe]+Pe;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]=_(rt[Qe]);M.setSelections(rt)}else xe=="both"?(M.replaceSelection(Re+Pe,null),M.triggerElectric(Re+Pe),j(M,-1)):xe=="addFour"&&(M.replaceSelection(Re+Re+Re+Re,"before"),j(M,1))})}function k(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(p,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,h={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,_,H){var k=j.getLineHandle(_.line),X=_.ch-1,M=H&&H.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!M&&X>=0&&C.test(k.text.charAt(X))&&h[k.text.charAt(X)]||C.test(k.text.charAt(X+1))&&h[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 M=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 Y=j.getLine(Q);if(!!Y){var ce=H>0?0:Y.length-1,ee=H>0?Y.length:-1;if(!(Y.length>M))for(Q==_.line&&(ce=_.ch-(H<0?1:0));ce!=ee;ce+=H){var ne=Y.charAt(ce);if(J.test(ne)&&(k===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(k||""))){var xe=h[ne];if(xe&&xe.charAt(1)==">"==H>0)V.push(ne);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ne}}}}}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,M=[],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";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=k&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(_)setTimeout(Q,800);else return Q}}function D(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",D),j.off("focus",D),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",D),j.on("focus",D),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:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.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 h(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function h(M,C){if(this.cm=M,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;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;h.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,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=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<M.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(M){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,M)})}},finishUpdate:function(M,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=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.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(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function D(M,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=M.options.customKeys,Q=q?{}:V;function Y(ne,xe){var we;typeof xe!="string"?we=function(ve){return xe(ve,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ne]=we}if(q)for(var ce in q)q.hasOwnProperty(ce)&&Y(ce,q[ce]);var ee=M.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,Y=this.hints=q.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=M.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ne=0;ne<ee.length;++ne){var xe=Y.appendChild(q.createElement("li")),we=ee[ne],ve=v+(ne!=this.selectedHint?"":" "+x);we.className!=null&&(ve=we.className+" "+ve),xe.className=ve,ne==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ne,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(q.createTextNode(we.displayText||L(we))),xe.hintId=ne}var fe=M.options.container||q.body,se=J.cursorCoords(M.options.alignWithWord?C.from:null),Fe=se.left,Le=se.bottom,Re=!0,Pe=0,rt=0;if(fe!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Je=Qe?fe:fe.offsetParent,ct=Je.getBoundingClientRect(),vt=q.body.getBoundingClientRect();Pe=ct.left-vt.left-Je.scrollLeft,rt=ct.top-vt.top-Je.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var wt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ft=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,mt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var ht=ft.bottom-nt;if(ht>0){var Rt=ft.bottom-ft.top,Ft=se.top-(se.bottom-ft.top);if(Ft-Rt>0)Y.style.top=(Le=se.top-Rt-rt)+"px",Re=!1;else if(Rt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=se.bottom-ft.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(se=J.cursorCoords(Et),Y.style.left=(Fe=se.left-Pe)+"px",ft=Y.getBoundingClientRect())}}var Wt=ft.right-wt;if(mt&&(Wt+=J.display.nativeBarWidth),Wt>0&&(ft.right-ft.left>wt&&(Y.style.width=wt-5+"px",Wt-=ft.right-ft.left-wt),Y.style.left=(Fe=se.left-Wt-Pe)+"px"),mt)for(var Ut=Y.firstChild;Ut;Ut=Ut.nextSibling)Ut.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(M,{moveFocus:function(Dt,ge){V.changeActive(V.selectedHint+Dt,ge)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var jt;J.on("blur",this.onBlur=function(){jt=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(jt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ge=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var G=Le+xt.top-Dt.top,$=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Re||($+=Y.offsetHeight),$<=ge.top||$>=ge.bottom)return M.close();Y.style.top=G+"px",Y.style.left=Fe+xt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ge=B(Y,Dt.target||Dt.srcElement);ge&&ge.hintId!=null&&(V.changeActive(ge.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ge=B(Y,Dt.target||Dt.srcElement);ge&&ge.hintId!=null&&(V.changeActive(ge.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.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 M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.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 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,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],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 M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.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 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,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(M,C,V,J){if(M.async)M(C,J,V);else{var q=M(C,V);q&&q.then?q.then(J):J(q)}}function k(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,Y,ce){var ee=_(Q,V);function ne(xe){if(xe==ee.length)return Y(null);H(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ne(xe+1)})}ne(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:k}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),q,Q=c.Pos(V.line,J.start),Y=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 ce=[],ee=0;ee<C.words.length;ee++){var ne=C.words[ee];ne.slice(0,q.length)==q&&ce.push(ne)}if(ce.length)return{list:ce,from:Q,to:Y}}),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:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function h(Y,ce,ee){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ne.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function xe(we){if(!ne.parentNode)return c.off(document,"mousemove",xe);ne.style.top=Math.max(0,we.clientY-ne.offsetHeight-5)+"px",ne.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ne){var xe=h(Y,ce,ee);function we(){c.off(ne,"mouseout",we),xe&&(S(xe),xe=null)}var ve=setInterval(function(){if(xe)for(var fe=ne;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(ve)},400);c.on(ne,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ne in D)this.options[ne]=D[ne];for(var ne in ce)D.hasOwnProperty(ne)?ce[ne]!=null&&(this.options[ne]=ce[ne]):ce.options||(this.linterOptions[ne]=ce[ne]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function _(Y,ce,ee,ne,xe){var we=document.createElement("div"),ve=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ne&&(ve=we.appendChild(document.createElement("div")),ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(ve,"mouseover",function(fe){g(Y,fe,ce,ve)}),we}function H(Y,ce){return Y=="error"?Y:ce}function k(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ne=Y[ee],xe=ne.from.line;(ce[xe]||(ce[xe]=[])).push(ne)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function M(Y,ce){var ee=Y.state.lint,ne=++ee.waitingFor;function xe(){ne=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,ve){Y.off("change",xe),ee.waitingFor==ne&&(ve&&we instanceof c&&(we=ve),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ne=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ne)if(ee.async||ne.async)M(Y,ne);else{var xe=ne(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ne=ee.options;B(Y);for(var xe=k(ce),we=0;we<xe.length;++we){var ve=xe[we];if(!!ve){var fe=[];ve=ve.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var se=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<ve.length;++Le){var Re=ve[Le],Pe=Re.severity;Pe||(Pe="error"),se=H(se,Pe),ne.formatAnnotation&&(Re=ne.formatAnnotation(Re)),ee.hasGutter&&Fe.appendChild(X(Re)),Re.to&&ee.marked.push(Y.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Re}))}ee.hasGutter&&Y.setGutterMarker(we,v,_(Y,Fe,se,xe[we].length>1,ne.tooltips)),ne.highlightLines&&Y.addLineClass(we,"wrap",x+se)}}ne.onUpdateLinting&&ne.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function q(Y,ce,ee){for(var ne=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var ve=ce[we];xe.appendChild(X(ve))}g(Y,ee,xe,ne)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ne=ee.getBoundingClientRect(),xe=(ne.left+ne.right)/2,we=(ne.top+ne.bottom)/2,ve=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],se=0;se<ve.length;++se){var Fe=ve[se].__annotation;Fe&&fe.push(Fe)}fe.length&&q(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ne=Y.getOption("gutters"),xe=!1,we=0;we<ne.length;++we)ne[we]==v&&(xe=!0);var ve=Y.state.lint=new L(Y,ce,xe);ve.options.lintOnChange&&Y.on("change",J),ve.options.tooltips!=!1&&ve.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",ve.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(p,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 h(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=h(V,"g");for(var q=J.line,Q=J.ch,Y=C.lastLine();q<=Y;q++,Q=0){V.lastIndex=Q;var ce=C.getLine(q),ee=V.exec(ce);if(ee)return{from:v(q,ee.index),to:v(q,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=h(V,"gm");for(var q,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ne=C.getLine(Y++);q=q==null?ne:q+`
|
|
13
|
+
`+ne}Q=Q*2,V.lastIndex=J.ch;var xe=V.exec(q);if(xe){var we=q.slice(0,xe.index).split(`
|
|
14
|
+
`),ve=xe[0].split(`
|
|
15
|
+
`),fe=J.line+we.length-1,se=we[we.length-1].length;return{from:v(fe,se),to:v(fe+ve.length-1,ve.length==1?se+ve[0].length:ve[ve.length-1].length),match:xe}}}}function L(C,V,J){for(var q,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ce=Y.index+Y[0].length;if(ce>C.length-J)break;(!q||ce>q.index+q[0].length)&&(q=Y),Q=Y.index+1}return q}function D(C,V,J){V=h(V,"g");for(var q=J.line,Q=J.ch,Y=C.firstLine();q>=Y;q--,Q=-1){var ce=C.getLine(q),ee=L(ce,V,Q<0?0:ce.length-Q);if(ee)return{from:v(q,ee.index),to:v(q,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=h(V,"gm");for(var q,Q=1,Y=C.getLine(J.line).length-J.ch,ce=J.line,ee=C.firstLine();ce>=ee;){for(var ne=0;ne<Q&&ce>=ee;ne++){var xe=C.getLine(ce--);q=q==null?xe:xe+`
|
|
16
|
+
`+q}Q*=2;var we=L(q,V,Y);if(we){var ve=q.slice(0,we.index).split(`
|
|
17
17
|
`),fe=we[0].split(`
|
|
18
|
-
`),ae=ce+he.length,Fe=he[he.length-1].length;return{from:v(ae,Fe),to:v(ae+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:we}}}}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,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=q(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function k(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var he=we.indexOf(Y[0]);if(he==-1)continue e;var J=H(xe,we,he,Q)+ee;return{from:v(ce,H(xe,we,he,Q)+ee),to:v(ce,H(xe,we,he+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var ae=1;ae<Y.length-1;ae++)if(Q(C.getLine(ce+ae))!=Y[ae])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Re=Y[Y.length-1];if(Le.slice(0,Re.length)!=Re)continue e;return{from:v(ce,H(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,H(Fe,Le,Re.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var he=we.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,H(xe,we,he,Q)),to:v(ce,H(xe,we,he+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var ae=1,J=ce-Y.length+1;ae<Y.length-1;ae++)if(Q(C.getLine(J+ae))!=Y[ae])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,H(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,H(xe,we,fe.length,Q))}}}}function M(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(Y,ce){return(Y?X:k)(C,V,ce,Q)}):(V=h(V,"gm"),!q||q.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}M.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 M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(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(p){(function(I,o){p.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),h=/Edge\/(\d+)/.exec(I),b=v||x||h,S=b&&(v?document.documentMode||6:+(h||x)[1]),g=!h&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!h&&/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),M=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)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=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 ie(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function xe(e,n){return ie(e).appendChild(n)}function we(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 m=0;m<n.length;++m)f.appendChild(n[m]);return f}function he(e,n,u,l){var f=we(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=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 ae(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 Fe(){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 Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Re(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 Pe=function(e){e.select()};k?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=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 m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return F+(n-m);F+=U-m,F+=u-F%u,m=U+1}}var ct=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ct.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ct.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 vt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var wt=50,nt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function ht(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Rt=[""];function Ft(e){for(;Rt.length<=e;)Rt.push(Et(Rt)+" ");return Rt[e]}function Et(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 jt(){}function St(e,n){var u;return Object.create?u=Object.create(e):(jt.prototype=e,u=new jt),n&&Qe(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ge(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&ge(e)?!0:n.test(e):ge(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\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 Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ge(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(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",m),f=!0)}f||l(n,u,"ltr")}var Me=null;function K(e,n,u){var l;Me=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Me=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Me=f)}return l!=null?l:Me}var T=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]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],$e=0;$e<De;++$e)ke.push(u(Z.charCodeAt($e)));for(var tt=0,st=Ce;tt<De;++tt){var pt=ke[tt];pt=="m"?ke[tt]=st:st=pt}for(var yt=0,dt=Ce;yt<De;++yt){var bt=ke[yt];bt=="1"&&dt=="r"?ke[yt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(ke[yt]="R"))}for(var It=1,_e=ke[0];It<De-1;++It){var Mt=ke[It];Mt=="+"&&_e=="1"&&ke[It+1]=="1"?ke[It]="1":Mt==","&&_e==ke[It+1]&&(_e=="1"||_e=="n")&&(ke[It]=_e),_e=Mt}for(var ir=0;ir<De;++ir){var br=ke[ir];if(br==",")ke[ir]="N";else if(br=="%"){var qt=void 0;for(qt=ir+1;qt<De&&ke[qt]=="%";++qt);for(var Tn=ir&&ke[ir-1]=="!"||qt<De&&ke[qt]=="1"?"1":"N",mn=ir;mn<qt;++mn)ke[mn]=Tn;ir=qt-1}}for(var Lr=0,dn=Ce;Lr<De;++Lr){var _r=ke[Lr];dn=="L"&&_r=="1"?ke[Lr]="L":m.test(_r)&&(dn=_r)}for(var Ur=0;Ur<De;++Ur)if(f.test(ke[Ur])){var Tr=void 0;for(Tr=Ur+1;Tr<De&&f.test(ke[Tr]);++Tr);for(var vr=(Ur?ke[Ur-1]:Ce)=="L",pn=(Tr<De?ke[Tr]:Ce)=="L",po=vr==pn?vr?"L":"R":Ce,bi=Ur;bi<Tr;++bi)ke[bi]=po;Ur=Tr-1}for(var on=[],li,jr=0;jr<De;)if(F.test(ke[jr])){var Dl=jr;for(++jr;jr<De&&F.test(ke[jr]);++jr);on.push(new z(0,Dl,jr))}else{var Mn=jr,Vr=on.length,Lo=be=="rtl"?1:0;for(++jr;jr<De&&ke[jr]!="L";++jr);for(var Wr=Mn;Wr<jr;)if(U.test(ke[Wr])){Mn<Wr&&(on.splice(Vr,0,new z(1,Mn,Wr)),Vr+=Lo);var Do=Wr;for(++Wr;Wr<jr&&U.test(ke[Wr]);++Wr);on.splice(Vr,0,new z(2,Do,Wr)),Vr+=Lo,Mn=Wr}else++Wr;Mn<jr&&on.splice(Vr,0,new z(1,Mn,jr))}return be=="ltr"&&(on[0].level==1&&(li=Z.match(/^\s+/))&&(on[0].from=li[0].length,on.unshift(new z(0,0,li[0].length))),Et(on).level==1&&(li=Z.match(/\s+$/))&&(Et(on).to-=li[0].length,on.push(new z(0,De-li[0].length,De)))),be=="rtl"?on.reverse():on}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var se=[],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]||se).concat(u)}};function re(e,n){return e._handlers&&e._handlers[n]||se}function de(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 m=vt(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function oe(e,n){var u=re(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),At(n)||n.codemirrorIgnore}function Ee(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)vt(u,n[l])==-1&&u.push(n[l])}function je(e,n){return re(e,n).length>0}function Ve(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Nt(e){Xe(e),gt(e)}function Tt(e){return e.target||e.srcElement}function bn(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 zr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Fr;function Ci(e){if(Fr==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Fr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Fr?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Qr;function $i(e){if(Qr!=null)return Qr;var n=xe(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Qr=l.right-u.right<3}var zn=`
|
|
18
|
+
`),se=ce+ve.length,Fe=ve[ve.length-1].length;return{from:v(se,Fe),to:v(se+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:we}}}}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,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=q(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function k(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ne=C.lastLine()+1-Y.length;ce<=ne;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var ve=we.indexOf(Y[0]);if(ve==-1)continue e;var J=H(xe,we,ve,Q)+ee;return{from:v(ce,H(xe,we,ve,Q)+ee),to:v(ce,H(xe,we,ve+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var se=1;se<Y.length-1;se++)if(Q(C.getLine(ce+se))!=Y[se])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Re=Y[Y.length-1];if(Le.slice(0,Re.length)!=Re)continue e;return{from:v(ce,H(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,H(Fe,Le,Re.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ne=C.firstLine()-1+Y.length;ce>=ne;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var ve=we.lastIndexOf(Y[0]);if(ve==-1)continue e;return{from:v(ce,H(xe,we,ve,Q)),to:v(ce,H(xe,we,ve+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var se=1,J=ce-Y.length+1;se<Y.length-1;se++)if(Q(C.getLine(J+se))!=Y[se])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,H(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,H(xe,we,fe.length,Q))}}}}function M(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(Y,ce){return(Y?X:k)(C,V,ce,Q)}):(V=h(V,"gm"),!q||q.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}M.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 M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(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(p){(function(I,o){p.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),h=/Edge\/(\d+)/.exec(I),b=v||x||h,S=b&&(v?document.documentMode||6:+(h||x)[1]),g=!h&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!h&&/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),M=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)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=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 ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function xe(e,n){return ne(e).appendChild(n)}function we(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 m=0;m<n.length;++m)f.appendChild(n[m]);return f}function ve(e,n,u,l){var f=we(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=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 se(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 Fe(){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 Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Re(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 Pe=function(e){e.select()};k?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=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 m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return F+(n-m);F+=U-m,F+=u-F%u,m=U+1}}var ct=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ct.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ct.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 vt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var wt=50,nt={toString:function(){return"CodeMirror.Pass"}},ft={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function ht(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Rt=[""];function Ft(e){for(;Rt.length<=e;)Rt.push(Et(Rt)+" ");return Rt[e]}function Et(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 jt(){}function St(e,n){var u;return Object.create?u=Object.create(e):(jt.prototype=e,u=new jt),n&&Qe(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ge(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&ge(e)?!0:n.test(e):ge(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Ae=/[\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 Ie(e){return e.charCodeAt(0)>=768&&Ae.test(e)}function Ge(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(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",m),f=!0)}f||l(n,u,"ltr")}var Me=null;function K(e,n,u){var l;Me=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Me=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Me=f)}return l!=null?l:Me}var T=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]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],$e=0;$e<De;++$e)ke.push(u(Z.charCodeAt($e)));for(var tt=0,st=Ce;tt<De;++tt){var pt=ke[tt];pt=="m"?ke[tt]=st:st=pt}for(var yt=0,dt=Ce;yt<De;++yt){var bt=ke[yt];bt=="1"&&dt=="r"?ke[yt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(ke[yt]="R"))}for(var It=1,_e=ke[0];It<De-1;++It){var Mt=ke[It];Mt=="+"&&_e=="1"&&ke[It+1]=="1"?ke[It]="1":Mt==","&&_e==ke[It+1]&&(_e=="1"||_e=="n")&&(ke[It]=_e),_e=Mt}for(var ir=0;ir<De;++ir){var br=ke[ir];if(br==",")ke[ir]="N";else if(br=="%"){var qt=void 0;for(qt=ir+1;qt<De&&ke[qt]=="%";++qt);for(var Tn=ir&&ke[ir-1]=="!"||qt<De&&ke[qt]=="1"?"1":"N",mn=ir;mn<qt;++mn)ke[mn]=Tn;ir=qt-1}}for(var Lr=0,dn=Ce;Lr<De;++Lr){var _r=ke[Lr];dn=="L"&&_r=="1"?ke[Lr]="L":m.test(_r)&&(dn=_r)}for(var Ur=0;Ur<De;++Ur)if(f.test(ke[Ur])){var Tr=void 0;for(Tr=Ur+1;Tr<De&&f.test(ke[Tr]);++Tr);for(var vr=(Ur?ke[Ur-1]:Ce)=="L",pn=(Tr<De?ke[Tr]:Ce)=="L",po=vr==pn?vr?"L":"R":Ce,bi=Ur;bi<Tr;++bi)ke[bi]=po;Ur=Tr-1}for(var on=[],li,jr=0;jr<De;)if(F.test(ke[jr])){var Dl=jr;for(++jr;jr<De&&F.test(ke[jr]);++jr);on.push(new z(0,Dl,jr))}else{var Mn=jr,Vr=on.length,Lo=be=="rtl"?1:0;for(++jr;jr<De&&ke[jr]!="L";++jr);for(var Wr=Mn;Wr<jr;)if(U.test(ke[Wr])){Mn<Wr&&(on.splice(Vr,0,new z(1,Mn,Wr)),Vr+=Lo);var Do=Wr;for(++Wr;Wr<jr&&U.test(ke[Wr]);++Wr);on.splice(Vr,0,new z(2,Do,Wr)),Vr+=Lo,Mn=Wr}else++Wr;Mn<jr&&on.splice(Vr,0,new z(1,Mn,jr))}return be=="ltr"&&(on[0].level==1&&(li=Z.match(/^\s+/))&&(on[0].from=li[0].length,on.unshift(new z(0,0,li[0].length))),Et(on).level==1&&(li=Z.match(/\s+$/))&&(Et(on).to-=li[0].length,on.push(new z(0,De-li[0].length,De)))),be=="rtl"?on.reverse():on}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var le=[],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]||le).concat(u)}};function te(e,n){return e._handlers&&e._handlers[n]||le}function de(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 m=vt(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function ie(e,n){var u=te(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}}),ie(e,u||n.type,e,n),At(n)||n.codemirrorIgnore}function Ee(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)vt(u,n[l])==-1&&u.push(n[l])}function je(e,n){return te(e,n).length>0}function Ve(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Nt(e){Xe(e),gt(e)}function Tt(e){return e.target||e.srcElement}function bn(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 zr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Fr;function Ci(e){if(Fr==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Fr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Fr?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Qr;function $i(e){if(Qr!=null)return Qr;var n=xe(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:Qr=l.right-u.right<3}var zn=`
|
|
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 m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),n+=F+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},wn=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},Ln=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Zr=null;function Oi(e){if(Zr!=null)return Zr;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return Zr=Math.abs(u.left-l.left)>1}var Ti={},ln={};function Sn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ti[e]=n}function Gn(e,n){ln[e]=n}function $n(e){if(typeof e=="string"&&ln.hasOwnProperty(e))e=ln[e];else if(e&&typeof e.name=="string"&&ln.hasOwnProperty(e.name)){var n=ln[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $n("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $n("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function An(e,n){n=$n(n);var u=Ti[n.name];if(!u)return An(e,"text/plain");var l=u(e,n);if(ei.hasOwnProperty(n.name)){var f=ei[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}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 ei={};function Pi(e,n){var u=ei.hasOwnProperty(e)?ei[e]:ei[e]={};Qe(n,u)}function Gr(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 qr(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 ti(e,n,u){return e.startState?e.startState(n,u):!0}var pr=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};pr.prototype.eol=function(){return this.pos>=this.string.length},pr.prototype.sol=function(){return this.pos==this.lineStart},pr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pr.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},pr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},pr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},pr.prototype.skipToEnd=function(){this.pos=this.string.length},pr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},pr.prototype.backUp=function(e){this.pos-=e},pr.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)},pr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},pr.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 m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},pr.prototype.current=function(){return this.string.slice(this.start,this.pos)},pr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},pr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},pr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(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],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function fi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Ii(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function Fn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function _t(e){if(e.parent==null)return null;for(var n=e.parent,u=vt(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 Kn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,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 ri(e,n){return n>=e.first&&n<e.first+e.size}function mo(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function ot(e,n,u){if(u===void 0&&(u=null),!(this instanceof ot))return new ot(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 ci(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return ot(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function lt(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function ut(e,n){if(n.line<e.first)return ot(e.first,0);var u=e.first+e.size-1;return n.line>u?ot(u,Ot(e,u).text.length):Kt(n,Ot(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?ot(e.line,n):u<0?ot(e.line,0):e}function Qt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=ut(e,n[l]);return u}var Rr=function(e,n){this.state=e,this.lookAhead=n},kr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},kr.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}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(e,n,u){return n instanceof Rr?new kr(e,Gr(e.mode,n.state),u,n.lookAhead):new kr(e,Gr(e.mode,n),u)},kr.prototype.save=function(e){var n=e!==!1?Gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rr(n,this.maxLookAhead):n};function er(e,n,u,l){var f=[e.state.modeGen],m={};cu(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,De=0;u.state=!0,cu(e,n.text,be.mode,u,function(ke,$e){for(var tt=Ce;De<ke;){var st=f[Ce];st>ke&&f.splice(Ce,1,ke,f[Ce+1],st),Ce+=2,De=Math.min(ke,st)}if(!!$e)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+$e),Ce=tt+2;else for(;tt<Ce;tt+=2){var pt=f[tt+1];f[tt+1]=(pt?pt+" ":"")+"overlay "+$e}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function uu(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=un(e,_t(n)),f=n.text.length>e.options.maxHighlightLength&&Gr(e.doc.mode,l.state),m=er(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.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 un(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new kr(l,!0,n);var m=_f(e,n,u),F=m>l.first&&Ot(l,m-1).stateAfter,U=F?kr.fromSaved(l,F,m):new kr(l,ti(l.mode),m);return l.iter(m,n,function(z){ks(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 ks(e,n,u,l){var f=e.doc.mode,m=new pr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&Ma(f,u.state);!m.eol();)Ms(f,m,u.state),m.start=m.pos}function Ma(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=qr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Ms(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=qr(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ls=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function Ds(e,n,u,l){var f=e.doc,m=f.mode,F;n=ut(f,n);var U=Ot(f,n.line),z=un(e,n.line,u),Z=new pr(U.text,e.options.tabSize,z),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=Ms(m,Z,z.state),l&&be.push(new Ls(Z,F,Gr(f.mode,z.state)));return l?be:new Ls(Z,F,z.state)}function fu(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 cu(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,be=new pr(n,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(n==""&&fu(Ma(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,F&&ks(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=fu(Ms(u,be,l.state,De),m),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;z<be.start;)z=Math.min(be.start,z+5e3),f(z,Z);Z=Ce}be.start=be.pos}for(;z<be.pos;){var $e=Math.min(be.pos,z+5e3);f($e,Z),z=$e}}function _f(e,n,u){for(var l,f,m=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=m.first)return m.first;var z=Ot(m,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Rr?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Je(z.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}return f}function ec(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=Ot(e,l).stateAfter;if(f&&(!(f instanceof Rr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var tc=!1,Fi=!1;function rc(){tc=!0}function nc(){Fi=!0}function La(e,n,u){this.marker=e,this.from=n,this.to=u}function zo(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function ic(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Yd(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 Jd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var z=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new La(F,m.from,z?null:m.to))}}return l}function Xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var z=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new La(F,z?null:m.from-n,m.to==null?null:m.to-n))}}return l}function du(e,n){if(n.full)return null;var u=ri(e,n.from.line)&&Ot(e,n.from.line).markedSpans,l=ri(e,n.to.line)&&Ot(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Lt(n.from,n.to)==0,U=Jd(u,f,F),z=Xd(l,m,F),Z=n.text.length==1,be=Et(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=zo(z,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+be):De.to=f}}if(z)for(var $e=0;$e<z.length;++$e){var tt=z[$e];if(tt.to!=null&&(tt.to+=be),tt.from==null){var st=zo(U,tt.marker);st||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=pu(U)),z&&z!=U&&(z=pu(z));var pt=[U];if(!Z){var yt=n.text.length-2,dt;if(yt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new La(U[bt].marker,null,null));for(var It=0;It<yt;++It)pt.push(dt);pt.push(z)}return pt}function pu(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 hu(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var $e=0;$e<ke.markedSpans.length;++$e){var tt=ke.markedSpans[$e].marker;tt.readOnly&&(!l||vt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var F=l[m],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 be=[z,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),z+=be.length-3}}return f}function vu(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function oc(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ns(e){return e.inclusiveLeft?-1:0}function Bs(e){return e.inclusiveRight?1:0}function gu(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||Ns(e)-Ns(n);if(m)return-m;var F=Lt(l.to,f.to)||Bs(e)-Bs(n);return F||n.id-e.id}function Go(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||gu(l,f.marker)<0)&&(l=f.marker);return l}function Us(e){return Go(e,!0)}function Ki(e){return Go(e,!1)}function ac(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||gu(l,m.marker)<0)&&(l=m.marker)}return l}function Da(e,n,u,l,f){var m=Ot(e,n),F=Fi&&m.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),be=Lt(Z.from,u)||Ns(z.marker)-Ns(f),Ce=Lt(Z.to,l)||Bs(z.marker)-Bs(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Yn(e){for(var n;n=Us(e);)e=n.find(-1,!0).line;return e}function yu(e){for(var n;n=Ki(e);)e=n.find(1,!0).line;return e}function sc(e){for(var n,u;n=Ki(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function $o(e,n){var u=Ot(e,n),l=Yn(u);return u==l?n:_t(l)}function js(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!di(e,u))return n;for(;l=Ki(u);)u=l.find(1,!0).line;return _t(u)+1}function di(e,n){var u=Fi&&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&&hr(e,n,l))return!0}}}function hr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return hr(e,l.line,zo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&hr(e,n,f))return!0}function pi(e){e=Yn(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 m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;n+=U.height}return n}function Yi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=Us(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ki(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Vs(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Yi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Yi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Ji=function(e,n,u){this.text=e,oc(this,n),this.height=u?u(this):1};Ji.prototype.lineNo=function(){return _t(this)},Ve(Ji);function Ri(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),vu(e),oc(e,u);var f=l?l(e):1;f!=e.height&&Fn(e,f)}function Xi(e){e.parent=null,vu(e)}var Ws={},Hs={};function mu(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Hs:Ws;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function zs(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 m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=$s,$i(e.display.measure)&&(F=O(m,e.doc.direction))&&(l.addToken=lc(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&_t(m);uc(m,l,uu(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Re(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Re(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ci(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=Re(l.pre.className,l.textClass||"")),l}function Gs(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function $s(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?Qi(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,be;if(!z.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){z.lastIndex=Ce;var De=z.exec(n),ke=De?De.index-Ce:n.length-Ce;if(ke){var $e=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[$e])):be.appendChild($e),e.map.push(e.pos,e.pos+ke,$e),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var st=e.cm.options.tabSize,pt=st-e.col%st;tt=be.appendChild(we("span",Ft(pt),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=pt}else De[0]=="\r"||De[0]==`
|
|
22
|
-
`?(tt=be.appendChild(we("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&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var yt=u||"";l&&(yt+=l),f&&(yt+=f);var dt=we("span",[be],yt,m);if(F)for(var bt in F)F.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&dt.setAttribute(bt,F[bt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function Qi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function lc(e,n){return function(u,l,f,m,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,De=0;De<n.length&&(Ce=n[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=be)return e(u,l,f,m,F,U,z);e(u,l.slice(0,Ce.to-Z),f,m,null,U,z),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function sr(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 uc(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(m,m=u[F]),mu(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,be="",Ce,De,ke=0,$e,tt,st,pt,yt;;){if(ke==z){$e=tt=st=De="",yt=null,pt=null,ke=1/0;for(var dt=[],bt=void 0,It=0;It<l.length;++It){var _e=l[It],Mt=_e.marker;if(Mt.type=="bookmark"&&_e.from==z&&Mt.widgetNode)dt.push(Mt);else if(_e.from<=z&&(_e.to==null||_e.to>z||Mt.collapsed&&_e.to==z&&_e.from==z)){if(_e.to!=null&&_e.to!=z&&ke>_e.to&&(ke=_e.to,tt=""),Mt.className&&($e+=" "+Mt.className),Mt.css&&(De=(De?De+";":"")+Mt.css),Mt.startStyle&&_e.from==z&&(st+=" "+Mt.startStyle),Mt.endStyle&&_e.to==ke&&(bt||(bt=[])).push(Mt.endStyle,_e.to),Mt.title&&((yt||(yt={})).title=Mt.title),Mt.attributes)for(var ir in Mt.attributes)(yt||(yt={}))[ir]=Mt.attributes[ir];Mt.collapsed&&(!pt||gu(pt.marker,Mt)<0)&&(pt=_e)}else _e.from>z&&ke>_e.from&&(ke=_e.from)}if(bt)for(var br=0;br<bt.length;br+=2)bt[br+1]==ke&&(tt+=" "+bt[br]);if(!pt||pt.from==z)for(var qt=0;qt<dt.length;++qt)sr(n,0,dt[qt]);if(pt&&(pt.from||0)==z){if(sr(n,(pt.to==null?U+1:pt.to)-z,pt.marker,pt.from==null),pt.to==null)return;pt.to==z&&(pt=!1)}}if(z>=U)break;for(var Tn=Math.min(U,ke);;){if(be){var mn=z+be.length;if(!pt){var Lr=mn>Tn?be.slice(0,Tn-z):be;n.addToken(n,Lr,Ce?Ce+$e:$e,st,z+Lr.length==ke?tt:"",De,yt)}if(mn>=Tn){be=be.slice(Tn-z),z=Tn;break}z=mn,st=""}be=f.slice(m,m=u[Z++]),Ce=mu(u[Z++],n.cm.options)}}}function xu(e,n,u){this.line=n,this.rest=sc(n),this.size=this.rest?_t(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=di(e,n)}function Na(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new xu(e.doc,Ot(e.doc,m),m);f=m+F.size,l.push(F)}return l}var fn=null;function bu(e){fn?fn.ops.push(e):e.ownsGroup=fn={ops:[e],delayedCallbacks:[]}}function wu(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 Ks(e,n){var u=e.ownsGroup;if(!!u)try{wu(u)}finally{fn=null,n(u)}}var Ko=null;function lr(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fn?f=fn.delayedCallbacks:Ko?f=Ko:(f=Ko=[],setTimeout(fc,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function fc(){var e=Ko;Ko=null;for(var n=0;n<e.length;++n)e[n]()}function Ba(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?cc(e,n):m=="gutter"?Jo(e,n,u,l):m=="class"?Ys(e,n):m=="widget"&&dc(e,n,l)}n.changes=null}function Yo(e){return e.node==e.text&&(e.node=we("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 Su(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=Yo(n);n.background=l.insertBefore(we("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Au(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):zs(e,n)}function cc(e,n){var u=n.text.className,l=Au(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,Ys(e,n)):u&&(n.text.className=u)}function Ys(e,n){Su(e,n),n.line.wrapClass?Yo(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 Jo(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=Yo(n);n.gutterBackground=we("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 m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Yo(n),U=n.gutter=we("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&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",mo(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function dc(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Eu(e,n,u)}function tr(e,n,u,l){var f=Au(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ys(e,n),Jo(e,n,u,l),Eu(e,n,l),n.node}function Eu(e,n,u){if(Zt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Zt(e,n.rest[l],n,u,!1)}function Zt(e,n,u,l,f){if(!!n.widgets)for(var m=Yo(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=we("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),pc(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),lr(z,"redraw")}}function pc(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 Ct(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ae(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;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function hi(e,n){for(var u=Tt(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 Xo(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("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 vi(e){return wt-e.display.nativeBarWidth}function Zi(e){return e.display.scroller.clientWidth-vi(e)-e.display.barWidth}function Qo(e){return e.display.scroller.clientHeight-vi(e)-e.display.barHeight}function hc(e,n,u){var l=e.options.lineWrapping,f=l&&Zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=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&&m.push((z.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Xs(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(_t(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function vc(e,n){n=Yn(n);var u=_t(n),l=e.display.externalMeasured=new xu(e.doc,n,u);l.lineN=u;var f=l.built=zs(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function Ua(e,n,u,l){return Jn(e,ni(e,n),u,l)}function Qs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[to(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function ni(e,n){var u=_t(n),l=Qs(e,u);l&&!l.text?l=null:l&&l.changes&&(Ba(e,l,u,nl(e)),e.curOp.forceUpdate=!0),l||(l=vc(e,n));var f=Xs(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Jn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(hc(e,n.view,n.rect),n.hasHeights=!0),F=Cu(e,n,u,l),F.bogus||(n.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var ja={left:0,right:0,top:0,bottom:0};function Zs(e,n,u){for(var l,f,m,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,m=1,F="left"):n<z?(f=n-U,m=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(m=z-U,f=m-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:m,collapse:F,coverStart:U,coverEnd:z}}function qs(e,n){var u=ja;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 Cu(e,n,u,l){var f=Zs(n.map,u,l),m=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=qs(fe(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&S<11&&(Z=Ou(e.display.measure,Z))}else{F>0&&(z=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=m.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Dn(e.display),top:De.top,bottom:De.bottom}:Z=ja}for(var ke=Z.top-n.rect.top,$e=Z.bottom-n.rect.top,tt=(ke+$e)/2,st=n.view.measure.heights,pt=0;pt<st.length-1&&!(tt<st[pt]);pt++);var yt=pt?st[pt-1]:0,dt=st[pt],bt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:yt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ke,bt.rbottom=$e),bt}function Ou(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Oi(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 _s(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 qi(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)_s(e.display.view[n])}function Zo(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function qo(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Tu(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _o(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ct(e.widgets[u]));return n}function Va(e,n,u,l,f){if(!f){var m=_o(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=pi(n);if(l=="local"?F+=Xo(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Tu());var z=U.left+(l=="window"?0:qo());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function ea(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=qo(),f-=Tu();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Wa(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Va(e,l,Ua(e,l,n.ch,f),u)}function Xn(e,n,u,l,f,m){l=l||Ot(e.doc,n.line),f||(f=ni(e,l));function F($e,tt){var st=Jn(e,f,$e,tt?"right":"left",m);return tt?st.left=st.right:st.right=st.left,Va(e,l,st,u)}var U=O(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 be($e,tt,st){var pt=U[tt],yt=pt.level==1;return F(st?$e-1:$e,yt!=st)}var Ce=K(U,z,Z),De=Me,ke=be(z,Ce,Z=="before");return De!=null&&(ke.other=be(z,De,Z!="before")),ke}function Pu(e,n){var u=0;n=ut(e.doc,n),e.options.lineWrapping||(u=Dn(e.display)*n.ch);var l=Ot(e.doc,n.line),f=pi(l)+Xo(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function el(e,n,u,l,f){var m=ot(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function tl(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return el(l.first,0,null,-1,-1);var f=Kn(l,u),m=l.first+l.size-1;if(f>m)return el(l.first+l.size-1,Ot(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=Ot(l,f);;){var U=gc(e,F,f,n,u),z=ac(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=Ot(l,f=Z.line)}}function Iu(e,n,u,l){l-=_o(n);var f=n.text.length,m=Ke(function(F){return Jn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Jn(e,u,F).top>l},m,f),{begin:m,end:f}}function Fu(e,n,u,l){u||(u=ni(e,n));var f=Va(e,n,Jn(e,u,l),"line").top;return Iu(e,n,u,f)}function rl(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function gc(e,n,u,l,f){f-=pi(n);var m=ni(e,n),F=_o(n),U=0,z=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?mc:yc)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,z=Z?Ce.to:Ce.from-1}var De=null,ke=null,$e=Ke(function(It){var _e=Jn(e,m,It);return _e.top+=F,_e.bottom+=F,rl(_e,l,f,!1)?(_e.top<=f&&_e.left<=l&&(De=It,ke=_e),!0):!1},U,z),tt,st,pt=!1;if(ke){var yt=l-ke.left<ke.right-l,dt=yt==Z;$e=De+(dt?0:1),st=dt?"after":"before",tt=yt?ke.left:ke.right}else{!Z&&($e==z||$e==U)&&$e++,st=$e==0?"after":$e==n.text.length?"before":Jn(e,m,$e-(Z?1:0)).bottom+F<=f==Z?"after":"before";var bt=Xn(e,ot(u,$e,st),"line",n,m);tt=bt.left,pt=f<bt.top?-1:f>=bt.bottom?1:0}return $e=Ge(n.text,$e,1),el(u,$e,st,pt,l-tt)}function yc(e,n,u,l,f,m,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return rl(Xn(e,ot(u,ke?De.to:De.from,ke?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,be=Xn(e,ot(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);rl(be,m,F,!0)&&be.top>F&&(z=f[U-1])}return z}function mc(e,n,u,l,f,m,F){var U=Iu(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=z)){var $e=ke.level!=1,tt=Jn(e,l,$e?Math.min(Z,ke.to)-1:Math.max(z,ke.from)).right,st=tt<m?m-tt+1e9:tt-m;(!be||Ce>st)&&(be=ke,Ce=st)}}return be||(be=f[f.length-1]),be.from<z&&(be={from:z,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var _i;function xo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)_i.appendChild(document.createTextNode("x")),_i.appendChild(we("br"));_i.appendChild(document.createTextNode("x"))}xe(e.measure,_i);var u=_i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Dn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function nl(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Nn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ru(e){var n=xo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Dn(e.display)-3);return function(f){if(di(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function il(e){var n=e.doc,u=Ru(e);n.iter(function(l){var f=u(l);f!=l.height&&Fn(l,f)})}function eo(e,n,u,l){var f=e.display;if(!u&&Tt(n).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var z=tl(e,m,F),Z;if(l&&z.xRel>0&&(Z=Ot(e.doc,z.line).text).length==z.ch){var be=Je(Z,Z.length,e.options.tabSize)-Z.length;z=ot(z.line,Math.max(0,Math.round((m-gn(e.display).left)/Dn(e.display))-be))}return z}function to(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 Nr(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)Fi&&$o(e.doc,n)<f.viewTo&&ki(e);else if(u<=f.viewFrom)Fi&&js(e.doc,u+l)>f.viewFrom?ki(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)ki(e);else if(n<=f.viewFrom){var m=Ha(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ki(e)}else if(u>=f.viewTo){var F=Ha(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):ki(e)}else{var U=Ha(e,n,n,-1),z=Ha(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat(Na(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):ki(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function ii(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 m=l.view[to(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);vt(F,u)==-1&&F.push(u)}}}function ki(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ha(e,n,u,l){var f=to(e,n),m,F=e.display.view;if(!Fi||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;m=U+F[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;$o(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 xc(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=Na(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=Na(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(to(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(Na(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,to(e,u)))),l.viewTo=u}function za(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 Mi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ga(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=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 be=F(e,z);be&&ol(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&ol(e,z.head,f);Z||ku(e,z,m)}}return l}function ol(e,n,u){var l=Xn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("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 m=Wa(e,n,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("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 $a(e,n){return e.top-n.top||e.left-n.left}function ku(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=gn(e.display),U=F.left,z=Math.max(l.sizerWidth,Zi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function be(dt,bt,It,_e){bt<0&&(bt=0),bt=Math.round(bt),_e=Math.round(_e),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
21
|
+
`,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),n+=F+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},wn=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},Ln=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Zr=null;function Oi(e){if(Zr!=null)return Zr;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return Zr=Math.abs(u.left-l.left)>1}var Ti={},ln={};function Sn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ti[e]=n}function Gn(e,n){ln[e]=n}function $n(e){if(typeof e=="string"&&ln.hasOwnProperty(e))e=ln[e];else if(e&&typeof e.name=="string"&&ln.hasOwnProperty(e.name)){var n=ln[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $n("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $n("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function An(e,n){n=$n(n);var u=Ti[n.name];if(!u)return An(e,"text/plain");var l=u(e,n);if(ei.hasOwnProperty(n.name)){var f=ei[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}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 ei={};function Pi(e,n){var u=ei.hasOwnProperty(e)?ei[e]:ei[e]={};Qe(n,u)}function Gr(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 qr(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 ti(e,n,u){return e.startState?e.startState(n,u):!0}var pr=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};pr.prototype.eol=function(){return this.pos>=this.string.length},pr.prototype.sol=function(){return this.pos==this.lineStart},pr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pr.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},pr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},pr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},pr.prototype.skipToEnd=function(){this.pos=this.string.length},pr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},pr.prototype.backUp=function(e){this.pos-=e},pr.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)},pr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},pr.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 m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},pr.prototype.current=function(){return this.string.slice(this.start,this.pos)},pr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},pr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},pr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(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],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function fi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Ii(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function Fn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function _t(e){if(e.parent==null)return null;for(var n=e.parent,u=vt(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 Kn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,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 ri(e,n){return n>=e.first&&n<e.first+e.size}function mo(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function ot(e,n,u){if(u===void 0&&(u=null),!(this instanceof ot))return new ot(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 ci(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return ot(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function lt(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function ut(e,n){if(n.line<e.first)return ot(e.first,0);var u=e.first+e.size-1;return n.line>u?ot(u,Ot(e,u).text.length):Kt(n,Ot(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?ot(e.line,n):u<0?ot(e.line,0):e}function Qt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=ut(e,n[l]);return u}var Rr=function(e,n){this.state=e,this.lookAhead=n},kr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},kr.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}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(e,n,u){return n instanceof Rr?new kr(e,Gr(e.mode,n.state),u,n.lookAhead):new kr(e,Gr(e.mode,n),u)},kr.prototype.save=function(e){var n=e!==!1?Gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Rr(n,this.maxLookAhead):n};function er(e,n,u,l){var f=[e.state.modeGen],m={};cu(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,De=0;u.state=!0,cu(e,n.text,be.mode,u,function(ke,$e){for(var tt=Ce;De<ke;){var st=f[Ce];st>ke&&f.splice(Ce,1,ke,f[Ce+1],st),Ce+=2,De=Math.min(ke,st)}if(!!$e)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+$e),Ce=tt+2;else for(;tt<Ce;tt+=2){var pt=f[tt+1];f[tt+1]=(pt?pt+" ":"")+"overlay "+$e}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function uu(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=un(e,_t(n)),f=n.text.length>e.options.maxHighlightLength&&Gr(e.doc.mode,l.state),m=er(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.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 un(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new kr(l,!0,n);var m=_f(e,n,u),F=m>l.first&&Ot(l,m-1).stateAfter,U=F?kr.fromSaved(l,F,m):new kr(l,ti(l.mode),m);return l.iter(m,n,function(z){ks(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 ks(e,n,u,l){var f=e.doc.mode,m=new pr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&Ma(f,u.state);!m.eol();)Ms(f,m,u.state),m.start=m.pos}function Ma(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=qr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Ms(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=qr(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ls=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function Ds(e,n,u,l){var f=e.doc,m=f.mode,F;n=ut(f,n);var U=Ot(f,n.line),z=un(e,n.line,u),Z=new pr(U.text,e.options.tabSize,z),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=Ms(m,Z,z.state),l&&be.push(new Ls(Z,F,Gr(f.mode,z.state)));return l?be:new Ls(Z,F,z.state)}function fu(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 cu(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,be=new pr(n,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(n==""&&fu(Ma(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,F&&ks(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=fu(Ms(u,be,l.state,De),m),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;z<be.start;)z=Math.min(be.start,z+5e3),f(z,Z);Z=Ce}be.start=be.pos}for(;z<be.pos;){var $e=Math.min(be.pos,z+5e3);f($e,Z),z=$e}}function _f(e,n,u){for(var l,f,m=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=m.first)return m.first;var z=Ot(m,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Rr?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Je(z.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}return f}function ec(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=Ot(e,l).stateAfter;if(f&&(!(f instanceof Rr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var tc=!1,Fi=!1;function rc(){tc=!0}function nc(){Fi=!0}function La(e,n,u){this.marker=e,this.from=n,this.to=u}function zo(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function ic(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Yd(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 Jd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var z=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new La(F,m.from,z?null:m.to))}}return l}function Xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var z=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new La(F,z?null:m.from-n,m.to==null?null:m.to-n))}}return l}function du(e,n){if(n.full)return null;var u=ri(e,n.from.line)&&Ot(e,n.from.line).markedSpans,l=ri(e,n.to.line)&&Ot(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Lt(n.from,n.to)==0,U=Jd(u,f,F),z=Xd(l,m,F),Z=n.text.length==1,be=Et(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=zo(z,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+be):De.to=f}}if(z)for(var $e=0;$e<z.length;++$e){var tt=z[$e];if(tt.to!=null&&(tt.to+=be),tt.from==null){var st=zo(U,tt.marker);st||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=pu(U)),z&&z!=U&&(z=pu(z));var pt=[U];if(!Z){var yt=n.text.length-2,dt;if(yt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new La(U[bt].marker,null,null));for(var It=0;It<yt;++It)pt.push(dt);pt.push(z)}return pt}function pu(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 hu(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var $e=0;$e<ke.markedSpans.length;++$e){var tt=ke.markedSpans[$e].marker;tt.readOnly&&(!l||vt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var F=l[m],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 be=[z,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),z+=be.length-3}}return f}function vu(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function oc(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ns(e){return e.inclusiveLeft?-1:0}function Bs(e){return e.inclusiveRight?1:0}function gu(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||Ns(e)-Ns(n);if(m)return-m;var F=Lt(l.to,f.to)||Bs(e)-Bs(n);return F||n.id-e.id}function Go(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||gu(l,f.marker)<0)&&(l=f.marker);return l}function Us(e){return Go(e,!0)}function Ki(e){return Go(e,!1)}function ac(e,n){var u=Fi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||gu(l,m.marker)<0)&&(l=m.marker)}return l}function Da(e,n,u,l,f){var m=Ot(e,n),F=Fi&&m.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),be=Lt(Z.from,u)||Ns(z.marker)-Ns(f),Ce=Lt(Z.to,l)||Bs(z.marker)-Bs(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Yn(e){for(var n;n=Us(e);)e=n.find(-1,!0).line;return e}function yu(e){for(var n;n=Ki(e);)e=n.find(1,!0).line;return e}function sc(e){for(var n,u;n=Ki(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function $o(e,n){var u=Ot(e,n),l=Yn(u);return u==l?n:_t(l)}function js(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!di(e,u))return n;for(;l=Ki(u);)u=l.find(1,!0).line;return _t(u)+1}function di(e,n){var u=Fi&&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&&hr(e,n,l))return!0}}}function hr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return hr(e,l.line,zo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&hr(e,n,f))return!0}function pi(e){e=Yn(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 m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;n+=U.height}return n}function Yi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=Us(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ki(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Vs(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Yi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Yi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Ji=function(e,n,u){this.text=e,oc(this,n),this.height=u?u(this):1};Ji.prototype.lineNo=function(){return _t(this)},Ve(Ji);function Ri(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),vu(e),oc(e,u);var f=l?l(e):1;f!=e.height&&Fn(e,f)}function Xi(e){e.parent=null,vu(e)}var Ws={},Hs={};function mu(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Hs:Ws;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function zs(e,n){var u=ve("span",null,null,g?"padding-right: .1px":null),l={pre:ve("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 m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=$s,$i(e.display.measure)&&(F=O(m,e.doc.direction))&&(l.addToken=lc(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&_t(m);uc(m,l,uu(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Re(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Re(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ci(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 ie(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function Gs(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function $s(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?Qi(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,be;if(!z.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){z.lastIndex=Ce;var De=z.exec(n),ke=De?De.index-Ce:n.length-Ce;if(ke){var $e=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[$e])):be.appendChild($e),e.map.push(e.pos,e.pos+ke,$e),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var st=e.cm.options.tabSize,pt=st-e.col%st;tt=be.appendChild(we("span",Ft(pt),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=pt}else De[0]=="\r"||De[0]==`
|
|
22
|
+
`?(tt=be.appendChild(we("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&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var yt=u||"";l&&(yt+=l),f&&(yt+=f);var dt=we("span",[be],yt,m);if(F)for(var bt in F)F.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&dt.setAttribute(bt,F[bt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function Qi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function lc(e,n){return function(u,l,f,m,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,De=0;De<n.length&&(Ce=n[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=be)return e(u,l,f,m,F,U,z);e(u,l.slice(0,Ce.to-Z),f,m,null,U,z),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function sr(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 uc(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(m,m=u[F]),mu(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,be="",Ce,De,ke=0,$e,tt,st,pt,yt;;){if(ke==z){$e=tt=st=De="",yt=null,pt=null,ke=1/0;for(var dt=[],bt=void 0,It=0;It<l.length;++It){var _e=l[It],Mt=_e.marker;if(Mt.type=="bookmark"&&_e.from==z&&Mt.widgetNode)dt.push(Mt);else if(_e.from<=z&&(_e.to==null||_e.to>z||Mt.collapsed&&_e.to==z&&_e.from==z)){if(_e.to!=null&&_e.to!=z&&ke>_e.to&&(ke=_e.to,tt=""),Mt.className&&($e+=" "+Mt.className),Mt.css&&(De=(De?De+";":"")+Mt.css),Mt.startStyle&&_e.from==z&&(st+=" "+Mt.startStyle),Mt.endStyle&&_e.to==ke&&(bt||(bt=[])).push(Mt.endStyle,_e.to),Mt.title&&((yt||(yt={})).title=Mt.title),Mt.attributes)for(var ir in Mt.attributes)(yt||(yt={}))[ir]=Mt.attributes[ir];Mt.collapsed&&(!pt||gu(pt.marker,Mt)<0)&&(pt=_e)}else _e.from>z&&ke>_e.from&&(ke=_e.from)}if(bt)for(var br=0;br<bt.length;br+=2)bt[br+1]==ke&&(tt+=" "+bt[br]);if(!pt||pt.from==z)for(var qt=0;qt<dt.length;++qt)sr(n,0,dt[qt]);if(pt&&(pt.from||0)==z){if(sr(n,(pt.to==null?U+1:pt.to)-z,pt.marker,pt.from==null),pt.to==null)return;pt.to==z&&(pt=!1)}}if(z>=U)break;for(var Tn=Math.min(U,ke);;){if(be){var mn=z+be.length;if(!pt){var Lr=mn>Tn?be.slice(0,Tn-z):be;n.addToken(n,Lr,Ce?Ce+$e:$e,st,z+Lr.length==ke?tt:"",De,yt)}if(mn>=Tn){be=be.slice(Tn-z),z=Tn;break}z=mn,st=""}be=f.slice(m,m=u[Z++]),Ce=mu(u[Z++],n.cm.options)}}}function xu(e,n,u){this.line=n,this.rest=sc(n),this.size=this.rest?_t(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=di(e,n)}function Na(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new xu(e.doc,Ot(e.doc,m),m);f=m+F.size,l.push(F)}return l}var fn=null;function bu(e){fn?fn.ops.push(e):e.ownsGroup=fn={ops:[e],delayedCallbacks:[]}}function wu(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 Ks(e,n){var u=e.ownsGroup;if(!!u)try{wu(u)}finally{fn=null,n(u)}}var Ko=null;function lr(e,n){var u=te(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;fn?f=fn.delayedCallbacks:Ko?f=Ko:(f=Ko=[],setTimeout(fc,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function fc(){var e=Ko;Ko=null;for(var n=0;n<e.length;++n)e[n]()}function Ba(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?cc(e,n):m=="gutter"?Jo(e,n,u,l):m=="class"?Ys(e,n):m=="widget"&&dc(e,n,l)}n.changes=null}function Yo(e){return e.node==e.text&&(e.node=we("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 Su(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=Yo(n);n.background=l.insertBefore(we("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Au(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):zs(e,n)}function cc(e,n){var u=n.text.className,l=Au(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,Ys(e,n)):u&&(n.text.className=u)}function Ys(e,n){Su(e,n),n.line.wrapClass?Yo(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 Jo(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=Yo(n);n.gutterBackground=we("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 m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Yo(n),U=n.gutter=we("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&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",mo(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function dc(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Eu(e,n,u)}function tr(e,n,u,l){var f=Au(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ys(e,n),Jo(e,n,u,l),Eu(e,n,l),n.node}function Eu(e,n,u){if(Zt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Zt(e,n.rest[l],n,u,!1)}function Zt(e,n,u,l,f){if(!!n.widgets)for(var m=Yo(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=we("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),pc(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),lr(z,"redraw")}}function pc(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 Ct(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!se(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;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function hi(e,n){for(var u=Tt(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 Xo(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("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 vi(e){return wt-e.display.nativeBarWidth}function Zi(e){return e.display.scroller.clientWidth-vi(e)-e.display.barWidth}function Qo(e){return e.display.scroller.clientHeight-vi(e)-e.display.barHeight}function hc(e,n,u){var l=e.options.lineWrapping,f=l&&Zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=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&&m.push((z.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Xs(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(_t(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function vc(e,n){n=Yn(n);var u=_t(n),l=e.display.externalMeasured=new xu(e.doc,n,u);l.lineN=u;var f=l.built=zs(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function Ua(e,n,u,l){return Jn(e,ni(e,n),u,l)}function Qs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[to(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function ni(e,n){var u=_t(n),l=Qs(e,u);l&&!l.text?l=null:l&&l.changes&&(Ba(e,l,u,nl(e)),e.curOp.forceUpdate=!0),l||(l=vc(e,n));var f=Xs(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Jn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(hc(e,n.view,n.rect),n.hasHeights=!0),F=Cu(e,n,u,l),F.bogus||(n.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var ja={left:0,right:0,top:0,bottom:0};function Zs(e,n,u){for(var l,f,m,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,m=1,F="left"):n<z?(f=n-U,m=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(m=z-U,f=m-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:m,collapse:F,coverStart:U,coverEnd:z}}function qs(e,n){var u=ja;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 Cu(e,n,u,l){var f=Zs(n.map,u,l),m=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=qs(fe(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&S<11&&(Z=Ou(e.display.measure,Z))}else{F>0&&(z=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=m.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Dn(e.display),top:De.top,bottom:De.bottom}:Z=ja}for(var ke=Z.top-n.rect.top,$e=Z.bottom-n.rect.top,tt=(ke+$e)/2,st=n.view.measure.heights,pt=0;pt<st.length-1&&!(tt<st[pt]);pt++);var yt=pt?st[pt-1]:0,dt=st[pt],bt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:yt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ke,bt.rbottom=$e),bt}function Ou(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Oi(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 _s(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 qi(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)_s(e.display.view[n])}function Zo(e){qi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function qo(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Tu(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _o(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ct(e.widgets[u]));return n}function Va(e,n,u,l,f){if(!f){var m=_o(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=pi(n);if(l=="local"?F+=Xo(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Tu());var z=U.left+(l=="window"?0:qo());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function ea(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=qo(),f-=Tu();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Wa(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Va(e,l,Ua(e,l,n.ch,f),u)}function Xn(e,n,u,l,f,m){l=l||Ot(e.doc,n.line),f||(f=ni(e,l));function F($e,tt){var st=Jn(e,f,$e,tt?"right":"left",m);return tt?st.left=st.right:st.right=st.left,Va(e,l,st,u)}var U=O(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 be($e,tt,st){var pt=U[tt],yt=pt.level==1;return F(st?$e-1:$e,yt!=st)}var Ce=K(U,z,Z),De=Me,ke=be(z,Ce,Z=="before");return De!=null&&(ke.other=be(z,De,Z!="before")),ke}function Pu(e,n){var u=0;n=ut(e.doc,n),e.options.lineWrapping||(u=Dn(e.display)*n.ch);var l=Ot(e.doc,n.line),f=pi(l)+Xo(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function el(e,n,u,l,f){var m=ot(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function tl(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return el(l.first,0,null,-1,-1);var f=Kn(l,u),m=l.first+l.size-1;if(f>m)return el(l.first+l.size-1,Ot(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=Ot(l,f);;){var U=gc(e,F,f,n,u),z=ac(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=Ot(l,f=Z.line)}}function Iu(e,n,u,l){l-=_o(n);var f=n.text.length,m=Ke(function(F){return Jn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Jn(e,u,F).top>l},m,f),{begin:m,end:f}}function Fu(e,n,u,l){u||(u=ni(e,n));var f=Va(e,n,Jn(e,u,l),"line").top;return Iu(e,n,u,f)}function rl(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function gc(e,n,u,l,f){f-=pi(n);var m=ni(e,n),F=_o(n),U=0,z=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?mc:yc)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,z=Z?Ce.to:Ce.from-1}var De=null,ke=null,$e=Ke(function(It){var _e=Jn(e,m,It);return _e.top+=F,_e.bottom+=F,rl(_e,l,f,!1)?(_e.top<=f&&_e.left<=l&&(De=It,ke=_e),!0):!1},U,z),tt,st,pt=!1;if(ke){var yt=l-ke.left<ke.right-l,dt=yt==Z;$e=De+(dt?0:1),st=dt?"after":"before",tt=yt?ke.left:ke.right}else{!Z&&($e==z||$e==U)&&$e++,st=$e==0?"after":$e==n.text.length?"before":Jn(e,m,$e-(Z?1:0)).bottom+F<=f==Z?"after":"before";var bt=Xn(e,ot(u,$e,st),"line",n,m);tt=bt.left,pt=f<bt.top?-1:f>=bt.bottom?1:0}return $e=Ge(n.text,$e,1),el(u,$e,st,pt,l-tt)}function yc(e,n,u,l,f,m,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return rl(Xn(e,ot(u,ke?De.to:De.from,ke?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,be=Xn(e,ot(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);rl(be,m,F,!0)&&be.top>F&&(z=f[U-1])}return z}function mc(e,n,u,l,f,m,F){var U=Iu(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=z)){var $e=ke.level!=1,tt=Jn(e,l,$e?Math.min(Z,ke.to)-1:Math.max(z,ke.from)).right,st=tt<m?m-tt+1e9:tt-m;(!be||Ce>st)&&(be=ke,Ce=st)}}return be||(be=f[f.length-1]),be.from<z&&(be={from:z,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var _i;function xo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)_i.appendChild(document.createTextNode("x")),_i.appendChild(we("br"));_i.appendChild(document.createTextNode("x"))}xe(e.measure,_i);var u=_i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function Dn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function nl(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Nn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Nn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ru(e){var n=xo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Dn(e.display)-3);return function(f){if(di(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function il(e){var n=e.doc,u=Ru(e);n.iter(function(l){var f=u(l);f!=l.height&&Fn(l,f)})}function eo(e,n,u,l){var f=e.display;if(!u&&Tt(n).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var z=tl(e,m,F),Z;if(l&&z.xRel>0&&(Z=Ot(e.doc,z.line).text).length==z.ch){var be=Je(Z,Z.length,e.options.tabSize)-Z.length;z=ot(z.line,Math.max(0,Math.round((m-gn(e.display).left)/Dn(e.display))-be))}return z}function to(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 Nr(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)Fi&&$o(e.doc,n)<f.viewTo&&ki(e);else if(u<=f.viewFrom)Fi&&js(e.doc,u+l)>f.viewFrom?ki(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)ki(e);else if(n<=f.viewFrom){var m=Ha(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ki(e)}else if(u>=f.viewTo){var F=Ha(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):ki(e)}else{var U=Ha(e,n,n,-1),z=Ha(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat(Na(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):ki(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function ii(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 m=l.view[to(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);vt(F,u)==-1&&F.push(u)}}}function ki(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ha(e,n,u,l){var f=to(e,n),m,F=e.display.view;if(!Fi||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;m=U+F[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;$o(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 xc(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=Na(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=Na(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(to(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(Na(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,to(e,u)))),l.viewTo=u}function za(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 Mi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ga(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=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 be=F(e,z);be&&ol(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&ol(e,z.head,f);Z||ku(e,z,m)}}return l}function ol(e,n,u){var l=Xn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("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 m=Wa(e,n,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("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 $a(e,n){return e.top-n.top||e.left-n.left}function ku(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=gn(e.display),U=F.left,z=Math.max(l.sizerWidth,Zi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function be(dt,bt,It,_e){bt<0&&(bt=0),bt=Math.round(bt),_e=Math.round(_e),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
23
23
|
top: `+bt+"px; width: "+(It==null?z-dt:It)+`px;
|
|
24
|
-
height: `+(_e-bt)+"px"))}function Ce(dt,bt,It){var _e=Ot(f,dt),Mt=_e.text.length,ir,br;function qt(Lr,dn){return Wa(e,ot(dt,Lr),"div",_e,dn)}function Tn(Lr,dn,_r){var Ur=Fu(e,_e,null,Lr),Tr=dn=="ltr"==(_r=="after")?"left":"right",vr=_r=="after"?Ur.begin:Ur.end-(/\s/.test(_e.text.charAt(Ur.end-1))?2:1);return qt(vr,Tr)[Tr]}var mn=O(_e,f.direction);return P(mn,bt||0,It==null?Mt:It,function(Lr,dn,_r,Ur){var Tr=_r=="ltr",vr=qt(Lr,Tr?"left":"right"),pn=qt(dn-1,Tr?"right":"left"),po=bt==null&&Lr==0,bi=It==null&&dn==Mt,on=Ur==0,li=!mn||Ur==mn.length-1;if(pn.top-vr.top<=3){var jr=(Z?po:bi)&&on,Dl=(Z?bi:po)&&li,Mn=jr?U:(Tr?vr:pn).left,Vr=Dl?z:(Tr?pn:vr).right;be(Mn,vr.top,Vr-Mn,vr.bottom)}else{var Lo,Wr,Do,If;Tr?(Lo=Z&&po&&on?U:vr.left,Wr=Z?z:Tn(Lr,_r,"before"),Do=Z?U:Tn(dn,_r,"after"),If=Z&&bi&&li?z:pn.right):(Lo=Z?Tn(Lr,_r,"before"):U,Wr=!Z&&po&&on?z:vr.right,Do=!Z&&bi&&li?U:pn.left,If=Z?Tn(dn,_r,"after"):z),be(Lo,vr.top,Wr-Lo,vr.bottom),vr.bottom<pn.top&&be(U,vr.bottom,null,pn.top),be(Do,pn.top,If-Do,pn.bottom)}(!ir||$a(vr,ir)<0)&&(ir=vr),$a(pn,ir)<0&&(ir=pn),(!br||$a(vr,br)<0)&&(br=vr),$a(pn,br)<0&&(br=pn)}),{start:ir,end:br}}var De=n.from(),ke=n.to();if(De.line==ke.line)Ce(De.line,De.ch,ke.ch);else{var $e=Ot(f,De.line),tt=Ot(f,ke.line),st=Yn($e)==Yn(tt),pt=Ce(De.line,De.ch,st?$e.text.length+1:null).end,yt=Ce(ke.line,st?0:null,ke.ch).start;st&&(pt.top<yt.top-2?(be(pt.right,pt.top,null,pt.bottom),be(U,yt.top,yt.left,yt.bottom)):be(pt.right,pt.top,yt.left-pt.right,pt.bottom)),pt.bottom<yt.top&&be(U,pt.bottom,null,yt.top)}u.appendChild(m)}function al(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()||bo(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function sl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ka(e))}function ta(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&bo(e))},100)}function Ka(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(
|
|
24
|
+
height: `+(_e-bt)+"px"))}function Ce(dt,bt,It){var _e=Ot(f,dt),Mt=_e.text.length,ir,br;function qt(Lr,dn){return Wa(e,ot(dt,Lr),"div",_e,dn)}function Tn(Lr,dn,_r){var Ur=Fu(e,_e,null,Lr),Tr=dn=="ltr"==(_r=="after")?"left":"right",vr=_r=="after"?Ur.begin:Ur.end-(/\s/.test(_e.text.charAt(Ur.end-1))?2:1);return qt(vr,Tr)[Tr]}var mn=O(_e,f.direction);return P(mn,bt||0,It==null?Mt:It,function(Lr,dn,_r,Ur){var Tr=_r=="ltr",vr=qt(Lr,Tr?"left":"right"),pn=qt(dn-1,Tr?"right":"left"),po=bt==null&&Lr==0,bi=It==null&&dn==Mt,on=Ur==0,li=!mn||Ur==mn.length-1;if(pn.top-vr.top<=3){var jr=(Z?po:bi)&&on,Dl=(Z?bi:po)&&li,Mn=jr?U:(Tr?vr:pn).left,Vr=Dl?z:(Tr?pn:vr).right;be(Mn,vr.top,Vr-Mn,vr.bottom)}else{var Lo,Wr,Do,If;Tr?(Lo=Z&&po&&on?U:vr.left,Wr=Z?z:Tn(Lr,_r,"before"),Do=Z?U:Tn(dn,_r,"after"),If=Z&&bi&&li?z:pn.right):(Lo=Z?Tn(Lr,_r,"before"):U,Wr=!Z&&po&&on?z:vr.right,Do=!Z&&bi&&li?U:pn.left,If=Z?Tn(dn,_r,"after"):z),be(Lo,vr.top,Wr-Lo,vr.bottom),vr.bottom<pn.top&&be(U,vr.bottom,null,pn.top),be(Do,pn.top,If-Do,pn.bottom)}(!ir||$a(vr,ir)<0)&&(ir=vr),$a(pn,ir)<0&&(ir=pn),(!br||$a(vr,br)<0)&&(br=vr),$a(pn,br)<0&&(br=pn)}),{start:ir,end:br}}var De=n.from(),ke=n.to();if(De.line==ke.line)Ce(De.line,De.ch,ke.ch);else{var $e=Ot(f,De.line),tt=Ot(f,ke.line),st=Yn($e)==Yn(tt),pt=Ce(De.line,De.ch,st?$e.text.length+1:null).end,yt=Ce(ke.line,st?0:null,ke.ch).start;st&&(pt.top<yt.top-2?(be(pt.right,pt.top,null,pt.bottom),be(U,yt.top,yt.left,yt.bottom)):be(pt.right,pt.top,yt.left-pt.right,pt.bottom)),pt.bottom<yt.top&&be(U,pt.bottom,null,yt.top)}u.appendChild(m)}function al(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()||bo(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function sl(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ka(e))}function ta(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&bo(e))},100)}function Ka(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ie(e,"focus",e,n),e.state.focused=!0,Le(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()),al(e))}function bo(e,n){e.state.delayingBlurEvent||(e.state.focused&&(ie(e,"blur",e,n),e.state.focused=!1,ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ya(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,m=0,F=0;F<n.view.length;F++){var U=n.view[F],z=e.options.lineWrapping,Z=void 0,be=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 De=U.node.getBoundingClientRect();Z=De.bottom-De.top,!z&&U.text.firstChild&&(be=U.text.firstChild.getBoundingClientRect().right-De.left-1)}var ke=U.line.height-Z;if((ke>.005||ke<-.005)&&(f<l&&(m-=ke),Fn(U.line,Z),ll(U.line),U.rest))for(var $e=0;$e<U.rest.length;$e++)ll(U.rest[$e]);if(be>e.display.sizerWidth){var tt=Math.ceil(be/Dn(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function ll(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 ra(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Xo(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=Kn(n,l),F=Kn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,z=u.ensure.to.line;U<m?(m=U,F=Kn(n,pi(Ot(n,U))+e.wrapper.clientHeight)):Math.min(z,n.lastLine())>=F&&(m=Kn(n,pi(Ot(n,z))-e.wrapper.clientHeight),F=z)}return{from:m,to:Math.max(F,m+1)}}function bc(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 m=we("div","\u200B",null,`position: absolute;
|
|
25
25
|
top: `+(n.top-u.viewOffset-Xo(e.display))+`px;
|
|
26
26
|
height: `+(n.bottom-n.top+vi(e)+u.barHeight)+`px;
|
|
27
|
-
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function Mu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?ot(n.line,n.ch+1,"before"):n,n=n.ch?ot(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=Xn(e,n),z=!u||u==n?U:Xn(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=ul(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(ia(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(F=!0)),Z.scrollLeft!=null&&(no(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function Lu(e,n){var u=ul(e,n);u.scrollTop!=null&&ia(e,u.scrollTop),u.scrollLeft!=null&&no(e,u.scrollLeft)}function ul(e,n){var u=e.display,l=xo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Qo(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Js(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+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(F.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=Zi(e)-u.gutters.offsetWidth,$e=n.right-n.left>ke;return $e&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<De?F.scrollLeft=Math.max(0,n.left+Ce-($e?0:10)):n.right>ke+De-3&&(F.scrollLeft=n.right+($e?0:10)-ke),F}function fl(e,n){n!=null&&(Ja(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function cn(e){Ja(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function na(e,n,u){(n!=null||u!=null)&&Ja(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function ro(e,n){Ja(e),e.curOp.scrollToPos=n}function Ja(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Pu(e,n.from),l=Pu(e,n.to);Du(e,u,l,n.margin)}}function Du(e,n,u,l){var f=ul(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});na(e,f.scrollLeft,f.scrollTop)}function ia(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||hl(e,{top:n}),Nu(e,n,!0),c&&hl(e),Qn(e,100))}function Nu(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 no(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,Wu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function wo(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Js(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+vi(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var io=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("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&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};io.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 m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"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}},io.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},io.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},io.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 ct,this.disableVert=new ct},io.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},io.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var oa=function(){};oa.prototype.update=function(){return{bottom:0,right:0}},oa.prototype.setScrollLeft=function(){},oa.prototype.setScrollTop=function(){},oa.prototype.clear=function(){};function gi(e,n){n||(n=wo(e));var u=e.display.barWidth,l=e.display.barHeight;Xa(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ya(e),Xa(e,wo(e)),u=e.display.barWidth,l=e.display.barHeight}function Xa(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 En={native:io,null:oa};function Qa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new En[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"?no(e,n):ia(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var yi=0;function Li(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:++yi,markArrays:null},bu(e.curOp)}function Di(e){var n=e.curOp;n&&Ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Qd(u)})}function Qd(e){for(var n=e.ops,u=0;u<n.length;u++)cl(n[u]);for(var l=0;l<n.length;l++)Bu(n[l]);for(var f=0;f<n.length;f++)Uu(n[f]);for(var m=0;m<n.length;m++)Mr(n[m]);for(var F=0;F<n.length;F++)wc(n[F])}function cl(e){var n=e.cm,u=n.display;ju(n),e.updateMaxLine&&Vs(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 oo(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bu(e){e.updatedDisplay=e.mustUpdate&&pl(e.cm,e.update)}function Uu(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ya(n),e.barMeasure=wo(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Ua(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+vi(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Mr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&no(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&gi(n,e.barMeasure),e.updatedDisplay&&gl(n,e.barMeasure),e.selectionChanged&&al(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&sl(e.cm)}function wc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Vu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&Nu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&no(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Mu(n,ut(l,e.scrollToPos.from),ut(l,e.scrollToPos.to),e.scrollToPos.margin);bc(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||oe(m[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 $r(e,n){if(e.curOp)return n();Li(e);try{return n()}finally{Di(e)}}function Kr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Li(e);try{return n.apply(e,arguments)}finally{Di(e)}}}function Br(e){return function(){if(this.curOp)return e.apply(this,arguments);Li(this);try{return e.apply(this,arguments)}finally{Di(this)}}}function gr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Li(n);try{return e.apply(this,arguments)}finally{Di(n)}}}function Qn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(Sc,e))}function Sc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=un(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Gr(n.mode,l.state):null,z=er(e,m,l,!0);U&&(l.state=U),m.styles=z.styles;var Z=m.styleClasses,be=z.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=m.styles[De];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ks(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Qn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&$r(e,function(){for(var m=0;m<f.length;m++)ii(e,f[m],"text")})}}var oo=function(e,n,u){var l=e.display;this.viewport=n,this.visible=ra(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Zi(e),this.force=u,this.dims=nl(e),this.events=[]};oo.prototype.signal=function(e,n){je(e,n)&&this.events.push(arguments)},oo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)oe.apply(null,this.events[e])};function ju(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=vi(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=vi(e)+"px",n.scrollbarsClipped=!0)}function aa(e){if(e.hasFocus())return null;var n=Fe();if(!n||!ae(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ae(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function dl(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ae(document.body,e.anchorNode)&&ae(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 pl(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return ki(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&&za(e)==0)return!1;Za(e)&&(ki(e),n.dims=nl(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Fi&&(m=$o(e.doc,m),F=js(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;xc(e,m,F),u.viewOffset=pi(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=za(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=aa(e);return z>4&&(u.lineDiv.style.display="none"),Ac(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,dl(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Qn(e,400)),u.updateLineNumbers=null,!0}function Vu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Js(e.display)-Qo(e),u.top)}),n.visible=ra(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=ra(e.display,e.doc,u));if(!pl(e,n))break;Ya(e);var f=wo(e);Mi(e),gi(e,f),gl(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 hl(e,n){var u=new oo(e,n);if(pl(e,u)){Ya(e),Vu(e,u);var l=wo(e);Mi(e),gi(e,l),gl(e,l),u.finish()}}function Ac(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U($e){var tt=$e.nextSibling;return g&&C&&e.display.currentWheelTarget==$e?$e.style.display="none":$e.parentNode.removeChild($e),tt}for(var z=l.view,Z=l.viewFrom,be=0;be<z.length;be++){var Ce=z[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var De=tr(e,Ce,Z,u);m.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(vt(Ce.changes,"gutter")>-1&&(ke=!1),Ba(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(mo(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function vl(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",lr(e,"gutterChanged",e)}function gl(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+vi(e)+"px"}function Wu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Nn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Za(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=mo(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",vl(e.display),!0}return!1}function sa(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Hu(e){var n=e.gutters,u=e.gutterSpecs;ie(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",vl(e)}function qa(e){Hu(e.display),Nr(e),Wu(e)}function Ec(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("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&&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=sa(l.gutters,l.lineNumbers),Hu(f),u.init(f)}var _a=0,mi=null;b?mi=-.53:c?mi=15:D?mi=-.7:j&&(mi=-1/3);function zu(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 or(e){var n=zu(e);return n.x*=mi,n.y*=mi,n}function Gu(e,n){var u=zu(n),l=u.x,f=u.y,m=mi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=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 be=n.target,Ce=F.view;be!=U;be=be.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&ia(e,Math.max(0,U.scrollTop+f*m)),no(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Xe(n),F.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,$e=e.doc.scrollTop,tt=$e+F.wrapper.clientHeight;ke<0?$e=Math.max(0,$e+ke-50):tt=Math.min(e.doc.height,tt+ke+50),hl(e,{top:$e,bottom:tt})}_a<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 st=U.scrollLeft-F.wheelStartX,pt=U.scrollTop-F.wheelStartY,yt=pt&&F.wheelDY&&pt/F.wheelDY||st&&F.wheelDX&&st/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!yt&&(mi=(mi*_a+yt)/(_a+1),++_a)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var Cn=function(e,n){this.ranges=e,this.primIndex=n};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.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(!ci(u.anchor,l.anchor)||!ci(u.head,l.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new rr(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new Cn(e,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Cn.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 rr=function(e,n){this.anchor=e,this.head=n};rr.prototype.from=function(){return qe(this.anchor,this.head)},rr.prototype.to=function(){return Oe(this.anchor,this.head)},rr.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,ke){return Lt(De.from(),ke.from())}),u=vt(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],z=Lt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=qe(U.from(),F.from()),be=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new rr(Ce?be:Z,Ce?Z:be))}}return new Cn(n,u)}function Ni(e,n){return new Cn([new rr(e,n||e)],0)}function Bi(e){return e.text?ot(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $u(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Bi(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+=Bi(n).ch-n.to.ch),ot(u,l)}function yl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new rr($u(f.anchor,n),$u(f.head,n)))}return Rn(e.cm,u,e.sel.primIndex)}function Ku(e,n,u){return e.line==n.line?ot(u.line,e.ch-n.ch+u.ch):ot(u.line+(e.line-n.line),e.ch)}function Cc(e,n,u){for(var l=[],f=ot(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],z=Ku(U.from,f,m),Z=Ku(Bi(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[F],Ce=Lt(be.head,be.anchor)<0;l[F]=new rr(Ce?Z:z,Ce?z:Z)}else l[F]=new rr(z,z)}return new Cn(l,e.sel.primIndex)}function es(e){e.doc.mode=An(e.options,e.doc.modeOption),ao(e)}function ao(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,Qn(e,100),e.state.modeGen++,e.curOp&&Nr(e)}function ts(e,n){return n.from.ch==0&&n.to.ch==0&&Et(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ml(e,n,u,l){function f(yt){return u?u[yt]:null}function m(yt,dt,bt){Ri(yt,dt,bt,l),lr(yt,"change",yt,n)}function F(yt,dt){for(var bt=[],It=yt;It<dt;++It)bt.push(new Ji(Z[It],f(It),l));return bt}var U=n.from,z=n.to,Z=n.text,be=Ot(e,U.line),Ce=Ot(e,z.line),De=Et(Z),ke=f(Z.length-1),$e=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(ts(e,n)){var tt=F(0,Z.length-1);m(Ce,Ce.text,ke),$e&&e.remove(U.line,$e),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+De+be.text.slice(z.ch),ke);else{var st=F(1,Z.length-1);st.push(new Ji(De+be.text.slice(z.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,st)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(z.ch),f(0)),e.remove(U.line+1,$e);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,De+Ce.text.slice(z.ch),ke);var pt=F(1,Z.length-1);$e>1&&e.remove(U.line+1,$e-1),e.insert(U.line+1,pt)}lr(e,"change",e,n)}function Ui(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=m){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function Yu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,il(e),es(e),xl(e),e.options.direction=n.direction,e.options.lineWrapping||Vs(e),e.options.mode=n.modeOption,Nr(e)}function xl(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function la(e){$r(e,function(){xl(e),Nr(e)})}function ua(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 oi(e,n){var u={from:ue(n.from),to:Bi(n),text:fi(e,n.from,n.to)};return ca(e,u,n.from.line,n.to.line+1),Ui(e,function(l){return ca(l,u,n.from.line,n.to.line+1)},!0),u}function Ju(e){for(;e.length;){var n=Et(e);if(n.ranges)e.pop();else break}}function Xu(e,n){if(n)return Ju(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Qu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Xu(f,f.lastOp==l)))U=Et(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Bi(n):F.changes.push(oi(e,n));else{var z=Et(f.done);for((!z||!z.ranges)&&fa(e.sel,f.done),F={changes:[oi(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=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||oe(e,"historyAdded")}function Zu(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 Oc(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Zu(e,m,Et(f.done),n))?f.done[f.done.length-1]=n:fa(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ju(f.undone)}function fa(e,n){var u=Et(n);u&&u.ranges&&u.equals(e)||n.push(e)}function ca(e,n,u,l){var f=n["spans_"+e.id],m=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]={}))[m]=F.markedSpans),++m})}function Tc(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 rs(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Tc(u[f]));return l}function ns(e,n){var u=rs(e,n),l=du(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==z.marker)continue e;m.push(z)}}else F&&(u[f]=F)}return u}function So(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?Cn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&vt(n,Number(be[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function bl(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new rr(f,n)}else return new rr(u||n,n)}function is(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),nn(e,new Cn([bl(e.sel.primary(),n,u,f)],0),l)}function qu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=bl(e.sel.ranges[m],n[m],null,f);var F=Rn(e.cm,l,e.sel.primIndex);nn(e,F,u)}function os(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,nn(e,Rn(e.cm,f,e.sel.primIndex),l)}function wl(e,n,u,l){nn(e,Ni(n,u),l)}function Pc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new rr(ut(e,f[m].anchor),ut(e,f[m].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 _u(e,n,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=n,as(e,n,u)):nn(e,n,u)}function nn(e,n,u){as(e,n,u),Oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function as(e,n,u){(je(e,"beforeSelectionChange")||e.cm&&je(e.cm,"beforeSelectionChange"))&&(n=Pc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);ef(e,rf(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&cn(e.cm)}function ef(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),lr(e,"cursorActivity",e))}function tf(e){ef(e,rf(e,e.sel,null,!1))}function rf(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var F=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],z=da(e,F.anchor,U&&U.anchor,u,l),Z=da(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new rr(z,Z))}return f?Rn(e.cm,f,n.primIndex):n}function Ao(e,n,u,l,f){var m=Ot(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,be="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(oe(z,"beforeCursorEnter"),z.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ce=z.find(l<0?1:-1),De=void 0;if((l<0?be:Z)&&(Ce=nf(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return Ao(e,Ce,n,l,f)}var ke=z.find(l<0?-1:1);return(l<0?Z:be)&&(ke=nf(e,ke,l,ke.line==n.line?m:null)),ke?Ao(e,ke,n,l,f):null}}return n}function da(e,n,u,l,f){var m=l||1,F=Ao(e,n,u,m,f)||!f&&Ao(e,n,u,m,!0)||Ao(e,n,u,-m,f)||!f&&Ao(e,n,u,-m,!0);return F||(e.cantEdit=!0,ot(e.first,0))}function nf(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?ut(e,ot(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?ot(n.line+1,0):null:new ot(n.line,n.ch+u)}function ss(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),ft)}function Sl(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,m,F,U){f&&(l.from=ut(e,f)),m&&(l.to=ut(e,m)),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 Eo(e,n,u){if(e.cm){if(!e.cm.curOp)return Kr(e.cm,Eo)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"))&&(n=Sl(e,n,!0),!n))){var l=tc&&!u&&hu(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)so(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else so(e,n)}}function so(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=yl(e,n);Qu(e,n,u,e.cm?e.cm.curOp.id:NaN),pa(e,n,u,du(e,n));var l=[];Ui(e,function(f,m){!m&&vt(l,f.history)==-1&&(Cl(f.history,n),l.push(f.history)),pa(f,n,null,du(f,n))})}}function Bn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(fa(m,z),u&&!m.equals(e.sel)){nn(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var be=[];fa(F,z),z.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"),De=function(tt){var st=m.changes[tt];if(st.origin=n,Ce&&!Sl(e,st,!1))return U.length=0,{};be.push(oi(e,st));var pt=tt?yl(e,st):Et(U);pa(e,st,pt,ns(e,st)),!tt&&e.cm&&e.cm.scrollIntoView({from:st.from,to:Bi(st)});var yt=[];Ui(e,function(dt,bt){!bt&&vt(yt,dt.history)==-1&&(Cl(dt.history,st),yt.push(dt.history)),pa(dt,st,null,ns(dt,st))})},ke=m.changes.length-1;ke>=0;--ke){var $e=De(ke);if($e)return $e.v}}}}function Al(e,n){if(n!=0&&(e.first+=n,e.sel=new Cn(Wt(e.sel.ranges,function(f){return new rr(ot(f.anchor.line+n,f.anchor.ch),ot(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)ii(e.cm,l,"gutter")}}function pa(e,n,u,l){if(e.cm&&!e.cm.curOp)return Kr(e.cm,pa)(e,n,u,l);if(n.to.line<e.first){Al(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);Al(e,f),n={from:ot(e.first,0),to:ot(n.to.line+f,n.to.ch),text:[Et(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:ot(m,Ot(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=fi(e,n.from,n.to),u||(u=yl(e,n)),e.cm?Ic(e.cm,n,l):ml(e,n,l),as(e,u,ft),e.cantEdit&&da(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ic(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,z=m.line;e.options.lineWrapping||(z=_t(Yn(Ot(l,m.line))),l.iter(z,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ee(e),ml(l,n,u,Ru(e)),e.options.lineWrapping||(l.iter(z,m.line+n.text.length,function(ke){var $e=Yi(ke);$e>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=$e,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),ec(l,m.line),Qn(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?Nr(e):m.line==F.line&&n.text.length==1&&!ts(e.doc,n)?ii(e,m.line,"text"):Nr(e,m.line,F.line+1,Z);var be=je(e,"changes"),Ce=je(e,"change");if(Ce||be){var De={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&lr(e,"change",e,De),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function Co(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Eo(e,{from:u,to:l,text:n,origin:f})}function El(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function of(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)El(m.ranges[U].anchor,n,u,l),El(m.ranges[U].head,n,u,l);continue}for(var z=0;z<m.changes.length;++z){var Z=m.changes[z];if(u<Z.from.line)Z.from=ot(Z.from.line+l,Z.from.ch),Z.to=ot(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 Cl(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;of(e.done,u,l,f),of(e.undone,u,l,f)}function lo(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ot(e,lt(e,n)):f=_t(n),f==null?null:(l(m,f)&&e.cm&&ii(e.cm,f,u),m)}function Oo(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}Oo.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,Xi(f),lr(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 To(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}To.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 m=Math.min(n,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var U=[];this.collapse(U),this.children=[new Oo(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],m=f.chunkSize();if(e<=m){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 Oo(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-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new To(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=vt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new To(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],m=f.chunkSize();if(e<m){var F=Math.min(n,m-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=m}}};var ha=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};ha.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=_t(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 m=Ct(this);Fn(u,Math.max(0,u.height-m)),e&&($r(e,function(){Ol(e,u,-m),ii(e,l,"widget")}),lr(e,"lineWidgetCleared",e,this,l))}},ha.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-n;!f||(di(this.doc,l)||Fn(l,l.height+f),u&&$r(u,function(){u.curOp.forceUpdate=!0,Ol(u,l,f),lr(u,"lineWidgetChanged",u,e,_t(l))}))},Ve(ha);function Ol(e,n,u){pi(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fl(e,u)}function Fc(e,n,u,l){var f=new ha(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),lo(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,m&&!di(e,F)){var z=pi(F)<e.scrollTop;Fn(F,F.height+Ct(f)),z&&fl(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&lr(m,"lineWidgetAdded",m,f,typeof n=="number"?n:_t(n)),f}var ls=0,ai=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++ls};ai.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Li(e),je(this,"clear")){var u=this.find();u&&lr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=zo(F.markedSpans,this);e&&!this.collapsed?ii(e,_t(F),"text"):e&&(U.to!=null&&(f=_t(F)),U.from!=null&&(l=_t(F))),F.markedSpans=ic(F.markedSpans,U),U.from==null&&this.collapsed&&!di(this.doc,F)&&e&&Fn(F,xo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=Yn(this.lines[z]),be=Yi(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Nr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tf(e.doc)),e&&lr(e,"markerCleared",e,this,l,f),n&&Di(e),this.parent&&this.parent.clear()}},ai.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=zo(m.markedSpans,this);if(F.from!=null&&(u=ot(n?m:_t(m),F.from),e==-1))return u;if(F.to!=null&&(l=ot(n?m:_t(m),F.to),e==1))return l}return u&&{from:u,to:l}},ai.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||$r(l,function(){var f=n.line,m=_t(n.line),F=Qs(l,m);if(F&&(_s(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!di(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Ct(u)-U;z&&Fn(f,f.height+z)}lr(l,"markerChanged",l,e)})},ai.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||vt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ai.prototype.detachLine=function(e){if(this.lines.splice(vt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Ve(ai);function uo(e,n,u,l,f){if(l&&l.shared)return Rc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Kr(e.cm,uo)(e,n,u,l,f);var m=new ai(e,f),F=Lt(n,u);if(l&&Qe(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Da(e,n.line,n,u,m)||n.line!=u.line&&Da(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");nc()}m.addToHistory&&Qu(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&&m.collapsed&&!z.options.lineWrapping&&Yn(Ce)==z.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&Fn(Ce,0),Yd(Ce,new La(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){di(e,Ce)&&Fn(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(rc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++ls,m.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),m.collapsed)Nr(z,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)ii(z,be,"text");m.atomic&&tf(z.doc),lr(z,"markerAdded",z,m)}return m}var Po=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};Po.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Po.prototype.find=function(e,n){return this.primary.find(e,n)},Ve(Po);function Rc(e,n,u,l,f){l=Qe(l),l.shared=!1;var m=[uo(e,n,u,l,f)],F=m[0],U=l.widgetNode;return Ui(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),m.push(uo(z,ut(z,n),ut(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=Et(m)}),new Po(m,F)}function af(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(n){return n.parent})}function Tl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=uo(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function kc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Ui(f.primary.doc,function(z){return m.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];vt(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var Mc=0,yn=function(e,n,u,l,f){if(!(this instanceof yn))return new yn(e,n,u,l,f);u==null&&(u=0),To.call(this,[new Oo([new Ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=ot(u,0);this.sel=Ni(m),this.history=new ua(null),this.id=++Mc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ml(this,{from:m,to:m,text:e}),nn(this,Ni(m),ft)};yn.prototype=St(To.prototype,{constructor:yn,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=Ii(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:gr(function(e){var n=ot(this.first,0),u=this.first+this.size-1;Eo(this,{from:n,to:ot(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&na(this.cm,0,0),nn(this,Ni(n),ft)}),replaceRange:function(e,n,u,l){n=ut(this,n),u=u?ut(this,u):n,Co(this,e,n,u,l)},getRange:function(e,n,u){var l=fi(this,ut(this,e),ut(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(ri(this,e))return Ot(this,e)},getLineNumber:function(e){return _t(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Yn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(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:gr(function(e,n,u){wl(this,ut(this,typeof e=="number"?ot(e,n||0):e),null,u)}),setSelection:gr(function(e,n,u){wl(this,ut(this,e),ut(this,n||e),u)}),extendSelection:gr(function(e,n,u){is(this,ut(this,e),n&&ut(this,n),u)}),extendSelections:gr(function(e,n){qu(this,Qt(this,e),n)}),extendSelectionsBy:gr(function(e,n){var u=Wt(this.sel.ranges,e);qu(this,Qt(this,u),n)}),setSelections:gr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new rr(ut(this,e[f].anchor),ut(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),nn(this,Rn(this.cm,l,n),u)}}),addSelection:gr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new rr(ut(this,e),ut(this,n||e))),nn(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=fi(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=fi(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:gr(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&Cc(this,l,n),z=l.length-1;z>=0;z--)Eo(this,l[z]);U?_u(this,U):this.cm&&cn(this.cm)}),undo:gr(function(){Bn(this,"undo")}),redo:gr(function(){Bn(this,"redo")}),undoSelection:gr(function(){Bn(this,"undo",!0)}),redoSelection:gr(function(){Bn(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 ua(this.history),Ui(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:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(e){var n=this.history=new ua(this.history);n.done=So(e.done.slice(0),null,!0),n.undone=So(e.undone.slice(0),null,!0)},setGutterMarker:gr(function(e,n,u){return lo(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:gr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&lo(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(!ri(this,e)||(n=e,e=Ot(this,e),!e))return null}else if(n=_t(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:gr(function(e,n,u){return lo(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:gr(function(e,n,u){return lo(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(ce(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:gr(function(e,n,u){return Fc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return uo(this,ut(this,e),ut(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=ut(this,e),uo(this,e,e,u,"bookmark")},findMarksAt:function(e){e=ut(this,e);var n=[],u=Ot(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=ut(this,e),n=ut(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var F=m.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 m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),ut(this,ot(u,n))},indexFromPos:function(e){e=ut(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 yn(Ii(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 yn(Ii(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}],Tl(l,af(this)),l},unlinkDoc:function(e){if(e instanceof yr&&(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),kc(af(this));break}}if(e.history==this.history){var l=[e.id];Ui(e,function(f){return l.push(f.id)},!0),e.history=new ua(null),e.history.done=So(this.history.done,l),e.history.undone=So(this.history.undone,l)}},iterLinkedDocs:function(e){Ui(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zn(e)},lineSeparator:function(){return this.lineSep||`
|
|
27
|
+
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function Mu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?ot(n.line,n.ch+1,"before"):n,n=n.ch?ot(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=Xn(e,n),z=!u||u==n?U:Xn(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=ul(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(ia(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(F=!0)),Z.scrollLeft!=null&&(no(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function Lu(e,n){var u=ul(e,n);u.scrollTop!=null&&ia(e,u.scrollTop),u.scrollLeft!=null&&no(e,u.scrollLeft)}function ul(e,n){var u=e.display,l=xo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Qo(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Js(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+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(F.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=Zi(e)-u.gutters.offsetWidth,$e=n.right-n.left>ke;return $e&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<De?F.scrollLeft=Math.max(0,n.left+Ce-($e?0:10)):n.right>ke+De-3&&(F.scrollLeft=n.right+($e?0:10)-ke),F}function fl(e,n){n!=null&&(Ja(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function cn(e){Ja(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function na(e,n,u){(n!=null||u!=null)&&Ja(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function ro(e,n){Ja(e),e.curOp.scrollToPos=n}function Ja(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Pu(e,n.from),l=Pu(e,n.to);Du(e,u,l,n.margin)}}function Du(e,n,u,l){var f=ul(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});na(e,f.scrollLeft,f.scrollTop)}function ia(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||hl(e,{top:n}),Nu(e,n,!0),c&&hl(e),Qn(e,100))}function Nu(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 no(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,Wu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function wo(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Js(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+vi(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var io=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("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&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};io.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 m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"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}},io.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},io.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},io.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 ct,this.disableVert=new ct},io.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},io.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var oa=function(){};oa.prototype.update=function(){return{bottom:0,right:0}},oa.prototype.setScrollLeft=function(){},oa.prototype.setScrollTop=function(){},oa.prototype.clear=function(){};function gi(e,n){n||(n=wo(e));var u=e.display.barWidth,l=e.display.barHeight;Xa(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ya(e),Xa(e,wo(e)),u=e.display.barWidth,l=e.display.barHeight}function Xa(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 En={native:io,null:oa};function Qa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new En[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"?no(e,n):ia(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var yi=0;function Li(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:++yi,markArrays:null},bu(e.curOp)}function Di(e){var n=e.curOp;n&&Ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Qd(u)})}function Qd(e){for(var n=e.ops,u=0;u<n.length;u++)cl(n[u]);for(var l=0;l<n.length;l++)Bu(n[l]);for(var f=0;f<n.length;f++)Uu(n[f]);for(var m=0;m<n.length;m++)Mr(n[m]);for(var F=0;F<n.length;F++)wc(n[F])}function cl(e){var n=e.cm,u=n.display;ju(n),e.updateMaxLine&&Vs(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 oo(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Bu(e){e.updatedDisplay=e.mustUpdate&&pl(e.cm,e.update)}function Uu(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ya(n),e.barMeasure=wo(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Ua(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+vi(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Mr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&no(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&gi(n,e.barMeasure),e.updatedDisplay&&gl(n,e.barMeasure),e.selectionChanged&&al(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&sl(e.cm)}function wc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Vu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&Nu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&no(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Mu(n,ut(l,e.scrollToPos.from),ut(l,e.scrollToPos.to),e.scrollToPos.margin);bc(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ie(m[U],"hide");if(F)for(var z=0;z<F.length;++z)F[z].lines.length&&ie(F[z],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&ie(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function $r(e,n){if(e.curOp)return n();Li(e);try{return n()}finally{Di(e)}}function Kr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Li(e);try{return n.apply(e,arguments)}finally{Di(e)}}}function Br(e){return function(){if(this.curOp)return e.apply(this,arguments);Li(this);try{return e.apply(this,arguments)}finally{Di(this)}}}function gr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Li(n);try{return e.apply(this,arguments)}finally{Di(n)}}}function Qn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(Sc,e))}function Sc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=un(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Gr(n.mode,l.state):null,z=er(e,m,l,!0);U&&(l.state=U),m.styles=z.styles;var Z=m.styleClasses,be=z.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=m.styles[De];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ks(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Qn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&$r(e,function(){for(var m=0;m<f.length;m++)ii(e,f[m],"text")})}}var oo=function(e,n,u){var l=e.display;this.viewport=n,this.visible=ra(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Zi(e),this.force=u,this.dims=nl(e),this.events=[]};oo.prototype.signal=function(e,n){je(e,n)&&this.events.push(arguments)},oo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ie.apply(null,this.events[e])};function ju(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=vi(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=vi(e)+"px",n.scrollbarsClipped=!0)}function aa(e){if(e.hasFocus())return null;var n=Fe();if(!n||!se(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&se(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function dl(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&se(document.body,e.anchorNode)&&se(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 pl(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return ki(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&&za(e)==0)return!1;Za(e)&&(ki(e),n.dims=nl(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Fi&&(m=$o(e.doc,m),F=js(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;xc(e,m,F),u.viewOffset=pi(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=za(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=aa(e);return z>4&&(u.lineDiv.style.display="none"),Ac(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,dl(Z),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Qn(e,400)),u.updateLineNumbers=null,!0}function Vu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Js(e.display)-Qo(e),u.top)}),n.visible=ra(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=ra(e.display,e.doc,u));if(!pl(e,n))break;Ya(e);var f=wo(e);Mi(e),gi(e,f),gl(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 hl(e,n){var u=new oo(e,n);if(pl(e,u)){Ya(e),Vu(e,u);var l=wo(e);Mi(e),gi(e,l),gl(e,l),u.finish()}}function Ac(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U($e){var tt=$e.nextSibling;return g&&C&&e.display.currentWheelTarget==$e?$e.style.display="none":$e.parentNode.removeChild($e),tt}for(var z=l.view,Z=l.viewFrom,be=0;be<z.length;be++){var Ce=z[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var De=tr(e,Ce,Z,u);m.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(vt(Ce.changes,"gutter")>-1&&(ke=!1),Ba(e,Ce,Z,u)),ke&&(ne(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(mo(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function vl(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",lr(e,"gutterChanged",e)}function gl(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+vi(e)+"px"}function Wu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Nn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Za(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=mo(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",vl(e.display),!0}return!1}function sa(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Hu(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",vl(e)}function qa(e){Hu(e.display),Nr(e),Wu(e)}function Ec(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=ve("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=ve("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=ve("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("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&&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=sa(l.gutters,l.lineNumbers),Hu(f),u.init(f)}var _a=0,mi=null;b?mi=-.53:c?mi=15:D?mi=-.7:j&&(mi=-1/3);function zu(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 or(e){var n=zu(e);return n.x*=mi,n.y*=mi,n}function Gu(e,n){var u=zu(n),l=u.x,f=u.y,m=mi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=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 be=n.target,Ce=F.view;be!=U;be=be.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&ia(e,Math.max(0,U.scrollTop+f*m)),no(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Xe(n),F.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,$e=e.doc.scrollTop,tt=$e+F.wrapper.clientHeight;ke<0?$e=Math.max(0,$e+ke-50):tt=Math.min(e.doc.height,tt+ke+50),hl(e,{top:$e,bottom:tt})}_a<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 st=U.scrollLeft-F.wheelStartX,pt=U.scrollTop-F.wheelStartY,yt=pt&&F.wheelDY&&pt/F.wheelDY||st&&F.wheelDX&&st/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!yt&&(mi=(mi*_a+yt)/(_a+1),++_a)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var Cn=function(e,n){this.ranges=e,this.primIndex=n};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.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(!ci(u.anchor,l.anchor)||!ci(u.head,l.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new rr(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new Cn(e,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Cn.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 rr=function(e,n){this.anchor=e,this.head=n};rr.prototype.from=function(){return qe(this.anchor,this.head)},rr.prototype.to=function(){return Oe(this.anchor,this.head)},rr.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,ke){return Lt(De.from(),ke.from())}),u=vt(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],z=Lt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=qe(U.from(),F.from()),be=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new rr(Ce?be:Z,Ce?Z:be))}}return new Cn(n,u)}function Ni(e,n){return new Cn([new rr(e,n||e)],0)}function Bi(e){return e.text?ot(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $u(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Bi(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+=Bi(n).ch-n.to.ch),ot(u,l)}function yl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new rr($u(f.anchor,n),$u(f.head,n)))}return Rn(e.cm,u,e.sel.primIndex)}function Ku(e,n,u){return e.line==n.line?ot(u.line,e.ch-n.ch+u.ch):ot(u.line+(e.line-n.line),e.ch)}function Cc(e,n,u){for(var l=[],f=ot(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],z=Ku(U.from,f,m),Z=Ku(Bi(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[F],Ce=Lt(be.head,be.anchor)<0;l[F]=new rr(Ce?Z:z,Ce?z:Z)}else l[F]=new rr(z,z)}return new Cn(l,e.sel.primIndex)}function es(e){e.doc.mode=An(e.options,e.doc.modeOption),ao(e)}function ao(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,Qn(e,100),e.state.modeGen++,e.curOp&&Nr(e)}function ts(e,n){return n.from.ch==0&&n.to.ch==0&&Et(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ml(e,n,u,l){function f(yt){return u?u[yt]:null}function m(yt,dt,bt){Ri(yt,dt,bt,l),lr(yt,"change",yt,n)}function F(yt,dt){for(var bt=[],It=yt;It<dt;++It)bt.push(new Ji(Z[It],f(It),l));return bt}var U=n.from,z=n.to,Z=n.text,be=Ot(e,U.line),Ce=Ot(e,z.line),De=Et(Z),ke=f(Z.length-1),$e=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(ts(e,n)){var tt=F(0,Z.length-1);m(Ce,Ce.text,ke),$e&&e.remove(U.line,$e),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+De+be.text.slice(z.ch),ke);else{var st=F(1,Z.length-1);st.push(new Ji(De+be.text.slice(z.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,st)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(z.ch),f(0)),e.remove(U.line+1,$e);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,De+Ce.text.slice(z.ch),ke);var pt=F(1,Z.length-1);$e>1&&e.remove(U.line+1,$e-1),e.insert(U.line+1,pt)}lr(e,"change",e,n)}function Ui(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=m){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function Yu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,il(e),es(e),xl(e),e.options.direction=n.direction,e.options.lineWrapping||Vs(e),e.options.mode=n.modeOption,Nr(e)}function xl(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function la(e){$r(e,function(){xl(e),Nr(e)})}function ua(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 oi(e,n){var u={from:ue(n.from),to:Bi(n),text:fi(e,n.from,n.to)};return ca(e,u,n.from.line,n.to.line+1),Ui(e,function(l){return ca(l,u,n.from.line,n.to.line+1)},!0),u}function Ju(e){for(;e.length;){var n=Et(e);if(n.ranges)e.pop();else break}}function Xu(e,n){if(n)return Ju(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Qu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Xu(f,f.lastOp==l)))U=Et(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Bi(n):F.changes.push(oi(e,n));else{var z=Et(f.done);for((!z||!z.ranges)&&fa(e.sel,f.done),F={changes:[oi(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=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ie(e,"historyAdded")}function Zu(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 Oc(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Zu(e,m,Et(f.done),n))?f.done[f.done.length-1]=n:fa(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ju(f.undone)}function fa(e,n){var u=Et(n);u&&u.ranges&&u.equals(e)||n.push(e)}function ca(e,n,u,l){var f=n["spans_"+e.id],m=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]={}))[m]=F.markedSpans),++m})}function Tc(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 rs(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(Tc(u[f]));return l}function ns(e,n){var u=rs(e,n),l=du(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==z.marker)continue e;m.push(z)}}else F&&(u[f]=F)}return u}function So(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?Cn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&vt(n,Number(be[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function bl(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new rr(f,n)}else return new rr(u||n,n)}function is(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),nn(e,new Cn([bl(e.sel.primary(),n,u,f)],0),l)}function qu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=bl(e.sel.ranges[m],n[m],null,f);var F=Rn(e.cm,l,e.sel.primIndex);nn(e,F,u)}function os(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,nn(e,Rn(e.cm,f,e.sel.primIndex),l)}function wl(e,n,u,l){nn(e,Ni(n,u),l)}function Pc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new rr(ut(e,f[m].anchor),ut(e,f[m].head))},origin:u&&u.origin};return ie(e,"beforeSelectionChange",e,l),e.cm&&ie(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Rn(e.cm,l.ranges,l.ranges.length-1):n}function _u(e,n,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=n,as(e,n,u)):nn(e,n,u)}function nn(e,n,u){as(e,n,u),Oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function as(e,n,u){(je(e,"beforeSelectionChange")||e.cm&&je(e.cm,"beforeSelectionChange"))&&(n=Pc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);ef(e,rf(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&cn(e.cm)}function ef(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),lr(e,"cursorActivity",e))}function tf(e){ef(e,rf(e,e.sel,null,!1))}function rf(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var F=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],z=da(e,F.anchor,U&&U.anchor,u,l),Z=da(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new rr(z,Z))}return f?Rn(e.cm,f,n.primIndex):n}function Ao(e,n,u,l,f){var m=Ot(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,be="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(ie(z,"beforeCursorEnter"),z.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ce=z.find(l<0?1:-1),De=void 0;if((l<0?be:Z)&&(Ce=nf(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return Ao(e,Ce,n,l,f)}var ke=z.find(l<0?-1:1);return(l<0?Z:be)&&(ke=nf(e,ke,l,ke.line==n.line?m:null)),ke?Ao(e,ke,n,l,f):null}}return n}function da(e,n,u,l,f){var m=l||1,F=Ao(e,n,u,m,f)||!f&&Ao(e,n,u,m,!0)||Ao(e,n,u,-m,f)||!f&&Ao(e,n,u,-m,!0);return F||(e.cantEdit=!0,ot(e.first,0))}function nf(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?ut(e,ot(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?ot(n.line+1,0):null:new ot(n.line,n.ch+u)}function ss(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),ft)}function Sl(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,m,F,U){f&&(l.from=ut(e,f)),m&&(l.to=ut(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),ie(e,"beforeChange",e,l),e.cm&&ie(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 Eo(e,n,u){if(e.cm){if(!e.cm.curOp)return Kr(e.cm,Eo)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"))&&(n=Sl(e,n,!0),!n))){var l=tc&&!u&&hu(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)so(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else so(e,n)}}function so(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=yl(e,n);Qu(e,n,u,e.cm?e.cm.curOp.id:NaN),pa(e,n,u,du(e,n));var l=[];Ui(e,function(f,m){!m&&vt(l,f.history)==-1&&(Cl(f.history,n),l.push(f.history)),pa(f,n,null,du(f,n))})}}function Bn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(fa(m,z),u&&!m.equals(e.sel)){nn(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var be=[];fa(F,z),z.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"),De=function(tt){var st=m.changes[tt];if(st.origin=n,Ce&&!Sl(e,st,!1))return U.length=0,{};be.push(oi(e,st));var pt=tt?yl(e,st):Et(U);pa(e,st,pt,ns(e,st)),!tt&&e.cm&&e.cm.scrollIntoView({from:st.from,to:Bi(st)});var yt=[];Ui(e,function(dt,bt){!bt&&vt(yt,dt.history)==-1&&(Cl(dt.history,st),yt.push(dt.history)),pa(dt,st,null,ns(dt,st))})},ke=m.changes.length-1;ke>=0;--ke){var $e=De(ke);if($e)return $e.v}}}}function Al(e,n){if(n!=0&&(e.first+=n,e.sel=new Cn(Wt(e.sel.ranges,function(f){return new rr(ot(f.anchor.line+n,f.anchor.ch),ot(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)ii(e.cm,l,"gutter")}}function pa(e,n,u,l){if(e.cm&&!e.cm.curOp)return Kr(e.cm,pa)(e,n,u,l);if(n.to.line<e.first){Al(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);Al(e,f),n={from:ot(e.first,0),to:ot(n.to.line+f,n.to.ch),text:[Et(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:ot(m,Ot(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=fi(e,n.from,n.to),u||(u=yl(e,n)),e.cm?Ic(e.cm,n,l):ml(e,n,l),as(e,u,ft),e.cantEdit&&da(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ic(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,z=m.line;e.options.lineWrapping||(z=_t(Yn(Ot(l,m.line))),l.iter(z,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ee(e),ml(l,n,u,Ru(e)),e.options.lineWrapping||(l.iter(z,m.line+n.text.length,function(ke){var $e=Yi(ke);$e>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=$e,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),ec(l,m.line),Qn(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?Nr(e):m.line==F.line&&n.text.length==1&&!ts(e.doc,n)?ii(e,m.line,"text"):Nr(e,m.line,F.line+1,Z);var be=je(e,"changes"),Ce=je(e,"change");if(Ce||be){var De={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&lr(e,"change",e,De),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function Co(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Eo(e,{from:u,to:l,text:n,origin:f})}function El(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function of(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)El(m.ranges[U].anchor,n,u,l),El(m.ranges[U].head,n,u,l);continue}for(var z=0;z<m.changes.length;++z){var Z=m.changes[z];if(u<Z.from.line)Z.from=ot(Z.from.line+l,Z.from.ch),Z.to=ot(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 Cl(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;of(e.done,u,l,f),of(e.undone,u,l,f)}function lo(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ot(e,lt(e,n)):f=_t(n),f==null?null:(l(m,f)&&e.cm&&ii(e.cm,f,u),m)}function Oo(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}Oo.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,Xi(f),lr(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 To(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}To.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 m=Math.min(n,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var U=[];this.collapse(U),this.children=[new Oo(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],m=f.chunkSize();if(e<=m){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 Oo(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-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new To(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=vt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new To(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],m=f.chunkSize();if(e<m){var F=Math.min(n,m-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=m}}};var ha=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};ha.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=_t(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 m=Ct(this);Fn(u,Math.max(0,u.height-m)),e&&($r(e,function(){Ol(e,u,-m),ii(e,l,"widget")}),lr(e,"lineWidgetCleared",e,this,l))}},ha.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-n;!f||(di(this.doc,l)||Fn(l,l.height+f),u&&$r(u,function(){u.curOp.forceUpdate=!0,Ol(u,l,f),lr(u,"lineWidgetChanged",u,e,_t(l))}))},Ve(ha);function Ol(e,n,u){pi(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fl(e,u)}function Fc(e,n,u,l){var f=new ha(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),lo(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,m&&!di(e,F)){var z=pi(F)<e.scrollTop;Fn(F,F.height+Ct(f)),z&&fl(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&lr(m,"lineWidgetAdded",m,f,typeof n=="number"?n:_t(n)),f}var ls=0,ai=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++ls};ai.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Li(e),je(this,"clear")){var u=this.find();u&&lr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=zo(F.markedSpans,this);e&&!this.collapsed?ii(e,_t(F),"text"):e&&(U.to!=null&&(f=_t(F)),U.from!=null&&(l=_t(F))),F.markedSpans=ic(F.markedSpans,U),U.from==null&&this.collapsed&&!di(this.doc,F)&&e&&Fn(F,xo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=Yn(this.lines[z]),be=Yi(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Nr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tf(e.doc)),e&&lr(e,"markerCleared",e,this,l,f),n&&Di(e),this.parent&&this.parent.clear()}},ai.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=zo(m.markedSpans,this);if(F.from!=null&&(u=ot(n?m:_t(m),F.from),e==-1))return u;if(F.to!=null&&(l=ot(n?m:_t(m),F.to),e==1))return l}return u&&{from:u,to:l}},ai.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||$r(l,function(){var f=n.line,m=_t(n.line),F=Qs(l,m);if(F&&(_s(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!di(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Ct(u)-U;z&&Fn(f,f.height+z)}lr(l,"markerChanged",l,e)})},ai.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||vt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ai.prototype.detachLine=function(e){if(this.lines.splice(vt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Ve(ai);function uo(e,n,u,l,f){if(l&&l.shared)return Rc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Kr(e.cm,uo)(e,n,u,l,f);var m=new ai(e,f),F=Lt(n,u);if(l&&Qe(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=ve("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Da(e,n.line,n,u,m)||n.line!=u.line&&Da(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");nc()}m.addToHistory&&Qu(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&&m.collapsed&&!z.options.lineWrapping&&Yn(Ce)==z.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&Fn(Ce,0),Yd(Ce,new La(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){di(e,Ce)&&Fn(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(rc(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++ls,m.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),m.collapsed)Nr(z,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)ii(z,be,"text");m.atomic&&tf(z.doc),lr(z,"markerAdded",z,m)}return m}var Po=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};Po.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Po.prototype.find=function(e,n){return this.primary.find(e,n)},Ve(Po);function Rc(e,n,u,l,f){l=Qe(l),l.shared=!1;var m=[uo(e,n,u,l,f)],F=m[0],U=l.widgetNode;return Ui(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),m.push(uo(z,ut(z,n),ut(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=Et(m)}),new Po(m,F)}function af(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(n){return n.parent})}function Tl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=uo(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function kc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Ui(f.primary.doc,function(z){return m.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];vt(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var Mc=0,yn=function(e,n,u,l,f){if(!(this instanceof yn))return new yn(e,n,u,l,f);u==null&&(u=0),To.call(this,[new Oo([new Ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=ot(u,0);this.sel=Ni(m),this.history=new ua(null),this.id=++Mc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ml(this,{from:m,to:m,text:e}),nn(this,Ni(m),ft)};yn.prototype=St(To.prototype,{constructor:yn,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=Ii(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:gr(function(e){var n=ot(this.first,0),u=this.first+this.size-1;Eo(this,{from:n,to:ot(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&na(this.cm,0,0),nn(this,Ni(n),ft)}),replaceRange:function(e,n,u,l){n=ut(this,n),u=u?ut(this,u):n,Co(this,e,n,u,l)},getRange:function(e,n,u){var l=fi(this,ut(this,e),ut(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(ri(this,e))return Ot(this,e)},getLineNumber:function(e){return _t(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Yn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(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:gr(function(e,n,u){wl(this,ut(this,typeof e=="number"?ot(e,n||0):e),null,u)}),setSelection:gr(function(e,n,u){wl(this,ut(this,e),ut(this,n||e),u)}),extendSelection:gr(function(e,n,u){is(this,ut(this,e),n&&ut(this,n),u)}),extendSelections:gr(function(e,n){qu(this,Qt(this,e),n)}),extendSelectionsBy:gr(function(e,n){var u=Wt(this.sel.ranges,e);qu(this,Qt(this,u),n)}),setSelections:gr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new rr(ut(this,e[f].anchor),ut(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),nn(this,Rn(this.cm,l,n),u)}}),addSelection:gr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new rr(ut(this,e),ut(this,n||e))),nn(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=fi(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=fi(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:gr(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&Cc(this,l,n),z=l.length-1;z>=0;z--)Eo(this,l[z]);U?_u(this,U):this.cm&&cn(this.cm)}),undo:gr(function(){Bn(this,"undo")}),redo:gr(function(){Bn(this,"redo")}),undoSelection:gr(function(){Bn(this,"undo",!0)}),redoSelection:gr(function(){Bn(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 ua(this.history),Ui(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:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(e){var n=this.history=new ua(this.history);n.done=So(e.done.slice(0),null,!0),n.undone=So(e.undone.slice(0),null,!0)},setGutterMarker:gr(function(e,n,u){return lo(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:gr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&lo(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(!ri(this,e)||(n=e,e=Ot(this,e),!e))return null}else if(n=_t(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:gr(function(e,n,u){return lo(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:gr(function(e,n,u){return lo(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(ce(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:gr(function(e,n,u){return Fc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return uo(this,ut(this,e),ut(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=ut(this,e),uo(this,e,e,u,"bookmark")},findMarksAt:function(e){e=ut(this,e);var n=[],u=Ot(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=ut(this,e),n=ut(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var F=m.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 m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),ut(this,ot(u,n))},indexFromPos:function(e){e=ut(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 yn(Ii(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 yn(Ii(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}],Tl(l,af(this)),l},unlinkDoc:function(e){if(e instanceof yr&&(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),kc(af(this));break}}if(e.history==this.history){var l=[e.id];Ui(e,function(f){return l.push(f.id)},!0),e.history=new ua(null),e.history.done=So(this.history.done,l),e.history.undone=So(this.history.undone,l)}},iterLinkedDocs:function(e){Ui(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
28
|
`},setDirection:gr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&la(this.cm))})}),yn.prototype.eachLine=yn.prototype.iter;var sf=0;function Lc(e){var n=this;if(lf(n),!(pe(n,e)||hi(n.display,e))){Xe(e),b&&(sf=+new Date);var u=eo(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&Kr(n,function(){u=ut(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(m.filter(function($e){return $e!=null}).join(n.doc.lineSeparator())),origin:"paste"};Eo(n.doc,ke),_u(n.doc,Ni(ut(n.doc,u),ut(n.doc,Bi(ke))))})()},z=function(ke,$e){if(n.options.allowDropFileTypes&&vt(n.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var st=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(st)){U();return}m[$e]=st,U()},tt.readAsText(ke)},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 be=e.dataTransfer.getData("Text");if(be){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),as(n.doc,Ni(u,u)),Ce)for(var De=0;De<Ce.length;++De)Co(n.doc,"",Ce[De].anchor,Ce[De].head,"drag");n.replaceSelection(be,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function Dc(e,n){if(b&&(!e.state.draggingText||+new Date-sf<100)){Nt(n);return}if(!(pe(e,n)||hi(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=we("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 Nc(e,n){var u=eo(e,n);if(!!u){var l=document.createDocumentFragment();ol(e,u,l),e.display.dragCursor||(e.display.dragCursor=we("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),xe(e.display.dragCursor,l)}}function lf(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function us(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 m=0;m<u.length;m++)e(u[m])})}}var va=!1;function uf(){va||(Bc(),va=!0)}function Bc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,us(Uc)},100))}),N(window,"blur",function(){return us(bo)})}function Uc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var On={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"},ga=0;ga<10;ga++)On[ga+48]=On[ga+96]=String(ga);for(var ya=65;ya<=90;ya++)On[ya]=String.fromCharCode(ya);for(var Io=1;Io<=12;Io++)On[Io+111]=On[Io+63235]="F"+Io;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=C?si.macDefault:si.pcDefault;function ff(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,m,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))m=!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),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Zd(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(" "),ff),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+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 xi(e,n,u,l){n=fs(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 xi(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var F=xi(e,n.fallthrough[m],u,l);if(F)return F}}}function cf(e){var n=typeof e=="string"?e:On[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Pl(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 df(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=On[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Pl(u,e,n))}function fs(e){return typeof e=="string"?si[e]:e}function fo(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,Et(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}$r(e,function(){for(var U=l.length-1;U>=0;U--)Co(e.doc,"",l[U].from,l[U].to,"+delete");cn(e)})}function cs(e,n,u){var l=Ge(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ds(e,n,u){var l=cs(e,n.ch,u);return l==null?null:new ot(n.line,l,u<0?"after":"before")}function Il(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=O(u,n.doc.direction);if(m){var F=f<0?Et(m):m[0],U=f<0==(F.level==1),z=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var be=ni(n,u);Z=f<0?u.text.length-1:0;var Ce=Jn(n,be,Z).top;Z=Ke(function(De){return Jn(n,be,De).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),z=="before"&&(Z=cs(u,Z,1))}else Z=f<0?F.to:F.from;return new ot(l,Z,z)}}return new ot(l,f<0?u.text.length:0,f<0?"before":"after")}function pf(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return ds(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 m=K(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return ds(n,u,l);var U=function(pt,yt){return cs(n,pt instanceof ot?pt.ch:pt,yt)},z,Z=function(pt){return e.options.lineWrapping?(z=z||ni(e,n),Fu(e,n,z,pt)):{begin:0,end:n.text.length}},be=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,De=U(u,Ce?1:-1);if(De!=null&&(Ce?De<=F.to&&De<=be.end:De>=F.from&&De>=be.begin)){var ke=Ce?"before":"after";return new ot(u.line,De,ke)}}var $e=function(pt,yt,dt){for(var bt=function(ir,br){return br?new ot(u.line,U(ir,1),"before"):new ot(u.line,ir,"after")};pt>=0&&pt<f.length;pt+=yt){var It=f[pt],_e=yt>0==(It.level!=1),Mt=_e?dt.begin:U(dt.end,-1);if(It.from<=Mt&&Mt<It.to||(Mt=_e?It.from:U(It.to,-1),dt.begin<=Mt&&Mt<dt.end))return bt(Mt,_e)}},tt=$e(m+l,l,be);if(tt)return tt;var st=l>0?be.end:U(be.begin,-1);return st!=null&&!(l>0&&st==n.text.length)&&(tt=$e(l>0?0:f.length-1,l,Z(st)),tt)?tt:null}var ma={selectAll:ss,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ft)},killLine:function(e){return fo(e,function(n){if(n.empty()){var u=Ot(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:ot(n.head.line+1,0)}:{from:n.head,to:ot(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return fo(e,function(n){return{from:ot(n.from().line,0),to:ut(e.doc,ot(n.to().line+1,0))}})},delLineLeft:function(e){return fo(e,function(n){return{from:ot(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return fo(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 fo(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(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Fo(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return ps(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return jc(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")},xt)},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")},xt)},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/)?ps(e,n.head):l},xt)},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 m=u[f].from(),F=Je(e.getLine(m.line),m.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 $r(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Ot(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new ot(f.line,f.ch-1)),f.ch>0)f=new ot(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),ot(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ot(e.doc,f.line-1).text;F&&(f=new ot(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),ot(f.line-1,F.length-1),f,"+transpose"))}}u.push(new rr(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return $r(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);cn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Fo(e,n){var u=Ot(e.doc,n),l=Yn(u);return l!=u&&(n=_t(l)),Il(!0,e,l,n,1)}function jc(e,n){var u=Ot(e.doc,n),l=yu(u);return l!=u&&(n=_t(l)),Il(!0,e,u,n,-1)}function ps(e,n){var u=Fo(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=m&&n.ch;return ot(u.line,F?0:m,u.sticky)}return u}function hs(e,n,u){if(typeof n=="string"&&(n=ma[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)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Vc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=xi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&xi(n,e.options.extraKeys,u,e)||xi(n,e.options.keyMap,u,e)}var vs=new ct;function xa(e,n,u,l){var f=e.state.keySeq;if(f){if(cf(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:vs.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Wc(e,f+" "+n,u,l))return!0}return Wc(e,n,u,l)}function Wc(e,n,u,l){var f=Vc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&lr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Xe(u),al(e)),!!f}function hf(e,n){var u=df(n,!0);return u?n.shiftKey&&!e.state.keySeq?xa(e,"Shift-"+u,n,function(l){return hs(e,l,!0)})||xa(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hs(e,l)}):xa(e,u,n,function(l){return hs(e,l)}):!1}function Hc(e,n,u){return xa(e,"'"+u+"'",n,function(l){return hs(e,l,!0)})}var gs=null;function vf(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!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=hf(n,e);B&&(gs=l?u:null,!l&&u==88&&!Ln&&(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)&&zc(n)}}function zc(e){var n=e.display.lineDiv;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function gf(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())&&!(hi(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==gs){gs=null,Xe(e);return}if(!(B&&(!e.which||e.which<10)&&hf(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Hc(n,e,f)||n.display.input.onKeyPress(e))}}}var Gc=400,Rl=function(e,n,u){this.time=e,this.pos=n,this.button=u};Rl.prototype.compare=function(e,n,u){return this.time+Gc>e&&Lt(n,this.pos)==0&&u==this.button};var ba,wa;function $c(e,n){var u=+new Date;return wa&&wa.compare(u,e,n)?(ba=wa=null,"triple"):ba&&ba.compare(u,e,n)?(wa=new Rl(u,e,n),ba=null,"double"):(ba=new Rl(u,e,n),wa=null,"single")}function yf(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,hi(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!kl(n,e)){var l=eo(n,e),f=bn(e),m=l?$c(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Kc(n,f,l,m,e))&&(f==1?l?Jc(n,l,m,e):Tt(e)==u.scroller&&Xe(e):f==2?(l&&is(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):ta(n)))}}}function Kc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,xa(e,Pl(m,f),f,function(F){if(typeof F=="string"&&(F=ma[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Yc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"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 Jc(e,n,u,l){b?setTimeout(rt(sl,e),0):e.curOp.focus=Fe();var f=Yc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&zr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Lt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?ys(e,l,n,f):Xc(e,l,n,f)}function ys(e,n,u,l){var f=e.display,m=!1,F=Kr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ta(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",z),de(f.scroller,"drop",F),m||(Xe(Z),l.addNew||is(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){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return m=!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",U),N(f.scroller,"dragstart",z),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function mf(e,n,u){if(u=="char")return new rr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new rr(ot(n.line,0),ut(e.doc,ot(n.line+1,0)));var l=u(e,n);return new rr(l.from,l.to)}function Xc(e,n,u,l){b&&ta(e);var f=e.display,m=e.doc;Xe(n);var F,U,z=m.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new rr(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new rr(u,u)),u=eo(e,n,!0,!0),U=-1;else{var be=mf(e,u,l.unit);l.extend?F=bl(F,be.anchor,be.head,l.extend):F=be}l.addNew?U==-1?(U=Z.length,nn(m,Rn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(nn(m,Rn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=m.sel):os(m,U,F,mt):(U=0,nn(m,new Cn([F],0),mt),z=m.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var bt=[],It=e.options.tabSize,_e=Je(Ot(m,u.line).text,u.ch,It),Mt=Je(Ot(m,dt.line).text,dt.ch,It),ir=Math.min(_e,Mt),br=Math.max(_e,Mt),qt=Math.min(u.line,dt.line),Tn=Math.min(e.lastLine(),Math.max(u.line,dt.line));qt<=Tn;qt++){var mn=Ot(m,qt).text,Lr=ht(mn,ir,It);ir==br?bt.push(new rr(ot(qt,Lr),ot(qt,Lr))):mn.length>Lr&&bt.push(new rr(ot(qt,Lr),ot(qt,ht(mn,br,It))))}bt.length||bt.push(new rr(u,u)),nn(m,Rn(e,z.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var dn=F,_r=mf(e,dt,l.unit),Ur=dn.anchor,Tr;Lt(_r.anchor,Ur)>0?(Tr=_r.head,Ur=qe(dn.from(),_r.anchor)):(Tr=_r.anchor,Ur=Oe(dn.to(),_r.head));var vr=z.ranges.slice(0);vr[U]=Qc(e,new rr(ut(m,Ur),Tr)),nn(m,Rn(e,vr,U),mt)}}var ke=f.wrapper.getBoundingClientRect(),$e=0;function tt(dt){var bt=++$e,It=eo(e,dt,!0,l.unit=="rectangle");if(!!It)if(Lt(It,Ce)!=0){e.curOp.focus=Fe(),De(It);var _e=ra(f,m);(It.line>=_e.to||It.line<_e.from)&&setTimeout(Kr(e,function(){$e==bt&&tt(dt)}),150)}else{var Mt=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;Mt&&setTimeout(Kr(e,function(){$e==bt&&(f.scroller.scrollTop+=Mt,tt(dt))}),50)}}function st(dt){e.state.selectingText=!1,$e=1/0,dt&&(Xe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",pt),de(f.wrapper.ownerDocument,"mouseup",yt),m.history.lastSelOrigin=null}var pt=Kr(e,function(dt){dt.buttons===0||!bn(dt)?st(dt):tt(dt)}),yt=Kr(e,st);e.state.selectingText=yt,N(f.wrapper.ownerDocument,"mousemove",pt),N(f.wrapper.ownerDocument,"mouseup",yt)}function Qc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var F=K(m,u.ch,u.sticky),U=m[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==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-F||(l.ch-u.ch)*(U.level==1?-1:1);be==z-1||be==z?Z=Ce<0:Z=Ce>0}var De=m[z+(Z?-1:0)],ke=Z==(De.level==1),$e=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==$e&&u.sticky==tt?n:new rr(new ot(u.line,$e,tt),l)}function xf(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Xe(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!je(e,u))return At(n);m-=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 be=Kn(e.doc,m),Ce=e.display.gutterSpecs[z];return oe(e,u,e,be,Ce.className,n),At(n)}}}function kl(e,n){return xf(e,n,"gutterClick",!0)}function bf(e,n){hi(e.display,n)||wf(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function wf(e,n){return je(e,"gutterContextMenu")?xf(e,n,"gutterContextMenu",!1):!1}function Sf(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zo(e)}var Ro={toString:function(){return"CodeMirror.Init"}},Af={},ms={};function Ef(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,z,Z){Z!=Ro&&m(U,z,Z)}:m)}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,es(l)},!0),u("indentUnit",2,es,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ao(l),Zo(l),Nr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var be=z.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(ot(F,be))}F++});for(var U=m.length-1;U>=0;U--)Co(l.doc,f,m[U],ot(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Ro&&l.refresh()}),u("specialCharPlaceholder",Gs,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",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Sf(l),qa(l)},!0),u("keyMap","default",function(l,f,m){var F=fs(f),U=m!=Ro&&fs(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,qc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=sa(f,l.options.lineNumbers),qa(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Nn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return gi(l)},!0),u("scrollbarStyle","native",function(l){Qa(l),gi(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=sa(l.options.gutters,f),qa(l)},!0),u("firstLineNumber",1,qa,!0),u("lineNumberFormatter",function(l){return l},qa,!0),u("showCursorWhenSelecting",!1,Mi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(bo(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,Zc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Mi,!0),u("singleCursorHeightPerLine",!0,Mi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ao,!0),u("addModeClass",!1,ao,!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,ao,!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 Zc(e,n,u){var l=u&&u!=Ro;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function qc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Vs(e)),il(e),Nr(e),Zo(e),setTimeout(function(){return gi(e)},100)}function yr(e,n){var u=this;if(!(this instanceof yr))return new yr(e,n);this.options=n=n?Qe(n):{},Qe(Af,n,!1);var l=n.value;typeof l=="string"?l=new yn(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new yr.inputStyles[n.inputStyle](this),m=this.display=new Ec(e,l,f,n);m.wrapper.CodeMirror=this,Sf(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qa(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 ct,keySeq:null,specialChars:null},n.autofocus&&!M&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),_c(this),uf(),Li(this),this.curOp.forceUpdate=!0,Yu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Ka(u)},20):bo(this);for(var F in ms)ms.hasOwnProperty(F)&&ms[F](this,n[F],Ro);Za(this),n.finishInit&&n.finishInit(this);for(var U=0;U<Ml.length;++U)Ml[U](this);Di(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}yr.defaults=Af,yr.optionHandlers=ms;function _c(e){var n=e.display;N(n.scroller,"mousedown",Kr(e,yf)),b&&S<11?N(n.scroller,"dblclick",Kr(e,function(z){if(!pe(e,z)){var Z=eo(e,z);if(!(!Z||kl(e,z)||hi(e.display,z))){Xe(z);var be=e.findWordAt(Z);is(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(z){return pe(e,z)||Xe(z)}),N(n.scroller,"contextmenu",function(z){return bf(e,z)}),N(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||bf(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 m(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 be=Z.left-z.left,Ce=Z.top-z.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(z){if(!pe(e,z)&&!m(z)&&!kl(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)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!hi(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new rr(be,be):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new rr(ot(be.line,0),ut(e.doc,ot(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Xe(z)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(ia(e,n.scroller.scrollTop),no(e,n.scroller.scrollLeft,!0),oe(e,"scroll",e))}),N(n.scroller,"mousewheel",function(z){return Gu(e,z)}),N(n.scroller,"DOMMouseScroll",function(z){return Gu(e,z)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){pe(e,z)||Nt(z)},over:function(z){pe(e,z)||(Nc(e,z),Nt(z))},start:function(z){return Dc(e,z)},drop:Kr(e,Lc),leave:function(z){pe(e,z)||lf(e)}};var U=n.input.getField();N(U,"keyup",function(z){return gf.call(e,z)}),N(U,"keydown",Kr(e,vf)),N(U,"keypress",Kr(e,Fl)),N(U,"focus",function(z){return Ka(e,z)}),N(U,"blur",function(z){return bo(e,z)})}var Ml=[];yr.defineInitHook=function(e){return Ml.push(e)};function ko(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=un(e,n).state:u="prev");var F=e.options.tabSize,U=Ot(f,n),z=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Je(Ot(f,n-1).text,null,F):be=0:u=="add"?be=z+e.options.indentUnit:u=="subtract"?be=z-e.options.indentUnit:typeof u=="number"&&(be=z+u),be=Math.max(0,be);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/F);ke;--ke)De+=F,Ce+=" ";if(De<be&&(Ce+=Ft(be-De)),Ce!=Z)return Co(f,Ce,ot(n,0),ot(n,Z.length),"+input"),U.stateAfter=null,!0;for(var $e=0;$e<f.sel.ranges.length;$e++){var tt=f.sel.ranges[$e];if(tt.head.line==n&&tt.head.ch<Z.length){var st=ot(n,Z.length);os(f,$e,new rr(st,st));break}}}var kn=null;function Sa(e){kn=e}function Ll(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=zn(n),Z=null;if(U&&l.ranges.length>1)if(kn&&kn.text.join(`
|
|
29
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Fo(e,n){var u=Ot(e.doc,n),l=Yn(u);return l!=u&&(n=_t(l)),Il(!0,e,l,n,1)}function jc(e,n){var u=Ot(e.doc,n),l=yu(u);return l!=u&&(n=_t(l)),Il(!0,e,u,n,-1)}function ps(e,n){var u=Fo(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=m&&n.ch;return ot(u.line,F?0:m,u.sticky)}return u}function hs(e,n,u){if(typeof n=="string"&&(n=ma[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)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Vc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=xi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&xi(n,e.options.extraKeys,u,e)||xi(n,e.options.keyMap,u,e)}var vs=new ct;function xa(e,n,u,l){var f=e.state.keySeq;if(f){if(cf(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:vs.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Wc(e,f+" "+n,u,l))return!0}return Wc(e,n,u,l)}function Wc(e,n,u,l){var f=Vc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&lr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Xe(u),al(e)),!!f}function hf(e,n){var u=df(n,!0);return u?n.shiftKey&&!e.state.keySeq?xa(e,"Shift-"+u,n,function(l){return hs(e,l,!0)})||xa(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return hs(e,l)}):xa(e,u,n,function(l){return hs(e,l)}):!1}function Hc(e,n,u){return xa(e,"'"+u+"'",n,function(l){return hs(e,l,!0)})}var gs=null;function vf(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!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=hf(n,e);B&&(gs=l?u:null,!l&&u==88&&!Ln&&(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)&&zc(n)}}function zc(e){var n=e.display.lineDiv;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function gf(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())&&!(hi(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==gs){gs=null,Xe(e);return}if(!(B&&(!e.which||e.which<10)&&hf(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Hc(n,e,f)||n.display.input.onKeyPress(e))}}}var Gc=400,Rl=function(e,n,u){this.time=e,this.pos=n,this.button=u};Rl.prototype.compare=function(e,n,u){return this.time+Gc>e&&Lt(n,this.pos)==0&&u==this.button};var ba,wa;function $c(e,n){var u=+new Date;return wa&&wa.compare(u,e,n)?(ba=wa=null,"triple"):ba&&ba.compare(u,e,n)?(wa=new Rl(u,e,n),ba=null,"double"):(ba=new Rl(u,e,n),wa=null,"single")}function yf(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,hi(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!kl(n,e)){var l=eo(n,e),f=bn(e),m=l?$c(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Kc(n,f,l,m,e))&&(f==1?l?Jc(n,l,m,e):Tt(e)==u.scroller&&Xe(e):f==2?(l&&is(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):ta(n)))}}}function Kc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,xa(e,Pl(m,f),f,function(F){if(typeof F=="string"&&(F=ma[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Yc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"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 Jc(e,n,u,l){b?setTimeout(rt(sl,e),0):e.curOp.focus=Fe();var f=Yc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&zr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Lt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?ys(e,l,n,f):Xc(e,l,n,f)}function ys(e,n,u,l){var f=e.display,m=!1,F=Kr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ta(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",z),de(f.scroller,"drop",F),m||(Xe(Z),l.addNew||is(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){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return m=!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",U),N(f.scroller,"dragstart",z),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function mf(e,n,u){if(u=="char")return new rr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new rr(ot(n.line,0),ut(e.doc,ot(n.line+1,0)));var l=u(e,n);return new rr(l.from,l.to)}function Xc(e,n,u,l){b&&ta(e);var f=e.display,m=e.doc;Xe(n);var F,U,z=m.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new rr(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new rr(u,u)),u=eo(e,n,!0,!0),U=-1;else{var be=mf(e,u,l.unit);l.extend?F=bl(F,be.anchor,be.head,l.extend):F=be}l.addNew?U==-1?(U=Z.length,nn(m,Rn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(nn(m,Rn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=m.sel):os(m,U,F,mt):(U=0,nn(m,new Cn([F],0),mt),z=m.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var bt=[],It=e.options.tabSize,_e=Je(Ot(m,u.line).text,u.ch,It),Mt=Je(Ot(m,dt.line).text,dt.ch,It),ir=Math.min(_e,Mt),br=Math.max(_e,Mt),qt=Math.min(u.line,dt.line),Tn=Math.min(e.lastLine(),Math.max(u.line,dt.line));qt<=Tn;qt++){var mn=Ot(m,qt).text,Lr=ht(mn,ir,It);ir==br?bt.push(new rr(ot(qt,Lr),ot(qt,Lr))):mn.length>Lr&&bt.push(new rr(ot(qt,Lr),ot(qt,ht(mn,br,It))))}bt.length||bt.push(new rr(u,u)),nn(m,Rn(e,z.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var dn=F,_r=mf(e,dt,l.unit),Ur=dn.anchor,Tr;Lt(_r.anchor,Ur)>0?(Tr=_r.head,Ur=qe(dn.from(),_r.anchor)):(Tr=_r.anchor,Ur=Oe(dn.to(),_r.head));var vr=z.ranges.slice(0);vr[U]=Qc(e,new rr(ut(m,Ur),Tr)),nn(m,Rn(e,vr,U),mt)}}var ke=f.wrapper.getBoundingClientRect(),$e=0;function tt(dt){var bt=++$e,It=eo(e,dt,!0,l.unit=="rectangle");if(!!It)if(Lt(It,Ce)!=0){e.curOp.focus=Fe(),De(It);var _e=ra(f,m);(It.line>=_e.to||It.line<_e.from)&&setTimeout(Kr(e,function(){$e==bt&&tt(dt)}),150)}else{var Mt=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;Mt&&setTimeout(Kr(e,function(){$e==bt&&(f.scroller.scrollTop+=Mt,tt(dt))}),50)}}function st(dt){e.state.selectingText=!1,$e=1/0,dt&&(Xe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",pt),de(f.wrapper.ownerDocument,"mouseup",yt),m.history.lastSelOrigin=null}var pt=Kr(e,function(dt){dt.buttons===0||!bn(dt)?st(dt):tt(dt)}),yt=Kr(e,st);e.state.selectingText=yt,N(f.wrapper.ownerDocument,"mousemove",pt),N(f.wrapper.ownerDocument,"mouseup",yt)}function Qc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var F=K(m,u.ch,u.sticky),U=m[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==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-F||(l.ch-u.ch)*(U.level==1?-1:1);be==z-1||be==z?Z=Ce<0:Z=Ce>0}var De=m[z+(Z?-1:0)],ke=Z==(De.level==1),$e=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==$e&&u.sticky==tt?n:new rr(new ot(u.line,$e,tt),l)}function xf(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Xe(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!je(e,u))return At(n);m-=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 be=Kn(e.doc,m),Ce=e.display.gutterSpecs[z];return ie(e,u,e,be,Ce.className,n),At(n)}}}function kl(e,n){return xf(e,n,"gutterClick",!0)}function bf(e,n){hi(e.display,n)||wf(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function wf(e,n){return je(e,"gutterContextMenu")?xf(e,n,"gutterContextMenu",!1):!1}function Sf(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zo(e)}var Ro={toString:function(){return"CodeMirror.Init"}},Af={},ms={};function Ef(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,z,Z){Z!=Ro&&m(U,z,Z)}:m)}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,es(l)},!0),u("indentUnit",2,es,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ao(l),Zo(l),Nr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var be=z.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(ot(F,be))}F++});for(var U=m.length-1;U>=0;U--)Co(l.doc,f,m[U],ot(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Ro&&l.refresh()}),u("specialCharPlaceholder",Gs,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",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Sf(l),qa(l)},!0),u("keyMap","default",function(l,f,m){var F=fs(f),U=m!=Ro&&fs(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,qc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=sa(f,l.options.lineNumbers),qa(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Nn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return gi(l)},!0),u("scrollbarStyle","native",function(l){Qa(l),gi(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=sa(l.options.gutters,f),qa(l)},!0),u("firstLineNumber",1,qa,!0),u("lineNumberFormatter",function(l){return l},qa,!0),u("showCursorWhenSelecting",!1,Mi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(bo(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,Zc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Mi,!0),u("singleCursorHeightPerLine",!0,Mi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ao,!0),u("addModeClass",!1,ao,!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,ao,!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 Zc(e,n,u){var l=u&&u!=Ro;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function qc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Vs(e)),il(e),Nr(e),Zo(e),setTimeout(function(){return gi(e)},100)}function yr(e,n){var u=this;if(!(this instanceof yr))return new yr(e,n);this.options=n=n?Qe(n):{},Qe(Af,n,!1);var l=n.value;typeof l=="string"?l=new yn(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new yr.inputStyles[n.inputStyle](this),m=this.display=new Ec(e,l,f,n);m.wrapper.CodeMirror=this,Sf(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Qa(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 ct,keySeq:null,specialChars:null},n.autofocus&&!M&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),_c(this),uf(),Li(this),this.curOp.forceUpdate=!0,Yu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Ka(u)},20):bo(this);for(var F in ms)ms.hasOwnProperty(F)&&ms[F](this,n[F],Ro);Za(this),n.finishInit&&n.finishInit(this);for(var U=0;U<Ml.length;++U)Ml[U](this);Di(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}yr.defaults=Af,yr.optionHandlers=ms;function _c(e){var n=e.display;N(n.scroller,"mousedown",Kr(e,yf)),b&&S<11?N(n.scroller,"dblclick",Kr(e,function(z){if(!pe(e,z)){var Z=eo(e,z);if(!(!Z||kl(e,z)||hi(e.display,z))){Xe(z);var be=e.findWordAt(Z);is(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(z){return pe(e,z)||Xe(z)}),N(n.scroller,"contextmenu",function(z){return bf(e,z)}),N(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||bf(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 m(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 be=Z.left-z.left,Ce=Z.top-z.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(z){if(!pe(e,z)&&!m(z)&&!kl(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)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!hi(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new rr(be,be):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new rr(ot(be.line,0),ut(e.doc,ot(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Xe(z)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(ia(e,n.scroller.scrollTop),no(e,n.scroller.scrollLeft,!0),ie(e,"scroll",e))}),N(n.scroller,"mousewheel",function(z){return Gu(e,z)}),N(n.scroller,"DOMMouseScroll",function(z){return Gu(e,z)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){pe(e,z)||Nt(z)},over:function(z){pe(e,z)||(Nc(e,z),Nt(z))},start:function(z){return Dc(e,z)},drop:Kr(e,Lc),leave:function(z){pe(e,z)||lf(e)}};var U=n.input.getField();N(U,"keyup",function(z){return gf.call(e,z)}),N(U,"keydown",Kr(e,vf)),N(U,"keypress",Kr(e,Fl)),N(U,"focus",function(z){return Ka(e,z)}),N(U,"blur",function(z){return bo(e,z)})}var Ml=[];yr.defineInitHook=function(e){return Ml.push(e)};function ko(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=un(e,n).state:u="prev");var F=e.options.tabSize,U=Ot(f,n),z=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Je(Ot(f,n-1).text,null,F):be=0:u=="add"?be=z+e.options.indentUnit:u=="subtract"?be=z-e.options.indentUnit:typeof u=="number"&&(be=z+u),be=Math.max(0,be);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/F);ke;--ke)De+=F,Ce+=" ";if(De<be&&(Ce+=Ft(be-De)),Ce!=Z)return Co(f,Ce,ot(n,0),ot(n,Z.length),"+input"),U.stateAfter=null,!0;for(var $e=0;$e<f.sel.ranges.length;$e++){var tt=f.sel.ranges[$e];if(tt.head.line==n&&tt.head.ch<Z.length){var st=ot(n,Z.length);os(f,$e,new rr(st,st));break}}}var kn=null;function Sa(e){kn=e}function Ll(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=zn(n),Z=null;if(U&&l.ranges.length>1)if(kn&&kn.text.join(`
|
|
30
30
|
`)==n){if(l.ranges.length%kn.text.length==0){Z=[];for(var be=0;be<kn.text.length;be++)Z.push(m.splitLines(kn.text[be]))}}else z.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=Wt(z,function(pt){return[pt]}));for(var Ce=e.curOp.updateInput,De=l.ranges.length-1;De>=0;De--){var ke=l.ranges[De],$e=ke.from(),tt=ke.to();ke.empty()&&(u&&u>0?$e=ot($e.line,$e.ch-u):e.state.overwrite&&!U?tt=ot(tt.line,Math.min(Ot(m,tt.line).text.length,tt.ch+Et(z).length)):U&&kn&&kn.lineWise&&kn.text.join(`
|
|
31
31
|
`)==z.join(`
|
|
32
|
-
`)&&($e=tt=ot($e.line,0)));var st={from:$e,to:tt,text:Z?Z[De%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Eo(e.doc,st),lr(e,"inputRead",e,st)}n&&!U&&Of(e,n),cn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Cf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&$r(n,function(){return Ll(n,u,0,null,"paste")}),!0}function Of(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 m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){F=ko(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=ko(e,f.head.line,"smart"));F&&lr(e,"electricInput",e,f.head.line)}}}function Tf(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:ot(f,0),head:ot(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function Ar(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function ed(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("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"),Ar(e),n}function td(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 m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&Kr(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"](fs(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Br(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Ut(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Nr(this)}),removeOverlay:Br(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,Nr(this);return}}}),indentLine:Br(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ri(this.doc,l)&&ko(this,l,f,m)}),indentSelection:Br(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(ko(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&cn(this));else{var z=U.from(),Z=U.to(),be=Math.max(m,z.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)ko(this,Ce,l);var De=this.doc.sel.ranges;z.ch==0&&f.length==De.length&&De[F].from().ch>0&&os(this.doc,F,new rr(z,De[F].to()),ft)}}}),getTokenAt:function(l,f){return Ds(this,l,f)},getLineTokens:function(l,f){return Ds(this,ot(l),f,!0)},getTokenTypeAt:function(l){l=ut(this.doc,l);var f=uu(this,Ot(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{z=f[Z*2+2];break}}var be=z?z.indexOf("overlay "):-1;return be<0?z:be==0?null:z.slice(0,be-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 m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var be=0;be<F._global.length;be++){var Ce=F._global[be];Ce.pred(U,this)&&vt(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=lt(m,l==null?m.first+m.size-1:l),un(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=ut(this.doc,l):m=l?F.from():F.to(),Xn(this,m,f||"page")},charCoords:function(l,f){return Wa(this,ut(this.doc,l),f||"page")},coordsChar:function(l,f){return l=ea(this,l,f||"page"),tl(this,l.left,l.top)},lineAtHeight:function(l,f){return l=ea(this,{top:l,left:0},f||"page").top,Kn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){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=Ot(this.doc,l)}else U=l;return Va(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-pi(U):0)},defaultTextHeight:function(){return xo(this.display)},defaultCharWidth:function(){return Dn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var z=this.display;l=Xn(this,ut(this.doc,l));var Z=l.bottom,be=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),De=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),be+f.offsetWidth>De&&(be=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&Lu(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Br(vf),triggerOnKeyPress:Br(Fl),triggerOnKeyUp:gf,triggerOnMouseDown:Br(yf),execCommand:function(l){if(ma.hasOwnProperty(l))return ma[l].call(null,this)},triggerElectric:Br(function(l){Of(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var z=ut(this.doc,l),Z=0;Z<f&&(z=zt(this.doc,z,U,m,F),!z.hitSide);++Z);return z},moveH:Br(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?zt(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},xt)}),deleteH:Br(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):fo(this,function(U){var z=zt(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,m,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=ut(this.doc,l),be=0;be<f;++be){var Ce=Xn(this,Z,"div");if(z==null?z=Ce.left:Ce.left=z,Z=Vt(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Br(function(l,f){var m=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(be){if(z)return l<0?be.from():be.to();var Ce=Xn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var De=Vt(m,Ce,l,f);return f=="page"&&be==F.sel.primary()&&fl(m,Wa(m,De,"div").top-Ce.top),De},xt),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,m=Ot(f,l.line).text,F=l.ch,U=l.ch;if(m){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),be=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&&be(m.charAt(F-1));)--F;for(;U<m.length&&be(m.charAt(U));)++U}return new rr(ot(l.line,F),ot(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Br(function(l,f){na(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-vi(this)-this.display.barHeight,width:l.scrollWidth-vi(this)-this.display.barWidth,clientHeight:Qo(this),clientWidth:Zi(this)}},scrollIntoView:Br(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:ot(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?ro(this,l):Du(this,l.from,l.to,l.margin)}),setSize:Br(function(l,f){var m=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&&qi(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){ii(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,oe(this,"refresh",this)}),operation:function(l){return $r(this,l)},startOperation:function(){return Li(this)},endOperation:function(){return Di(this)},refresh:Br(function(){var l=this.display.cachedTextHeight;Nr(this),this.curOp.forceUpdate=!0,Zo(this),na(this,this.doc.scrollLeft,this.doc.scrollTop),vl(this.display),(l==null||Math.abs(l-xo(this.display))>.5||this.options.lineWrapping)&&il(this),oe(this,"refresh",this)}),swapDoc:Br(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Yu(this,l),Zo(this),this.display.input.reset(),na(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,lr(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}},Ve(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function zt(e,n,u,l,f){var m=n,F=u,U=Ot(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var yt=n.line+z;return yt<e.first||yt>=e.first+e.size?!1:(n=new ot(yt,n.ch,n.sticky),U=Ot(e,yt))}function be(yt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var It=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new ot(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(It?2:1))),-u)}}else f?dt=pf(e.cm,U,n,u):dt=ds(U,n,u);if(dt==null)if(!yt&&Z())n=Il(f,e.cm,U,n.line,z);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),$e=!0;!(u<0&&!be(!$e));$e=!1){var tt=U.text.charAt(n.ch)||`
|
|
32
|
+
`)&&($e=tt=ot($e.line,0)));var st={from:$e,to:tt,text:Z?Z[De%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Eo(e.doc,st),lr(e,"inputRead",e,st)}n&&!U&&Of(e,n),cn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Cf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&$r(n,function(){return Ll(n,u,0,null,"paste")}),!0}function Of(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 m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){F=ko(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=ko(e,f.head.line,"smart"));F&&lr(e,"electricInput",e,f.head.line)}}}function Tf(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:ot(f,0),head:ot(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function Ar(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function ed(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("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"),Ar(e),n}function td(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 m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&Kr(this,n[l])(this,f,F),ie(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"](fs(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Br(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Ut(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Nr(this)}),removeOverlay:Br(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,Nr(this);return}}}),indentLine:Br(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),ri(this.doc,l)&&ko(this,l,f,m)}),indentSelection:Br(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(ko(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&cn(this));else{var z=U.from(),Z=U.to(),be=Math.max(m,z.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)ko(this,Ce,l);var De=this.doc.sel.ranges;z.ch==0&&f.length==De.length&&De[F].from().ch>0&&os(this.doc,F,new rr(z,De[F].to()),ft)}}}),getTokenAt:function(l,f){return Ds(this,l,f)},getLineTokens:function(l,f){return Ds(this,ot(l),f,!0)},getTokenTypeAt:function(l){l=ut(this.doc,l);var f=uu(this,Ot(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{z=f[Z*2+2];break}}var be=z?z.indexOf("overlay "):-1;return be<0?z:be==0?null:z.slice(0,be-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 m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var be=0;be<F._global.length;be++){var Ce=F._global[be];Ce.pred(U,this)&&vt(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=lt(m,l==null?m.first+m.size-1:l),un(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=ut(this.doc,l):m=l?F.from():F.to(),Xn(this,m,f||"page")},charCoords:function(l,f){return Wa(this,ut(this.doc,l),f||"page")},coordsChar:function(l,f){return l=ea(this,l,f||"page"),tl(this,l.left,l.top)},lineAtHeight:function(l,f){return l=ea(this,{top:l,left:0},f||"page").top,Kn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){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=Ot(this.doc,l)}else U=l;return Va(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-pi(U):0)},defaultTextHeight:function(){return xo(this.display)},defaultCharWidth:function(){return Dn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var z=this.display;l=Xn(this,ut(this.doc,l));var Z=l.bottom,be=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),De=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),be+f.offsetWidth>De&&(be=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&Lu(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Br(vf),triggerOnKeyPress:Br(Fl),triggerOnKeyUp:gf,triggerOnMouseDown:Br(yf),execCommand:function(l){if(ma.hasOwnProperty(l))return ma[l].call(null,this)},triggerElectric:Br(function(l){Of(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var z=ut(this.doc,l),Z=0;Z<f&&(z=zt(this.doc,z,U,m,F),!z.hitSide);++Z);return z},moveH:Br(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?zt(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},xt)}),deleteH:Br(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):fo(this,function(U){var z=zt(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,m,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=ut(this.doc,l),be=0;be<f;++be){var Ce=Xn(this,Z,"div");if(z==null?z=Ce.left:Ce.left=z,Z=Vt(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Br(function(l,f){var m=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(be){if(z)return l<0?be.from():be.to();var Ce=Xn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var De=Vt(m,Ce,l,f);return f=="page"&&be==F.sel.primary()&&fl(m,Wa(m,De,"div").top-Ce.top),De},xt),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,m=Ot(f,l.line).text,F=l.ch,U=l.ch;if(m){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),be=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&&be(m.charAt(F-1));)--F;for(;U<m.length&&be(m.charAt(U));)++U}return new rr(ot(l.line,F),ot(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),ie(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Br(function(l,f){na(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-vi(this)-this.display.barHeight,width:l.scrollWidth-vi(this)-this.display.barWidth,clientHeight:Qo(this),clientWidth:Zi(this)}},scrollIntoView:Br(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:ot(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?ro(this,l):Du(this,l.from,l.to,l.margin)}),setSize:Br(function(l,f){var m=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&&qi(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){ii(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ie(this,"refresh",this)}),operation:function(l){return $r(this,l)},startOperation:function(){return Li(this)},endOperation:function(){return Di(this)},refresh:Br(function(){var l=this.display.cachedTextHeight;Nr(this),this.curOp.forceUpdate=!0,Zo(this),na(this,this.doc.scrollLeft,this.doc.scrollTop),vl(this.display),(l==null||Math.abs(l-xo(this.display))>.5||this.options.lineWrapping)&&il(this),ie(this,"refresh",this)}),swapDoc:Br(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Yu(this,l),Zo(this),this.display.input.reset(),na(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,lr(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}},Ve(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function zt(e,n,u,l,f){var m=n,F=u,U=Ot(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var yt=n.line+z;return yt<e.first||yt>=e.first+e.size?!1:(n=new ot(yt,n.ch,n.sticky),U=Ot(e,yt))}function be(yt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var It=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new ot(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(It?2:1))),-u)}}else f?dt=pf(e.cm,U,n,u):dt=ds(U,n,u);if(dt==null)if(!yt&&Z())n=Il(f,e.cm,U,n.line,z);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),$e=!0;!(u<0&&!be(!$e));$e=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
33
|
`,st=G(tt,ke)?"w":De&&tt==`
|
|
34
34
|
`?"n":!De||/\s/.test(tt)?null:"p";if(De&&!$e&&!st&&(st="s"),Ce&&Ce!=st){u<0&&(u=1,be(),n.sticky="after");break}if(st&&(Ce=st),u>0&&!be(!$e))break}var pt=da(e,n,m,F,!0);return ci(m,pt)&&(pt.hitSide=!0),pt}function Vt(e,n,u,l){var f=e.doc,m=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),z=Math.max(U-.5*xo(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=tl(e,m,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var ar=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ct,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ar.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,Ar(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(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}N(f,"paste",function(U){!m(U)||pe(l,U)||Cf(U,l)||S<=11&&setTimeout(Kr(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){n.composing&&(U.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(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())Sa({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var z=Tf(l);Sa({lineWise:!0,text:z.text}),U.type=="cut"&&l.operation(function(){l.setSelections(z.ranges,0,ft),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=kn.text.join(`
|
|
35
35
|
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var be=ed(),Ce=be.firstChild;l.display.lineSpace.insertBefore(be,l.display.lineSpace.firstChild),Ce.value=kn.text.join(`
|
|
36
|
-
`);var De=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),De.focus(),De==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},ar.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var e=Ga(this.cm,!1);return e.focus=Fe()==this.div,e},ar.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ar.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ar.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 m=xs(n,e.anchorNode,e.anchorOffset),F=xs(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Lt(qe(m,F),l)==0&&Lt(Oe(m,F),f)==0)){var U=n.display.view,z=l.line>=n.display.viewFrom&&Mo(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&Mo(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!z||!Z){e.removeAllRanges();return}var De=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(z.node,z.offset,Z.offset,Z.node)}catch($e){}ke&&(!c&&n.state.focused?(e.collapse(z.node,z.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),De&&e.anchorNode==null?e.addRange(De):c&&this.startGracePeriod()),this.rememberSelection()}},ar.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)},ar.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},ar.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ar.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return
|
|
36
|
+
`);var De=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),De.focus(),De==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},ar.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var e=Ga(this.cm,!1);return e.focus=Fe()==this.div,e},ar.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ar.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ar.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 m=xs(n,e.anchorNode,e.anchorOffset),F=xs(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Lt(qe(m,F),l)==0&&Lt(Oe(m,F),f)==0)){var U=n.display.view,z=l.line>=n.display.viewFrom&&Mo(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&Mo(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!z||!Z){e.removeAllRanges();return}var De=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(z.node,z.offset,Z.offset,Z.node)}catch($e){}ke&&(!c&&n.state.focused?(e.collapse(z.node,z.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),De&&e.anchorNode==null?e.addRange(De):c&&this.startGracePeriod()),this.rememberSelection()}},ar.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)},ar.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},ar.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ar.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return se(this.div,n)},ar.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ar.prototype.blur=function(){this.div.blur()},ar.prototype.getField=function(){return this.div},ar.prototype.supportsTouch=function(){return!0},ar.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):$r(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)},ar.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ar.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&ji(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=xs(n,e.anchorNode,e.anchorOffset),l=xs(n,e.focusNode,e.focusOffset);u&&l&&$r(n,function(){nn(n.doc,Ni(u,l),ft),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},ar.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=ot(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=ot(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,F,U;l.line==n.viewFrom||(m=to(e,l.line))==0?(F=_t(n.view[0].line),U=n.view[0].node):(F=_t(n.view[m].line),U=n.view[m-1].node.nextSibling);var z=to(e,f.line),Z,be;if(z==n.view.length-1?(Z=n.viewTo-1,be=n.lineDiv.lastChild):(Z=_t(n.view[z+1].line)-1,be=n.view[z+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(Vi(e,U,be,F,Z)),De=fi(e.doc,ot(F,0),ot(Z,Ot(e.doc,Z).text.length));Ce.length>1&&De.length>1;)if(Et(Ce)==Et(De))Ce.pop(),De.pop(),Z--;else if(Ce[0]==De[0])Ce.shift(),De.shift(),F++;else break;for(var ke=0,$e=0,tt=Ce[0],st=De[0],pt=Math.min(tt.length,st.length);ke<pt&&tt.charCodeAt(ke)==st.charCodeAt(ke);)++ke;for(var yt=Et(Ce),dt=Et(De),bt=Math.min(yt.length-(Ce.length==1?ke:0),dt.length-(De.length==1?ke:0));$e<bt&&yt.charCodeAt(yt.length-$e-1)==dt.charCodeAt(dt.length-$e-1);)++$e;if(Ce.length==1&&De.length==1&&F==l.line)for(;ke&&ke>l.ch&&yt.charCodeAt(yt.length-$e-1)==dt.charCodeAt(dt.length-$e-1);)ke--,$e++;Ce[Ce.length-1]=yt.slice(0,yt.length-$e).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var It=ot(F,ke),_e=ot(Z,De.length?Et(De).length-$e:0);if(Ce.length>1||Ce[0]||Lt(It,_e))return Co(e.doc,Ce,It,_e,"+input"),!0},ar.prototype.ensurePolled=function(){this.forceCompositionEnd()},ar.prototype.reset=function(){this.forceCompositionEnd()},ar.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ar.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))},ar.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&$r(this.cm,function(){return Nr(e.cm)})},ar.prototype.setUneditable=function(e){e.contentEditable="false"},ar.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,Ll)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ar.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ar.prototype.onContextMenu=function(){},ar.prototype.resetPosition=function(){},ar.prototype.needsContentAttribute=!0;function Mo(e,n){var u=Qs(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=Xs(u,l,n.line),m=O(l,e.doc.direction),F="left";if(m){var U=K(m,n.ch);F=U%2?"right":"left"}var z=Zs(f.map,n.ch,F);return z.offset=z.collapse=="right"?z.end:z.start,z}function ji(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function co(e,n){return n&&(e.bad=!0),e}function Vi(e,n,u,l,f){var m="",F=!1,U=e.doc.lineSeparator(),z=!1;function Z(ke){return function($e){return $e.id==ke}}function be(){F&&(m+=U,z&&(m+=U),F=z=!1)}function Ce(ke){ke&&(be(),m+=ke)}function De(ke){if(ke.nodeType==1){var $e=ke.getAttribute("cm-text");if($e){Ce($e);return}var tt=ke.getAttribute("cm-marker"),st;if(tt){var pt=e.findMarks(ot(l,0),ot(f+1,0),Z(+tt));pt.length&&(st=pt[0].find(0))&&Ce(fi(e.doc,st.from,st.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var yt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;yt&&be();for(var dt=0;dt<ke.childNodes.length;dt++)De(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(z=!0),yt&&(F=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;De(n),n!=u;)n=n.nextSibling,z=!1;return m}function xs(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return co(e.clipPos(ot(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 m=e.display.view[f];if(m.node==l)return rd(m,n,u)}}function rd(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!se(l,n))return co(ot(_t(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?Et(e.rest):e.line;return co(ot(_t(m),m.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 be(st,pt,yt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var bt=dt<0?z.map:Z[dt],It=0;It<bt.length;It+=3){var _e=bt[It+2];if(_e==st||_e==pt){var Mt=_t(dt<0?e.line:e.rest[dt]),ir=bt[It]+yt;return(yt<0||_e!=st)&&(ir=bt[It+(yt?1:0)]),ot(Mt,ir)}}}var Ce=be(F,U,u);if(Ce)return co(Ce,f);for(var De=U.nextSibling,ke=F?F.nodeValue.length-u:0;De;De=De.nextSibling){if(Ce=be(De,De.firstChild,0),Ce)return co(ot(Ce.line,Ce.ch-ke),f);ke+=De.textContent.length}for(var $e=U.previousSibling,tt=u;$e;$e=$e.previousSibling){if(Ce=be($e,$e.firstChild,-1),Ce)return co(ot(Ce.line,Ce.ch+tt),f);tt+=$e.textContent.length}}var Or=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ct,this.hasSelection=!1,this.composing=null};Or.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&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(F){pe(l,F)||Cf(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(F){if(!pe(l,F)){if(l.somethingSelected())Sa({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=Tf(l);Sa({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,ft):(u.prevInput="",f.value=U.text.join(`
|
|
37
37
|
`),Pe(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",m),N(f,"copy",m),N(e.scroller,"paste",function(F){if(!(hi(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)}}),N(e.lineSpace,"selectstart",function(F){hi(e,F)||Xe(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)})},Or.prototype.createField=function(e){this.wrapper=ed(),this.textarea=this.wrapper.firstChild},Or.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Or.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Ga(e);if(e.options.moveInputWithCursor){var f=Xn(e,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-m.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-m.left))}return l},Or.prototype.showSelection=function(e){var n=this.cm,u=n.display;xe(u.cursorDiv,e.cursors),xe(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Or.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&&Pe(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},Or.prototype.getField=function(){return this.textarea},Or.prototype.supportsTouch=function(){return!1},Or.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Or.prototype.blur=function(){this.textarea.blur()},Or.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Or.prototype.receivedFocus=function(){this.slowPoll()},Or.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Or.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)},Or.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||wn(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 m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==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 $r(n,function(){Ll(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
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},Or.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Or.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Or.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=eo(u,e),F=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&Kr(u,nn)(u.doc,Ni(m),ft);var z=f.style.cssText,Z=n.wrapper.style.cssText,be=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
39
|
top: `+(e.clientY-be.top-5)+"px; left: "+(e.clientX-be.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 Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),st="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=st,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=st.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(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)&&De();var tt=0,st=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Kr(u,ss)(u):tt++<10?l.detectingSelectAll=setTimeout(st,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(st,200)}}if(b&&S>=9&&De(),Y){Nt(e);var $e=function(){de(window,"mouseup",$e),setTimeout(ke,20)};N(window,"mouseup",$e)}else setTimeout(ke,50)},Or.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Pf(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=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.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&&(de(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=yr(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function nd(e){e.off=de,e.on=N,e.wheelEventPixels=or,e.Doc=yn,e.splitLines=zn,e.countColumn=Je,e.findColumn=ht,e.isWordChar=ge,e.Pass=nt,e.signal=oe,e.Line=Ji,e.changeEnd=Bi,e.scrollbarModel=En,e.Pos=ot,e.cmpPos=Lt,e.modes=Ti,e.mimeModes=ln,e.resolveMode=$n,e.getMode=An,e.modeExtensions=ei,e.extendMode=Pi,e.copyState=Gr,e.startState=ti,e.innerMode=qr,e.commands=ma,e.keyMap=si,e.keyName=df,e.isModifierKey=cf,e.lookupKey=xi,e.normalizeKeyMap=Zd,e.StringStream=pr,e.SharedTextMarker=Po,e.TextMarker=ai,e.LineWidget=ha,e.e_preventDefault=Xe,e.e_stopPropagation=gt,e.e_stop=Nt,e.addClass=Le,e.contains=ae,e.rmClass=ee,e.keyNames=On}Ef(yr),td(yr);var id="iter insert remove copy getEditor constructor".split(" ");for(var Aa in yn.prototype)yn.prototype.hasOwnProperty(Aa)&&vt(id,Aa)<0&&(yr.prototype[Aa]=function(e){return function(){return e.apply(this.doc,arguments)}}(yn.prototype[Aa]));return Ve(yn),yr.inputStyles={textarea:Or,contenteditable:ar},yr.defineMode=function(e){!yr.defaults.mode&&e!="null"&&(yr.defaults.mode=e),Sn.apply(this,arguments)},yr.defineMIME=Gn,yr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(e,n){yr.prototype[e]=n},yr.defineDocExtension=function(e,n){yn.prototype[e]=n},yr.fromTextArea=Pf,nd(yr),yr.version="5.65.0",yr})},96876:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var h=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Rr){return{type:Rr,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),lt=ue("keyword c"),ut=ue("keyword d"),Kt=ue("operator"),Qt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:ut,break:ut,continue:ut,new:ue("new"),delete:lt,void:lt,throw:lt,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Qt,false:Qt,null:Qt,undefined:Qt,NaN:Qt,Infinity:Qt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:lt,export:ue("export"),import:ue("import"),extends:lt,await:lt}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(ue){for(var Oe=!1,qe,lt=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!lt)return;qe=="["?lt=!0:lt&&qe=="]"&&(lt=!1)}Oe=!Oe&&qe=="\\"}}var X,M;function C(ue,Oe,qe){return X=ue,M=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=q,q(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):ci(ue,Oe,1)?(k(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(_.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var lt=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(lt)){var ut=j[lt];return C(ut.type,ut.style,lt)}if(lt=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",lt)}return C("variable","variable",lt)}}function J(ue){return function(Oe,qe){var lt=!1,ut;if(S&&Oe.peek()=="@"&&Oe.match(H))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(ut=Oe.next())!=null&&!(ut==ue&&!lt);)lt=!lt&&ut=="\\";return lt||(qe.tokenize=V),C("string","string")}}function q(ue,Oe){for(var qe=!1,lt;lt=ue.next();){if(lt=="/"&&qe){Oe.tokenize=V;break}qe=lt=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,lt;(lt=ue.next())!=null;){if(!qe&&(lt=="`"||lt=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&<=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var lt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));lt&&(qe=lt.index)}for(var ut=0,Kt=!1,Qt=qe-1;Qt>=0;--Qt){var Rr=ue.string.charAt(Qt),kr=Y.indexOf(Rr);if(kr>=0&&kr<3){if(!ut){++Qt;break}if(--ut==0){Rr=="("&&(Kt=!0);break}}else if(kr>=3&&kr<6)++ut;else if(B.test(Rr))Kt=!0;else if(/["'\/`]/.test(Rr))for(;;--Qt){if(Qt==0)return;var er=ue.string.charAt(Qt-1);if(er==Rr&&ue.string.charAt(Qt-2)!="\\"){Qt--;break}}else if(Kt&&!ut){++Qt;break}}Kt&&!ut&&(Oe.fatArrowAt=Qt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Oe,qe,lt,ut,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=ut,this.info=Kt,lt!=null&&(this.align=lt)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var lt=ue.context;lt;lt=lt.prev)for(var qe=lt.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,lt,ut){var Kt=ue.cc;for(he.state=ue,he.stream=ut,he.marked=null,he.cc=Kt,he.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Qt=Kt.length?Kt.pop():g?Rt:xt;if(Qt(qe,lt)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&xe(ue,lt)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)he.cc.push(arguments[ue])}function ae(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Re(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Qe(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Qe(ue,Oe.globalVars))}}function Re(ue,Oe){if(Oe)if(Oe.block){var qe=Re(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Qe(ue,Oe.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Qe(ue,Oe){this.name=ue,this.next=Oe}var Je=new Qe("this",new Qe("arguments",null));function ct(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Je}function vt(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function wt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}wt.lex=!0;function nt(ue,Oe){var qe=function(){var lt=he.state,ut=lt.indented;if(lt.lexical.type=="stat")ut=lt.lexical.indented;else for(var Kt=lt.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)ut=Kt.indented;lt.lexical=new ie(ut,he.stream.column(),ue,null,lt.lexical,Oe)};return qe.lex=!0,qe}function ft(){var ue=he.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ft.lex=!0;function mt(ue){function Oe(qe){return qe==ue?ae():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():ae(Oe)}return Oe}function xt(ue,Oe){return ue=="var"?ae(nt("vardef",Oe),Ci,mt(";"),ft):ue=="keyword a"?ae(nt("form"),Et,xt,ft):ue=="keyword b"?ae(nt("form"),xt,ft):ue=="keyword d"?he.stream.match(/^\s*$/,!1)?ae():ae(nt("stat"),Ut,mt(";"),ft):ue=="debugger"?ae(mt(";")):ue=="{"?ae(nt("}"),vt,N,ft,wt):ue==";"?ae():ue=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ft&&he.state.cc.pop()(),ae(nt("form"),Et,xt,ft,Zr)):ue=="function"?ae(Sn):ue=="for"?ae(nt("form"),vt,Oi,xt,wt,ft):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",ae(nt("form",ue=="class"?ue:Oe),Pi,ft)):ue=="variable"?D&&Oe=="declare"?(he.marked="keyword",ae(xt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?ae(mo):Oe=="type"?ae($n,mt("operator"),Ee,mt(";")):ae(nt("form"),Qr,mt("{"),nt("}"),N,ft,ft)):D&&Oe=="namespace"?(he.marked="keyword",ae(nt("form"),Rt,xt,ft)):D&&Oe=="abstract"?(he.marked="keyword",ae(xt)):ae(nt("stat"),Ke):ue=="switch"?ae(nt("form"),Et,mt("{"),nt("}","switch"),vt,N,ft,ft,wt):ue=="case"?ae(Rt,mt(":")):ue=="default"?ae(mt(":")):ue=="catch"?ae(nt("form"),ct,ht,xt,ft,wt):ue=="export"?ae(nt("stat"),pr,ft):ue=="import"?ae(nt("stat"),fi,ft):ue=="async"?ae(xt):Oe=="@"?ae(Rt,xt):fe(nt("stat"),Rt,mt(";"),ft)}function ht(ue){if(ue=="(")return ae(An,mt(")"))}function Rt(ue,Oe){return Wt(ue,Oe,!1)}function Ft(ue,Oe){return Wt(ue,Oe,!0)}function Et(ue){return ue!="("?fe():ae(nt(")"),Ut,mt(")"),ft)}function Wt(ue,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var lt=qe?$:G;if(ue=="(")return ae(ct,nt(")"),O(An,")"),ft,mt("=>"),lt,wt);if(ue=="variable")return fe(ct,Qr,mt("=>"),lt,wt)}var ut=qe?St:jt;return ee.hasOwnProperty(ue)?ae(ut):ue=="function"?ae(Sn,ut):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",ae(nt("form"),ei,ft)):ue=="keyword c"||ue=="async"?ae(qe?Ft:Rt):ue=="("?ae(nt(")"),Ut,mt(")"),ft,ut):ue=="operator"||ue=="spread"?ae(qe?Ft:Rt):ue=="["?ae(nt("]"),ri,ft,ut):ue=="{"?se(Me,"}",null,ut):ue=="quasi"?fe(Dt,ut):ue=="new"?ae(Se(qe)):ae()}function Ut(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Rt)}function jt(ue,Oe){return ue==","?ae(Ut):St(ue,Oe,!1)}function St(ue,Oe,qe){var lt=qe==!1?jt:St,ut=qe==!1?Rt:Ft;if(ue=="=>")return ae(ct,qe?$:G,wt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?ae(lt):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ae(nt(">"),O(Ee,">"),ft,lt):Oe=="?"?ae(Rt,mt(":"),ut):ae(ut);if(ue=="quasi")return fe(Dt,lt);if(ue!=";"){if(ue=="(")return se(Ft,")","call",lt);if(ue==".")return ae(P,lt);if(ue=="[")return ae(nt("]"),Ut,mt("]"),ft,lt);if(D&&Oe=="as")return he.marked="keyword",ae(Ee,lt);if(ue=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),ae(ut)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?ae(Dt):ae(Ut,ge)}function ge(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,ae(Dt)}function G(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:Rt)}function $(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:Ft)}function Se(ue){return function(Oe){return Oe=="."?ae(ue?Ge:Ie):Oe=="variable"&&D?ae(bn,ue?St:jt):fe(ue?Ft:Rt)}}function Ie(ue,Oe){if(Oe=="target")return he.marked="keyword",ae(jt)}function Ge(ue,Oe){if(Oe=="target")return he.marked="keyword",ae(St)}function Ke(ue){return ue==":"?ae(ft,xt):fe(jt,mt(";"),ft)}function P(ue){if(ue=="variable")return he.marked="property",ae()}function Me(ue,Oe){if(ue=="async")return he.marked="property",ae(Me);if(ue=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return ae(K);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),ae(T)}else{if(ue=="number"||ue=="string")return he.marked=S?"property":he.style+" property",ae(T);if(ue=="jsonld-keyword")return ae(T);if(D&&Pe(Oe))return he.marked="keyword",ae(Me);if(ue=="[")return ae(Rt,re,mt("]"),T);if(ue=="spread")return ae(Ft,T);if(Oe=="*")return he.marked="keyword",ae(Me);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(he.marked="property",ae(Sn))}function T(ue){if(ue==":")return ae(Ft);if(ue=="(")return fe(Sn)}function O(ue,Oe,qe){function lt(ut,Kt){if(qe?qe.indexOf(ut)>-1:ut==","){var Qt=he.state.lexical;return Qt.info=="call"&&(Qt.pos=(Qt.pos||0)+1),ae(function(Rr,kr){return Rr==Oe||kr==Oe?fe():fe(ue)},lt)}return ut==Oe||Kt==Oe?ae():qe&&qe.indexOf(";")>-1?fe(ue):ae(mt(Oe))}return function(ut,Kt){return ut==Oe||Kt==Oe?ae():fe(ue,lt)}}function se(ue,Oe,qe){for(var lt=3;lt<arguments.length;lt++)he.cc.push(arguments[lt]);return ae(nt(Oe,qe),O(ue,Oe),ft)}function N(ue){return ue=="}"?ae():fe(xt,N)}function re(ue,Oe){if(D){if(ue==":")return ae(Ee);if(Oe=="?")return ae(re)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return ae(Ee)}function oe(ue){if(D&&ue==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?ae(Rt,pe,Ee):ae(Ee)}function pe(ue,Oe){if(Oe=="is")return he.marked="keyword",ae()}function Ee(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",ae(Oe=="typeof"?Ft:Ee);if(ue=="variable"||Oe=="void")return he.marked="type",ae(Tt);if(Oe=="|"||Oe=="&")return ae(Ee);if(ue=="string"||ue=="number"||ue=="atom")return ae(Tt);if(ue=="[")return ae(nt("]"),O(Ee,"]",","),ft,Tt);if(ue=="{")return ae(nt("}"),Ve,ft,Tt);if(ue=="(")return ae(O(Nt,")"),je,Tt);if(ue=="<")return ae(O(Ee,">"),Ee);if(ue=="quasi")return fe(gt,Tt)}function je(ue){if(ue=="=>")return ae(Ee)}function Ve(ue){return ue.match(/[\}\)\]]/)?ae():ue==","||ue==";"?ae(Ve):fe(Xe,Ve)}function Xe(ue,Oe){if(ue=="variable"||he.style=="keyword")return he.marked="property",ae(Xe);if(Oe=="?"||ue=="number"||ue=="string")return ae(Xe);if(ue==":")return ae(Ee);if(ue=="[")return ae(mt("variable"),de,mt("]"),Xe);if(ue=="(")return fe(Gn,Xe);if(!ue.match(/[;\}\)\],]/))return ae()}function gt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?ae(gt):ae(Ee,At)}function At(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,ae(gt)}function Nt(ue,Oe){return ue=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?ae(Nt):ue==":"?ae(Ee):ue=="spread"?ae(Nt):fe(Ee)}function Tt(ue,Oe){if(Oe=="<")return ae(nt(">"),O(Ee,">"),ft,Tt);if(Oe=="|"||ue=="."||Oe=="&")return ae(Ee);if(ue=="[")return ae(Ee,mt("]"),Tt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",ae(Ee);if(Oe=="?")return ae(Ee,mt(":"),Ee)}function bn(ue,Oe){if(Oe=="<")return ae(nt(">"),O(Ee,">"),ft,Tt)}function zr(){return fe(Ee,Fr)}function Fr(ue,Oe){if(Oe=="=")return ae(Ee)}function Ci(ue,Oe){return Oe=="enum"?(he.marked="keyword",ae(mo)):fe(Qr,re,wn,Ln)}function Qr(ue,Oe){if(D&&Pe(Oe))return he.marked="keyword",ae(Qr);if(ue=="variable")return Le(Oe),ae();if(ue=="spread")return ae(Qr);if(ue=="[")return se(zn,"]");if(ue=="{")return se($i,"}")}function $i(ue,Oe){return ue=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),ae(wn)):(ue=="variable"&&(he.marked="property"),ue=="spread"?ae(Qr):ue=="}"?fe():ue=="["?ae(Rt,mt("]"),mt(":"),$i):ae(mt(":"),Qr,wn))}function zn(){return fe(Qr,wn)}function wn(ue,Oe){if(Oe=="=")return ae(Ft)}function Ln(ue){if(ue==",")return ae(Ci)}function Zr(ue,Oe){if(ue=="keyword b"&&Oe=="else")return ae(nt("form","else"),xt,ft)}function Oi(ue,Oe){if(Oe=="await")return ae(Oi);if(ue=="(")return ae(nt(")"),Ti,ft)}function Ti(ue){return ue=="var"?ae(Ci,ln):ue=="variable"?ae(ln):fe(ln)}function ln(ue,Oe){return ue==")"?ae():ue==";"?ae(ln):Oe=="in"||Oe=="of"?(he.marked="keyword",ae(Rt,ln)):fe(Rt,ln)}function Sn(ue,Oe){if(Oe=="*")return he.marked="keyword",ae(Sn);if(ue=="variable")return Le(Oe),ae(Sn);if(ue=="(")return ae(ct,nt(")"),O(An,")"),ft,oe,xt,wt);if(D&&Oe=="<")return ae(nt(">"),O(zr,">"),ft,Sn)}function Gn(ue,Oe){if(Oe=="*")return he.marked="keyword",ae(Gn);if(ue=="variable")return Le(Oe),ae(Gn);if(ue=="(")return ae(ct,nt(")"),O(An,")"),ft,oe,wt);if(D&&Oe=="<")return ae(nt(">"),O(zr,">"),ft,Gn)}function $n(ue,Oe){if(ue=="keyword"||ue=="variable")return he.marked="type",ae($n);if(Oe=="<")return ae(nt(">"),O(zr,">"),ft)}function An(ue,Oe){return Oe=="@"&&ae(Rt,An),ue=="spread"?ae(An):D&&Pe(Oe)?(he.marked="keyword",ae(An)):D&&ue=="this"?ae(re,wn):fe(Qr,re,wn)}function ei(ue,Oe){return ue=="variable"?Pi(ue,Oe):Gr(ue,Oe)}function Pi(ue,Oe){if(ue=="variable")return Le(Oe),ae(Gr)}function Gr(ue,Oe){if(Oe=="<")return ae(nt(">"),O(zr,">"),ft,Gr);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(he.marked="keyword"),ae(D?Ee:Rt,Gr);if(ue=="{")return ae(nt("}"),qr,ft)}function qr(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",ae(qr);if(ue=="variable"||he.style=="keyword")return he.marked="property",ae(ti,qr);if(ue=="number"||ue=="string")return ae(ti,qr);if(ue=="[")return ae(Rt,re,mt("]"),ti,qr);if(Oe=="*")return he.marked="keyword",ae(qr);if(D&&ue=="(")return fe(Gn,qr);if(ue==";"||ue==",")return ae(qr);if(ue=="}")return ae();if(Oe=="@")return ae(Rt,qr)}function ti(ue,Oe){if(Oe=="!"||Oe=="?")return ae(ti);if(ue==":")return ae(Ee,wn);if(Oe=="=")return ae(Ft);var qe=he.state.lexical.prev,lt=qe&&qe.info=="interface";return fe(lt?Gn:Sn)}function pr(ue,Oe){return Oe=="*"?(he.marked="keyword",ae(Kn,mt(";"))):Oe=="default"?(he.marked="keyword",ae(Rt,mt(";"))):ue=="{"?ae(O(Ot,"}"),Kn,mt(";")):fe(xt)}function Ot(ue,Oe){if(Oe=="as")return he.marked="keyword",ae(mt("variable"));if(ue=="variable")return fe(Ft,Ot)}function fi(ue){return ue=="string"?ae():ue=="("?fe(Rt):ue=="."?fe(jt):fe(Ii,Fn,Kn)}function Ii(ue,Oe){return ue=="{"?se(Ii,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),ae(_t))}function Fn(ue){if(ue==",")return ae(Ii,Fn)}function _t(ue,Oe){if(Oe=="as")return he.marked="keyword",ae(Ii)}function Kn(ue,Oe){if(Oe=="from")return he.marked="keyword",ae(Rt)}function ri(ue){return ue=="]"?ae():fe(O(Ft,"]"))}function mo(){return fe(nt("form"),Qr,mt("{"),nt("}"),O(ot,"}"),ft,ft)}function ot(){return fe(Qr,wn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||_.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function ci(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-h,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=q&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,we(Oe,qe,X,M,ue))},indent:function(ue,Oe){if(ue.tokenize==q||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),lt=ue.lexical,ut;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Qt=ue.cc[Kt];if(Qt==ft)lt=lt.prev;else if(Qt!=Zr&&Qt!=wt)break}for(;(lt.type=="stat"||lt.type=="form")&&(qe=="}"||(ut=ue.cc[ue.cc.length-1])&&(ut==jt||ut==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)lt=lt.prev;b&<.type==")"&<.prev.type=="stat"&&(lt=lt.prev);var Rr=lt.type,kr=qe==Rr;return Rr=="vardef"?lt.indented+(ue.lastType=="operator"||ue.lastType==","?lt.info.length+1:0):Rr=="form"&&qe=="{"?lt.indented:Rr=="form"?lt.indented+h:Rr=="stat"?lt.indented+(Lt(ue,Oe)?b||h:0):lt.info=="switch"&&!kr&&x.doubleIndentSwitch!=!1?lt.indented+(/^(?:case|default)\b/.test(Oe)?h:2*h):lt.align?lt.column+(kr?0:1):lt.indented+(kr?0:h)},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:ci,skipExpression:function(ue){we(ue,"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:(p,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=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),st="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=st,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=st.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(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)&&De();var tt=0,st=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Kr(u,ss)(u):tt++<10?l.detectingSelectAll=setTimeout(st,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(st,200)}}if(b&&S>=9&&De(),Y){Nt(e);var $e=function(){de(window,"mouseup",$e),setTimeout(ke,20)};N(window,"mouseup",$e)}else setTimeout(ke,50)},Or.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Or.prototype.setUneditable=function(){},Or.prototype.needsContentAttribute=!1;function Pf(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=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.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&&(de(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=yr(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function nd(e){e.off=de,e.on=N,e.wheelEventPixels=or,e.Doc=yn,e.splitLines=zn,e.countColumn=Je,e.findColumn=ht,e.isWordChar=ge,e.Pass=nt,e.signal=ie,e.Line=Ji,e.changeEnd=Bi,e.scrollbarModel=En,e.Pos=ot,e.cmpPos=Lt,e.modes=Ti,e.mimeModes=ln,e.resolveMode=$n,e.getMode=An,e.modeExtensions=ei,e.extendMode=Pi,e.copyState=Gr,e.startState=ti,e.innerMode=qr,e.commands=ma,e.keyMap=si,e.keyName=df,e.isModifierKey=cf,e.lookupKey=xi,e.normalizeKeyMap=Zd,e.StringStream=pr,e.SharedTextMarker=Po,e.TextMarker=ai,e.LineWidget=ha,e.e_preventDefault=Xe,e.e_stopPropagation=gt,e.e_stop=Nt,e.addClass=Le,e.contains=se,e.rmClass=ee,e.keyNames=On}Ef(yr),td(yr);var id="iter insert remove copy getEditor constructor".split(" ");for(var Aa in yn.prototype)yn.prototype.hasOwnProperty(Aa)&&vt(id,Aa)<0&&(yr.prototype[Aa]=function(e){return function(){return e.apply(this.doc,arguments)}}(yn.prototype[Aa]));return Ve(yn),yr.inputStyles={textarea:Or,contenteditable:ar},yr.defineMode=function(e){!yr.defaults.mode&&e!="null"&&(yr.defaults.mode=e),Sn.apply(this,arguments)},yr.defineMIME=Gn,yr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(e,n){yr.prototype[e]=n},yr.defineDocExtension=function(e,n){yn.prototype[e]=n},yr.fromTextArea=Pf,nd(yr),yr.version="5.65.0",yr})},96876:(p,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var h=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Rr){return{type:Rr,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),lt=ue("keyword c"),ut=ue("keyword d"),Kt=ue("operator"),Qt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:ut,break:ut,continue:ut,new:ue("new"),delete:lt,void:lt,throw:lt,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Qt,false:Qt,null:Qt,undefined:Qt,NaN:Qt,Infinity:Qt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:lt,export:ue("export"),import:ue("import"),extends:lt,await:lt}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function k(ue){for(var Oe=!1,qe,lt=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!lt)return;qe=="["?lt=!0:lt&&qe=="]"&&(lt=!1)}Oe=!Oe&&qe=="\\"}}var X,M;function C(ue,Oe,qe){return X=ue,M=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=q,q(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):ci(ue,Oe,1)?(k(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(_.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var lt=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(lt)){var ut=j[lt];return C(ut.type,ut.style,lt)}if(lt=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",lt)}return C("variable","variable",lt)}}function J(ue){return function(Oe,qe){var lt=!1,ut;if(S&&Oe.peek()=="@"&&Oe.match(H))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(ut=Oe.next())!=null&&!(ut==ue&&!lt);)lt=!lt&&ut=="\\";return lt||(qe.tokenize=V),C("string","string")}}function q(ue,Oe){for(var qe=!1,lt;lt=ue.next();){if(lt=="/"&&qe){Oe.tokenize=V;break}qe=lt=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,lt;(lt=ue.next())!=null;){if(!qe&&(lt=="`"||lt=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&<=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var lt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));lt&&(qe=lt.index)}for(var ut=0,Kt=!1,Qt=qe-1;Qt>=0;--Qt){var Rr=ue.string.charAt(Qt),kr=Y.indexOf(Rr);if(kr>=0&&kr<3){if(!ut){++Qt;break}if(--ut==0){Rr=="("&&(Kt=!0);break}}else if(kr>=3&&kr<6)++ut;else if(B.test(Rr))Kt=!0;else if(/["'\/`]/.test(Rr))for(;;--Qt){if(Qt==0)return;var er=ue.string.charAt(Qt-1);if(er==Rr&&ue.string.charAt(Qt-2)!="\\"){Qt--;break}}else if(Kt&&!ut){++Qt;break}}Kt&&!ut&&(Oe.fatArrowAt=Qt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(ue,Oe,qe,lt,ut,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=ut,this.info=Kt,lt!=null&&(this.align=lt)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var lt=ue.context;lt;lt=lt.prev)for(var qe=lt.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,lt,ut){var Kt=ue.cc;for(ve.state=ue,ve.stream=ut,ve.marked=null,ve.cc=Kt,ve.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Qt=Kt.length?Kt.pop():g?Rt:xt;if(Qt(qe,lt)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return ve.marked?ve.marked:qe=="variable"&&xe(ue,lt)?"variable-2":Oe}}}var ve={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)ve.cc.push(arguments[ue])}function se(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=ve.state;if(ve.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Re(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Qe(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Qe(ue,Oe.globalVars))}}function Re(ue,Oe){if(Oe)if(Oe.block){var qe=Re(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Qe(ue,Oe.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Qe(ue,Oe){this.name=ue,this.next=Oe}var Je=new Qe("this",new Qe("arguments",null));function ct(){ve.state.context=new rt(ve.state.context,ve.state.localVars,!1),ve.state.localVars=Je}function vt(){ve.state.context=new rt(ve.state.context,ve.state.localVars,!0),ve.state.localVars=null}function wt(){ve.state.localVars=ve.state.context.vars,ve.state.context=ve.state.context.prev}wt.lex=!0;function nt(ue,Oe){var qe=function(){var lt=ve.state,ut=lt.indented;if(lt.lexical.type=="stat")ut=lt.lexical.indented;else for(var Kt=lt.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)ut=Kt.indented;lt.lexical=new ne(ut,ve.stream.column(),ue,null,lt.lexical,Oe)};return qe.lex=!0,qe}function ft(){var ue=ve.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ft.lex=!0;function mt(ue){function Oe(qe){return qe==ue?se():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():se(Oe)}return Oe}function xt(ue,Oe){return ue=="var"?se(nt("vardef",Oe),Ci,mt(";"),ft):ue=="keyword a"?se(nt("form"),Et,xt,ft):ue=="keyword b"?se(nt("form"),xt,ft):ue=="keyword d"?ve.stream.match(/^\s*$/,!1)?se():se(nt("stat"),Ut,mt(";"),ft):ue=="debugger"?se(mt(";")):ue=="{"?se(nt("}"),vt,N,ft,wt):ue==";"?se():ue=="if"?(ve.state.lexical.info=="else"&&ve.state.cc[ve.state.cc.length-1]==ft&&ve.state.cc.pop()(),se(nt("form"),Et,xt,ft,Zr)):ue=="function"?se(Sn):ue=="for"?se(nt("form"),vt,Oi,xt,wt,ft):ue=="class"||D&&Oe=="interface"?(ve.marked="keyword",se(nt("form",ue=="class"?ue:Oe),Pi,ft)):ue=="variable"?D&&Oe=="declare"?(ve.marked="keyword",se(xt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&ve.stream.match(/^\s*\w/,!1)?(ve.marked="keyword",Oe=="enum"?se(mo):Oe=="type"?se($n,mt("operator"),Ee,mt(";")):se(nt("form"),Qr,mt("{"),nt("}"),N,ft,ft)):D&&Oe=="namespace"?(ve.marked="keyword",se(nt("form"),Rt,xt,ft)):D&&Oe=="abstract"?(ve.marked="keyword",se(xt)):se(nt("stat"),Ke):ue=="switch"?se(nt("form"),Et,mt("{"),nt("}","switch"),vt,N,ft,ft,wt):ue=="case"?se(Rt,mt(":")):ue=="default"?se(mt(":")):ue=="catch"?se(nt("form"),ct,ht,xt,ft,wt):ue=="export"?se(nt("stat"),pr,ft):ue=="import"?se(nt("stat"),fi,ft):ue=="async"?se(xt):Oe=="@"?se(Rt,xt):fe(nt("stat"),Rt,mt(";"),ft)}function ht(ue){if(ue=="(")return se(An,mt(")"))}function Rt(ue,Oe){return Wt(ue,Oe,!1)}function Ft(ue,Oe){return Wt(ue,Oe,!0)}function Et(ue){return ue!="("?fe():se(nt(")"),Ut,mt(")"),ft)}function Wt(ue,Oe,qe){if(ve.state.fatArrowAt==ve.stream.start){var lt=qe?$:G;if(ue=="(")return se(ct,nt(")"),O(An,")"),ft,mt("=>"),lt,wt);if(ue=="variable")return fe(ct,Qr,mt("=>"),lt,wt)}var ut=qe?St:jt;return ee.hasOwnProperty(ue)?se(ut):ue=="function"?se(Sn,ut):ue=="class"||D&&Oe=="interface"?(ve.marked="keyword",se(nt("form"),ei,ft)):ue=="keyword c"||ue=="async"?se(qe?Ft:Rt):ue=="("?se(nt(")"),Ut,mt(")"),ft,ut):ue=="operator"||ue=="spread"?se(qe?Ft:Rt):ue=="["?se(nt("]"),ri,ft,ut):ue=="{"?le(Me,"}",null,ut):ue=="quasi"?fe(Dt,ut):ue=="new"?se(Ae(qe)):se()}function Ut(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Rt)}function jt(ue,Oe){return ue==","?se(Ut):St(ue,Oe,!1)}function St(ue,Oe,qe){var lt=qe==!1?jt:St,ut=qe==!1?Rt:Ft;if(ue=="=>")return se(ct,qe?$:G,wt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?se(lt):D&&Oe=="<"&&ve.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?se(nt(">"),O(Ee,">"),ft,lt):Oe=="?"?se(Rt,mt(":"),ut):se(ut);if(ue=="quasi")return fe(Dt,lt);if(ue!=";"){if(ue=="(")return le(Ft,")","call",lt);if(ue==".")return se(P,lt);if(ue=="[")return se(nt("]"),Ut,mt("]"),ft,lt);if(D&&Oe=="as")return ve.marked="keyword",se(Ee,lt);if(ue=="regexp")return ve.state.lastType=ve.marked="operator",ve.stream.backUp(ve.stream.pos-ve.stream.start-1),se(ut)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(Dt):se(Ut,ge)}function ge(ue){if(ue=="}")return ve.marked="string-2",ve.state.tokenize=Q,se(Dt)}function G(ue){return ce(ve.stream,ve.state),fe(ue=="{"?xt:Rt)}function $(ue){return ce(ve.stream,ve.state),fe(ue=="{"?xt:Ft)}function Ae(ue){return function(Oe){return Oe=="."?se(ue?Ge:Ie):Oe=="variable"&&D?se(bn,ue?St:jt):fe(ue?Ft:Rt)}}function Ie(ue,Oe){if(Oe=="target")return ve.marked="keyword",se(jt)}function Ge(ue,Oe){if(Oe=="target")return ve.marked="keyword",se(St)}function Ke(ue){return ue==":"?se(ft,xt):fe(jt,mt(";"),ft)}function P(ue){if(ue=="variable")return ve.marked="property",se()}function Me(ue,Oe){if(ue=="async")return ve.marked="property",se(Me);if(ue=="variable"||ve.style=="keyword"){if(ve.marked="property",Oe=="get"||Oe=="set")return se(K);var qe;return D&&ve.state.fatArrowAt==ve.stream.start&&(qe=ve.stream.match(/^\s*:\s*/,!1))&&(ve.state.fatArrowAt=ve.stream.pos+qe[0].length),se(T)}else{if(ue=="number"||ue=="string")return ve.marked=S?"property":ve.style+" property",se(T);if(ue=="jsonld-keyword")return se(T);if(D&&Pe(Oe))return ve.marked="keyword",se(Me);if(ue=="[")return se(Rt,te,mt("]"),T);if(ue=="spread")return se(Ft,T);if(Oe=="*")return ve.marked="keyword",se(Me);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(ve.marked="property",se(Sn))}function T(ue){if(ue==":")return se(Ft);if(ue=="(")return fe(Sn)}function O(ue,Oe,qe){function lt(ut,Kt){if(qe?qe.indexOf(ut)>-1:ut==","){var Qt=ve.state.lexical;return Qt.info=="call"&&(Qt.pos=(Qt.pos||0)+1),se(function(Rr,kr){return Rr==Oe||kr==Oe?fe():fe(ue)},lt)}return ut==Oe||Kt==Oe?se():qe&&qe.indexOf(";")>-1?fe(ue):se(mt(Oe))}return function(ut,Kt){return ut==Oe||Kt==Oe?se():fe(ue,lt)}}function le(ue,Oe,qe){for(var lt=3;lt<arguments.length;lt++)ve.cc.push(arguments[lt]);return se(nt(Oe,qe),O(ue,Oe),ft)}function N(ue){return ue=="}"?se():fe(xt,N)}function te(ue,Oe){if(D){if(ue==":")return se(Ee);if(Oe=="?")return se(te)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return se(Ee)}function ie(ue){if(D&&ue==":")return ve.stream.match(/^\s*\w+\s+is\b/,!1)?se(Rt,pe,Ee):se(Ee)}function pe(ue,Oe){if(Oe=="is")return ve.marked="keyword",se()}function Ee(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return ve.marked="keyword",se(Oe=="typeof"?Ft:Ee);if(ue=="variable"||Oe=="void")return ve.marked="type",se(Tt);if(Oe=="|"||Oe=="&")return se(Ee);if(ue=="string"||ue=="number"||ue=="atom")return se(Tt);if(ue=="[")return se(nt("]"),O(Ee,"]",","),ft,Tt);if(ue=="{")return se(nt("}"),Ve,ft,Tt);if(ue=="(")return se(O(Nt,")"),je,Tt);if(ue=="<")return se(O(Ee,">"),Ee);if(ue=="quasi")return fe(gt,Tt)}function je(ue){if(ue=="=>")return se(Ee)}function Ve(ue){return ue.match(/[\}\)\]]/)?se():ue==","||ue==";"?se(Ve):fe(Xe,Ve)}function Xe(ue,Oe){if(ue=="variable"||ve.style=="keyword")return ve.marked="property",se(Xe);if(Oe=="?"||ue=="number"||ue=="string")return se(Xe);if(ue==":")return se(Ee);if(ue=="[")return se(mt("variable"),de,mt("]"),Xe);if(ue=="(")return fe(Gn,Xe);if(!ue.match(/[;\}\)\],]/))return se()}function gt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(gt):se(Ee,At)}function At(ue){if(ue=="}")return ve.marked="string-2",ve.state.tokenize=Q,se(gt)}function Nt(ue,Oe){return ue=="variable"&&ve.stream.match(/^\s*[?:]/,!1)||Oe=="?"?se(Nt):ue==":"?se(Ee):ue=="spread"?se(Nt):fe(Ee)}function Tt(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ft,Tt);if(Oe=="|"||ue=="."||Oe=="&")return se(Ee);if(ue=="[")return se(Ee,mt("]"),Tt);if(Oe=="extends"||Oe=="implements")return ve.marked="keyword",se(Ee);if(Oe=="?")return se(Ee,mt(":"),Ee)}function bn(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ft,Tt)}function zr(){return fe(Ee,Fr)}function Fr(ue,Oe){if(Oe=="=")return se(Ee)}function Ci(ue,Oe){return Oe=="enum"?(ve.marked="keyword",se(mo)):fe(Qr,te,wn,Ln)}function Qr(ue,Oe){if(D&&Pe(Oe))return ve.marked="keyword",se(Qr);if(ue=="variable")return Le(Oe),se();if(ue=="spread")return se(Qr);if(ue=="[")return le(zn,"]");if(ue=="{")return le($i,"}")}function $i(ue,Oe){return ue=="variable"&&!ve.stream.match(/^\s*:/,!1)?(Le(Oe),se(wn)):(ue=="variable"&&(ve.marked="property"),ue=="spread"?se(Qr):ue=="}"?fe():ue=="["?se(Rt,mt("]"),mt(":"),$i):se(mt(":"),Qr,wn))}function zn(){return fe(Qr,wn)}function wn(ue,Oe){if(Oe=="=")return se(Ft)}function Ln(ue){if(ue==",")return se(Ci)}function Zr(ue,Oe){if(ue=="keyword b"&&Oe=="else")return se(nt("form","else"),xt,ft)}function Oi(ue,Oe){if(Oe=="await")return se(Oi);if(ue=="(")return se(nt(")"),Ti,ft)}function Ti(ue){return ue=="var"?se(Ci,ln):ue=="variable"?se(ln):fe(ln)}function ln(ue,Oe){return ue==")"?se():ue==";"?se(ln):Oe=="in"||Oe=="of"?(ve.marked="keyword",se(Rt,ln)):fe(Rt,ln)}function Sn(ue,Oe){if(Oe=="*")return ve.marked="keyword",se(Sn);if(ue=="variable")return Le(Oe),se(Sn);if(ue=="(")return se(ct,nt(")"),O(An,")"),ft,ie,xt,wt);if(D&&Oe=="<")return se(nt(">"),O(zr,">"),ft,Sn)}function Gn(ue,Oe){if(Oe=="*")return ve.marked="keyword",se(Gn);if(ue=="variable")return Le(Oe),se(Gn);if(ue=="(")return se(ct,nt(")"),O(An,")"),ft,ie,wt);if(D&&Oe=="<")return se(nt(">"),O(zr,">"),ft,Gn)}function $n(ue,Oe){if(ue=="keyword"||ue=="variable")return ve.marked="type",se($n);if(Oe=="<")return se(nt(">"),O(zr,">"),ft)}function An(ue,Oe){return Oe=="@"&&se(Rt,An),ue=="spread"?se(An):D&&Pe(Oe)?(ve.marked="keyword",se(An)):D&&ue=="this"?se(te,wn):fe(Qr,te,wn)}function ei(ue,Oe){return ue=="variable"?Pi(ue,Oe):Gr(ue,Oe)}function Pi(ue,Oe){if(ue=="variable")return Le(Oe),se(Gr)}function Gr(ue,Oe){if(Oe=="<")return se(nt(">"),O(zr,">"),ft,Gr);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(ve.marked="keyword"),se(D?Ee:Rt,Gr);if(ue=="{")return se(nt("}"),qr,ft)}function qr(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&ve.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return ve.marked="keyword",se(qr);if(ue=="variable"||ve.style=="keyword")return ve.marked="property",se(ti,qr);if(ue=="number"||ue=="string")return se(ti,qr);if(ue=="[")return se(Rt,te,mt("]"),ti,qr);if(Oe=="*")return ve.marked="keyword",se(qr);if(D&&ue=="(")return fe(Gn,qr);if(ue==";"||ue==",")return se(qr);if(ue=="}")return se();if(Oe=="@")return se(Rt,qr)}function ti(ue,Oe){if(Oe=="!"||Oe=="?")return se(ti);if(ue==":")return se(Ee,wn);if(Oe=="=")return se(Ft);var qe=ve.state.lexical.prev,lt=qe&&qe.info=="interface";return fe(lt?Gn:Sn)}function pr(ue,Oe){return Oe=="*"?(ve.marked="keyword",se(Kn,mt(";"))):Oe=="default"?(ve.marked="keyword",se(Rt,mt(";"))):ue=="{"?se(O(Ot,"}"),Kn,mt(";")):fe(xt)}function Ot(ue,Oe){if(Oe=="as")return ve.marked="keyword",se(mt("variable"));if(ue=="variable")return fe(Ft,Ot)}function fi(ue){return ue=="string"?se():ue=="("?fe(Rt):ue=="."?fe(jt):fe(Ii,Fn,Kn)}function Ii(ue,Oe){return ue=="{"?le(Ii,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(ve.marked="keyword"),se(_t))}function Fn(ue){if(ue==",")return se(Ii,Fn)}function _t(ue,Oe){if(Oe=="as")return ve.marked="keyword",se(Ii)}function Kn(ue,Oe){if(Oe=="from")return ve.marked="keyword",se(Rt)}function ri(ue){return ue=="]"?se():fe(O(Ft,"]"))}function mo(){return fe(nt("form"),Qr,mt("{"),nt("}"),O(ot,"}"),ft,ft)}function ot(){return fe(Qr,wn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||_.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function ci(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ne((ue||0)-h,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=q&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,we(Oe,qe,X,M,ue))},indent:function(ue,Oe){if(ue.tokenize==q||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),lt=ue.lexical,ut;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Qt=ue.cc[Kt];if(Qt==ft)lt=lt.prev;else if(Qt!=Zr&&Qt!=wt)break}for(;(lt.type=="stat"||lt.type=="form")&&(qe=="}"||(ut=ue.cc[ue.cc.length-1])&&(ut==jt||ut==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)lt=lt.prev;b&<.type==")"&<.prev.type=="stat"&&(lt=lt.prev);var Rr=lt.type,kr=qe==Rr;return Rr=="vardef"?lt.indented+(ue.lastType=="operator"||ue.lastType==","?lt.info.length+1:0):Rr=="form"&&qe=="{"?lt.indented:Rr=="form"?lt.indented+h:Rr=="stat"?lt.indented+(Lt(ue,Oe)?b||h:0):lt.info=="switch"&&!kr&&x.doubleIndentSwitch!=!1?lt.indented+(/^(?:case|default)\b/.test(Oe)?h:2*h):lt.align?lt.column+(kr?0:1):lt.indented+(kr?0:h)},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:ci,skipExpression:function(ue){we(ue,"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:(p,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=h,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function h(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},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 M=k.substr(0,X).trim(),C=k.substr(++X,k.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[M]==null&&(D[M]=S(C,_))}}return D}function b(g,L,D){var B=D||{},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(D){return g}}},54493:(p,I,o)=>{o(77971),o(53242);var c=o(54058);p.exports=c.Array.from},24034:(p,I,o)=>{o(92737);var c=o(54058);p.exports=c.Array.isArray},15367:(p,I,o)=>{o(85906);var c=o(35703);p.exports=c("Array").concat},12710:(p,I,o)=>{o(66274);var c=o(35703);p.exports=c("Array").entries},62383:(p,I,o)=>{o(21501);var c=o(35703);p.exports=c("Array").filter},17671:(p,I,o)=>{o(80833);var c=o(35703);p.exports=c("Array").find},99324:(p,I,o)=>{o(2437);var c=o(35703);p.exports=c("Array").forEach},80991:(p,I,o)=>{o(97690);var c=o(35703);p.exports=c("Array").includes},8700:(p,I,o)=>{o(99076);var c=o(35703);p.exports=c("Array").indexOf},23866:(p,I,o)=>{o(68787);var c=o(35703);p.exports=c("Array").map},24900:(p,I,o)=>{o(60186);var c=o(35703);p.exports=c("Array").slice},78209:(p,I,o)=>{o(98611);var c=o(35703);p.exports=c("Array").splice},56043:(p,I,o)=>{var c=o(15367),v=Array.prototype;p.exports=function(x){var h=x.concat;return x===v||x instanceof Array&&h===v.concat?c:h}},2480:(p,I,o)=>{var c=o(62383),v=Array.prototype;p.exports=function(x){var h=x.filter;return x===v||x instanceof Array&&h===v.filter?c:h}},32236:(p,I,o)=>{var c=o(17671),v=Array.prototype;p.exports=function(x){var h=x.find;return x===v||x instanceof Array&&h===v.find?c:h}},58557:(p,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,h=String.prototype;p.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===h||b instanceof String&&S===h.includes?v:S}},34570:(p,I,o)=>{var c=o(8700),v=Array.prototype;p.exports=function(x){var h=x.indexOf;return x===v||x instanceof Array&&h===v.indexOf?c:h}},88287:(p,I,o)=>{var c=o(23866),v=Array.prototype;p.exports=function(x){var h=x.map;return x===v||x instanceof Array&&h===v.map?c:h}},69601:(p,I,o)=>{var c=o(24900),v=Array.prototype;p.exports=function(x){var h=x.slice;return x===v||x instanceof Array&&h===v.slice?c:h}},18339:(p,I,o)=>{var c=o(78209),v=Array.prototype;p.exports=function(x){var h=x.splice;return x===v||x instanceof Array&&h===v.splice?c:h}},84426:(p,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),p.exports=function(x,h,b){return c.JSON.stringify.apply(null,arguments)}},45999:(p,I,o)=>{o(49221);var c=o(54058);p.exports=c.Object.assign},35254:(p,I,o)=>{o(53882);var c=o(54058),v=c.Object;p.exports=function(h,b){return v.create(h,b)}},7702:(p,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=p.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(p,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=p.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(p,I,o)=>{o(21078);var c=o(54058);p.exports=c.Object.entries},286:(p,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=p.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(p,I,o)=>{o(88482);var c=o(54058);p.exports=c.Object.getOwnPropertyDescriptors},30498:(p,I,o)=>{o(35824);var c=o(54058);p.exports=c.Object.getOwnPropertySymbols},13966:(p,I,o)=>{o(17405);var c=o(54058);p.exports=c.Object.getPrototypeOf},48494:(p,I,o)=>{o(21724);var c=o(54058);p.exports=c.Object.keys},3065:(p,I,o)=>{o(90108);var c=o(54058);p.exports=c.Object.setPrototypeOf},52956:(p,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);p.exports=c.Promise},14983:(p,I,o)=>{o(7453);var c=o(54058);p.exports=c.Reflect.construct},37095:(p,I,o)=>{o(42355);var c=o(54058);p.exports=c.Reflect.get},21631:(p,I,o)=>{o(11035);var c=o(35703);p.exports=c("String").includes},57473:(p,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);p.exports=c.Symbol},24227:(p,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);p.exports=c.f("iterator")},32304:(p,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);p.exports=c.WeakMap},27385:(p,I,o)=>{var c=o(54493);p.exports=c},81522:(p,I,o)=>{var c=o(24034);p.exports=c},32209:(p,I,o)=>{o(7634),o(77971);var c=o(22902);p.exports=c},44442:(p,I,o)=>{var c=o(2480);p.exports=c},57152:(p,I,o)=>{var c=o(46279);p.exports=c},69447:(p,I,o)=>{var c=o(34570);p.exports=c},81493:(p,I,o)=>{var c=o(69601);p.exports=c},76094:(p,I,o)=>{var c=o(35254);p.exports=c},70573:(p,I,o)=>{var c=o(7702);p.exports=c},73685:(p,I,o)=>{var c=o(48171);p.exports=c},27533:(p,I,o)=>{var c=o(286);p.exports=c},39057:(p,I,o)=>{var c=o(92766);p.exports=c},84710:(p,I,o)=>{var c=o(30498);p.exports=c},74303:(p,I,o)=>{var c=o(13966);p.exports=c},93799:(p,I,o)=>{var c=o(48494);p.exports=c},55122:(p,I,o)=>{var c=o(3065);p.exports=c},29531:(p,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),p.exports=c},10856:(p,I,o)=>{var c=o(14983);p.exports=c},31524:(p,I,o)=>{var c=o(37095);p.exports=c},86600:(p,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),p.exports=c},9759:(p,I,o)=>{var c=o(24227);p.exports=c},33916:p=>{p.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(p,I,o)=>{var c=o(10941);p.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:p=>{p.exports=function(){}},5743:p=>{p.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(p,I,o)=>{var c=o(10941);p.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(p,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");p.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(p,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),h=o(6782),b=o(43057),S=o(55449),g=o(22902);p.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,k=H!==void 0,X=g(B),M=0,C,V,J,q,Q,Y;if(k&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&h(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;M++)Y=k?x(q,H,[J.value,M],!0):J.value,S(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=k?H(B[M],M):B[M],S(V,M,Y);return V.length=M,V}},31692:(p,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),h=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=D[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};p.exports={includes:h(!0),indexOf:h(!1)}},3610:(p,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),h=o(43057),b=o(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,_=L==4,H=L==6,k=L==7,X=L==5||H;return function(M,C,V,J){for(var q=x(M),Q=v(q),Y=c(C,V,3),ce=h(Q.length),ee=0,ie=J||b,xe=D?ie(M,ce):B||k?ie(M,0):void 0,we,he;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],he=Y(we,ee,q),L))if(D)xe[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return H?-1:j||_?_:xe}};p.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:(p,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),h=v("species");p.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[h]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(p,I,o)=>{"use strict";var c=o(95981);p.exports=function(v,x){var h=[][v];return!!h&&c(function(){h.call(null,x||function(){throw 1},1)})}},64692:(p,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),h=x("species");p.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[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(p,I,o)=>{var c=o(96059),v=o(7609);p.exports=function(x,h,b,S){try{return S?h(c(b)[0],b[1]):h(b)}catch(g){throw v(x),g}}},21385:(p,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var h=0,b={next:function(){return{done:!!h++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}p.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:p=>{var I={}.toString;p.exports=function(o){return I.call(o).slice(8,-1)}},9697:(p,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),h=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};p.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),h))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(p,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),h=o(10941),b=o(5743),S=o(93091),g=o(3610),L=o(47457),D=o(45402),B=D.set,j=D.getterFor,_=g.find,H=g.findIndex,k=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};M.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}},p.exports={getConstructor:function(V,J,q,Q){var Y=V(function(ie,xe){b(ie,Y,J),B(ie,{type:J,id:k++,frozen:void 0}),xe!=null&&S(xe,ie[Q],{that:ie,AS_ENTRIES:q})}),ce=j(J),ee=function(ie,xe,we){var he=ce(ie),fe=v(x(xe),!0);return fe===!0?X(he).set(xe,we):fe[he.id]=we,ie};return c(Y.prototype,{delete:function(ie){var xe=ce(this);if(!h(ie))return!1;var we=v(ie);return we===!0?X(xe).delete(ie):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!h(xe))return!1;var he=v(xe);return he===!0?X(we).has(xe):he&&L(he,we.id)}}),c(Y.prototype,q?{get:function(xe){var we=ce(this);if(h(xe)){var he=v(xe);return he===!0?X(we).get(xe):he?he[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},24683:(p,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),h=o(95981),b=o(32029),S=o(93091),g=o(5743),L=o(10941),D=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),k=H.set,X=H.getterFor;p.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],ce=Y&&Y.prototype,ee={},ie;if(!_||typeof Y!="function"||!(q||ce.forEach&&!h(function(){new Y().entries().next()})))ie=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ie=C(function(we,he){k(g(we,ie,M),{type:M,collection:new Y}),he!=null&&S(he,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var he=we=="add"||we=="set";we in ce&&!(q&&we=="clear")&&b(ie.prototype,we,function(fe,ae){var Fe=xe(this).collection;if(!he&&q&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,ae);return he?this:Le})}),q||B(ie.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ie,M,!1,!0),ee[M]=ie,c({global:!0,forced:!0},ee),q||V.setStrong(ie,M,J),ie}},67772:(p,I,o)=>{var c=o(99813),v=c("match");p.exports=function(x){var h=/./;try{"/./"[x](h)}catch(b){try{return h[v]=!1,"/./"[x](h)}catch(S){}}return!1}},64160:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(p,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),h=o(90904),b=o(12077),S=function(){return this};p.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),h(g,B,!1,!0),b[B]=S,g}},32029:(p,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);p.exports=c?function(h,b,S){return v.f(h,b,x(1,S))}:function(h,b,S){return h[b]=S,h}},31887:p=>{p.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(p,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);p.exports=function(h,b,S){var g=c(b);g in h?v.f(h,g,x(0,S)):h[g]=S}},47771:(p,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),h=o(88929),b=o(90904),S=o(32029),g=o(99754),L=o(99813),D=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,k=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};p.exports=function(J,q,Q,Y,ce,ee,ie){v(Q,q,Y);var xe=function(Qe){if(Qe===ce&&Fe)return Fe;if(!H&&Qe in fe)return fe[Qe];switch(Qe){case X:return function(){return new Q(this,Qe)};case M:return function(){return new Q(this,Qe)};case C:return function(){return new Q(this,Qe)}}return function(){return new Q(this)}},we=q+" Iterator",he=!1,fe=J.prototype,ae=fe[k]||fe["@@iterator"]||ce&&fe[ce],Fe=!H&&ae||xe(ce),Le=q=="Array"&&fe.entries||ae,Re,Pe,rt;if(Le&&(Re=x(Le.call(new J)),_!==Object.prototype&&Re.next&&(!D&&x(Re)!==_&&(h?h(Re,_):typeof Re[k]!="function"&&S(Re,k,V)),b(Re,we,!0,!0),D&&(B[we]=V))),ce==M&&ae&&ae.name!==M&&(he=!0,Fe=function(){return ae.call(this)}),(!D||ie)&&fe[k]!==Fe&&S(fe,k,Fe),B[q]=Fe,ce)if(Pe={values:xe(M),keys:ee?Fe:xe(X),entries:xe(C)},ie)for(rt in Pe)(H||he||!(rt in fe))&&g(fe,rt,Pe[rt]);else c({target:q,proto:!0,forced:H||he},Pe);return Pe}},66349:(p,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),h=o(65988).f;p.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||h(S,b,{value:x.f(b)})}},55746:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(p,I,o)=>{var c=o(21899),v=o(10941),x=c.document,h=v(x)&&v(x.createElement);p.exports=function(b){return h?x.createElement(b):{}}},63281:p=>{p.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:p=>{p.exports=typeof window=="object"},22749:(p,I,o)=>{var c=o(2861);p.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(p,I,o)=>{var c=o(82532),v=o(21899);p.exports=c(v.process)=="process"},58045:(p,I,o)=>{var c=o(2861);p.exports=/web0s(?!.*chrome)/i.test(c)},2861:(p,I,o)=>{var c=o(626);p.exports=c("navigator","userAgent")||""},53385:(p,I,o)=>{var c=o(21899),v=o(2861),x=c.process,h=x&&x.versions,b=h&&h.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]))),p.exports=g&&+g},35703:(p,I,o)=>{var c=o(54058);p.exports=function(v){return c[v+"Prototype"]}},56759:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(p,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),h=o(54058),b=o(86843),S=o(32029),g=o(47457),L=function(D){var B=function(j,_,H){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,_)}return new D(j,_,H)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};p.exports=function(D,B){var j=D.target,_=D.global,H=D.stat,k=D.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,M=_?h:h[j]||(h[j]={}),C=M.prototype,V,J,q,Q,Y,ce,ee,ie,xe;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=M[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):k&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),M[Q]=ie,k&&(q=j+"Prototype",g(h,q)||S(h,q,{}),h[q][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:p=>{p.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(p,I,o)=>{var c=o(33916);p.exports=function(v,x,h){if(c(v),x===void 0)return v;switch(h){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:(p,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,h={},b=function(S,g,L){if(!(g in h)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";h[g]=Function("C,a","return new C("+D.join(",")+")")}return h[g](S,L)};p.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:(p,I,o)=>{var c=o(54058),v=o(21899),x=function(h){return typeof h=="function"?h:void 0};p.exports=function(h,b){return arguments.length<2?x(c[h])||x(v[h]):c[h]&&c[h][b]||v[h]&&v[h][b]}},22902:(p,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),h=x("iterator");p.exports=function(b){if(b!=null)return b[h]||b["@@iterator"]||v[c(b)]}},21899:(p,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};p.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:(p,I,o)=>{var c=o(89678),v={}.hasOwnProperty;p.exports=Object.hasOwn||function(h,b){return v.call(c(h),b)}},27748:p=>{p.exports={}},34845:(p,I,o)=>{var c=o(21899);p.exports=function(v,x){var h=c.console;h&&h.error&&(arguments.length===1?h.error(v):h.error(v,x))}},15463:(p,I,o)=>{var c=o(626);p.exports=c("document","documentElement")},2840:(p,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);p.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(p,I,o)=>{var c=o(95981),v=o(82532),x="".split;p.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return v(h)=="String"?x.call(h,""):Object(h)}:Object},81302:(p,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),p.exports=c.inspectSource},21647:(p,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),h=o(65988).f,b=o(99418),S=o(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){h(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},_=function(X,M){if(!x(X,g)){if(!D(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},H=function(X){return S&&k.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},k=p.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(p,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),h=o(32029),b=o(47457),S=o(63030),g=o(44262),L=o(27748),D="Object already initialized",B=v.WeakMap,j,_,H,k=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=_(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var M=S.state||(S.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(D);return Y.facade=Q,J.call(M,Q,Y),Y},_=function(Q){return C.call(M,Q)||{}},H=function(Q){return V.call(M,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,Y){if(b(Q,q))throw new TypeError(D);return Y.facade=Q,h(Q,q,Y),Y},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}p.exports={set:j,get:_,has:H,enforce:k,getterFor:X}},6782:(p,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),h=Array.prototype;p.exports=function(b){return b!==void 0&&(v.Array===b||h[x]===b)}},1052:(p,I,o)=>{var c=o(82532);p.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(p,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[h(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},h=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";p.exports=x},10941:p=>{p.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:p=>{p.exports=!0},60685:(p,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),h=x("match");p.exports=function(b){var S;return c(b)&&((S=b[h])!==void 0?!!S:v(b)=="RegExp")}},93091:(p,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),h=o(86843),b=o(22902),S=o(7609),g=function(L,D){this.stopped=L,this.result=D};p.exports=function(L,D,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),k=!!(B&&B.INTERRUPTED),X=h(D,j,1+_+k),M,C,V,J,q,Q,Y,ce=function(ie){return M&&S(M),new g(!0,ie)},ee=function(ie){return _?(c(ie),k?X(ie[0],ie[1],ce):X(ie[0],ie[1])):k?X(ie,ce):X(ie)};if(H)M=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=ee(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{q=ee(Y.value)}catch(ie){throw S(M),ie}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(p,I,o)=>{var c=o(96059);p.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(p,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),h=o(47457),b=o(99813),S=o(82529),g=b("iterator"),L=!1,D=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)&&!h(B,g)&&x(B,g,D),p.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:p=>{p.exports={}},66132:(p,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,h=o(22749),b=o(58045),S=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,k,X,M,C,V,J,q;_||(H=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();k;){Y=k.fn,k=k.next;try{Y()}catch(ce){throw k?M():X=void 0,ce}}X=void 0,Q&&Q.enter()},!h&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,M=function(){q.call(J,H)}):S?M=function(){D.nextTick(H)}:M=function(){x.call(c,H)}),p.exports=_||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),k||(k=Y,M()),X=Y}},19297:(p,I,o)=>{var c=o(21899);p.exports=c.Promise},72497:(p,I,o)=>{var c=o(53385),v=o(95981);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(p,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;p.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(p,I,o)=>{"use strict";var c=o(33916),v=function(x){var h,b;this.promise=new x(function(S,g){if(h!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");h=S,b=g}),this.resolve=c(h),this.reject=c(b)};p.exports.f=function(x){return new v(x)}},70344:(p,I,o)=>{var c=o(60685);p.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(p,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),h=o(87857),b=o(36760),S=o(89678),g=o(37026),L=Object.assign,D=Object.defineProperty;p.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={},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,M=h.f,C=b.f;k>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),q=J.length,Q=0,Y;q>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(H[Y]=V[Y]);return H}:L},29290:(p,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),h=o(27748),b=o(15463),S=o(61333),g=o(44262),L=">",D="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},k=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(k("")),J.close();var q=J.parentWindow.Object;return J=null,q},M=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):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};h[_]=!0,p.exports=Object.create||function(q,Q){var Y;return q!==null?(H[B]=c(q),Y=new H,H[B]=null,Y[_]=q):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(p,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),h=o(14771);p.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=h(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(p,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),h=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=h(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:(p,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),h=o(74529),b=o(46935),S=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=h(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:(p,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return h.slice()}};p.exports.f=function(g){return h&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(p,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:(p,I)=>{I.f=Object.getOwnPropertySymbols},249:(p,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),h=o(64160),b=x("IE_PROTO"),S=Object.prototype;p.exports=h?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:(p,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,h=o(27748);p.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(h,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(p,I,o)=>{var c=o(55629),v=o(56759);p.exports=Object.keys||function(h){return c(h,v)}},36760:(p,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(h){var b=c(this,h);return!!b&&b.enumerable}:o},88929:(p,I,o)=>{var c=o(96059),v=o(42488);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,h={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(h,[]),x=h 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:(p,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),h=o(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,_=[],H;B>j;)H=D[j++],(!c||h.call(L,H))&&_.push(S?[H,L[H]]:L[H]);return _}};p.exports={entries:b(!0),values:b(!1)}},95623:(p,I,o)=>{"use strict";var c=o(22885),v=o(9697);p.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(p,I,o)=>{var c=o(626),v=o(10946),x=o(87857),h=o(96059);p.exports=c("Reflect","ownKeys")||function(S){var g=v.f(h(S)),L=x.f;return L?g.concat(L(S)):g}},54058:p=>{p.exports={}},40002:p=>{p.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(p,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);p.exports=function(h,b){if(c(h),v(b)&&b.constructor===h)return b;var S=x.f(h),g=S.resolve;return g(b),S.promise}},87524:(p,I,o)=>{var c=o(99754);p.exports=function(v,x,h){for(var b in x)h&&h.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],h);return v}},99754:(p,I,o)=>{var c=o(32029);p.exports=function(v,x,h,b){b&&b.enumerable?v[x]=h:c(v,x,h)}},48219:p=>{p.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(p,I,o)=>{var c=o(21899),v=o(32029);p.exports=function(x,h){try{v(c,x,h)}catch(b){c[x]=h}return h}},94431:(p,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),h=o(55746),b=x("species");p.exports=function(S){var g=c(S),L=v.f;h&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(p,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),h=o(47457),b=o(95623),S=o(99813),g=S("toStringTag");p.exports=function(L,D,B,j){if(L){var _=B?L:L.prototype;h(_,g)||v(_,g,{configurable:!0,value:D}),j&&!c&&x(_,"toString",b)}}},44262:(p,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");p.exports=function(h){return x[h]||(x[h]=v(h))}},63030:(p,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",h=c[x]||v(x,{});p.exports=h},68726:(p,I,o)=>{var c=o(82529),v=o(63030);(p.exports=function(x,h){return v[x]||(v[x]=h!==void 0?h:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(p,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),h=x("species");p.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[h])==null?S:v(L)}},64620:(p,I,o)=>{var c=o(68459),v=o(48219),x=function(h){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?h?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?h?g.charAt(L):B:h?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};p.exports={codeAt:x(!1),charAt:x(!0)}},42941:(p,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),h=o(15463),b=o(61333),S=o(22749),g=o(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,k=0,X={},M="onreadystatechange",C,V,J,q=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){q(ee)}},Y=function(ee){q(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++k]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,xe)},C(k),k},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:H&&H.now?C=function(ee){H.now(Q(ee))}:_&&!S?(V=new _,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):M in b("script")?C=function(ee){h.appendChild(b("script"))[M]=function(){h.removeChild(this),q(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),p.exports={set:D,clear:B}},59413:(p,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;p.exports=function(h,b){var S=c(h);return S<0?v(S+b,0):x(S,b)}},74529:(p,I,o)=>{var c=o(37026),v=o(48219);p.exports=function(x){return c(v(x))}},68459:p=>{var I=Math.ceil,o=Math.floor;p.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(p,I,o)=>{var c=o(68459),v=Math.min;p.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(p,I,o)=>{var c=o(48219);p.exports=function(v){return Object(c(v))}},46935:(p,I,o)=>{var c=o(10941);p.exports=function(v,x){if(!c(v))return v;var h,b;if(x&&typeof(h=v.toString)=="function"&&!c(b=h.call(v))||typeof(h=v.valueOf)=="function"&&!c(b=h.call(v))||!x&&typeof(h=v.toString)=="function"&&!c(b=h.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(p,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",p.exports=String(x)==="[object z]"},99418:p=>{var I=0,o=Math.random();p.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(p,I,o)=>{var c=o(72497);p.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(p,I,o)=>{var c=o(99813);I.f=c},99813:(p,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),h=o(99418),b=o(72497),S=o(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||h;p.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:(p,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),h=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=h(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(p,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),h=o(10941),b=o(89678),S=o(43057),g=o(55449),L=o(64692),D=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}),M=D("concat"),C=function(J){if(!h(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,xe,we,he;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(we=S(he.length),ce+we>H)throw TypeError(k);for(ie=0;ie<we;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=H)throw TypeError(k);g(Y,ce++,he)}return Y.length=ce,Y}})},21501:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),h=x("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),h="find",b=!0;h in[]&&Array(1)[h](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(h)},2437:(p,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(p,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),h=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:h},{from:v})},97690:(p,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:(p,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),h=[].indexOf,b=!!h&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?h.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(p,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(p,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),h=o(45402),b=o(47771),S="Array Iterator",g=h.set,L=h.getterFor(S);p.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,_=D.index++;return!B||_>=B.length?(D.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:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),h=x("map");c({target:"Array",proto:!0,forced:!h},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(p,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),h=o(59413),b=o(43057),S=o(74529),g=o(55449),L=o(99813),D=o(50568),B=D("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=S(this),V=b(C.length),J=h(X,V),q=h(M===void 0?V:M,V),Q,Y,ce;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(Y=new(Q===void 0?Array:Q)(H(q-J,0)),ce=0;J<q;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},98611:(p,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),h=o(43057),b=o(89678),S=o(64692),g=o(55449),L=o(50568),D=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,M){var C=b(this),V=h(C.length),J=v(X,V),q=arguments.length,Q,Y,ce,ee,ie,xe;if(q===0?Q=Y=0:q===1?(Q=0,Y=V-J):(Q=q-2,Y=j(B(x(M),0),V-J)),V+Q-Y>_)throw TypeError(H);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,xe=ee+Q,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,xe=ee+Q-1,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},32619:(p,I,o)=>{var c=o(76887),v=o(626),x=o(95981),h=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},D=x(function(){return h("\uDF06\uD834")!=='"\\udf06\\ud834"'||h("\uDEAD")!=='"\\udead"'});h&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,_,H){var k=h.apply(null,arguments);return typeof k=="string"?k.replace(b,L):k}})},69120:(p,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(p,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(p,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:(p,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(h){return v(h)}})},46924:(p,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),h=o(49677).f,b=o(55746),S=v(function(){h(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return h(x(D),B)}})},88482:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),h=o(74529),b=o(49677),S=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=h(L),B=b.f,j=x(D),_={},H=0,k,X;j.length>H;)X=B(D,k=j[H++]),X!==void 0&&S(_,k,X);return _}})},17405:(p,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),h=o(249),b=o(64160),S=v(function(){h(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return h(x(L))}})},21724:(p,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),h=o(95981),b=h(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(p,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(p,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),h=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,_=h(function(){var H=v(L.resolve),k=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;k.push(void 0),M++,H.call(L,C).then(function(q){J||(J=!0,k[V]={status:"fulfilled",value:q},--M||B(k))},function(q){J||(J=!0,k[V]={status:"rejected",reason:q},--M||B(k))})}),--M||B(k)});return _.error&&j(_.value),D.promise}})},91302:(p,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),h=o(69520),b=o(40002),S=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=h.f(B),_=j.resolve,H=j.reject,k=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;S(D,function(q){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,q).then(function(ce){Y||J||(J=!0,_(ce))},function(ce){Y||J||(Y=!0,M[Q]=ce,--V||H(new(x("AggregateError"))(M,g)))})}),--V||H(new(x("AggregateError"))(M,g))});return k.error&&H(k.value),j.promise}})},44349:(p,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),h=o(95981),b=o(626),S=o(70487),g=o(56584),L=o(99754),D=!!x&&h(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{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:(p,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),h=o(626),b=o(19297),S=o(99754),g=o(87524),L=o(88929),D=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),k=o(81302),X=o(93091),M=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),Y=o(69520),ce=o(40002),ee=o(45402),ie=o(37252),xe=o(99813),we=o(23321),he=o(6049),fe=o(53385),ae=xe("species"),Fe="Promise",Le=ee.get,Re=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Qe=b,Je=rt,ct=x.TypeError,vt=x.document,wt=x.process,nt=Y.f,ft=nt,mt=!!(vt&&vt.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",ht="unhandledrejection",Rt="rejectionhandled",Ft=0,Et=1,Wt=2,Ut=1,jt=2,St=!1,Dt,ge,G,$,Se=ie(Fe,function(){var re=k(Qe)!==String(Qe);if(!re&&fe===66||v&&!Je.finally)return!0;if(fe>=51&&/native code/.test(Qe))return!1;var de=new Qe(function(Ee){Ee(1)}),oe=function(Ee){Ee(function(){},function(){})},pe=de.constructor={};return pe[ae]=oe,St=de.then(function(){})instanceof oe,St?!re&&we&&!xt:!0}),Ie=Se||!M(function(re){Qe.all(re).catch(function(){})}),Ge=function(re){var de;return j(re)&&typeof(de=re.then)=="function"?de:!1},Ke=function(re,de){if(!re.notified){re.notified=!0;var oe=re.reactions;J(function(){for(var pe=re.value,Ee=re.state==Et,je=0;oe.length>je;){var Ve=oe[je++],Xe=Ee?Ve.ok:Ve.fail,gt=Ve.resolve,At=Ve.reject,Nt=Ve.domain,Tt,bn,zr;try{Xe?(Ee||(re.rejection===jt&&T(re),re.rejection=Ut),Xe===!0?Tt=pe:(Nt&&Nt.enter(),Tt=Xe(pe),Nt&&(Nt.exit(),zr=!0)),Tt===Ve.promise?At(ct("Promise-chain cycle")):(bn=Ge(Tt))?bn.call(Tt,gt,At):gt(Tt)):At(pe)}catch(Fr){Nt&&!zr&&Nt.exit(),At(Fr)}}re.reactions=[],re.notified=!1,de&&!re.rejection&&Me(re)})}},P=function(re,de,oe){var pe,Ee;mt?(pe=vt.createEvent("Event"),pe.promise=de,pe.reason=oe,pe.initEvent(re,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:oe},!xt&&(Ee=x["on"+re])?Ee(pe):re===ht&&Q("Unhandled promise rejection",oe)},Me=function(re){V.call(x,function(){var de=re.facade,oe=re.value,pe=K(re),Ee;if(pe&&(Ee=ce(function(){he?wt.emit("unhandledRejection",oe,de):P(ht,de,oe)}),re.rejection=he||K(re)?jt:Ut,Ee.error))throw Ee.value})},K=function(re){return re.rejection!==Ut&&!re.parent},T=function(re){V.call(x,function(){var de=re.facade;he?wt.emit("rejectionHandled",de):P(Rt,de,re.value)})},O=function(re,de,oe){return function(pe){re(de,pe,oe)}},se=function(re,de,oe){re.done||(re.done=!0,oe&&(re=oe),re.value=de,re.state=Wt,Ke(re,!0))},N=function(re,de,oe){if(!re.done){re.done=!0,oe&&(re=oe);try{if(re.facade===de)throw ct("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ee={done:!1};try{pe.call(de,O(N,Ee,re),O(se,Ee,re))}catch(je){se(Ee,je,re)}}):(re.value=de,re.state=Et,Ke(re,!1))}catch(Ee){se({done:!1},Ee,re)}}};if(Se&&(Qe=function(de){H(this,Qe,Fe),_(de),Dt.call(this);var oe=Le(this);try{de(O(N,oe),O(se,oe))}catch(pe){se(oe,pe)}},Je=Qe.prototype,Dt=function(de){Re(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Ft,value:void 0})},Dt.prototype=g(Je,{then:function(de,oe){var pe=Pe(this),Ee=nt(C(this,Qe));return Ee.ok=typeof de=="function"?de:!0,Ee.fail=typeof oe=="function"&&oe,Ee.domain=he?wt.domain:void 0,pe.parent=!0,pe.reactions.push(Ee),pe.state!=Ft&&Ke(pe,!1),Ee.promise},catch:function(re){return this.then(void 0,re)}}),ge=function(){var re=new Dt,de=Le(re);this.promise=re,this.resolve=O(N,de),this.reject=O(se,de)},Y.f=nt=function(re){return re===Qe||re===G?new ge(re):ft(re)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,oe){var pe=this;return new Qe(function(Ee,je){$.call(pe,Ee,je)}).then(de,oe)},{unsafe:!0}),S(rt,"catch",Je.catch,{unsafe:!0}));try{delete rt.constructor}catch(re){}L&&L(rt,Je)}c({global:!0,wrap:!0,forced:Se},{Promise:Qe}),D(Qe,Fe,!1,!0),B(Fe),G=h(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var oe=nt(this);return oe.reject.call(void 0,de),oe.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return q(v&&this===G?Qe:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var oe=this,pe=nt(oe),Ee=pe.resolve,je=pe.reject,Ve=ce(function(){var Xe=_(oe.resolve),gt=[],At=0,Nt=1;X(de,function(Tt){var bn=At++,zr=!1;gt.push(void 0),Nt++,Xe.call(oe,Tt).then(function(Fr){zr||(zr=!0,gt[bn]=Fr,--Nt||Ee(gt))},je)}),--Nt||Ee(gt)});return Ve.error&&je(Ve.value),pe.promise},race:function(de){var oe=this,pe=nt(oe),Ee=pe.reject,je=ce(function(){var Ve=_(oe.resolve);X(de,function(Xe){Ve.call(oe,Xe).then(pe.resolve,Ee)})});return je.error&&Ee(je.value),pe.promise}})},7453:(p,I,o)=>{var c=o(76887),v=o(626),x=o(33916),h=o(96059),b=o(10941),S=o(29290),g=o(98308),L=o(95981),D=v("Reflect","construct"),B=L(function(){function H(){}return!(D(function(){},[],H)instanceof H)}),j=!L(function(){D(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(k,X){x(k),h(X);var M=arguments.length<3?k:x(arguments[2]);if(j&&!B)return D(k,X,M);if(k==M){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=M.prototype,J=S(b(V)?V:Object.prototype),q=Function.apply.call(k,J,X);return b(q)?q:J}})},42355:(p,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),h=o(47457),b=o(49677),S=o(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[D];if(j=b.f(L,D))return h(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=S(L)))return g(_,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(p,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),h=o(67772);c({target:"String",proto:!0,forced:!h("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(p,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),h="String Iterator",b=v.set,S=v.getterFor(h);x(String,"String",function(g){b(this,{type:h,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(p,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(p,I,o)=>{var c=o(66349);c("hasInstance")},35903:(p,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(p,I,o)=>{var c=o(66349);c("iterator")},35824:(p,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),h=o(82529),b=o(55746),S=o(72497),g=o(32302),L=o(95981),D=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),k=o(74529),X=o(46935),M=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),Y=o(49677),ce=o(65988),ee=o(36760),ie=o(32029),xe=o(99754),we=o(68726),he=o(44262),fe=o(27748),ae=o(99418),Fe=o(99813),Le=o(11477),Re=o(66349),Pe=o(90904),rt=o(45402),Qe=o(3610).forEach,Je=he("hidden"),ct="Symbol",vt="prototype",wt=Fe("toPrimitive"),nt=rt.set,ft=rt.getterFor(ct),mt=Object[vt],xt=v.Symbol,ht=x("JSON","stringify"),Rt=Y.f,Ft=ce.f,Et=q.f,Wt=ee.f,Ut=we("symbols"),jt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ge=we("wks"),G=v.QObject,$=!G||!G[vt]||!G[vt].findChild,Se=b&&L(function(){return C(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(re,de,oe){var pe=Rt(mt,de);pe&&delete mt[de],Ft(re,de,oe),pe&&re!==mt&&Ft(mt,de,pe)}:Ft,Ie=function(re,de){var oe=Ut[re]=C(xt[vt]);return nt(oe,{type:ct,tag:re,description:de}),b||(oe.description=de),oe},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof xt},Ke=function(de,oe,pe){de===mt&&Ke(jt,oe,pe),_(de);var Ee=X(oe,!0);return _(pe),D(Ut,Ee)?(pe.enumerable?(D(de,Je)&&de[Je][Ee]&&(de[Je][Ee]=!1),pe=C(pe,{enumerable:M(0,!1)})):(D(de,Je)||Ft(de,Je,M(1,{})),de[Je][Ee]=!0),Se(de,Ee,pe)):Ft(de,Ee,pe)},P=function(de,oe){_(de);var pe=k(oe),Ee=V(pe).concat(se(pe));return Qe(Ee,function(je){(!b||K.call(pe,je))&&Ke(de,je,pe[je])}),de},Me=function(de,oe){return oe===void 0?C(de):P(C(de),oe)},K=function(de){var oe=X(de,!0),pe=Wt.call(this,oe);return this===mt&&D(Ut,oe)&&!D(jt,oe)?!1:pe||!D(this,oe)||!D(Ut,oe)||D(this,Je)&&this[Je][oe]?pe:!0},T=function(de,oe){var pe=k(de),Ee=X(oe,!0);if(!(pe===mt&&D(Ut,Ee)&&!D(jt,Ee))){var je=Rt(pe,Ee);return je&&D(Ut,Ee)&&!(D(pe,Je)&&pe[Je][Ee])&&(je.enumerable=!0),je}},O=function(de){var oe=Et(k(de)),pe=[];return Qe(oe,function(Ee){!D(Ut,Ee)&&!D(fe,Ee)&&pe.push(Ee)}),pe},se=function(de){var oe=de===mt,pe=Et(oe?jt:k(de)),Ee=[];return Qe(pe,function(je){D(Ut,je)&&(!oe||D(mt,je))&&Ee.push(Ut[je])}),Ee};if(S||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),oe=ae(de),pe=function(Ee){this===mt&&pe.call(jt,Ee),D(this,Je)&&D(this[Je],oe)&&(this[Je][oe]=!1),Se(this,oe,M(1,Ee))};return b&&$&&Se(mt,oe,{configurable:!0,set:pe}),Ie(oe,de)},xe(xt[vt],"toString",function(){return ft(this).tag}),xe(xt,"withoutSetter",function(re){return Ie(ae(re),re)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=q.f=O,Q.f=se,Le.f=function(re){return Ie(Fe(re),re)},b&&(Ft(xt[vt],"description",{configurable:!0,get:function(){return ft(this).description}}),h||xe(mt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:xt}),Qe(V(ge),function(re){Re(re)}),c({target:ct,stat:!0,forced:!S},{for:function(re){var de=String(re);if(D(St,de))return St[de];var oe=xt(de);return St[de]=oe,Dt[oe]=de,oe},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Me,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:se}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(H(de))}}),ht){var N=!S||L(function(){var re=xt();return ht([re])!="[null]"||ht({a:re})!="{}"||ht(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,oe,pe){for(var Ee=[de],je=1,Ve;arguments.length>je;)Ee.push(arguments[je++]);if(Ve=oe,!(!j(oe)&&de===void 0||Ge(de)))return B(oe)||(oe=function(Xe,gt){if(typeof Ve=="function"&&(gt=Ve.call(this,Xe,gt)),!Ge(gt))return gt}),Ee[1]=oe,ht.apply(null,Ee)}})}xt[vt][wt]||ie(xt[vt],wt,xt[vt].valueOf),Pe(xt,ct),fe[Je]=!0},45915:(p,I,o)=>{var c=o(66349);c("matchAll")},28394:(p,I,o)=>{var c=o(66349);c("match")},61766:(p,I,o)=>{var c=o(66349);c("replace")},62737:(p,I,o)=>{var c=o(66349);c("search")},89911:(p,I,o)=>{var c=o(66349);c("species")},74315:(p,I,o)=>{var c=o(66349);c("split")},63131:(p,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(p,I,o)=>{var c=o(66349);c("toStringTag")},70659:(p,I,o)=>{var c=o(66349);c("unscopables")},54334:(p,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),h=o(24683),b=o(8850),S=o(10941),g=o(45402).enforce,L=o(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=p.exports=h("WeakMap",_,b);if(L&&D){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var k=H.prototype,X=k.delete,M=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),M.call(this,q)||Q.frozen.has(q)}return M.call(this,q)},get:function(q){if(S(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.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 Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,q)?V.call(this,q,Q):Y.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(p,I,o)=>{o(47627)},55708:(p,I,o)=>{o(4560)},88731:(p,I,o)=>{o(91302)},30014:(p,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(h){var b=v.f(this),S=x(h);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(p,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(p,I,o)=>{var c=o(66349);c("dispose")},65799:(p,I,o)=>{var c=o(66349);c("matcher")},45414:(p,I,o)=>{var c=o(66349);c("metadata")},46774:(p,I,o)=>{var c=o(66349);c("observable")},80620:(p,I,o)=>{var c=o(66349);c("patternMatch")},36172:(p,I,o)=>{var c=o(66349);c("replaceAll")},7634:(p,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),h=o(32029),b=o(12077),S=o(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&h(B,g,L),b[L]=b.Array}},27698:(p,I,o)=>{var c=o(54493);p.exports=c},62908:(p,I,o)=>{var c=o(12710);p.exports=c},49216:(p,I,o)=>{var c=o(99324);p.exports=c},8065:(p,I,o)=>{var c=o(56043);p.exports=c},57448:(p,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||h.hasOwnProperty(v(b))?c:S}},11955:(p,I,o)=>{var c=o(2480);p.exports=c},61577:(p,I,o)=>{var c=o(32236);p.exports=c},46279:(p,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||h.hasOwnProperty(v(b))?c:S}},33778:(p,I,o)=>{var c=o(58557);p.exports=c},61798:(p,I,o)=>{var c=o(88287);p.exports=c},82073:(p,I,o)=>{var c=o(69601);p.exports=c},2348:(p,I,o)=>{var c=o(18339);p.exports=c},8933:(p,I,o)=>{var c=o(84426);p.exports=c},63383:(p,I,o)=>{var c=o(45999);p.exports=c},86209:(p,I,o)=>{var c=o(73081);p.exports=c},23059:(p,I,o)=>{var c=o(48494);p.exports=c},27460:(p,I,o)=>{var c=o(52956);p.exports=c},72010:(p,I,o)=>{var c=o(32304);p.exports=c},31905:function(){(function(p){var I=function(o){var c={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,xe){this.append(xe,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ie,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,xe){ee.push([xe,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,xe){ee.onload=function(){ie(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ie=new FileReader,xe=B(ie);return ie.readAsArrayBuffer(ee),xe}function _(ee){var ie=new FileReader,xe=B(ie);return ie.readAsText(ee),xe}function H(ee){for(var ie=new Uint8Array(ee),xe=new Array(ie.length),we=0;we<ie.length;we++)xe[we]=String.fromCharCode(ie[we]);return xe.join("")}function k(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=k(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||h(ee))?this._bodyArrayBuffer=k(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="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(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;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(j)}),this.text=function(){var ee=D(this);if(ee)return ee;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 M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return M.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var xe=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(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")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),he=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(fe))}}),ie}function q(ee){var ie=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var he=we.split(":"),fe=he.shift().trim();if(fe){var ae=he.join(":").trim();ie.append(fe,ae)}}),ie}X.call(V.prototype);function Q(ee,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 L(ie.headers),this.url=ie.url||"",this._initBody(ee)}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 ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},o.DOMException=p.DOMException;try{new o.DOMException}catch(ee){o.DOMException=function(ie,xe){this.message=ie,this.name=xe;var we=Error(ie);this.stack=we.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(ee,ie){return new Promise(function(xe,we){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return we(new o.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function ae(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:q(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new o.DOMException("Aborted","AbortError"))},fe.open(he.method,he.url,!0),he.credentials==="include"?fe.withCredentials=!0:he.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),he.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",ae),fe.onreadystatechange=function(){fe.readyState===4&&he.signal.removeEventListener("abort",ae)}),fe.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,p.fetch||(p.fetch=ce,p.Headers=L,p.Request=V,p.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=ce,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(p,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 h=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(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(S.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(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function _(fe){var ae={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function H(fe){this.map={},fe instanceof H?fe.forEach(function(ae,Fe){this.append(Fe,ae)},this):Array.isArray(fe)?fe.forEach(function(ae){this.append(ae[0],ae[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(ae){this.append(ae,fe[ae])},this)}H.prototype.append=function(fe,ae){fe=B(fe),ae=j(ae);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+ae:ae},H.prototype.delete=function(fe){delete this.map[B(fe)]},H.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},H.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},H.prototype.set=function(fe,ae){this.map[B(fe)]=j(ae)},H.prototype.forEach=function(fe,ae){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(ae,this.map[Fe],Fe,this)},H.prototype.keys=function(){var fe=[];return this.forEach(function(ae,Fe){fe.push(Fe)}),_(fe)},H.prototype.values=function(){var fe=[];return this.forEach(function(ae){fe.push(ae)}),_(fe)},H.prototype.entries=function(){var fe=[];return this.forEach(function(ae,Fe){fe.push([Fe,ae])}),_(fe)},S.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function k(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(ae,Fe){fe.onload=function(){ae(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function M(fe){var ae=new FileReader,Fe=X(ae);return ae.readAsArrayBuffer(fe),Fe}function C(fe){var ae=new FileReader,Fe=X(ae);return ae.readAsText(fe),Fe}function V(fe){for(var ae=new Uint8Array(fe),Fe=new Array(ae.length),Le=0;Le<ae.length;Le++)Fe[Le]=String.fromCharCode(ae[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var ae=new Uint8Array(fe.byteLength);return ae.set(new Uint8Array(fe)),ae.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:S.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:S.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():S.arrayBuffer&&S.blob&&g(fe)?(this._bodyArrayBuffer=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="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(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var fe=k(this);if(fe)return fe;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 fe=k(this);if(fe)return fe;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(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var ae=fe.toUpperCase();return Q.indexOf(ae)>-1?ae:fe}function ce(fe,ae){ae=ae||{};var Fe=ae.body;if(fe instanceof ce){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,ae.headers||(this.headers=new H(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new H(ae.headers)),this.method=Y(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")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var ae=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Re=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(Re),decodeURIComponent(Pe))}}),ae}function ie(fe){var ae=new H,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Re=Le.split(":"),Pe=Re.shift().trim();if(Pe){var rt=Re.join(":").trim();ae.append(Pe,rt)}}),ae}q.call(ce.prototype);function xe(fe,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 H(ae.headers),this.url=ae.url||"",this._initBody(fe)}q.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,ae){if(we.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:ae,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(ae,Fe){this.message=ae,this.name=Fe;var Le=Error(ae);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(fe,ae){return new Promise(function(Fe,Le){var Re=new ce(fe,ae);if(Re.signal&&Re.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Qe={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Qe.url="responseURL"in Pe?Pe.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Pe?Pe.response:Pe.responseText;Fe(new xe(Je,Qe))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Re.method,Re.url,!0),Re.credentials==="include"?Pe.withCredentials=!0:Re.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Re.headers.forEach(function(Qe,Je){Pe.setRequestHeader(Je,Qe)}),Re.signal&&(Re.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Re.signal.removeEventListener("abort",rt)}),Pe.send(typeof Re._bodyInit=="undefined"?null:Re._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=H,x.Request=ce,x.Response=xe),b.Headers=H,b.Request=ce,b.Response=xe,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,p.exports=I},17438:(p,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),h=o.n(x),b=h()(v());b.push([p.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}
|
|
46
|
+
*/I.parse=h,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function h(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},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 M=k.substr(0,X).trim(),C=k.substr(++X,k.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[M]==null&&(D[M]=S(C,_))}}return D}function b(g,L,D){var B=D||{},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(D){return g}}},54493:(p,I,o)=>{o(77971),o(53242);var c=o(54058);p.exports=c.Array.from},24034:(p,I,o)=>{o(92737);var c=o(54058);p.exports=c.Array.isArray},15367:(p,I,o)=>{o(85906);var c=o(35703);p.exports=c("Array").concat},12710:(p,I,o)=>{o(66274);var c=o(35703);p.exports=c("Array").entries},62383:(p,I,o)=>{o(21501);var c=o(35703);p.exports=c("Array").filter},17671:(p,I,o)=>{o(80833);var c=o(35703);p.exports=c("Array").find},99324:(p,I,o)=>{o(2437);var c=o(35703);p.exports=c("Array").forEach},80991:(p,I,o)=>{o(97690);var c=o(35703);p.exports=c("Array").includes},8700:(p,I,o)=>{o(99076);var c=o(35703);p.exports=c("Array").indexOf},23866:(p,I,o)=>{o(68787);var c=o(35703);p.exports=c("Array").map},24900:(p,I,o)=>{o(60186);var c=o(35703);p.exports=c("Array").slice},78209:(p,I,o)=>{o(98611);var c=o(35703);p.exports=c("Array").splice},56043:(p,I,o)=>{var c=o(15367),v=Array.prototype;p.exports=function(x){var h=x.concat;return x===v||x instanceof Array&&h===v.concat?c:h}},2480:(p,I,o)=>{var c=o(62383),v=Array.prototype;p.exports=function(x){var h=x.filter;return x===v||x instanceof Array&&h===v.filter?c:h}},32236:(p,I,o)=>{var c=o(17671),v=Array.prototype;p.exports=function(x){var h=x.find;return x===v||x instanceof Array&&h===v.find?c:h}},58557:(p,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,h=String.prototype;p.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===h||b instanceof String&&S===h.includes?v:S}},34570:(p,I,o)=>{var c=o(8700),v=Array.prototype;p.exports=function(x){var h=x.indexOf;return x===v||x instanceof Array&&h===v.indexOf?c:h}},88287:(p,I,o)=>{var c=o(23866),v=Array.prototype;p.exports=function(x){var h=x.map;return x===v||x instanceof Array&&h===v.map?c:h}},69601:(p,I,o)=>{var c=o(24900),v=Array.prototype;p.exports=function(x){var h=x.slice;return x===v||x instanceof Array&&h===v.slice?c:h}},18339:(p,I,o)=>{var c=o(78209),v=Array.prototype;p.exports=function(x){var h=x.splice;return x===v||x instanceof Array&&h===v.splice?c:h}},84426:(p,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),p.exports=function(x,h,b){return c.JSON.stringify.apply(null,arguments)}},45999:(p,I,o)=>{o(49221);var c=o(54058);p.exports=c.Object.assign},35254:(p,I,o)=>{o(53882);var c=o(54058),v=c.Object;p.exports=function(h,b){return v.create(h,b)}},7702:(p,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=p.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(p,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=p.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(p,I,o)=>{o(21078);var c=o(54058);p.exports=c.Object.entries},286:(p,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=p.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(p,I,o)=>{o(88482);var c=o(54058);p.exports=c.Object.getOwnPropertyDescriptors},30498:(p,I,o)=>{o(35824);var c=o(54058);p.exports=c.Object.getOwnPropertySymbols},13966:(p,I,o)=>{o(17405);var c=o(54058);p.exports=c.Object.getPrototypeOf},48494:(p,I,o)=>{o(21724);var c=o(54058);p.exports=c.Object.keys},3065:(p,I,o)=>{o(90108);var c=o(54058);p.exports=c.Object.setPrototypeOf},52956:(p,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);p.exports=c.Promise},14983:(p,I,o)=>{o(7453);var c=o(54058);p.exports=c.Reflect.construct},37095:(p,I,o)=>{o(42355);var c=o(54058);p.exports=c.Reflect.get},21631:(p,I,o)=>{o(11035);var c=o(35703);p.exports=c("String").includes},57473:(p,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);p.exports=c.Symbol},24227:(p,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);p.exports=c.f("iterator")},32304:(p,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);p.exports=c.WeakMap},27385:(p,I,o)=>{var c=o(54493);p.exports=c},81522:(p,I,o)=>{var c=o(24034);p.exports=c},32209:(p,I,o)=>{o(7634),o(77971);var c=o(22902);p.exports=c},44442:(p,I,o)=>{var c=o(2480);p.exports=c},57152:(p,I,o)=>{var c=o(46279);p.exports=c},69447:(p,I,o)=>{var c=o(34570);p.exports=c},81493:(p,I,o)=>{var c=o(69601);p.exports=c},76094:(p,I,o)=>{var c=o(35254);p.exports=c},70573:(p,I,o)=>{var c=o(7702);p.exports=c},73685:(p,I,o)=>{var c=o(48171);p.exports=c},27533:(p,I,o)=>{var c=o(286);p.exports=c},39057:(p,I,o)=>{var c=o(92766);p.exports=c},84710:(p,I,o)=>{var c=o(30498);p.exports=c},74303:(p,I,o)=>{var c=o(13966);p.exports=c},93799:(p,I,o)=>{var c=o(48494);p.exports=c},55122:(p,I,o)=>{var c=o(3065);p.exports=c},29531:(p,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),p.exports=c},10856:(p,I,o)=>{var c=o(14983);p.exports=c},31524:(p,I,o)=>{var c=o(37095);p.exports=c},86600:(p,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),p.exports=c},9759:(p,I,o)=>{var c=o(24227);p.exports=c},33916:p=>{p.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(p,I,o)=>{var c=o(10941);p.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:p=>{p.exports=function(){}},5743:p=>{p.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(p,I,o)=>{var c=o(10941);p.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(p,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");p.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(p,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),h=o(6782),b=o(43057),S=o(55449),g=o(22902);p.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,k=H!==void 0,X=g(B),M=0,C,V,J,q,Q,Y;if(k&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&h(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;M++)Y=k?x(q,H,[J.value,M],!0):J.value,S(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=k?H(B[M],M):B[M],S(V,M,Y);return V.length=M,V}},31692:(p,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),h=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=D[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};p.exports={includes:h(!0),indexOf:h(!1)}},3610:(p,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),h=o(43057),b=o(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,_=L==4,H=L==6,k=L==7,X=L==5||H;return function(M,C,V,J){for(var q=x(M),Q=v(q),Y=c(C,V,3),ce=h(Q.length),ee=0,ne=J||b,xe=D?ne(M,ce):B||k?ne(M,0):void 0,we,ve;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],ve=Y(we,ee,q),L))if(D)xe[ee]=ve;else if(ve)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return H?-1:j||_?_:xe}};p.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:(p,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),h=v("species");p.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[h]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(p,I,o)=>{"use strict";var c=o(95981);p.exports=function(v,x){var h=[][v];return!!h&&c(function(){h.call(null,x||function(){throw 1},1)})}},64692:(p,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),h=x("species");p.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[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(p,I,o)=>{var c=o(96059),v=o(7609);p.exports=function(x,h,b,S){try{return S?h(c(b)[0],b[1]):h(b)}catch(g){throw v(x),g}}},21385:(p,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var h=0,b={next:function(){return{done:!!h++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}p.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:p=>{var I={}.toString;p.exports=function(o){return I.call(o).slice(8,-1)}},9697:(p,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),h=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};p.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),h))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(p,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),h=o(10941),b=o(5743),S=o(93091),g=o(3610),L=o(47457),D=o(45402),B=D.set,j=D.getterFor,_=g.find,H=g.findIndex,k=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};M.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}},p.exports={getConstructor:function(V,J,q,Q){var Y=V(function(ne,xe){b(ne,Y,J),B(ne,{type:J,id:k++,frozen:void 0}),xe!=null&&S(xe,ne[Q],{that:ne,AS_ENTRIES:q})}),ce=j(J),ee=function(ne,xe,we){var ve=ce(ne),fe=v(x(xe),!0);return fe===!0?X(ve).set(xe,we):fe[ve.id]=we,ne};return c(Y.prototype,{delete:function(ne){var xe=ce(this);if(!h(ne))return!1;var we=v(ne);return we===!0?X(xe).delete(ne):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!h(xe))return!1;var ve=v(xe);return ve===!0?X(we).has(xe):ve&&L(ve,we.id)}}),c(Y.prototype,q?{get:function(xe){var we=ce(this);if(h(xe)){var ve=v(xe);return ve===!0?X(we).get(xe):ve?ve[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},24683:(p,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),h=o(95981),b=o(32029),S=o(93091),g=o(5743),L=o(10941),D=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),k=H.set,X=H.getterFor;p.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],ce=Y&&Y.prototype,ee={},ne;if(!_||typeof Y!="function"||!(q||ce.forEach&&!h(function(){new Y().entries().next()})))ne=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ne=C(function(we,ve){k(g(we,ne,M),{type:M,collection:new Y}),ve!=null&&S(ve,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var ve=we=="add"||we=="set";we in ce&&!(q&&we=="clear")&&b(ne.prototype,we,function(fe,se){var Fe=xe(this).collection;if(!ve&&q&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,se);return ve?this:Le})}),q||B(ne.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ne,M,!1,!0),ee[M]=ne,c({global:!0,forced:!0},ee),q||V.setStrong(ne,M,J),ne}},67772:(p,I,o)=>{var c=o(99813),v=c("match");p.exports=function(x){var h=/./;try{"/./"[x](h)}catch(b){try{return h[v]=!1,"/./"[x](h)}catch(S){}}return!1}},64160:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(p,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),h=o(90904),b=o(12077),S=function(){return this};p.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),h(g,B,!1,!0),b[B]=S,g}},32029:(p,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);p.exports=c?function(h,b,S){return v.f(h,b,x(1,S))}:function(h,b,S){return h[b]=S,h}},31887:p=>{p.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(p,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);p.exports=function(h,b,S){var g=c(b);g in h?v.f(h,g,x(0,S)):h[g]=S}},47771:(p,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),h=o(88929),b=o(90904),S=o(32029),g=o(99754),L=o(99813),D=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,k=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};p.exports=function(J,q,Q,Y,ce,ee,ne){v(Q,q,Y);var xe=function(Qe){if(Qe===ce&&Fe)return Fe;if(!H&&Qe in fe)return fe[Qe];switch(Qe){case X:return function(){return new Q(this,Qe)};case M:return function(){return new Q(this,Qe)};case C:return function(){return new Q(this,Qe)}}return function(){return new Q(this)}},we=q+" Iterator",ve=!1,fe=J.prototype,se=fe[k]||fe["@@iterator"]||ce&&fe[ce],Fe=!H&&se||xe(ce),Le=q=="Array"&&fe.entries||se,Re,Pe,rt;if(Le&&(Re=x(Le.call(new J)),_!==Object.prototype&&Re.next&&(!D&&x(Re)!==_&&(h?h(Re,_):typeof Re[k]!="function"&&S(Re,k,V)),b(Re,we,!0,!0),D&&(B[we]=V))),ce==M&&se&&se.name!==M&&(ve=!0,Fe=function(){return se.call(this)}),(!D||ne)&&fe[k]!==Fe&&S(fe,k,Fe),B[q]=Fe,ce)if(Pe={values:xe(M),keys:ee?Fe:xe(X),entries:xe(C)},ne)for(rt in Pe)(H||ve||!(rt in fe))&&g(fe,rt,Pe[rt]);else c({target:q,proto:!0,forced:H||ve},Pe);return Pe}},66349:(p,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),h=o(65988).f;p.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||h(S,b,{value:x.f(b)})}},55746:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(p,I,o)=>{var c=o(21899),v=o(10941),x=c.document,h=v(x)&&v(x.createElement);p.exports=function(b){return h?x.createElement(b):{}}},63281:p=>{p.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:p=>{p.exports=typeof window=="object"},22749:(p,I,o)=>{var c=o(2861);p.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(p,I,o)=>{var c=o(82532),v=o(21899);p.exports=c(v.process)=="process"},58045:(p,I,o)=>{var c=o(2861);p.exports=/web0s(?!.*chrome)/i.test(c)},2861:(p,I,o)=>{var c=o(626);p.exports=c("navigator","userAgent")||""},53385:(p,I,o)=>{var c=o(21899),v=o(2861),x=c.process,h=x&&x.versions,b=h&&h.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]))),p.exports=g&&+g},35703:(p,I,o)=>{var c=o(54058);p.exports=function(v){return c[v+"Prototype"]}},56759:p=>{p.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(p,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),h=o(54058),b=o(86843),S=o(32029),g=o(47457),L=function(D){var B=function(j,_,H){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,_)}return new D(j,_,H)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};p.exports=function(D,B){var j=D.target,_=D.global,H=D.stat,k=D.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,M=_?h:h[j]||(h[j]={}),C=M.prototype,V,J,q,Q,Y,ce,ee,ne,xe;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=M[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ne=b(Y,c):D.wrap&&J?ne=L(Y):k&&typeof Y=="function"?ne=b(Function.call,Y):ne=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ne,"sham",!0),M[Q]=ne,k&&(q=j+"Prototype",g(h,q)||S(h,q,{}),h[q][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:p=>{p.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(p,I,o)=>{var c=o(95981);p.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(p,I,o)=>{var c=o(33916);p.exports=function(v,x,h){if(c(v),x===void 0)return v;switch(h){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:(p,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,h={},b=function(S,g,L){if(!(g in h)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";h[g]=Function("C,a","return new C("+D.join(",")+")")}return h[g](S,L)};p.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:(p,I,o)=>{var c=o(54058),v=o(21899),x=function(h){return typeof h=="function"?h:void 0};p.exports=function(h,b){return arguments.length<2?x(c[h])||x(v[h]):c[h]&&c[h][b]||v[h]&&v[h][b]}},22902:(p,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),h=x("iterator");p.exports=function(b){if(b!=null)return b[h]||b["@@iterator"]||v[c(b)]}},21899:(p,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};p.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:(p,I,o)=>{var c=o(89678),v={}.hasOwnProperty;p.exports=Object.hasOwn||function(h,b){return v.call(c(h),b)}},27748:p=>{p.exports={}},34845:(p,I,o)=>{var c=o(21899);p.exports=function(v,x){var h=c.console;h&&h.error&&(arguments.length===1?h.error(v):h.error(v,x))}},15463:(p,I,o)=>{var c=o(626);p.exports=c("document","documentElement")},2840:(p,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);p.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(p,I,o)=>{var c=o(95981),v=o(82532),x="".split;p.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return v(h)=="String"?x.call(h,""):Object(h)}:Object},81302:(p,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),p.exports=c.inspectSource},21647:(p,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),h=o(65988).f,b=o(99418),S=o(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){h(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},_=function(X,M){if(!x(X,g)){if(!D(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},H=function(X){return S&&k.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},k=p.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(p,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),h=o(32029),b=o(47457),S=o(63030),g=o(44262),L=o(27748),D="Object already initialized",B=v.WeakMap,j,_,H,k=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=_(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var M=S.state||(S.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(D);return Y.facade=Q,J.call(M,Q,Y),Y},_=function(Q){return C.call(M,Q)||{}},H=function(Q){return V.call(M,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,Y){if(b(Q,q))throw new TypeError(D);return Y.facade=Q,h(Q,q,Y),Y},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}p.exports={set:j,get:_,has:H,enforce:k,getterFor:X}},6782:(p,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),h=Array.prototype;p.exports=function(b){return b!==void 0&&(v.Array===b||h[x]===b)}},1052:(p,I,o)=>{var c=o(82532);p.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(p,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[h(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},h=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";p.exports=x},10941:p=>{p.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:p=>{p.exports=!0},60685:(p,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),h=x("match");p.exports=function(b){var S;return c(b)&&((S=b[h])!==void 0?!!S:v(b)=="RegExp")}},93091:(p,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),h=o(86843),b=o(22902),S=o(7609),g=function(L,D){this.stopped=L,this.result=D};p.exports=function(L,D,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),k=!!(B&&B.INTERRUPTED),X=h(D,j,1+_+k),M,C,V,J,q,Q,Y,ce=function(ne){return M&&S(M),new g(!0,ne)},ee=function(ne){return _?(c(ne),k?X(ne[0],ne[1],ce):X(ne[0],ne[1])):k?X(ne,ce):X(ne)};if(H)M=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=ee(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{q=ee(Y.value)}catch(ne){throw S(M),ne}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(p,I,o)=>{var c=o(96059);p.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(p,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),h=o(47457),b=o(99813),S=o(82529),g=b("iterator"),L=!1,D=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)&&!h(B,g)&&x(B,g,D),p.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:p=>{p.exports={}},66132:(p,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,h=o(22749),b=o(58045),S=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,k,X,M,C,V,J,q;_||(H=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();k;){Y=k.fn,k=k.next;try{Y()}catch(ce){throw k?M():X=void 0,ce}}X=void 0,Q&&Q.enter()},!h&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,M=function(){q.call(J,H)}):S?M=function(){D.nextTick(H)}:M=function(){x.call(c,H)}),p.exports=_||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),k||(k=Y,M()),X=Y}},19297:(p,I,o)=>{var c=o(21899);p.exports=c.Promise},72497:(p,I,o)=>{var c=o(53385),v=o(95981);p.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(p,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;p.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(p,I,o)=>{"use strict";var c=o(33916),v=function(x){var h,b;this.promise=new x(function(S,g){if(h!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");h=S,b=g}),this.resolve=c(h),this.reject=c(b)};p.exports.f=function(x){return new v(x)}},70344:(p,I,o)=>{var c=o(60685);p.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(p,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),h=o(87857),b=o(36760),S=o(89678),g=o(37026),L=Object.assign,D=Object.defineProperty;p.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={},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,M=h.f,C=b.f;k>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),q=J.length,Q=0,Y;q>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(H[Y]=V[Y]);return H}:L},29290:(p,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),h=o(27748),b=o(15463),S=o(61333),g=o(44262),L=">",D="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},k=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(k("")),J.close();var q=J.parentWindow.Object;return J=null,q},M=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):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};h[_]=!0,p.exports=Object.create||function(q,Q){var Y;return q!==null?(H[B]=c(q),Y=new H,H[B]=null,Y[_]=q):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(p,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),h=o(14771);p.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=h(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(p,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),h=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=h(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:(p,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),h=o(74529),b=o(46935),S=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=h(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:(p,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return h.slice()}};p.exports.f=function(g){return h&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(p,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:(p,I)=>{I.f=Object.getOwnPropertySymbols},249:(p,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),h=o(64160),b=x("IE_PROTO"),S=Object.prototype;p.exports=h?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:(p,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,h=o(27748);p.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(h,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(p,I,o)=>{var c=o(55629),v=o(56759);p.exports=Object.keys||function(h){return c(h,v)}},36760:(p,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(h){var b=c(this,h);return!!b&&b.enumerable}:o},88929:(p,I,o)=>{var c=o(96059),v=o(42488);p.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,h={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(h,[]),x=h 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:(p,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),h=o(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,_=[],H;B>j;)H=D[j++],(!c||h.call(L,H))&&_.push(S?[H,L[H]]:L[H]);return _}};p.exports={entries:b(!0),values:b(!1)}},95623:(p,I,o)=>{"use strict";var c=o(22885),v=o(9697);p.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(p,I,o)=>{var c=o(626),v=o(10946),x=o(87857),h=o(96059);p.exports=c("Reflect","ownKeys")||function(S){var g=v.f(h(S)),L=x.f;return L?g.concat(L(S)):g}},54058:p=>{p.exports={}},40002:p=>{p.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(p,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);p.exports=function(h,b){if(c(h),v(b)&&b.constructor===h)return b;var S=x.f(h),g=S.resolve;return g(b),S.promise}},87524:(p,I,o)=>{var c=o(99754);p.exports=function(v,x,h){for(var b in x)h&&h.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],h);return v}},99754:(p,I,o)=>{var c=o(32029);p.exports=function(v,x,h,b){b&&b.enumerable?v[x]=h:c(v,x,h)}},48219:p=>{p.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(p,I,o)=>{var c=o(21899),v=o(32029);p.exports=function(x,h){try{v(c,x,h)}catch(b){c[x]=h}return h}},94431:(p,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),h=o(55746),b=x("species");p.exports=function(S){var g=c(S),L=v.f;h&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(p,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),h=o(47457),b=o(95623),S=o(99813),g=S("toStringTag");p.exports=function(L,D,B,j){if(L){var _=B?L:L.prototype;h(_,g)||v(_,g,{configurable:!0,value:D}),j&&!c&&x(_,"toString",b)}}},44262:(p,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");p.exports=function(h){return x[h]||(x[h]=v(h))}},63030:(p,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",h=c[x]||v(x,{});p.exports=h},68726:(p,I,o)=>{var c=o(82529),v=o(63030);(p.exports=function(x,h){return v[x]||(v[x]=h!==void 0?h:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(p,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),h=x("species");p.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[h])==null?S:v(L)}},64620:(p,I,o)=>{var c=o(68459),v=o(48219),x=function(h){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?h?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?h?g.charAt(L):B:h?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};p.exports={codeAt:x(!1),charAt:x(!0)}},42941:(p,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),h=o(15463),b=o(61333),S=o(22749),g=o(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,k=0,X={},M="onreadystatechange",C,V,J,q=function(ee){if(X.hasOwnProperty(ee)){var ne=X[ee];delete X[ee],ne()}},Q=function(ee){return function(){q(ee)}},Y=function(ee){q(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ne){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++k]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,xe)},C(k),k},B=function(ne){delete X[ne]},g?C=function(ee){j.nextTick(Q(ee))}:H&&H.now?C=function(ee){H.now(Q(ee))}:_&&!S?(V=new _,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):M in b("script")?C=function(ee){h.appendChild(b("script"))[M]=function(){h.removeChild(this),q(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),p.exports={set:D,clear:B}},59413:(p,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;p.exports=function(h,b){var S=c(h);return S<0?v(S+b,0):x(S,b)}},74529:(p,I,o)=>{var c=o(37026),v=o(48219);p.exports=function(x){return c(v(x))}},68459:p=>{var I=Math.ceil,o=Math.floor;p.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(p,I,o)=>{var c=o(68459),v=Math.min;p.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(p,I,o)=>{var c=o(48219);p.exports=function(v){return Object(c(v))}},46935:(p,I,o)=>{var c=o(10941);p.exports=function(v,x){if(!c(v))return v;var h,b;if(x&&typeof(h=v.toString)=="function"&&!c(b=h.call(v))||typeof(h=v.valueOf)=="function"&&!c(b=h.call(v))||!x&&typeof(h=v.toString)=="function"&&!c(b=h.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(p,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",p.exports=String(x)==="[object z]"},99418:p=>{var I=0,o=Math.random();p.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(p,I,o)=>{var c=o(72497);p.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(p,I,o)=>{var c=o(99813);I.f=c},99813:(p,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),h=o(99418),b=o(72497),S=o(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||h;p.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:(p,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),h=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=h(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(p,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),h=o(10941),b=o(89678),S=o(43057),g=o(55449),L=o(64692),D=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}),M=D("concat"),C=function(J){if(!h(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),Y=L(Q,0),ce=0,ee,ne,xe,we,ve;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(ve=ee===-1?Q:arguments[ee],C(ve)){if(we=S(ve.length),ce+we>H)throw TypeError(k);for(ne=0;ne<we;ne++,ce++)ne in ve&&g(Y,ce,ve[ne])}else{if(ce>=H)throw TypeError(k);g(Y,ce++,ve)}return Y.length=ce,Y}})},21501:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),h=x("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),h="find",b=!0;h in[]&&Array(1)[h](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(h)},2437:(p,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(p,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),h=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:h},{from:v})},97690:(p,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:(p,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),h=[].indexOf,b=!!h&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?h.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(p,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(p,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),h=o(45402),b=o(47771),S="Array Iterator",g=h.set,L=h.getterFor(S);p.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,_=D.index++;return!B||_>=B.length?(D.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:(p,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),h=x("map");c({target:"Array",proto:!0,forced:!h},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(p,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),h=o(59413),b=o(43057),S=o(74529),g=o(55449),L=o(99813),D=o(50568),B=D("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=S(this),V=b(C.length),J=h(X,V),q=h(M===void 0?V:M,V),Q,Y,ce;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(Y=new(Q===void 0?Array:Q)(H(q-J,0)),ce=0;J<q;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},98611:(p,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),h=o(43057),b=o(89678),S=o(64692),g=o(55449),L=o(50568),D=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,M){var C=b(this),V=h(C.length),J=v(X,V),q=arguments.length,Q,Y,ce,ee,ne,xe;if(q===0?Q=Y=0:q===1?(Q=0,Y=V-J):(Q=q-2,Y=j(B(x(M),0),V-J)),V+Q-Y>_)throw TypeError(H);for(ce=S(C,Y),ee=0;ee<Y;ee++)ne=J+ee,ne in C&&g(ce,ee,C[ne]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ne=ee+Y,xe=ee+Q,ne in C?C[xe]=C[ne]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ne=ee+Y-1,xe=ee+Q-1,ne in C?C[xe]=C[ne]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},32619:(p,I,o)=>{var c=o(76887),v=o(626),x=o(95981),h=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},D=x(function(){return h("\uDF06\uD834")!=='"\\udf06\\ud834"'||h("\uDEAD")!=='"\\udead"'});h&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,_,H){var k=h.apply(null,arguments);return typeof k=="string"?k.replace(b,L):k}})},69120:(p,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(p,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(p,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:(p,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(h){return v(h)}})},46924:(p,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),h=o(49677).f,b=o(55746),S=v(function(){h(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return h(x(D),B)}})},88482:(p,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),h=o(74529),b=o(49677),S=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=h(L),B=b.f,j=x(D),_={},H=0,k,X;j.length>H;)X=B(D,k=j[H++]),X!==void 0&&S(_,k,X);return _}})},17405:(p,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),h=o(249),b=o(64160),S=v(function(){h(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return h(x(L))}})},21724:(p,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),h=o(95981),b=h(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(p,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(p,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),h=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,_=h(function(){var H=v(L.resolve),k=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;k.push(void 0),M++,H.call(L,C).then(function(q){J||(J=!0,k[V]={status:"fulfilled",value:q},--M||B(k))},function(q){J||(J=!0,k[V]={status:"rejected",reason:q},--M||B(k))})}),--M||B(k)});return _.error&&j(_.value),D.promise}})},91302:(p,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),h=o(69520),b=o(40002),S=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=h.f(B),_=j.resolve,H=j.reject,k=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;S(D,function(q){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,q).then(function(ce){Y||J||(J=!0,_(ce))},function(ce){Y||J||(Y=!0,M[Q]=ce,--V||H(new(x("AggregateError"))(M,g)))})}),--V||H(new(x("AggregateError"))(M,g))});return k.error&&H(k.value),j.promise}})},44349:(p,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),h=o(95981),b=o(626),S=o(70487),g=o(56584),L=o(99754),D=!!x&&h(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{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:(p,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),h=o(626),b=o(19297),S=o(99754),g=o(87524),L=o(88929),D=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),k=o(81302),X=o(93091),M=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),Y=o(69520),ce=o(40002),ee=o(45402),ne=o(37252),xe=o(99813),we=o(23321),ve=o(6049),fe=o(53385),se=xe("species"),Fe="Promise",Le=ee.get,Re=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Qe=b,Je=rt,ct=x.TypeError,vt=x.document,wt=x.process,nt=Y.f,ft=nt,mt=!!(vt&&vt.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",ht="unhandledrejection",Rt="rejectionhandled",Ft=0,Et=1,Wt=2,Ut=1,jt=2,St=!1,Dt,ge,G,$,Ae=ne(Fe,function(){var te=k(Qe)!==String(Qe);if(!te&&fe===66||v&&!Je.finally)return!0;if(fe>=51&&/native code/.test(Qe))return!1;var de=new Qe(function(Ee){Ee(1)}),ie=function(Ee){Ee(function(){},function(){})},pe=de.constructor={};return pe[se]=ie,St=de.then(function(){})instanceof ie,St?!te&&we&&!xt:!0}),Ie=Ae||!M(function(te){Qe.all(te).catch(function(){})}),Ge=function(te){var de;return j(te)&&typeof(de=te.then)=="function"?de:!1},Ke=function(te,de){if(!te.notified){te.notified=!0;var ie=te.reactions;J(function(){for(var pe=te.value,Ee=te.state==Et,je=0;ie.length>je;){var Ve=ie[je++],Xe=Ee?Ve.ok:Ve.fail,gt=Ve.resolve,At=Ve.reject,Nt=Ve.domain,Tt,bn,zr;try{Xe?(Ee||(te.rejection===jt&&T(te),te.rejection=Ut),Xe===!0?Tt=pe:(Nt&&Nt.enter(),Tt=Xe(pe),Nt&&(Nt.exit(),zr=!0)),Tt===Ve.promise?At(ct("Promise-chain cycle")):(bn=Ge(Tt))?bn.call(Tt,gt,At):gt(Tt)):At(pe)}catch(Fr){Nt&&!zr&&Nt.exit(),At(Fr)}}te.reactions=[],te.notified=!1,de&&!te.rejection&&Me(te)})}},P=function(te,de,ie){var pe,Ee;mt?(pe=vt.createEvent("Event"),pe.promise=de,pe.reason=ie,pe.initEvent(te,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ie},!xt&&(Ee=x["on"+te])?Ee(pe):te===ht&&Q("Unhandled promise rejection",ie)},Me=function(te){V.call(x,function(){var de=te.facade,ie=te.value,pe=K(te),Ee;if(pe&&(Ee=ce(function(){ve?wt.emit("unhandledRejection",ie,de):P(ht,de,ie)}),te.rejection=ve||K(te)?jt:Ut,Ee.error))throw Ee.value})},K=function(te){return te.rejection!==Ut&&!te.parent},T=function(te){V.call(x,function(){var de=te.facade;ve?wt.emit("rejectionHandled",de):P(Rt,de,te.value)})},O=function(te,de,ie){return function(pe){te(de,pe,ie)}},le=function(te,de,ie){te.done||(te.done=!0,ie&&(te=ie),te.value=de,te.state=Wt,Ke(te,!0))},N=function(te,de,ie){if(!te.done){te.done=!0,ie&&(te=ie);try{if(te.facade===de)throw ct("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ee={done:!1};try{pe.call(de,O(N,Ee,te),O(le,Ee,te))}catch(je){le(Ee,je,te)}}):(te.value=de,te.state=Et,Ke(te,!1))}catch(Ee){le({done:!1},Ee,te)}}};if(Ae&&(Qe=function(de){H(this,Qe,Fe),_(de),Dt.call(this);var ie=Le(this);try{de(O(N,ie),O(le,ie))}catch(pe){le(ie,pe)}},Je=Qe.prototype,Dt=function(de){Re(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Ft,value:void 0})},Dt.prototype=g(Je,{then:function(de,ie){var pe=Pe(this),Ee=nt(C(this,Qe));return Ee.ok=typeof de=="function"?de:!0,Ee.fail=typeof ie=="function"&&ie,Ee.domain=ve?wt.domain:void 0,pe.parent=!0,pe.reactions.push(Ee),pe.state!=Ft&&Ke(pe,!1),Ee.promise},catch:function(te){return this.then(void 0,te)}}),ge=function(){var te=new Dt,de=Le(te);this.promise=te,this.resolve=O(N,de),this.reject=O(le,de)},Y.f=nt=function(te){return te===Qe||te===G?new ge(te):ft(te)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,ie){var pe=this;return new Qe(function(Ee,je){$.call(pe,Ee,je)}).then(de,ie)},{unsafe:!0}),S(rt,"catch",Je.catch,{unsafe:!0}));try{delete rt.constructor}catch(te){}L&&L(rt,Je)}c({global:!0,wrap:!0,forced:Ae},{Promise:Qe}),D(Qe,Fe,!1,!0),B(Fe),G=h(Fe),c({target:Fe,stat:!0,forced:Ae},{reject:function(de){var ie=nt(this);return ie.reject.call(void 0,de),ie.promise}}),c({target:Fe,stat:!0,forced:v||Ae},{resolve:function(de){return q(v&&this===G?Qe:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ie=this,pe=nt(ie),Ee=pe.resolve,je=pe.reject,Ve=ce(function(){var Xe=_(ie.resolve),gt=[],At=0,Nt=1;X(de,function(Tt){var bn=At++,zr=!1;gt.push(void 0),Nt++,Xe.call(ie,Tt).then(function(Fr){zr||(zr=!0,gt[bn]=Fr,--Nt||Ee(gt))},je)}),--Nt||Ee(gt)});return Ve.error&&je(Ve.value),pe.promise},race:function(de){var ie=this,pe=nt(ie),Ee=pe.reject,je=ce(function(){var Ve=_(ie.resolve);X(de,function(Xe){Ve.call(ie,Xe).then(pe.resolve,Ee)})});return je.error&&Ee(je.value),pe.promise}})},7453:(p,I,o)=>{var c=o(76887),v=o(626),x=o(33916),h=o(96059),b=o(10941),S=o(29290),g=o(98308),L=o(95981),D=v("Reflect","construct"),B=L(function(){function H(){}return!(D(function(){},[],H)instanceof H)}),j=!L(function(){D(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(k,X){x(k),h(X);var M=arguments.length<3?k:x(arguments[2]);if(j&&!B)return D(k,X,M);if(k==M){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=M.prototype,J=S(b(V)?V:Object.prototype),q=Function.apply.call(k,J,X);return b(q)?q:J}})},42355:(p,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),h=o(47457),b=o(49677),S=o(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[D];if(j=b.f(L,D))return h(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=S(L)))return g(_,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(p,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),h=o(67772);c({target:"String",proto:!0,forced:!h("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(p,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),h="String Iterator",b=v.set,S=v.getterFor(h);x(String,"String",function(g){b(this,{type:h,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(p,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(p,I,o)=>{var c=o(66349);c("hasInstance")},35903:(p,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(p,I,o)=>{var c=o(66349);c("iterator")},35824:(p,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),h=o(82529),b=o(55746),S=o(72497),g=o(32302),L=o(95981),D=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),k=o(74529),X=o(46935),M=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),Y=o(49677),ce=o(65988),ee=o(36760),ne=o(32029),xe=o(99754),we=o(68726),ve=o(44262),fe=o(27748),se=o(99418),Fe=o(99813),Le=o(11477),Re=o(66349),Pe=o(90904),rt=o(45402),Qe=o(3610).forEach,Je=ve("hidden"),ct="Symbol",vt="prototype",wt=Fe("toPrimitive"),nt=rt.set,ft=rt.getterFor(ct),mt=Object[vt],xt=v.Symbol,ht=x("JSON","stringify"),Rt=Y.f,Ft=ce.f,Et=q.f,Wt=ee.f,Ut=we("symbols"),jt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ge=we("wks"),G=v.QObject,$=!G||!G[vt]||!G[vt].findChild,Ae=b&&L(function(){return C(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(te,de,ie){var pe=Rt(mt,de);pe&&delete mt[de],Ft(te,de,ie),pe&&te!==mt&&Ft(mt,de,pe)}:Ft,Ie=function(te,de){var ie=Ut[te]=C(xt[vt]);return nt(ie,{type:ct,tag:te,description:de}),b||(ie.description=de),ie},Ge=g?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof xt},Ke=function(de,ie,pe){de===mt&&Ke(jt,ie,pe),_(de);var Ee=X(ie,!0);return _(pe),D(Ut,Ee)?(pe.enumerable?(D(de,Je)&&de[Je][Ee]&&(de[Je][Ee]=!1),pe=C(pe,{enumerable:M(0,!1)})):(D(de,Je)||Ft(de,Je,M(1,{})),de[Je][Ee]=!0),Ae(de,Ee,pe)):Ft(de,Ee,pe)},P=function(de,ie){_(de);var pe=k(ie),Ee=V(pe).concat(le(pe));return Qe(Ee,function(je){(!b||K.call(pe,je))&&Ke(de,je,pe[je])}),de},Me=function(de,ie){return ie===void 0?C(de):P(C(de),ie)},K=function(de){var ie=X(de,!0),pe=Wt.call(this,ie);return this===mt&&D(Ut,ie)&&!D(jt,ie)?!1:pe||!D(this,ie)||!D(Ut,ie)||D(this,Je)&&this[Je][ie]?pe:!0},T=function(de,ie){var pe=k(de),Ee=X(ie,!0);if(!(pe===mt&&D(Ut,Ee)&&!D(jt,Ee))){var je=Rt(pe,Ee);return je&&D(Ut,Ee)&&!(D(pe,Je)&&pe[Je][Ee])&&(je.enumerable=!0),je}},O=function(de){var ie=Et(k(de)),pe=[];return Qe(ie,function(Ee){!D(Ut,Ee)&&!D(fe,Ee)&&pe.push(Ee)}),pe},le=function(de){var ie=de===mt,pe=Et(ie?jt:k(de)),Ee=[];return Qe(pe,function(je){D(Ut,je)&&(!ie||D(mt,je))&&Ee.push(Ut[je])}),Ee};if(S||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ie=se(de),pe=function(Ee){this===mt&&pe.call(jt,Ee),D(this,Je)&&D(this[Je],ie)&&(this[Je][ie]=!1),Ae(this,ie,M(1,Ee))};return b&&$&&Ae(mt,ie,{configurable:!0,set:pe}),Ie(ie,de)},xe(xt[vt],"toString",function(){return ft(this).tag}),xe(xt,"withoutSetter",function(te){return Ie(se(te),te)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=q.f=O,Q.f=le,Le.f=function(te){return Ie(Fe(te),te)},b&&(Ft(xt[vt],"description",{configurable:!0,get:function(){return ft(this).description}}),h||xe(mt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:xt}),Qe(V(ge),function(te){Re(te)}),c({target:ct,stat:!0,forced:!S},{for:function(te){var de=String(te);if(D(St,de))return St[de];var ie=xt(de);return St[de]=ie,Dt[ie]=de,ie},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Me,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:le}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(H(de))}}),ht){var N=!S||L(function(){var te=xt();return ht([te])!="[null]"||ht({a:te})!="{}"||ht(Object(te))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ie,pe){for(var Ee=[de],je=1,Ve;arguments.length>je;)Ee.push(arguments[je++]);if(Ve=ie,!(!j(ie)&&de===void 0||Ge(de)))return B(ie)||(ie=function(Xe,gt){if(typeof Ve=="function"&&(gt=Ve.call(this,Xe,gt)),!Ge(gt))return gt}),Ee[1]=ie,ht.apply(null,Ee)}})}xt[vt][wt]||ne(xt[vt],wt,xt[vt].valueOf),Pe(xt,ct),fe[Je]=!0},45915:(p,I,o)=>{var c=o(66349);c("matchAll")},28394:(p,I,o)=>{var c=o(66349);c("match")},61766:(p,I,o)=>{var c=o(66349);c("replace")},62737:(p,I,o)=>{var c=o(66349);c("search")},89911:(p,I,o)=>{var c=o(66349);c("species")},74315:(p,I,o)=>{var c=o(66349);c("split")},63131:(p,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(p,I,o)=>{var c=o(66349);c("toStringTag")},70659:(p,I,o)=>{var c=o(66349);c("unscopables")},54334:(p,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),h=o(24683),b=o(8850),S=o(10941),g=o(45402).enforce,L=o(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=p.exports=h("WeakMap",_,b);if(L&&D){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var k=H.prototype,X=k.delete,M=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),M.call(this,q)||Q.frozen.has(q)}return M.call(this,q)},get:function(q){if(S(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.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 Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,q)?V.call(this,q,Q):Y.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(p,I,o)=>{o(47627)},55708:(p,I,o)=>{o(4560)},88731:(p,I,o)=>{o(91302)},30014:(p,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(h){var b=v.f(this),S=x(h);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(p,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(p,I,o)=>{var c=o(66349);c("dispose")},65799:(p,I,o)=>{var c=o(66349);c("matcher")},45414:(p,I,o)=>{var c=o(66349);c("metadata")},46774:(p,I,o)=>{var c=o(66349);c("observable")},80620:(p,I,o)=>{var c=o(66349);c("patternMatch")},36172:(p,I,o)=>{var c=o(66349);c("replaceAll")},7634:(p,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),h=o(32029),b=o(12077),S=o(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&h(B,g,L),b[L]=b.Array}},27698:(p,I,o)=>{var c=o(54493);p.exports=c},62908:(p,I,o)=>{var c=o(12710);p.exports=c},49216:(p,I,o)=>{var c=o(99324);p.exports=c},8065:(p,I,o)=>{var c=o(56043);p.exports=c},57448:(p,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||h.hasOwnProperty(v(b))?c:S}},11955:(p,I,o)=>{var c=o(2480);p.exports=c},61577:(p,I,o)=>{var c=o(32236);p.exports=c},46279:(p,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,h={DOMTokenList:!0,NodeList:!0};p.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||h.hasOwnProperty(v(b))?c:S}},33778:(p,I,o)=>{var c=o(58557);p.exports=c},61798:(p,I,o)=>{var c=o(88287);p.exports=c},82073:(p,I,o)=>{var c=o(69601);p.exports=c},2348:(p,I,o)=>{var c=o(18339);p.exports=c},8933:(p,I,o)=>{var c=o(84426);p.exports=c},63383:(p,I,o)=>{var c=o(45999);p.exports=c},86209:(p,I,o)=>{var c=o(73081);p.exports=c},23059:(p,I,o)=>{var c=o(48494);p.exports=c},27460:(p,I,o)=>{var c=o(52956);p.exports=c},72010:(p,I,o)=>{var c=o(32304);p.exports=c},31905:function(){(function(p){var I=function(o){var c={searchParams:"URLSearchParams"in p,iterable:"Symbol"in p&&"iterator"in Symbol,blob:"FileReader"in p&&"Blob"in p&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in p,arrayBuffer:"ArrayBuffer"in p};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ne={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ne,xe){this.append(xe,ne)},this):Array.isArray(ee)?ee.forEach(function(ne){this.append(ne[0],ne[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ne){this.append(ne,ee[ne])},this)}L.prototype.append=function(ee,ne){ee=b(ee),ne=S(ne);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ne:ne},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ne){this.map[b(ee)]=S(ne)},L.prototype.forEach=function(ee,ne){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ne,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ne,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ne){ee.push(ne)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ne,xe){ee.push([xe,ne])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ne,xe){ee.onload=function(){ne(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ne=new FileReader,xe=B(ne);return ne.readAsArrayBuffer(ee),xe}function _(ee){var ne=new FileReader,xe=B(ne);return ne.readAsText(ee),xe}function H(ee){for(var ne=new Uint8Array(ee),xe=new Array(ne.length),we=0;we<ne.length;we++)xe[we]=String.fromCharCode(ne[we]);return xe.join("")}function k(ee){if(ee.slice)return ee.slice(0);var ne=new Uint8Array(ee.byteLength);return ne.set(new Uint8Array(ee)),ne.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=k(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||h(ee))?this._bodyArrayBuffer=k(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="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(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;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(j)}),this.text=function(){var ee=D(this);if(ee)return ee;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 M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ne=ee.toUpperCase();return M.indexOf(ne)>-1?ne:ee}function V(ee,ne){ne=ne||{};var xe=ne.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ne.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=C(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ne=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),ve=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(ve),decodeURIComponent(fe))}}),ne}function q(ee){var ne=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var ve=we.split(":"),fe=ve.shift().trim();if(fe){var se=ve.join(":").trim();ne.append(fe,se)}}),ne}X.call(V.prototype);function Q(ee,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(ee)}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 ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ne){if(Y.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ne,headers:{location:ee}})},o.DOMException=p.DOMException;try{new o.DOMException}catch(ee){o.DOMException=function(ne,xe){this.message=ne,this.name=xe;var we=Error(ne);this.stack=we.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(ee,ne){return new Promise(function(xe,we){var ve=new V(ee,ne);if(ve.signal&&ve.signal.aborted)return we(new o.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function se(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:q(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new o.DOMException("Aborted","AbortError"))},fe.open(ve.method,ve.url,!0),ve.credentials==="include"?fe.withCredentials=!0:ve.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),ve.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),ve.signal&&(ve.signal.addEventListener("abort",se),fe.onreadystatechange=function(){fe.readyState===4&&ve.signal.removeEventListener("abort",se)}),fe.send(typeof ve._bodyInit=="undefined"?null:ve._bodyInit)})}return ce.polyfill=!0,p.fetch||(p.fetch=ce,p.Headers=L,p.Request=V,p.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=ce,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(p,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 h=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(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(S.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(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function _(fe){var se={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(se[Symbol.iterator]=function(){return se}),se}function H(fe){this.map={},fe instanceof H?fe.forEach(function(se,Fe){this.append(Fe,se)},this):Array.isArray(fe)?fe.forEach(function(se){this.append(se[0],se[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(se){this.append(se,fe[se])},this)}H.prototype.append=function(fe,se){fe=B(fe),se=j(se);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+se:se},H.prototype.delete=function(fe){delete this.map[B(fe)]},H.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},H.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},H.prototype.set=function(fe,se){this.map[B(fe)]=j(se)},H.prototype.forEach=function(fe,se){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(se,this.map[Fe],Fe,this)},H.prototype.keys=function(){var fe=[];return this.forEach(function(se,Fe){fe.push(Fe)}),_(fe)},H.prototype.values=function(){var fe=[];return this.forEach(function(se){fe.push(se)}),_(fe)},H.prototype.entries=function(){var fe=[];return this.forEach(function(se,Fe){fe.push([Fe,se])}),_(fe)},S.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function k(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(se,Fe){fe.onload=function(){se(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function M(fe){var se=new FileReader,Fe=X(se);return se.readAsArrayBuffer(fe),Fe}function C(fe){var se=new FileReader,Fe=X(se);return se.readAsText(fe),Fe}function V(fe){for(var se=new Uint8Array(fe),Fe=new Array(se.length),Le=0;Le<se.length;Le++)Fe[Le]=String.fromCharCode(se[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var se=new Uint8Array(fe.byteLength);return se.set(new Uint8Array(fe)),se.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:S.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:S.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():S.arrayBuffer&&S.blob&&g(fe)?(this._bodyArrayBuffer=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="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(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var fe=k(this);if(fe)return fe;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 fe=k(this);if(fe)return fe;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(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var se=fe.toUpperCase();return Q.indexOf(se)>-1?se:fe}function ce(fe,se){se=se||{};var Fe=se.body;if(fe instanceof ce){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,se.headers||(this.headers=new H(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=se.credentials||this.credentials||"same-origin",(se.headers||!this.headers)&&(this.headers=new H(se.headers)),this.method=Y(se.method||this.method||"GET"),this.mode=se.mode||this.mode||null,this.signal=se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var se=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Re=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");se.append(decodeURIComponent(Re),decodeURIComponent(Pe))}}),se}function ne(fe){var se=new H,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Re=Le.split(":"),Pe=Re.shift().trim();if(Pe){var rt=Re.join(":").trim();se.append(Pe,rt)}}),se}q.call(ce.prototype);function xe(fe,se){se||(se={}),this.type="default",this.status=se.status===void 0?200:se.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in se?se.statusText:"OK",this.headers=new H(se.headers),this.url=se.url||"",this._initBody(fe)}q.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,se){if(we.indexOf(se)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:se,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(se,Fe){this.message=se,this.name=Fe;var Le=Error(se);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function ve(fe,se){return new Promise(function(Fe,Le){var Re=new ce(fe,se);if(Re.signal&&Re.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Qe={status:Pe.status,statusText:Pe.statusText,headers:ne(Pe.getAllResponseHeaders()||"")};Qe.url="responseURL"in Pe?Pe.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Pe?Pe.response:Pe.responseText;Fe(new xe(Je,Qe))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Re.method,Re.url,!0),Re.credentials==="include"?Pe.withCredentials=!0:Re.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Re.headers.forEach(function(Qe,Je){Pe.setRequestHeader(Je,Qe)}),Re.signal&&(Re.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Re.signal.removeEventListener("abort",rt)}),Pe.send(typeof Re._bodyInit=="undefined"?null:Re._bodyInit)})}return ve.polyfill=!0,x.fetch||(x.fetch=ve,x.Headers=H,x.Request=ce,x.Response=xe),b.Headers=H,b.Request=ce,b.Response=xe,b.fetch=ve,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,p.exports=I},17438:(p,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),h=o.n(x),b=h()(v());b.push([p.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
47
|
`,""]);const S=b},58635:(p,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>V});var c=o(8081),v=o.n(c),x=o(23645),h=o.n(x),b=o(61667),S=o.n(b),g=new URL(o(17735),o.b),L=new URL(o(56089),o.b),D=new URL(o(46050),o.b),B=new URL(o(71090),o.b),j=new URL(o(96192),o.b),_=h()(v()),H=S()(g),k=S()(L),X=S()(D),M=S()(B),C=S()(j);_.push([p.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("+M+")}.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
48
|
`,""]);const V=_},45272:(p,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),h=o.n(x),b=h()(v());b.push([p.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
49
|
`,""]);const S=b},40961:(p,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),h=o.n(x),b=h()(v());b.push([p.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}
|
|
@@ -72,24 +72,24 @@ 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 h(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=h(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=p.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,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),D=b(_,H),D!==g)if(typeof D!="object"||D===null){g[H]=D;return}else if(Array.isArray(D)){g[H]=h(D);return}else if(v(D)){g[H]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=S({},D);return}else{g[H]=S(B,D);return}})}),g}},98971:(p,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>Rd});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Mr,_areEquals:()=>aa,applyOperation:()=>gr,applyPatch:()=>Qn,applyReducer:()=>Sc,deepClone:()=>wc,getValueByPointer:()=>Br,validate:()=>ju,validator:()=>oo});var v={};o.r(v),o.d(v,{compare:()=>Hu,generate:()=>Za,observe:()=>Wu,unobserve:()=>gl});var x={};o.r(x),o.d(x,{cookie:()=>kl,header:()=>xf,path:()=>mf,query:()=>Xc});var h=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 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 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 M(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,d;for(d=0;d<a.length;d++)s=a[d],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),a,s;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(s=0;s<d.length;s++)a=d[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 d=H(this).constructor;s=Reflect.construct(a,arguments,d)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||
|
|
76
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
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 h(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=h(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=p.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,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),D=b(_,H),D!==g)if(typeof D!="object"||D===null){g[H]=D;return}else if(Array.isArray(D)){g[H]=h(D);return}else if(v(D)){g[H]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=S({},D);return}else{g[H]=S(B,D);return}})}),g}},98971:(p,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>Rd});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Mr,_areEquals:()=>aa,applyOperation:()=>gr,applyPatch:()=>Qn,applyReducer:()=>Sc,deepClone:()=>wc,getValueByPointer:()=>Br,validate:()=>ju,validator:()=>oo});var v={};o.r(v),o.d(v,{compare:()=>Hu,generate:()=>Za,observe:()=>Wu,unobserve:()=>gl});var x={};o.r(x),o.d(x,{cookie:()=>kl,header:()=>xf,path:()=>mf,query:()=>Xc});var h=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 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 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 M(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,d;for(d=0;d<a.length;d++)s=a[d],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),a,s;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);for(s=0;s<d.length;s++)a=d[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 d=H(this).constructor;s=Reflect.construct(a,arguments,d)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||se()}function Y(t){return ce(t)||ne(t)||we(t)||fe()}function ce(t){if(Array.isArray(t))return ve(t)}function ee(t){if(Array.isArray(t))return t}function ne(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function xe(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,d=void 0;try{for(var y=t[Symbol.iterator](),A;!(a=(A=y.next()).done)&&(i.push(A.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,d=w}finally{try{!a&&y.return!=null&&y.return()}finally{if(s)throw d}}return i}}function we(t,r){if(!!t){if(typeof t=="string")return ve(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 ve(t,r)}}function ve(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 fe(){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 se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
77
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=we(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 d=!0,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return d=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Re=Le(function(t){function r(R,W){for(var
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return d=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Re=Le(function(t){function r(R,W){for(var ae=0,re=0;re<R.length;re++)ae=(ae<<5)-ae+R.charCodeAt(re),ae|=0;return W[Math.abs(ae)%W.length]}function i(R,W){var ae=W.namespace;if(W.useColors){var re=W.color,oe="[3"+(re<8?re:"8;5;"+re),ye=" ".concat(oe,";1m").concat(ae," [0m");R[0]=ye+R[0].split(`
|
|
79
79
|
`).join(`
|
|
80
|
-
`+ye)}else R[0]=ne+" "+R[0]}function a(R,W){if(R[0]=(W.useColors?"%c":"")+W.namespace,!!W.useColors){var ne="color: "+W.color,te=0,le=0;R[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(te++,ye==="%c"&&(le=te))}),R.splice(le,0,ne)}}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 d(){var R;try{R=localStorage.getItem("debug")}catch(W){}return!R&&typeof process!="undefined"&&"env"in process&&(R={}.DEBUG),{namespaces:R||"",colors:s,useColors:!0,formatArgs:a}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,W=arguments.length>1?arguments[1]:void 0;return function(){for(var ne=arguments.length,te=new Array(ne),le=0;le<ne;le++)te[le]=arguments[le];R&&te.unshift(R);var ye=W.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ve=ye.some(function(Te){return Te.test(R)}),Ae={color:r(R,W.colors),namespace:R,useColors:W.useColors};if(!1)var me}}function w(R){return A(R,y())}function E(R){return A(R,d())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Re("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(d,y){return d!=null?d[y]:d},r);return s===void 0||s===r?a:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ct=function(r){return r.replace(Je(r),"").replace(/\./,"")},vt=function(r,i){var a=Je(i),s=ct(i),d=a?Qe(r,a):r;return!!(d&&Object.hasOwnProperty.call(d,s.replace(/\[(.*)\]/,"$1")))},wt=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,d,y,A){return y===A.length-1?(s[d]=a,s[d]):s[d]===void 0?(Number.isInteger(+A[y+1])?s[d]=[]:s[d]={},s[d]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[d])&&(s[d]=[]),s[d])},r)},nt=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,d,y,A){return s===void 0?s:(y===A.length-1&&(delete s[d],a=!0),s[d])},r),a},ft=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,d,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(a=s.splice(d,1)),s[d])},r),a},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},xt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},ht=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return mt(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return vt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)Pe("SETTING",a,s),wt(i,a,s);else if(xt(a)&&t.get(i,a)!==void 0){Pe("Special case SETTING",a,"to undefined"),wt(i,a,void 0);var d=rt(a);d=d.slice(0,d.length-1),Rt(i,d)}else!xt(a)&&t.get(i,a)!==void 0&&(Pe("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){Pe("DELETE",a),xt(a)?(Pe("ARRAY",a),this.pullOut(i,a)):nt(i,a);var s=rt(a);s=s.slice(0,s.length-1),Rt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),d=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",d);var y=Qe(i,s);Pe("Array",y),Array.isArray(y)&&ft(y,d),Rt(i,s)}}]),t}();function Rt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&nt(t,r),Rt(t,r.slice(0,r.length-1))}}var Ft=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Et=h.createContext({}),Wt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Ut=h.createContext(),jt=h.createContext(),St=h.createContext(),Dt=h.createContext(),ge=h.createContext(),G=h.createContext(),$=h.createContext(),Se=h.createContext();function Ie(){var t=(0,h.useContext)(Wt);return t}function Ge(t){var r=(0,h.useRef)(),i=(0,h.useRef)(!0),a=(0,h.useState)(t),s=Q(a,2),d=s[0],y=s[1];r.current=d;var A=function(R){r.current=R,i.current&&y(R)},w=function(){return r.current};return(0,h.useEffect)(function(){return function(){i.current=!1}},[]),[d,A,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){ht.set(i,r.path,r.message);return}var a=Fe(r.inner),s;try{for(a.s();!(s=a.n()).done;){var d=s.value;ht.get(i,d.path)||ht.set(i,d.path,d.message)}}catch(y){a.e(y)}finally{a.f()}}return i},Me=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=P(s);return a}},K=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return K(a)}},O=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var d=s.message,y=s.dataPath,A=s.keyword,w=s.params,E=y;A==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),ht.set(a,E,d)}),a},se=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 d=arguments.length,y=new Array(d),A=0;A<d;A++)y[A]=arguments[A];var w=function(){clearTimeout(a),r.apply(void 0,y)};clearTimeout(a),a=setTimeout(w,i)}},re=function(r,i,a){var s=i["ui:control"],d=i["informed:props"],y=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,R=i.items,W=i.enum,ne=i.title,te=i.minimum,le=i.maximum,ye=i.minLength,ve=i.maxLength,Ae=i.pattern,me=i.type,Te=i.properties,He=se();y&&y.id&&(He=y.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Te:void 0,items:me==="array"?R:void 0,props:j(j({label:ne,id:He,min:te,max:le,minLength:ye,maxLength:ve,pattern:Ae},d),y)};if(E){var ze=i.oneOf.map(function(We){var Ye=We["input:props"],et=Ye===void 0?{}:Ye;return j({value:We.const,label:We.title},et)});Ue.props.options=ze}if(W){var Ne=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Ne}if(R&&R.oneOf){var Be=R.oneOf.map(function(We){var Ye=We["input:props"],et=Ye===void 0?{}:Ye;return j({value:We.const,label:We.title},et)});Ue.props.options=Be}return Ue},de=function(r,i,a){if(!r||i)return[];var s=r.properties,d=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(d).length>0){var E=Object.keys(d).sort(function(R,W){var ne=w.indexOf(R),te=w.indexOf(W);return(ne>-1?ne:w.length+1)-(te>-1?te:w.length+1)}).map(function(R){var W=d[R],ne=re(R,W,a);return ne});return y&&E.push({componentType:"conditionals",allOf:y}),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")},Ee=function(r,i){for(var a=0,s=-1,d=!0;d&&a<r.length;)r[a]==i[a]?s=a:d=!1,a=a+1;return s},je=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=pe(i,a),d=s.findIndex(function(ve){return typeof ve!="string"}),y=s.length-Y(s).reverse().findIndex(function(ve){return typeof ve!="string"}),A=[],w=a.split(""),E=0,R=0,W=Ee(s.slice(0,d),w.slice(0,d));W>-1&&(E=W+1,A=A.concat(s.slice(0,W+1)),R=W+1),W<0&&(A=A.concat(s.slice(0,d)),R=d);for(var ne=R;ne<s.length;ne++){var te=s[ne];if(E!=w.length){var le=w[E];if(typeof te=="function")A.push(te(le)),E=E+1;else{var ye=typeof te=="string"?te===le:te.test(le);ye&&typeof te=="string"?(A.push(te),E=E+1):!ye&&typeof te=="string"?E!=w.length&&A.push(te):ye&&typeof te!="string"?(A.push(le),E=E+1):!ye&&typeof te!="string"&&(E=E+1,ne=ne-1)}}else if(typeof te=="string"&&ne>=y)A.push(te);else break}return{value:A.join(""),offset:a?A.length-a.length:0}},Ve=function(r,i){var a,s,d=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(a=(s=y.formatToParts(.1).find(function(ve){var Ae=ve.type;return Ae==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(ve,Ae){return ve instanceof RegExp&&Ae instanceof RegExp&&ve.source===Ae.source&&ve.global===Ae.global&&ve.ignoreCase===Ae.ignoreCase&&ve.multiline===Ae.multiline}function E(ve,Ae){for(var me=ve.length;me--;)if(Ae(ve[me]))return me;return-1}function R(ve,Ae,me){var Te=Y(ve);return Array.isArray(me)?Te.splice.apply(Te,[Ae,0].concat(Y(me))):Te.splice(Ae,0,me),Te}function W(ve){return"".concat(ve).replace(/\D/g,"")}function ne(ve){return"".concat(ve).split(A).map(function(Ae){return W(Ae)}).join(".")}function te(ve){if(typeof ve=="number")return ve;var Ae=parseFloat(ne(ve));return Number.isNaN(Ae)?void 0:Ae}function le(ve){var Ae=ne(ve),me="".concat(Ae).split(".")[1],Te=d.formatToParts(Number(Ae));me==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:me});var He=Te.reduce(function(Ne,Be){var We=Be.type,Ye=Be.value;return["decimal","fraction"].includes(We)&&me==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Ye.split("").filter(function(et,it){return We==="fraction"?it<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Ye.split(""))):[].concat(Y(Ne),[Ye])},[]),Ue=E(He,function(Ne){return w(Ne,/\d/)});He.indexOf(A)===-1&&"".concat(ve).indexOf(A)!==-1&&(He=R(He,Ue+1,[A,"[]"]),Ue+=2);var ze=He.slice(Ue+1).join("");return He=[].concat(Y(He.slice(0,Ue+1)),[ze]),He}var ye=function(Ae){if(Ae!=null)return te(Ae)};return{formatter:le,parser:ye}},Xe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Me,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:se,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:oe,informedFormat:je,createIntlNumberFormatter:Ve}),gt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,At=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,d=s===void 0?!0:s,y=Ge(0),A=Q(y,3),w=A[0],E=A[1],R=A[2],W=Ge(0),ne=Q(W,3),te=ne[0],le=ne[1],ye=ne[2];return gt(function(){if(a.current!=null&&R()){var ve=R()+ye();ye()!=0&&d?a.current.setSelectionRange(ve+1,ve+1):d&&a.current.setSelectionRange(ve,ve)}},[i]),{setCursorOffset:le,setCursor:E,cursor:w,getCursor:R,cursorOffset:te}},Nt=function(r,i){var a=(0,h.useRef)(!0),s=a.current;(0,h.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Tt=Re("informed:useField "),bn=function(r,i,a,s,d){if(r!=null){if(d)return d(r);if(i)return i(r);if(a&&!s){var y=je(r,a);return y.value}return r}},zr=function(r,i,a,s){if(i&&a)return i(r);if(s){var d=je(r,s);return d.value}return r},Fr=function(r,i,a){var s=a.required;if(r||i)return function(d,y){if(i)return T(i,d);if(r)return r(d,y)};if(s)return function(d){return wn(d,s)}},Ci=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,d=r.multiple,y=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(y.current).filter(function(R){return R.selected}).map(function(R){return R.value});a(d?E:E[0]||"")}),i==="checkbox"&&(A=function(E){a(E.target.checked),s&&s(E)}),function(w){A(w)}},Qr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},$i=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,d=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return d||(s?[]:"");case"checkbox":return!!d;default:return d}},zn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},wn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Ln(){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,d=t.validationSchema,y=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,R=t.formatter,W=t.parser,ne=t.initialValue,te=t.validateOnChange,le=t.validateOnBlur,ye=t.validateOnMount,ve=t.asyncValidateOnBlur,Ae=t.maskOnBlur,me=t.allowEmptyString,Te=t.onValueChange,He=t.notify,Ue=t.keepState,ze=t.maintainCursor,Ne=t.debug,Be=t.shadow,We=t.step,Ye=t.fieldType,et=t.multiple,it=t.onChange,at=t.onBlur,Pt=t.formController,Ht=t.relevant,ur=t.required,Dr=t.keepStateIfRelevant,Ir=t.initialize,rn=t.formatterDependencies,Cr=rn===void 0?[]:rn,Hr=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"]),In=(0,h.useState)(se()),Jt=Q(In,1),kt=Jt[0],Bt=(0,h.useContext)(Ft),fr=(0,h.useContext)(Se),hn=fr||Dr,wr=Ie(),Rs=(0,h.useRef)(),ru=(0,h.useRef)(!0),Fa=(0,h.useRef)(),zi=(0,h.useRef)(!1),nu=function(){return!zi.current},Xf=function(){return zi.current};Pt&&(Bt=Pt.updater,wr=Pt.getFormApi());var Ei=Fr(a,d,{required:ur}),iu=(0,h.useState)(function(){return Bt.getInitialValue(i)}),Pm=Q(iu,1),Im=Pm[0],Qf=Bt.getSavedValue(i),Zf,Yh;(Ue||hn)&&Qf?(Tt("Setting field ".concat(Kd,"'s kept state"),Qf),Zf=Qf.value,Yh=Qf.touched,wr.removeSavedState(Kd)):ne!=null?Zf=ne:Zf=Im;var Fm=Ge(bn(Zf,y,R,W,Ir)),kd=Q(Fm,3),ou=kd[0],Md=kd[1],Rm=kd[2],km=Ge(ye?Ei(ou):void 0),Ld=Q(km,3),Jh=Ld[0],Xh=Ld[1],Mm=Ld[2],Lm=Ge(Yh),Dd=Q(Lm,3),Qh=Dd[0],Dm=Dd[1],Zh=Dd[2],Nm=(0,h.useState)(function(){return zr(ou,w,E,R)}),qh=Q(Nm,2),Nd=qh[0],Bd=qh[1],_h=(0,h.useRef)();_h.current=Nd;var ev=(0,h.useRef)(ne),Ra=(0,h.useRef)(i),tv=(0,h.useRef)();ev.current=ne,Ra.current=i;var Bm=(0,h.useRef)(null),Gi=h.useMemo(function(){return r||Bm},[]),Ud=At({value:ou,inputRef:Gi,maintainCursor:!!ze}),jd=Ud.getCursor,Um=Ud.setCursor,Vd=Ud.setCursorOffset,jm=function(){return!0},Wd=function(cr){var vn=Ht||jm,Wn=wr.getFullField(Ra.current)||Ra.current,Xt={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return ht.get(Hn,lu)}};return fr&&fr.relevant?vn(cr,Xt)&&fr.relevant(cr,Xt):vn(cr,Xt)},Vm=Ge(Wd(wr.getValues())),Hd=Q(Vm,3),qf=Hd[0],Wm=Hd[1],rv=Hd[2],Hm=function(cr){return fr&&fr.relevant?fr.relevant(cr):!0},zm=function(){var cr=Wd(wr.getValues()),vn=rv();return cr!=vn&&Wm(cr),cr};(0,h.useEffect)(function(){!qf&&!Ue&&Rs.current.reset()},[qf]);var ui=function(){return Be?wr.getDerrivedValue(i):Rm()},au=function(cr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=vn.preventUpdate;We&&wr.getStep()<We?(Tt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Xh(void 0),Bt.setError(kt,void 0,!Wn)):(Tt("Setting ".concat(i,"'s error to ").concat(cr)),Xh(cr),Bt.setError(kt,cr,!Wn))},zd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=cr;zi.current=!0,Tt("Setting ".concat(i," to ").concat(Xt)),Ir&&(Xt=Ir(Xt));var ka=wr.getOptions(),Hn=Xt;if(Xt===""&&!me&&!Wn.allowEmptyString&&!ka.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Ye==="number")&&Xt!==void 0&&(Xt=+Xt),vn&&vn.target&&vn.target.selectionStart&&Um(vn.target.selectionStart),y&&!Ae&&(Hn=y(Xt,jd()),Xt=y(Xt,jd())),A&&!Ae){var lu=A(Xt,jd());Hn=lu.value,Xt=lu.value,Vd(lu.offset)}if(w&&E&&(Xt=E(Xt),Hn=w(Xt)),R){var nv=je(Xt,R);Vd(nv.offset),Hn=nv.value,Xt=Hn}W&&(Xt=Xt!=null?W(Xt):Xt),Ei&&te&&!Wn.initial&&(Tt("Validating after change ".concat(i," ").concat(Xt)),au(Ei(Xt,wr.getValues()))),Md(Xt),Bd(Hn),Te&&Te(Xt),Bt.setValue(kt,Xt,!Wn.preventUpdate)};Nt(function(){Rs.current.setValue(_h.current)},Y(Cr));var Gd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Wn.preventUpdate;if(Tt("Field ".concat(i," has been touched")),Ei&&le&&!vn&&cr&&(Tt("Validating after blur ".concat(i," ").concat(ui())),au(Ei(ui(),wr.getValues()))),s&&ve&&!vn&&cr&&(Tt("Validating async after blur ".concat(i," ").concat(ui())),s(ui(),wr.getValues())),y&&Ae){var ka=y(ui());Md(ka),Bd(ka),Te&&Te(ka),Bt.setValue(kt,ka,!Xt)}if(A&&Ae){var Hn=A(ui());Vd(Hn.offset),Md(Hn.value),Bd(Hn.value),Te&&Te(Hn.value),Bt.setValue(kt,Hn.value,!Xt)}Dm(cr),Bt.setTouched(kt,cr,!Xt)},Gm=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=cr.preventUpdate,Wn=bn(ev.current||Bt.getInitialValue(Ra.current),y,R,W,Ir);zd(Wn,null,{initial:!0,preventUpdate:vn}),au(ye?Ei(Wn):void 0,{preventUpdate:vn}),Gd(void 0,!0,{preventUpdate:vn}),zi.current=!1},$m=function(cr){Ei&&(Tt("Field validating ".concat(i," ").concat(ui())),au(Ei(ui(),cr||wr.getValues())))},Km=function(cr){s&&(Tt("Field async validating ".concat(i," ").concat(ui())),s(ui(),cr||wr.getValues()))},$d={setValue:zd,setTouched:Gd,setError:au,reset:Gm,validate:$m,asyncValidate:Km,getValue:ui,getTouched:Zh,getError:Mm,getIsRelevant:rv,getDirty:Xf,getPristine:nu,getFieldState:function(){return{value:ui(),touched:Zh(),dirty:Xf(),pristine:nu()}},relevant:Wd,multistepRelevant:Hm,checkRelevant:zm};Rs.current=$d;var su={value:ou,error:Jh,touched:Qh,maskedValue:Nd,isRelevant:qf,dirty:zi.current,pristine:!zi.current};Be&&(su={error:Jh,touched:Qh}),Tt("Render",wr.getFullField(i),su),gt(function(){var sn=wr.getFullField(Ra.current);return Tt("Register",kt,Ra.current),Fa.current={field:sn,fieldId:kt,fieldApi:$d,fieldState:su,notify:He,keepState:Ue,inMultistep:hn,shadow:Be},Bt.register(kt,Fa.current),function(){var cr=wr.getFullField(Ra.current);Tt("Deregister",kt,cr),Bt.deregister(kt)}},[]),(0,h.useEffect)(function(){var sn=wr.getFullField(i);return ru.current?ru.current=!1:(Tt("Update",i,hn),Fa.current.field=sn,Bt.update(kt,Fa.current,tv.current)),function(){tv.current=sn}},[i]),gt(function(){Ne&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var Ym=[].concat(Y(Object.values(su)),Y(Object.values(t)),Y(Object.values(Hr))),Jm=function(cr){return(0,h.useMemo)(function(){return qf?cr:null},Y(Ym))},Kd=i,Xm=Ci({fieldType:Ye,setValue:zd,onChange:it,multiple:et,ref:Gi}),Qm=Qr({setTouched:Gd,onBlur:at}),Zm=$i({fieldType:Ye,maskedValue:Nd,multiple:et,value:ou}),qm=zn(Ye);return{fieldState:su,fieldApi:$d,render:Jm,ref:Gi,userProps:j(j({},Hr),{},{multiple:et,onChange:it,onBlur:at,id:Hr.id||kt}),informed:j({name:Kd,multiple:et,onChange:Xm,onBlur:Qm,value:Zm,ref:Gi,type:qm,id:Hr.id||kt},Hr)}}var Zr=function(r){var i=h.forwardRef(function(a,s){var d=Ln(a,s),y=d.fieldState,A=d.fieldApi,w=d.render,E=d.ref,R=d.userProps;return w(h.createElement(r,D({fieldApi:A,fieldState:y,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},R)))});return i.displayName="asField(".concat(Ke(r),")"),i},Oi=Re("informed:Text "),Ti=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ne=s.forwardedRef,te=s.debug,le=s.label,ye=s.title,ve=s.id,Ae=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",R),gt(function(){te&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),h.createElement(h.Fragment,null,le?h.createElement("label",{htmlFor:ve}," ",le," "):null,h.createElement("input",D({},Ae,{id:ve,name:R,ref:ne,value:!d&&d!==0?"":d,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},ln=Zr(Ti),Sn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ne=s.forwardedRef,te=s.debug,le=s.label,ye=s.id,ve=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return gt(function(){te&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),h.createElement(h.Fragment,null,le?h.createElement("label",{htmlFor:ye}," ",le," "):null,h.createElement("textarea",D({},ve,{id:ye,name:R,ref:ne,value:d||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},Gn=Zr(Sn),$n=Re("informed:Select "),An=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.value,y=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,R=s.initialValue,W=s.options,ne=s.children,te=s.forwardedRef,le=s.debug,ye=s.multiple,ve=s.label,Ae=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,h.useRef)(),He=function(ze){var Ne=Array.from((te||Te).current).filter(function(Be){return Be.selected}).map(function(Be){return Be.value});i.setValue(ye?Ne:Ne[0]||""),A&&ze&&A(ze)};return gt(function(){le&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),$n("Render",E,d),h.createElement(h.Fragment,null,ve?h.createElement("label",{htmlFor:Ae}," ",ve," "):null,h.createElement("select",D({},me,{id:Ae,multiple:ye,name:E,ref:te||Te,value:d||(ye?[]:""),onChange:He,onBlur:function(ze){y(!0),w&&w(ze)}}),W?W.map(function(Ue){return h.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ne))},ei=Zr(An),Pi=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.value,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ne=s.debug,te=s.forwardedRef,le=s.id,ye=s.label,ve=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,ye?h.createElement("label",{htmlFor:le}," ",ye," "):null,h.createElement("input",D({},ve,{id:le,name:R,ref:te,checked:!!d,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Gr=Zr(Pi),qr=function(r){return h.forwardRef(function(i,a){return h.createElement(Ut.Consumer,null,function(s){var d=s.radioGroupApi,y=s.radioGroupState;return h.createElement(r,D({radioGroupApi:d,radioGroupState:y,ref:a},i))})})},ti=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),d=a.value,y=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,R=s.value,W=s.onChange,ne=s.onBlur,te=s.field,le=s.initialValue,ye=s.forwardedRef,ve=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",D({},ve,{name:te,ref:ye,value:R,checked:d===R,onChange:function(me){!me.target.checked||(y(R),W&&W(me),w&&w(me))},onBlur:function(me){A(!0),ne&&ne(me),E&&E(me)},type:"radio"}))},pr=qr(ti),Ot=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,d=s.options,y=s.children;return h.createElement(Ut.Provider,{value:this.groupContext},d?d.map(function(A){return h.createElement("label",{key:A.value},A.label," ",h.createElement(pr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(h.Component),fi=Zr(Ot);function Ii(){return(0,h.useContext)(St)}var Fn=function(){var r=Ii(),i=r.add;return h.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function _t(){return(0,h.useContext)(Dt)}var Kn=function(){var r=_t(),i=r.remove;return h.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},ri=Re("informed:useArrayField "),mo=function(r){var i=r.field,a=r.initialValue,s=r.validate,d=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,h.useState)(new Map),E=Q(w,1),R=E[0],W=(0,h.useContext)(Ft),ne=A.getFullField(i),te=W.getInitialValue(i)||a||[],le=A.getSavedValue(ne)&&A.getSavedValue(ne).value,ye=Ge(le||te),ve=Q(ye,3),Ae=ve[0],me=ve[1],Te=ve[2],He=Ae?Ae.map(function(){return se()}):[],Ue=Ge(He),ze=Q(Ue,3),Ne=ze[0],Be=ze[1],We=ze[2],Ye=(0,h.useMemo)(function(){return function(Jt,kt){var Bt=We()==null?0:We().length;return s?s(Jt,Bt,kt):void 0}}),et=Ln(j({field:i,validate:s?Ye:void 0,shadow:!0},y)),it=et.fieldApi;gt(function(){var Jt=function(Bt){Bt!==ne&&(ri("".concat(ne," changed")),RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Bt)&&it.validate())};return A.emitter.on("value",Jt),function(){A.emitter.removeListener("value",Jt)}},[i]);var at=function(kt){ri("EXPECTING REMOVAL OF","".concat(i,"[").concat(kt,"] and ").concat(i,"[").concat(Ne.length-1,"]")),W.expectRemoval("".concat(i,"[").concat(kt,"]")),W.expectRemoval("".concat(i,"[").concat(Ne.length-1,"]"));var Bt=Ne.slice(0,kt).concat(Ne.slice(kt+1,Ne.length));Be(Bt);var fr=Te(),hn=fr.slice(0,kt).concat(fr.slice(kt+1,fr.length));me(hn)},Pt=function(kt,Bt){ri("Swapping","".concat(i,"[").concat(kt,"] and ").concat(i,"[").concat(Bt,"]"));var fr=Y(Ne);Ne[kt]&&Ne[Bt]?(fr[kt]=Ne[Bt],fr[Bt]=Ne[kt]):console.warn("Attempted to swap ".concat(kt," with ").concat(Bt," but one of them does not exist :(")),Be(fr)},Ht=function(){Ne.push(se()),Be(Y(Ne))},ur=function(kt){Ne.push(se()),Be(Y(Ne));var Bt=Y(Te());Bt[Ne.length-1]=kt,me(Bt)},Dr=function(){var kt=W.getInitialValue(i)||a||[];me(kt);var Bt=kt?kt.map(function(){return se()}):[];Be(Bt)},Ir=Ne.map(function(Jt,kt){var Bt={remove:function(){return at(kt)}},fr={initialValue:Ae&&Ae[kt],key:Jt,field:"".concat(i,"[").concat(kt,"]"),index:kt};return j(j({arrayFieldItemApi:Bt,arrayFieldItemState:fr},Bt),fr)}),rn={add:Ht,swap:Pt,addWithInitialValue:ur,reset:Dr};d&&(d.current=rn);var Cr={fields:Ir,field:i},Hr=j(j({},W),{},{register:function(kt,Bt){R.set(kt,Bt);for(var fr=arguments.length,hn=new Array(fr>2?fr-2:0),wr=2;wr<fr;wr++)hn[wr-2]=arguments[wr];W.register.apply(W,[kt,Bt].concat(hn))},deregister:function(kt){R.delete(kt);for(var Bt=arguments.length,fr=new Array(Bt>1?Bt-1:0),hn=1;hn<Bt;hn++)fr[hn-1]=arguments[hn];W.deregister.apply(W,[kt].concat(fr))},getInitialValue:function(kt){if(RegExp("".concat(ne,"\\[[0-9]+\\]")).test(kt)){var Bt=kt.replace(i,""),fr=ht.get(Te(),Bt);return ri("Resetting ".concat(Bt," to ").concat(fr)),fr}return W.getInitialValue(kt)}}),In=function(kt){return h.createElement(Ft.Provider,{value:Hr},h.createElement(St.Provider,{value:rn},h.createElement(jt.Provider,{value:Cr},kt)))};return{render:In,add:Ht,swap:Pt,addWithInitialValue:ur,fields:Ir,arrayFieldState:Cr,arrayFieldApi:rn,field:i}},ot=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,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},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=Ie(),i=(0,h.useMemo)(function(){return ot(t,r)},[t]);return i}function ci(){var t=(0,h.useContext)(Et);return t}var ue=function(r){var i=r.when,a=r.children,s=ci(),d=i(s);return d?a:null},Oe=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),d=Ie();if(i){var y=d.getFullField(a),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(R,W){return ht.get(R,W)}},w=function(R){var W=R.values;return i(W,A)};return h.createElement(ue,{when:w},h.createElement(qe,D({field:a},s)))}else return h.createElement(qe,D({field:a},s))},qe=function(r){var i=r.children,a=C(r,["children"]),s=mo(a),d=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return d(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},lt=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,d=(0,h.useContext)(Ft),y=Ie(),A=(0,h.useState)(0),w=Q(A,2),E=w[0],R=w[1],W=(0,h.useState)(new Map),ne=Q(W,1),te=ne[0],le=i.field,ye=Lt(le),ve=function(){var Ne=y.getState(),Be=Ne.values,We=Ne.errors,Ye=Ne.touched,et={values:ht.get(Be,le),errors:ht.get(We,le),touched:ht.get(Ye,le)};return et};(0,h.useEffect)(function(){var ze=function(Be){var We=Be.slice(0,Be.lastIndexOf("[")!=-1?Be.lastIndexOf("]")+1:Be.length);We===le&&R(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[le]);var Ae=function(){te.forEach(function(Ne){Ne.fieldApi.reset()})},me=ve(),Te=j(j({},d),{},{register:function(Ne,Be,We){te.set(Ne,Be),d.register(Ne,Be,We)},deregister:function(Ne){te.delete(Ne);for(var Be=arguments.length,We=new Array(Be>1?Be-1:0),Ye=1;Ye<Be;Ye++)We[Ye-1]=arguments[Ye];d.deregister.apply(d,[Ne].concat(We))}}),He=j(j(j({},a),ye),{},{reset:Ae}),Ue=j(j({},i),me);return typeof s=="function"?h.createElement(Ft.Provider,{value:Te},h.createElement(Dt.Provider,{value:He},h.createElement(ge.Provider,{value:Ue},s(j(j({arrayFieldItemApi:He,arrayFieldItemState:Ue},He),Ue))))):h.createElement(Ft.Provider,{value:Te},h.createElement(Dt.Provider,{value:He},h.createElement(ge.Provider,{value:Ue},s)))};Oe.Items=function(t){var r=t.children,i=(0,h.useContext)(jt),a=i.fields;return a.map(function(s){var d=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=d.key;return h.createElement(lt,{key:A,arrayFieldItemApi:y,arrayFieldItemState:d},r)})};var ut=function(r){var i=r.components,a=(0,h.useContext)(Ft),s=a.fieldMap;return i?i.map(function(d,y){var A=d["ui:control"],w=s[A];return h.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Re("informed:FormFields "),Qt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,d=(0,h.useContext)(Ft),y=d.fieldMap,A=(0,h.useMemo)(function(){var w=de(i,s,a),E=w.map(function(R,W){var ne=R.field,te=R.props,le=R.type,ye=R.properties,ve=R.items,Ae=R.componentType,me=R.uiBefore,Te=R.uiAfter,He=R.allOf,Ue=y[Ae];return Kt("Rendering Field",ne,R),!Ue&&le==="object"&&ye?h.createElement(t,{schema:R,prefix:ne,key:"ScheamField-".concat(W)}):!Ue&&le==="array"&&ve?h.createElement(Rr,D({key:"ScheamField-".concat(W),field:ne,items:ve,uiBefore:me,uiAfter:Te},te)):Ue&&Ae==="array"&&ve&&le==="array"?h.createElement(Ue,D({key:"ScheamField-".concat(W),field:ne,items:ve,uiBefore:me,uiAfter:Te},te)):Ae==="conditionals"?He.map(function(ze){var Ne=ze.then,Be=ze.if.properties,We=function(et){var it=et.values;return Object.keys(Be).every(function(at){var Pt=Be[at];return it[at]===Pt.const})};return h.createElement(ue,{key:"ScheamField-".concat(W),when:We},h.createElement(t,{schema:Ne}))}):Ue?h.createElement(Ue,D({key:"ScheamField-".concat(W),field:ne},te)):null});return E},[i,a]);return A},Rr=function(r){var i=r.field,a=r.items,s=r.uiBefore,d=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return h.createElement(Oe,D({field:i},y),h.createElement(ut,{components:s}),h.createElement(Oe.Items,null,function(A){var w=A.field;return h.createElement(h.Fragment,null,h.createElement(ut,{components:a["ui:before"]}),h.createElement(Qt,{schema:a,prefix:w}),h.createElement(ut,{components:a["ui:after"]}))}),h.createElement(ut,{components:d}))},kr={select:ei,input:ln,textarea:Gn,checkbox:Gr,radio:fi,add:Fn,remove:Kn,array:Rr},er=Re("informed:Controller "),uu=function(r,i){var a=Object.keys(i).find(function(d){return r.includes(d)});if(!!a){var s=r.slice(0,a.length);return s===a}},un=function(){},ks=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,d=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=d||kr,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:un,setTouched:un,setError:un,reset:un,validate:un,getValue:un,getTouched:un,getError:un,getFieldState:un,checkRelevant:un,getPristine:un,getDirty:un}},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,R=r.fieldsById.get(A);R.shadow||ht.set(r.state.values,R.field,R.fieldApi.getValue()),R.fieldApi.relevant(r.state.values)||ht.delete(r.state.values,R.field),r.fieldsById.forEach(function(W){var ne=W.fieldApi.checkRelevant();(!W.fieldApi.multistepRelevant(r.state.values)||!ne&&!W.keepState)&&(ht.delete(r.state.values,W.field),ht.delete(r.state.touched,W.field),ht.delete(r.state.errors,W.field))}),E&&(r.emit("change"),r.emit("field",R.field),r.emit("value",R.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(A);!R.shadow&&R.fieldApi.getIsRelevant()&&ht.set(r.state.touched,R.field,R.fieldApi.getTouched()),R.shadow&&R.fieldApi.getError()!=null&&R.fieldApi.relevant(r.state.values)&&ht.set(r.state.touched,R.field,R.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",R.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(A);!R.shadow&&R.fieldApi.getIsRelevant()&&ht.set(r.state.errors,R.field,R.fieldApi.getError());var W=ht.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 W=="string")&&ht.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(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),d=1;d<a;d++)s[d-1]=arguments[d];var y=this.subscriptions.get(i);y&&y.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()?(er("Submit",this.state),this.emit("submit")):(er("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){ht.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return er("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 ht.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return er("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return er("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return er("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return er("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return er("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return er("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return er("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return er("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?ht.get(this.savedValues,"shadow-".concat(i)):ht.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?ht.delete(this.savedValues,"shadow-".concat(i)):ht.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return ht.get(this.options.initialValues,i)}},{key:"getField",value:function(i){er("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(d){var y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(d).slice(1),w=a.getField(A);w&&(er("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!!(ht.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),d=s[1];return d.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!ht.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(){er("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){er("Setting values"),this.fieldsById.forEach(function(a){var s=ht.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;er("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Me(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(ht.has(s,w.field)){var E=ht.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var d=O(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(ht.has(d,w.field)){var E=ht.get(d,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 y=this.options.validate(a);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(ht.has(A,w.field)){var E=ht.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){er("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()?(er("Submit",this.state),this.emit("submit")):(er("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 d=a.field,y=a.state;er("Register ID:",i,"Name:",d,y,"Initial",s);var A=d.slice(0,d.lastIndexOf("[")!=-1?d.lastIndexOf("]")+1:d.length),w;this.fieldsById.forEach(function(E,R){E&&E.field===d&&(w=R)}),w&&(a.keepState||a.inMultistep)?(er("Already Registered",d),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",d),er("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),er("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",d))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;er("Deregister",i,s),delete this.onScreen[i];var d=uu(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!d&&(er("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?ht.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):ht.set(this.savedValues,s,a.fieldApi.getFieldState())),(d||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(er("Removing field",s),this.fieldsById.delete(i),d||(ht.delete(this.state.values,s),ht.delete(this.state.touched,s),ht.delete(this.state.errors,s),a.shadow?ht.delete(this.savedValues,"shadow-".concat(s)):ht.delete(this.savedValues,s)),d&&this.pulledOut[y]&&(er("Pulling out",s,"with magic value",y),ht.pullOut(this.state.values,y),ht.pullOut(this.state.touched,y),ht.pullOut(this.state.errors,y),ht.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){er("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){er("Update",i,a.field,s,a.fieldState.value);var d=a.fieldApi.getValue(),y=a.fieldApi.getError(),A=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(ht.set(this.state.values,s),ht.set(this.state.errors,s),ht.set(this.state.touched,s)),ht.set(this.state.values,a.field,d),ht.set(this.state.errors,a.field,y),ht.set(this.state.touched,a.field,A),this.emit("change")}}]),t}(),Ma=Re("informed:FormProvider "),Ms=function(r){var i=r.children,a=r.formApi,s=r.formController,d=r.formState,y=C(r,["children","formApi","formController","formState"]);if(Ma("Render FormProvider"),a)return Ma("Render FormProvider with given values"),h.createElement(Ft.Provider,{value:s.updater},h.createElement(Wt.Provider,{value:a},h.createElement(Et.Provider,{value:d},i)));Ma("Render FormProvider with generated values");var A=Ds(y);return h.createElement(Ft.Provider,{value:A.formController.updater},h.createElement(Wt.Provider,{value:A.formApi},h.createElement(Et.Provider,{value:A.formState},i)))},Ls=Re("informed:useForm "),Ds=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,d=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,R=r.onChange,W=r.onReset,ne=r.onSubmit,te=r.onValueChange,le=r.onSubmitFailure,ye=r.validationSchema,ve=r.schema,Ae=r.ajv,me=r.fieldMap,Te=r.onlyValidateSchema,He=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Ls("Render useForm");var Ue=(0,h.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:d,allowEmptyStrings:y,preventEnter:A,validationSchema:ye,schema:ve,ajv:Ae,fieldMap:me}},[i,a,s,d,y,A,ye,ve,Ae,me]),ze=(0,h.useState)(function(){return new ks(Ue)}),Ne=Q(ze,1),Be=Ne[0];(0,h.useEffect)(function(){Be.setOptions(Ue)},[Ue]),gt(function(){Be.mount()},[]);var We=(0,h.useState)(function(){return Be.getFormState()}),Ye=Q(We,2),et=Ye[0],it=Ye[1];gt(function(){var Dr=function(){return R&&R(Be.getFormState())},Ir=function(){return W&&W()},rn=function(){return ne&&ne(Be.getFormState().values)},Cr=function(){return te&&te(Be.getFormState().values)},Hr=function(){return le&&le(Be.getFormState().errors)};return Be.on("change",Dr),Be.on("reset",Ir),Be.on("submit",rn),Be.on("value",Cr),Be.on("failure",Hr),function(){Be.removeListener("change",Dr),Be.removeListener("reset",Ir),Be.removeListener("submit",rn),Be.removeListener("value",Cr),Be.removeListener("failure",Hr)}},[R,W,ne,te,le]),(0,h.useState)(function(){var Dr=function(){Ls("Setting form state"),it(Be.getFormState())};Be.on("change",Dr),w&&w(Be.getFormApi()),E&&(E.current=Be.getFormApi())});var at=(0,h.useState)(function(){return Be.getFormApi()}),Pt=Q(at,1),Ht=Pt[0],ur=function(Ir){return h.createElement(Ms,{formApi:Ht,formState:et,formController:Be},h.createElement(h.Fragment,null,Ir||h.createElement(Qt,{schema:ve,onlyValidateSchema:Te})))};return{formApi:Ht,formState:et,formController:Be,render:ur,userProps:He}},fu=Re("informed:Form "),cu=function(r){var i=r.children,a=r.render,s=r.component,d=C(r,["children","render","component"]);fu("Render FORM");var y=Ds(d),A=y.formApi,w=y.formController,E=y.formState,R=y.render,W=y.userProps,ne=function(){var le={formState:E,formApi:A};return s?h.createElement(s,le,i):a?a(le):typeof i=="function"?i(le):i};return R(h.createElement("form",D({},W,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ne()))},_f=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,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},ec=function(r,i){var a=i.register,s=i.deregister,d=i.setValue,y=i.setTouched,A=i.setError,w=i.update,E=i.getField,R=i.expectRemoval,W=i.getInitialValue,ne=i.fieldMap,te=i.getSavedValue;return{register:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return a.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},deregister:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},update:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setValue:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return d.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setTouched:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setError:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getField:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},expectRemoval:function(ye){for(var ve=arguments.length,Ae=new Array(ve>1?ve-1:0),me=1;me<ve;me++)Ae[me-1]=arguments[me];return R.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getInitialValue:function(ye){return W("".concat(r,".").concat(ye))},getSavedValue:function(ye){return te("".concat(r,".").concat(ye))},fieldMap:ne}},tc=function(r){var i=r.scope,a=r.children,s=useContext(Ft),d=Ie(),y=ci(),A=useMemo(function(){return _f(i,d)},[i]),w=useMemo(function(){return ec(i,s)},[i]);return React.createElement(Ft.Provider,{value:w},React.createElement(Wt.Provider,{value:A},React.createElement(Et.Provider,{value:y},a)))},Fi=function(r){var i=ci(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(te){a[te]=i[te]}):a=i;var s=a,d=s.pristine,y=s.dirty,A=s.invalid,w=s.values,E=s.errors,R=s.touched,W=s.validating,ne=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:d,dirty:y,invalid:A,values:w,errors:E,touched:R,validating:W,submitting:ne},null,2)))},rc=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Ie(),d=s.getValues,y=s.validate,A=s.screenValid,w=(0,h.useState)(new Map),E=Q(w,1),R=E[0],W=(0,h.useRef)(0),ne=Ge({current:i,steps:[],goal:null}),te=Q(ne,3),le=te[0],ye=te[1],ve=te[2],Ae=(0,h.useState)(function(){var Ue=function(){var Be=ve(),We=Be.current,Ye=R.get(We);return Ye},ze={getState:function(){return ve()},getCurrentStep:Ue,getStep:function(Be){return R.get(Be)},getNumberOfSteps:function(){return R.size},next:function(){if(y(),A()){var Be=Ue(),We=Be.getNext,Ye=We(),et=typeof Ye=="function"?Ye(d()):Ye;et&&ye(function(it){return j(j({},it),{},{current:et})})}},back:function(){var Be=Ue(),We=Be.getPrevious,Ye=We(),et=typeof Ye=="function"?Ye(d()):Ye;et&&ye(function(it){return j(j({},it),{},{current:et})})},setCurrent:function(Be){if(Be){var We=R.get(Be).index;We<Ue().index?ye(function(Ye){return j(j({},Ye),{},{current:Be,goal:null})}):ye(function(Ye){return j(j({},Ye),{},{goal:Be})})}},register:function(Be,We,Ye){Ye?(W.current=W.current+1,R.set(Be,j(j({},We),{},{index:W.current}))):ye(function(et){return j(j({},et),{},{steps:Array.from(R.keys())})})},deregister:function(Be){R.delete(Be),W.current=W.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(R.keys())})})}};return a&&(a.current=ze),ze}),me=Q(Ae,1),Te=me[0],He=function(ze){return h.createElement($.Provider,{value:Te},h.createElement(G.Provider,{value:le},ze))};return j(j(j({},Te),le),{},{render:He})};function nc(){return(0,h.useContext)(G)}function La(){return(0,h.useContext)($)}var zo=function(r){var i=r.step,a=r.next,s=r.previous,d=r.relevant,y=ci(),A=y.values,w=nc(),E=w.current,R=w.goal,W=La(),ne=W.register,te=W.deregister,le=W.next,ye=i===E,ve=d?d(A):!0,Ae=(0,h.useRef)(a),me=(0,h.useRef)(s),Te=(0,h.useRef)();Ae.current=a,me.current=s,Te.current=d,(0,h.useState)(function(){ne(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}},!0)}),(0,h.useEffect)(function(){return ne(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}}),function(){te(i)}},[i]),(0,h.useEffect)(function(){R&&ye&&R!==i&&le()},[R,ye]);var He=function(ze){return h.createElement(Se.Provider,{value:{relevant:function(Be){return Te.current?Te.current(Be):!0},multistep:!0}},ye&&ve?ze:null)};return{isCurrent:ye,isRelevant:ve,step:i,render:He}};function ic(t){var r=t.children,i=C(t,["children"]),a=rc(i),s=a.render,d=C(a,["render"]);return s(typeof r=="function"?r(d):r)}ic.Step=function(r){var i=r.children,a=C(r,["children"]),s=zo(a),d=s.render;return d(i)};var Yd=function(r){var i=r.field,a=useContext(Ft),s=a.fieldMap,d=Ie(),y=d.getFullField,A=d.getOptions,w=y(i),E=A(),R=E.schema,W=oe(w),ne=ht.get(R,W);if(!ne)return null;var te=re(i,ne),le=te.props,ye=te.componentType,ve=s[ye];return React.createElement(ve,D({field:i},le))},Jd=function(){var r=Ie(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Qt,{schema:s})},Xd=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))})})},du=function(r){return React.forwardRef(function(i,a){return React.createElement(Et.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:a},i))})})},pu=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 hu(t){var r=Ie(),i=useMemo(function(){return pu(r,t)},[t]);return i}function vu(t){var r=hu(t),i=Ie(),a=React.useState(),s=Q(a,2),d=s[1],y=React.useCallback(function(){return d({})},[]);return gt(function(){var A=function(E){E===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),gt(function(){y()},[]),r.getFieldState()||{}}var oc=function(r){return function(i){return function(a){var s=vu(r);return React.createElement(i,D({fieldState:s},a))}}},Ns=function(r){return function(i){return function(a){var s=hu(r);return React.createElement(i,D({fieldApi:s},a))}}},Bs=function(r){var i=r.value,a=r.forwardedRef,s=r.children,d=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:a,value:i,key:i},d),s)},gu=null,Go=o(80150),Us=o(89356),Ki=o(63263),ac=o(30699),Da=o(58377),Yn=o(28834),yu=o(13038),sc=o(32752),$o=o(44341);function js(t,r,i){return r in t?$o(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function di(t,r){var i=Us(t);if(Ki){var a=Ki(t);r&&(a=ac(a).call(a,function(s){return Da(t,s).enumerable})),i.push.apply(i,a)}return i}function hr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Yn(a=di(Object(i),!0)).call(a,function(d){js(t,d,i[d])})}else if(yu)sc(t,yu(i));else{var s;Yn(s=di(Object(i))).call(s,function(d){$o(t,d,Da(i,d))})}}return t}var pi=o(28583),Yi=o.n(pi),Vs=o(10240),Ji=o.n(Vs),Ri=o(8575),Xi=o(51446),Ws=o(19996),Hs=o(78363),mu=o(95238),zs=o(53592);function Gs(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 $s(t,r){var i;if(!!t){if(typeof t=="string")return Gs(t,r);var a=mu(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return zs(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Gs(t,r)}}function Qi(t,r){var i=typeof Xi!="undefined"&&Ws(t)||t["@@iterator"];if(!i){if(Hs(t)||(i=$s(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.
|
|
80
|
+
`+ye)}else R[0]=ae+" "+R[0]}function a(R,W){if(R[0]=(W.useColors?"%c":"")+W.namespace,!!W.useColors){var ae="color: "+W.color,re=0,oe=0;R[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(re++,ye==="%c"&&(oe=re))}),R.splice(oe,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 d(){var R;try{R=localStorage.getItem("debug")}catch(W){}return!R&&typeof process!="undefined"&&"env"in process&&(R={}.DEBUG),{namespaces:R||"",colors:s,useColors:!0,formatArgs:a}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,W=arguments.length>1?arguments[1]:void 0;return function(){for(var ae=arguments.length,re=new Array(ae),oe=0;oe<ae;oe++)re[oe]=arguments[oe];R&&re.unshift(R);var ye=W.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),he=ye.some(function(Te){return Te.test(R)}),Se={color:r(R,W.colors),namespace:R,useColors:W.useColors};if(!1)var me}}function w(R){return A(R,y())}function E(R){return A(R,d())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Re("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(d,y){return d!=null?d[y]:d},r);return s===void 0||s===r?a:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ct=function(r){return r.replace(Je(r),"").replace(/\./,"")},vt=function(r,i){var a=Je(i),s=ct(i),d=a?Qe(r,a):r;return!!(d&&Object.hasOwnProperty.call(d,s.replace(/\[(.*)\]/,"$1")))},wt=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,d,y,A){return y===A.length-1?(s[d]=a,s[d]):s[d]===void 0?(Number.isInteger(+A[y+1])?s[d]=[]:s[d]={},s[d]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[d])&&(s[d]=[]),s[d])},r)},nt=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,d,y,A){return s===void 0?s:(y===A.length-1&&(delete s[d],a=!0),s[d])},r),a},ft=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,d,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(a=s.splice(d,1)),s[d])},r),a},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},xt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},ht=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return mt(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return vt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)Pe("SETTING",a,s),wt(i,a,s);else if(xt(a)&&t.get(i,a)!==void 0){Pe("Special case SETTING",a,"to undefined"),wt(i,a,void 0);var d=rt(a);d=d.slice(0,d.length-1),Rt(i,d)}else!xt(a)&&t.get(i,a)!==void 0&&(Pe("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){Pe("DELETE",a),xt(a)?(Pe("ARRAY",a),this.pullOut(i,a)):nt(i,a);var s=rt(a);s=s.slice(0,s.length-1),Rt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),d=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",d);var y=Qe(i,s);Pe("Array",y),Array.isArray(y)&&ft(y,d),Rt(i,s)}}]),t}();function Rt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&nt(t,r),Rt(t,r.slice(0,r.length-1))}}var Ft=h.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Et=h.createContext({}),Wt=h.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Ut=h.createContext(),jt=h.createContext(),St=h.createContext(),Dt=h.createContext(),ge=h.createContext(),G=h.createContext(),$=h.createContext(),Ae=h.createContext();function Ie(){var t=(0,h.useContext)(Wt);return t}function Ge(t){var r=(0,h.useRef)(),i=(0,h.useRef)(!0),a=(0,h.useState)(t),s=Q(a,2),d=s[0],y=s[1];r.current=d;var A=function(R){r.current=R,i.current&&y(R)},w=function(){return r.current};return(0,h.useEffect)(function(){return function(){i.current=!1}},[]),[d,A,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){ht.set(i,r.path,r.message);return}var a=Fe(r.inner),s;try{for(a.s();!(s=a.n()).done;){var d=s.value;ht.get(i,d.path)||ht.set(i,d.path,d.message)}}catch(y){a.e(y)}finally{a.f()}}return i},Me=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=P(s);return a}},K=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return K(a)}},O=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var d=s.message,y=s.dataPath,A=s.keyword,w=s.params,E=y;A==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),ht.set(a,E,d)}),a},le=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 d=arguments.length,y=new Array(d),A=0;A<d;A++)y[A]=arguments[A];var w=function(){clearTimeout(a),r.apply(void 0,y)};clearTimeout(a),a=setTimeout(w,i)}},te=function(r,i,a){var s=i["ui:control"],d=i["informed:props"],y=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,R=i.items,W=i.enum,ae=i.title,re=i.minimum,oe=i.maximum,ye=i.minLength,he=i.maxLength,Se=i.pattern,me=i.type,Te=i.properties,He=le();y&&y.id&&(He=y.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Te:void 0,items:me==="array"?R:void 0,props:j(j({label:ae,id:He,min:re,max:oe,minLength:ye,maxLength:he,pattern:Se},d),y)};if(E){var ze=i.oneOf.map(function(We){var Ye=We["input:props"],et=Ye===void 0?{}:Ye;return j({value:We.const,label:We.title},et)});Ue.props.options=ze}if(W){var Ne=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Ne}if(R&&R.oneOf){var Be=R.oneOf.map(function(We){var Ye=We["input:props"],et=Ye===void 0?{}:Ye;return j({value:We.const,label:We.title},et)});Ue.props.options=Be}return Ue},de=function(r,i,a){if(!r||i)return[];var s=r.properties,d=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(d).length>0){var E=Object.keys(d).sort(function(R,W){var ae=w.indexOf(R),re=w.indexOf(W);return(ae>-1?ae:w.length+1)-(re>-1?re:w.length+1)}).map(function(R){var W=d[R],ae=te(R,W,a);return ae});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},ie=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")},Ee=function(r,i){for(var a=0,s=-1,d=!0;d&&a<r.length;)r[a]==i[a]?s=a:d=!1,a=a+1;return s},je=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=pe(i,a),d=s.findIndex(function(he){return typeof he!="string"}),y=s.length-Y(s).reverse().findIndex(function(he){return typeof he!="string"}),A=[],w=a.split(""),E=0,R=0,W=Ee(s.slice(0,d),w.slice(0,d));W>-1&&(E=W+1,A=A.concat(s.slice(0,W+1)),R=W+1),W<0&&(A=A.concat(s.slice(0,d)),R=d);for(var ae=R;ae<s.length;ae++){var re=s[ae];if(E!=w.length){var oe=w[E];if(typeof re=="function")A.push(re(oe)),E=E+1;else{var ye=typeof re=="string"?re===oe:re.test(oe);ye&&typeof re=="string"?(A.push(re),E=E+1):!ye&&typeof re=="string"?E!=w.length&&A.push(re):ye&&typeof re!="string"?(A.push(oe),E=E+1):!ye&&typeof re!="string"&&(E=E+1,ae=ae-1)}}else if(typeof re=="string"&&ae>=y)A.push(re);else break}return{value:A.join(""),offset:a?A.length-a.length:0}},Ve=function(r,i){var a,s,d=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(a=(s=y.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 R(he,Se,me){var Te=Y(he);return Array.isArray(me)?Te.splice.apply(Te,[Se,0].concat(Y(me))):Te.splice(Se,0,me),Te}function W(he){return"".concat(he).replace(/\D/g,"")}function ae(he){return"".concat(he).split(A).map(function(Se){return W(Se)}).join(".")}function re(he){if(typeof he=="number")return he;var Se=parseFloat(ae(he));return Number.isNaN(Se)?void 0:Se}function oe(he){var Se=ae(he),me="".concat(Se).split(".")[1],Te=d.formatToParts(Number(Se));me==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:me});var He=Te.reduce(function(Ne,Be){var We=Be.type,Ye=Be.value;return["decimal","fraction"].includes(We)&&me==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Ye.split("").filter(function(et,it){return We==="fraction"?it<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Ye.split(""))):[].concat(Y(Ne),[Ye])},[]),Ue=E(He,function(Ne){return w(Ne,/\d/)});He.indexOf(A)===-1&&"".concat(he).indexOf(A)!==-1&&(He=R(He,Ue+1,[A,"[]"]),Ue+=2);var ze=He.slice(Ue+1).join("");return He=[].concat(Y(He.slice(0,Ue+1)),[ze]),He}var ye=function(Se){if(Se!=null)return re(Se)};return{formatter:oe,parser:ye}},Xe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Me,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:te,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ie,informedFormat:je,createIntlNumberFormatter:Ve}),gt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?h.useLayoutEffect:h.useEffect,At=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,d=s===void 0?!0:s,y=Ge(0),A=Q(y,3),w=A[0],E=A[1],R=A[2],W=Ge(0),ae=Q(W,3),re=ae[0],oe=ae[1],ye=ae[2];return gt(function(){if(a.current!=null&&R()){var he=R()+ye();ye()!=0&&d?a.current.setSelectionRange(he+1,he+1):d&&a.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:oe,setCursor:E,cursor:w,getCursor:R,cursorOffset:re}},Nt=function(r,i){var a=(0,h.useRef)(!0),s=a.current;(0,h.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Tt=Re("informed:useField "),bn=function(r,i,a,s,d){if(r!=null){if(d)return d(r);if(i)return i(r);if(a&&!s){var y=je(r,a);return y.value}return r}},zr=function(r,i,a,s){if(i&&a)return i(r);if(s){var d=je(r,s);return d.value}return r},Fr=function(r,i,a){var s=a.required;if(r||i)return function(d,y){if(i)return T(i,d);if(r)return r(d,y)};if(s)return function(d){return wn(d,s)}},Ci=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,d=r.multiple,y=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(y.current).filter(function(R){return R.selected}).map(function(R){return R.value});a(d?E:E[0]||"")}),i==="checkbox"&&(A=function(E){a(E.target.checked),s&&s(E)}),function(w){A(w)}},Qr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},$i=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,d=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return d||(s?[]:"");case"checkbox":return!!d;default:return d}},zn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},wn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Ln(){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,d=t.validationSchema,y=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,R=t.formatter,W=t.parser,ae=t.initialValue,re=t.validateOnChange,oe=t.validateOnBlur,ye=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,me=t.allowEmptyString,Te=t.onValueChange,He=t.notify,Ue=t.keepState,ze=t.maintainCursor,Ne=t.debug,Be=t.shadow,We=t.step,Ye=t.fieldType,et=t.multiple,it=t.onChange,at=t.onBlur,Pt=t.formController,Ht=t.relevant,ur=t.required,Dr=t.keepStateIfRelevant,Ir=t.initialize,rn=t.formatterDependencies,Cr=rn===void 0?[]:rn,Hr=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"]),In=(0,h.useState)(le()),Jt=Q(In,1),kt=Jt[0],Bt=(0,h.useContext)(Ft),fr=(0,h.useContext)(Ae),hn=fr||Dr,wr=Ie(),Rs=(0,h.useRef)(),ru=(0,h.useRef)(!0),Fa=(0,h.useRef)(),zi=(0,h.useRef)(!1),nu=function(){return!zi.current},Xf=function(){return zi.current};Pt&&(Bt=Pt.updater,wr=Pt.getFormApi());var Ei=Fr(a,d,{required:ur}),iu=(0,h.useState)(function(){return Bt.getInitialValue(i)}),Pm=Q(iu,1),Im=Pm[0],Qf=Bt.getSavedValue(i),Zf,Yh;(Ue||hn)&&Qf?(Tt("Setting field ".concat(Kd,"'s kept state"),Qf),Zf=Qf.value,Yh=Qf.touched,wr.removeSavedState(Kd)):ae!=null?Zf=ae:Zf=Im;var Fm=Ge(bn(Zf,y,R,W,Ir)),kd=Q(Fm,3),ou=kd[0],Md=kd[1],Rm=kd[2],km=Ge(ye?Ei(ou):void 0),Ld=Q(km,3),Jh=Ld[0],Xh=Ld[1],Mm=Ld[2],Lm=Ge(Yh),Dd=Q(Lm,3),Qh=Dd[0],Dm=Dd[1],Zh=Dd[2],Nm=(0,h.useState)(function(){return zr(ou,w,E,R)}),qh=Q(Nm,2),Nd=qh[0],Bd=qh[1],_h=(0,h.useRef)();_h.current=Nd;var ev=(0,h.useRef)(ae),Ra=(0,h.useRef)(i),tv=(0,h.useRef)();ev.current=ae,Ra.current=i;var Bm=(0,h.useRef)(null),Gi=h.useMemo(function(){return r||Bm},[]),Ud=At({value:ou,inputRef:Gi,maintainCursor:!!ze}),jd=Ud.getCursor,Um=Ud.setCursor,Vd=Ud.setCursorOffset,jm=function(){return!0},Wd=function(cr){var vn=Ht||jm,Wn=wr.getFullField(Ra.current)||Ra.current,Xt={path:Wn,parentPath:Wn.replace(/(.*)[.[].*/,"$1"),get:function(Hn,lu){return ht.get(Hn,lu)}};return fr&&fr.relevant?vn(cr,Xt)&&fr.relevant(cr,Xt):vn(cr,Xt)},Vm=Ge(Wd(wr.getValues())),Hd=Q(Vm,3),qf=Hd[0],Wm=Hd[1],rv=Hd[2],Hm=function(cr){return fr&&fr.relevant?fr.relevant(cr):!0},zm=function(){var cr=Wd(wr.getValues()),vn=rv();return cr!=vn&&Wm(cr),cr};(0,h.useEffect)(function(){!qf&&!Ue&&Rs.current.reset()},[qf]);var ui=function(){return Be?wr.getDerrivedValue(i):Rm()},au=function(cr){var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wn=vn.preventUpdate;We&&wr.getStep()<We?(Tt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Xh(void 0),Bt.setError(kt,void 0,!Wn)):(Tt("Setting ".concat(i,"'s error to ").concat(cr)),Xh(cr),Bt.setError(kt,cr,!Wn))},zd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=cr;zi.current=!0,Tt("Setting ".concat(i," to ").concat(Xt)),Ir&&(Xt=Ir(Xt));var ka=wr.getOptions(),Hn=Xt;if(Xt===""&&!me&&!Wn.allowEmptyString&&!ka.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Ye==="number")&&Xt!==void 0&&(Xt=+Xt),vn&&vn.target&&vn.target.selectionStart&&Um(vn.target.selectionStart),y&&!Se&&(Hn=y(Xt,jd()),Xt=y(Xt,jd())),A&&!Se){var lu=A(Xt,jd());Hn=lu.value,Xt=lu.value,Vd(lu.offset)}if(w&&E&&(Xt=E(Xt),Hn=w(Xt)),R){var nv=je(Xt,R);Vd(nv.offset),Hn=nv.value,Xt=Hn}W&&(Xt=Xt!=null?W(Xt):Xt),Ei&&re&&!Wn.initial&&(Tt("Validating after change ".concat(i," ").concat(Xt)),au(Ei(Xt,wr.getValues()))),Md(Xt),Bd(Hn),Te&&Te(Xt),Bt.setValue(kt,Xt,!Wn.preventUpdate)};Nt(function(){Rs.current.setValue(_h.current)},Y(Cr));var Gd=function(cr,vn){var Wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Wn.preventUpdate;if(Tt("Field ".concat(i," has been touched")),Ei&&oe&&!vn&&cr&&(Tt("Validating after blur ".concat(i," ").concat(ui())),au(Ei(ui(),wr.getValues()))),s&&he&&!vn&&cr&&(Tt("Validating async after blur ".concat(i," ").concat(ui())),s(ui(),wr.getValues())),y&&Se){var ka=y(ui());Md(ka),Bd(ka),Te&&Te(ka),Bt.setValue(kt,ka,!Xt)}if(A&&Se){var Hn=A(ui());Vd(Hn.offset),Md(Hn.value),Bd(Hn.value),Te&&Te(Hn.value),Bt.setValue(kt,Hn.value,!Xt)}Dm(cr),Bt.setTouched(kt,cr,!Xt)},Gm=function(){var cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},vn=cr.preventUpdate,Wn=bn(ev.current||Bt.getInitialValue(Ra.current),y,R,W,Ir);zd(Wn,null,{initial:!0,preventUpdate:vn}),au(ye?Ei(Wn):void 0,{preventUpdate:vn}),Gd(void 0,!0,{preventUpdate:vn}),zi.current=!1},$m=function(cr){Ei&&(Tt("Field validating ".concat(i," ").concat(ui())),au(Ei(ui(),cr||wr.getValues())))},Km=function(cr){s&&(Tt("Field async validating ".concat(i," ").concat(ui())),s(ui(),cr||wr.getValues()))},$d={setValue:zd,setTouched:Gd,setError:au,reset:Gm,validate:$m,asyncValidate:Km,getValue:ui,getTouched:Zh,getError:Mm,getIsRelevant:rv,getDirty:Xf,getPristine:nu,getFieldState:function(){return{value:ui(),touched:Zh(),dirty:Xf(),pristine:nu()}},relevant:Wd,multistepRelevant:Hm,checkRelevant:zm};Rs.current=$d;var su={value:ou,error:Jh,touched:Qh,maskedValue:Nd,isRelevant:qf,dirty:zi.current,pristine:!zi.current};Be&&(su={error:Jh,touched:Qh}),Tt("Render",wr.getFullField(i),su),gt(function(){var sn=wr.getFullField(Ra.current);return Tt("Register",kt,Ra.current),Fa.current={field:sn,fieldId:kt,fieldApi:$d,fieldState:su,notify:He,keepState:Ue,inMultistep:hn,shadow:Be},Bt.register(kt,Fa.current),function(){var cr=wr.getFullField(Ra.current);Tt("Deregister",kt,cr),Bt.deregister(kt)}},[]),(0,h.useEffect)(function(){var sn=wr.getFullField(i);return ru.current?ru.current=!1:(Tt("Update",i,hn),Fa.current.field=sn,Bt.update(kt,Fa.current,tv.current)),function(){tv.current=sn}},[i]),gt(function(){Ne&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var Ym=[].concat(Y(Object.values(su)),Y(Object.values(t)),Y(Object.values(Hr))),Jm=function(cr){return(0,h.useMemo)(function(){return qf?cr:null},Y(Ym))},Kd=i,Xm=Ci({fieldType:Ye,setValue:zd,onChange:it,multiple:et,ref:Gi}),Qm=Qr({setTouched:Gd,onBlur:at}),Zm=$i({fieldType:Ye,maskedValue:Nd,multiple:et,value:ou}),qm=zn(Ye);return{fieldState:su,fieldApi:$d,render:Jm,ref:Gi,userProps:j(j({},Hr),{},{multiple:et,onChange:it,onBlur:at,id:Hr.id||kt}),informed:j({name:Kd,multiple:et,onChange:Xm,onBlur:Qm,value:Zm,ref:Gi,type:qm,id:Hr.id||kt},Hr)}}var Zr=function(r){var i=h.forwardRef(function(a,s){var d=Ln(a,s),y=d.fieldState,A=d.fieldApi,w=d.render,E=d.ref,R=d.userProps;return w(h.createElement(r,D({fieldApi:A,fieldState:y,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},R)))});return i.displayName="asField(".concat(Ke(r),")"),i},Oi=Re("informed:Text "),Ti=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ae=s.forwardedRef,re=s.debug,oe=s.label,ye=s.title,he=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oi("Render",R),gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),h.createElement(h.Fragment,null,oe?h.createElement("label",{htmlFor:he}," ",oe," "):null,h.createElement("input",D({},Se,{id:he,name:R,ref:ae,value:!d&&d!==0?"":d,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},ln=Zr(Ti),Sn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ae=s.forwardedRef,re=s.debug,oe=s.label,ye=s.id,he=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),h.createElement(h.Fragment,null,oe?h.createElement("label",{htmlFor:ye}," ",oe," "):null,h.createElement("textarea",D({},he,{id:ye,name:R,ref:ae,value:d||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},Gn=Zr(Sn),$n=Re("informed:Select "),An=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.value,y=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,R=s.initialValue,W=s.options,ae=s.children,re=s.forwardedRef,oe=s.debug,ye=s.multiple,he=s.label,Se=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,h.useRef)(),He=function(ze){var Ne=Array.from((re||Te).current).filter(function(Be){return Be.selected}).map(function(Be){return Be.value});i.setValue(ye?Ne:Ne[0]||""),A&&ze&&A(ze)};return gt(function(){oe&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),$n("Render",E,d),h.createElement(h.Fragment,null,he?h.createElement("label",{htmlFor:Se}," ",he," "):null,h.createElement("select",D({},me,{id:Se,multiple:ye,name:E,ref:re||Te,value:d||(ye?[]:""),onChange:He,onBlur:function(ze){y(!0),w&&w(ze)}}),W?W.map(function(Ue){return h.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ae))},ei=Zr(An),Pi=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),d=a.value,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,R=s.field,W=s.initialValue,ae=s.debug,re=s.forwardedRef,oe=s.id,ye=s.label,he=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return h.createElement(h.Fragment,null,ye?h.createElement("label",{htmlFor:oe}," ",ye," "):null,h.createElement("input",D({},he,{id:oe,name:R,ref:re,checked:!!d,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Gr=Zr(Pi),qr=function(r){return h.forwardRef(function(i,a){return h.createElement(Ut.Consumer,null,function(s){var d=s.radioGroupApi,y=s.radioGroupState;return h.createElement(r,D({radioGroupApi:d,radioGroupState:y,ref:a},i))})})},ti=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),d=a.value,y=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,R=s.value,W=s.onChange,ae=s.onBlur,re=s.field,oe=s.initialValue,ye=s.forwardedRef,he=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return h.createElement("input",D({},he,{name:re,ref:ye,value:R,checked:d===R,onChange:function(me){!me.target.checked||(y(R),W&&W(me),w&&w(me))},onBlur:function(me){A(!0),ae&&ae(me),E&&E(me)},type:"radio"}))},pr=qr(ti),Ot=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,d=s.options,y=s.children;return h.createElement(Ut.Provider,{value:this.groupContext},d?d.map(function(A){return h.createElement("label",{key:A.value},A.label," ",h.createElement(pr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(h.Component),fi=Zr(Ot);function Ii(){return(0,h.useContext)(St)}var Fn=function(){var r=Ii(),i=r.add;return h.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function _t(){return(0,h.useContext)(Dt)}var Kn=function(){var r=_t(),i=r.remove;return h.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},ri=Re("informed:useArrayField "),mo=function(r){var i=r.field,a=r.initialValue,s=r.validate,d=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,h.useState)(new Map),E=Q(w,1),R=E[0],W=(0,h.useContext)(Ft),ae=A.getFullField(i),re=W.getInitialValue(i)||a||[],oe=A.getSavedValue(ae)&&A.getSavedValue(ae).value,ye=Ge(oe||re),he=Q(ye,3),Se=he[0],me=he[1],Te=he[2],He=Se?Se.map(function(){return le()}):[],Ue=Ge(He),ze=Q(Ue,3),Ne=ze[0],Be=ze[1],We=ze[2],Ye=(0,h.useMemo)(function(){return function(Jt,kt){var Bt=We()==null?0:We().length;return s?s(Jt,Bt,kt):void 0}}),et=Ln(j({field:i,validate:s?Ye:void 0,shadow:!0},y)),it=et.fieldApi;gt(function(){var Jt=function(Bt){Bt!==ae&&(ri("".concat(ae," changed")),RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Bt)&&it.validate())};return A.emitter.on("value",Jt),function(){A.emitter.removeListener("value",Jt)}},[i]);var at=function(kt){ri("EXPECTING REMOVAL OF","".concat(i,"[").concat(kt,"] and ").concat(i,"[").concat(Ne.length-1,"]")),W.expectRemoval("".concat(i,"[").concat(kt,"]")),W.expectRemoval("".concat(i,"[").concat(Ne.length-1,"]"));var Bt=Ne.slice(0,kt).concat(Ne.slice(kt+1,Ne.length));Be(Bt);var fr=Te(),hn=fr.slice(0,kt).concat(fr.slice(kt+1,fr.length));me(hn)},Pt=function(kt,Bt){ri("Swapping","".concat(i,"[").concat(kt,"] and ").concat(i,"[").concat(Bt,"]"));var fr=Y(Ne);Ne[kt]&&Ne[Bt]?(fr[kt]=Ne[Bt],fr[Bt]=Ne[kt]):console.warn("Attempted to swap ".concat(kt," with ").concat(Bt," but one of them does not exist :(")),Be(fr)},Ht=function(){Ne.push(le()),Be(Y(Ne))},ur=function(kt){Ne.push(le()),Be(Y(Ne));var Bt=Y(Te());Bt[Ne.length-1]=kt,me(Bt)},Dr=function(){var kt=W.getInitialValue(i)||a||[];me(kt);var Bt=kt?kt.map(function(){return le()}):[];Be(Bt)},Ir=Ne.map(function(Jt,kt){var Bt={remove:function(){return at(kt)}},fr={initialValue:Se&&Se[kt],key:Jt,field:"".concat(i,"[").concat(kt,"]"),index:kt};return j(j({arrayFieldItemApi:Bt,arrayFieldItemState:fr},Bt),fr)}),rn={add:Ht,swap:Pt,addWithInitialValue:ur,reset:Dr};d&&(d.current=rn);var Cr={fields:Ir,field:i},Hr=j(j({},W),{},{register:function(kt,Bt){R.set(kt,Bt);for(var fr=arguments.length,hn=new Array(fr>2?fr-2:0),wr=2;wr<fr;wr++)hn[wr-2]=arguments[wr];W.register.apply(W,[kt,Bt].concat(hn))},deregister:function(kt){R.delete(kt);for(var Bt=arguments.length,fr=new Array(Bt>1?Bt-1:0),hn=1;hn<Bt;hn++)fr[hn-1]=arguments[hn];W.deregister.apply(W,[kt].concat(fr))},getInitialValue:function(kt){if(RegExp("".concat(ae,"\\[[0-9]+\\]")).test(kt)){var Bt=kt.replace(i,""),fr=ht.get(Te(),Bt);return ri("Resetting ".concat(Bt," to ").concat(fr)),fr}return W.getInitialValue(kt)}}),In=function(kt){return h.createElement(Ft.Provider,{value:Hr},h.createElement(St.Provider,{value:rn},h.createElement(jt.Provider,{value:Cr},kt)))};return{render:In,add:Ht,swap:Pt,addWithInitialValue:ur,fields:Ir,arrayFieldState:Cr,arrayFieldApi:rn,field:i}},ot=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,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},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=Ie(),i=(0,h.useMemo)(function(){return ot(t,r)},[t]);return i}function ci(){var t=(0,h.useContext)(Et);return t}var ue=function(r){var i=r.when,a=r.children,s=ci(),d=i(s);return d?a:null},Oe=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),d=Ie();if(i){var y=d.getFullField(a),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(R,W){return ht.get(R,W)}},w=function(R){var W=R.values;return i(W,A)};return h.createElement(ue,{when:w},h.createElement(qe,D({field:a},s)))}else return h.createElement(qe,D({field:a},s))},qe=function(r){var i=r.children,a=C(r,["children"]),s=mo(a),d=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return d(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},lt=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,d=(0,h.useContext)(Ft),y=Ie(),A=(0,h.useState)(0),w=Q(A,2),E=w[0],R=w[1],W=(0,h.useState)(new Map),ae=Q(W,1),re=ae[0],oe=i.field,ye=Lt(oe),he=function(){var Ne=y.getState(),Be=Ne.values,We=Ne.errors,Ye=Ne.touched,et={values:ht.get(Be,oe),errors:ht.get(We,oe),touched:ht.get(Ye,oe)};return et};(0,h.useEffect)(function(){var ze=function(Be){var We=Be.slice(0,Be.lastIndexOf("[")!=-1?Be.lastIndexOf("]")+1:Be.length);We===oe&&R(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[oe]);var Se=function(){re.forEach(function(Ne){Ne.fieldApi.reset()})},me=he(),Te=j(j({},d),{},{register:function(Ne,Be,We){re.set(Ne,Be),d.register(Ne,Be,We)},deregister:function(Ne){re.delete(Ne);for(var Be=arguments.length,We=new Array(Be>1?Be-1:0),Ye=1;Ye<Be;Ye++)We[Ye-1]=arguments[Ye];d.deregister.apply(d,[Ne].concat(We))}}),He=j(j(j({},a),ye),{},{reset:Se}),Ue=j(j({},i),me);return typeof s=="function"?h.createElement(Ft.Provider,{value:Te},h.createElement(Dt.Provider,{value:He},h.createElement(ge.Provider,{value:Ue},s(j(j({arrayFieldItemApi:He,arrayFieldItemState:Ue},He),Ue))))):h.createElement(Ft.Provider,{value:Te},h.createElement(Dt.Provider,{value:He},h.createElement(ge.Provider,{value:Ue},s)))};Oe.Items=function(t){var r=t.children,i=(0,h.useContext)(jt),a=i.fields;return a.map(function(s){var d=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=d.key;return h.createElement(lt,{key:A,arrayFieldItemApi:y,arrayFieldItemState:d},r)})};var ut=function(r){var i=r.components,a=(0,h.useContext)(Ft),s=a.fieldMap;return i?i.map(function(d,y){var A=d["ui:control"],w=s[A];return h.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Re("informed:FormFields "),Qt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,d=(0,h.useContext)(Ft),y=d.fieldMap,A=(0,h.useMemo)(function(){var w=de(i,s,a),E=w.map(function(R,W){var ae=R.field,re=R.props,oe=R.type,ye=R.properties,he=R.items,Se=R.componentType,me=R.uiBefore,Te=R.uiAfter,He=R.allOf,Ue=y[Se];return Kt("Rendering Field",ae,R),!Ue&&oe==="object"&&ye?h.createElement(t,{schema:R,prefix:ae,key:"ScheamField-".concat(W)}):!Ue&&oe==="array"&&he?h.createElement(Rr,D({key:"ScheamField-".concat(W),field:ae,items:he,uiBefore:me,uiAfter:Te},re)):Ue&&Se==="array"&&he&&oe==="array"?h.createElement(Ue,D({key:"ScheamField-".concat(W),field:ae,items:he,uiBefore:me,uiAfter:Te},re)):Se==="conditionals"?He.map(function(ze){var Ne=ze.then,Be=ze.if.properties,We=function(et){var it=et.values;return Object.keys(Be).every(function(at){var Pt=Be[at];return it[at]===Pt.const})};return h.createElement(ue,{key:"ScheamField-".concat(W),when:We},h.createElement(t,{schema:Ne}))}):Ue?h.createElement(Ue,D({key:"ScheamField-".concat(W),field:ae},re)):null});return E},[i,a]);return A},Rr=function(r){var i=r.field,a=r.items,s=r.uiBefore,d=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return h.createElement(Oe,D({field:i},y),h.createElement(ut,{components:s}),h.createElement(Oe.Items,null,function(A){var w=A.field;return h.createElement(h.Fragment,null,h.createElement(ut,{components:a["ui:before"]}),h.createElement(Qt,{schema:a,prefix:w}),h.createElement(ut,{components:a["ui:after"]}))}),h.createElement(ut,{components:d}))},kr={select:ei,input:ln,textarea:Gn,checkbox:Gr,radio:fi,add:Fn,remove:Kn,array:Rr},er=Re("informed:Controller "),uu=function(r,i){var a=Object.keys(i).find(function(d){return r.includes(d)});if(!!a){var s=r.slice(0,a.length);return s===a}},un=function(){},ks=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,d=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=d||kr,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:un,setTouched:un,setError:un,reset:un,validate:un,getValue:un,getTouched:un,getError:un,getFieldState:un,checkRelevant:un,getPristine:un,getDirty:un}},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,R=r.fieldsById.get(A);R.shadow||ht.set(r.state.values,R.field,R.fieldApi.getValue()),R.fieldApi.relevant(r.state.values)||ht.delete(r.state.values,R.field),r.fieldsById.forEach(function(W){var ae=W.fieldApi.checkRelevant();(!W.fieldApi.multistepRelevant(r.state.values)||!ae&&!W.keepState)&&(ht.delete(r.state.values,W.field),ht.delete(r.state.touched,W.field),ht.delete(r.state.errors,W.field))}),E&&(r.emit("change"),r.emit("field",R.field),r.emit("value",R.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(A);!R.shadow&&R.fieldApi.getIsRelevant()&&ht.set(r.state.touched,R.field,R.fieldApi.getTouched()),R.shadow&&R.fieldApi.getError()!=null&&R.fieldApi.relevant(r.state.values)&&ht.set(r.state.touched,R.field,R.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",R.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,R=r.fieldsById.get(A);!R.shadow&&R.fieldApi.getIsRelevant()&&ht.set(r.state.errors,R.field,R.fieldApi.getError());var W=ht.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 W=="string")&&ht.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(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),d=1;d<a;d++)s[d-1]=arguments[d];var y=this.subscriptions.get(i);y&&y.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()?(er("Submit",this.state),this.emit("submit")):(er("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){ht.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return er("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 ht.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return er("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return er("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return er("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return er("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return er("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return er("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return er("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return er("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?ht.get(this.savedValues,"shadow-".concat(i)):ht.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?ht.delete(this.savedValues,"shadow-".concat(i)):ht.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return ht.get(this.options.initialValues,i)}},{key:"getField",value:function(i){er("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(d){var y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(d).slice(1),w=a.getField(A);w&&(er("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!!(ht.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),d=s[1];return d.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!ht.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(){er("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){er("Setting values"),this.fieldsById.forEach(function(a){var s=ht.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;er("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Me(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(ht.has(s,w.field)){var E=ht.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var d=O(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(ht.has(d,w.field)){var E=ht.get(d,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 y=this.options.validate(a);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(ht.has(A,w.field)){var E=ht.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){er("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()?(er("Submit",this.state),this.emit("submit")):(er("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 d=a.field,y=a.state;er("Register ID:",i,"Name:",d,y,"Initial",s);var A=d.slice(0,d.lastIndexOf("[")!=-1?d.lastIndexOf("]")+1:d.length),w;this.fieldsById.forEach(function(E,R){E&&E.field===d&&(w=R)}),w&&(a.keepState||a.inMultistep)?(er("Already Registered",d),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",d),er("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),er("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",d))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;er("Deregister",i,s),delete this.onScreen[i];var d=uu(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!d&&(er("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?ht.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):ht.set(this.savedValues,s,a.fieldApi.getFieldState())),(d||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(er("Removing field",s),this.fieldsById.delete(i),d||(ht.delete(this.state.values,s),ht.delete(this.state.touched,s),ht.delete(this.state.errors,s),a.shadow?ht.delete(this.savedValues,"shadow-".concat(s)):ht.delete(this.savedValues,s)),d&&this.pulledOut[y]&&(er("Pulling out",s,"with magic value",y),ht.pullOut(this.state.values,y),ht.pullOut(this.state.touched,y),ht.pullOut(this.state.errors,y),ht.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){er("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){er("Update",i,a.field,s,a.fieldState.value);var d=a.fieldApi.getValue(),y=a.fieldApi.getError(),A=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(ht.set(this.state.values,s),ht.set(this.state.errors,s),ht.set(this.state.touched,s)),ht.set(this.state.values,a.field,d),ht.set(this.state.errors,a.field,y),ht.set(this.state.touched,a.field,A),this.emit("change")}}]),t}(),Ma=Re("informed:FormProvider "),Ms=function(r){var i=r.children,a=r.formApi,s=r.formController,d=r.formState,y=C(r,["children","formApi","formController","formState"]);if(Ma("Render FormProvider"),a)return Ma("Render FormProvider with given values"),h.createElement(Ft.Provider,{value:s.updater},h.createElement(Wt.Provider,{value:a},h.createElement(Et.Provider,{value:d},i)));Ma("Render FormProvider with generated values");var A=Ds(y);return h.createElement(Ft.Provider,{value:A.formController.updater},h.createElement(Wt.Provider,{value:A.formApi},h.createElement(Et.Provider,{value:A.formState},i)))},Ls=Re("informed:useForm "),Ds=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,d=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,R=r.onChange,W=r.onReset,ae=r.onSubmit,re=r.onValueChange,oe=r.onSubmitFailure,ye=r.validationSchema,he=r.schema,Se=r.ajv,me=r.fieldMap,Te=r.onlyValidateSchema,He=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Ls("Render useForm");var Ue=(0,h.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:d,allowEmptyStrings:y,preventEnter:A,validationSchema:ye,schema:he,ajv:Se,fieldMap:me}},[i,a,s,d,y,A,ye,he,Se,me]),ze=(0,h.useState)(function(){return new ks(Ue)}),Ne=Q(ze,1),Be=Ne[0];(0,h.useEffect)(function(){Be.setOptions(Ue)},[Ue]),gt(function(){Be.mount()},[]);var We=(0,h.useState)(function(){return Be.getFormState()}),Ye=Q(We,2),et=Ye[0],it=Ye[1];gt(function(){var Dr=function(){return R&&R(Be.getFormState())},Ir=function(){return W&&W()},rn=function(){return ae&&ae(Be.getFormState().values)},Cr=function(){return re&&re(Be.getFormState().values)},Hr=function(){return oe&&oe(Be.getFormState().errors)};return Be.on("change",Dr),Be.on("reset",Ir),Be.on("submit",rn),Be.on("value",Cr),Be.on("failure",Hr),function(){Be.removeListener("change",Dr),Be.removeListener("reset",Ir),Be.removeListener("submit",rn),Be.removeListener("value",Cr),Be.removeListener("failure",Hr)}},[R,W,ae,re,oe]),(0,h.useState)(function(){var Dr=function(){Ls("Setting form state"),it(Be.getFormState())};Be.on("change",Dr),w&&w(Be.getFormApi()),E&&(E.current=Be.getFormApi())});var at=(0,h.useState)(function(){return Be.getFormApi()}),Pt=Q(at,1),Ht=Pt[0],ur=function(Ir){return h.createElement(Ms,{formApi:Ht,formState:et,formController:Be},h.createElement(h.Fragment,null,Ir||h.createElement(Qt,{schema:he,onlyValidateSchema:Te})))};return{formApi:Ht,formState:et,formController:Be,render:ur,userProps:He}},fu=Re("informed:Form "),cu=function(r){var i=r.children,a=r.render,s=r.component,d=C(r,["children","render","component"]);fu("Render FORM");var y=Ds(d),A=y.formApi,w=y.formController,E=y.formState,R=y.render,W=y.userProps,ae=function(){var oe={formState:E,formApi:A};return s?h.createElement(s,oe,i):a?a(oe):typeof i=="function"?i(oe):i};return R(h.createElement("form",D({},W,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ae()))},_f=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,d){return i.setValue("".concat(r,".").concat(s),d)},setTouched:function(s,d){return i.setTouched("".concat(r,".").concat(s),d)},setError:function(s,d){return i.setError("".concat(r,".").concat(s),d)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},ec=function(r,i){var a=i.register,s=i.deregister,d=i.setValue,y=i.setTouched,A=i.setError,w=i.update,E=i.getField,R=i.expectRemoval,W=i.getInitialValue,ae=i.fieldMap,re=i.getSavedValue;return{register:function(ye){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(ye)].concat(Se))},deregister:function(ye){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(ye)].concat(Se))},update:function(ye){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(ye)].concat(Se))},setValue:function(ye){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return d.apply(void 0,["".concat(r,".").concat(ye)].concat(Se))},setTouched:function(ye){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Se))},setError:function(ye){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(ye)].concat(Se))},getField:function(ye){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(ye)].concat(Se))},expectRemoval:function(ye){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return R.apply(void 0,["".concat(r,".").concat(ye)].concat(Se))},getInitialValue:function(ye){return W("".concat(r,".").concat(ye))},getSavedValue:function(ye){return re("".concat(r,".").concat(ye))},fieldMap:ae}},tc=function(r){var i=r.scope,a=r.children,s=useContext(Ft),d=Ie(),y=ci(),A=useMemo(function(){return _f(i,d)},[i]),w=useMemo(function(){return ec(i,s)},[i]);return React.createElement(Ft.Provider,{value:w},React.createElement(Wt.Provider,{value:A},React.createElement(Et.Provider,{value:y},a)))},Fi=function(r){var i=ci(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,d=s.pristine,y=s.dirty,A=s.invalid,w=s.values,E=s.errors,R=s.touched,W=s.validating,ae=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:d,dirty:y,invalid:A,values:w,errors:E,touched:R,validating:W,submitting:ae},null,2)))},rc=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Ie(),d=s.getValues,y=s.validate,A=s.screenValid,w=(0,h.useState)(new Map),E=Q(w,1),R=E[0],W=(0,h.useRef)(0),ae=Ge({current:i,steps:[],goal:null}),re=Q(ae,3),oe=re[0],ye=re[1],he=re[2],Se=(0,h.useState)(function(){var Ue=function(){var Be=he(),We=Be.current,Ye=R.get(We);return Ye},ze={getState:function(){return he()},getCurrentStep:Ue,getStep:function(Be){return R.get(Be)},getNumberOfSteps:function(){return R.size},next:function(){if(y(),A()){var Be=Ue(),We=Be.getNext,Ye=We(),et=typeof Ye=="function"?Ye(d()):Ye;et&&ye(function(it){return j(j({},it),{},{current:et})})}},back:function(){var Be=Ue(),We=Be.getPrevious,Ye=We(),et=typeof Ye=="function"?Ye(d()):Ye;et&&ye(function(it){return j(j({},it),{},{current:et})})},setCurrent:function(Be){if(Be){var We=R.get(Be).index;We<Ue().index?ye(function(Ye){return j(j({},Ye),{},{current:Be,goal:null})}):ye(function(Ye){return j(j({},Ye),{},{goal:Be})})}},register:function(Be,We,Ye){Ye?(W.current=W.current+1,R.set(Be,j(j({},We),{},{index:W.current}))):ye(function(et){return j(j({},et),{},{steps:Array.from(R.keys())})})},deregister:function(Be){R.delete(Be),W.current=W.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(R.keys())})})}};return a&&(a.current=ze),ze}),me=Q(Se,1),Te=me[0],He=function(ze){return h.createElement($.Provider,{value:Te},h.createElement(G.Provider,{value:oe},ze))};return j(j(j({},Te),oe),{},{render:He})};function nc(){return(0,h.useContext)(G)}function La(){return(0,h.useContext)($)}var zo=function(r){var i=r.step,a=r.next,s=r.previous,d=r.relevant,y=ci(),A=y.values,w=nc(),E=w.current,R=w.goal,W=La(),ae=W.register,re=W.deregister,oe=W.next,ye=i===E,he=d?d(A):!0,Se=(0,h.useRef)(a),me=(0,h.useRef)(s),Te=(0,h.useRef)();Se.current=a,me.current=s,Te.current=d,(0,h.useState)(function(){ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}},!0)}),(0,h.useEffect)(function(){return ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}}),function(){re(i)}},[i]),(0,h.useEffect)(function(){R&&ye&&R!==i&&oe()},[R,ye]);var He=function(ze){return h.createElement(Ae.Provider,{value:{relevant:function(Be){return Te.current?Te.current(Be):!0},multistep:!0}},ye&&he?ze:null)};return{isCurrent:ye,isRelevant:he,step:i,render:He}};function ic(t){var r=t.children,i=C(t,["children"]),a=rc(i),s=a.render,d=C(a,["render"]);return s(typeof r=="function"?r(d):r)}ic.Step=function(r){var i=r.children,a=C(r,["children"]),s=zo(a),d=s.render;return d(i)};var Yd=function(r){var i=r.field,a=useContext(Ft),s=a.fieldMap,d=Ie(),y=d.getFullField,A=d.getOptions,w=y(i),E=A(),R=E.schema,W=ie(w),ae=ht.get(R,W);if(!ae)return null;var re=te(i,ae),oe=re.props,ye=re.componentType,he=s[ye];return React.createElement(he,D({field:i},oe))},Jd=function(){var r=Ie(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Qt,{schema:s})},Xd=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))})})},du=function(r){return React.forwardRef(function(i,a){return React.createElement(Et.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:a},i))})})},pu=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 hu(t){var r=Ie(),i=useMemo(function(){return pu(r,t)},[t]);return i}function vu(t){var r=hu(t),i=Ie(),a=React.useState(),s=Q(a,2),d=s[1],y=React.useCallback(function(){return d({})},[]);return gt(function(){var A=function(E){E===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),gt(function(){y()},[]),r.getFieldState()||{}}var oc=function(r){return function(i){return function(a){var s=vu(r);return React.createElement(i,D({fieldState:s},a))}}},Ns=function(r){return function(i){return function(a){var s=hu(r);return React.createElement(i,D({fieldApi:s},a))}}},Bs=function(r){var i=r.value,a=r.forwardedRef,s=r.children,d=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:a,value:i,key:i},d),s)},gu=null,Go=o(80150),Us=o(89356),Ki=o(63263),ac=o(30699),Da=o(58377),Yn=o(28834),yu=o(13038),sc=o(32752),$o=o(44341);function js(t,r,i){return r in t?$o(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function di(t,r){var i=Us(t);if(Ki){var a=Ki(t);r&&(a=ac(a).call(a,function(s){return Da(t,s).enumerable})),i.push.apply(i,a)}return i}function hr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Yn(a=di(Object(i),!0)).call(a,function(d){js(t,d,i[d])})}else if(yu)sc(t,yu(i));else{var s;Yn(s=di(Object(i))).call(s,function(d){$o(t,d,Da(i,d))})}}return t}var pi=o(28583),Yi=o.n(pi),Vs=o(10240),Ji=o.n(Vs),Ri=o(8575),Xi=o(51446),Ws=o(19996),Hs=o(78363),mu=o(95238),zs=o(53592);function Gs(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 $s(t,r){var i;if(!!t){if(typeof t=="string")return Gs(t,r);var a=mu(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return zs(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Gs(t,r)}}function Qi(t,r){var i=typeof Xi!="undefined"&&Ws(t)||t["@@iterator"];if(!i){if(Hs(t)||(i=$s(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.
|
|
81
81
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,y=!1,A;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return d=E.done,E},e:function(E){y=!0,A=E},f:function(){try{!d&&i.return!=null&&i.return()}finally{if(y)throw A}}}}var lc=o(23882);function sr(t){return typeof Xi=="function"&&typeof lc=="symbol"?sr=function(i){return typeof i}:sr=function(i){return i&&typeof Xi=="function"&&i.constructor===Xi&&i!==Xi.prototype?"symbol":typeof i},sr(t)}function uc(t){if(Hs(t))return t}function xu(t,r){var i=t&&(typeof Xi!="undefined"&&Ws(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,d=!1,y,A;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(a.push(y.value),!(r&&a.length===r));s=!0);}catch(w){d=!0,A=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(d)throw A}}return a}}function Na(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(t,r){return uc(t)||xu(t,r)||$s(t,r)||Na()}var bu=o(69798);function wu(t,r,i,a,s,d,y){try{var A=t[d](y),w=A.value}catch(E){i(E);return}A.done?r(w):bu.resolve(w).then(a,s)}function Ks(t){return function(){var r=this,i=arguments;return new bu(function(a,s){var d=t.apply(r,i);function y(w){wu(d,a,s,y,A,"next",w)}function A(w){wu(d,a,s,y,A,"throw",w)}y(void 0)})}}var Ko=o(63109),lr=o.n(Ko),fc=o(78580),Ba=o.n(fc),Yo=o(72119),Su=o.n(Yo),Au=o(66419),cc=o.n(Au),Ys=o(59340),Jo=o.n(Ys),dc=o(2991),tr=o.n(dc),Eu=o(86902),Zt=o.n(Eu),pc=o(77766),Ct=o.n(pc),hi=o(26295),Xo=o.n(hi),Js=o(20116),gn=o.n(Js),vi=o(31905),Zi=o(92495),Qo=o.n(Zi),hc=o(93320),Xs=o.n(hc),vc=o(78718),Ua=o.n(vc),Qs=o(23560),ni=o.n(Qs),Jn=o(88996);function ja(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Zs(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),$o(t,a.key,a)}}function qs(t,r,i){return r&&Zs(t.prototype,r),i&&Zs(t,i),t}var Cu=o(83863),Ou=o(79542),_s=o(24889);function qi(t){return qi=Ou?_s:function(i){return i.__proto__||_s(i)},qi(t)}function Zo(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=qi(t),t!==null););return t}function qo(t,r,i){return typeof Reflect!="undefined"&&Cu?qo=Cu:qo=function(s,d,y){var A=Zo(s,d);if(!!A){var w=Da(A,d);return w.get?w.get.call(y):w.value}},qo(t,r,i||t)}var Tu=o(189);function _o(t,r){return _o=Ou||function(a,s){return a.__proto__=s,a},_o(t,r)}function Va(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Tu(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_o(t,r)}var ea=o(13535);function Wa(){if(typeof Reflect=="undefined"||!ea||ea.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ea(Boolean,[],function(){})),!0}catch(t){return!1}}function Xn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pu(t,r){return r&&(sr(r)==="object"||typeof r=="function")?r:Xn(t)}function el(t){var r=Wa();return function(){var a=qi(t),s;if(r){var d=qi(this).constructor;s=ea(a,arguments,d)}else s=a.apply(this,arguments);return Pu(this,s)}}var tl=o(94473),Iu=o.n(tl),Fu=o(57514),rl=o.n(Fu),gc=function(r){var i=function(d,y){return{name:d,value:y}};if(ni()(r.prototype.set)||ni()(r.prototype.get)||ni()(r.prototype.getAll)||ni()(r.prototype.has))return r;var a=function(s){Va(y,s);var d=el(y);function y(A){var w;return ja(this,y),w=d.call(this,A),w.entryList=[],w}return qs(y,[{key:"append",value:function(w,E,R){return this.entryList.push(i(w,E)),qo(qi(y.prototype),"append",this).call(this,w,E,R)}},{key:"set",value:function(w,E){var R,W=i(w,E);this.entryList=gn()(R=this.entryList).call(R,function(
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t){return mc(t)||_i(t)||$s(t)||xo()}var nl=o(3649),Nn=o.n(nl),Ru=o(88996),il=Ru.Buffer,eo=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},to=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Nr(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):tr()(r=Dn(t)).call(r,function(d){var y,A;if(to(d)||eo(d)&&a==="unsafe")return d;var w=tr()(y=tr()(A=il.from(d).toJSON().data||[]).call(A,function(E){var R;return Nn()(R="0".concat(E.toString(16).toUpperCase())).call(R,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function ii(t){var r=t.value;return Array.isArray(r)?ki(t):sr(r)==="object"?Ha(t):xc(t)}function ki(t){var r=t.key,i=t.value,a=t.style,s=t.explode,d=t.escape,y=function(W){return Nr(W,{escape:d})};if(a==="simple")return tr()(i).call(i,function(R){return y(R)}).join(",");if(a==="label")return".".concat(tr()(i).call(i,function(R){return y(R)}).join("."));if(a==="matrix")return tr()(i).call(i,function(R){return y(R)}).reduce(function(R,W){var
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(t,r){return uc(t)||xu(t,r)||$s(t,r)||Na()}var bu=o(69798);function wu(t,r,i,a,s,d,y){try{var A=t[d](y),w=A.value}catch(E){i(E);return}A.done?r(w):bu.resolve(w).then(a,s)}function Ks(t){return function(){var r=this,i=arguments;return new bu(function(a,s){var d=t.apply(r,i);function y(w){wu(d,a,s,y,A,"next",w)}function A(w){wu(d,a,s,y,A,"throw",w)}y(void 0)})}}var Ko=o(63109),lr=o.n(Ko),fc=o(78580),Ba=o.n(fc),Yo=o(72119),Su=o.n(Yo),Au=o(66419),cc=o.n(Au),Ys=o(59340),Jo=o.n(Ys),dc=o(2991),tr=o.n(dc),Eu=o(86902),Zt=o.n(Eu),pc=o(77766),Ct=o.n(pc),hi=o(26295),Xo=o.n(hi),Js=o(20116),gn=o.n(Js),vi=o(31905),Zi=o(92495),Qo=o.n(Zi),hc=o(93320),Xs=o.n(hc),vc=o(78718),Ua=o.n(vc),Qs=o(23560),ni=o.n(Qs),Jn=o(88996);function ja(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Zs(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),$o(t,a.key,a)}}function qs(t,r,i){return r&&Zs(t.prototype,r),i&&Zs(t,i),t}var Cu=o(83863),Ou=o(79542),_s=o(24889);function qi(t){return qi=Ou?_s:function(i){return i.__proto__||_s(i)},qi(t)}function Zo(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=qi(t),t!==null););return t}function qo(t,r,i){return typeof Reflect!="undefined"&&Cu?qo=Cu:qo=function(s,d,y){var A=Zo(s,d);if(!!A){var w=Da(A,d);return w.get?w.get.call(y):w.value}},qo(t,r,i||t)}var Tu=o(189);function _o(t,r){return _o=Ou||function(a,s){return a.__proto__=s,a},_o(t,r)}function Va(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Tu(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_o(t,r)}var ea=o(13535);function Wa(){if(typeof Reflect=="undefined"||!ea||ea.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ea(Boolean,[],function(){})),!0}catch(t){return!1}}function Xn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pu(t,r){return r&&(sr(r)==="object"||typeof r=="function")?r:Xn(t)}function el(t){var r=Wa();return function(){var a=qi(t),s;if(r){var d=qi(this).constructor;s=ea(a,arguments,d)}else s=a.apply(this,arguments);return Pu(this,s)}}var tl=o(94473),Iu=o.n(tl),Fu=o(57514),rl=o.n(Fu),gc=function(r){var i=function(d,y){return{name:d,value:y}};if(ni()(r.prototype.set)||ni()(r.prototype.get)||ni()(r.prototype.getAll)||ni()(r.prototype.has))return r;var a=function(s){Va(y,s);var d=el(y);function y(A){var w;return ja(this,y),w=d.call(this,A),w.entryList=[],w}return qs(y,[{key:"append",value:function(w,E,R){return this.entryList.push(i(w,E)),qo(qi(y.prototype),"append",this).call(this,w,E,R)}},{key:"set",value:function(w,E){var R,W=i(w,E);this.entryList=gn()(R=this.entryList).call(R,function(ae){return ae.name!==w}),this.entryList.push(W)}},{key:"get",value:function(w){var E,R=Iu()(E=this.entryList).call(E,function(W){return W.name===w});return R===void 0?null:R}},{key:"getAll",value:function(w){var E,R;return tr()(E=gn()(R=this.entryList).call(R,function(W){return W.name===w})).call(E,function(W){return W.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),y}(r);return a};const yc=gc(rl());function mc(t){if(Hs(t))return Gs(t)}function _i(t){if(typeof Xi!="undefined"&&Ws(t)!=null||t["@@iterator"]!=null)return zs(t)}function xo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t){return mc(t)||_i(t)||$s(t)||xo()}var nl=o(3649),Nn=o.n(nl),Ru=o(88996),il=Ru.Buffer,eo=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},to=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Nr(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):tr()(r=Dn(t)).call(r,function(d){var y,A;if(to(d)||eo(d)&&a==="unsafe")return d;var w=tr()(y=tr()(A=il.from(d).toJSON().data||[]).call(A,function(E){var R;return Nn()(R="0".concat(E.toString(16).toUpperCase())).call(R,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function ii(t){var r=t.value;return Array.isArray(r)?ki(t):sr(r)==="object"?Ha(t):xc(t)}function ki(t){var r=t.key,i=t.value,a=t.style,s=t.explode,d=t.escape,y=function(W){return Nr(W,{escape:d})};if(a==="simple")return tr()(i).call(i,function(R){return y(R)}).join(",");if(a==="label")return".".concat(tr()(i).call(i,function(R){return y(R)}).join("."));if(a==="matrix")return tr()(i).call(i,function(R){return y(R)}).reduce(function(R,W){var ae;if(!R||s){var re,oe;return Ct()(re=Ct()(oe="".concat(R||"",";")).call(oe,r,"=")).call(re,W)}return Ct()(ae="".concat(R,",")).call(ae,W)},"");if(a==="form"){var A=s?"&".concat(r,"="):",";return tr()(i).call(i,function(R){return y(R)}).join(A)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return tr()(i).call(i,function(R){return y(R)}).join(" ".concat(w))}if(a==="pipeDelimited"){var E=s?"".concat(r,"="):"";return tr()(i).call(i,function(R){return y(R)}).join("|".concat(E))}}function Ha(t){var r=t.key,i=t.value,a=t.style,s=t.explode,d=t.escape,y=function(E){return Nr(E,{escape:d})},A=Zt()(i);if(a==="simple")return A.reduce(function(w,E){var R,W,ae,re=y(i[E]),oe=s?"=":",",ye=w?"".concat(w,","):"";return Ct()(R=Ct()(W=Ct()(ae="".concat(ye)).call(ae,E)).call(W,oe)).call(R,re)},"");if(a==="label")return A.reduce(function(w,E){var R,W,ae,re=y(i[E]),oe=s?"=":".",ye=w?"".concat(w,"."):".";return Ct()(R=Ct()(W=Ct()(ae="".concat(ye)).call(ae,E)).call(W,oe)).call(R,re)},"");if(a==="matrix"&&s)return A.reduce(function(w,E){var R,W,ae=y(i[E]),re=w?"".concat(w,";"):";";return Ct()(R=Ct()(W="".concat(re)).call(W,E,"=")).call(R,ae)},"");if(a==="matrix")return A.reduce(function(w,E){var R,W,ae=y(i[E]),re=w?"".concat(w,","):";".concat(r,"=");return Ct()(R=Ct()(W="".concat(re)).call(W,E,",")).call(R,ae)},"");if(a==="form")return A.reduce(function(w,E){var R,W,ae,re,oe=y(i[E]),ye=w?Ct()(R="".concat(w)).call(R,s?"&":","):"",he=s?"=":",";return Ct()(W=Ct()(ae=Ct()(re="".concat(ye)).call(re,E)).call(ae,he)).call(W,oe)},"")}function xc(t){var r=t.key,i=t.value,a=t.style,s=t.escape,d=function(w){return Nr(w,{escape:s})};if(a==="simple")return d(i);if(a==="label")return".".concat(d(i));if(a==="matrix"){var y;return Ct()(y=";".concat(r,"=")).call(y,d(i))}if(a==="form")return d(i);if(a==="deepObject")return d(i,{},!0)}var za={serializeRes:ku,mergeInQueryOrForm:Lu};function Mi(t){return Ga.apply(this,arguments)}function Ga(){return Ga=Ks(lr().mark(function t(r){var i,a,s,d,y,A=arguments;return lr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},sr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},za.mergeInQueryOrForm(i),i.headers&&Zt()(i.headers).forEach(function(R){var W=i.headers[R];typeof W=="string"&&(i.headers[R]=W.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,za.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 d=new Error(s.statusText),d.status=s.status,d.statusCode=s.status,d.responseError=E.t2,d;case 39:if(s.ok){E.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Ga.apply(this,arguments)}var ol=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function $a(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Xs().safeLoad(t)}function ku(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,d={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:sl(t.headers)},y=d.headers["content-type"],A=s||ol(y),w=A?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(d.text=E,d.data=E,A)try{var R=$a(E,y);d.body=R,d.obj=R}catch(W){d.parseError=W}return d})}function al(t){var r=Ba()(t).call(t,", ");return r?t.split(", "):t}function sl(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ni()(Su()(t))?cc()(Su()(t).call(t)).reduce(function(r,i){var a=fn(i,2),s=a[0],d=a[1];return r[s]=al(d),r},{}):{}}function ta(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&sr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Jn.Buffer!="undefined"&&t instanceof Jn.Buffer?!0:t!==null&&sr(t)==="object"&&typeof t.pipe=="function"}function Ka(t,r){return Array.isArray(t)&&t.some(function(i){return ta(i,r)})}var bo={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ya={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ll(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,d=r.serializationOption,y=r.encoding,A=sr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(W){return W.toString()}:function(W){return encodeURIComponent(W)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(ta(A)||Ka(A))return[[E,A]];if(d)return ra(t,A,i,d);if(y){if([sr(y.style),sr(y.explode),sr(y.allowReserved)].some(function(W){return W!=="undefined"}))return ra(t,A,i,Ua()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var R=typeof A=="string"?A:Jo()(A);return[[E,w(R)]]}return[[E,w(A.toString())]]}return sr(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function(W){return sr(W)!=="object"})?[[E,tr()(A).call(A,w).join(",")]]:[[E,w(Jo()(A))]]}return sr(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?a==="multi"?[[E,tr()(A).call(A,w)]]:[[E,tr()(A).call(A,w).join(Ya[a||"csv"])]]:[[E,""]]}function ra(t,r,i,a){var s,d=a.style||"form",y=typeof a.explode=="undefined"?d==="form":a.explode,A=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(re){return Nr(re,{escape:A})},E=i?function(ae){return ae}:function(ae){return Nr(ae,{escape:A})};if(sr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),tr()(r).call(r,w)]]:[[E(t),tr()(r).call(r,w).join(bo[d])]];if(d==="deepObject"){var R;return tr()(R=Zt()(r)).call(R,function(ae){var re;return[E(Ct()(re="".concat(t,"[")).call(re,ae,"]")),w(r[ae])]})}if(y){var W;return tr()(W=Zt()(r)).call(W,function(ae){return[E(ae),w(r[ae])]})}return[[E(t),tr()(s=Zt()(r)).call(s,function(ae){var re;return[Ct()(re="".concat(E(ae),",")).call(re,w(r[ae]))]}).join(",")]]}function bc(t){return Xo()(t).reduce(function(r,i){var a=fn(i,2),s=a[0],d=a[1],y=Qi(ll(s,d,!0)),A;try{for(y.s();!(A=y.n()).done;){var w=fn(A.value,2),E=w[0],R=w[1];if(Array.isArray(R)){var W=Qi(R),ae;try{for(W.s();!(ae=W.n()).done;){var re=ae.value;r.append(E,re)}}catch(oe){W.e(oe)}finally{W.f()}}else r.append(E,R)}}catch(oe){y.e(oe)}finally{y.f()}return r},new yc)}function Mu(t){var r=Zt()(t).reduce(function(i,a){var s=Qi(ll(a,t[a])),d;try{for(s.s();!(d=s.n()).done;){var y=fn(d.value,2),A=y[0],w=y[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Qo().stringify(r,{encode:!1,indices:!1})||""}function Lu(){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,d=function(){for(var Se=arguments.length,me=new Array(Se),Te=0;Te<Se;Te++)me[Te]=arguments[Te];var He=gn()(me).call(me,function(Ue){return Ue}).join("&");return He?"?".concat(He):""};if(s){var y=Zt()(s).some(function(he){var Se=s[he].value;return ta(Se)||Ka(Se)}),A=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(A)?t.body=bc(t.form):t.body=Mu(s),delete t.form}if(a){var w=i.split("?"),E=fn(w,2),R=E[0],W=E[1],ae="";if(W){var re=Qo().parse(W),oe=Zt()(a);oe.forEach(function(he){return delete re[he]}),ae=Qo().stringify(re,{encode:!0})}var ye=d(ae,Mu(a));t.url=R+ye,delete t.query}return t}function ul(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}),za.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var fl=o(51942),cn=o.n(fl),na=o(93476),ro=o.n(na),Ja=o(92762),Du=o.n(Ja),ia=o(13311),Nu=o.n(ia),no=o(50308),wo=o.n(no);/*!
|
|
84
84
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
85
85
|
* (c) 2017 Joachim Wester
|
|
86
86
|
* MIT license
|
|
87
87
|
*/var io=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)s.hasOwnProperty(d)&&(a[d]=s[d])},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)}}(),oa=Object.prototype.hasOwnProperty;function gi(t,r){return oa.call(t,r)}function Xa(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)gi(t,a)&&i.push(a);return i}function En(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Qa(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 yi(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Li(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Di(t,r){var i;for(var a in t)if(gi(t,a)){if(t[a]===r)return yi(a)+"/";if(typeof t[a]=="object"&&(i=Di(t[a],r),i!=""))return yi(a)+"/"+i}return""}function Qd(t,r){if(t===r)return"/";var i=Di(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function cl(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(cl(t[r]))return!0}else if(typeof t=="object"){for(var a=Xa(t),s=a.length,r=0;r<s;r++)if(cl(t[a[r]]))return!0}}return!1}function Bu(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(`
|
|
88
|
-
`)}var Uu=function(t){io(r,t);function r(i,a,s,d,y){var A=this.constructor,w=t.call(this,Bu(i,{name:a,index:s,operation:d,tree:y}))||this;return w.name=a,w.index=s,w.operation=d,w.tree=y,Object.setPrototypeOf(w,A.prototype),w.message=Bu(i,{name:a,index:s,operation:d,tree:y}),w}return r}(Error),Mr=Uu,wc=En,$r={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=Br(i,this.path);a&&(a=En(a));var s=gr(i,{op:"remove",path:this.from}).removed;return gr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Br(i,this.from);return gr(i,{op:"add",path:this.path,value:En(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:aa(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Kr={add:function(t,r,i){return Qa(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:$r.move,copy:$r.copy,test:$r.test,_get:$r._get};function Br(t,r){if(r=="")return t;var i={op:"_get",path:r};return gr(t,i),i.value}function gr(t,r,i,a,s,d){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),d===void 0&&(d=0),i&&(typeof i=="function"?i(r,0,t,r.path):oo(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Br(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=aa(t,r.value),y.test===!1)throw new Mr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Mr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",d,r,t);return y}}else{a||(t=En(t));var A=r.path||"",w=A.split("/"),E=t,R=1,W=w.length,
|
|
88
|
+
`)}var Uu=function(t){io(r,t);function r(i,a,s,d,y){var A=this.constructor,w=t.call(this,Bu(i,{name:a,index:s,operation:d,tree:y}))||this;return w.name=a,w.index=s,w.operation=d,w.tree=y,Object.setPrototypeOf(w,A.prototype),w.message=Bu(i,{name:a,index:s,operation:d,tree:y}),w}return r}(Error),Mr=Uu,wc=En,$r={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=Br(i,this.path);a&&(a=En(a));var s=gr(i,{op:"remove",path:this.from}).removed;return gr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Br(i,this.from);return gr(i,{op:"add",path:this.path,value:En(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:aa(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Kr={add:function(t,r,i){return Qa(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:$r.move,copy:$r.copy,test:$r.test,_get:$r._get};function Br(t,r){if(r=="")return t;var i={op:"_get",path:r};return gr(t,i),i.value}function gr(t,r,i,a,s,d){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),d===void 0&&(d=0),i&&(typeof i=="function"?i(r,0,t,r.path):oo(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Br(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=aa(t,r.value),y.test===!1)throw new Mr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Mr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",d,r,t);return y}}else{a||(t=En(t));var A=r.path||"",w=A.split("/"),E=t,R=1,W=w.length,ae=void 0,re=void 0,oe=void 0;for(typeof i=="function"?oe=i:oe=oo;;){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&&ae===void 0&&(E[re]===void 0?ae=w.slice(0,R).join("/"):R==W-1&&(ae=r.path),ae!==void 0&&oe(r,0,t,ae)),R++,Array.isArray(E)){if(re==="-")re=E.length;else{if(i&&!Qa(re))throw new Mr("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",d,r,t);Qa(re)&&(re=~~re)}if(R>=W){if(i&&r.op==="add"&&re>E.length)throw new Mr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,r,t);var y=Kr[r.op].call(r,E,re,t);if(y.test===!1)throw new Mr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y}}else if(re&&re.indexOf("~")!=-1&&(re=Li(re)),R>=W){var y=$r[r.op].call(r,E,re,t);if(y.test===!1)throw new Mr("Test operation failed","TEST_OPERATION_FAILED",d,r,t);return y}E=E[re]}}}function Qn(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Mr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=En(t));for(var d=new Array(r.length),y=0,A=r.length;y<A;y++)d[y]=gr(t,r[y],i,!0,s,y),t=d[y].newDocument;return d.newDocument=t,d}function Sc(t,r,i){var a=gr(t,r);if(a.test===!1)throw new Mr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function oo(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Mr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if($r[t.op]){if(typeof t.path!="string")throw new Mr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Mr('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 Mr("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 Mr("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")&&cl(t.value))throw new Mr("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,d=a.split("/").length;if(s!==d+1&&s!==d)throw new Mr("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 Mr("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 y={op:"_get",path:t.from,value:void 0},A=ju([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Mr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Mr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function ju(t,r,i){try{if(!Array.isArray(t))throw new Mr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Qn(En(r),En(t),i||!0);else{i=i||oo;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Mr)return s;throw s}}function aa(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,d,y;if(i&&a){if(d=t.length,d!=r.length)return!1;for(s=d;s--!=0;)if(!aa(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var A=Object.keys(t);if(d=A.length,d!==Object.keys(r).length)return!1;for(s=d;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=d;s--!=0;)if(y=A[s],!aa(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
89
89
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
90
90
|
* (c) 2017 Joachim Wester
|
|
91
91
|
* MIT license
|
|
92
|
-
*/var dl=new WeakMap,pl=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),Vu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function hl(t){return dl.get(t)}function Ac(t,r){return t.observers.get(r)}function vl(t,r){t.observers.delete(r.callback)}function gl(t,r){r.unobserve()}function Wu(t,r){var i=[],a,s=hl(t);if(!s)s=new pl(t),dl.set(t,s);else{var d=Ac(s,r);a=d&&d.observer}if(a)return a;if(a={},s.value=En(t),r){a.callback=r,a.next=null;var y=function(){Za(a)},A=function(){clearTimeout(a.next),a.next=setTimeout(y)};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(){Za(a),clearTimeout(a.next),vl(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 Vu(r,a)),a}function Za(t,r){r===void 0&&(r=!1);var i=dl.get(t.object);sa(i.value,t.object,t.patches,"",r),t.patches.length&&Qn(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function sa(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var d=Xa(r),y=Xa(t),A=!1,w=!1,E=y.length-1;E>=0;E--){var R=y[E],W=t[R];if(gi(r,R)&&!(r[R]===void 0&&W!==void 0&&Array.isArray(r)===!1)){var ne=r[R];typeof W=="object"&&W!=null&&typeof ne=="object"&&ne!=null?sa(W,ne,i,a+"/"+yi(R),s):W!==ne&&(A=!0,s&&i.push({op:"test",path:a+"/"+yi(R),value:En(W)}),i.push({op:"replace",path:a+"/"+yi(R),value:En(ne)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+yi(R),value:En(W)}),i.push({op:"remove",path:a+"/"+yi(R)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),A=!0)}if(!(!w&&d.length==y.length))for(var E=0;E<d.length;E++){var R=d[E];!gi(t,R)&&r[R]!==void 0&&i.push({op:"add",path:a+"/"+yi(R),value:En(r[R])})}}}function Hu(t,r,i){i===void 0&&(i=!1);var a=[];return sa(t,r,a,"",i),a}const qa=Object.assign({},c,v,{JsonPatchError:Uu,deepClone:En,escapePathComponent:yi,unescapePathComponent:Li});var Ec=o(31312),_a=o.n(Ec),mi=o(50361),zu=o.n(mi);const or={add:rr,replace:Rn,remove:Ni,merge:Bi,mergeDeep:$u,context:yl,getIn:Ui,applyPatch:Gu,parentPathMatch:ml,flatten:la,fullyNormalizeArray:Yu,normalizeArray:xl,isPromise:Ju,forEachNew:Ku,forEachNewPrimitive:Cc,isJsonPatch:Zu,isContextPatch:Tc,isPatch:rs,isMutation:fa,isAdditiveMutation:ca,isGenerator:Oc,isFunction:Xu,isObject:oi,isError:Qu};function Gu(t,r,i){if(i=i||{},r=hr(hr({},r),{},{path:r.path&&Cn(r.path)}),r.op==="merge"){var a=ns(t,r.path);cn()(a,r.value),Qn(t,[Rn(r.path,a)])}else if(r.op==="mergeDeep"){var s=ns(t,r.path);for(var d in r.value){var y=r.value[d],A=Array.isArray(y);if(A){var w=s[d]||[];s[d]=Ct()(w).call(w,y)}else if(oi(y)&&!A){var E=hr({},s[d]);for(var R in y)if(Object.prototype.hasOwnProperty.call(E,R)){E=_a()(zu()(E),y);break}else cn()(E,js({},R,y[R]));s[d]=E}else s[d]=y}}else if(r.op==="add"&&r.path===""&&oi(r.value)){var W=Zt()(r.value).reduce(function(ve,Ae){return ve.push({op:"add",path:"/".concat(Cn(Ae)),value:r.value[Ae]}),ve},[]);Qn(t,W)}else if(r.op==="replace"&&r.path===""){var ne=r,te=ne.value;i.allowMetaPatches&&r.meta&&ca(r)&&(Array.isArray(r.value)||oi(r.value))&&(te=hr(hr({},te),r.meta)),t=te}else if(Qn(t,[r]),i.allowMetaPatches&&r.meta&&ca(r)&&(Array.isArray(r.value)||oi(r.value))){var le=ns(t,r.path),ye=hr(hr({},le),r.meta);Qn(t,[Rn(r.path,ye)])}return t}function Cn(t){return Array.isArray(t)?t.length<1?"":"/".concat(tr()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function rr(t,r){return{op:"add",path:t,value:r}}function Rn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ni(t){return{op:"remove",path:t}}function Bi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function $u(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function yl(t,r){return{type:"context",path:t,value:r}}function Ku(t,r){try{return es(t,ts,r)}catch(i){return i}}function Cc(t,r){try{return es(t,ao,r)}catch(i){return i}}function es(t,r,i){var a,s=tr()(a=gn()(t).call(t,ca)).call(a,function(A){return r(A.value,i,A.path)})||[],d=la(s),y=ua(d);return y}function ao(t,r,i){if(i=i||[],Array.isArray(t))return tr()(t).call(t,function(s,d){return ao(s,r,Ct()(i).call(i,d))});if(oi(t)){var a;return tr()(a=Zt()(t)).call(a,function(s){return ao(t[s],r,Ct()(i).call(i,s))})}return r(t,i[i.length-1],i)}function ts(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Ct()(a).call(a,s))}if(Array.isArray(t)){var d=tr()(t).call(t,function(w,E){return ts(w,r,Ct()(i).call(i,E))});d&&(a=Ct()(a).call(a,d))}else if(oi(t)){var y,A=tr()(y=Zt()(t)).call(y,function(w){return ts(t[w],r,Ct()(i).call(i,w))});A&&(a=Ct()(a).call(a,A))}return a=la(a),a}function ml(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 Ui(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Yu(t){return ua(la(xl(t)))}function xl(t){return Array.isArray(t)?t:[t]}function la(t){var r;return Ct()(r=[]).apply(r,Dn(tr()(t).call(t,function(i){return Array.isArray(i)?la(i):i})))}function ua(t){return gn()(t).call(t,function(r){return typeof r!="undefined"})}function oi(t){return t&&sr(t)==="object"}function Ju(t){return oi(t)&&Xu(t.then)}function Xu(t){return t&&typeof t=="function"}function Qu(t){return t instanceof Error}function Zu(t){if(rs(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Oc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function fa(t){return Zu(t)||rs(t)&&t.type==="mutation"}function ca(t){return fa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tc(t){return rs(t)&&t.type==="context"}function rs(t){return t&&sr(t)==="object"}function ns(t,r){try{return Br(t,r)}catch(i){return console.error(i),{}}}var So=o(52424),bl=o.n(So),is=o(54098),qu=o(9779),os=o.n(qu);function wl(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),d=0;d<a;d++)s[d]=arguments[d];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Pc=o(13692),_u=o.n(Pc),nn=o(47037),as=o.n(nn),ef=["properties"],tf=["properties"],rf=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ao=["schema/example","items/example"];function da(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return ef.indexOf(r)>-1&&tf.indexOf(i)===-1||rf.indexOf(a)>-1||Ao.some(function(s){return a.indexOf(s)>-1})}function nf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,d=s===void 0?function(E){var R;return a.getContext(Ct()(R=[]).call(R,Dn(r),Dn(E))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,w=[];return _u()(t).forEach(function(){if(Ba()(A).call(A,this.key)&&as()(this.node)){var R=this.path,W=Ct()(r).call(r,this.path),ne=ss(this.node,d(R));w.push(a.replace(W,ne))}}),w}function ss(t,r){var i,a=t.split("#"),s=fn(a,2),d=s[0],y=s[1],A=Ri.resolve(d||"",r||"");return y?Ct()(i="".concat(A,"#")).call(i,y):A}var Sl="application/json, application/yaml",Eo=new RegExp("^([a-z]+://|//)","i"),so=wl("JSONRefError",function(r,i,a){this.originalError=a,cn()(this,i||{})}),Bn={},Al=new(bl()),pa=[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"}],Ic=function(r){return pa.some(function(i){return i(r)})},Co={key:"$ref",plugin:function(r,i,a,s){var d=s.getInstance(),y=Nn()(a).call(a,0,-1);if(!(da(y)||Ic(y))){var A=s.getContext(a),w=A.baseDoc;if(typeof r!="string")return new so("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Oo(r),R=E[0],W=E[1]||"",ne;try{ne=w||R?Cl(R,w):null}catch(me){return lo(me,{pointer:W,$ref:r,basePath:ne,fullPath:a})}var te,le;if(kc(W,ne,y,s)&&!d.useCircularStructures){var ye=ss(r,ne);return r===ye?null:or.replace(a,ye)}if(ne==null?(le=ai(W),te=s.get(le),typeof te=="undefined"&&(te=new so("Could not resolve reference: ".concat(r),{pointer:W,$ref:r,baseDoc:w,fullPath:a}))):(te=To(ne,W),te.__value!=null?te=te.__value:te=te.catch(function(me){throw lo(me,{pointer:W,$ref:r,baseDoc:w,fullPath:a})})),te instanceof Error)return[or.remove(a),te];var ve=ss(r,ne),Ae=or.replace(y,te,{$$ref:ve});if(ne&&ne!==w)return[Ae,or.context(y,{baseDoc:ne})];try{if(!Mc(s.state,Ae)||d.useCircularStructures)return Ae}catch(me){return null}}}},El=cn()(Co,{docCache:Bn,absoluteify:Cl,clearCache:ha,JSONRefError:so,wrapError:lo,getDoc:Ol,split:Oo,extractFromDoc:To,fetchJSON:Fc,extract:ls,jsonPointerToArray:ai,unescapeJsonPointerToken:uo});const of=El;function Cl(t,r){if(!Eo.test(t)){if(!r){var i;throw new so(Ct()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ri.resolve(r,t)}return t}function lo(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Ct()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new so("Could not resolve reference: ".concat(i),r,t)}function Oo(t){return(t+"").split("#")}function To(t,r){var i=Bn[t];if(i&&!or.isPromise(i))try{var a=ls(r,i);return cn()(ro().resolve(a),{__value:a})}catch(s){return ro().reject(s)}return Ol(t).then(function(s){return ls(r,s)})}function ha(t){typeof t!="undefined"?delete Bn[t]:Zt()(Bn).forEach(function(r){delete Bn[r]})}function Ol(t){var r=Bn[t];return r?or.isPromise(r)?r:ro().resolve(r):(Bn[t]=El.fetchJSON(t).then(function(i){return Bn[t]=i,i}),Bn[t])}function Fc(t){return(0,is.fetch)(t,{headers:{Accept:Sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Xs().safeLoad(r)})}function ls(t,r){var i=ai(t);if(i.length<1)return r;var a=or.getIn(r,i);if(typeof a=="undefined")throw new so("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function ai(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(sr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:tr()(r=t.split("/")).call(r,uo)}function uo(t){return typeof t!="string"?t:os().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Po(t){return os().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Rc(t){return t.length===0?"":"/".concat(tr()(t).call(t,Po).join("/"))}var af=function(r){return!r||r==="/"||r==="#"};function Tl(t,r){if(af(r))return!0;var i=t.charAt(r.length),a=Nn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function kc(t,r,i,a){var s,d,y=Al.get(a);y||(y={},Al.set(a,y));var A=Rc(i),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),R=a.contextTree.get([]).baseDoc;if(r==R&&Tl(E,t))return!0;var W="",ne=i.some(function(te){var le;return W=Ct()(le="".concat(W,"/")).call(le,Po(te)),y[W]&&y[W].some(function(ye){return Tl(ye,w)||Tl(w,ye)})});if(ne)return!0;y[E]=Ct()(d=y[E]||[]).call(d,w)}function Mc(t,r){var i=[t];return r.path.reduce(function(s,d){return i.push(s[d]),s[d]},t),a(r.value);function a(s){return or.isObject(s)&&(i.indexOf(s)>=0||Zt()(s).some(function(d){return a(s[d])}))}}var yn=o(41609),sf=o.n(yn);const Lc={key:"allOf",plugin:function(r,i,a,s,d){if(!(d.meta&&d.meta.$$ref)){var y=Nn()(a).call(a,0,-1);if(!da(y)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=a,A}var w=!1,E=d.value;if(y.forEach(function(ne){!E||(E=E[ne])}),E=hr({},E),!sf()(E)){delete E.allOf;var R=[];if(R.push(s.replace(y,{})),r.forEach(function(ne,te){if(!s.isObject(ne)){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(y,ne));var ye=Nn()(a).call(a,0,-1),ve=nf(ne,ye,{getBaseUrlForNodePath:function(me){var Te;return s.getContext(Ct()(Te=[]).call(Te,Dn(a),[te],Dn(me))).baseDoc},specmap:s});R.push.apply(R,Dn(ve))}),R.push(s.mergeDeep(y,E)),!E.$$ref){var W;R.push(s.remove(Ct()(W=[]).call(W,y,"$$ref")))}return R}}}}},Dc={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var d=cn()([],r),y=Nn()(a).call(a,0,-1),A=hr({},or.getIn(s.spec,y));return r.forEach(function(w,E){try{d[E].default=s.parameterMacro(A,w)}catch(W){var R=new Error(W);return R.fullPath=a,R}}),or.replace(a,d)}return or.replace(a,r)}},Nc={key:"properties",plugin:function(r,i,a,s){var d=hr({},r);for(var y in r)try{d[y].default=s.modelPropertyMacro(d[y])}catch(E){var A=new Error(E);return A.fullPath=a,A}var w=or.replace(a,d);return w}};var lf=function(){function t(r){ja(this,t),this.root=us(r||{})}return qs(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){va(this.root,a,null);return}var d=i[i.length-1],y=s.children;if(y[d]){va(y[d],a,s);return}y[d]=us(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,d,y=0;y<i.length&&(d=i[y],s=a.children,!!s[d]);y+=1)a=s[d];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Nn()(i).call(i,0,-1).reduce(function(s,d){if(!s)return s;var y=s.children;return!y[d]&&a&&(y[d]=us(null,s)),y[d]},this.root)}}]),t}();function us(t,r){return va({children:{}},t,r)}function va(t,r,i){return t.value=r||{},t.protoValue=i?hr(hr({},i.protoValue),t.value):t.value,Zt()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=va(s,s.value,t)}),t}var uf=100,Bc=function(){function t(r){var i=this,a,s;ja(this,t),cn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:cn()(Object.create(this),or,{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=gn()(a=tr()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,or.isFunction),this.patches.push(or.add([],this.spec)),this.patches.push(or.context([],this.context)),this.updatePatches(this.patches)}return qs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,d=new Array(s>1?s-1:0),y=1;y<s;y++)d[y-1]=arguments[y];(a=console).log.apply(a,d)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,d=arguments.length,y=new Array(d>1?d-1:0),A=1;A<d;A++)y[A-1]=arguments[A];(a=console).log.apply(a,Ct()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,d=null,y;return i[this.pluginProp]?(d=i,y=i[this.pluginProp]):or.isFunction(i)?y=i:or.isObject(i)&&(y=A(i)),cn()(y.bind(d),{pluginName:i.name||a,isGenerator:or.isGenerator(y)});function A(w){var E=function(W,ne){return Array.isArray(W)?W.every(function(te,le){return te===ne[le]}):!0};return lr().mark(function R(W,ne){var te,le,ye,ve,Ae,me;return lr().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:me=function(ze,Ne,Be){var We,Ye,et,it,at,Pt,Ht,ur,Dr,Ir,rn,Cr,Hr;return lr().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(or.isObject(ze)){Jt.next=6;break}if(w.key!==Ne[Ne.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin(ze,w.key,Ne,ne);case 4:Jt.next=30;break;case 6:We=Ne.length-1,Ye=Ne[We],et=Ne.indexOf("properties"),it=Ye==="properties"&&We===et,at=ne.allowMetaPatches&&le[ze.$$ref],Pt=0,Ht=Zt()(ze);case 12:if(!(Pt<Ht.length)){Jt.next=30;break}if(ur=Ht[Pt],Dr=ze[ur],Ir=Ct()(Ne).call(Ne,ur),rn=or.isObject(Dr),Cr=ze.$$ref,at){Jt.next=22;break}if(!rn){Jt.next=22;break}return ne.allowMetaPatches&&Cr&&(le[Cr]=!0),Jt.delegateYield(me(Dr,Ir,Be),"t0",22);case 22:if(!(!it&&ur===w.key)){Jt.next=27;break}if(Hr=E(s,Ne),!(!s||Hr)){Jt.next=27;break}return Jt.next=27,w.plugin(Dr,ur,Ir,ne,Be);case 27:Pt++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},te)},te=lr().mark(me),le={},ye=Qi(gn()(W).call(W,or.isAdditiveMutation)),He.prev=4,ye.s();case 6:if((ve=ye.n()).done){He.next=11;break}return Ae=ve.value,He.delegateYield(me(Ae.value,Ae.path,Ae),"t0",9);case 9:He.next=6;break;case 11:He.next=16;break;case 13:He.prev=13,He.t1=He.catch(4),ye.e(He.t1);case 16:return He.prev=16,ye.f(),He.finish(16);case 19:case"end":return He.stop()}},R,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Nu()(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 ro().race(tr()(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;or.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!or.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),or.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(or.isContextPatch(s)){a.setContext(s.path,s.value);return}if(or.isMutation(s)){a.updateMutations(s);return}}catch(d){console.error(d),a.errors.push(d)}})}},{key:"updateMutations",value:function(i){sr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=hr({},i.value));var a=or.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}Du()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var d=hr(hr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(d)}).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),Nn()(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 or.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 d=this.nextPromisedPatch();if(d)return d.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),ro().resolve(y)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>uf){var A;return ro().resolve({spec:a.state,errors:Ct()(A=a.errors).call(A,new Error("We've reached a hard limit of ".concat(uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=tr()(w=this.promisedPatches).call(w,function(ne){return ne.value});return ro().all(tr()(E).call(E,function(ne){return ne.then(wo(),wo())})).then(function(){return i.dispatch()})}return R();function R(){a.currentPlugin=s;var ne=a.getCurrentMutations(),te=a.mutations.length-1;try{if(s.isGenerator){var le=Qi(s(ne,a.getLib())),ye;try{for(le.s();!(ye=le.n()).done;){var ve=ye.value;W(ve)}}catch(me){le.e(me)}finally{le.f()}}else{var Ae=s(ne,a.getLib());W(Ae)}}catch(me){console.error(me),W([cn()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:te})}return a.dispatch()}function W(ne){ne&&(ne=or.fullyNormalizeArray(ne),a.updatePatches(ne,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return gn()(i).call(i,a)}}]),t}();function Uc(t){return new Bc(t).dispatch()}var On={refs:of,allOf:Lc,parameters:Dc,properties:Nc},ga=o(13218),ya=o.n(ga),Io=function(r){return String.prototype.toLowerCase.call(r)},si=function(r){return r.replace(/[^\w]/gi,"_")};function ff(t){var r=t.openapi;return r?Ji()(r,"3"):!1}function Zd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function xi(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||sr(t)!=="object")return null;var d=(t.operationId||"").replace(/\s/g,"");return d.length?si(t.operationId):cf(r,i,{v2OperationIdCompatibilityMode:s})}function cf(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var d,y,A=Ct()(d="".concat(r.toLowerCase(),"_")).call(d,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Ct()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(i="".concat(Io(r))).call(i,si(t))}function Pl(t,r){var i;return Ct()(i="".concat(Io(r),"-")).call(i,t)}function df(t,r){return!t||!t.paths?null:fs(t,function(i){var a=i.pathName,s=i.method,d=i.operation;if(!d||sr(d)!=="object")return!1;var y=d.operationId,A=xi(d,a,s),w=Pl(a,s);return[A,w,y].some(function(E){return E&&E===r})})}function fs(t,r){return fo(t,r,!0)||null}function fo(t,r,i){if(!t||sr(t)!=="object"||!t.paths||sr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var d in a[s])if(d.toUpperCase()!=="PARAMETERS"){var y=a[s][d];if(!(!y||sr(y)!=="object")){var A={spec:t,pathName:s,method:d.toUpperCase(),operation:y},w=r(A);if(i&&w)return A}}}function cs(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var d=i[s];if(!!ya()(d)){var y=d.parameters,A=function(W){var ne=d[W];if(!ya()(ne))return"continue";var te=xi(ne,s,W);if(te){a[te]?a[te].push(ne):a[te]=[ne];var le=a[te];if(le.length>1)le.forEach(function(Ye,et){var it;Ye.__originalOperationId=Ye.__originalOperationId||Ye.operationId,Ye.operationId=Ct()(it="".concat(te)).call(it,et+1)});else if(typeof ne.operationId!="undefined"){var ye=le[0];ye.__originalOperationId=ye.__originalOperationId||ne.operationId,ye.operationId=te}}if(W!=="parameters"){var ve=[],Ae={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Ae[me]=r[me],ve.push(Ae));if(y&&(Ae.parameters=y,ve.push(Ae)),ve.length){var Te=Qi(ve),He;try{for(Te.s();!(He=Te.n()).done;){var Ue=He.value;for(var ze in Ue)if(!ne[ze])ne[ze]=Ue[ze];else if(ze==="parameters"){var Ne=Qi(Ue[ze]),Be;try{var We=function(){var et=Be.value,it=ne[ze].some(function(at){return at.name&&at.name===et.name||at.$ref&&at.$ref===et.$ref||at.$$ref&&at.$$ref===et.$$ref||at===et});it||ne[ze].push(et)};for(Ne.s();!(Be=Ne.n()).done;)We()}catch(Ye){Ne.e(Ye)}finally{Ne.f()}}}}catch(Ye){Te.e(Ye)}finally{Te.f()}}}};for(var w in d)var E=A(w)}}return r.$$normalized=!0,t}function ds(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(d){return t({url:d,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Sl},credentials:s}).then(function(y){return y.body})}}function Il(){On.refs.clearCache()}function pf(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,d=t.allowMetaPatches,y=d===void 0?!0:d,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,R=t.requestInterceptor,W=t.responseInterceptor,ne=t.skipNormalization,te=t.useCircularStructures,le=t.http,ye=t.baseDoc;if(ye=ye||a,le=r||le||Mi,!i)return ds(le,{requestInterceptor:R,responseInterceptor:W})(ye).then(ve);return ve(i);function ve(Ae){ye&&(On.refs.docCache[ye]=Ae),On.refs.fetchJSON=ds(le,{requestInterceptor:R,responseInterceptor:W});var me=[On.refs];return typeof E=="function"&&me.push(On.parameters),typeof w=="function"&&me.push(On.properties),s!=="strict"&&me.push(On.allOf),Uc({spec:Ae,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:te}).then(ne?function(){var Te=Ks(lr().mark(function He(Ue){return lr().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Ue);case 1:case"end":return Ne.stop()}},He)}));return function(He){return Te.apply(this,arguments)}}():cs)}}var ma=o(27361),Fo=o.n(ma);function jc(t,r){return ps.apply(this,arguments)}function ps(){return ps=Ks(lr().mark(function t(r,i){var a,s,d,y,A,w,E,R,W,ne,te,le,ye=arguments;return lr().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return a=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=a.returnEntireTree,d=a.baseDoc,y=a.requestInterceptor,A=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,R=a.useCircularStructures,W={pathDiscriminator:i,baseDoc:d,requestInterceptor:y,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:R},ne=cs({spec:r}),te=ne.spec,Ae.next=6,pf(hr(hr({},W),{},{spec:te,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Ae.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=Fo()(le.spec,i)||null),Ae.abrupt("return",le);case 9:case"end":return Ae.stop()}},t)})),ps.apply(this,arguments)}var hs=function(){return null},Vc=function(r){return Array.isArray(r)?r:[r]},vs={mapTagOperations:Hc,makeExecute:xa};function xa(){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(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(hr(hr({spec:t.spec},Ua()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:d,operationId:s},y))}}}function Wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t),i=vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var d in i[s])a[s].operations[d]={execute:i[s][d]}}return{apis:a}}function hf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t);return{apis:vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Hc(t){var r=t.spec,i=t.cb,a=i===void 0?hs:i,s=t.defaultTag,d=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},w={};return fo(r,function(E){var R=E.pathName,W=E.method,ne=E.operation,te=ne.tags?Vc(ne.tags):[d];te.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ye=w[le],ve=xi(ne,R,W,{v2OperationIdCompatibilityMode:y}),Ae=a({spec:r,pathName:R,method:W,operation:ne,operationId:ve});if(A[ve]){var me;A[ve]+=1,ye[Ct()(me="".concat(ve)).call(me,A[ve])]=Ae}else if(typeof ye[ve]!="undefined"){var Te,He,Ue=A[ve]||1;A[ve]=Ue+1,ye[Ct()(Te="".concat(ve)).call(Te,A[ve])]=Ae;var ze=ye[ve];delete ye[ve],ye[Ct()(He="".concat(ve)).call(He,Ue)]=ze}else ye[ve]=Ae}})}),w}var gs=o(95683);function vf(t,r){if(t==null)return{};var i={},a=Us(t),s,d;for(d=0;d<a.length;d++)s=a[d],!(gs(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function zc(t,r){if(t==null)return{};var i=vf(t,r),a,s;if(Ki){var d=Ki(t);for(s=0;s<d.length;s++)a=d[s],!(gs(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var gf=o(68630),Fl=o.n(gf),Gc=o(1469),Rl=o.n(Gc),ba=o(76489);const wa={body:$c,header:Kc,query:Jc,path:Yc,formData:yf};function $c(t){var r=t.req,i=t.value;r.body=i}function yf(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 Kc(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Yc(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Jc(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 ys(t,r){return Ba()(r).call(r,"application/json")?typeof t=="string"?t:Jo()(t):t.toString()}function mf(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,d=a.style,y=a.explode,A=a.content;if(A){var w=Zt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Nr(ys(i,w),{escape:!0}));return}var E=ii({key:a.name,value:i,style:d||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Xc(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=Zt()(a.content)[0];r.query[a.name]=ys(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:Ua()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var d=a.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}}var Qc=["accept","authorization","content-type"];function xf(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Qc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Zt()(i.content)[0];r.headers[i.name]=ys(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=ii({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function kl(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=sr(a);if(i.content){var d,y=Zt()(i.content)[0];r.headers.Cookie=Ct()(d="".concat(i.name,"=")).call(d,ys(a,y));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+ii({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var bf=o(50706),wf=o.n(bf);function Sf(t,r){var i=t.operation,a=t.requestBody,s=t.securities,d=t.spec,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Ro({request:r,securities:s,operation:i,spec:d});var w=i.requestBody||{},E=Zt()(w.content||{}),R=A&&E.indexOf(A)>-1;if(a||y){if(A&&R)r.headers["Content-Type"]=A;else if(!A){var W=E[0];W&&(r.headers["Content-Type"]=W,A=W)}}else A&&R&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var ne,te=gn()(ne=Xo()(i.responses)).call(ne,function(ye){var ve=fn(ye,2),Ae=ve[0],me=ve[1],Te=parseInt(Ae,10);return Te>=200&&Te<300&&Fl()(me.content)}).reduce(function(ye,ve){var Ae=fn(ve,2),me=Ae[1];return Ct()(ye).call(ye,Zt()(me.content))},[]);te.length>0&&(r.headers.accept=te.join(", "))}if(a)if(A){if(E.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(sr(a)==="object"){var le=(w.content[A]||{}).encoding||{};r.form={},Zt()(a).forEach(function(ye){r.form[ye]={value:a[ye],encoding:le[ye]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Ro(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),w=a.authorized,E=w===void 0?{}:w,R=d.security||y.security||[],W=E&&!!Zt()(E).length,ne=Fo()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Zt()(a).length||!W||!R||Array.isArray(d.security)&&!d.security.length?r:(R.forEach(function(te){Zt()(te).forEach(function(le){var ye=E[le],ve=ne[le];if(!!ye){var Ae=ye.value||ye,me=ve.type;if(ye){if(me==="apiKey")ve.in==="query"&&(A.query[ve.name]=Ae),ve.in==="header"&&(A.headers[ve.name]=Ae),ve.in==="cookie"&&(A.cookies[ve.name]=Ae);else if(me==="http"){if(/^basic$/i.test(ve.scheme)){var Te,He=Ae.username||"",Ue=Ae.password||"",ze=wf()(Ct()(Te="".concat(He,":")).call(Te,Ue));A.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(ve.scheme)&&(A.headers.Authorization="Bearer ".concat(Ae))}else if(me==="oauth2"||me==="openIdConnect"){var Ne,Be=ye.token||{},We=ve["x-tokenName"]||"access_token",Ye=Be[We],et=Be.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),A.headers.Authorization=Ct()(Ne="".concat(et," ")).call(Ne,Ye)}}}})}),A)}function Af(t,r){var i=t.spec,a=t.operation,s=t.securities,d=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=ms({request:r,securities:s,operation:a,spec:i}),r.body||r.form||A){var w,E;if(d)r.headers["Content-Type"]=d;else if(Array.isArray(a.consumes)){var R=fn(a.consumes,1);r.headers["Content-Type"]=R[0]}else if(Array.isArray(i.consumes)){var W=fn(i.consumes,1);r.headers["Content-Type"]=W[0]}else a.parameters&&gn()(w=a.parameters).call(w,function(ve){return ve.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&gn()(E=a.parameters).call(E,function(ve){return ve.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(d){var ne,te,le=a.parameters&&gn()(ne=a.parameters).call(ne,function(ve){return ve.in==="body"}).length>0,ye=a.parameters&&gn()(te=a.parameters).call(te,function(ve){return ve.in==="formData"}).length>0;(le||ye)&&(r.headers["Content-Type"]=d)}return!y&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function ms(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),w=a.authorized,E=w===void 0?{}:w,R=a.specSecurity,W=R===void 0?[]:R,ne=d.security||W,te=E&&!!Zt()(E).length,le=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Zt()(a).length||!te||!ne||Array.isArray(d.security)&&!d.security.length?r:(ne.forEach(function(ye){Zt()(ye).forEach(function(ve){var Ae=E[ve];if(!!Ae){var me=Ae.token,Te=Ae.value||Ae,He=le[ve],Ue=He.type,ze=He["x-tokenName"]||"access_token",Ne=me&&me[ze],Be=me&&me.token_type;if(Ae){if(Ue==="apiKey"){var We=He.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][He.name]=Te}else if(Ue==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Ye,et=Te.username||"",it=Te.password||"";Te.base64=wf()(Ct()(Ye="".concat(et,":")).call(Ye,it)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Ue==="oauth2"&&Ne){var at;Be=!Be||Be.toLowerCase()==="bearer"?"Bearer":Be,A.headers.authorization=Ct()(at="".concat(Be," ")).call(at,Ne)}}}})}),A)}var Ef=function(r){return Array.isArray(r)?r:[]},Zc=wl("OperationNotFoundError",function(r,i,a){this.originalError=a,cn()(this,i||{})}),qc=function(r,i){return gn()(i).call(i,function(a){return a.name===r})},yr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return Zt()(i).forEach(function(s){Zt()(i[s]).forEach(function(d){a.push(i[s][d])})}),a},_c={buildRequest:ko};function Ml(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,d=t.pathName,y=t.method,A=t.parameters,w=t.securities,E=zc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),R=r||i||Mi;d&&y&&!s&&(s=Pl(d,y));var W=_c.buildRequest(hr({spec:a,operationId:s,parameters:A,securities:w,http:R},E));return W.body&&(Fl()(W.body)||Rl()(W.body))&&(W.body=Jo()(W.body)),R(W)}function ko(t){var r,i,a=t.spec,s=t.operationId,d=t.responseContentType,y=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,R=t.userFetch,W=t.server,ne=t.serverVariables,te=t.http,le=t.parameters,ye=t.parameterBuilders,ve=ff(a);ye||(ve?ye=x:ye=wa);var Ae=te&&te.withCredentials?"include":"same-origin",me={url:"",credentials:Ae,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),R&&(me.userFetch=R);var Te=df(a,s);if(!Te)throw new Zc("Operation ".concat(s," not found"));var He=Te.operation,Ue=He===void 0?{}:He,ze=Te.method,Ne=Te.pathName;if(me.url+=Sa({spec:a,scheme:y,contextUrl:E,server:W,serverVariables:ne,pathName:Ne,method:ze}),!s)return delete me.cookies,me;me.url+=Ne,me.method="".concat(ze).toUpperCase(),le=le||{};var Be=a.paths[Ne]||{};d&&(me.headers.accept=d);var We=yr(Ct()(r=Ct()(i=[]).call(i,Ef(Ue.parameters))).call(r,Ef(Be.parameters)));We.forEach(function(it){var at=ye[it.in],Pt;if(it.in==="body"&&it.schema&&it.schema.properties&&(Pt=le),Pt=it&&it.name&&le[it.name],typeof Pt=="undefined"){var Ht;Pt=it&&it.name&&le[Ct()(Ht="".concat(it.in,".")).call(Ht,it.name)]}else if(qc(it.name,We).length>1){var ur;console.warn(Ct()(ur="Parameter '".concat(it.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ur,it.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Pt!==null){if(typeof it.default!="undefined"&&typeof Pt=="undefined"&&(Pt=it.default),typeof Pt=="undefined"&&it.required&&!it.allowEmptyValue)throw new Error("Required parameter ".concat(it.name," is not provided"));if(ve&&it.schema&&it.schema.type==="object"&&typeof Pt=="string")try{Pt=JSON.parse(Pt)}catch(Dr){throw new Error("Could not parse object parameter value string as JSON")}at&&at({req:me,parameter:it,value:Pt,operation:Ue,spec:a})}});var Ye=hr(hr({},t),{},{operation:Ue});if(ve?me=Sf(Ye,me):me=Af(Ye,me),me.cookies&&Zt()(me.cookies).length){var et=Zt()(me.cookies).reduce(function(it,at){var Pt=me.cookies[at],Ht=it?"&":"",ur=ba.serialize(at,Pt);return it+Ht+ur},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,Lu(me),me}var kn=function(r){return r?r.replace(/\W/g,""):null};function Sa(t){var r=ff(t.spec);return r?Ll(t):Tf(t)}function Ll(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,d=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,w=Fo()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Fo()(r,["paths",i,"servers"])||Fo()(r,["servers"]),E="",R=null;if(s&&w&&w.length){var W=tr()(w).call(w,function(le){return le.url});W.indexOf(s)>-1&&(E=s,R=w[W.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ne=fn(w,1);R=ne[0]}if(E.indexOf("{")>-1){var te=Of(E);te.forEach(function(le){if(R.variables&&R.variables[le]){var ye=R.variables[le],ve=A[le]||ye.default,Ae=new RegExp("{".concat(le,"}"),"g");E=E.replace(Ae,ve)}})}return Cf(E,d)}function Cf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ri.parse(Ri.resolve(r,t)):Ri.parse(t),a=Ri.parse(r),s=kn(i.protocol)||kn(a.protocol)||"",d=i.host||a.host,y=i.pathname||"",A;if(s&&d){var w;A=Ct()(w="".concat(s,"://")).call(w,d+y)}else A=y;return A[A.length-1]==="/"?Nn()(A).call(A,0,-1):A}function Of(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Tf(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,d=Ri.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||kn(d.protocol)||"http",w=r.host||d.host||"",E=r.basePath||"",R;if(A&&w){var W;R=Ct()(W="".concat(A,"://")).call(W,w+E)}else R=E;return R[R.length-1]==="/"?Nn()(R).call(R,0,-1):R}Ar.http=Mi,Ar.makeHttp=ul.bind(null,Ar.http),Ar.resolve=pf,Ar.resolveSubtree=jc,Ar.execute=Ml,Ar.serializeRes=ku,Ar.serializeHeaders=sl,Ar.clearCache=Il,Ar.makeApisTagOperation=hf,Ar.buildRequest=ko,Ar.helpers={opId:xi},Ar.getBaseUrl=Sa;function Ar(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 Ar))return new Ar(i);Yi()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||Yi()(r,Ar.makeApisTagOperation(r)),r});return a.client=this,a}Ar.prototype={http:Mi,execute:function(r){return this.applyDefaults(),Ar.execute(hr({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 Ar.resolve(hr({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})}},Ar.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Ji()(i,"http")){var a=Ri.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var ed=Ar.helpers;const td=Ar;var zt=o(25446),Vt=o(76671),ar=o(7930),Mo=o(51027),ji=o(78722),co=o(17673),Vi=o(64776),xs=Object.defineProperty,rd=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,nd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,Aa=(t,r,i)=>r in t?xs(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,e=(t,r)=>{for(var i in r||(r={}))nd.call(r,i)&&Aa(t,i,r[i]);if(Pf)for(var i of Pf(r))id.call(r,i)&&Aa(t,i,r[i]);return t},n=(t,r)=>rd(t,Or(r)),u=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const l="/oauth2-redirect.html";class f{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:d,redirectUri:y,successCallback:A,errorCallback:w}){const E=(0,Vi.p8)({date:new Date().toString()}),R=new URL(r),W=d==="/"?"":d,ne=`${window.location.origin}${W}${l}`;R.searchParams.set("client_id",i),R.searchParams.set("redirect_uri",y||ne),R.searchParams.set("response_type","token"),R.searchParams.set("state",E),Array.isArray(a)&&R.searchParams.set("scope",a.join(" "));for(const te in s)R.searchParams.set(te,s[te]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:E,successCallback:te=>{A(te),f.clearRedirectData("implicit")},errorCallback:te=>{w(te),f.clearRedirectData("implicit")}},window.open(R.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:d,codeChallenge:y,scopes:A,extraParams:w={},extraHeaders:E={},routingBasePath:R,redirectUri:W,successCallback:ne,errorCallback:te}){const le=new URL(r),ye=R==="/"?"":R,ve=`${window.location.origin}${ye}${l}`,Ae=(0,Vi.p8)({date:new Date().toString()});le.searchParams.set("client_id",a),le.searchParams.set("redirect_uri",W||ve),le.searchParams.set("response_type","code"),le.searchParams.set("state",Ae),Array.isArray(A)&&le.searchParams.set("scope",A.join(" ")),y&&(le.searchParams.set("code_challenge",y),le.searchParams.set("code_challenge_method","S256"));for(const me in w)le.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:A},state:Ae,successCallback:me=>u(this,[me],function*({auth_code:Te}){try{const He=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:co.stringify(e(n(e({client_id:a,client_secret:s},d&&{code_verifier:d}),{code:Te,grant_type:"authorization_code",redirect_uri:W||ve}),w))});yield F(He,ne,te)}catch(He){te(He)}f.clearRedirectData("authorizationCode")}),errorCallback:me=>{te(me),f.clearRedirectData("authorizationCode")}},window.open(le.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return u(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:d=[],extraParams:y={},extraHeaders:A={},successCallback:w,errorCallback:E}){try{const R=JSON.parse(JSON.stringify(e({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(d)&&d.length?d.join(" "):void 0},y))),W=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:co.stringify(R)});yield F(W,w,E)}catch(R){E(R)}})}}const m=new f;function F(t,r,i){return u(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 U(t){return u(this,null,function*(){return(0,Vi.rS)(yield(0,Vi.JQ)(t))})}var z=o(68929),Z;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(Z||(Z={}));var be;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(be||(be={}));var Ce=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const De=Object.values(be),ke=["application/octet-stream","application/pdf","application/gzip","application/zip"],$e=["image/","audio/","video/"];function tt(t){if($e.some(r=>t.startsWith(r)))return t}function st(t){return ke.includes(t)?!0:$e.some(r=>t.startsWith(r))}function pt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(st(i)?"binary":"");return r.type===Z.STRING&&De.includes(a)}function yt(t,r){if(!t||!t.type||t.type==="any")return st(r);const i=t.format||t.contentEncoding||"";return t.type===Z.STRING&&De.includes(i)}function dt(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const d=a.result.replace(/data:.*\/.*;base64,/g,"");r(d)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function bt({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(be.BASE64)}function It(t,r){return Ce(this,null,function*(){const i=Object.values(t);let a=i.length===1?i[0]:i;return r.type===Z.STRING&&bt(r)?a=yield dt(i[0]):r.type===Z.ARRAY&&r.items&&(bt(r.items)?a=yield Promise.all(i.map(d=>Ce(this,null,function*(){return yield dt(d)}))):a=i),a})}var _e=o(39713),Mt=o(23485),ir=o(8418),br=o(21096),qt=o(67294),Tn=Object.defineProperty,mn=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Tr=(t,r,i)=>r in t?Tn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vr=(t,r)=>{for(var i in r||(r={}))_r.call(r,i)&&Tr(t,i,r[i]);if(dn)for(var i of dn(r))Ur.call(r,i)&&Tr(t,i,r[i]);return t},pn=(t,r)=>mn(t,Lr(r));const po=Mt.iv`
|
|
92
|
+
*/var dl=new WeakMap,pl=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),Vu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function hl(t){return dl.get(t)}function Ac(t,r){return t.observers.get(r)}function vl(t,r){t.observers.delete(r.callback)}function gl(t,r){r.unobserve()}function Wu(t,r){var i=[],a,s=hl(t);if(!s)s=new pl(t),dl.set(t,s);else{var d=Ac(s,r);a=d&&d.observer}if(a)return a;if(a={},s.value=En(t),r){a.callback=r,a.next=null;var y=function(){Za(a)},A=function(){clearTimeout(a.next),a.next=setTimeout(y)};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(){Za(a),clearTimeout(a.next),vl(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 Vu(r,a)),a}function Za(t,r){r===void 0&&(r=!1);var i=dl.get(t.object);sa(i.value,t.object,t.patches,"",r),t.patches.length&&Qn(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function sa(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var d=Xa(r),y=Xa(t),A=!1,w=!1,E=y.length-1;E>=0;E--){var R=y[E],W=t[R];if(gi(r,R)&&!(r[R]===void 0&&W!==void 0&&Array.isArray(r)===!1)){var ae=r[R];typeof W=="object"&&W!=null&&typeof ae=="object"&&ae!=null?sa(W,ae,i,a+"/"+yi(R),s):W!==ae&&(A=!0,s&&i.push({op:"test",path:a+"/"+yi(R),value:En(W)}),i.push({op:"replace",path:a+"/"+yi(R),value:En(ae)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+yi(R),value:En(W)}),i.push({op:"remove",path:a+"/"+yi(R)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),A=!0)}if(!(!w&&d.length==y.length))for(var E=0;E<d.length;E++){var R=d[E];!gi(t,R)&&r[R]!==void 0&&i.push({op:"add",path:a+"/"+yi(R),value:En(r[R])})}}}function Hu(t,r,i){i===void 0&&(i=!1);var a=[];return sa(t,r,a,"",i),a}const qa=Object.assign({},c,v,{JsonPatchError:Uu,deepClone:En,escapePathComponent:yi,unescapePathComponent:Li});var Ec=o(31312),_a=o.n(Ec),mi=o(50361),zu=o.n(mi);const or={add:rr,replace:Rn,remove:Ni,merge:Bi,mergeDeep:$u,context:yl,getIn:Ui,applyPatch:Gu,parentPathMatch:ml,flatten:la,fullyNormalizeArray:Yu,normalizeArray:xl,isPromise:Ju,forEachNew:Ku,forEachNewPrimitive:Cc,isJsonPatch:Zu,isContextPatch:Tc,isPatch:rs,isMutation:fa,isAdditiveMutation:ca,isGenerator:Oc,isFunction:Xu,isObject:oi,isError:Qu};function Gu(t,r,i){if(i=i||{},r=hr(hr({},r),{},{path:r.path&&Cn(r.path)}),r.op==="merge"){var a=ns(t,r.path);cn()(a,r.value),Qn(t,[Rn(r.path,a)])}else if(r.op==="mergeDeep"){var s=ns(t,r.path);for(var d in r.value){var y=r.value[d],A=Array.isArray(y);if(A){var w=s[d]||[];s[d]=Ct()(w).call(w,y)}else if(oi(y)&&!A){var E=hr({},s[d]);for(var R in y)if(Object.prototype.hasOwnProperty.call(E,R)){E=_a()(zu()(E),y);break}else cn()(E,js({},R,y[R]));s[d]=E}else s[d]=y}}else if(r.op==="add"&&r.path===""&&oi(r.value)){var W=Zt()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(Cn(Se)),value:r.value[Se]}),he},[]);Qn(t,W)}else if(r.op==="replace"&&r.path===""){var ae=r,re=ae.value;i.allowMetaPatches&&r.meta&&ca(r)&&(Array.isArray(r.value)||oi(r.value))&&(re=hr(hr({},re),r.meta)),t=re}else if(Qn(t,[r]),i.allowMetaPatches&&r.meta&&ca(r)&&(Array.isArray(r.value)||oi(r.value))){var oe=ns(t,r.path),ye=hr(hr({},oe),r.meta);Qn(t,[Rn(r.path,ye)])}return t}function Cn(t){return Array.isArray(t)?t.length<1?"":"/".concat(tr()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function rr(t,r){return{op:"add",path:t,value:r}}function Rn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ni(t){return{op:"remove",path:t}}function Bi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function $u(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function yl(t,r){return{type:"context",path:t,value:r}}function Ku(t,r){try{return es(t,ts,r)}catch(i){return i}}function Cc(t,r){try{return es(t,ao,r)}catch(i){return i}}function es(t,r,i){var a,s=tr()(a=gn()(t).call(t,ca)).call(a,function(A){return r(A.value,i,A.path)})||[],d=la(s),y=ua(d);return y}function ao(t,r,i){if(i=i||[],Array.isArray(t))return tr()(t).call(t,function(s,d){return ao(s,r,Ct()(i).call(i,d))});if(oi(t)){var a;return tr()(a=Zt()(t)).call(a,function(s){return ao(t[s],r,Ct()(i).call(i,s))})}return r(t,i[i.length-1],i)}function ts(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Ct()(a).call(a,s))}if(Array.isArray(t)){var d=tr()(t).call(t,function(w,E){return ts(w,r,Ct()(i).call(i,E))});d&&(a=Ct()(a).call(a,d))}else if(oi(t)){var y,A=tr()(y=Zt()(t)).call(y,function(w){return ts(t[w],r,Ct()(i).call(i,w))});A&&(a=Ct()(a).call(a,A))}return a=la(a),a}function ml(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 Ui(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Yu(t){return ua(la(xl(t)))}function xl(t){return Array.isArray(t)?t:[t]}function la(t){var r;return Ct()(r=[]).apply(r,Dn(tr()(t).call(t,function(i){return Array.isArray(i)?la(i):i})))}function ua(t){return gn()(t).call(t,function(r){return typeof r!="undefined"})}function oi(t){return t&&sr(t)==="object"}function Ju(t){return oi(t)&&Xu(t.then)}function Xu(t){return t&&typeof t=="function"}function Qu(t){return t instanceof Error}function Zu(t){if(rs(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Oc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function fa(t){return Zu(t)||rs(t)&&t.type==="mutation"}function ca(t){return fa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Tc(t){return rs(t)&&t.type==="context"}function rs(t){return t&&sr(t)==="object"}function ns(t,r){try{return Br(t,r)}catch(i){return console.error(i),{}}}var So=o(52424),bl=o.n(So),is=o(54098),qu=o(9779),os=o.n(qu);function wl(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),d=0;d<a;d++)s[d]=arguments[d];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Pc=o(13692),_u=o.n(Pc),nn=o(47037),as=o.n(nn),ef=["properties"],tf=["properties"],rf=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ao=["schema/example","items/example"];function da(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return ef.indexOf(r)>-1&&tf.indexOf(i)===-1||rf.indexOf(a)>-1||Ao.some(function(s){return a.indexOf(s)>-1})}function nf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,d=s===void 0?function(E){var R;return a.getContext(Ct()(R=[]).call(R,Dn(r),Dn(E))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,w=[];return _u()(t).forEach(function(){if(Ba()(A).call(A,this.key)&&as()(this.node)){var R=this.path,W=Ct()(r).call(r,this.path),ae=ss(this.node,d(R));w.push(a.replace(W,ae))}}),w}function ss(t,r){var i,a=t.split("#"),s=fn(a,2),d=s[0],y=s[1],A=Ri.resolve(d||"",r||"");return y?Ct()(i="".concat(A,"#")).call(i,y):A}var Sl="application/json, application/yaml",Eo=new RegExp("^([a-z]+://|//)","i"),so=wl("JSONRefError",function(r,i,a){this.originalError=a,cn()(this,i||{})}),Bn={},Al=new(bl()),pa=[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"}],Ic=function(r){return pa.some(function(i){return i(r)})},Co={key:"$ref",plugin:function(r,i,a,s){var d=s.getInstance(),y=Nn()(a).call(a,0,-1);if(!(da(y)||Ic(y))){var A=s.getContext(a),w=A.baseDoc;if(typeof r!="string")return new so("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Oo(r),R=E[0],W=E[1]||"",ae;try{ae=w||R?Cl(R,w):null}catch(me){return lo(me,{pointer:W,$ref:r,basePath:ae,fullPath:a})}var re,oe;if(kc(W,ae,y,s)&&!d.useCircularStructures){var ye=ss(r,ae);return r===ye?null:or.replace(a,ye)}if(ae==null?(oe=ai(W),re=s.get(oe),typeof re=="undefined"&&(re=new so("Could not resolve reference: ".concat(r),{pointer:W,$ref:r,baseDoc:w,fullPath:a}))):(re=To(ae,W),re.__value!=null?re=re.__value:re=re.catch(function(me){throw lo(me,{pointer:W,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[or.remove(a),re];var he=ss(r,ae),Se=or.replace(y,re,{$$ref:he});if(ae&&ae!==w)return[Se,or.context(y,{baseDoc:ae})];try{if(!Mc(s.state,Se)||d.useCircularStructures)return Se}catch(me){return null}}}},El=cn()(Co,{docCache:Bn,absoluteify:Cl,clearCache:ha,JSONRefError:so,wrapError:lo,getDoc:Ol,split:Oo,extractFromDoc:To,fetchJSON:Fc,extract:ls,jsonPointerToArray:ai,unescapeJsonPointerToken:uo});const of=El;function Cl(t,r){if(!Eo.test(t)){if(!r){var i;throw new so(Ct()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ri.resolve(r,t)}return t}function lo(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Ct()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new so("Could not resolve reference: ".concat(i),r,t)}function Oo(t){return(t+"").split("#")}function To(t,r){var i=Bn[t];if(i&&!or.isPromise(i))try{var a=ls(r,i);return cn()(ro().resolve(a),{__value:a})}catch(s){return ro().reject(s)}return Ol(t).then(function(s){return ls(r,s)})}function ha(t){typeof t!="undefined"?delete Bn[t]:Zt()(Bn).forEach(function(r){delete Bn[r]})}function Ol(t){var r=Bn[t];return r?or.isPromise(r)?r:ro().resolve(r):(Bn[t]=El.fetchJSON(t).then(function(i){return Bn[t]=i,i}),Bn[t])}function Fc(t){return(0,is.fetch)(t,{headers:{Accept:Sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Xs().safeLoad(r)})}function ls(t,r){var i=ai(t);if(i.length<1)return r;var a=or.getIn(r,i);if(typeof a=="undefined")throw new so("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function ai(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(sr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:tr()(r=t.split("/")).call(r,uo)}function uo(t){return typeof t!="string"?t:os().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Po(t){return os().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Rc(t){return t.length===0?"":"/".concat(tr()(t).call(t,Po).join("/"))}var af=function(r){return!r||r==="/"||r==="#"};function Tl(t,r){if(af(r))return!0;var i=t.charAt(r.length),a=Nn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function kc(t,r,i,a){var s,d,y=Al.get(a);y||(y={},Al.set(a,y));var A=Rc(i),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),R=a.contextTree.get([]).baseDoc;if(r==R&&Tl(E,t))return!0;var W="",ae=i.some(function(re){var oe;return W=Ct()(oe="".concat(W,"/")).call(oe,Po(re)),y[W]&&y[W].some(function(ye){return Tl(ye,w)||Tl(w,ye)})});if(ae)return!0;y[E]=Ct()(d=y[E]||[]).call(d,w)}function Mc(t,r){var i=[t];return r.path.reduce(function(s,d){return i.push(s[d]),s[d]},t),a(r.value);function a(s){return or.isObject(s)&&(i.indexOf(s)>=0||Zt()(s).some(function(d){return a(s[d])}))}}var yn=o(41609),sf=o.n(yn);const Lc={key:"allOf",plugin:function(r,i,a,s,d){if(!(d.meta&&d.meta.$$ref)){var y=Nn()(a).call(a,0,-1);if(!da(y)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=a,A}var w=!1,E=d.value;if(y.forEach(function(ae){!E||(E=E[ae])}),E=hr({},E),!sf()(E)){delete E.allOf;var R=[];if(R.push(s.replace(y,{})),r.forEach(function(ae,re){if(!s.isObject(ae)){if(w)return null;w=!0;var oe=new TypeError("Elements in allOf must be objects");return oe.fullPath=a,R.push(oe)}R.push(s.mergeDeep(y,ae));var ye=Nn()(a).call(a,0,-1),he=nf(ae,ye,{getBaseUrlForNodePath:function(me){var Te;return s.getContext(Ct()(Te=[]).call(Te,Dn(a),[re],Dn(me))).baseDoc},specmap:s});R.push.apply(R,Dn(he))}),R.push(s.mergeDeep(y,E)),!E.$$ref){var W;R.push(s.remove(Ct()(W=[]).call(W,y,"$$ref")))}return R}}}}},Dc={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var d=cn()([],r),y=Nn()(a).call(a,0,-1),A=hr({},or.getIn(s.spec,y));return r.forEach(function(w,E){try{d[E].default=s.parameterMacro(A,w)}catch(W){var R=new Error(W);return R.fullPath=a,R}}),or.replace(a,d)}return or.replace(a,r)}},Nc={key:"properties",plugin:function(r,i,a,s){var d=hr({},r);for(var y in r)try{d[y].default=s.modelPropertyMacro(d[y])}catch(E){var A=new Error(E);return A.fullPath=a,A}var w=or.replace(a,d);return w}};var lf=function(){function t(r){ja(this,t),this.root=us(r||{})}return qs(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){va(this.root,a,null);return}var d=i[i.length-1],y=s.children;if(y[d]){va(y[d],a,s);return}y[d]=us(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,d,y=0;y<i.length&&(d=i[y],s=a.children,!!s[d]);y+=1)a=s[d];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Nn()(i).call(i,0,-1).reduce(function(s,d){if(!s)return s;var y=s.children;return!y[d]&&a&&(y[d]=us(null,s)),y[d]},this.root)}}]),t}();function us(t,r){return va({children:{}},t,r)}function va(t,r,i){return t.value=r||{},t.protoValue=i?hr(hr({},i.protoValue),t.value):t.value,Zt()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=va(s,s.value,t)}),t}var uf=100,Bc=function(){function t(r){var i=this,a,s;ja(this,t),cn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new lf,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:cn()(Object.create(this),or,{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=gn()(a=tr()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,or.isFunction),this.patches.push(or.add([],this.spec)),this.patches.push(or.context([],this.context)),this.updatePatches(this.patches)}return qs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,d=new Array(s>1?s-1:0),y=1;y<s;y++)d[y-1]=arguments[y];(a=console).log.apply(a,d)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,d=arguments.length,y=new Array(d>1?d-1:0),A=1;A<d;A++)y[A-1]=arguments[A];(a=console).log.apply(a,Ct()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,d=null,y;return i[this.pluginProp]?(d=i,y=i[this.pluginProp]):or.isFunction(i)?y=i:or.isObject(i)&&(y=A(i)),cn()(y.bind(d),{pluginName:i.name||a,isGenerator:or.isGenerator(y)});function A(w){var E=function(W,ae){return Array.isArray(W)?W.every(function(re,oe){return re===ae[oe]}):!0};return lr().mark(function R(W,ae){var re,oe,ye,he,Se,me;return lr().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:me=function(ze,Ne,Be){var We,Ye,et,it,at,Pt,Ht,ur,Dr,Ir,rn,Cr,Hr;return lr().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(or.isObject(ze)){Jt.next=6;break}if(w.key!==Ne[Ne.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin(ze,w.key,Ne,ae);case 4:Jt.next=30;break;case 6:We=Ne.length-1,Ye=Ne[We],et=Ne.indexOf("properties"),it=Ye==="properties"&&We===et,at=ae.allowMetaPatches&&oe[ze.$$ref],Pt=0,Ht=Zt()(ze);case 12:if(!(Pt<Ht.length)){Jt.next=30;break}if(ur=Ht[Pt],Dr=ze[ur],Ir=Ct()(Ne).call(Ne,ur),rn=or.isObject(Dr),Cr=ze.$$ref,at){Jt.next=22;break}if(!rn){Jt.next=22;break}return ae.allowMetaPatches&&Cr&&(oe[Cr]=!0),Jt.delegateYield(me(Dr,Ir,Be),"t0",22);case 22:if(!(!it&&ur===w.key)){Jt.next=27;break}if(Hr=E(s,Ne),!(!s||Hr)){Jt.next=27;break}return Jt.next=27,w.plugin(Dr,ur,Ir,ae,Be);case 27:Pt++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},re)},re=lr().mark(me),oe={},ye=Qi(gn()(W).call(W,or.isAdditiveMutation)),He.prev=4,ye.s();case 6:if((he=ye.n()).done){He.next=11;break}return Se=he.value,He.delegateYield(me(Se.value,Se.path,Se),"t0",9);case 9:He.next=6;break;case 11:He.next=16;break;case 13:He.prev=13,He.t1=He.catch(4),ye.e(He.t1);case 16:return He.prev=16,ye.f(),He.finish(16);case 19:case"end":return He.stop()}},R,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Nu()(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 ro().race(tr()(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;or.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!or.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),or.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(or.isContextPatch(s)){a.setContext(s.path,s.value);return}if(or.isMutation(s)){a.updateMutations(s);return}}catch(d){console.error(d),a.errors.push(d)}})}},{key:"updateMutations",value:function(i){sr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=hr({},i.value));var a=or.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}Du()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var d=hr(hr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(d)}).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),Nn()(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 or.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 d=this.nextPromisedPatch();if(d)return d.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),ro().resolve(y)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>uf){var A;return ro().resolve({spec:a.state,errors:Ct()(A=a.errors).call(A,new Error("We've reached a hard limit of ".concat(uf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=tr()(w=this.promisedPatches).call(w,function(ae){return ae.value});return ro().all(tr()(E).call(E,function(ae){return ae.then(wo(),wo())})).then(function(){return i.dispatch()})}return R();function R(){a.currentPlugin=s;var ae=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var oe=Qi(s(ae,a.getLib())),ye;try{for(oe.s();!(ye=oe.n()).done;){var he=ye.value;W(he)}}catch(me){oe.e(me)}finally{oe.f()}}else{var Se=s(ae,a.getLib());W(Se)}}catch(me){console.error(me),W([cn()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function W(ae){ae&&(ae=or.fullyNormalizeArray(ae),a.updatePatches(ae,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return gn()(i).call(i,a)}}]),t}();function Uc(t){return new Bc(t).dispatch()}var On={refs:of,allOf:Lc,parameters:Dc,properties:Nc},ga=o(13218),ya=o.n(ga),Io=function(r){return String.prototype.toLowerCase.call(r)},si=function(r){return r.replace(/[^\w]/gi,"_")};function ff(t){var r=t.openapi;return r?Ji()(r,"3"):!1}function Zd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function xi(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||sr(t)!=="object")return null;var d=(t.operationId||"").replace(/\s/g,"");return d.length?si(t.operationId):cf(r,i,{v2OperationIdCompatibilityMode:s})}function cf(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var d,y,A=Ct()(d="".concat(r.toLowerCase(),"_")).call(d,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Ct()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(i="".concat(Io(r))).call(i,si(t))}function Pl(t,r){var i;return Ct()(i="".concat(Io(r),"-")).call(i,t)}function df(t,r){return!t||!t.paths?null:fs(t,function(i){var a=i.pathName,s=i.method,d=i.operation;if(!d||sr(d)!=="object")return!1;var y=d.operationId,A=xi(d,a,s),w=Pl(a,s);return[A,w,y].some(function(E){return E&&E===r})})}function fs(t,r){return fo(t,r,!0)||null}function fo(t,r,i){if(!t||sr(t)!=="object"||!t.paths||sr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var d in a[s])if(d.toUpperCase()!=="PARAMETERS"){var y=a[s][d];if(!(!y||sr(y)!=="object")){var A={spec:t,pathName:s,method:d.toUpperCase(),operation:y},w=r(A);if(i&&w)return A}}}function cs(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var d=i[s];if(!!ya()(d)){var y=d.parameters,A=function(W){var ae=d[W];if(!ya()(ae))return"continue";var re=xi(ae,s,W);if(re){a[re]?a[re].push(ae):a[re]=[ae];var oe=a[re];if(oe.length>1)oe.forEach(function(Ye,et){var it;Ye.__originalOperationId=Ye.__originalOperationId||Ye.operationId,Ye.operationId=Ct()(it="".concat(re)).call(it,et+1)});else if(typeof ae.operationId!="undefined"){var ye=oe[0];ye.__originalOperationId=ye.__originalOperationId||ae.operationId,ye.operationId=re}}if(W!=="parameters"){var he=[],Se={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Se[me]=r[me],he.push(Se));if(y&&(Se.parameters=y,he.push(Se)),he.length){var Te=Qi(he),He;try{for(Te.s();!(He=Te.n()).done;){var Ue=He.value;for(var ze in Ue)if(!ae[ze])ae[ze]=Ue[ze];else if(ze==="parameters"){var Ne=Qi(Ue[ze]),Be;try{var We=function(){var et=Be.value,it=ae[ze].some(function(at){return at.name&&at.name===et.name||at.$ref&&at.$ref===et.$ref||at.$$ref&&at.$$ref===et.$$ref||at===et});it||ae[ze].push(et)};for(Ne.s();!(Be=Ne.n()).done;)We()}catch(Ye){Ne.e(Ye)}finally{Ne.f()}}}}catch(Ye){Te.e(Ye)}finally{Te.f()}}}};for(var w in d)var E=A(w)}}return r.$$normalized=!0,t}function ds(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(d){return t({url:d,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Sl},credentials:s}).then(function(y){return y.body})}}function Il(){On.refs.clearCache()}function pf(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,d=t.allowMetaPatches,y=d===void 0?!0:d,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,R=t.requestInterceptor,W=t.responseInterceptor,ae=t.skipNormalization,re=t.useCircularStructures,oe=t.http,ye=t.baseDoc;if(ye=ye||a,oe=r||oe||Mi,!i)return ds(oe,{requestInterceptor:R,responseInterceptor:W})(ye).then(he);return he(i);function he(Se){ye&&(On.refs.docCache[ye]=Se),On.refs.fetchJSON=ds(oe,{requestInterceptor:R,responseInterceptor:W});var me=[On.refs];return typeof E=="function"&&me.push(On.parameters),typeof w=="function"&&me.push(On.properties),s!=="strict"&&me.push(On.allOf),Uc({spec:Se,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(ae?function(){var Te=Ks(lr().mark(function He(Ue){return lr().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",Ue);case 1:case"end":return Ne.stop()}},He)}));return function(He){return Te.apply(this,arguments)}}():cs)}}var ma=o(27361),Fo=o.n(ma);function jc(t,r){return ps.apply(this,arguments)}function ps(){return ps=Ks(lr().mark(function t(r,i){var a,s,d,y,A,w,E,R,W,ae,re,oe,ye=arguments;return lr().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=a.returnEntireTree,d=a.baseDoc,y=a.requestInterceptor,A=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,R=a.useCircularStructures,W={pathDiscriminator:i,baseDoc:d,requestInterceptor:y,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:R},ae=cs({spec:r}),re=ae.spec,Se.next=6,pf(hr(hr({},W),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return oe=Se.sent,!s&&Array.isArray(i)&&i.length&&(oe.spec=Fo()(oe.spec,i)||null),Se.abrupt("return",oe);case 9:case"end":return Se.stop()}},t)})),ps.apply(this,arguments)}var hs=function(){return null},Vc=function(r){return Array.isArray(r)?r:[r]},vs={mapTagOperations:Hc,makeExecute:xa};function xa(){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(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(hr(hr({spec:t.spec},Ua()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:d,operationId:s},y))}}}function Wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t),i=vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var d in i[s])a[s].operations[d]={execute:i[s][d]}}return{apis:a}}function hf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=vs.makeExecute(t);return{apis:vs.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Hc(t){var r=t.spec,i=t.cb,a=i===void 0?hs:i,s=t.defaultTag,d=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},w={};return fo(r,function(E){var R=E.pathName,W=E.method,ae=E.operation,re=ae.tags?Vc(ae.tags):[d];re.forEach(function(oe){if(typeof oe=="string"){w[oe]=w[oe]||{};var ye=w[oe],he=xi(ae,R,W,{v2OperationIdCompatibilityMode:y}),Se=a({spec:r,pathName:R,method:W,operation:ae,operationId:he});if(A[he]){var me;A[he]+=1,ye[Ct()(me="".concat(he)).call(me,A[he])]=Se}else if(typeof ye[he]!="undefined"){var Te,He,Ue=A[he]||1;A[he]=Ue+1,ye[Ct()(Te="".concat(he)).call(Te,A[he])]=Se;var ze=ye[he];delete ye[he],ye[Ct()(He="".concat(he)).call(He,Ue)]=ze}else ye[he]=Se}})}),w}var gs=o(95683);function vf(t,r){if(t==null)return{};var i={},a=Us(t),s,d;for(d=0;d<a.length;d++)s=a[d],!(gs(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function zc(t,r){if(t==null)return{};var i=vf(t,r),a,s;if(Ki){var d=Ki(t);for(s=0;s<d.length;s++)a=d[s],!(gs(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var gf=o(68630),Fl=o.n(gf),Gc=o(1469),Rl=o.n(Gc),ba=o(76489);const wa={body:$c,header:Kc,query:Jc,path:Yc,formData:yf};function $c(t){var r=t.req,i=t.value;r.body=i}function yf(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 Kc(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Yc(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Jc(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 ys(t,r){return Ba()(r).call(r,"application/json")?typeof t=="string"?t:Jo()(t):t.toString()}function mf(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,d=a.style,y=a.explode,A=a.content;if(A){var w=Zt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Nr(ys(i,w),{escape:!0}));return}var E=ii({key:a.name,value:i,style:d||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Xc(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=Zt()(a.content)[0];r.query[a.name]=ys(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:Ua()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var d=a.name;r.query[d]=r.query[d]||{},r.query[d].allowEmptyValue=!0}}var Qc=["accept","authorization","content-type"];function xf(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Qc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Zt()(i.content)[0];r.headers[i.name]=ys(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=ii({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function kl(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=sr(a);if(i.content){var d,y=Zt()(i.content)[0];r.headers.Cookie=Ct()(d="".concat(i.name,"=")).call(d,ys(a,y));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+ii({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var bf=o(50706),wf=o.n(bf);function Sf(t,r){var i=t.operation,a=t.requestBody,s=t.securities,d=t.spec,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Ro({request:r,securities:s,operation:i,spec:d});var w=i.requestBody||{},E=Zt()(w.content||{}),R=A&&E.indexOf(A)>-1;if(a||y){if(A&&R)r.headers["Content-Type"]=A;else if(!A){var W=E[0];W&&(r.headers["Content-Type"]=W,A=W)}}else A&&R&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var ae,re=gn()(ae=Xo()(i.responses)).call(ae,function(ye){var he=fn(ye,2),Se=he[0],me=he[1],Te=parseInt(Se,10);return Te>=200&&Te<300&&Fl()(me.content)}).reduce(function(ye,he){var Se=fn(he,2),me=Se[1];return Ct()(ye).call(ye,Zt()(me.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(A){if(E.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(sr(a)==="object"){var oe=(w.content[A]||{}).encoding||{};r.form={},Zt()(a).forEach(function(ye){r.form[ye]={value:a[ye],encoding:oe[ye]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Ro(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),w=a.authorized,E=w===void 0?{}:w,R=d.security||y.security||[],W=E&&!!Zt()(E).length,ae=Fo()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Zt()(a).length||!W||!R||Array.isArray(d.security)&&!d.security.length?r:(R.forEach(function(re){Zt()(re).forEach(function(oe){var ye=E[oe],he=ae[oe];if(!!ye){var Se=ye.value||ye,me=he.type;if(ye){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 Te,He=Se.username||"",Ue=Se.password||"",ze=wf()(Ct()(Te="".concat(He,":")).call(Te,Ue));A.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(he.scheme)&&(A.headers.Authorization="Bearer ".concat(Se))}else if(me==="oauth2"||me==="openIdConnect"){var Ne,Be=ye.token||{},We=he["x-tokenName"]||"access_token",Ye=Be[We],et=Be.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),A.headers.Authorization=Ct()(Ne="".concat(et," ")).call(Ne,Ye)}}}})}),A)}function Af(t,r){var i=t.spec,a=t.operation,s=t.securities,d=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=ms({request:r,securities:s,operation:a,spec:i}),r.body||r.form||A){var w,E;if(d)r.headers["Content-Type"]=d;else if(Array.isArray(a.consumes)){var R=fn(a.consumes,1);r.headers["Content-Type"]=R[0]}else if(Array.isArray(i.consumes)){var W=fn(i.consumes,1);r.headers["Content-Type"]=W[0]}else a.parameters&&gn()(w=a.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&gn()(E=a.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(d){var ae,re,oe=a.parameters&&gn()(ae=a.parameters).call(ae,function(he){return he.in==="body"}).length>0,ye=a.parameters&&gn()(re=a.parameters).call(re,function(he){return he.in==="formData"}).length>0;(oe||ye)&&(r.headers["Content-Type"]=d)}return!y&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function ms(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,d=s===void 0?{}:s,y=t.spec,A=Yi()({},r),w=a.authorized,E=w===void 0?{}:w,R=a.specSecurity,W=R===void 0?[]:R,ae=d.security||W,re=E&&!!Zt()(E).length,oe=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Zt()(a).length||!re||!ae||Array.isArray(d.security)&&!d.security.length?r:(ae.forEach(function(ye){Zt()(ye).forEach(function(he){var Se=E[he];if(!!Se){var me=Se.token,Te=Se.value||Se,He=oe[he],Ue=He.type,ze=He["x-tokenName"]||"access_token",Ne=me&&me[ze],Be=me&&me.token_type;if(Se){if(Ue==="apiKey"){var We=He.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][He.name]=Te}else if(Ue==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Ye,et=Te.username||"",it=Te.password||"";Te.base64=wf()(Ct()(Ye="".concat(et,":")).call(Ye,it)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Ue==="oauth2"&&Ne){var at;Be=!Be||Be.toLowerCase()==="bearer"?"Bearer":Be,A.headers.authorization=Ct()(at="".concat(Be," ")).call(at,Ne)}}}})}),A)}var Ef=function(r){return Array.isArray(r)?r:[]},Zc=wl("OperationNotFoundError",function(r,i,a){this.originalError=a,cn()(this,i||{})}),qc=function(r,i){return gn()(i).call(i,function(a){return a.name===r})},yr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return Zt()(i).forEach(function(s){Zt()(i[s]).forEach(function(d){a.push(i[s][d])})}),a},_c={buildRequest:ko};function Ml(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,d=t.pathName,y=t.method,A=t.parameters,w=t.securities,E=zc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),R=r||i||Mi;d&&y&&!s&&(s=Pl(d,y));var W=_c.buildRequest(hr({spec:a,operationId:s,parameters:A,securities:w,http:R},E));return W.body&&(Fl()(W.body)||Rl()(W.body))&&(W.body=Jo()(W.body)),R(W)}function ko(t){var r,i,a=t.spec,s=t.operationId,d=t.responseContentType,y=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,R=t.userFetch,W=t.server,ae=t.serverVariables,re=t.http,oe=t.parameters,ye=t.parameterBuilders,he=ff(a);ye||(he?ye=x:ye=wa);var Se=re&&re.withCredentials?"include":"same-origin",me={url:"",credentials:Se,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),R&&(me.userFetch=R);var Te=df(a,s);if(!Te)throw new Zc("Operation ".concat(s," not found"));var He=Te.operation,Ue=He===void 0?{}:He,ze=Te.method,Ne=Te.pathName;if(me.url+=Sa({spec:a,scheme:y,contextUrl:E,server:W,serverVariables:ae,pathName:Ne,method:ze}),!s)return delete me.cookies,me;me.url+=Ne,me.method="".concat(ze).toUpperCase(),oe=oe||{};var Be=a.paths[Ne]||{};d&&(me.headers.accept=d);var We=yr(Ct()(r=Ct()(i=[]).call(i,Ef(Ue.parameters))).call(r,Ef(Be.parameters)));We.forEach(function(it){var at=ye[it.in],Pt;if(it.in==="body"&&it.schema&&it.schema.properties&&(Pt=oe),Pt=it&&it.name&&oe[it.name],typeof Pt=="undefined"){var Ht;Pt=it&&it.name&&oe[Ct()(Ht="".concat(it.in,".")).call(Ht,it.name)]}else if(qc(it.name,We).length>1){var ur;console.warn(Ct()(ur="Parameter '".concat(it.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ur,it.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Pt!==null){if(typeof it.default!="undefined"&&typeof Pt=="undefined"&&(Pt=it.default),typeof Pt=="undefined"&&it.required&&!it.allowEmptyValue)throw new Error("Required parameter ".concat(it.name," is not provided"));if(he&&it.schema&&it.schema.type==="object"&&typeof Pt=="string")try{Pt=JSON.parse(Pt)}catch(Dr){throw new Error("Could not parse object parameter value string as JSON")}at&&at({req:me,parameter:it,value:Pt,operation:Ue,spec:a})}});var Ye=hr(hr({},t),{},{operation:Ue});if(he?me=Sf(Ye,me):me=Af(Ye,me),me.cookies&&Zt()(me.cookies).length){var et=Zt()(me.cookies).reduce(function(it,at){var Pt=me.cookies[at],Ht=it?"&":"",ur=ba.serialize(at,Pt);return it+Ht+ur},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,Lu(me),me}var kn=function(r){return r?r.replace(/\W/g,""):null};function Sa(t){var r=ff(t.spec);return r?Ll(t):Tf(t)}function Ll(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,d=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,w=Fo()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Fo()(r,["paths",i,"servers"])||Fo()(r,["servers"]),E="",R=null;if(s&&w&&w.length){var W=tr()(w).call(w,function(oe){return oe.url});W.indexOf(s)>-1&&(E=s,R=w[W.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ae=fn(w,1);R=ae[0]}if(E.indexOf("{")>-1){var re=Of(E);re.forEach(function(oe){if(R.variables&&R.variables[oe]){var ye=R.variables[oe],he=A[oe]||ye.default,Se=new RegExp("{".concat(oe,"}"),"g");E=E.replace(Se,he)}})}return Cf(E,d)}function Cf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ri.parse(Ri.resolve(r,t)):Ri.parse(t),a=Ri.parse(r),s=kn(i.protocol)||kn(a.protocol)||"",d=i.host||a.host,y=i.pathname||"",A;if(s&&d){var w;A=Ct()(w="".concat(s,"://")).call(w,d+y)}else A=y;return A[A.length-1]==="/"?Nn()(A).call(A,0,-1):A}function Of(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function Tf(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,d=Ri.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||kn(d.protocol)||"http",w=r.host||d.host||"",E=r.basePath||"",R;if(A&&w){var W;R=Ct()(W="".concat(A,"://")).call(W,w+E)}else R=E;return R[R.length-1]==="/"?Nn()(R).call(R,0,-1):R}Ar.http=Mi,Ar.makeHttp=ul.bind(null,Ar.http),Ar.resolve=pf,Ar.resolveSubtree=jc,Ar.execute=Ml,Ar.serializeRes=ku,Ar.serializeHeaders=sl,Ar.clearCache=Il,Ar.makeApisTagOperation=hf,Ar.buildRequest=ko,Ar.helpers={opId:xi},Ar.getBaseUrl=Sa;function Ar(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 Ar))return new Ar(i);Yi()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||Yi()(r,Ar.makeApisTagOperation(r)),r});return a.client=this,a}Ar.prototype={http:Mi,execute:function(r){return this.applyDefaults(),Ar.execute(hr({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 Ar.resolve(hr({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})}},Ar.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Ji()(i,"http")){var a=Ri.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var ed=Ar.helpers;const td=Ar;var zt=o(25446),Vt=o(76671),ar=o(7930),Mo=o(51027),ji=o(78722),co=o(17673),Vi=o(64776),xs=Object.defineProperty,rd=Object.defineProperties,Or=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,nd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,Aa=(t,r,i)=>r in t?xs(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,e=(t,r)=>{for(var i in r||(r={}))nd.call(r,i)&&Aa(t,i,r[i]);if(Pf)for(var i of Pf(r))id.call(r,i)&&Aa(t,i,r[i]);return t},n=(t,r)=>rd(t,Or(r)),u=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const l="/oauth2-redirect.html";class f{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:d,redirectUri:y,successCallback:A,errorCallback:w}){const E=(0,Vi.p8)({date:new Date().toString()}),R=new URL(r),W=d==="/"?"":d,ae=`${window.location.origin}${W}${l}`;R.searchParams.set("client_id",i),R.searchParams.set("redirect_uri",y||ae),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=>{A(re),f.clearRedirectData("implicit")},errorCallback:re=>{w(re),f.clearRedirectData("implicit")}},window.open(R.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:d,codeChallenge:y,scopes:A,extraParams:w={},extraHeaders:E={},routingBasePath:R,redirectUri:W,successCallback:ae,errorCallback:re}){const oe=new URL(r),ye=R==="/"?"":R,he=`${window.location.origin}${ye}${l}`,Se=(0,Vi.p8)({date:new Date().toString()});oe.searchParams.set("client_id",a),oe.searchParams.set("redirect_uri",W||he),oe.searchParams.set("response_type","code"),oe.searchParams.set("state",Se),Array.isArray(A)&&oe.searchParams.set("scope",A.join(" ")),y&&(oe.searchParams.set("code_challenge",y),oe.searchParams.set("code_challenge_method","S256"));for(const me in w)oe.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:A},state:Se,successCallback:me=>u(this,[me],function*({auth_code:Te}){try{const He=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:co.stringify(e(n(e({client_id:a,client_secret:s},d&&{code_verifier:d}),{code:Te,grant_type:"authorization_code",redirect_uri:W||he}),w))});yield F(He,ae,re)}catch(He){re(He)}f.clearRedirectData("authorizationCode")}),errorCallback:me=>{re(me),f.clearRedirectData("authorizationCode")}},window.open(oe.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return u(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:d=[],extraParams:y={},extraHeaders:A={},successCallback:w,errorCallback:E}){try{const R=JSON.parse(JSON.stringify(e({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(d)&&d.length?d.join(" "):void 0},y))),W=yield fetch(i,{method:"POST",headers:e({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:co.stringify(R)});yield F(W,w,E)}catch(R){E(R)}})}}const m=new f;function F(t,r,i){return u(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 U(t){return u(this,null,function*(){return(0,Vi.rS)(yield(0,Vi.JQ)(t))})}var z=o(68929),Z;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(Z||(Z={}));var be;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(be||(be={}));var Ce=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const De=Object.values(be),ke=["application/octet-stream","application/pdf","application/gzip","application/zip"],$e=["image/","audio/","video/"];function tt(t){if($e.some(r=>t.startsWith(r)))return t}function st(t){return ke.includes(t)?!0:$e.some(r=>t.startsWith(r))}function pt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(st(i)?"binary":"");return r.type===Z.STRING&&De.includes(a)}function yt(t,r){if(!t||!t.type||t.type==="any")return st(r);const i=t.format||t.contentEncoding||"";return t.type===Z.STRING&&De.includes(i)}function dt(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const d=a.result.replace(/data:.*\/.*;base64,/g,"");r(d)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function bt({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(be.BASE64)}function It(t,r){return Ce(this,null,function*(){const i=Object.values(t);let a=i.length===1?i[0]:i;return r.type===Z.STRING&&bt(r)?a=yield dt(i[0]):r.type===Z.ARRAY&&r.items&&(bt(r.items)?a=yield Promise.all(i.map(d=>Ce(this,null,function*(){return yield dt(d)}))):a=i),a})}var _e=o(39713),Mt=o(23485),ir=o(8418),br=o(21096),qt=o(67294),Tn=Object.defineProperty,mn=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Tr=(t,r,i)=>r in t?Tn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vr=(t,r)=>{for(var i in r||(r={}))_r.call(r,i)&&Tr(t,i,r[i]);if(dn)for(var i of dn(r))Ur.call(r,i)&&Tr(t,i,r[i]);return t},pn=(t,r)=>mn(t,Lr(r));const po=Mt.iv`
|
|
93
93
|
border: none;
|
|
94
94
|
outline: none;
|
|
95
95
|
padding: 8px;
|
|
@@ -124,7 +124,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
124
124
|
cursor: pointer;
|
|
125
125
|
text-align: center;
|
|
126
126
|
${({theme:t})=>(0,Mt.QG)({color:t.rightPanel.textColor})}
|
|
127
|
-
`;function Dl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[d,y]=(0,h.useState)(s==="password"),A=(0,h.useCallback)(()=>{y(!d)},[d]);return qt.createElement(bi,{fullWidth:i,type:s},qt.createElement(on,null,qt.createElement(li,pn(vr({},t),{type:d?"password":"text",inputType:s,ref:r})),t.inputActionButton?qt.createElement(jr,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?qt.createElement(jr,{onClick:A},d?"show":"hide"):null),a?qt.createElement(_e.Xq,null,a):null)}const Mn=(0,h.forwardRef)(Dl);function Vr(t){const r=Ln(vr({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,d=r.informed;return a(qt.createElement(Mn,pn(vr(vr({},i),d),{errorMessage:s.error})))}const Wr=Zr(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,R)=>({value:E.title||E.value,idx:R,origValue:E.value})),d=s.find(E=>E.origValue===t),[y,A]=(0,h.useState)(d==null?void 0:d.value);(0,ir.b6)(()=>{t&&i.setValue(t)});const w=(0,h.useCallback)(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[i,s]);return qt.createElement(bi,{fullWidth:!0},qt.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),a.error?qt.createElement(_e.Xq,null,a.error):null)});var Do=o(67294);const iv=Zr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=(0,h.useState)(),d=r.map((w,E)=>({idx:E,value:w})),y=w=>{i.setValue(w.value),s(w.value)};(0,ir.b6)(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),i.setValue(w)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return Do.createElement(br.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:d,handleClear:A,onChange:y})});var qd=o(29163),Ea=o(67294);const ov=({name:t,param:r,place:i,renderParameter:a})=>{var s,d,y,A,w;const[E,R]=(0,h.useState)([]),W=()=>{R([...E,E.length?E[E.length-1]+1:0])},
|
|
127
|
+
`;function Dl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[d,y]=(0,h.useState)(s==="password"),A=(0,h.useCallback)(()=>{y(!d)},[d]);return qt.createElement(bi,{fullWidth:i,type:s},qt.createElement(on,null,qt.createElement(li,pn(vr({},t),{type:d?"password":"text",inputType:s,ref:r})),t.inputActionButton?qt.createElement(jr,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?qt.createElement(jr,{onClick:A},d?"show":"hide"):null),a?qt.createElement(_e.Xq,null,a):null)}const Mn=(0,h.forwardRef)(Dl);function Vr(t){const r=Ln(vr({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,d=r.informed;return a(qt.createElement(Mn,pn(vr(vr({},i),d),{errorMessage:s.error})))}const Wr=Zr(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,R)=>({value:E.title||E.value,idx:R,origValue:E.value})),d=s.find(E=>E.origValue===t),[y,A]=(0,h.useState)(d==null?void 0:d.value);(0,ir.b6)(()=>{t&&i.setValue(t)});const w=(0,h.useCallback)(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[i,s]);return qt.createElement(bi,{fullWidth:!0},qt.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),a.error?qt.createElement(_e.Xq,null,a.error):null)});var Do=o(67294);const iv=Zr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=(0,h.useState)(),d=r.map((w,E)=>({idx:E,value:w})),y=w=>{i.setValue(w.value),s(w.value)};(0,ir.b6)(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),i.setValue(w)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return Do.createElement(br.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:d,handleClear:A,onChange:y})});var qd=o(29163),Ea=o(67294);const ov=({name:t,param:r,place:i,renderParameter:a})=>{var s,d,y,A,w;const[E,R]=(0,h.useState)([]),W=()=>{R([...E,E.length?E[E.length-1]+1:0])},ae=oe=>{R(E.filter(ye=>ye!==oe))},re=((s=r.schema.items)==null?void 0:s.fields)?(d=r.schema.items)==null?void 0:d.fields:[{schema:((y=r.schema.items)==null?void 0:y.schema)||r.schema.items,name:"",required:r.required,description:(A=r.schema.items)==null?void 0:A.description,externalDocs:(w=r.schema.items)==null?void 0:w.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return Ea.createElement(Ea.Fragment,null,Ea.createElement(_d,null,Ea.createElement(_e.lX,{required:r.required},t,"(",E.length," items)"),Ea.createElement("span",{onClick:W},"Add item +")),E==null?void 0:E.map((oe,ye)=>Ea.createElement(_d,{key:oe},Ea.createElement(av,{onClick:()=>ae(oe)},"delete"),re.map(he=>a(he,i,`${t}.[${oe}]`,`[${ye}]${he.name&&"."+he.name}`)))))},_d=qd.default.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
width: 100%;
|
|
130
130
|
align-items: center;
|
|
@@ -150,7 +150,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
150
150
|
border: none;
|
|
151
151
|
cursor: pointer;
|
|
152
152
|
position: relative;
|
|
153
|
-
`;var bs;(function(t){t.ARRAY="array",t.OBJECT="object"})(bs||(bs={}));function sv({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function lv(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function uv({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===bs.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const a=t.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function fv(t){if(t.type===bs.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Vt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function cv({oneOfType:t}){return t}var Zn=o(67294);const dv=["path","query","cookie","header"];function pv({id:t,param:r,values:i}){const a=(0,h.useMemo)(()=>uv(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,d=fv(r.schema),y=t.split(".").map(A=>(0,zt.dw)(A));return s?Zn.createElement(_e.NI,null,Zn.createElement(iv,{initValue:d,paramEnum:s,field:t})):Zn.createElement(Vr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:sv(r),validate:a,initialValue:d||(0,zt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function hv({values:t,operation:r}){const i=(0,h.useMemo)(()=>lv(r.parameters||[]),[r]),a=(d,y,A,w)=>{var E;const R=A?(0,zt.s1)(A,d.name):d.name,W=cv(d.schema),
|
|
153
|
+
`;var bs;(function(t){t.ARRAY="array",t.OBJECT="object"})(bs||(bs={}));function sv({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function lv(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function uv({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===bs.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const a=t.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function fv(t){if(t.type===bs.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Vt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function cv({oneOfType:t}){return t}var Zn=o(67294);const dv=["path","query","cookie","header"];function pv({id:t,param:r,values:i}){const a=(0,h.useMemo)(()=>uv(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,d=fv(r.schema),y=t.split(".").map(A=>(0,zt.dw)(A));return s?Zn.createElement(_e.NI,null,Zn.createElement(iv,{initValue:d,paramEnum:s,field:t})):Zn.createElement(Vr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:sv(r),validate:a,initialValue:d||(0,zt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function hv({values:t,operation:r}){const i=(0,h.useMemo)(()=>lv(r.parameters||[]),[r]),a=(d,y,A,w)=>{var E;const R=A?(0,zt.s1)(A,d.name):d.name,W=cv(d.schema),ae=A?[y,A]:[d.in],re=(0,zt.s1)(...ae,(0,zt.A8)(d.name));return W&&console.warn(`Unsupported parameter definition: "${W}"`),d.schema.type===bs.ARRAY?Zn.createElement(ov,{key:re,name:R,param:d,place:y,renderParameter:a}):d.schema.type===bs.OBJECT?(E=d.schema.fields)==null?void 0:E.map(oe=>a(oe,y,R)):Zn.createElement(_e.NI,{key:re},Zn.createElement(_e.lX,{required:d.required},w||R,":"),W?Zn.createElement(_e.GE,null,"Unsupported field schema definition"):Zn.createElement(pv,{id:re,param:d,values:t}))},s=d=>{const y=i[d];return!y||!y.length?null:Zn.createElement(h.Fragment,{key:d},Zn.createElement(_e.NI,null,Zn.createElement(_e.iG,null," # ",d," parameters "),Zn.createElement("span",null,"\xA0")),y.map(A=>a(A,d)))};return Zn.createElement(_e.iA,null,dv.map(s))}var ep=o(97164),mr=o(7241),vv=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function gv(t){return vv(this,null,function*(){return(yield fetch(t)).json()})}var tp=o(67294);const yv=Vt.styled.div`
|
|
154
154
|
position: relative;
|
|
155
155
|
height: 4px;
|
|
156
156
|
display: block;
|
|
@@ -285,12 +285,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
285
285
|
margin-top: 5px;
|
|
286
286
|
}
|
|
287
287
|
`}
|
|
288
|
-
`;function Pv(t,r){const{fullWidth:i,id:a,label:s,nowrap:d}=t;return od.createElement(Tv,{fullWidth:i,nowrap:d},od.createElement(Cv,Ev(Av({},t),{type:"checkbox",ref:r})),od.createElement(Ov,{htmlFor:a},s))}const op=(0,h.forwardRef)(Pv);var Ca=o(24177),Nl=o(43398),No=o(67294),Iv=Object.defineProperty,Fv=(t,r,i)=>r in t?Iv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Rv=(t,r,i)=>(Fv(t,typeof r!="symbol"?r+"":r,i),i);const kv=11;class Mv extends h.Component{constructor(){super(...arguments);Rv(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 d;if(a)d=[...s,i];else{const y=s.indexOf(i);d=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(d)}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:d,trimItemsLength:y}=this.props,{collapsed:A}=this.state,w=i.getError(),E=s||kv,R=y&&this.state.collapsed?r.slice(0,E):r;return No.createElement("div",null,d?No.createElement(Dv,null,No.createElement(Nl.J4,{onClick:()=>{this.selectAll()}},"Select all"),No.createElement(Nl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,No.createElement("div",null,R.map(W=>No.createElement(op,{fullWidth:!0,id:W,value:W,checked:this.isFieldChecked(W),label:W,key:W,onChange:
|
|
288
|
+
`;function Pv(t,r){const{fullWidth:i,id:a,label:s,nowrap:d}=t;return od.createElement(Tv,{fullWidth:i,nowrap:d},od.createElement(Cv,Ev(Av({},t),{type:"checkbox",ref:r})),od.createElement(Ov,{htmlFor:a},s))}const op=(0,h.forwardRef)(Pv);var Ca=o(24177),Nl=o(43398),No=o(67294),Iv=Object.defineProperty,Fv=(t,r,i)=>r in t?Iv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Rv=(t,r,i)=>(Fv(t,typeof r!="symbol"?r+"":r,i),i);const kv=11;class Mv extends h.Component{constructor(){super(...arguments);Rv(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 d;if(a)d=[...s,i];else{const y=s.indexOf(i);d=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(d)}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:d,trimItemsLength:y}=this.props,{collapsed:A}=this.state,w=i.getError(),E=s||kv,R=y&&this.state.collapsed?r.slice(0,E):r;return No.createElement("div",null,d?No.createElement(Dv,null,No.createElement(Nl.J4,{onClick:()=>{this.selectAll()}},"Select all"),No.createElement(Nl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,No.createElement("div",null,R.map(W=>No.createElement(op,{fullWidth:!0,id:W,value:W,checked:this.isFieldChecked(W),label:W,key:W,onChange:ae=>{this.onCheckBoxClick(ae),a&&i.validate()}})),r.length>E&&y?No.createElement(Nv,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),w?No.createElement(_e.Xq,null,w):"")}}const Lv=Zr(Mv),Dv=(0,Vt.styled)(Nl.xp)`
|
|
289
289
|
opacity: 1;
|
|
290
290
|
text-align: left;
|
|
291
291
|
`,Nv=(0,Vt.styled)(Nl.J4)`
|
|
292
292
|
float: right;
|
|
293
|
-
`;var Bl=o(67294);function ap(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?Bl.createElement(Bl.Fragment,null):Bl.createElement(_e.NI,null,Bl.createElement(_e.lX,null," Scopes: "),Bl.createElement(Lv,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Gt=o(67294),Bv=Object.defineProperty,Uv=Object.defineProperties,jv=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,Vv=Object.prototype.hasOwnProperty,Wv=Object.prototype.propertyIsEnumerable,ad=(t,r,i)=>r in t?Bv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ff=(t,r)=>{for(var i in r||(r={}))Vv.call(r,i)&&ad(t,i,r[i]);if(sp)for(var i of sp(r))Wv.call(r,i)&&ad(t,i,r[i]);return t},sd=(t,r)=>Uv(t,jv(r)),Ul=(t,r,i)=>(ad(t,typeof r!="symbol"?r+"":r,i),i),Hv=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function zv(t){if(!t)return"Field is required"}class jl extends h.Component{constructor(){super(...arguments);Ul(this,"state",{error:null,loading:!1,showPkceOptions:!1}),Ul(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),Ul(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),Ul(this,"handleCodeVerifierChange",r=>Hv(this,[r],function*({target:{value:i}}){const a=yield U(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=(0,Vi.CY)(43);U(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:d,authCorsProxyUrl:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,Vi.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,mr.jg)(r):r,E=y&&d?y+(0,mr.jg)(d):d,R=this.props.formApi.getValue(`auth.${s}.scopes`),W={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:R,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:
|
|
293
|
+
`;var Bl=o(67294);function ap(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?Bl.createElement(Bl.Fragment,null):Bl.createElement(_e.NI,null,Bl.createElement(_e.lX,null," Scopes: "),Bl.createElement(Lv,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var Gt=o(67294),Bv=Object.defineProperty,Uv=Object.defineProperties,jv=Object.getOwnPropertyDescriptors,sp=Object.getOwnPropertySymbols,Vv=Object.prototype.hasOwnProperty,Wv=Object.prototype.propertyIsEnumerable,ad=(t,r,i)=>r in t?Bv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ff=(t,r)=>{for(var i in r||(r={}))Vv.call(r,i)&&ad(t,i,r[i]);if(sp)for(var i of sp(r))Wv.call(r,i)&&ad(t,i,r[i]);return t},sd=(t,r)=>Uv(t,jv(r)),Ul=(t,r,i)=>(ad(t,typeof r!="symbol"?r+"":r,i),i),Hv=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function zv(t){if(!t)return"Field is required"}class jl extends h.Component{constructor(){super(...arguments);Ul(this,"state",{error:null,loading:!1,showPkceOptions:!1}),Ul(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),Ul(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),Ul(this,"handleCodeVerifierChange",r=>Hv(this,[r],function*({target:{value:i}}){const a=yield U(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=(0,Vi.CY)(43);U(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:d,authCorsProxyUrl:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,Vi.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,mr.jg)(r):r,E=y&&d?y+(0,mr.jg)(d):d,R=this.props.formApi.getValue(`auth.${s}.scopes`),W={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:R,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:ae=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,ae),this.setState({loading:!1,error:null})},errorCallback:ae=>{this.setState({loading:!1,error:(ae==null?void 0:ae.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&f.authorizeImplicit(W),!(0,mr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&f.authorizeAuthorizationCode(Ff(sd(Ff({},W),{tokenUrl:(E==null?void 0:E.startsWith("http"))?E:this.props.server+E,clientSecret:this.values.client_secret,extraHeaders:(0,mr.Or)({authMethod:A,clientId:this.values.client_id,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}),f.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:d,flow:y,usePkce:A,defaultValues:w}=this.props;if(!d)return Gt.createElement(_e.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"),W={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:zv,validateOnBlur:!0,validateOnChange:!0};return Gt.createElement("div",null,Gt.createElement(_e.n5,null,Gt.createElement(_e.NI,null,Gt.createElement(_e.lX,null," Client ID: "),R?Gt.createElement(Wr,sd(Ff({},W),{options:R})):Gt.createElement(Vr,sd(Ff({},W),{"data-cy":"client-id-input"}))),y==="authorizationCode"&&Gt.createElement(Gt.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&Gt.createElement(_e.NI,null,Gt.createElement(_e.lX,null,"Client Secret:"),Gt.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&Gt.createElement(Kv,null,Gt.createElement(op,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&Gt.createElement(Yv,null,Gt.createElement(_e.NI,null,Gt.createElement(_e.lX,null,"Code Verifier"),Gt.createElement(Mn,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),Gt.createElement(_e.NI,null,Gt.createElement(_e.lX,null,"Code Challenge"),Gt.createElement(Mn,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ae}})=>{this.setState({codeChallenge:ae})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),Gt.createElement(Vr,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:E}),Gt.createElement(ap,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?Gt.createElement(_e.NI,null,Gt.createElement(_e.lX,null," Access Token: "),Gt.createElement(Mn,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),Gt.createElement($v,null,this.values.token&&this.values.token.access_token?Gt.createElement(Ca.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?Gt.createElement(Gt.Fragment,null,Gt.createElement(Ca.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),Gt.createElement(rp,null)):Gt.createElement(Ca.zx,{fullWidth:!0,disabled:!(0,Vi.Qr)(this.errors),onClick:()=>{this.handleAuthorize(d)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&Gt.createElement(_e.n5,null,Gt.createElement(_e.NI,null,i?Gt.createElement(_e.GE,null,"Please, finish your authorization flow or cancel authorization."):r?Gt.createElement(Gt.Fragment,null,Gt.createElement(Gv,null,Gt.createElement(_e.Xq,null,r))):!this.values.token||!this.values.token.access_token?Gt.createElement(_e.GE,null," No Access Token. Please, Authorize. "):null)))}}Ul(jl,"contextType",Vt.OptionsContext);const Gv=Vt.styled.div`
|
|
294
294
|
font-family: monospace;
|
|
295
295
|
margin-top: 10px;
|
|
296
296
|
line-height: 1;
|
|
@@ -302,7 +302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
302
302
|
padding: 8px 0 20px;
|
|
303
303
|
`,Yv=Vt.styled.div`
|
|
304
304
|
padding: 4px 0;
|
|
305
|
-
`;var ws=o(25973),en=o(67294),Jv=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function Xv(t){var r,i;const{scheme:a,defaultValues:s}=t,[d,y]=(0,h.useState)({}),[A,w]=(0,h.useState)(),[E,R]=(0,h.useState)(!1);(0,h.useEffect)(()=>{W(a.openIdConnectUrl)},[a.openIdConnectUrl]);const W=ne=>Jv(this,null,function*(){R(!0),w("");try{const te=yield gv(ne);y(te)}catch(te){w(te.message)}R(!1)});return E?en.createElement(Qv,null):A?en.createElement(lp,{message:A}):en.createElement("div",null,en.createElement("div",null,((r=d==null?void 0:d.response_types_supported)==null?void 0:r.includes("token"))?en.createElement(en.Fragment,null,en.createElement(ws.S6,null,"OAuth2 Implicit Flow"),en.createElement(jl,{key:t.id,authorizationUrl:d.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=d==null?void 0:d.response_types_supported)==null?void 0:i.includes("code"))?en.createElement(en.Fragment,null,en.createElement(ws.S6,null,"OAuth2 Authorization Flow"),en.createElement(jl,{key:t.id,authorizationUrl:d.authorization_endpoint,tokenUrl:d.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:d==null?void 0:d.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):en.createElement("div",null,"Unsupported flow")))}function Qv(){return en.createElement("div",null,en.createElement("div",null,en.createElement("div",null,"Fetching OpenID Connect metadata..."),en.createElement(rp,null)))}function lp({message:t}){return en.createElement("div",null,en.createElement("div",null,en.createElement(_e.Xq,null,t)))}var Yr=o(67294),Zv=Object.defineProperty,qv=Object.defineProperties,_v=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,tg=Object.prototype.propertyIsEnumerable,ld=(t,r,i)=>r in t?Zv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fp=(t,r)=>{for(var i in r||(r={}))eg.call(r,i)&&ld(t,i,r[i]);if(up)for(var i of up(r))tg.call(r,i)&&ld(t,i,r[i]);return t},cp=(t,r)=>qv(t,_v(r)),Rf=(t,r,i)=>(ld(t,typeof r!="symbol"?r+"":r,i),i),rg=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function ng(t){if(!t)return"Token is required"}class ig extends h.Component{constructor(){super(...arguments);Rf(this,"state",{error:"",loading:!1,tokenMasked:!0}),Rf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),Rf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),Rf(this,"requestToken",()=>rg(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,mr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const d=this.values.client_id,y=this.values.client_secret;if(!d||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,mr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield f.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:d,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,mr.Or)({authMethod:A,clientId:d,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.message,loading:!1})}})}))}get values(){var r,i,a;return((a=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:a[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])||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:d}=this.props,y=Object.keys(this.props.flow.scopes);let A=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(d==null?void 0:d.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||(d==null?void 0:d.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),placeholder:"Your OAuth2 app Client ID"};return Yr.createElement(Yr.Fragment,null,Yr.createElement(_e.n5,null,Yr.createElement(_e.NI,null,Yr.createElement(_e.lX,null,"Client ID:"),w?Yr.createElement(Wr,cp(fp({},E),{options:w})):Yr.createElement(Vr,cp(fp({},E),{type:"password"}))),Yr.createElement(_e.NI,null,Yr.createElement(_e.lX,null,"Client Secret:"),Yr.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(d==null?void 0:d.client_secret)})),Yr.createElement(Vr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:ng}),Yr.createElement(ap,{id:s,scopes:y})),Yr.createElement(Ca.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),Yr.createElement(_e.ph,null," Access Token "),i?Yr.createElement(_e.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",Yr.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?Yr.createElement(_e.TR,null,Yr.createElement(_e.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),Yr.createElement(_e.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),Yr.createElement(_e.h,{onClick:this.clearToken}," Clear ")):Yr.createElement(_e.Xq,{style:{marginBottom:"1em"}},"No token"))}}const og=ig;var Yt=o(67294),ag=Object.defineProperty,sg=Object.defineProperties,lg=Object.getOwnPropertyDescriptors,dp=Object.getOwnPropertySymbols,ug=Object.prototype.hasOwnProperty,fg=Object.prototype.propertyIsEnumerable,ud=(t,r,i)=>r in t?ag(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ss=(t,r)=>{for(var i in r||(r={}))ug.call(r,i)&&ud(t,i,r[i]);if(dp)for(var i of dp(r))fg.call(r,i)&&ud(t,i,r[i]);return t},Vl=(t,r)=>sg(t,lg(r)),pp=(t,r,i)=>(ud(t,typeof r!="symbol"?r+"":r,i),i);function Wl(t){if(!t)return"Field is required"}const cg=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function hp(t){if(t.in==="cookie")return cg(t.name)}class dg extends h.Component{constructor(){super(...arguments);pp(this,"state",{activeScheme:0}),pp(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),d=a.findIndex(y=>y===s);return{activeScheme:d<0?0:d}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,d=a.map(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return d.length===0?Yt.createElement(lp,{message:"Cannot find security schema in the definition"}):Yt.createElement(Yt.Fragment,null,Yt.createElement(_e.n5,null,d.length>1&&Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Security scheme: "),Yt.createElement(br.Dropdown,{variant:"dark",fullWidth:!0,options:d,value:d[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(y=>{var A,w,E,R,W,ne,te;const le=(0,zt.A8)(y.id);if(y.type==="apiKey"){const ye=(0,zt.Al)(le,""),ve={field:`auth.${le}`,fullWidth:!0,initialValue:hp(y)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:hp(y)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(_e.NI,{key:le},Yt.createElement(_e.lX,null," ",y.name,": "),ye?Yt.createElement(Wr,Vl(Ss({},ve),{options:ye})):Yt.createElement(Vr,Vl(Ss({},ve),{type:"password","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,zt.Al)(le,"username"),ve={field:`auth.${le}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${le}.username`)||((A=r==null?void 0:r[le])==null?void 0:A.username),initValue:(0,zt.YQ)(`auth.${le}.username`)||((w=r==null?void 0:r[le])==null?void 0:w.username),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(h.Fragment,{key:le},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," ",(0,Mo.l)("tryItAuthBasicUsername"),": "),ye?Yt.createElement(Wr,Vl(Ss({},ve),{options:ye})):Yt.createElement(Vr,Ss({},ve))),Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," ",(0,Mo.l)("tryItAuthBasicPassword"),": "),Yt.createElement(Vr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${le}.password`,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(y.scheme==="bearer"){const ye=(0,zt.Al)(le,""),ve={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:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(h.Fragment,{key:le},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Bearer Token: "),ye?Yt.createElement(Wr,Vl(Ss({},ve),{options:ye})):Yt.createElement(Vr,Vl(Ss({},ve),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return Yt.createElement(og,{key:le,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return Yt.createElement(jl,{key:le,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((W=(R=y==null?void 0:y.flows)==null?void 0:R.implicit)==null?void 0:W.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return Yt.createElement(jl,{key:le,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ne=y.flows.authorizationCode)==null?void 0:ne.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"){let ye=(0,zt.YQ)(`auth.${le}.token`)||JSON.stringify((te=r==null?void 0:r[le])==null?void 0:te.token);return ye=ye?JSON.parse(ye):{},Yt.createElement(h.Fragment,{key:le},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Access Token Type: "),Yt.createElement(Vr,{fullWidth:!0,field:`auth.${le}.token.token_type`,initialValue:ye.token_type||"Bearer"})),Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Access Token: "),Yt.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${le}.token.access_token`,validate:Wl,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(y.type==="openIdConnect")return Yt.createElement(Xv,{key:le,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]})}})),Yt.createElement("small",null,Yt.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var vp=o(39895),fd=o(67294);const pg=Vt.styled.div`
|
|
305
|
+
`;var ws=o(25973),en=o(67294),Jv=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function Xv(t){var r,i;const{scheme:a,defaultValues:s}=t,[d,y]=(0,h.useState)({}),[A,w]=(0,h.useState)(),[E,R]=(0,h.useState)(!1);(0,h.useEffect)(()=>{W(a.openIdConnectUrl)},[a.openIdConnectUrl]);const W=ae=>Jv(this,null,function*(){R(!0),w("");try{const re=yield gv(ae);y(re)}catch(re){w(re.message)}R(!1)});return E?en.createElement(Qv,null):A?en.createElement(lp,{message:A}):en.createElement("div",null,en.createElement("div",null,((r=d==null?void 0:d.response_types_supported)==null?void 0:r.includes("token"))?en.createElement(en.Fragment,null,en.createElement(ws.S6,null,"OAuth2 Implicit Flow"),en.createElement(jl,{key:t.id,authorizationUrl:d.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=d==null?void 0:d.response_types_supported)==null?void 0:i.includes("code"))?en.createElement(en.Fragment,null,en.createElement(ws.S6,null,"OAuth2 Authorization Flow"),en.createElement(jl,{key:t.id,authorizationUrl:d.authorization_endpoint,tokenUrl:d.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:d.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:d==null?void 0:d.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):en.createElement("div",null,"Unsupported flow")))}function Qv(){return en.createElement("div",null,en.createElement("div",null,en.createElement("div",null,"Fetching OpenID Connect metadata..."),en.createElement(rp,null)))}function lp({message:t}){return en.createElement("div",null,en.createElement("div",null,en.createElement(_e.Xq,null,t)))}var Yr=o(67294),Zv=Object.defineProperty,qv=Object.defineProperties,_v=Object.getOwnPropertyDescriptors,up=Object.getOwnPropertySymbols,eg=Object.prototype.hasOwnProperty,tg=Object.prototype.propertyIsEnumerable,ld=(t,r,i)=>r in t?Zv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fp=(t,r)=>{for(var i in r||(r={}))eg.call(r,i)&&ld(t,i,r[i]);if(up)for(var i of up(r))tg.call(r,i)&&ld(t,i,r[i]);return t},cp=(t,r)=>qv(t,_v(r)),Rf=(t,r,i)=>(ld(t,typeof r!="symbol"?r+"":r,i),i),rg=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function ng(t){if(!t)return"Token is required"}class ig extends h.Component{constructor(){super(...arguments);Rf(this,"state",{error:"",loading:!1,tokenMasked:!0}),Rf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),Rf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),Rf(this,"requestToken",()=>rg(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,mr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const d=this.values.client_id,y=this.values.client_secret;if(!d||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,mr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield f.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:d,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,mr.Or)({authMethod:A,clientId:d,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.message,loading:!1})}})}))}get values(){var r,i,a;return((a=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:a[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])||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:d}=this.props,y=Object.keys(this.props.flow.scopes);let A=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(d==null?void 0:d.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||(d==null?void 0:d.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(d==null?void 0:d.client_id),placeholder:"Your OAuth2 app Client ID"};return Yr.createElement(Yr.Fragment,null,Yr.createElement(_e.n5,null,Yr.createElement(_e.NI,null,Yr.createElement(_e.lX,null,"Client ID:"),w?Yr.createElement(Wr,cp(fp({},E),{options:w})):Yr.createElement(Vr,cp(fp({},E),{type:"password"}))),Yr.createElement(_e.NI,null,Yr.createElement(_e.lX,null,"Client Secret:"),Yr.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(d==null?void 0:d.client_secret)})),Yr.createElement(Vr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:ng}),Yr.createElement(ap,{id:s,scopes:y})),Yr.createElement(Ca.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),Yr.createElement(_e.ph,null," Access Token "),i?Yr.createElement(_e.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",Yr.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?Yr.createElement(_e.TR,null,Yr.createElement(_e.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),Yr.createElement(_e.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),Yr.createElement(_e.h,{onClick:this.clearToken}," Clear ")):Yr.createElement(_e.Xq,{style:{marginBottom:"1em"}},"No token"))}}const og=ig;var Yt=o(67294),ag=Object.defineProperty,sg=Object.defineProperties,lg=Object.getOwnPropertyDescriptors,dp=Object.getOwnPropertySymbols,ug=Object.prototype.hasOwnProperty,fg=Object.prototype.propertyIsEnumerable,ud=(t,r,i)=>r in t?ag(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ss=(t,r)=>{for(var i in r||(r={}))ug.call(r,i)&&ud(t,i,r[i]);if(dp)for(var i of dp(r))fg.call(r,i)&&ud(t,i,r[i]);return t},Vl=(t,r)=>sg(t,lg(r)),pp=(t,r,i)=>(ud(t,typeof r!="symbol"?r+"":r,i),i);function Wl(t){if(!t)return"Field is required"}const cg=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function hp(t){if(t.in==="cookie")return cg(t.name)}class dg extends h.Component{constructor(){super(...arguments);pp(this,"state",{activeScheme:0}),pp(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),d=a.findIndex(y=>y===s);return{activeScheme:d<0?0:d}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,d=a.map(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return d.length===0?Yt.createElement(lp,{message:"Cannot find security schema in the definition"}):Yt.createElement(Yt.Fragment,null,Yt.createElement(_e.n5,null,d.length>1&&Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Security scheme: "),Yt.createElement(br.Dropdown,{variant:"dark",fullWidth:!0,options:d,value:d[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(y=>{var A,w,E,R,W,ae,re;const oe=(0,zt.A8)(y.id);if(y.type==="apiKey"){const ye=(0,zt.Al)(oe,""),he={field:`auth.${oe}`,fullWidth:!0,initialValue:hp(y)||(0,zt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:hp(y)||(0,zt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(_e.NI,{key:oe},Yt.createElement(_e.lX,null," ",y.name,": "),ye?Yt.createElement(Wr,Vl(Ss({},he),{options:ye})):Yt.createElement(Vr,Vl(Ss({},he),{type:"password","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,zt.Al)(oe,"username"),he={field:`auth.${oe}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${oe}.username`)||((A=r==null?void 0:r[oe])==null?void 0:A.username),initValue:(0,zt.YQ)(`auth.${oe}.username`)||((w=r==null?void 0:r[oe])==null?void 0:w.username),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(h.Fragment,{key:oe},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," ",(0,Mo.l)("tryItAuthBasicUsername"),": "),ye?Yt.createElement(Wr,Vl(Ss({},he),{options:ye})):Yt.createElement(Vr,Ss({},he))),Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," ",(0,Mo.l)("tryItAuthBasicPassword"),": "),Yt.createElement(Vr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${oe}.password`,initialValue:(0,zt.YQ)(`auth.${oe}.password`)||((E=r==null?void 0:r[oe])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(y.scheme==="bearer"){const ye=(0,zt.Al)(oe,""),he={field:`auth.${oe}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:(0,zt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:Wl,validateOnBlur:!0,validateOnChange:!0};return Yt.createElement(h.Fragment,{key:oe},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Bearer Token: "),ye?Yt.createElement(Wr,Vl(Ss({},he),{options:ye})):Yt.createElement(Vr,Vl(Ss({},he),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return Yt.createElement(og,{key:oe,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return Yt.createElement(jl,{key:oe,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((W=(R=y==null?void 0:y.flows)==null?void 0:R.implicit)==null?void 0:W.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return Yt.createElement(jl,{key:oe,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ae=y.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"){let ye=(0,zt.YQ)(`auth.${oe}.token`)||JSON.stringify((re=r==null?void 0:r[oe])==null?void 0:re.token);return ye=ye?JSON.parse(ye):{},Yt.createElement(h.Fragment,{key:oe},Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Access Token Type: "),Yt.createElement(Vr,{fullWidth:!0,field:`auth.${oe}.token.token_type`,initialValue:ye.token_type||"Bearer"})),Yt.createElement(_e.NI,null,Yt.createElement(_e.lX,null," Access Token: "),Yt.createElement(Vr,{type:"password",fullWidth:!0,field:`auth.${oe}.token.access_token`,validate:Wl,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(y.type==="openIdConnect")return Yt.createElement(Xv,{key:oe,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]})}})),Yt.createElement("small",null,Yt.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var vp=o(39895),fd=o(67294);const pg=Vt.styled.div`
|
|
306
306
|
display: flex;
|
|
307
307
|
font-size: 12px;
|
|
308
308
|
button {
|
|
@@ -348,7 +348,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
348
348
|
cursor: default;
|
|
349
349
|
color: ${(0,vp.DZ)(.3,r.colors.text.light)};
|
|
350
350
|
`||""}
|
|
351
|
-
`;class hg extends h.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return fd.createElement(pg,null,fd.createElement(gp,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),fd.createElement(gp,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var vg=o(9996),gg=o.n(vg),cd=o(67897),kf=o(49376),yg=o(67294),mg=Object.defineProperty,Mf=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,xp=(t,r,i)=>r in t?mg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,xg=(t,r)=>{for(var i in r||(r={}))yp.call(r,i)&&xp(t,i,r[i]);if(Mf)for(var i of Mf(r))mp.call(r,i)&&xp(t,i,r[i]);return t},bp=(t,r)=>{var i={};for(var a in t)yp.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Mf)for(var a of Mf(t))r.indexOf(a)<0&&mp.call(t,a)&&(i[a]=t[a]);return i},bg=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const wp=(0,h.forwardRef)((t,r)=>{var i=bp(t,[]);const a=i,{schema:s,contentName:d,onChange:y,name:A}=a,w=bp(a,["schema","contentName","onChange","name"]),{render:E}=Ln(xg({field:A},w)),R=W=>bg(void 0,null,function*(){const
|
|
351
|
+
`;class hg extends h.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return fd.createElement(pg,null,fd.createElement(gp,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),fd.createElement(gp,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var vg=o(9996),gg=o.n(vg),cd=o(67897),kf=o(49376),yg=o(67294),mg=Object.defineProperty,Mf=Object.getOwnPropertySymbols,yp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,xp=(t,r,i)=>r in t?mg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,xg=(t,r)=>{for(var i in r||(r={}))yp.call(r,i)&&xp(t,i,r[i]);if(Mf)for(var i of Mf(r))mp.call(r,i)&&xp(t,i,r[i]);return t},bp=(t,r)=>{var i={};for(var a in t)yp.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Mf)for(var a of Mf(t))r.indexOf(a)<0&&mp.call(t,a)&&(i[a]=t[a]);return i},bg=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const wp=(0,h.forwardRef)((t,r)=>{var i=bp(t,[]);const a=i,{schema:s,contentName:d,onChange:y,name:A}=a,w=bp(a,["schema","contentName","onChange","name"]),{render:E}=Ln(xg({field:A},w)),R=W=>bg(void 0,null,function*(){const ae=yield It(W.target.files,s);y(d,ae)});return E(yg.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:R,multiple:i.multiple,accept:i.accept,ref:r}))});wp.displayName="FileUpload";var Bo=o(67294);const wg=(0,Go.Pi)(t=>{var r;const{mediaType:i,onChange:a,formApi:s}=t,d=i.examples||{},{exampleKey:y}=(0,cd.C6)(i.operation,d),A=(r=d[y])==null?void 0:r.rawValue,w=Sg(i);(0,h.useEffect)(()=>s&&w.forEach(R=>{var W,ae;const re=A==null?void 0:A[R.name],oe=(ae=(W=R.example)!=null?W:re==null?void 0:re.example)!=null?ae:re,ye=typeof oe=="object"?JSON.stringify(oe):oe;oe!==void 0&&s.setValue("body."+R.name,`${ye}`)}),[y]);const E=i.schema||{};return yt(E,i.name)?Bo.createElement(Sp,null,Bo.createElement(_e.NI,null,Bo.createElement(Ap,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:tt(i.name),schema:E,contentName:i.name,onChange:a}))):E.type!==Z.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):Bo.createElement(Sp,null,w.map(R=>{const W=R.schema||{},ae=i.name===kf.T.MULTIPART&&pt(W),re=W.contentMediaType||"",oe=ae?Bo.createElement(Ap,{fullWidth:!0,id:"body."+R.name,name:"body."+R.name,accept:tt(re),multiple:W.type==="array",schema:W,contentName:R.name,onChange:a}):Bo.createElement(Vr,{fullWidth:!0,id:"body."+R.name,field:"body."+R.name,placeholder:W.description||R.name});return Bo.createElement(_e.NI,{key:R.name},Bo.createElement(_e.lX,null,R.name,":"),oe)}))});function Sg(t){var r,i,a,s,d;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(a=t.schema)==null?void 0:a.activeOneOf].fields)||[]:((d=t.schema)==null?void 0:d.fields)||[]).filter(y=>!y.schema.readOnly)}const Sp=Vt.styled.div`
|
|
352
352
|
> div {
|
|
353
353
|
margin-top: 10px;
|
|
354
354
|
}
|
|
@@ -359,36 +359,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
359
359
|
`,Ag=(0,Mt.ZP)(Ca.A3)`
|
|
360
360
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
361
361
|
margin-bottom: 10px;
|
|
362
|
-
`;var Eg=o(35310),As=o(4631);function Lf(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",d=0,y=16,A=0,w=0,E=0,R=0,W=0;function
|
|
363
|
-
`;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var Ne=
|
|
364
|
-
`),A++,E=a,y=14;switch(Te){case 123:return a++,y=1;case 125:return a++,y=2;case 91:return a++,y=3;case 93:return a++,y=4;case 58:return a++,y=6;case 44:return a++,y=5;case 34:return a++,s=ye(),y=10;case 47:var He=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Hl(t.charCodeAt(a));)a++;return s=t.substring(He,a),y=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,ze=!1;a<Ue;){var Ne=t.charCodeAt(a);if(Ne===42&&t.charCodeAt(a+1)===47){a+=2,ze=!0;break}a++,Hl(Ne)&&(Ne===13&&t.charCodeAt(a)===10&&a++,A++,E=a)}return ze||(a++,W=1),s=t.substring(He,a),y=13}return s+=String.fromCharCode(Te),a++,y=16;case 45:if(s+=String.fromCharCode(Te),a++,a===i||!Es(t.charCodeAt(a)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=
|
|
362
|
+
`;var Eg=o(35310),As=o(4631);function Lf(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",d=0,y=16,A=0,w=0,E=0,R=0,W=0;function ae(Te,He){for(var Ue=0,ze=0;Ue<Te||!He;){var Ne=t.charCodeAt(a);if(Ne>=48&&Ne<=57)ze=ze*16+Ne-48;else if(Ne>=65&&Ne<=70)ze=ze*16+Ne-65+10;else if(Ne>=97&&Ne<=102)ze=ze*16+Ne-97+10;else break;a++,Ue++}return Ue<Te&&(ze=-1),ze}function re(Te){a=Te,s="",d=0,y=16,W=0}function oe(){var Te=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&Es(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&Es(t.charCodeAt(a)))for(a++;a<t.length&&Es(t.charCodeAt(a));)a++;else return W=3,t.substring(Te,a);var He=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&&Es(t.charCodeAt(a))){for(a++;a<t.length&&Es(t.charCodeAt(a));)a++;He=a}else W=3;return t.substring(Te,He)}function ye(){for(var Te="",He=a;;){if(a>=i){Te+=t.substring(He,a),W=2;break}var Ue=t.charCodeAt(a);if(Ue===34){Te+=t.substring(He,a),a++;break}if(Ue===92){if(Te+=t.substring(He,a),a++,a>=i){W=2;break}var ze=t.charCodeAt(a++);switch(ze){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
|
|
363
|
+
`;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var Ne=ae(4,!0);Ne>=0?Te+=String.fromCharCode(Ne):W=4;break;default:W=5}He=a;continue}if(Ue>=0&&Ue<=31)if(Hl(Ue)){Te+=t.substring(He,a),W=2;break}else W=6;a++}return Te}function he(){if(s="",W=0,d=a,w=A,R=E,a>=i)return d=i,y=17;var Te=t.charCodeAt(a);if(dd(Te)){do a++,s+=String.fromCharCode(Te),Te=t.charCodeAt(a);while(dd(Te));return y=15}if(Hl(Te))return a++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(a)===10&&(a++,s+=`
|
|
364
|
+
`),A++,E=a,y=14;switch(Te){case 123:return a++,y=1;case 125:return a++,y=2;case 91:return a++,y=3;case 93:return a++,y=4;case 58:return a++,y=6;case 44:return a++,y=5;case 34:return a++,s=ye(),y=10;case 47:var He=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Hl(t.charCodeAt(a));)a++;return s=t.substring(He,a),y=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,ze=!1;a<Ue;){var Ne=t.charCodeAt(a);if(Ne===42&&t.charCodeAt(a+1)===47){a+=2,ze=!0;break}a++,Hl(Ne)&&(Ne===13&&t.charCodeAt(a)===10&&a++,A++,E=a)}return ze||(a++,W=1),s=t.substring(He,a),y=13}return s+=String.fromCharCode(Te),a++,y=16;case 45:if(s+=String.fromCharCode(Te),a++,a===i||!Es(t.charCodeAt(a)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=oe(),y=11;default:for(;a<i&&Se(Te);)a++,Te=t.charCodeAt(a);if(d!==a){switch(s=t.substring(d,a),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Te),a++,y=16}}function Se(Te){if(dd(Te)||Hl(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Te;do Te=he();while(Te>=12&&Te<=15);return Te}return{setPosition:re,getPosition:function(){return a},scan:r?me:he,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return d},getTokenLength:function(){return a-d},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return d-R},getTokenError:function(){return W}}}function dd(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 Hl(t){return t===10||t===13||t===8232||t===8233}function Es(t){return t>=48&&t<=57}function Cg(t,r,i){var a,s,d,y,A;if(r){for(y=r.offset,A=y+r.length,d=y;d>0&&!Ep(t,d-1);)d--;for(var w=A;w<t.length&&!Ep(t,w);)w++;s=t.substring(d,w),a=Og(s,i)}else s=t,a=0,d=0,y=0,A=t.length;var E=Tg(i,t),R=!1,W=0,ae;i.insertSpaces?ae=pd(" ",i.tabSize||4):ae=" ";var re=Lf(s,!1),oe=!1;function ye(){return E+pd(ae,a+W)}function he(){var et=re.scan();for(R=!1;et===15||et===14;)R=R||et===14,et=re.scan();return oe=et===16||re.getTokenError()!==0,et}var Se=[];function me(et,it,at){!oe&&it<A&&at>y&&t.substring(it,at)!==et&&Se.push({offset:it,length:at-it,content:et})}var Te=he();if(Te!==17){var He=re.getTokenOffset()+d,Ue=pd(ae,a);me(Ue,d,He)}for(;Te!==17;){for(var ze=re.getTokenOffset()+re.getTokenLength()+d,Ne=he(),Be="";!R&&(Ne===12||Ne===13);){var We=re.getTokenOffset()+d;me(" ",ze,We),ze=re.getTokenOffset()+re.getTokenLength()+d,Be=Ne===12?ye():"",Ne=he()}if(Ne===2)Te!==1&&(W--,Be=ye());else if(Ne===4)Te!==3&&(W--,Be=ye());else{switch(Te){case 3:case 1:W++,Be=ye();break;case 5:case 12:Be=ye();break;case 13:R?Be=ye():Be=" ";break;case 6:Be=" ";break;case 10:if(Ne===6){Be="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ne===12||Ne===13?Be=" ":Ne!==5&&Ne!==17&&(oe=!0);break;case 16:oe=!0;break}R&&(Ne===12||Ne===13)&&(Be=ye())}var Ye=re.getTokenOffset()+d;me(Be,ze,Ye),Te=Ne}return Se}function pd(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function Og(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var d=t.charAt(i);if(d===" ")a++;else if(d===" ")a+=s;else break;i++}return Math.floor(a/s)}function Tg(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)===`
|
|
365
365
|
`?`\r
|
|
366
366
|
`:"\r";if(a===`
|
|
367
367
|
`)return`
|
|
368
368
|
`}return t&&t.eol||`
|
|
369
369
|
`}function Ep(t,r){return`\r
|
|
370
|
-
`.indexOf(t.charAt(r))!==-1}var zl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(zl||(zl={}));function Pg(t,r){var i=[],a=new Object,s=void 0,d={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(w,E,R,W){d.value=w,d.offset=E,d.length=R,d.type=W,d.colonOffset=void 0,s=d}try{Df(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,R){if(r<E||(A(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||(A(w,E,R,Tp(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,y=!1,s=void 0;else if(w===","){var W=i[i.length-1];typeof W=="number"?i[i.length-1]=W+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,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 Ig(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var a=null,s=[],d=[];function y(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var A={onObjectBegin:function(){var w={};y(w),d.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=d.pop()},onArrayBegin:function(){var w=[];y(w),d.push(s),s=w,a=null},onArrayEnd:function(){s=d.pop()},onLiteralValue:y,onError:function(w,E,R){r.push({error:w,offset:E,length:R})}};return Df(t,A,i),s[0]}function Fg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.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 d(w){return a.children.push(w),w}var y={onObjectBegin:function(w){a=d({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,R){a=d({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=d({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){d({type:Tp(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})}};Df(t,y,i);var A=a.children[0];return A&&delete A.parent,A}function Rg(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var d=s[a];if(typeof d=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,A=0,w=i.children;A<w.length;A++){var E=w[A];if(Array.isArray(E.children)&&E.children[0].value===d){i=E.children[1],y=!0;break}}if(!y)return}else{var R=d;if(i.type!=="array"||R<0||!Array.isArray(i.children)||R>=i.children.length)return;i=i.children[R]}}return i}}function Cp(t){if(!t.parent||!t.parent.children)return[];var r=Cp(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 hd(t){switch(t.type){case"array":return t.children.map(hd);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],d=s.children[1];d&&(r[s.children[0].value]=hd(d))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function kg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Op(t,r,i){if(i===void 0&&(i=!1),kg(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var d=Op(a[s],r,i);if(d)return d}return t}}function Df(t,r,i){i===void 0&&(i=zl.DEFAULT);var a=Lf(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function d(We){return We?function(Ye){return We(Ye,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=d(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),R=s(r.onArrayEnd),W=d(r.onLiteralValue),ne=d(r.onSeparator),te=s(r.onComment),le=d(r.onError),ye=i&&i.disallowComments,ve=i&&i.allowTrailingComma;function Ae(){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:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):te();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Ye,et){if(Ye===void 0&&(Ye=[]),et===void 0&&(et=[]),le(We),Ye.length+et.length>0)for(var it=a.getToken();it!==17;){if(Ye.indexOf(it)!==-1){Ae();break}else if(et.indexOf(it)!==-1)break;it=Ae()}}function Te(We){var Ye=a.getTokenValue();return We?W(Ye):A(Ye),Ae(),!0}function He(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Ye=Number(We);isNaN(Ye)&&(me(2),Ye=0),W(Ye);break;case 7:W(null);break;case 8:W(!0);break;case 9:W(!1);break;default:return!1}return Ae(),!0}function Ue(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Te(!1),a.getToken()===6?(ne(":"),Ae(),Be()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),Ae();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ne(","),Ae(),a.getToken()===2&&ve)break}else We&&me(6,[],[]);Ue()||me(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?me(7,[2],[]):Ae(),!0}function Ne(){E(),Ae();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ne(","),Ae(),a.getToken()===4&&ve)break}else We&&me(6,[],[]);Be()||me(4,[],[4,5]),We=!0}return R(),a.getToken()!==4?me(8,[4],[]):Ae(),!0}function Be(){switch(a.getToken()){case 3:return Ne();case 1:return ze();case 10:return Te(!0);default:return He()}}return Ae(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Be()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Mg(t,r){var i=Lf(t),a=[],s,d=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:d!==y&&a.push(t.substring(d,y)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),d=i.getPosition();break}while(s!==17);return a.join("")}function Tp(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 _m(t,r,i){return Lg(t,r,void 0,i)}function Lg(t,r,i,a){for(var s,d=r.slice(),y=[],A=parseTree(t,y),w=void 0,E=void 0;d.length>0&&(E=d.pop(),w=findNodeAtLocation(A,d),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 W=w.children.indexOf(R.parent),ne=void 0,te=R.parent.offset+R.parent.length;if(W>0){var le=w.children[W-1];ne=le.offset+le.length}else if(ne=w.offset+1,w.children.length>1){var ye=w.children[1];te=ye.offset}return Oa(t,{offset:ne,length:te-ne,content:""},a)}else return Oa(t,{offset:R.offset,length:R.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var ve=JSON.stringify(E)+": "+JSON.stringify(i),Ae=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Ae>0){var le=w.children[Ae-1];me={offset:le.offset+le.length,length:0,content:","+ve}}else w.children.length===0?me={offset:w.offset+1,length:0,content:ve}:me={offset:w.offset+1,length:0,content:ve+","};return Oa(t,me,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ve=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:ve};else{var le=w.children[w.children.length-1];me={offset:le.offset+le.length,length:0,content:","+ve}}return Oa(t,me,a)}else if(i===void 0&&w.children.length>=0){var He=E,Ue=w.children[He],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===He){var le=w.children[He-1],ze=le.offset+le.length,Ne=w.offset+w.length;me={offset:ze,length:Ne-2-ze,content:""}}else me={offset:Ue.offset,length:w.children[He+1].offset-Ue.offset,content:""};return Oa(t,me,a)}else if(i!==void 0){var me=void 0,ve=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var Be=w.children[E];me={offset:Be.offset,length:Be.length,content:ve}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?ve:ve+","};else{var Ae=E>w.children.length?w.children.length:E,le=w.children[Ae-1];me={offset:le.offset+le.length,length:0,content:","+ve}}return Oa(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Te+" 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 Oa(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},a)}}function Oa(t,r,i){if(!i.formattingOptions)return[r];var a=Pp(t,r),s=r.offset,d=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;d<a.length&&!isEOL(a,d);)d++}for(var y=format(a,{offset:s,length:d-s},i.formattingOptions),A=y.length-1;A>=0;A--){var w=y[A];a=Pp(a,w),s=Math.min(s,w.offset),d=Math.max(d,w.offset+w.length),d+=w.content.length-w.length}var E=t.length-(a.length-d)-s;return[{offset:s,length:E,content:a.substring(s,d)}]}function Pp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function e0(t,r){return`\r
|
|
371
|
-
`.indexOf(t.charAt(r))!==-1}var Cs=Lf,t0=Pg,Dg=Ig,r0=Fg,n0=Rg,Ng=Op,Bg=Cp,Ug=hd,i0=Df,o0=Mg;function a0(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 jg(t,r,i){return Cg(t,r,i)}function s0(t,r,i,a){return edit.setProperty(t,r,i,a)}function l0(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Gl(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(!Gl(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var d=[];for(a in r)d.push(a);if(d.sort(),!Gl(s,d))return!1;for(i=0;i<s.length;i++)if(!Gl(t[s[i]],r[s[i]]))return!1}return!0}function qn(t){return typeof t=="number"}function ho(t){return typeof t!="undefined"}function Wi(t){return typeof t=="boolean"}function Vg(t){return typeof t=="string"}var Ip;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ip||(Ip={}));var Nf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Nf||(Nf={}));var wi;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=Nf.MAX_VALUE),s===Number.MAX_VALUE&&(s=Nf.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})(wi||(wi={}));var dr;(function(t){function r(a,s,d,y){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(d)&&Ze.uinteger(y))return{start:wi.create(a,s),end:wi.create(d,y)};if(wi.is(a)&&wi.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+d+", "+y+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&wi.is(s.start)&&wi.is(s.end)}t.is=i})(dr||(dr={}));var $l;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})($l||($l={}));var Fp;(function(t){function r(a,s,d,y){return{targetUri:a,targetRange:s,targetSelectionRange:d,originSelectionRange:y}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.targetRange)&&Ze.string(s.targetUri)&&(dr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(dr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(Fp||(Fp={}));var vd;(function(t){function r(a,s,d,y){return{red:a,green:s,blue:d,alpha:y}}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})(vd||(vd={}));var Rp;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return dr.is(s.range)&&vd.is(s.color)}t.is=i})(Rp||(Rp={}));var kp;(function(t){function r(a,s,d){return{label:a,textEdit:s,additionalTextEdits:d}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Si.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Si.is))}t.is=i})(kp||(kp={}));var Kl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Kl||(Kl={}));var Mp;(function(t){function r(a,s,d,y,A){var w={startLine:a,endLine:s};return Ze.defined(d)&&(w.startCharacter=d),Ze.defined(y)&&(w.endCharacter=y),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})(Mp||(Mp={}));var gd;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&$l.is(s.location)&&Ze.string(s.message)}t.is=i})(gd||(gd={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var Lp;(function(t){t.Unnecessary=1,t.Deprecated=2})(Lp||(Lp={}));var Dp;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Dp||(Dp={}));var vo;(function(t){function r(a,s,d,y,A,w){var E={range:a,message:s};return Ze.defined(d)&&(E.severity=d),Ze.defined(y)&&(E.code=y),Ze.defined(A)&&(E.source=A),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,d=a;return Ze.defined(d)&&dr.is(d.range)&&Ze.string(d.message)&&(Ze.number(d.severity)||Ze.undefined(d.severity))&&(Ze.integer(d.code)||Ze.string(d.code)||Ze.undefined(d.code))&&(Ze.undefined(d.codeDescription)||Ze.string((s=d.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(d.source)||Ze.undefined(d.source))&&(Ze.undefined(d.relatedInformation)||Ze.typedArray(d.relatedInformation,gd.is))}t.is=i})(vo||(vo={}));var Yl;(function(t){function r(a,s){for(var d=[],y=2;y<arguments.length;y++)d[y-2]=arguments[y];var A={title:a,command:s};return Ze.defined(d)&&d.length>0&&(A.arguments=d),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})(Yl||(Yl={}));var Si;(function(t){function r(d,y){return{range:d,newText:y}}t.replace=r;function i(d,y){return{range:{start:d,end:d},newText:y}}t.insert=i;function a(d){return{range:d,newText:""}}t.del=a;function s(d){var y=d;return Ze.objectLiteral(y)&&Ze.string(y.newText)&&dr.is(y.range)}t.is=s})(Si||(Si={}));var Os;(function(t){function r(a,s,d){var y={label:a};return s!==void 0&&(y.needsConfirmation=s),d!==void 0&&(y.description=d),y}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})(Os||(Os={}));var Pn;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(Pn||(Pn={}));var Uo;(function(t){function r(d,y,A){return{range:d,newText:y,annotationId:A}}t.replace=r;function i(d,y,A){return{range:{start:d,end:d},newText:y,annotationId:A}}t.insert=i;function a(d,y){return{range:d,newText:"",annotationId:y}}t.del=a;function s(d){var y=d;return Si.is(y)&&(Os.is(y.annotationId)||Pn.is(y.annotationId))}t.is=s})(Uo||(Uo={}));var Bf;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&jf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Bf||(Bf={}));var Jl;(function(t){function r(a,s,d){var y={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}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||Pn.is(s.annotationId))}t.is=i})(Jl||(Jl={}));var Xl;(function(t){function r(a,s,d,y){var A={kind:"rename",oldUri:a,newUri:s};return d!==void 0&&(d.overwrite!==void 0||d.ignoreIfExists!==void 0)&&(A.options=d),y!==void 0&&(A.annotationId=y),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||Pn.is(s.annotationId))}t.is=i})(Xl||(Xl={}));var Ql;(function(t){function r(a,s,d){var y={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}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||Pn.is(s.annotationId))}t.is=i})(Ql||(Ql={}));var yd;(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)?Jl.is(s)||Xl.is(s)||Ql.is(s):Bf.is(s)}))}t.is=r})(yd||(yd={}));var Uf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,d;if(a===void 0?s=Si.insert(r,i):Pn.is(a)?(d=a,s=Uo.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(a),s=Uo.insert(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.replace=function(r,i,a){var s,d;if(a===void 0?s=Si.replace(r,i):Pn.is(a)?(d=a,s=Uo.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(a),s=Uo.replace(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Si.del(r):Pn.is(i)?(s=i,a=Uo.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Uo.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}(),Np=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(Pn.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}(),u0=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Np(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Bf.is(a)){var s=new Uf(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Uf(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(jf.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=[],d={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(d),a=new Uf(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 Uf(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Np,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;Os.is(i)||Pn.is(i)?s=i:a=i;var d,y;if(s===void 0?d=Jl.create(r,a):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Jl.create(r,a,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},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 d;Os.is(a)||Pn.is(a)?d=a:s=a;var y,A;if(d===void 0?y=Xl.create(r,i,s):(A=Pn.is(d)?d:this._changeAnnotations.manage(d),y=Xl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),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;Os.is(i)||Pn.is(i)?s=i:a=i;var d,y;if(s===void 0?d=Ql.create(r,a):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Ql.create(r,a,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},t}(),Bp;(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})(Bp||(Bp={}));var Up;(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})(Up||(Up={}));var jf;(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})(jf||(jf={}));var jp;(function(t){function r(a,s,d,y){return{uri:a,languageId:s,version:d,text:y}}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})(jp||(jp={}));var go;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(go||(go={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(go||(go={}));var md;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&go.is(a.kind)&&Ze.string(a.value)}t.is=r})(md||(md={}));var _n;(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})(_n||(_n={}));var an;(function(t){t.PlainText=1,t.Snippet=2})(an||(an={}));var Vp;(function(t){t.Deprecated=1})(Vp||(Vp={}));var Wp;(function(t){function r(a,s,d){return{newText:a,insert:s,replace:d}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&dr.is(s.insert)&&dr.is(s.replace)}t.is=i})(Wp||(Wp={}));var Hp;(function(t){t.asIs=1,t.adjustIndentation=2})(Hp||(Hp={}));var xd;(function(t){function r(i){return{label:i}}t.create=r})(xd||(xd={}));var zp;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(zp||(zp={}));var Vf;(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})(Vf||(Vf={}));var Gp;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(md.is(a.contents)||Vf.is(a.contents)||Ze.typedArray(a.contents,Vf.is))&&(i.range===void 0||dr.is(i.range))}t.is=r})(Gp||(Gp={}));var $p;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})($p||($p={}));var Kp;(function(t){function r(i,a){for(var s=[],d=2;d<arguments.length;d++)s[d-2]=arguments[d];var y={label:i};return Ze.defined(a)&&(y.documentation=a),Ze.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(Kp||(Kp={}));var Yp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Yp||(Yp={}));var Jp;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(Jp||(Jp={}));var Hi;(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})(Hi||(Hi={}));var Xp;(function(t){t.Deprecated=1})(Xp||(Xp={}));var Qp;(function(t){function r(i,a,s,d,y){var A={name:i,kind:a,location:{uri:d,range:s}};return y&&(A.containerName=y),A}t.create=r})(Qp||(Qp={}));var Zp;(function(t){function r(a,s,d,y,A,w){var E={name:a,detail:s,kind:d,range:y,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)&&dr.is(s.range)&&dr.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})(Zp||(Zp={}));var qp;(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"})(qp||(qp={}));var _p;(function(t){function r(a,s){var d={diagnostics:a};return s!=null&&(d.only=s),d}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,vo.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(_p||(_p={}));var eh;(function(t){function r(a,s,d){var y={title:a},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Yl.is(s)?y.command=s:y.edit=s,A&&d!==void 0&&(y.kind=d),y}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,vo.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Yl.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||yd.is(s.edit))}t.is=i})(eh||(eh={}));var th;(function(t){function r(a,s){var d={range:a};return Ze.defined(s)&&(d.data=s),d}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.undefined(s.command)||Yl.is(s.command))}t.is=i})(th||(th={}));var rh;(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})(rh||(rh={}));var nh;(function(t){function r(a,s,d){return{range:a,target:s,data:d}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(nh||(nh={}));var Wf;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&dr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Wf||(Wf={}));var f0=null,ih;(function(t){function r(d,y,A,w){return new Wg(d,y,A,w)}t.create=r;function i(d){var y=d;return!!(Ze.defined(y)&&Ze.string(y.uri)&&(Ze.undefined(y.languageId)||Ze.string(y.languageId))&&Ze.uinteger(y.lineCount)&&Ze.func(y.getText)&&Ze.func(y.positionAt)&&Ze.func(y.offsetAt))}t.is=i;function a(d,y){for(var A=d.getText(),w=s(y,function(le,ye){var ve=le.range.start.line-ye.range.start.line;return ve===0?le.range.start.character-ye.range.start.character:ve}),E=A.length,R=w.length-1;R>=0;R--){var W=w[R],ne=d.offsetAt(W.range.start),te=d.offsetAt(W.range.end);if(te<=E)A=A.substring(0,ne)+W.newText+A.substring(te,A.length);else throw new Error("Overlapping edit");E=ne}return A}t.applyEdits=a;function s(d,y){if(d.length<=1)return d;var A=d.length/2|0,w=d.slice(0,A),E=d.slice(A);s(w,y),s(E,y);for(var R=0,W=0,ne=0;R<w.length&&W<E.length;){var te=y(w[R],E[W]);te<=0?d[ne++]=w[R++]:d[ne++]=E[W++]}for(;R<w.length;)d[ne++]=w[R++];for(;W<E.length;)d[ne++]=E[W++];return d}})(ih||(ih={}));var Wg=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 d=i.charAt(s);a=d==="\r"||d===`
|
|
370
|
+
`.indexOf(t.charAt(r))!==-1}var zl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(zl||(zl={}));function Pg(t,r){var i=[],a=new Object,s=void 0,d={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(w,E,R,W){d.value=w,d.offset=E,d.length=R,d.type=W,d.colonOffset=void 0,s=d}try{Df(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,R){if(r<E||(A(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||(A(w,E,R,Tp(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,y=!1,s=void 0;else if(w===","){var W=i[i.length-1];typeof W=="number"?i[i.length-1]=W+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,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 Ig(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.DEFAULT);var a=null,s=[],d=[];function y(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var A={onObjectBegin:function(){var w={};y(w),d.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=d.pop()},onArrayBegin:function(){var w=[];y(w),d.push(s),s=w,a=null},onArrayEnd:function(){s=d.pop()},onLiteralValue:y,onError:function(w,E,R){r.push({error:w,offset:E,length:R})}};return Df(t,A,i),s[0]}function Fg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=zl.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 d(w){return a.children.push(w),w}var y={onObjectBegin:function(w){a=d({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,R){a=d({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=d({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){d({type:Tp(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})}};Df(t,y,i);var A=a.children[0];return A&&delete A.parent,A}function Rg(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var d=s[a];if(typeof d=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,A=0,w=i.children;A<w.length;A++){var E=w[A];if(Array.isArray(E.children)&&E.children[0].value===d){i=E.children[1],y=!0;break}}if(!y)return}else{var R=d;if(i.type!=="array"||R<0||!Array.isArray(i.children)||R>=i.children.length)return;i=i.children[R]}}return i}}function Cp(t){if(!t.parent||!t.parent.children)return[];var r=Cp(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 hd(t){switch(t.type){case"array":return t.children.map(hd);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],d=s.children[1];d&&(r[s.children[0].value]=hd(d))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function kg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Op(t,r,i){if(i===void 0&&(i=!1),kg(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var d=Op(a[s],r,i);if(d)return d}return t}}function Df(t,r,i){i===void 0&&(i=zl.DEFAULT);var a=Lf(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function d(We){return We?function(Ye){return We(Ye,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=d(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),R=s(r.onArrayEnd),W=d(r.onLiteralValue),ae=d(r.onSeparator),re=s(r.onComment),oe=d(r.onError),ye=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:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):re();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Ye,et){if(Ye===void 0&&(Ye=[]),et===void 0&&(et=[]),oe(We),Ye.length+et.length>0)for(var it=a.getToken();it!==17;){if(Ye.indexOf(it)!==-1){Se();break}else if(et.indexOf(it)!==-1)break;it=Se()}}function Te(We){var Ye=a.getTokenValue();return We?W(Ye):A(Ye),Se(),!0}function He(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Ye=Number(We);isNaN(Ye)&&(me(2),Ye=0),W(Ye);break;case 7:W(null);break;case 8:W(!0);break;case 9:W(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Te(!1),a.getToken()===6?(ae(":"),Se(),Be()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),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 Ne(){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,[],[]);Be()||me(4,[],[4,5]),We=!0}return R(),a.getToken()!==4?me(8,[4],[]):Se(),!0}function Be(){switch(a.getToken()){case 3:return Ne();case 1:return ze();case 10:return Te(!0);default:return He()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Be()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Mg(t,r){var i=Lf(t),a=[],s,d=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:d!==y&&a.push(t.substring(d,y)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),d=i.getPosition();break}while(s!==17);return a.join("")}function Tp(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 _m(t,r,i){return Lg(t,r,void 0,i)}function Lg(t,r,i,a){for(var s,d=r.slice(),y=[],A=parseTree(t,y),w=void 0,E=void 0;d.length>0&&(E=d.pop(),w=findNodeAtLocation(A,d),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 W=w.children.indexOf(R.parent),ae=void 0,re=R.parent.offset+R.parent.length;if(W>0){var oe=w.children[W-1];ae=oe.offset+oe.length}else if(ae=w.offset+1,w.children.length>1){var ye=w.children[1];re=ye.offset}return Oa(t,{offset:ae,length:re-ae,content:""},a)}else return Oa(t,{offset:R.offset,length:R.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 oe=w.children[Se-1];me={offset:oe.offset+oe.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 Oa(t,me,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-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 oe=w.children[w.children.length-1];me={offset:oe.offset+oe.length,length:0,content:","+he}}return Oa(t,me,a)}else if(i===void 0&&w.children.length>=0){var He=E,Ue=w.children[He],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===He){var oe=w.children[He-1],ze=oe.offset+oe.length,Ne=w.offset+w.length;me={offset:ze,length:Ne-2-ze,content:""}}else me={offset:Ue.offset,length:w.children[He+1].offset-Ue.offset,content:""};return Oa(t,me,a)}else if(i!==void 0){var me=void 0,he=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var Be=w.children[E];me={offset:Be.offset,length:Be.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,oe=w.children[Se-1];me={offset:oe.offset+oe.length,length:0,content:","+he}}return Oa(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Te+" 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 Oa(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},a)}}function Oa(t,r,i){if(!i.formattingOptions)return[r];var a=Pp(t,r),s=r.offset,d=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;d<a.length&&!isEOL(a,d);)d++}for(var y=format(a,{offset:s,length:d-s},i.formattingOptions),A=y.length-1;A>=0;A--){var w=y[A];a=Pp(a,w),s=Math.min(s,w.offset),d=Math.max(d,w.offset+w.length),d+=w.content.length-w.length}var E=t.length-(a.length-d)-s;return[{offset:s,length:E,content:a.substring(s,d)}]}function Pp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function e0(t,r){return`\r
|
|
371
|
+
`.indexOf(t.charAt(r))!==-1}var Cs=Lf,t0=Pg,Dg=Ig,r0=Fg,n0=Rg,Ng=Op,Bg=Cp,Ug=hd,i0=Df,o0=Mg;function a0(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 jg(t,r,i){return Cg(t,r,i)}function s0(t,r,i,a){return edit.setProperty(t,r,i,a)}function l0(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Gl(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(!Gl(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var d=[];for(a in r)d.push(a);if(d.sort(),!Gl(s,d))return!1;for(i=0;i<s.length;i++)if(!Gl(t[s[i]],r[s[i]]))return!1}return!0}function qn(t){return typeof t=="number"}function ho(t){return typeof t!="undefined"}function Wi(t){return typeof t=="boolean"}function Vg(t){return typeof t=="string"}var Ip;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Ip||(Ip={}));var Nf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Nf||(Nf={}));var wi;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=Nf.MAX_VALUE),s===Number.MAX_VALUE&&(s=Nf.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})(wi||(wi={}));var dr;(function(t){function r(a,s,d,y){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(d)&&Ze.uinteger(y))return{start:wi.create(a,s),end:wi.create(d,y)};if(wi.is(a)&&wi.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+d+", "+y+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&wi.is(s.start)&&wi.is(s.end)}t.is=i})(dr||(dr={}));var $l;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})($l||($l={}));var Fp;(function(t){function r(a,s,d,y){return{targetUri:a,targetRange:s,targetSelectionRange:d,originSelectionRange:y}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.targetRange)&&Ze.string(s.targetUri)&&(dr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(dr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(Fp||(Fp={}));var vd;(function(t){function r(a,s,d,y){return{red:a,green:s,blue:d,alpha:y}}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})(vd||(vd={}));var Rp;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return dr.is(s.range)&&vd.is(s.color)}t.is=i})(Rp||(Rp={}));var kp;(function(t){function r(a,s,d){return{label:a,textEdit:s,additionalTextEdits:d}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Si.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Si.is))}t.is=i})(kp||(kp={}));var Kl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Kl||(Kl={}));var Mp;(function(t){function r(a,s,d,y,A){var w={startLine:a,endLine:s};return Ze.defined(d)&&(w.startCharacter=d),Ze.defined(y)&&(w.endCharacter=y),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})(Mp||(Mp={}));var gd;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&$l.is(s.location)&&Ze.string(s.message)}t.is=i})(gd||(gd={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var Lp;(function(t){t.Unnecessary=1,t.Deprecated=2})(Lp||(Lp={}));var Dp;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Dp||(Dp={}));var vo;(function(t){function r(a,s,d,y,A,w){var E={range:a,message:s};return Ze.defined(d)&&(E.severity=d),Ze.defined(y)&&(E.code=y),Ze.defined(A)&&(E.source=A),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,d=a;return Ze.defined(d)&&dr.is(d.range)&&Ze.string(d.message)&&(Ze.number(d.severity)||Ze.undefined(d.severity))&&(Ze.integer(d.code)||Ze.string(d.code)||Ze.undefined(d.code))&&(Ze.undefined(d.codeDescription)||Ze.string((s=d.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(d.source)||Ze.undefined(d.source))&&(Ze.undefined(d.relatedInformation)||Ze.typedArray(d.relatedInformation,gd.is))}t.is=i})(vo||(vo={}));var Yl;(function(t){function r(a,s){for(var d=[],y=2;y<arguments.length;y++)d[y-2]=arguments[y];var A={title:a,command:s};return Ze.defined(d)&&d.length>0&&(A.arguments=d),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})(Yl||(Yl={}));var Si;(function(t){function r(d,y){return{range:d,newText:y}}t.replace=r;function i(d,y){return{range:{start:d,end:d},newText:y}}t.insert=i;function a(d){return{range:d,newText:""}}t.del=a;function s(d){var y=d;return Ze.objectLiteral(y)&&Ze.string(y.newText)&&dr.is(y.range)}t.is=s})(Si||(Si={}));var Os;(function(t){function r(a,s,d){var y={label:a};return s!==void 0&&(y.needsConfirmation=s),d!==void 0&&(y.description=d),y}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})(Os||(Os={}));var Pn;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(Pn||(Pn={}));var Uo;(function(t){function r(d,y,A){return{range:d,newText:y,annotationId:A}}t.replace=r;function i(d,y,A){return{range:{start:d,end:d},newText:y,annotationId:A}}t.insert=i;function a(d,y){return{range:d,newText:"",annotationId:y}}t.del=a;function s(d){var y=d;return Si.is(y)&&(Os.is(y.annotationId)||Pn.is(y.annotationId))}t.is=s})(Uo||(Uo={}));var Bf;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&jf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Bf||(Bf={}));var Jl;(function(t){function r(a,s,d){var y={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}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||Pn.is(s.annotationId))}t.is=i})(Jl||(Jl={}));var Xl;(function(t){function r(a,s,d,y){var A={kind:"rename",oldUri:a,newUri:s};return d!==void 0&&(d.overwrite!==void 0||d.ignoreIfExists!==void 0)&&(A.options=d),y!==void 0&&(A.annotationId=y),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||Pn.is(s.annotationId))}t.is=i})(Xl||(Xl={}));var Ql;(function(t){function r(a,s,d){var y={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),d!==void 0&&(y.annotationId=d),y}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||Pn.is(s.annotationId))}t.is=i})(Ql||(Ql={}));var yd;(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)?Jl.is(s)||Xl.is(s)||Ql.is(s):Bf.is(s)}))}t.is=r})(yd||(yd={}));var Uf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,d;if(a===void 0?s=Si.insert(r,i):Pn.is(a)?(d=a,s=Uo.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(a),s=Uo.insert(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.replace=function(r,i,a){var s,d;if(a===void 0?s=Si.replace(r,i):Pn.is(a)?(d=a,s=Uo.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),d=this.changeAnnotations.manage(a),s=Uo.replace(r,i,d)),this.edits.push(s),d!==void 0)return d},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Si.del(r):Pn.is(i)?(s=i,a=Uo.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Uo.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}(),Np=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(Pn.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}(),u0=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Np(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Bf.is(a)){var s=new Uf(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Uf(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(jf.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=[],d={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(d),a=new Uf(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 Uf(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Np,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;Os.is(i)||Pn.is(i)?s=i:a=i;var d,y;if(s===void 0?d=Jl.create(r,a):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Jl.create(r,a,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},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 d;Os.is(a)||Pn.is(a)?d=a:s=a;var y,A;if(d===void 0?y=Xl.create(r,i,s):(A=Pn.is(d)?d:this._changeAnnotations.manage(d),y=Xl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),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;Os.is(i)||Pn.is(i)?s=i:a=i;var d,y;if(s===void 0?d=Ql.create(r,a):(y=Pn.is(s)?s:this._changeAnnotations.manage(s),d=Ql.create(r,a,y)),this._workspaceEdit.documentChanges.push(d),y!==void 0)return y},t}(),Bp;(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})(Bp||(Bp={}));var Up;(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})(Up||(Up={}));var jf;(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})(jf||(jf={}));var jp;(function(t){function r(a,s,d,y){return{uri:a,languageId:s,version:d,text:y}}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})(jp||(jp={}));var go;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(go||(go={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(go||(go={}));var md;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&go.is(a.kind)&&Ze.string(a.value)}t.is=r})(md||(md={}));var _n;(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})(_n||(_n={}));var an;(function(t){t.PlainText=1,t.Snippet=2})(an||(an={}));var Vp;(function(t){t.Deprecated=1})(Vp||(Vp={}));var Wp;(function(t){function r(a,s,d){return{newText:a,insert:s,replace:d}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&dr.is(s.insert)&&dr.is(s.replace)}t.is=i})(Wp||(Wp={}));var Hp;(function(t){t.asIs=1,t.adjustIndentation=2})(Hp||(Hp={}));var xd;(function(t){function r(i){return{label:i}}t.create=r})(xd||(xd={}));var zp;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(zp||(zp={}));var Vf;(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})(Vf||(Vf={}));var Gp;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(md.is(a.contents)||Vf.is(a.contents)||Ze.typedArray(a.contents,Vf.is))&&(i.range===void 0||dr.is(i.range))}t.is=r})(Gp||(Gp={}));var $p;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})($p||($p={}));var Kp;(function(t){function r(i,a){for(var s=[],d=2;d<arguments.length;d++)s[d-2]=arguments[d];var y={label:i};return Ze.defined(a)&&(y.documentation=a),Ze.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(Kp||(Kp={}));var Yp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Yp||(Yp={}));var Jp;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(Jp||(Jp={}));var Hi;(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})(Hi||(Hi={}));var Xp;(function(t){t.Deprecated=1})(Xp||(Xp={}));var Qp;(function(t){function r(i,a,s,d,y){var A={name:i,kind:a,location:{uri:d,range:s}};return y&&(A.containerName=y),A}t.create=r})(Qp||(Qp={}));var Zp;(function(t){function r(a,s,d,y,A,w){var E={name:a,detail:s,kind:d,range:y,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)&&dr.is(s.range)&&dr.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})(Zp||(Zp={}));var qp;(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"})(qp||(qp={}));var _p;(function(t){function r(a,s){var d={diagnostics:a};return s!=null&&(d.only=s),d}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,vo.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(_p||(_p={}));var eh;(function(t){function r(a,s,d){var y={title:a},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Yl.is(s)?y.command=s:y.edit=s,A&&d!==void 0&&(y.kind=d),y}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,vo.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Yl.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||yd.is(s.edit))}t.is=i})(eh||(eh={}));var th;(function(t){function r(a,s){var d={range:a};return Ze.defined(s)&&(d.data=s),d}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.undefined(s.command)||Yl.is(s.command))}t.is=i})(th||(th={}));var rh;(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})(rh||(rh={}));var nh;(function(t){function r(a,s,d){return{range:a,target:s,data:d}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&dr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(nh||(nh={}));var Wf;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&dr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Wf||(Wf={}));var f0=null,ih;(function(t){function r(d,y,A,w){return new Wg(d,y,A,w)}t.create=r;function i(d){var y=d;return!!(Ze.defined(y)&&Ze.string(y.uri)&&(Ze.undefined(y.languageId)||Ze.string(y.languageId))&&Ze.uinteger(y.lineCount)&&Ze.func(y.getText)&&Ze.func(y.positionAt)&&Ze.func(y.offsetAt))}t.is=i;function a(d,y){for(var A=d.getText(),w=s(y,function(oe,ye){var he=oe.range.start.line-ye.range.start.line;return he===0?oe.range.start.character-ye.range.start.character:he}),E=A.length,R=w.length-1;R>=0;R--){var W=w[R],ae=d.offsetAt(W.range.start),re=d.offsetAt(W.range.end);if(re<=E)A=A.substring(0,ae)+W.newText+A.substring(re,A.length);else throw new Error("Overlapping edit");E=ae}return A}t.applyEdits=a;function s(d,y){if(d.length<=1)return d;var A=d.length/2|0,w=d.slice(0,A),E=d.slice(A);s(w,y),s(E,y);for(var R=0,W=0,ae=0;R<w.length&&W<E.length;){var re=y(w[R],E[W]);re<=0?d[ae++]=w[R++]:d[ae++]=E[W++]}for(;R<w.length;)d[ae++]=w[R++];for(;W<E.length;)d[ae++]=E[W++];return d}})(ih||(ih={}));var Wg=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 d=i.charAt(s);a=d==="\r"||d===`
|
|
372
372
|
`,d==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
373
|
-
`&&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 wi.create(0,r);for(;a<s;){var d=Math.floor((a+s)/2);i[d]>r?s=d:a=d+1}var y=a-1;return wi.create(y,r-i[y])},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(te){return typeof te!="undefined"}t.defined=i;function a(te){return typeof te=="undefined"}t.undefined=a;function s(te){return te===!0||te===!1}t.boolean=s;function d(te){return r.call(te)==="[object String]"}t.string=d;function y(te){return r.call(te)==="[object Number]"}t.number=y;function A(te,le,ye){return r.call(te)==="[object Number]"&&le<=te&&te<=ye}t.numberRange=A;function w(te){return r.call(te)==="[object Number]"&&-2147483648<=te&&te<=2147483647}t.integer=w;function E(te){return r.call(te)==="[object Number]"&&0<=te&&te<=2147483647}t.uinteger=E;function R(te){return r.call(te)==="[object Function]"}t.func=R;function W(te){return te!==null&&typeof te=="object"}t.objectLiteral=W;function ne(te,le){return Array.isArray(te)&&te.every(le)}t.typedArray=ne})(Ze||(Ze={}));var oh=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 d=s[a];if(t.isIncremental(d)){var y=sh(d.range),A=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,A)+d.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),R=Math.max(y.end.line,0),W=this._lineOffsets,ne=ah(d.text,!1,A);if(R-E===ne.length)for(var te=0,le=ne.length;te<le;te++)W[te+E+1]=ne[te];else ne.length<1e4?W.splice.apply(W,[E+1,R-E].concat(ne)):this._lineOffsets=W=W.slice(0,E+1).concat(ne,W.slice(R+1));var ye=d.text.length-(w-A);if(ye!==0)for(var te=E+1+ne.length,le=W.length;te<le;te++)W[te]=W[te]+ye}else if(t.isFull(d))this._content=d.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=ah(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 d=Math.floor((a+s)/2);i[d]>r?s=d:a=d+1}var y=a-1;return{line:y,character:r-i[y]}},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}(),Hf;(function(t){function r(s,d,y,A){return new oh(s,d,y,A)}t.create=r;function i(s,d,y){if(s instanceof oh)return s.update(d,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,d){for(var y=s.getText(),A=bd(d.map(Hg),function(le,ye){var ve=le.range.start.line-ye.range.start.line;return ve===0?le.range.start.character-ye.range.start.character:ve}),w=0,E=[],R=0,W=A;R<W.length;R++){var ne=W[R],te=s.offsetAt(ne.range.start);if(te<w)throw new Error("Overlapping edit");te>w&&E.push(y.substring(w,te)),ne.newText.length&&E.push(ne.newText),w=s.offsetAt(ne.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=a})(Hf||(Hf={}));function bd(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);bd(a,r),bd(s,r);for(var d=0,y=0,A=0;d<a.length&&y<s.length;){var w=r(a[d],s[y]);w<=0?t[A++]=a[d++]:t[A++]=s[y++]}for(;d<a.length;)t[A++]=a[d++];for(;y<s.length;)t[A++]=s[y++];return t}function ah(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var d=t.charCodeAt(s);(d===13||d===10)&&(d===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function sh(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 Hg(t){var r=sh(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var nr;(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"})(nr||(nr={}));var lh;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[go.Markdown,go.PlainText],commitCharactersSupport:!0}}}}})(lh||(lh={}));var Ta=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)s.hasOwnProperty(d)&&(a[d]=s[d])},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)}}(),zg={"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,}))$/}},Pa=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}(),Gg=function(t){Ta(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(Pa),uh=function(t){Ta(r,t);function r(i,a,s){var d=t.call(this,i,s)||this;return d.type="boolean",d.value=a,d}return r}(Pa),$g=function(t){Ta(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}(Pa),Kg=function(t){Ta(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}(Pa),fh=function(t){Ta(r,t);function r(i,a,s){var d=t.call(this,i,a,s)||this;return d.type="string",d.value="",d}return r}(Pa),Yg=function(t){Ta(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}(Pa),Jg=function(t){Ta(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}(Pa);function Un(t){return Wi(t)?t?{}:{not:{}}:t}var ch;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ch||(ch={}));var Xg=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||dh(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),wd=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}(),jn=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===nr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(d){return JSON.stringify(d)}).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 Qg(t,r){return r===void 0&&(r=[]),new ph(t,r,[])}function jo(t){return Ug(t)}function Sd(t){return Bg(t)}function dh(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var ph=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 Ng(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),d=a.children;if(Array.isArray(d))for(var y=0;y<d.length&&s;y++)s=i(d[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new jn;return xn(this.root,i,a,wd.instance),a.problems.map(function(s){var d=dr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return vo.create(d,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 Xg(i,a);return this.root&&r&&xn(this.root,r,new jn,s),s.schemas},t}();function xn(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":y(t,r,i,a);break;case"number":d(t,r,i,a);break;case"property":return xn(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(it){return t.type===it||it==="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:$t.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:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var R=0,W=r.allOf;R<W.length;R++){var ne=W[R];xn(t,Un(ne),i,a)}var te=Un(r.not);if(te){var le=new jn,ye=a.newSub();xn(t,te,le,ye),le.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ve=0,Ae=ye.schemas;ve<Ae.length;ve++){var me=Ae[ve];me.inverted=!me.inverted,a.add(me)}}var Te=function(it,at){for(var Pt=[],Ht=null,ur=0,Dr=it;ur<Dr.length;ur++){var Ir=Dr[ur],rn=Un(Ir),Cr=new jn,Hr=a.newSub();if(xn(t,rn,Cr,Hr),Cr.hasProblems()||Pt.push(rn),!Ht)Ht={schema:rn,validationResult:Cr,matchingSchemas:Hr};else if(!at&&!Cr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Hr),Ht.validationResult.propertiesMatches+=Cr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=Cr.propertiesValueMatches;else{var In=Cr.compare(Ht.validationResult);In>0?Ht={schema:rn,validationResult:Cr,matchingSchemas:Hr}:In===0&&(Ht.matchingSchemas.merge(Hr),Ht.validationResult.mergeEnumValues(Cr))}}return Pt.length>1&&at&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.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)),Pt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var He=function(it){var at=new jn,Pt=a.newSub();xn(t,Un(it),at,Pt),i.merge(at),i.propertiesMatches+=at.propertiesMatches,i.propertiesValueMatches+=at.propertiesValueMatches,a.merge(Pt)},Ue=function(it,at,Pt){var Ht=Un(it),ur=new jn,Dr=a.newSub();xn(t,Ht,ur,Dr),a.merge(Dr),ur.hasProblems()?Pt&&He(Pt):at&&He(at)},ze=Un(r.if);if(ze&&Ue(ze,Un(r.then),Un(r.else)),Array.isArray(r.enum)){for(var Ne=jo(t),Be=!1,We=0,Ye=r.enum;We<Ye.length;We++){var et=Ye[We];if(Gl(Ne,et)){Be=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Be,Be||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:nr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(it){return JSON.stringify(it)}).join(", ")+"."})}if(ho(r.const)){var Ne=jo(t);Gl(Ne,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:nr.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:$t.Warning,message:r.deprecationMessage})}function d(E,R,W,ne){var te=E.value;qn(R.multipleOf)&&te%R.multipleOf!=0&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is not divisible by "+R.multipleOf+"."});function le(He,Ue){if(qn(Ue))return Ue;if(Wi(Ue)&&Ue)return He}function ye(He,Ue){if(!Wi(Ue)||!Ue)return He}var ve=le(R.minimum,R.exclusiveMinimum);qn(ve)&&te<=ve&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ve+"."});var Ae=le(R.maximum,R.exclusiveMaximum);qn(Ae)&&te>=Ae&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ae+"."});var me=ye(R.minimum,R.exclusiveMinimum);qn(me)&&te<me&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Te=ye(R.maximum,R.exclusiveMaximum);qn(Te)&&te>Te&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(E,R,W,ne){if(qn(R.minLength)&&E.value.length<R.minLength&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+R.minLength+"."}),qn(R.maxLength)&&E.value.length>R.maxLength&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is longer than the maximum length of "+R.maxLength+"."}),Vg(R.pattern)){var te=new RegExp(R.pattern);te.test(E.value)||W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.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 ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ye?!ye[2]&&R.format==="uri"&&(le="URI with a scheme is expected."):le="URI is expected."}le&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.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 ve=zg[R.format];(!E.value||!ve.pattern.exec(E.value))&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:R.patternErrorMessage||R.errorMessage||ve.errorMessage});break;default:}}function A(E,R,W,ne){if(Array.isArray(R.items)){for(var te=R.items,le=0;le<te.length;le++){var ye=te[le],ve=Un(ye),Ae=new jn,me=E.items[le];me?(xn(me,ve,Ae,ne),W.mergePropertyMatch(Ae)):E.items.length>=te.length&&W.propertiesValueMatches++}if(E.items.length>te.length)if(typeof R.additionalItems=="object")for(var Te=te.length;Te<E.items.length;Te++){var Ae=new jn;xn(E.items[Te],R.additionalItems,Ae,ne),W.mergePropertyMatch(Ae)}else R.additionalItems===!1&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+te.length+" or fewer."})}else{var He=Un(R.items);if(He)for(var Ue=0,ze=E.items;Ue<ze.length;Ue++){var me=ze[Ue],Ae=new jn;xn(me,He,Ae,ne),W.mergePropertyMatch(Ae)}}var Ne=Un(R.contains);if(Ne){var Be=E.items.some(function(et){var it=new jn;return xn(et,Ne,it,wd.instance),!it.hasProblems()});Be||W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:R.errorMessage||"Array does not contain required item."})}if(qn(R.minItems)&&E.items.length<R.minItems&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too few items. Expected "+R.minItems+" or more."}),qn(R.maxItems)&&E.items.length>R.maxItems&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items. Expected "+R.maxItems+" or fewer."}),R.uniqueItems===!0){var We=jo(E),Ye=We.some(function(et,it){return it!==We.lastIndexOf(et)});Ye&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(E,R,W,ne){for(var te=Object.create(null),le=[],ye=0,ve=E.properties;ye<ve.length;ye++){var Ae=ve[ye],me=Ae.keyNode.value;te[me]=Ae.valueNode,le.push(me)}if(Array.isArray(R.required))for(var Te=0,He=R.required;Te<He.length;Te++){var Ue=He[Te];if(!te[Ue]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Ne=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};W.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+Ue+'".'})}}var Be=function(Ei){for(var iu=le.indexOf(Ei);iu>=0;)le.splice(iu,1),iu=le.indexOf(Ei)};if(R.properties)for(var We=0,Ye=Object.keys(R.properties);We<Ye.length;We++){var Ue=Ye[We];Be(Ue);var et=R.properties[Ue],it=te[Ue];if(it)if(Wi(et))if(et)W.propertiesMatches++,W.propertiesValueMatches++;else{var Ae=it.parent;W.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var at=new jn;xn(it,et,at,ne),W.mergePropertyMatch(at)}}if(R.patternProperties)for(var Pt=0,Ht=Object.keys(R.patternProperties);Pt<Ht.length;Pt++)for(var ur=Ht[Pt],Dr=new RegExp(ur),Ir=0,rn=le.slice(0);Ir<rn.length;Ir++){var Ue=rn[Ir];if(Dr.test(Ue)){Be(Ue);var it=te[Ue];if(it){var et=R.patternProperties[ur];if(Wi(et))if(et)W.propertiesMatches++,W.propertiesValueMatches++;else{var Ae=it.parent;W.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var at=new jn;xn(it,et,at,ne),W.mergePropertyMatch(at)}}}}if(typeof R.additionalProperties=="object")for(var Cr=0,Hr=le;Cr<Hr.length;Cr++){var Ue=Hr[Cr],it=te[Ue];if(it){var at=new jn;xn(it,R.additionalProperties,at,ne),W.mergePropertyMatch(at)}}else if(R.additionalProperties===!1&&le.length>0)for(var In=0,Jt=le;In<Jt.length;In++){var Ue=Jt[In],it=te[Ue];if(it){var Ae=it.parent;W.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}}if(qn(R.maxProperties)&&E.properties.length>R.maxProperties&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has more properties than limit of "+R.maxProperties+"."}),qn(R.minProperties)&&E.properties.length<R.minProperties&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+R.minProperties}),R.dependencies)for(var kt=0,Bt=Object.keys(R.dependencies);kt<Bt.length;kt++){var me=Bt[kt],fr=te[me];if(fr){var hn=R.dependencies[me];if(Array.isArray(hn))for(var wr=0,Rs=hn;wr<Rs.length;wr++){var ru=Rs[wr];te[ru]?W.propertiesValueMatches++:W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var et=Un(hn);if(et){var at=new jn;xn(E,et,at,ne),W.mergePropertyMatch(at)}}}}var Fa=Un(R.propertyNames);if(Fa)for(var zi=0,nu=E.properties;zi<nu.length;zi++){var Xf=nu[zi],me=Xf.keyNode;me&&xn(me,Fa,W,wd.instance)}}}function Zg(t,r){var i=[],a=-1,s=t.getText(),d=Cs(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var ze=d.scan();switch(W(),ze){case 12:case 13:Array.isArray(y)&&y.push(dr.create(t.positionAt(d.getTokenOffset()),t.positionAt(d.getTokenOffset()+d.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return d.getToken()===ze?(A(),!0):!1}function E(ze,Ne,Be,We,Ye){if(Ye===void 0&&(Ye=$t.Error),i.length===0||Be!==a){var et=dr.create(t.positionAt(Be),t.positionAt(We));i.push(vo.create(et,ze,Ye,Ne,t.languageId)),a=Be}}function R(ze,Ne,Be,We,Ye){Be===void 0&&(Be=null),We===void 0&&(We=[]),Ye===void 0&&(Ye=[]);var et=d.getTokenOffset(),it=d.getTokenOffset()+d.getTokenLength();if(et===it&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;it=et+1}if(E(ze,Ne,et,it),Be&&ne(Be,!1),We.length+Ye.length>0)for(var at=d.getToken();at!==17;){if(We.indexOf(at)!==-1){A();break}else if(Ye.indexOf(at)!==-1)break;at=A()}return Be}function W(){switch(d.getTokenError()){case 4:return R("Invalid unicode sequence in string.",nr.InvalidUnicode),!0;case 5:return R("Invalid escape character in string.",nr.InvalidEscapeCharacter),!0;case 3:return R("Unexpected end of number.",nr.UnexpectedEndOfNumber),!0;case 1:return R("Unexpected end of comment.",nr.UnexpectedEndOfComment),!0;case 2:return R("Unexpected end of string.",nr.UnexpectedEndOfString),!0;case 6:return R("Invalid characters in string. Control characters must be escaped.",nr.InvalidCharacter),!0}return!1}function ne(ze,Ne){return ze.length=d.getTokenOffset()+d.getTokenLength()-ze.offset,Ne&&A(),ze}function te(ze){if(d.getToken()!==3)return null;var Ne=new $g(ze,d.getTokenOffset());A();for(var Be=0,We=!1;d.getToken()!==4&&d.getToken()!==17;){if(d.getToken()===5){We||R("Value expected",nr.ValueExpected);var Ye=d.getTokenOffset();if(A(),d.getToken()===4){We&&E("Trailing comma",nr.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",nr.CommaExpected);var et=Te(Ne,Be++);et?Ne.items.push(et):R("Value expected",nr.ValueExpected,null,[],[4,5]),We=!0}return d.getToken()!==4?R("Expected comma or closing bracket",nr.CommaOrCloseBacketExpected,Ne):ne(Ne,!0)}function le(ze,Ne){var Be=new Yg(ze,d.getTokenOffset()),We=ve(Be);if(!We)if(d.getToken()===16){R("Property keys must be doublequoted",nr.Undefined);var Ye=new fh(Be,d.getTokenOffset(),d.getTokenLength());Ye.value=d.getTokenValue(),We=Ye,A()}else return null;Be.keyNode=We;var et=Ne[We.value];if(et?(E("Duplicate object key",nr.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,$t.Warning),typeof et=="object"&&E("DuplicateKeyWarning",nr.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Be,d.getToken()===6)Be.colonOffset=d.getTokenOffset(),A();else if(R("Colon expected",nr.ColonExpected),d.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(d.getTokenOffset()).line)return Be.length=We.length,Be;var it=Te(Be,We.value);return it?(Be.valueNode=it,Be.length=it.offset+it.length-Be.offset,Be):R("Value expected",nr.ValueExpected,Be,[],[2,5])}function ye(ze){if(d.getToken()!==1)return null;var Ne=new Jg(ze,d.getTokenOffset()),Be=Object.create(null);A();for(var We=!1;d.getToken()!==2&&d.getToken()!==17;){if(d.getToken()===5){We||R("Property expected",nr.PropertyExpected);var Ye=d.getTokenOffset();if(A(),d.getToken()===2){We&&E("Trailing comma",nr.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",nr.CommaExpected);var et=le(Ne,Be);et?Ne.properties.push(et):R("Property expected",nr.PropertyExpected,null,[],[2,5]),We=!0}return d.getToken()!==2?R("Expected comma or closing brace",nr.CommaOrCloseBraceExpected,Ne):ne(Ne,!0)}function ve(ze){if(d.getToken()!==10)return null;var Ne=new fh(ze,d.getTokenOffset());return Ne.value=d.getTokenValue(),ne(Ne,!0)}function Ae(ze){if(d.getToken()!==11)return null;var Ne=new Kg(ze,d.getTokenOffset());if(d.getTokenError()===0){var Be=d.getTokenValue();try{var We=JSON.parse(Be);if(!qn(We))return R("Invalid number format.",nr.Undefined,Ne);Ne.value=We}catch(Ye){return R("Invalid number format.",nr.Undefined,Ne)}Ne.isInteger=Be.indexOf(".")===-1}return ne(Ne,!0)}function me(ze){var Ne;switch(d.getToken()){case 7:return ne(new Gg(ze,d.getTokenOffset()),!0);case 8:return ne(new uh(ze,!0,d.getTokenOffset()),!0);case 9:return ne(new uh(ze,!1,d.getTokenOffset()),!0);default:return null}}function Te(ze,Ne){return te(ze)||ye(ze)||ve(ze)||Ae(ze)||me(ze)}var He=null,Ue=A();return Ue!==17&&(He=Te(null,null),He?d.getToken()!==17&&R("End of file expected.",nr.Undefined):R("Expected a JSON object, array or literal.",nr.Undefined)),new ph(He,i,y)}function Ad(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
373
|
+
`&&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 wi.create(0,r);for(;a<s;){var d=Math.floor((a+s)/2);i[d]>r?s=d:a=d+1}var y=a-1;return wi.create(y,r-i[y])},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 d(re){return r.call(re)==="[object String]"}t.string=d;function y(re){return r.call(re)==="[object Number]"}t.number=y;function A(re,oe,ye){return r.call(re)==="[object Number]"&&oe<=re&&re<=ye}t.numberRange=A;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 W(re){return re!==null&&typeof re=="object"}t.objectLiteral=W;function ae(re,oe){return Array.isArray(re)&&re.every(oe)}t.typedArray=ae})(Ze||(Ze={}));var oh=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 d=s[a];if(t.isIncremental(d)){var y=sh(d.range),A=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,A)+d.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),R=Math.max(y.end.line,0),W=this._lineOffsets,ae=ah(d.text,!1,A);if(R-E===ae.length)for(var re=0,oe=ae.length;re<oe;re++)W[re+E+1]=ae[re];else ae.length<1e4?W.splice.apply(W,[E+1,R-E].concat(ae)):this._lineOffsets=W=W.slice(0,E+1).concat(ae,W.slice(R+1));var ye=d.text.length-(w-A);if(ye!==0)for(var re=E+1+ae.length,oe=W.length;re<oe;re++)W[re]=W[re]+ye}else if(t.isFull(d))this._content=d.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=ah(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 d=Math.floor((a+s)/2);i[d]>r?s=d:a=d+1}var y=a-1;return{line:y,character:r-i[y]}},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}(),Hf;(function(t){function r(s,d,y,A){return new oh(s,d,y,A)}t.create=r;function i(s,d,y){if(s instanceof oh)return s.update(d,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,d){for(var y=s.getText(),A=bd(d.map(Hg),function(oe,ye){var he=oe.range.start.line-ye.range.start.line;return he===0?oe.range.start.character-ye.range.start.character:he}),w=0,E=[],R=0,W=A;R<W.length;R++){var ae=W[R],re=s.offsetAt(ae.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(y.substring(w,re)),ae.newText.length&&E.push(ae.newText),w=s.offsetAt(ae.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=a})(Hf||(Hf={}));function bd(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);bd(a,r),bd(s,r);for(var d=0,y=0,A=0;d<a.length&&y<s.length;){var w=r(a[d],s[y]);w<=0?t[A++]=a[d++]:t[A++]=s[y++]}for(;d<a.length;)t[A++]=a[d++];for(;y<s.length;)t[A++]=s[y++];return t}function ah(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var d=t.charCodeAt(s);(d===13||d===10)&&(d===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function sh(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 Hg(t){var r=sh(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var nr;(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"})(nr||(nr={}));var lh;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[go.Markdown,go.PlainText],commitCharactersSupport:!0}}}}})(lh||(lh={}));var Ta=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)s.hasOwnProperty(d)&&(a[d]=s[d])},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)}}(),zg={"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,}))$/}},Pa=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}(),Gg=function(t){Ta(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(Pa),uh=function(t){Ta(r,t);function r(i,a,s){var d=t.call(this,i,s)||this;return d.type="boolean",d.value=a,d}return r}(Pa),$g=function(t){Ta(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}(Pa),Kg=function(t){Ta(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}(Pa),fh=function(t){Ta(r,t);function r(i,a,s){var d=t.call(this,i,a,s)||this;return d.type="string",d.value="",d}return r}(Pa),Yg=function(t){Ta(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}(Pa),Jg=function(t){Ta(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}(Pa);function Un(t){return Wi(t)?t?{}:{not:{}}:t}var ch;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ch||(ch={}));var Xg=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||dh(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),wd=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}(),jn=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===nr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(d){return JSON.stringify(d)}).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 Qg(t,r){return r===void 0&&(r=[]),new ph(t,r,[])}function jo(t){return Ug(t)}function Sd(t){return Bg(t)}function dh(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var ph=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 Ng(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),d=a.children;if(Array.isArray(d))for(var y=0;y<d.length&&s;y++)s=i(d[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new jn;return xn(this.root,i,a,wd.instance),a.problems.map(function(s){var d=dr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return vo.create(d,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 Xg(i,a);return this.root&&r&&xn(this.root,r,new jn,s),s.schemas},t}();function xn(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":y(t,r,i,a);break;case"number":d(t,r,i,a);break;case"property":return xn(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(it){return t.type===it||it==="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:$t.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:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var R=0,W=r.allOf;R<W.length;R++){var ae=W[R];xn(t,Un(ae),i,a)}var re=Un(r.not);if(re){var oe=new jn,ye=a.newSub();xn(t,re,oe,ye),oe.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ye.schemas;he<Se.length;he++){var me=Se[he];me.inverted=!me.inverted,a.add(me)}}var Te=function(it,at){for(var Pt=[],Ht=null,ur=0,Dr=it;ur<Dr.length;ur++){var Ir=Dr[ur],rn=Un(Ir),Cr=new jn,Hr=a.newSub();if(xn(t,rn,Cr,Hr),Cr.hasProblems()||Pt.push(rn),!Ht)Ht={schema:rn,validationResult:Cr,matchingSchemas:Hr};else if(!at&&!Cr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Hr),Ht.validationResult.propertiesMatches+=Cr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=Cr.propertiesValueMatches;else{var In=Cr.compare(Ht.validationResult);In>0?Ht={schema:rn,validationResult:Cr,matchingSchemas:Hr}:In===0&&(Ht.matchingSchemas.merge(Hr),Ht.validationResult.mergeEnumValues(Cr))}}return Pt.length>1&&at&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.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)),Pt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var He=function(it){var at=new jn,Pt=a.newSub();xn(t,Un(it),at,Pt),i.merge(at),i.propertiesMatches+=at.propertiesMatches,i.propertiesValueMatches+=at.propertiesValueMatches,a.merge(Pt)},Ue=function(it,at,Pt){var Ht=Un(it),ur=new jn,Dr=a.newSub();xn(t,Ht,ur,Dr),a.merge(Dr),ur.hasProblems()?Pt&&He(Pt):at&&He(at)},ze=Un(r.if);if(ze&&Ue(ze,Un(r.then),Un(r.else)),Array.isArray(r.enum)){for(var Ne=jo(t),Be=!1,We=0,Ye=r.enum;We<Ye.length;We++){var et=Ye[We];if(Gl(Ne,et)){Be=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Be,Be||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:nr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(it){return JSON.stringify(it)}).join(", ")+"."})}if(ho(r.const)){var Ne=jo(t);Gl(Ne,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:nr.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:$t.Warning,message:r.deprecationMessage})}function d(E,R,W,ae){var re=E.value;qn(R.multipleOf)&&re%R.multipleOf!=0&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is not divisible by "+R.multipleOf+"."});function oe(He,Ue){if(qn(Ue))return Ue;if(Wi(Ue)&&Ue)return He}function ye(He,Ue){if(!Wi(Ue)||!Ue)return He}var he=oe(R.minimum,R.exclusiveMinimum);qn(he)&&re<=he&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=oe(R.maximum,R.exclusiveMaximum);qn(Se)&&re>=Se&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var me=ye(R.minimum,R.exclusiveMinimum);qn(me)&&re<me&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Te=ye(R.maximum,R.exclusiveMaximum);qn(Te)&&re>Te&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(E,R,W,ae){if(qn(R.minLength)&&E.value.length<R.minLength&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+R.minLength+"."}),qn(R.maxLength)&&E.value.length>R.maxLength&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is longer than the maximum length of "+R.maxLength+"."}),Vg(R.pattern)){var re=new RegExp(R.pattern);re.test(E.value)||W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.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 oe=void 0;if(!E.value)oe="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ye?!ye[2]&&R.format==="uri"&&(oe="URI with a scheme is expected."):oe="URI is expected."}oe&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:R.patternErrorMessage||R.errorMessage||"String is not a URI: "+oe})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=zg[R.format];(!E.value||!he.pattern.exec(E.value))&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:R.patternErrorMessage||R.errorMessage||he.errorMessage});break;default:}}function A(E,R,W,ae){if(Array.isArray(R.items)){for(var re=R.items,oe=0;oe<re.length;oe++){var ye=re[oe],he=Un(ye),Se=new jn,me=E.items[oe];me?(xn(me,he,Se,ae),W.mergePropertyMatch(Se)):E.items.length>=re.length&&W.propertiesValueMatches++}if(E.items.length>re.length)if(typeof R.additionalItems=="object")for(var Te=re.length;Te<E.items.length;Te++){var Se=new jn;xn(E.items[Te],R.additionalItems,Se,ae),W.mergePropertyMatch(Se)}else R.additionalItems===!1&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var He=Un(R.items);if(He)for(var Ue=0,ze=E.items;Ue<ze.length;Ue++){var me=ze[Ue],Se=new jn;xn(me,He,Se,ae),W.mergePropertyMatch(Se)}}var Ne=Un(R.contains);if(Ne){var Be=E.items.some(function(et){var it=new jn;return xn(et,Ne,it,wd.instance),!it.hasProblems()});Be||W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:R.errorMessage||"Array does not contain required item."})}if(qn(R.minItems)&&E.items.length<R.minItems&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too few items. Expected "+R.minItems+" or more."}),qn(R.maxItems)&&E.items.length>R.maxItems&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items. Expected "+R.maxItems+" or fewer."}),R.uniqueItems===!0){var We=jo(E),Ye=We.some(function(et,it){return it!==We.lastIndexOf(et)});Ye&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(E,R,W,ae){for(var re=Object.create(null),oe=[],ye=0,he=E.properties;ye<he.length;ye++){var Se=he[ye],me=Se.keyNode.value;re[me]=Se.valueNode,oe.push(me)}if(Array.isArray(R.required))for(var Te=0,He=R.required;Te<He.length;Te++){var Ue=He[Te];if(!re[Ue]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Ne=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};W.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+Ue+'".'})}}var Be=function(Ei){for(var iu=oe.indexOf(Ei);iu>=0;)oe.splice(iu,1),iu=oe.indexOf(Ei)};if(R.properties)for(var We=0,Ye=Object.keys(R.properties);We<Ye.length;We++){var Ue=Ye[We];Be(Ue);var et=R.properties[Ue],it=re[Ue];if(it)if(Wi(et))if(et)W.propertiesMatches++,W.propertiesValueMatches++;else{var Se=it.parent;W.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var at=new jn;xn(it,et,at,ae),W.mergePropertyMatch(at)}}if(R.patternProperties)for(var Pt=0,Ht=Object.keys(R.patternProperties);Pt<Ht.length;Pt++)for(var ur=Ht[Pt],Dr=new RegExp(ur),Ir=0,rn=oe.slice(0);Ir<rn.length;Ir++){var Ue=rn[Ir];if(Dr.test(Ue)){Be(Ue);var it=re[Ue];if(it){var et=R.patternProperties[ur];if(Wi(et))if(et)W.propertiesMatches++,W.propertiesValueMatches++;else{var Se=it.parent;W.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}else{var at=new jn;xn(it,et,at,ae),W.mergePropertyMatch(at)}}}}if(typeof R.additionalProperties=="object")for(var Cr=0,Hr=oe;Cr<Hr.length;Cr++){var Ue=Hr[Cr],it=re[Ue];if(it){var at=new jn;xn(it,R.additionalProperties,at,ae),W.mergePropertyMatch(at)}}else if(R.additionalProperties===!1&&oe.length>0)for(var In=0,Jt=oe;In<Jt.length;In++){var Ue=Jt[In],it=re[Ue];if(it){var Se=it.parent;W.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:$t.Warning,message:R.errorMessage||"Property "+Ue+" is not allowed."})}}if(qn(R.maxProperties)&&E.properties.length>R.maxProperties&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has more properties than limit of "+R.maxProperties+"."}),qn(R.minProperties)&&E.properties.length<R.minProperties&&W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+R.minProperties}),R.dependencies)for(var kt=0,Bt=Object.keys(R.dependencies);kt<Bt.length;kt++){var me=Bt[kt],fr=re[me];if(fr){var hn=R.dependencies[me];if(Array.isArray(hn))for(var wr=0,Rs=hn;wr<Rs.length;wr++){var ru=Rs[wr];re[ru]?W.propertiesValueMatches++:W.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object is missing property "+ru+" required by property {$key}."})}else{var et=Un(hn);if(et){var at=new jn;xn(E,et,at,ae),W.mergePropertyMatch(at)}}}}var Fa=Un(R.propertyNames);if(Fa)for(var zi=0,nu=E.properties;zi<nu.length;zi++){var Xf=nu[zi],me=Xf.keyNode;me&&xn(me,Fa,W,wd.instance)}}}function Zg(t,r){var i=[],a=-1,s=t.getText(),d=Cs(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var ze=d.scan();switch(W(),ze){case 12:case 13:Array.isArray(y)&&y.push(dr.create(t.positionAt(d.getTokenOffset()),t.positionAt(d.getTokenOffset()+d.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return d.getToken()===ze?(A(),!0):!1}function E(ze,Ne,Be,We,Ye){if(Ye===void 0&&(Ye=$t.Error),i.length===0||Be!==a){var et=dr.create(t.positionAt(Be),t.positionAt(We));i.push(vo.create(et,ze,Ye,Ne,t.languageId)),a=Be}}function R(ze,Ne,Be,We,Ye){Be===void 0&&(Be=null),We===void 0&&(We=[]),Ye===void 0&&(Ye=[]);var et=d.getTokenOffset(),it=d.getTokenOffset()+d.getTokenLength();if(et===it&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;it=et+1}if(E(ze,Ne,et,it),Be&&ae(Be,!1),We.length+Ye.length>0)for(var at=d.getToken();at!==17;){if(We.indexOf(at)!==-1){A();break}else if(Ye.indexOf(at)!==-1)break;at=A()}return Be}function W(){switch(d.getTokenError()){case 4:return R("Invalid unicode sequence in string.",nr.InvalidUnicode),!0;case 5:return R("Invalid escape character in string.",nr.InvalidEscapeCharacter),!0;case 3:return R("Unexpected end of number.",nr.UnexpectedEndOfNumber),!0;case 1:return R("Unexpected end of comment.",nr.UnexpectedEndOfComment),!0;case 2:return R("Unexpected end of string.",nr.UnexpectedEndOfString),!0;case 6:return R("Invalid characters in string. Control characters must be escaped.",nr.InvalidCharacter),!0}return!1}function ae(ze,Ne){return ze.length=d.getTokenOffset()+d.getTokenLength()-ze.offset,Ne&&A(),ze}function re(ze){if(d.getToken()!==3)return null;var Ne=new $g(ze,d.getTokenOffset());A();for(var Be=0,We=!1;d.getToken()!==4&&d.getToken()!==17;){if(d.getToken()===5){We||R("Value expected",nr.ValueExpected);var Ye=d.getTokenOffset();if(A(),d.getToken()===4){We&&E("Trailing comma",nr.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",nr.CommaExpected);var et=Te(Ne,Be++);et?Ne.items.push(et):R("Value expected",nr.ValueExpected,null,[],[4,5]),We=!0}return d.getToken()!==4?R("Expected comma or closing bracket",nr.CommaOrCloseBacketExpected,Ne):ae(Ne,!0)}function oe(ze,Ne){var Be=new Yg(ze,d.getTokenOffset()),We=he(Be);if(!We)if(d.getToken()===16){R("Property keys must be doublequoted",nr.Undefined);var Ye=new fh(Be,d.getTokenOffset(),d.getTokenLength());Ye.value=d.getTokenValue(),We=Ye,A()}else return null;Be.keyNode=We;var et=Ne[We.value];if(et?(E("Duplicate object key",nr.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,$t.Warning),typeof et=="object"&&E("DuplicateKeyWarning",nr.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Be,d.getToken()===6)Be.colonOffset=d.getTokenOffset(),A();else if(R("Colon expected",nr.ColonExpected),d.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(d.getTokenOffset()).line)return Be.length=We.length,Be;var it=Te(Be,We.value);return it?(Be.valueNode=it,Be.length=it.offset+it.length-Be.offset,Be):R("Value expected",nr.ValueExpected,Be,[],[2,5])}function ye(ze){if(d.getToken()!==1)return null;var Ne=new Jg(ze,d.getTokenOffset()),Be=Object.create(null);A();for(var We=!1;d.getToken()!==2&&d.getToken()!==17;){if(d.getToken()===5){We||R("Property expected",nr.PropertyExpected);var Ye=d.getTokenOffset();if(A(),d.getToken()===2){We&&E("Trailing comma",nr.TrailingComma,Ye,Ye+1);continue}}else We&&R("Expected comma",nr.CommaExpected);var et=oe(Ne,Be);et?Ne.properties.push(et):R("Property expected",nr.PropertyExpected,null,[],[2,5]),We=!0}return d.getToken()!==2?R("Expected comma or closing brace",nr.CommaOrCloseBraceExpected,Ne):ae(Ne,!0)}function he(ze){if(d.getToken()!==10)return null;var Ne=new fh(ze,d.getTokenOffset());return Ne.value=d.getTokenValue(),ae(Ne,!0)}function Se(ze){if(d.getToken()!==11)return null;var Ne=new Kg(ze,d.getTokenOffset());if(d.getTokenError()===0){var Be=d.getTokenValue();try{var We=JSON.parse(Be);if(!qn(We))return R("Invalid number format.",nr.Undefined,Ne);Ne.value=We}catch(Ye){return R("Invalid number format.",nr.Undefined,Ne)}Ne.isInteger=Be.indexOf(".")===-1}return ae(Ne,!0)}function me(ze){var Ne;switch(d.getToken()){case 7:return ae(new Gg(ze,d.getTokenOffset()),!0);case 8:return ae(new uh(ze,!0,d.getTokenOffset()),!0);case 9:return ae(new uh(ze,!1,d.getTokenOffset()),!0);default:return null}}function Te(ze,Ne){return re(ze)||ye(ze)||he(ze)||Se(ze)||me(ze)}var He=null,Ue=A();return Ue!==17&&(He=Te(null,null),He?d.getToken()!==17&&R("End of file expected.",nr.Undefined):R("Expected a JSON object, array or literal.",nr.Undefined)),new ph(He,i,y)}function Ad(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
374
374
|
`,d=0;d<t.length;d++)s+=a+Ad(t[d],a,i),d<t.length-1&&(s+=","),s+=`
|
|
375
375
|
`;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
|
|
376
376
|
`,d=0;d<y.length;d++){var A=y[d];s+=a+JSON.stringify(A)+": "+Ad(t[A],a,i),d<y.length-1&&(s+=","),s+=`
|
|
377
|
-
`}return s+=r+"}",s}}return i(t)}function qg(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 Ed(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function _g(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c0(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var ey=[",","}","]"],ty=[":"],ry=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,d={items:[],isIncomplete:!1},y=r.getText(),A=r.offsetAt(i),w=a.getNodeFromOffset(A,!0);if(this.isInComment(r,w?w.offset:0,A))return Promise.resolve(d);if(w&&A===w.offset+w.length&&A>0){var E=y[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var R=this.getCurrentWord(r,A),W=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))W=dr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var
|
|
377
|
+
`}return s+=r+"}",s}}return i(t)}function qg(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 Ed(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function _g(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function c0(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var ey=[",","}","]"],ty=[":"],ry=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,d={items:[],isIncomplete:!1},y=r.getText(),A=r.offsetAt(i),w=a.getNodeFromOffset(A,!0);if(this.isInComment(r,w?w.offset:0,A))return Promise.resolve(d);if(w&&A===w.offset+w.length&&A>0){var E=y[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var R=this.getCurrentWord(r,A),W=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))W=dr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ae=A-R.length;ae>0&&y[ae-1]==='"'&&ae--,W=dr.create(r.positionAt(ae),i)}var re=this.doesSupportsCommitCharacters(),oe={},ye={add:function(he){var Se=oe[he.label];Se?Se.documentation||(Se.documentation=he.documentation):(oe[he.label]=he,W&&(he.textEdit=Si.replace(W,he.insertText)),re&&(he.commitCharacters=he.kind===_n.Property?ty:ey),d.items.push(he))},setAsIncomplete:function(){d.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return d.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(he){var Se=[],me=!0,Te="",He=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(me=!Ue.valueNode,He=Ue,Te=y.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===A)return d;var ze=w.properties;ze.forEach(function(Ye){(!He||He!==Ye)&&(oe[Ye.keyNode.value]=xd.create("__"))});var Ne="";me&&(Ne=s.evaluateSeparatorAfter(r,r.offsetAt(W.end))),he?s.getPropertyCompletions(he,a,w,me,Ne,ye):s.getSchemaLessPropertyCompletions(a,w,Te,ye);var Be=Sd(w);s.contributions.forEach(function(Ye){var et=Ye.collectPropertyCompletions(r.uri,Be,R,me,Ne==="",ye);et&&Se.push(et)}),!he&&R.length>0&&y.charAt(A-R.length-1)!=='"'&&(ye.add({kind:_n.Property,label:s.getLabelForValue(R),insertText:s.getInsertTextForProperty(R,null,!1,Ne),insertTextFormat:an.Snippet,documentation:""}),ye.setAsIncomplete())}var We={};return he?s.getValueCompletions(he,a,w,A,r,ye,We):s.getSchemaLessValueCompletions(a,w,A,r,ye),s.contributions.length>0&&s.getContributedValueCompletions(a,w,A,r,ye,Se),s.promiseConstructor.all(Se).then(function(){if(ye.getNumberOfProposals()===0){var Ye=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Ye=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Ye);s.addFillerValueCompletions(We,et,ye)}return d})})},t.prototype.getPropertyCompletions=function(r,i,a,s,d,y){var A=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(W){var ae=R[W],re=!1;if(typeof ae=="object"&&ae.allOf)for(var oe=0,ye=ae.allOf;oe<ye.length;oe++){var he=ye[oe];if(he.readOnly){re=!0;break}}if(typeof ae=="object"&&!ae.deprecationMessage&&!ae.doNotSuggest&&!re){var Se={kind:_n.Property,label:A.sanitizeLabel(W),insertText:A.getInsertTextForProperty(W,ae,s,d),insertTextFormat:an.Snippet,filterText:A.getFilterTextForValue(W),documentation:A.fromMarkup(ae.markdownDescription)||ae.description||""};Ed(Se.insertText,"$1"+d)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var d=this,y=function(w){w.properties.forEach(function(E){var R=E.keyNode.value;s.add({kind:_n.Property,label:d.sanitizeLabel(R),insertText:d.getInsertTextForValue(R,""),insertTextFormat:an.Snippet,filterText:d.getFilterTextForValue(R),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"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind:_n.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:an.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,d){var y=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){d.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:an.Snippet,documentation:""}),d.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:an.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,A),E=function(re){dh(re.parent,a,!0)||d.add({kind:y.getSuggestionKind(re.type),label:y.getLabelTextForMatchingNode(re,s),insertText:y.getInsertTextForMatchingNode(re,s,w),insertTextFormat:an.Snippet,documentation:""}),re.type==="boolean"&&y.addBooleanValueCompletion(!re.value,w,d)};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 W=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===W&&re.valueNode&&E(re.valueNode),!0}),W==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,d)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ae=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===ae&&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,d,y,A){var w=this,E=s,R=null,W=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(E=a.offset+a.length,W=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",y,A);return}if(a.type==="property"&&s>a.colonOffset){var ae=a.valueNode;if(ae&&s>ae.offset+ae.length)return;R=a.keyNode.value,a=a.parent}if(a&&(R!==null||a.type==="array")){var re=this.evaluateSeparatorAfter(d,E),oe=i.getMatchingSchemas(r.schema,a.offset,W);oe.forEach(function(ye){if(ye.node===a&&!ye.inverted&&ye.schema){if(a.type==="array"&&ye.schema.items)if(Array.isArray(ye.schema.items)){var he=w.findItemAtOffset(a,d,s);he<ye.schema.items.length&&w.addSchemaValueCompletions(ye.schema.items[he],re,y,A)}else w.addSchemaValueCompletions(ye.schema.items,re,y,A);if(ye.schema.properties){var Se=ye.schema.properties[R];Se&&w.addSchemaValueCompletions(Se,re,y,A)}}}),R==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(re,y),A.boolean&&(this.addBooleanValueCompletion(!0,re,y),this.addBooleanValueCompletion(!1,re,y)),A.null&&this.addNullValueCompletion(re,y)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,d,y){if(!i)this.contributions.forEach(function(R){var W=R.collectDefaultCompletions(s.uri,d);W&&y.push(W)});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=Sd(i.parent);this.contributions.forEach(function(R){var W=R.collectValueCompletions(s.uri,E,A,d);W&&y.push(W)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var d=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(y){return d.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return d.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return d.addSchemaValueCompletions(y,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var d=this;s===void 0&&(s=0);var y=!1;if(ho(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:an.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(R){for(var W=r.type,ae=R,re=s;re>0;re--)ae=[ae],W="array";a.add({kind:d.getSuggestionKind(W),label:d.getLabelForValue(ae),insertText:d.getInsertTextForValue(ae,i),insertTextFormat:an.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(R){var W=r.type,ae=R.body,re=R.label,oe,ye;if(ho(ae)){for(var he=r.type,Se=s;Se>0;Se--)ae=[ae],he="array";oe=d.getInsertTextForSnippetValue(ae,i),ye=d.getFilterTextForSnippetValue(ae),re=re||d.getLabelForSnippetValue(ae)}else if(typeof R.bodyText=="string"){for(var me="",Te="",He="",Se=s;Se>0;Se--)me=me+He+`[
|
|
378
378
|
`,Te=Te+`
|
|
379
|
-
`+He+"]",He+=" ",W="array";
|
|
379
|
+
`+He+"]",He+=" ",W="array";oe=me+He+R.bodyText.split(`
|
|
380
380
|
`).join(`
|
|
381
|
-
`+He)+Te+i,
|
|
382
|
-
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=Cs(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=Cs(i.getText(),!0),d=r.items,y=d.length-1;y>=0;y--){var A=d[y];if(a>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(a>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,a){var s=Cs(r.getText(),!1);s.setPosition(i);for(var d=s.scan();d!==17&&s.getTokenOffset()+s.getTokenLength()<a;)d=s.scan();return(d===12||d===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:go.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!ho(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(go.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!ho(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ny=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),d=a.getNodeFromOffset(s);if(!d||(d.type==="object"||d.type==="array")&&s>d.offset+1&&s<d.offset+d.length-1)return this.promise.resolve(null);var y=d;if(d.type==="string"){var A=d.parent;if(A&&A.type==="property"&&A.keyNode===d&&(d=A.valueNode,!d))return this.promise.resolve(null)}for(var w=dr.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(
|
|
381
|
+
`+He)+Te+i,re=re||d.sanitizeLabel(oe),ye=oe.replace(/[\n]/g,"")}a.add({kind:d.getSuggestionKind(W),label:re,documentation:d.fromMarkup(R.markdownDescription)||R.description,insertText:oe,insertTextFormat:an.Snippet,filterText:ye}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(ho(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:an.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,d=r.enum.length;s<d;s++){var y=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(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:an.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||ho(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:an.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:an.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:an.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:an.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(d){return d==="http"||d==="https"});s.forEach(function(d){return i.add({kind:_n.Module,label:a.getLabelForValue(d),filterText:a.getFilterTextForValue(d),insertText:a.getInsertTextForValue(d,r),insertTextFormat:an.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 Ad(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 _n.Value;switch(r){case"string":return _n.Value;case"object":return _n.Module;case"property":return _n.Property;default:return _n.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 d=this.getInsertTextForValue(r,"");if(!a)return d;var y=d+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;ho(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),ho(i.default)&&(A||(A=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":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 d}}}return(!A||w>1)&&(A="$1"),y+A+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
|
|
382
|
+
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=Cs(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=Cs(i.getText(),!0),d=r.items,y=d.length-1;y>=0;y--){var A=d[y];if(a>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(a>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,a){var s=Cs(r.getText(),!1);s.setPosition(i);for(var d=s.scan();d!==17&&s.getTokenOffset()+s.getTokenLength()<a;)d=s.scan();return(d===12||d===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:go.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!ho(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(go.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!ho(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),ny=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),d=a.getNodeFromOffset(s);if(!d||(d.type==="object"||d.type==="array")&&s>d.offset+1&&s<d.offset+d.length-1)return this.promise.resolve(null);var y=d;if(d.type==="string"){var A=d.parent;if(A&&A.type==="property"&&A.keyNode===d&&(d=A.valueNode,!d))return this.promise.resolve(null)}for(var w=dr.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(oe){var ye={contents:oe,range:w};return ye},R=Sd(d),W=this.contributions.length-1;W>=0;W--){var ae=this.contributions[W],re=ae.getInfoContribution(r.uri,R);if(re)return re.then(function(oe){return E(oe)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(oe){if(oe){var ye=a.getMatchingSchemas(oe.schema,d.offset),he=null,Se=null,me=null,Te=null;ye.every(function(Ue){if(Ue.node===d&&!Ue.inverted&&Ue.schema&&(he=he||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||Cd(Ue.schema.description),Ue.schema.enum)){var ze=Ue.schema.enum.indexOf(jo(d));Ue.schema.markdownEnumDescriptions?me=Ue.schema.markdownEnumDescriptions[ze]:Ue.schema.enumDescriptions&&(me=Cd(Ue.schema.enumDescriptions[ze])),me&&(Te=Ue.schema.enum[ze],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var He="";return he&&(He=Cd(he)),Se&&(He.length>0&&(He+=`
|
|
383
383
|
|
|
384
|
-
`),He+=
|
|
384
|
+
`),He+=Se),me&&(He.length>0&&(He+=`
|
|
385
385
|
|
|
386
386
|
`),He+="`"+iy(Te)+"`: "+me),E([He])}return null})},t}();function Cd(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
387
387
|
|
|
388
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function iy(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var oy=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)s.hasOwnProperty(d)&&(a[d]=s[d])},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)}}(),Jr,Zl;if(typeof process=="object")Zl=!1;else if(typeof navigator=="object"){var ay=navigator.userAgent;Zl=ay.indexOf("Windows")>=0}function d0(t){return 55296<=t&&t<=56319}function p0(t){return 56320<=t&&t<=57343}function h0(t){return t>=97&&t<=102}function sy(t){return t>=97&&t<=122}function ly(t){return t>=65&&t<=90}function v0(t){return sy(t)||ly(t)}var uy=/^\w[\w\d+.-]*$/,fy=/^\//,cy=/^\/\//;function dy(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&&!uy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!fy.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(cy.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 py(t,r){return!t&&!r?"file":t}function hy(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==Ai&&(r=Ai+r):r=Ai;break}return r}var xr="",Ai="/",vy=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Od=function(){function t(r,i,a,s,d,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||xr,this.authority=r.authority||xr,this.path=r.path||xr,this.query=r.query||xr,this.fragment=r.fragment||xr):(this.scheme=py(r,y),this.authority=i||xr,this.path=hy(this.scheme,a||xr),this.query=s||xr,this.fragment=d||xr,dy(this,y))}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 yh(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,d=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=xr),a===void 0?a=this.authority:a===null&&(a=xr),s===void 0?s=this.path:s===null&&(s=xr),d===void 0?d=this.query:d===null&&(d=xr),y===void 0?y=this.fragment:y===null&&(y=xr),i===this.scheme&&a===this.authority&&s===this.path&&d===this.query&&y===this.fragment?this:new Ts(i,a,s,d,y)},t.parse=function(r,i){i===void 0&&(i=!1);var a=vy.exec(r);return a?new Ts(a[2]||xr,zf(a[4]||xr),zf(a[5]||xr),zf(a[7]||xr),zf(a[9]||xr),i):new Ts(xr,xr,xr,xr,xr)},t.file=function(r){var i=xr;if(Zl&&(r=r.replace(/\\/g,Ai)),r[0]===Ai&&r[1]===Ai){var a=r.indexOf(Ai,2);a===-1?(i=r.substring(2),r=Ai):(i=r.substring(2,a),r=r.substring(a)||Ai)}return new Ts("file",i,r,xr,xr)},t.from=function(r){return new Ts(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),Td(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Ts(r);return i._formatted=r.external,i._fsPath=r._sep===hh?r.fsPath:null,i}else return r},t}(),hh=Zl?1:void 0,Ts=function(t){oy(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=yh(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?Td(this,!0):(this._formatted||(this._formatted=Td(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=hh),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}(Od),vh=(Jr={},Jr[58]="%3A",Jr[47]="%2F",Jr[63]="%3F",Jr[35]="%23",Jr[91]="%5B",Jr[93]="%5D",Jr[64]="%40",Jr[33]="%21",Jr[36]="%24",Jr[38]="%26",Jr[39]="%27",Jr[40]="%28",Jr[41]="%29",Jr[42]="%2A",Jr[43]="%2B",Jr[44]="%2C",Jr[59]="%3B",Jr[61]="%3D",Jr[32]="%20",Jr);function gh(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var d=t.charCodeAt(s);if(d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||r&&d===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 y=vh[d];y!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=y):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function gy(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+=vh[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function yh(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,Zl&&(i=i.replace(/\//g,"\\")),i}function Td(t,r){var i=r?gy:gh,a="",s=t.scheme,d=t.authority,y=t.path,A=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(d||s==="file")&&(a+=Ai,a+=Ai),d){var E=d.indexOf("@");if(E!==-1){var R=d.substr(0,E);d=d.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+="@"}d=d.toLowerCase(),E=d.indexOf(":"),E===-1?a+=i(d,!1):(a+=i(d.substr(0,E),!1),a+=d.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var W=y.charCodeAt(1);W>=65&&W<=90&&(y="/"+String.fromCharCode(W+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var W=y.charCodeAt(0);W>=65&&W<=90&&(y=String.fromCharCode(W+32)+":"+y.substr(2))}a+=i(y,!0)}return A&&(a+="?",a+=i(A,!1)),w&&(a+="#",a+=r?w:gh(w,!1)),a}function mh(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+mh(t.substr(3)):t}}var xh=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zf(t){return t.match(xh)?t.replace(xh,function(r){return mh(r)}):t}var yy=function(){function t(r){try{this.patternRegExp=new RegExp(_g(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}(),my=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Ps(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}(),Ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),bh=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Un(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,d=Object.keys(i.patternProperties);s<d.length;s++){var y=d[s],A=new RegExp(y);if(A.test(a))return this.getSectionRecursive(r,i.patternProperties[y])}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}(),xy=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=Od.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],d=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),A=0;A<d.length;A++){var w=d[A];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),d[A]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return Od.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 d=r.schemaAssociations;for(var y in d){var A=d[y];this.contributionAssociations[y]=A;for(var w=this.getOrAddFilePatternAssociation(y),E=0,R=A;E<R.length;E++){var W=R[E],a=this.normalizeId(W);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new my(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 yy(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 d=0,y=i;d<y.length;d++){var A=y[d];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,d=this.contributionAssociations[i];s<d.length;s++){var y=d[s],r=this.normalizeId(y);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 '"+Gf(r)+"'. No schema request service available";return this.promise.resolve(new Ps({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Gf(r)+"': No content.";return new Ps({},[s])}var d={},y=[];d=Dg(a,y);var A=y.length?["Unable to parse content from '"+Gf(r)+"': Parse error at offset "+y[0].offset]:[];return new Ps(d,A)},function(a){var s="Unable to load schema from '"+Gf(r)+"': "+a.toString();return new Ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,d=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bh({},["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(te,le){if(!le)return te;var ye=te;return le[0]==="/"&&(le=le.substr(1)),le.split("/").some(function(ve){return ye=ye[ve],!ye}),ye},R=function(te,le,ye,ve){var Ae=E(le,ve);if(Ae)for(var me in Ae)Ae.hasOwnProperty(me)&&!te.hasOwnProperty(me)&&(te[me]=Ae[me]);else d.push("$ref '"+ve+"' in '"+ye+"' can not be resolved.")},W=function(te,le,ye,ve,Ae){w&&!/^\w+:\/\/.*/.test(le)&&(le=w.resolveRelativePath(le,ve)),le=s.normalizeId(le);var me=s.getOrAddSchemaHandle(le);return me.getUnresolvedSchema().then(function(Te){if(Ae[le]=!0,Te.errors.length){var He=ye?le+"#"+ye:le;d.push("Problems loading reference '"+He+"': "+Te.errors[0]+".")}return R(te,Te.schema,le,ye),ne(te,Te.schema,le,me.dependencies)})},ne=function(te,le,ye,ve){if(!te||typeof te!="object")return Promise.resolve(null);for(var Ae=[te],me=[],Te=[],He=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];typeof at=="object"&&Ae.push(at)}},Ue=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];if(typeof at=="object")for(var Pt in at){var Ht=at[Pt];typeof Ht=="object"&&Ae.push(Ht)}}},ze=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];if(Array.isArray(at))for(var Pt=0,Ht=at;Pt<Ht.length;Pt++){var ur=Ht[Pt];typeof ur=="object"&&Ae.push(ur)}}},Ne=function(We){for(var Ye=[];We.$ref;){var et=We.$ref,it=et.split("#",2);if(delete We.$ref,it[0].length>0){Te.push(W(We,it[0],it[1],ye,ve));return}else Ye.indexOf(et)===-1&&(R(We,le,ye,it[1]),Ye.push(et))}He(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),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Ae.length;){var Be=Ae.pop();me.indexOf(Be)>=0||(me.push(Be),Ne(Be))}return s.promise.all(Te)};return ne(y,y,i,a).then(function(te){return new bh(y,d)})},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=jo(a[0].valueNode);if(s&&qg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var d=this.normalizeId(s);return this.getOrAddSchemaHandle(d).getResolvedSchema()}}}for(var y=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var R=E[w];if(R.matchesPattern(r))for(var W=0,ne=R.getSchemas();W<ne.length;W++){var te=ne[W];y[te]||(A.push(te),y[te]=!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(d){return{$ref:d}})};return this.addSchemaHandle(a,s)},t}();function Gf(t){try{}catch(r){}return t}var by=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:$t.Error)},t.prototype.doValidation=function(r,i,a,s){var d=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},w=function(W){var ne=W.range.start.line+" "+W.range.start.character+" "+W.message;A[ne]||(A[ne]=!0,y.push(W))},E=function(W){var ne=a?Ah(a.trailingCommas):$t.Error,te=a?Ah(a.comments):d.commentSeverity;if(W){if(W.errors.length&&i.root){var le=i.root,ye=le.type==="object"?le.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ve=ye.valueNode||ye,Ae=dr.create(r.positionAt(ve.offset),r.positionAt(ve.offset+ve.length));w(vo.create(Ae,W.errors[0],$t.Warning,nr.SchemaResolveError))}else{var Ae=dr.create(r.positionAt(le.offset),r.positionAt(le.offset+1));w(vo.create(Ae,W.errors[0],$t.Warning,nr.SchemaResolveError))}}else{var me=i.validate(r,W.schema);me&&me.forEach(w)}wh(W.schema)&&(te=void 0),Sh(W.schema)&&(ne=void 0)}for(var Te=0,He=i.syntaxErrors;Te<He.length;Te++){var Ue=He[Te];if(Ue.code===nr.TrailingComma){if(typeof ne!="number")continue;Ue.severity=ne}w(Ue)}if(typeof te=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(Ne){w(vo.create(Ne,ze,te,nr.CommentNotPermitted))})}return y};if(s){var R=s.id||"schemaservice://untitled/"+wy++;return this.jsonSchemaService.resolveSchemaContent(new Ps(s),R,{}).then(function(W){return E(W)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(W){return E(W)})},t}(),wy=0;function wh(t){if(t&&typeof t=="object"){if(Wi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=wh(a);if(Wi(s))return s}}}function Sh(t){if(t&&typeof t=="object"){if(Wi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Wi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=Sh(a);if(Wi(s))return s}}}function Ah(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Eh=48,Sy=57,Ay=65,$f=97,Ey=102;function Xr(t){return t<Eh?0:t<=Sy?t-Eh:(t<$f&&(t+=$f-Ay),t>=$f&&t<=Ey?t-$f+10:0)}function Cy(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:Xr(t.charCodeAt(4))*17/255};case 7:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:(Xr(t.charCodeAt(7))*16+Xr(t.charCodeAt(8)))/255}}return null}function g0(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var Oy=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 d=i.root;if(!d)return null;var y=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var w=[],E=0,R=d.items;E<R.length;E++){var W=R[E];if(W.type==="object")for(var ne=0,te=W.properties;ne<te.length;ne++){var le=te[ne];if(le.keyNode.value==="key"&&le.valueNode){var ye=$l.create(r.uri,Vo(r,W));if(w.push({name:jo(le.valueNode),kind:Hi.Function,location:ye}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var ve=function(me,Te,He){return y>=0&&(Te.type==="array"?Te.items.forEach(function(Ue){return ve(me,Ue,He)}):Te.type==="object"&&Te.properties.forEach(function(Ue){if(y>=0){var ze=Ue.valueNode;if(ze){y--;var Ne=$l.create(r.uri,Vo(r,Ue)),Be=He?He+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),location:Ne,containerName:He}),ve(me,ze,Be)}}})),me},Ae=ve([],d,void 0);return y<0&&(Ae.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A)),Ae},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var d=i.root;if(!d)return null;var y=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var w=[],E=0,R=d.items;E<R.length;E++){var W=R[E];if(W.type==="object")for(var ne=0,te=W.properties;ne<te.length;ne++){var le=te[ne];if(le.keyNode.value==="key"&&le.valueNode){var ye=Vo(r,W),ve=Vo(r,le.keyNode);if(w.push({name:jo(le.valueNode),kind:Hi.Function,range:ye,selectionRange:ve}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var Ae=function(Te,He){return y>=0&&(He.type==="array"?He.items.forEach(function(Ue,ze){if(Ue&&y>=0){y--;var Ne=Vo(r,Ue),Be=Ne,We=String(ze),Ye=Ae([],Ue);Te.push({name:We,kind:s.getSymbolKind(Ue.type),range:Ne,selectionRange:Be,children:Ye})}}):He.type==="object"&&He.properties.forEach(function(Ue){var ze=Ue.valueNode;if(ze&&y>=0){y--;var Ne=Vo(r,Ue),Be=Vo(r,Ue.keyNode),We=Ae([],ze);Te.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),range:Ne,selectionRange:Be,children:We})}})),Te},me=Ae([],d);return y<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Hi.Module;case"string":return Hi.String;case"number":return Hi.Number;case"array":return Hi.Array;case"boolean":return Hi.Boolean;default:return Hi.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 d=[];if(s)for(var y=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,R=A;E<R.length;E++){var W=R[E];if(!W.inverted&&W.schema&&(W.schema.format==="color"||W.schema.format==="color-hex")&&W.node&&W.node.type==="string"){var ne=String(W.node.offset);if(!w[ne]){var te=Cy(jo(W.node));if(te){var le=Vo(r,W.node);d.push({color:te,range:le})}if(w[ne]=!0,y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),d}}}return d})},t.prototype.getColorPresentations=function(r,i,a,s){var d=[],y=Math.round(a.red*255),A=Math.round(a.green*255),w=Math.round(a.blue*255);function E(W){var ne=W.toString(16);return ne.length!==2?"0"+ne:ne}var R;return a.alpha===1?R="#"+E(y)+E(A)+E(w):R="#"+E(y)+E(A)+E(w)+E(Math.round(a.alpha*255)),d.push({label:R,textEdit:Si.replace(s,JSON.stringify(R))}),d},t}();function Vo(t,r){return dr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Ty={schemaAssociations:{},schemas:{}};function Py(t,r){var i=[],a=[],s=[],d=-1,y=Cs(t.getText(),!1),A=y.scan();function w(Ye){i.push(Ye),a.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,R={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(R);break}case 2:case 4:{var W=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===W){var R=s.pop(),ne=t.positionAt(y.getTokenOffset()).line;R&&ne>R.startLine+1&&d!==R.startLine&&(R.endLine=ne-1,w(R),d=R.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,te=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(wi.create(E+1,0))):E<te&&(w({startLine:E,endLine:te,kind:Kl.Comment}),d=E);break}case 12:{var le=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=le.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var ne=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var R={startLine:ne,endLine:ne,kind:Kl.Region};s.push(R)}else{for(var ve=s.length-1;ve>=0&&s[ve].kind!==Kl.Region;)ve--;if(ve>=0){var R=s[ve];s.length=ve,ne>R.startLine&&d!==R.startLine&&(R.endLine=ne,w(R),d=R.startLine)}}}break}}A=y.scan()}var Ae=r&&r.rangeLimit;if(typeof Ae!="number"||i.length<=Ae)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Te=0,He=a;Te<He.length;Te++){var Ue=He[Te];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var ze=0,Ne=0,ve=0;ve<me.length;ve++){var Be=me[ve];if(Be){if(Be+ze>Ae){Ne=ve;break}ze+=Be}}for(var We=[],ve=0;ve<i.length;ve++){var Ue=a[ve];typeof Ue=="number"&&(Ue<Ne||Ue===Ne&&ze++<Ae)&&We.push(i[ve])}return We}function Iy(t,r,i){function a(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),R=[];E;){switch(E.type){case"string":case"object":case"array":var W=E.offset+1,ne=E.offset+E.length-1;W<ne&&w>=W&&w<=ne&&R.push(s(W,ne)),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 te=y(E.offset+E.length,5);te!==-1&&R.push(s(E.offset,te))}E=E.parent}for(var le=void 0,ye=R.length-1;ye>=0;ye--)le=Wf.create(R[ye],le);return le||(le=Wf.create(dr.create(A,A))),le}function s(A,w){return dr.create(t.positionAt(A),t.positionAt(w))}var d=Cs(t.getText(),!0);function y(A,w){d.setPosition(A);var E=d.scan();return E===w?d.getTokenOffset()+d.getTokenLength():-1}return r.map(a)}function Fy(t){var r=t.promiseConstructor||Promise,i=new xy(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Ty);var a=new ry(i,t.contributions,r,t.clientCapabilities),s=new ny(i,t.contributions,r),d=new Oy(i),y=new by(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return Zg(A,{collectComments:!0})},newJSONDocument:function(A,w){return Qg(A,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:d.findDocumentSymbols.bind(d),findDocumentSymbols2:d.findDocumentSymbols2.bind(d),findColorSymbols:function(A,w){return d.findDocumentColors(A,w).then(function(E){return E.map(function(R){return R.range})})},findDocumentColors:d.findDocumentColors.bind(d),getColorPresentations:d.getColorPresentations.bind(d),doHover:s.doHover.bind(s),getFoldingRanges:Py,getSelectionRanges:Iy,format:function(A,w,E){var R=void 0;if(w){var W=A.offsetAt(w.start),ne=A.offsetAt(w.end)-W;R={offset:W,length:ne}}var te={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
389
|
-
`};return jg(A.getText(),R,
|
|
390
|
-
`)>-1){const
|
|
391
|
-
`+w(
|
|
388
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function iy(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var oy=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var d in s)s.hasOwnProperty(d)&&(a[d]=s[d])},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)}}(),Jr,Zl;if(typeof process=="object")Zl=!1;else if(typeof navigator=="object"){var ay=navigator.userAgent;Zl=ay.indexOf("Windows")>=0}function d0(t){return 55296<=t&&t<=56319}function p0(t){return 56320<=t&&t<=57343}function h0(t){return t>=97&&t<=102}function sy(t){return t>=97&&t<=122}function ly(t){return t>=65&&t<=90}function v0(t){return sy(t)||ly(t)}var uy=/^\w[\w\d+.-]*$/,fy=/^\//,cy=/^\/\//;function dy(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&&!uy.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!fy.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(cy.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 py(t,r){return!t&&!r?"file":t}function hy(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==Ai&&(r=Ai+r):r=Ai;break}return r}var xr="",Ai="/",vy=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Od=function(){function t(r,i,a,s,d,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||xr,this.authority=r.authority||xr,this.path=r.path||xr,this.query=r.query||xr,this.fragment=r.fragment||xr):(this.scheme=py(r,y),this.authority=i||xr,this.path=hy(this.scheme,a||xr),this.query=s||xr,this.fragment=d||xr,dy(this,y))}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 yh(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,d=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=xr),a===void 0?a=this.authority:a===null&&(a=xr),s===void 0?s=this.path:s===null&&(s=xr),d===void 0?d=this.query:d===null&&(d=xr),y===void 0?y=this.fragment:y===null&&(y=xr),i===this.scheme&&a===this.authority&&s===this.path&&d===this.query&&y===this.fragment?this:new Ts(i,a,s,d,y)},t.parse=function(r,i){i===void 0&&(i=!1);var a=vy.exec(r);return a?new Ts(a[2]||xr,zf(a[4]||xr),zf(a[5]||xr),zf(a[7]||xr),zf(a[9]||xr),i):new Ts(xr,xr,xr,xr,xr)},t.file=function(r){var i=xr;if(Zl&&(r=r.replace(/\\/g,Ai)),r[0]===Ai&&r[1]===Ai){var a=r.indexOf(Ai,2);a===-1?(i=r.substring(2),r=Ai):(i=r.substring(2,a),r=r.substring(a)||Ai)}return new Ts("file",i,r,xr,xr)},t.from=function(r){return new Ts(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),Td(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Ts(r);return i._formatted=r.external,i._fsPath=r._sep===hh?r.fsPath:null,i}else return r},t}(),hh=Zl?1:void 0,Ts=function(t){oy(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=yh(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?Td(this,!0):(this._formatted||(this._formatted=Td(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=hh),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}(Od),vh=(Jr={},Jr[58]="%3A",Jr[47]="%2F",Jr[63]="%3F",Jr[35]="%23",Jr[91]="%5B",Jr[93]="%5D",Jr[64]="%40",Jr[33]="%21",Jr[36]="%24",Jr[38]="%26",Jr[39]="%27",Jr[40]="%28",Jr[41]="%29",Jr[42]="%2A",Jr[43]="%2B",Jr[44]="%2C",Jr[59]="%3B",Jr[61]="%3D",Jr[32]="%20",Jr);function gh(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var d=t.charCodeAt(s);if(d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||r&&d===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 y=vh[d];y!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=y):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function gy(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+=vh[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function yh(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,Zl&&(i=i.replace(/\//g,"\\")),i}function Td(t,r){var i=r?gy:gh,a="",s=t.scheme,d=t.authority,y=t.path,A=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(d||s==="file")&&(a+=Ai,a+=Ai),d){var E=d.indexOf("@");if(E!==-1){var R=d.substr(0,E);d=d.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+="@"}d=d.toLowerCase(),E=d.indexOf(":"),E===-1?a+=i(d,!1):(a+=i(d.substr(0,E),!1),a+=d.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var W=y.charCodeAt(1);W>=65&&W<=90&&(y="/"+String.fromCharCode(W+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var W=y.charCodeAt(0);W>=65&&W<=90&&(y=String.fromCharCode(W+32)+":"+y.substr(2))}a+=i(y,!0)}return A&&(a+="?",a+=i(A,!1)),w&&(a+="#",a+=r?w:gh(w,!1)),a}function mh(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+mh(t.substr(3)):t}}var xh=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function zf(t){return t.match(xh)?t.replace(xh,function(r){return mh(r)}):t}var yy=function(){function t(r){try{this.patternRegExp=new RegExp(_g(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}(),my=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Ps(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}(),Ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),bh=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Un(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,d=Object.keys(i.patternProperties);s<d.length;s++){var y=d[s],A=new RegExp(y);if(A.test(a))return this.getSectionRecursive(r,i.patternProperties[y])}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}(),xy=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=Od.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],d=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),A=0;A<d.length;A++){var w=d[A];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),d[A]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return Od.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 d=r.schemaAssociations;for(var y in d){var A=d[y];this.contributionAssociations[y]=A;for(var w=this.getOrAddFilePatternAssociation(y),E=0,R=A;E<R.length;E++){var W=R[E],a=this.normalizeId(W);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new my(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 yy(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 d=0,y=i;d<y.length;d++){var A=y[d];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,d=this.contributionAssociations[i];s<d.length;s++){var y=d[s],r=this.normalizeId(y);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 '"+Gf(r)+"'. No schema request service available";return this.promise.resolve(new Ps({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Gf(r)+"': No content.";return new Ps({},[s])}var d={},y=[];d=Dg(a,y);var A=y.length?["Unable to parse content from '"+Gf(r)+"': Parse error at offset "+y[0].offset]:[];return new Ps(d,A)},function(a){var s="Unable to load schema from '"+Gf(r)+"': "+a.toString();return new Ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,d=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new bh({},["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(re,oe){if(!oe)return re;var ye=re;return oe[0]==="/"&&(oe=oe.substr(1)),oe.split("/").some(function(he){return ye=ye[he],!ye}),ye},R=function(re,oe,ye,he){var Se=E(oe,he);if(Se)for(var me in Se)Se.hasOwnProperty(me)&&!re.hasOwnProperty(me)&&(re[me]=Se[me]);else d.push("$ref '"+he+"' in '"+ye+"' can not be resolved.")},W=function(re,oe,ye,he,Se){w&&!/^\w+:\/\/.*/.test(oe)&&(oe=w.resolveRelativePath(oe,he)),oe=s.normalizeId(oe);var me=s.getOrAddSchemaHandle(oe);return me.getUnresolvedSchema().then(function(Te){if(Se[oe]=!0,Te.errors.length){var He=ye?oe+"#"+ye:oe;d.push("Problems loading reference '"+He+"': "+Te.errors[0]+".")}return R(re,Te.schema,oe,ye),ae(re,Te.schema,oe,me.dependencies)})},ae=function(re,oe,ye,he){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],me=[],Te=[],He=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];typeof at=="object"&&Se.push(at)}},Ue=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];if(typeof at=="object")for(var Pt in at){var Ht=at[Pt];typeof Ht=="object"&&Se.push(Ht)}}},ze=function(){for(var We=[],Ye=0;Ye<arguments.length;Ye++)We[Ye]=arguments[Ye];for(var et=0,it=We;et<it.length;et++){var at=it[et];if(Array.isArray(at))for(var Pt=0,Ht=at;Pt<Ht.length;Pt++){var ur=Ht[Pt];typeof ur=="object"&&Se.push(ur)}}},Ne=function(We){for(var Ye=[];We.$ref;){var et=We.$ref,it=et.split("#",2);if(delete We.$ref,it[0].length>0){Te.push(W(We,it[0],it[1],ye,he));return}else Ye.indexOf(et)===-1&&(R(We,oe,ye,it[1]),Ye.push(et))}He(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),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var Be=Se.pop();me.indexOf(Be)>=0||(me.push(Be),Ne(Be))}return s.promise.all(Te)};return ae(y,y,i,a).then(function(re){return new bh(y,d)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(oe){return oe.keyNode.value==="$schema"&&oe.valueNode&&oe.valueNode.type==="string"});if(a.length>0){var s=jo(a[0].valueNode);if(s&&qg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var d=this.normalizeId(s);return this.getOrAddSchemaHandle(d).getResolvedSchema()}}}for(var y=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var R=E[w];if(R.matchesPattern(r))for(var W=0,ae=R.getSchemas();W<ae.length;W++){var re=ae[W];y[re]||(A.push(re),y[re]=!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(d){return{$ref:d}})};return this.addSchemaHandle(a,s)},t}();function Gf(t){try{}catch(r){}return t}var by=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:$t.Error)},t.prototype.doValidation=function(r,i,a,s){var d=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},w=function(W){var ae=W.range.start.line+" "+W.range.start.character+" "+W.message;A[ae]||(A[ae]=!0,y.push(W))},E=function(W){var ae=a?Ah(a.trailingCommas):$t.Error,re=a?Ah(a.comments):d.commentSeverity;if(W){if(W.errors.length&&i.root){var oe=i.root,ye=oe.type==="object"?oe.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var he=ye.valueNode||ye,Se=dr.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(vo.create(Se,W.errors[0],$t.Warning,nr.SchemaResolveError))}else{var Se=dr.create(r.positionAt(oe.offset),r.positionAt(oe.offset+1));w(vo.create(Se,W.errors[0],$t.Warning,nr.SchemaResolveError))}}else{var me=i.validate(r,W.schema);me&&me.forEach(w)}wh(W.schema)&&(re=void 0),Sh(W.schema)&&(ae=void 0)}for(var Te=0,He=i.syntaxErrors;Te<He.length;Te++){var Ue=He[Te];if(Ue.code===nr.TrailingComma){if(typeof ae!="number")continue;Ue.severity=ae}w(Ue)}if(typeof re=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(Ne){w(vo.create(Ne,ze,re,nr.CommentNotPermitted))})}return y};if(s){var R=s.id||"schemaservice://untitled/"+wy++;return this.jsonSchemaService.resolveSchemaContent(new Ps(s),R,{}).then(function(W){return E(W)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(W){return E(W)})},t}(),wy=0;function wh(t){if(t&&typeof t=="object"){if(Wi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=wh(a);if(Wi(s))return s}}}function Sh(t){if(t&&typeof t=="object"){if(Wi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Wi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=Sh(a);if(Wi(s))return s}}}function Ah(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Eh=48,Sy=57,Ay=65,$f=97,Ey=102;function Xr(t){return t<Eh?0:t<=Sy?t-Eh:(t<$f&&(t+=$f-Ay),t>=$f&&t<=Ey?t-$f+10:0)}function Cy(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Xr(t.charCodeAt(1))*17/255,green:Xr(t.charCodeAt(2))*17/255,blue:Xr(t.charCodeAt(3))*17/255,alpha:Xr(t.charCodeAt(4))*17/255};case 7:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Xr(t.charCodeAt(1))*16+Xr(t.charCodeAt(2)))/255,green:(Xr(t.charCodeAt(3))*16+Xr(t.charCodeAt(4)))/255,blue:(Xr(t.charCodeAt(5))*16+Xr(t.charCodeAt(6)))/255,alpha:(Xr(t.charCodeAt(7))*16+Xr(t.charCodeAt(8)))/255}}return null}function g0(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var Oy=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 d=i.root;if(!d)return null;var y=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var w=[],E=0,R=d.items;E<R.length;E++){var W=R[E];if(W.type==="object")for(var ae=0,re=W.properties;ae<re.length;ae++){var oe=re[ae];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=$l.create(r.uri,Vo(r,W));if(w.push({name:jo(oe.valueNode),kind:Hi.Function,location:ye}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var he=function(me,Te,He){return y>=0&&(Te.type==="array"?Te.items.forEach(function(Ue){return he(me,Ue,He)}):Te.type==="object"&&Te.properties.forEach(function(Ue){if(y>=0){var ze=Ue.valueNode;if(ze){y--;var Ne=$l.create(r.uri,Vo(r,Ue)),Be=He?He+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),location:Ne,containerName:He}),he(me,ze,Be)}}})),me},Se=he([],d,void 0);return y<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 d=i.root;if(!d)return null;var y=a.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||Ed(A.toLowerCase(),"/user/keybindings.json"))&&d.type==="array"){for(var w=[],E=0,R=d.items;E<R.length;E++){var W=R[E];if(W.type==="object")for(var ae=0,re=W.properties;ae<re.length;ae++){var oe=re[ae];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=Vo(r,W),he=Vo(r,oe.keyNode);if(w.push({name:jo(oe.valueNode),kind:Hi.Function,range:ye,selectionRange:he}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A),w}}}return w}var Se=function(Te,He){return y>=0&&(He.type==="array"?He.items.forEach(function(Ue,ze){if(Ue&&y>=0){y--;var Ne=Vo(r,Ue),Be=Ne,We=String(ze),Ye=Se([],Ue);Te.push({name:We,kind:s.getSymbolKind(Ue.type),range:Ne,selectionRange:Be,children:Ye})}}):He.type==="object"&&He.properties.forEach(function(Ue){var ze=Ue.valueNode;if(ze&&y>=0){y--;var Ne=Vo(r,Ue),Be=Vo(r,Ue.keyNode),We=Se([],ze);Te.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),range:Ne,selectionRange:Be,children:We})}})),Te},me=Se([],d);return y<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Hi.Module;case"string":return Hi.String;case"number":return Hi.Number;case"array":return Hi.Array;case"boolean":return Hi.Boolean;default:return Hi.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 d=[];if(s)for(var y=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,R=A;E<R.length;E++){var W=R[E];if(!W.inverted&&W.schema&&(W.schema.format==="color"||W.schema.format==="color-hex")&&W.node&&W.node.type==="string"){var ae=String(W.node.offset);if(!w[ae]){var re=Cy(jo(W.node));if(re){var oe=Vo(r,W.node);d.push({color:re,range:oe})}if(w[ae]=!0,y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),d}}}return d})},t.prototype.getColorPresentations=function(r,i,a,s){var d=[],y=Math.round(a.red*255),A=Math.round(a.green*255),w=Math.round(a.blue*255);function E(W){var ae=W.toString(16);return ae.length!==2?"0"+ae:ae}var R;return a.alpha===1?R="#"+E(y)+E(A)+E(w):R="#"+E(y)+E(A)+E(w)+E(Math.round(a.alpha*255)),d.push({label:R,textEdit:Si.replace(s,JSON.stringify(R))}),d},t}();function Vo(t,r){return dr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Ty={schemaAssociations:{},schemas:{}};function Py(t,r){var i=[],a=[],s=[],d=-1,y=Cs(t.getText(),!1),A=y.scan();function w(Ye){i.push(Ye),a.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,R={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(R);break}case 2:case 4:{var W=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===W){var R=s.pop(),ae=t.positionAt(y.getTokenOffset()).line;R&&ae>R.startLine+1&&d!==R.startLine&&(R.endLine=ae-1,w(R),d=R.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(wi.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:Kl.Comment}),d=E);break}case 12:{var oe=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=oe.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var ae=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var R={startLine:ae,endLine:ae,kind:Kl.Region};s.push(R)}else{for(var he=s.length-1;he>=0&&s[he].kind!==Kl.Region;)he--;if(he>=0){var R=s[he];s.length=he,ae>R.startLine&&d!==R.startLine&&(R.endLine=ae,w(R),d=R.startLine)}}}break}}A=y.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=[],Te=0,He=a;Te<He.length;Te++){var Ue=He[Te];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var ze=0,Ne=0,he=0;he<me.length;he++){var Be=me[he];if(Be){if(Be+ze>Se){Ne=he;break}ze+=Be}}for(var We=[],he=0;he<i.length;he++){var Ue=a[he];typeof Ue=="number"&&(Ue<Ne||Ue===Ne&&ze++<Se)&&We.push(i[he])}return We}function Iy(t,r,i){function a(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),R=[];E;){switch(E.type){case"string":case"object":case"array":var W=E.offset+1,ae=E.offset+E.length-1;W<ae&&w>=W&&w<=ae&&R.push(s(W,ae)),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=y(E.offset+E.length,5);re!==-1&&R.push(s(E.offset,re))}E=E.parent}for(var oe=void 0,ye=R.length-1;ye>=0;ye--)oe=Wf.create(R[ye],oe);return oe||(oe=Wf.create(dr.create(A,A))),oe}function s(A,w){return dr.create(t.positionAt(A),t.positionAt(w))}var d=Cs(t.getText(),!0);function y(A,w){d.setPosition(A);var E=d.scan();return E===w?d.getTokenOffset()+d.getTokenLength():-1}return r.map(a)}function Fy(t){var r=t.promiseConstructor||Promise,i=new xy(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Ty);var a=new ry(i,t.contributions,r,t.clientCapabilities),s=new ny(i,t.contributions,r),d=new Oy(i),y=new by(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return Zg(A,{collectComments:!0})},newJSONDocument:function(A,w){return Qg(A,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:d.findDocumentSymbols.bind(d),findDocumentSymbols2:d.findDocumentSymbols2.bind(d),findColorSymbols:function(A,w){return d.findDocumentColors(A,w).then(function(E){return E.map(function(R){return R.range})})},findDocumentColors:d.findDocumentColors.bind(d),getColorPresentations:d.getColorPresentations.bind(d),doHover:s.doHover.bind(s),getFoldingRanges:Py,getSelectionRanges:Iy,format:function(A,w,E){var R=void 0;if(w){var W=A.offsetAt(w.start),ae=A.offsetAt(w.end)-W;R={offset:W,length:ae}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
389
|
+
`};return jg(A.getText(),R,re).map(function(oe){return Si.replace(dr.create(A.positionAt(oe.offset),A.positionAt(oe.offset+oe.length)),oe.content)})}}}var y0=o(96876),m0=o(4328),x0=o(3256),b0=o(71707),w0=o(82801),S0=o(32095),A0=o(86081),E0=o(44254),C0=o(75019),O0=o(13837),Ch=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});const Is=Fy({});As.registerHelper("lint","json",function(t,r){return Ch(this,null,function*(){const{schema:i,setError:a}=r;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Hf.create(r.id+".json","json",0,t),d=Is.parseJSONDocument(s),y=yield Is.doValidation(s,d);return y.length?a&&a(y[0].message):a&&a(void 0),y.map(A=>({from:As.Pos(A.range.start.line,A.range.start.character),to:As.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),As.registerHelper("hint","json",(t,r)=>Ch(void 0,null,function*(){const i=r.schema;if(!i)return;Is.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),d=Hf.create(r.id+".json","json",0,t.getValue()),y=Is.parseJSONDocument(d),A=yield Is.doComplete(d,{line:a.line,character:a.ch},y),w=R=>{let W="";for(;R--;)W+=" ";return W};let E=A?A.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:(W,ae,re)=>{const oe="_$__REDOC_CURSOR_HERE";let ye=re.text.replace(/(\$1|\${1:[^}]+})/,oe)||"";if(ye=ye.replace(/(\$\d+|\${[^}]+})/g,"")||"",W.setSelection(re.from,re.to),ye.indexOf(`
|
|
390
|
+
`)>-1){const Se=W.getLine(W.getCursor().line).search(/(\S|$)/);ye=ye.replace(/\n/g,`
|
|
391
|
+
`+w(Se))}W.replaceSelection(ye);const he=W.getSearchCursor(oe,re.from);he.findNext()&&(W.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(R=>R.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:As.Pos(a.line,s.start),to:As.Pos(a.line,a.ch),list:E}}));var Kf=o(67294),Ry=Object.defineProperty,ky=(t,r,i)=>r in t?Ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ql=(t,r,i)=>(ky(t,typeof r!="symbol"?r+"":r,i),i);const My=Vt.createGlobalStyle`
|
|
392
392
|
.cm-s-material.CodeMirror {
|
|
393
393
|
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
|
|
394
394
|
color: ${({theme:t})=>t.colors.text.light}!important;
|
|
@@ -436,7 +436,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function iy(t){return t.i
|
|
|
436
436
|
flex: 1;
|
|
437
437
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
438
438
|
}
|
|
439
|
-
`;class Ly extends h.PureComponent{constructor(){super(...arguments);ql(this,"editor"),ql(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),ql(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),ql(this,"refreshEditor",()=>{this.editor.refresh()}),ql(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}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:d,onBlur:y,forwardedRef:A}=this.props;return Kf.createElement(Kf.Fragment,null,Kf.createElement(My,null),Kf.createElement(Eg.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(w,E,R)=>{i(R),d&&d(R)},onBlur:w=>{a(!1),y&&y(w)},options:{mode:this.props.mode||kf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const Dy=Zr(Ly);var yo=o(67294),Ny=Object.defineProperty,By=Object.defineProperties,Uy=Object.getOwnPropertyDescriptors,Oh=Object.getOwnPropertySymbols,jy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Th=(t,r,i)=>r in t?Ny(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wy=(t,r)=>{for(var i in r||(r={}))jy.call(r,i)&&Th(t,i,r[i]);if(Oh)for(var i of Oh(r))Vy.call(r,i)&&Th(t,i,r[i]);return t},Hy=(t,r)=>By(t,Uy(r));const zy=(0,Go.Pi)(({body:t,formApi:r,resolvedBody:i,properties:a,id:s,validate:d})=>{var y,A;const w=t.content,E=ye=>{var
|
|
439
|
+
`;class Ly extends h.PureComponent{constructor(){super(...arguments);ql(this,"editor"),ql(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),ql(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),ql(this,"refreshEditor",()=>{this.editor.refresh()}),ql(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}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:d,onBlur:y,forwardedRef:A}=this.props;return Kf.createElement(Kf.Fragment,null,Kf.createElement(My,null),Kf.createElement(Eg.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(w,E,R)=>{i(R),d&&d(R)},onBlur:w=>{a(!1),y&&y(w)},options:{mode:this.props.mode||kf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const Dy=Zr(Ly);var yo=o(67294),Ny=Object.defineProperty,By=Object.defineProperties,Uy=Object.getOwnPropertyDescriptors,Oh=Object.getOwnPropertySymbols,jy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Th=(t,r,i)=>r in t?Ny(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wy=(t,r)=>{for(var i in r||(r={}))jy.call(r,i)&&Th(t,i,r[i]);if(Oh)for(var i of Oh(r))Vy.call(r,i)&&Th(t,i,r[i]);return t},Hy=(t,r)=>By(t,Uy(r));const zy=(0,Go.Pi)(({body:t,formApi:r,resolvedBody:i,properties:a,id:s,validate:d})=>{var y,A;const w=t.content,E=ye=>{var he;if(!w||!w.hasSample)return"";const Se=(he=w.active)==null?void 0:he.examples;if(!(Se==null?void 0:Se[ye]))return"";const me=Se==null?void 0:Se[ye].value,Te=a?gg()(me,a,{arrayMerge:Vi.lN}):me;return JSON.stringify(Te,null,2)},R=(y=w==null?void 0:w.operation)==null?void 0:y.activeExampleName,W=ye=>{w==null||w.activateExampleName(ye),r.setValue("body",E(ye))},ae=(ye,he)=>{const{setValue:Se}=r;Se(`body.${ye}`,he)};(0,h.useEffect)(()=>{var ye,he;if((ye=w==null?void 0:w.operation)==null?void 0:ye.activeMimeName){const Se=(0,mr.P6)(s,w.operation.activeMimeName,R,(he=w==null?void 0:w.active)==null?void 0:he.examples);r.setValue("body",(0,zt.YQ)(Se)||E(R||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[R,(A=w==null?void 0:w.operation)==null?void 0:A.activeMimeName,w==null?void 0:w.active]);const re=ye=>yo.createElement(Vt.DropdownOrLabel,Hy(Wy({},ye),{variant:"dark",fullWidth:!0,Label:Ag,Dropdown:br.Dropdown})),oe=(0,h.useCallback)((ye="",he="",Se=[])=>me=>{(0,zt.WW)((0,mr.P6)(s,ye,he,Se),me)},[s]);return yo.createElement(yo.Fragment,null,yo.createElement(Vt.MediaTypesSwitch,{content:t.content,renderDropdown:re},ye=>{const he=ye.examples||{},Se=Object.keys(he),me=ye.schema,Te=yt(me||{},ye.name)||ye.name===kf.T.MULTIPART||ye.name===kf.T.URL_ENCODED,{exampleKey:He}=(0,cd.C6)(ye.operation,he),Ue=(0,zt.YQ)((0,mr.P6)(s,ye.name,He,he))||(0,mr.oY)(he[He],a);return yo.createElement(yo.Fragment,null,Se.length&&Se.length!==1&&yo.createElement(cd.b_,{examples:he,onChange:W,exampleKey:He})||null,Te?yo.createElement(wg,{mediaType:ye,formApi:r,onChange:ae}):yo.createElement(Dy,{id:"body"+s,field:"body",initialValue:Ue,schema:((i==null?void 0:i.content[ye.name])||{}).schema,mode:ye.name,validate:d,onChange:oe(ye.name,He,he)}))}))}),Gy=(0,h.memo)(zy);var Wo=o(67294);function $y({response:t}){return Wo.createElement(Wo.Fragment,null,Wo.createElement(Rh,null," Body: "),Ky(t))}function Ky(t){return t.body?Wo.createElement(Vt.JsonViewer,{data:t.body}):t.fileInfo?Wo.createElement(Vt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?Wo.createElement(Vt.SourceCodeWithText,{lang:(0,Vt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):Wo.createElement(kh,null,Wo.createElement("i",null,"(no content)")):null}var Ho=o(67294);function Yy({headers:t}){const r=(0,h.useContext)(Vt.OptionsContext),[i,a]=(0,h.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,d=Object.keys(t),y=!!s&&d.length>s,A=y&&i?[...d].splice(0,s):[...d],w=()=>{a(!i)};return Ho.createElement(Ho.Fragment,null,Ho.createElement(Rh,null," Headers: "),Ho.createElement(kh,null,A.map(E=>Ho.createElement("div",{key:E},Ho.createElement(Ph,null,E,":"),Ho.createElement("code",null,t[E]))),y&&Ho.createElement(Ih,{onClick:w},i?"Show more...":"Hide headers")))}const Ph=Vt.styled.strong`
|
|
440
440
|
text-transform: capitalize;
|
|
441
441
|
display: inline-block;
|
|
442
442
|
padding-right: 5px;
|
|
@@ -478,7 +478,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function iy(t){return t.i
|
|
|
478
478
|
`,rm=(0,h.memo)(_y);var eu=o(67294);function nm({name:t,value:r,description:i,variableEnum:a,onChange:s,defaultValue:d}){const y=(0,h.useCallback)(E=>s(E.target.value),[s]),A=(0,h.useCallback)(E=>s(E.value),[s]),w=a?a.map((E,R)=>({value:E,idx:R})):[];return eu.createElement(_e.NI,null,eu.createElement(_e.lX,null,t,":"),w&&w.length?eu.createElement(br.Dropdown,{fullWidth:!0,variant:"dark",value:r,options:w,onChange:A}):eu.createElement(Mn,{fullWidth:!0,value:r,onChange:y,placeholder:d}),i&&eu.createElement(im,{compact:!0,source:i}))}const im=(0,Vt.styled)(Vt.Markdown)`
|
|
479
479
|
margin-top: 5px;
|
|
480
480
|
color: #d0d0d0;
|
|
481
|
-
`;var tu=o(67294),om=Object.defineProperty,am=Object.defineProperties,sm=Object.getOwnPropertyDescriptors,Lh=Object.getOwnPropertySymbols,lm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable,Dh=(t,r,i)=>r in t?om(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Nh=(t,r)=>{for(var i in r||(r={}))lm.call(r,i)&&Dh(t,i,r[i]);if(Lh)for(var i of Lh(r))um.call(r,i)&&Dh(t,i,r[i]);return t},Bh=(t,r)=>am(t,sm(r));const fm=(0,Go.Pi)(({operation:t,onChange:r})=>{const i=(0,zt.YQ)("serverUrl"),a=t.servers.findIndex(
|
|
481
|
+
`;var tu=o(67294),om=Object.defineProperty,am=Object.defineProperties,sm=Object.getOwnPropertyDescriptors,Lh=Object.getOwnPropertySymbols,lm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable,Dh=(t,r,i)=>r in t?om(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Nh=(t,r)=>{for(var i in r||(r={}))lm.call(r,i)&&Dh(t,i,r[i]);if(Lh)for(var i of Lh(r))um.call(r,i)&&Dh(t,i,r[i]);return t},Bh=(t,r)=>am(t,sm(r));const fm=(0,Go.Pi)(({operation:t,onChange:r})=>{const i=(0,zt.YQ)("serverUrl"),a=t.servers.findIndex(oe=>oe.url===i),[s,d]=(0,h.useState)(a<0?0:a),[y,A]=(0,h.useState)({}),w=(0,Vt.useStore)(),E=w==null?void 0:w.options.unstable_hideServerUrlInTryIt;(0,ir.b6)(()=>{const oe=(0,mr.fz)(t.servers,s);r(oe),A(oe.variables)});const R=oe=>{const ye=t.servers.find(me=>me.url===oe.serverUrl),he=t.servers.findIndex(me=>me.url===oe.serverUrl),Se=(0,mr.mj)(ye);r({url:oe.serverUrl||"",variables:Se}),(0,zt.WW)("serverUrl",oe.serverUrl||""),d(he),A(Se)},W=(oe,ye)=>{const he=t.servers[s],Se=ye||ye===""?ye:(0,mr.mj)(he)[oe],me=Bh(Nh({},y),{[oe]:Se});A(me),(0,mr.UY)(oe,Se),r(Bh(Nh({},he),{variables:me}))},ae=t.servers.map((oe,ye)=>{const he=(0,mr.nq)((0,mr.v5)(oe.url,y),oe.variables),Se=E?oe.description||he:`${oe.description?`${oe.description} - `:""}${he}`;return{idx:ye,serverUrl:oe.url,value:Se}}),re=Object.keys(y);return tu.createElement(cm,{"data-cy":"console-target-server"},tu.createElement(_e.lX,{htmlFor:"server"},"Target server: "),tu.createElement(_e.NI,null,tu.createElement(br.Dropdown,{variant:"dark",value:ae[s].value,options:ae,fullWidth:!0,onChange:R})),re==null?void 0:re.map(oe=>{var ye;const he=(ye=t.servers[s].variables)==null?void 0:ye[oe];if(he)return tu.createElement(nm,{key:oe,name:oe,value:y[oe],defaultValue:he.default,onChange:Se=>W(oe,Se),variableEnum:he.enum,description:he.description})}))}),cm=Vt.styled.div`
|
|
482
482
|
margin-bottom: 20px;
|
|
483
483
|
`;var dm=o(72940),Ia=o(67294),pm=Object.defineProperty,hm=Object.defineProperties,vm=Object.getOwnPropertyDescriptors,Yf=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Vh=(t,r,i)=>r in t?pm(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,gm=(t,r)=>{for(var i in r||(r={}))Uh.call(r,i)&&Vh(t,i,r[i]);if(Yf)for(var i of Yf(r))jh.call(r,i)&&Vh(t,i,r[i]);return t},ym=(t,r)=>hm(t,vm(r)),mm=(t,r)=>{var i={};for(var a in t)Uh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Yf)for(var a of Yf(t))r.indexOf(a)<0&&jh.call(t,a)&&(i[a]=t[a]);return i};function Id(t){var r=t,{header:i,error:a,success:s}=r,d=mm(r,["header","error","success"]);const y=({toggle:A,expanded:w})=>Ia.createElement(ji.h4,{onClick:A,isExpanded:w,"data-cy":d["data-cy"]},Ia.createElement(ji.xz,null,Ia.createElement(ji.Dx,null,i),Ia.createElement(Vt.ShelfIcon,{direction:w?"down":"right"})),a&&Ia.createElement(Vt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&Ia.createElement(Vt.LockIcon,{size:"14px",color:"#56ff26"})||null);return Ia.createElement(xm,ym(gm({},d),{header:y}))}const xm=(0,Mt.ZP)(ji.s_)`
|
|
484
484
|
${ji.h4} {
|
|
@@ -497,41 +497,41 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function iy(t){return t.i
|
|
|
497
497
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
498
498
|
border-top: 0;
|
|
499
499
|
}
|
|
500
|
-
`;var Pr=o(67294),Wh=Object.defineProperty,bm=Object.defineProperties,wm=Object.getOwnPropertyDescriptor,Sm=Object.getOwnPropertyDescriptors,Jf=Object.getOwnPropertySymbols,Hh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,Fd=(t,r,i)=>r in t?Wh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tn=(t,r)=>{for(var i in r||(r={}))Hh.call(r,i)&&Fd(t,i,r[i]);if(Jf)for(var i of Jf(r))zh.call(r,i)&&Fd(t,i,r[i]);return t},Vn=(t,r)=>bm(t,Sm(r)),Gh=(t,r)=>{var i={};for(var a in t)Hh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Jf)for(var a of Jf(t))r.indexOf(a)<0&&zh.call(t,a)&&(i[a]=t[a]);return i},Am=(t,r,i,a)=>{for(var s=a>1?void 0:a?wm(r,i):r,d=t.length-1,y;d>=0;d--)(y=t[d])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&Wh(r,i,s),s},Fs=(t,r,i)=>(Fd(t,typeof r!="symbol"?r+"":r,i),i),$h=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function Kh(t){return t.startsWith("//")?"https:"+t:t}const Em={flex:1,display:"flex",flexDirection:"column"};let Rd=class extends h.Component{constructor(t){super(t);Fs(this,"formApi"),Fs(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,d=Gh(a,["values"]);this.formApi=r,setTimeout(()=>{const y=Vn(tn({},d),{values:Vn(tn({},s),{query:(0,mr.FU)(s.query||{})})});this.setState({form:y})},0)}),Fs(this,"handleChange",r=>{var i=r,{values:a}=i,s=Gh(i,["values"]);const d=Vn(tn({},s),{values:Vn(tn({},a),{query:(0,mr.FU)(a.query||{})})});this.setState({form:d}),(0,mr.Hc)(d),this.props.operation.setRequestValues(a)}),Fs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Fs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Fs(this,"handleExecute",()=>$h(this,null,function*(){var r,i,a,s,d,y,A,w,E;const{store:R,operation:W,onResponse:ne}=this.props;(r=this.formApi)==null||r.submitForm();const{values:te,invalid:le}=((i=this.formApi)==null?void 0:i.getState())||this.state.form;if(le){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(s=(a=R==null?void 0:R.options.events)==null?void 0:a.tryItSent)==null||s.call(a,{eventType:ep.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:W.operationId,operationPath:W.path,operationHttpVerb:W.httpVerb,operationSummary:W.description});return}const{servers:ye,requestBody:ve}=this.props.operation,Ae=ve&&ve.content&&ve.content.active&&ve.content.active.name||"";let me=te.body;if(/json/.test(Ae))try{me=JSON.parse(me)}catch(at){console.error(at)}this.setState({loading:!0});const Te=this.state.resolvedRawSpec,He=(W.httpVerb||"").toLowerCase();if(!ye)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 Ue=ye.find(at=>this.state.server.url.endsWith(at.url.endsWith("/")?at.url.substring(0,at.url.length-1):at.url)),ze=Date.now(),Ne=!!window.document.documentMode;let Be,We=te.auth;if(te.auth){const at=Object.keys(te.auth)[0],Pt=(0,zt.dw)(at);Be=Vn(tn({},Te),{components:Vn(tn({},Te==null?void 0:Te.components),{securitySchemes:Vn(tn({},Te==null?void 0:Te.components.securitySchemes),{[Pt]:Vn(tn({},Te==null?void 0:Te.components.securitySchemes[Pt]),{type:(Te==null?void 0:Te.components.securitySchemes[Pt].type)==="openIdConnect"?"oauth2":Te==null?void 0:Te.components.securitySchemes[Pt].type})})})}),We=Vn(tn({},We),{[Pt]:We[at]})}else Be=tn({},Te);Be.servers=ye;const Ye=R.options.corsProxyUrl;Ye&&ye.length&&(Be.servers=ye.map(at=>Vn(tn({},at),{url:Ye+Kh(at.url)})),Be.paths=Vn(tn({},Be.paths),{[W.path]:Vn(tn({},Be.paths[W.path]),{[He]:Vn(tn({},Be.paths[W.path][He]),{servers:void 0}),servers:void 0})}));const et=((y=(d=ve==null?void 0:ve.content)==null?void 0:d.active)==null?void 0:y.name)||null;if(et&&me&&st(et)){const at=Object.values(me);me=at.length>1?at:at[0]}const it={userFetch:Ne&&o(54098).fetch,server:Ye?Ye+Kh(Ue.url):Ue.url,serverVariables:this.state.server.variables,spec:Be,pathName:W.path,method:W.httpVerb,parameters:tn(tn(tn(tn({},te.path),te.query),te.header),te.cookie),securities:{authorized:We},requestBody:me,requestContentType:et,responseContentType:((A=te.header)==null?void 0:A.Accept)||null,requestInterceptor:(0,mr.Tz)(R.options,W,We==null?void 0:We.Authorization)};try{const at=yield td.execute(it),Pt=at==null?void 0:at.data;Pt instanceof Blob&&(st(Pt.type)&&(at.fileInfo={rawData:Pt,fileName:(0,mr.AM)(at.headers)}),at.data=yield Pt.text()),ne==null||ne({request:it,response:at}),this.setState({response:at,error:void 0})}catch(at){at&&at.response&&at.response.data instanceof Blob&&(at.response.data=yield at.response.data.text(),ne==null||ne({request:it,response:at.response})),this.setState({response:void 0,error:at})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-ze}),(E=(w=R==null?void 0:R.options.events)==null?void 0:w.tryItSent)==null||E.call(w,{eventType:ep.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:W.operationId,operationPath:W.path,operationHttpVerb:W.httpVerb,operationSummary:W.description})}})),this.state={form:{values:{path:(0,mr.ZS)(t.operation.parameters,"path"),cookie:(0,mr.ZS)(t.operation.parameters,"cookie"),header:(0,mr.ZS)(t.operation.parameters,"header"),query:(0,mr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return $h(this,null,function*(){var t;const{store:r,operation:i}=this.props,a=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:a}),(t=this.formApi)==null||t.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:d,response:y,loading:A,error:w}=this.state,E=!!(y||w);return Pr.createElement(Om,{shaking:a,className:r,rootElement:i},Pr.createElement(ji.k1,null,Pr.createElement(hg,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&Pr.createElement(ws.PZ,{onClick:this.props.onClose}," \u2715 ")),Pr.createElement(ws.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),Pr.createElement(ws.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),Pr.createElement(rm,{hasResponse:E,params:d.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:d,resolvedRawSpec:y,server:A}=this.state,w=d.errors||{},E=w.path||w.cookie||w.header||w.query,R=y&&Vt.JsonPointer.get(y,r.pointer);let W=d.values&&d.values.auth&&Object.keys(d.values.auth)[0];(!W||!d.values.auth[W])&&(W=void 0),W&&(d.values.auth[W].token!==void 0||d.values.auth[W].client_id!==void 0||d.values.auth[W].client_secret!==void 0)&&(!d.values.auth[W].token||!d.values.auth[W].token.access_token)&&(W=void 0),W&&d.values.auth[W].username!=null&&(!d.values.auth[W].username||!d.values.auth[W].password)&&(W=void 0);const ne=r.parameters||[],te=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&Pr.createElement(Pr.Fragment,null,"Loading...")||Pr.createElement(cu,{onChange:this.handleChange,getApi:this.setFormApi,style:Vn(tn({},Em),{margin:0})},Pr.createElement(fm,{operation:r,onChange:this.handleServerChange}),Pr.createElement(ji.UQ,{initialActiveIdx:r.security.length&&W?1:0},r.security.length&&this.formApi&&Pr.createElement(Id,{header:(0,Mo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!W&&!!w.auth,success:!!W},te?Pr.createElement(Tm,{field:"auth",validate:Wl},le=>Pr.createElement(ar.Q,{Hook:te,props:{server:A,operation:r,onChange:le,OAuth2:f}})):Pr.createElement(dg,{formApi:this.formApi,form:d,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&Pr.createElement(Id,{header:(0,Mo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},Pr.createElement(Gy,{validate:Cm,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:R==null?void 0:R.requestBody,properties:a}))||null,ne.length&&Pr.createElement(Id,{header:(0,Mo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},Pr.createElement(hv,{operation:r,values:d.values,errors:d.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return Pr.createElement(Zy,{response:t,error:r,time:i})}};Rd=Am([Go.Pi],Rd);function Cm(){}function Om(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[d]=(0,ir.Bs)(s);return Pr.createElement(ws.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:d==null?void 0:d.width},a)}function Tm(t){const{fieldApi:r,render:i,userProps:a}=Ln(tn({},t)),{setValue:s}=r,{children:d}=a;return i(Pr.createElement(Pr.Fragment,null,d(s)))}},68929:()=>{},17648:p=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";p.exports=function(h){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(h,S.concat(o.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;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:(p,I,o)=>{"use strict";var c=o(17648);p.exports=Function.prototype.bind||c},40210:(p,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,h=TypeError,b=function(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new h},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=o(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?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%":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%":h,"%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 xe(we){var he;if(we==="%AsyncFunction%")he=b("async function () {}");else if(we==="%GeneratorFunction%")he=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(he=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var ae=xe("%AsyncGenerator%");ae&&(he=B(ae.prototype))}return H[we]=he,he},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"]},M=o(58612),C=o(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var he=Q(we,0,1),fe=Q(we,-1);if(he==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ae=[];return q(we,Y,function(Fe,Le,Re,Pe){ae[ae.length]=Re?q(Pe,ce,"$1"):Le||Fe}),ae},ie=function(we,he){var fe=we,ae;if(C(X,fe)&&(ae=X[fe],fe="%"+ae[0]+"%"),C(H,fe)){var Fe=H[fe];if(Fe===j&&(Fe=k(fe)),typeof Fe=="undefined"&&!he)throw new h("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:ae,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};p.exports=function(we,he){if(typeof we!="string"||we.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new h('"allowMissing" argument must be a boolean');var fe=ee(we),ae=fe.length>0?fe[0]:"",Fe=ie("%"+ae+"%",he),Le=Fe.name,Re=Fe.value,Pe=!1,rt=Fe.alias;rt&&(ae=rt[0],J(fe,V([0,1],rt)));for(var Qe=1,Je=!0;Qe<fe.length;Qe+=1){var ct=fe[Qe],vt=Q(ct,0,1),wt=Q(ct,-1);if((vt==='"'||vt==="'"||vt==="`"||wt==='"'||wt==="'"||wt==="`")&&vt!==wt)throw new v("property names with quotes must have matching quotes");if((ct==="constructor"||!Je)&&(Pe=!0),ae+="."+ct,Le="%"+ae+"%",C(H,Le))Re=H[Le];else if(Re!=null){if(!(ct in Re)){if(!he)throw new h("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Qe+1>=fe.length){var nt=S(Re,ct);Je=!!nt,Je&&"get"in nt&&!("originalValue"in nt.get)?Re=nt.get:Re=Re[ct]}else Je=C(Re,ct),Re=Re[ct];Je&&!Pe&&(H[Le]=Re)}}return Re}},41405:(p,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);p.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:p=>{"use strict";p.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 h=Object.getOwnPropertySymbols(o);if(h.length!==1||h[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:(p,I,o)=>{"use strict";var c=o(58612);p.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(p,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,h){var b,S,g=h*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?h-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-D;else{if(b===L)return S?NaN:(H?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(H?-1:1)*S*Math.pow(2,b-x)},I.write=function(o,c,v,x,h,b){var S,g,L,D=b*8-h-1,B=(1<<D)-1,j=B>>1,_=h===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,h),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,h),S=0));h>=8;o[v+H]=g&255,H+=k,g/=256,h-=8);for(S=S<<h|g,D+=h;D>0;o[v+H]=S&255,H+=k,S/=256,D-=8);o[v+H-k]|=X*128}},5826:p=>{var I={}.toString;p.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:p=>{p.exports=window.FormData},93320:(p,I,o)=>{"use strict";var c=o(51294);p.exports=c},51294:(p,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(h){return function(){throw new Error("Function "+h+" is deprecated and cannot be used.")}}p.exports.Type=o(53899),p.exports.Schema=o(82409),p.exports.FAILSAFE_SCHEMA=o(75322),p.exports.JSON_SCHEMA=o(65796),p.exports.CORE_SCHEMA=o(17318),p.exports.DEFAULT_SAFE_SCHEMA=o(5972),p.exports.DEFAULT_FULL_SCHEMA=o(19321),p.exports.load=c.load,p.exports.loadAll=c.loadAll,p.exports.safeLoad=c.safeLoad,p.exports.safeLoadAll=c.safeLoadAll,p.exports.dump=v.dump,p.exports.safeDump=v.safeDump,p.exports.YAMLException=o(14884),p.exports.MINIMAL_SCHEMA=o(75322),p.exports.SAFE_SCHEMA=o(5972),p.exports.DEFAULT_SCHEMA=o(19321),p.exports.scan=x("scan"),p.exports.parse=x("parse"),p.exports.compose=x("compose"),p.exports.addConstructor=x("addConstructor")},25596:p=>{"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,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function h(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}p.exports.isNothing=I,p.exports.isObject=o,p.exports.toArray=c,p.exports.repeat=x,p.exports.isNegativeZero=h,p.exports.extend=v},96157:(p,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),h=o(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,_=34,H=35,k=37,X=38,M=39,C=42,V=44,J=45,q=58,Q=61,Y=62,ce=63,ee=64,ie=91,xe=93,we=96,he=123,fe=124,ae=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Re(N,re){var de,oe,pe,Ee,je,Ve,Xe;if(re===null)return{};for(de={},oe=Object.keys(re),pe=0,Ee=oe.length;pe<Ee;pe+=1)je=oe[pe],Ve=String(re[je]),je.slice(0,2)==="!!"&&(je="tag:yaml.org,2002:"+je.slice(2)),Xe=N.compiledTypeMap.fallback[je],Xe&&S.call(Xe.styleAliases,Ve)&&(Ve=Xe.styleAliases[Ve]),de[je]=Ve;return de}function Pe(N){var re,de,oe;if(re=N.toString(16).toUpperCase(),N<=255)de="x",oe=2;else if(N<=65535)de="u",oe=4;else if(N<=4294967295)de="U",oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",oe-re.length)+re}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=Re(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,re){for(var de=c.repeat(" ",re),oe=0,pe=-1,Ee="",je,Ve=N.length;oe<Ve;)pe=N.indexOf(`
|
|
501
|
-
`,
|
|
502
|
-
`&&(Ee+=de),Ee+=je;return Ee}function Je(N,
|
|
503
|
-
`+c.repeat(" ",N.indent*
|
|
504
|
-
`,pe=
|
|
500
|
+
`;var Pr=o(67294),Wh=Object.defineProperty,bm=Object.defineProperties,wm=Object.getOwnPropertyDescriptor,Sm=Object.getOwnPropertyDescriptors,Jf=Object.getOwnPropertySymbols,Hh=Object.prototype.hasOwnProperty,zh=Object.prototype.propertyIsEnumerable,Fd=(t,r,i)=>r in t?Wh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tn=(t,r)=>{for(var i in r||(r={}))Hh.call(r,i)&&Fd(t,i,r[i]);if(Jf)for(var i of Jf(r))zh.call(r,i)&&Fd(t,i,r[i]);return t},Vn=(t,r)=>bm(t,Sm(r)),Gh=(t,r)=>{var i={};for(var a in t)Hh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Jf)for(var a of Jf(t))r.indexOf(a)<0&&zh.call(t,a)&&(i[a]=t[a]);return i},Am=(t,r,i,a)=>{for(var s=a>1?void 0:a?wm(r,i):r,d=t.length-1,y;d>=0;d--)(y=t[d])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&Wh(r,i,s),s},Fs=(t,r,i)=>(Fd(t,typeof r!="symbol"?r+"":r,i),i),$h=(t,r,i)=>new Promise((a,s)=>{var d=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?a(w.value):Promise.resolve(w.value).then(d,y);A((i=i.apply(t,r)).next())});function Kh(t){return t.startsWith("//")?"https:"+t:t}const Em={flex:1,display:"flex",flexDirection:"column"};let Rd=class extends h.Component{constructor(t){super(t);Fs(this,"formApi"),Fs(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,d=Gh(a,["values"]);this.formApi=r,setTimeout(()=>{const y=Vn(tn({},d),{values:Vn(tn({},s),{query:(0,mr.FU)(s.query||{})})});this.setState({form:y})},0)}),Fs(this,"handleChange",r=>{var i=r,{values:a}=i,s=Gh(i,["values"]);const d=Vn(tn({},s),{values:Vn(tn({},a),{query:(0,mr.FU)(a.query||{})})});this.setState({form:d}),(0,mr.Hc)(d),this.props.operation.setRequestValues(a)}),Fs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),Fs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),Fs(this,"handleExecute",()=>$h(this,null,function*(){var r,i,a,s,d,y,A,w,E;const{store:R,operation:W,onResponse:ae}=this.props;(r=this.formApi)==null||r.submitForm();const{values:re,invalid:oe}=((i=this.formApi)==null?void 0:i.getState())||this.state.form;if(oe){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(s=(a=R==null?void 0:R.options.events)==null?void 0:a.tryItSent)==null||s.call(a,{eventType:ep.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:W.operationId,operationPath:W.path,operationHttpVerb:W.httpVerb,operationSummary:W.description});return}const{servers:ye,requestBody:he}=this.props.operation,Se=he&&he.content&&he.content.active&&he.content.active.name||"";let me=re.body;if(/json/.test(Se))try{me=JSON.parse(me)}catch(at){console.error(at)}this.setState({loading:!0});const Te=this.state.resolvedRawSpec,He=(W.httpVerb||"").toLowerCase();if(!ye)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 Ue=ye.find(at=>this.state.server.url.endsWith(at.url.endsWith("/")?at.url.substring(0,at.url.length-1):at.url)),ze=Date.now(),Ne=!!window.document.documentMode;let Be,We=re.auth;if(re.auth){const at=Object.keys(re.auth)[0],Pt=(0,zt.dw)(at);Be=Vn(tn({},Te),{components:Vn(tn({},Te==null?void 0:Te.components),{securitySchemes:Vn(tn({},Te==null?void 0:Te.components.securitySchemes),{[Pt]:Vn(tn({},Te==null?void 0:Te.components.securitySchemes[Pt]),{type:(Te==null?void 0:Te.components.securitySchemes[Pt].type)==="openIdConnect"?"oauth2":Te==null?void 0:Te.components.securitySchemes[Pt].type})})})}),We=Vn(tn({},We),{[Pt]:We[at]})}else Be=tn({},Te);Be.servers=ye;const Ye=R.options.corsProxyUrl;Ye&&ye.length&&(Be.servers=ye.map(at=>Vn(tn({},at),{url:Ye+Kh(at.url)})),Be.paths=Vn(tn({},Be.paths),{[W.path]:Vn(tn({},Be.paths[W.path]),{[He]:Vn(tn({},Be.paths[W.path][He]),{servers:void 0}),servers:void 0})}));const et=((y=(d=he==null?void 0:he.content)==null?void 0:d.active)==null?void 0:y.name)||null;if(et&&me&&st(et)){const at=Object.values(me);me=at.length>1?at:at[0]}const it={userFetch:Ne&&o(54098).fetch,server:Ye?Ye+Kh(Ue.url):Ue.url,serverVariables:this.state.server.variables,spec:Be,pathName:W.path,method:W.httpVerb,parameters:tn(tn(tn(tn({},re.path),re.query),re.header),re.cookie),securities:{authorized:We},requestBody:me,requestContentType:et,responseContentType:((A=re.header)==null?void 0:A.Accept)||null,requestInterceptor:(0,mr.Tz)(R.options,W,We==null?void 0:We.Authorization)};try{const at=yield td.execute(it),Pt=at==null?void 0:at.data;Pt instanceof Blob&&(st(Pt.type)&&(at.fileInfo={rawData:Pt,fileName:(0,mr.AM)(at.headers)}),at.data=yield Pt.text()),ae==null||ae({request:it,response:at}),this.setState({response:at,error:void 0})}catch(at){at&&at.response&&at.response.data instanceof Blob&&(at.response.data=yield at.response.data.text(),ae==null||ae({request:it,response:at.response})),this.setState({response:void 0,error:at})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-ze}),(E=(w=R==null?void 0:R.options.events)==null?void 0:w.tryItSent)==null||E.call(w,{eventType:ep.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:W.operationId,operationPath:W.path,operationHttpVerb:W.httpVerb,operationSummary:W.description})}})),this.state={form:{values:{path:(0,mr.ZS)(t.operation.parameters,"path"),cookie:(0,mr.ZS)(t.operation.parameters,"cookie"),header:(0,mr.ZS)(t.operation.parameters,"header"),query:(0,mr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return $h(this,null,function*(){var t;const{store:r,operation:i}=this.props,a=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:a}),(t=this.formApi)==null||t.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:d,response:y,loading:A,error:w}=this.state,E=!!(y||w);return Pr.createElement(Om,{shaking:a,className:r,rootElement:i},Pr.createElement(ji.k1,null,Pr.createElement(hg,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&Pr.createElement(ws.PZ,{onClick:this.props.onClose}," \u2715 ")),Pr.createElement(ws.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),Pr.createElement(ws.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),Pr.createElement(rm,{hasResponse:E,params:d.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:d,resolvedRawSpec:y,server:A}=this.state,w=d.errors||{},E=w.path||w.cookie||w.header||w.query,R=y&&Vt.JsonPointer.get(y,r.pointer);let W=d.values&&d.values.auth&&Object.keys(d.values.auth)[0];(!W||!d.values.auth[W])&&(W=void 0),W&&(d.values.auth[W].token!==void 0||d.values.auth[W].client_id!==void 0||d.values.auth[W].client_secret!==void 0)&&(!d.values.auth[W].token||!d.values.auth[W].token.access_token)&&(W=void 0),W&&d.values.auth[W].username!=null&&(!d.values.auth[W].username||!d.values.auth[W].password)&&(W=void 0);const ae=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&Pr.createElement(Pr.Fragment,null,"Loading...")||Pr.createElement(cu,{onChange:this.handleChange,getApi:this.setFormApi,style:Vn(tn({},Em),{margin:0})},Pr.createElement(fm,{operation:r,onChange:this.handleServerChange}),Pr.createElement(ji.UQ,{initialActiveIdx:r.security.length&&W?1:0},r.security.length&&this.formApi&&Pr.createElement(Id,{header:(0,Mo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!W&&!!w.auth,success:!!W},re?Pr.createElement(Tm,{field:"auth",validate:Wl},oe=>Pr.createElement(ar.Q,{Hook:re,props:{server:A,operation:r,onChange:oe,OAuth2:f}})):Pr.createElement(dg,{formApi:this.formApi,form:d,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&Pr.createElement(Id,{header:(0,Mo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},Pr.createElement(Gy,{validate:Cm,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:R==null?void 0:R.requestBody,properties:a}))||null,ae.length&&Pr.createElement(Id,{header:(0,Mo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},Pr.createElement(hv,{operation:r,values:d.values,errors:d.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return Pr.createElement(Zy,{response:t,error:r,time:i})}};Rd=Am([Go.Pi],Rd);function Cm(){}function Om(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[d]=(0,ir.Bs)(s);return Pr.createElement(ws.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:d==null?void 0:d.width},a)}function Tm(t){const{fieldApi:r,render:i,userProps:a}=Ln(tn({},t)),{setValue:s}=r,{children:d}=a;return i(Pr.createElement(Pr.Fragment,null,d(s)))}},68929:()=>{},17648:p=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";p.exports=function(h){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(h,S.concat(o.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;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:(p,I,o)=>{"use strict";var c=o(17648);p.exports=Function.prototype.bind||c},40210:(p,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,h=TypeError,b=function(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new h},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=o(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?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%":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%":h,"%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 xe(we){var ve;if(we==="%AsyncFunction%")ve=b("async function () {}");else if(we==="%GeneratorFunction%")ve=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")ve=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(ve=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var se=xe("%AsyncGenerator%");se&&(ve=B(se.prototype))}return H[we]=ve,ve},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"]},M=o(58612),C=o(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var ve=Q(we,0,1),fe=Q(we,-1);if(ve==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&ve!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var se=[];return q(we,Y,function(Fe,Le,Re,Pe){se[se.length]=Re?q(Pe,ce,"$1"):Le||Fe}),se},ne=function(we,ve){var fe=we,se;if(C(X,fe)&&(se=X[fe],fe="%"+se[0]+"%"),C(H,fe)){var Fe=H[fe];if(Fe===j&&(Fe=k(fe)),typeof Fe=="undefined"&&!ve)throw new h("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:se,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};p.exports=function(we,ve){if(typeof we!="string"||we.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ve!="boolean")throw new h('"allowMissing" argument must be a boolean');var fe=ee(we),se=fe.length>0?fe[0]:"",Fe=ne("%"+se+"%",ve),Le=Fe.name,Re=Fe.value,Pe=!1,rt=Fe.alias;rt&&(se=rt[0],J(fe,V([0,1],rt)));for(var Qe=1,Je=!0;Qe<fe.length;Qe+=1){var ct=fe[Qe],vt=Q(ct,0,1),wt=Q(ct,-1);if((vt==='"'||vt==="'"||vt==="`"||wt==='"'||wt==="'"||wt==="`")&&vt!==wt)throw new v("property names with quotes must have matching quotes");if((ct==="constructor"||!Je)&&(Pe=!0),se+="."+ct,Le="%"+se+"%",C(H,Le))Re=H[Le];else if(Re!=null){if(!(ct in Re)){if(!ve)throw new h("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Qe+1>=fe.length){var nt=S(Re,ct);Je=!!nt,Je&&"get"in nt&&!("originalValue"in nt.get)?Re=nt.get:Re=Re[ct]}else Je=C(Re,ct),Re=Re[ct];Je&&!Pe&&(H[Le]=Re)}}return Re}},41405:(p,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);p.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:p=>{"use strict";p.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 h=Object.getOwnPropertySymbols(o);if(h.length!==1||h[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:(p,I,o)=>{"use strict";var c=o(58612);p.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(p,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,h){var b,S,g=h*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?h-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-D;else{if(b===L)return S?NaN:(H?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(H?-1:1)*S*Math.pow(2,b-x)},I.write=function(o,c,v,x,h,b){var S,g,L,D=b*8-h-1,B=(1<<D)-1,j=B>>1,_=h===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,h),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,h),S=0));h>=8;o[v+H]=g&255,H+=k,g/=256,h-=8);for(S=S<<h|g,D+=h;D>0;o[v+H]=S&255,H+=k,S/=256,D-=8);o[v+H-k]|=X*128}},5826:p=>{var I={}.toString;p.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:p=>{p.exports=window.FormData},93320:(p,I,o)=>{"use strict";var c=o(51294);p.exports=c},51294:(p,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(h){return function(){throw new Error("Function "+h+" is deprecated and cannot be used.")}}p.exports.Type=o(53899),p.exports.Schema=o(82409),p.exports.FAILSAFE_SCHEMA=o(75322),p.exports.JSON_SCHEMA=o(65796),p.exports.CORE_SCHEMA=o(17318),p.exports.DEFAULT_SAFE_SCHEMA=o(5972),p.exports.DEFAULT_FULL_SCHEMA=o(19321),p.exports.load=c.load,p.exports.loadAll=c.loadAll,p.exports.safeLoad=c.safeLoad,p.exports.safeLoadAll=c.safeLoadAll,p.exports.dump=v.dump,p.exports.safeDump=v.safeDump,p.exports.YAMLException=o(14884),p.exports.MINIMAL_SCHEMA=o(75322),p.exports.SAFE_SCHEMA=o(5972),p.exports.DEFAULT_SCHEMA=o(19321),p.exports.scan=x("scan"),p.exports.parse=x("parse"),p.exports.compose=x("compose"),p.exports.addConstructor=x("addConstructor")},25596:p=>{"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,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function h(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}p.exports.isNothing=I,p.exports.isObject=o,p.exports.toArray=c,p.exports.repeat=x,p.exports.isNegativeZero=h,p.exports.extend=v},96157:(p,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),h=o(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,_=34,H=35,k=37,X=38,M=39,C=42,V=44,J=45,q=58,Q=61,Y=62,ce=63,ee=64,ne=91,xe=93,we=96,ve=123,fe=124,se=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Re(N,te){var de,ie,pe,Ee,je,Ve,Xe;if(te===null)return{};for(de={},ie=Object.keys(te),pe=0,Ee=ie.length;pe<Ee;pe+=1)je=ie[pe],Ve=String(te[je]),je.slice(0,2)==="!!"&&(je="tag:yaml.org,2002:"+je.slice(2)),Xe=N.compiledTypeMap.fallback[je],Xe&&S.call(Xe.styleAliases,Ve)&&(Ve=Xe.styleAliases[Ve]),de[je]=Ve;return de}function Pe(N){var te,de,ie;if(te=N.toString(16).toUpperCase(),N<=255)de="x",ie=2;else if(N<=65535)de="u",ie=4;else if(N<=4294967295)de="U",ie=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ie-te.length)+te}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=Re(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,te){for(var de=c.repeat(" ",te),ie=0,pe=-1,Ee="",je,Ve=N.length;ie<Ve;)pe=N.indexOf(`
|
|
501
|
+
`,ie),pe===-1?(je=N.slice(ie),ie=Ve):(je=N.slice(ie,pe+1),ie=pe+1),je.length&&je!==`
|
|
502
|
+
`&&(Ee+=de),Ee+=je;return Ee}function Je(N,te){return`
|
|
503
|
+
`+c.repeat(" ",N.indent*te)}function ct(N,te){var de,ie,pe;for(de=0,ie=N.implicitTypes.length;de<ie;de+=1)if(pe=N.implicitTypes[de],pe.resolve(te))return!0;return!1}function vt(N){return N===B||N===g}function wt(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 nt(N){return wt(N)&&!vt(N)&&N!==65279&&N!==D&&N!==L}function ft(N,te){return wt(N)&&N!==65279&&N!==V&&N!==ne&&N!==xe&&N!==ve&&N!==se&&N!==q&&(N!==H||te&&nt(te))}function mt(N){return wt(N)&&N!==65279&&!vt(N)&&N!==J&&N!==ce&&N!==q&&N!==V&&N!==ne&&N!==xe&&N!==ve&&N!==se&&N!==H&&N!==X&&N!==C&&N!==j&&N!==fe&&N!==Q&&N!==Y&&N!==M&&N!==_&&N!==k&&N!==ee&&N!==we}function xt(N){var te=/^\n* /;return te.test(N)}var ht=1,Rt=2,Ft=3,Et=4,Wt=5;function Ut(N,te,de,ie,pe){var Ee,je,Ve,Xe=!1,gt=!1,At=ie!==-1,Nt=-1,Tt=mt(N.charCodeAt(0))&&!vt(N.charCodeAt(N.length-1));if(te)for(Ee=0;Ee<N.length;Ee++){if(je=N.charCodeAt(Ee),!wt(je))return Wt;Ve=Ee>0?N.charCodeAt(Ee-1):null,Tt=Tt&&ft(je,Ve)}else{for(Ee=0;Ee<N.length;Ee++){if(je=N.charCodeAt(Ee),je===L)Xe=!0,At&&(gt=gt||Ee-Nt-1>ie&&N[Nt+1]!==" ",Nt=Ee);else if(!wt(je))return Wt;Ve=Ee>0?N.charCodeAt(Ee-1):null,Tt=Tt&&ft(je,Ve)}gt=gt||At&&Ee-Nt-1>ie&&N[Nt+1]!==" "}return!Xe&&!gt?Tt&&!pe(N)?ht:Rt:de>9&&xt(N)?Wt:gt?Et:Ft}function jt(N,te,de,ie){N.dump=function(){if(te.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(te)!==-1)return"'"+te+"'";var pe=N.indent*Math.max(1,de),Ee=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),je=ie||N.flowLevel>-1&&de>=N.flowLevel;function Ve(Xe){return ct(N,Xe)}switch(Ut(te,je,N.indent,Ee,Ve)){case ht:return te;case Rt:return"'"+te.replace(/'/g,"''")+"'";case Ft:return"|"+St(te,N.indent)+Dt(Qe(te,pe));case Et:return">"+St(te,N.indent)+Dt(Qe(ge(te,Ee),pe));case Wt:return'"'+$(te,Ee)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(N,te){var de=xt(N)?String(te):"",ie=N[N.length-1]===`
|
|
504
|
+
`,pe=ie&&(N[N.length-2]===`
|
|
505
505
|
`||N===`
|
|
506
|
-
`),Ee=pe?"+":
|
|
506
|
+
`),Ee=pe?"+":ie?"":"-";return de+Ee+`
|
|
507
507
|
`}function Dt(N){return N[N.length-1]===`
|
|
508
|
-
`?N.slice(0,-1):N}function ge(N,
|
|
509
|
-
`);return gt=gt!==-1?gt:N.length,de.lastIndex=gt,G(N.slice(0,gt),
|
|
510
|
-
`||N[0]===" ",Ee,je;je=de.exec(N);){var Ve=je[1],Xe=je[2];Ee=Xe[0]===" ",
|
|
511
|
-
`:"")+G(Xe,
|
|
508
|
+
`?N.slice(0,-1):N}function ge(N,te){for(var de=/(\n+)([^\n]*)/g,ie=function(){var gt=N.indexOf(`
|
|
509
|
+
`);return gt=gt!==-1?gt:N.length,de.lastIndex=gt,G(N.slice(0,gt),te)}(),pe=N[0]===`
|
|
510
|
+
`||N[0]===" ",Ee,je;je=de.exec(N);){var Ve=je[1],Xe=je[2];Ee=Xe[0]===" ",ie+=Ve+(!pe&&!Ee&&Xe!==""?`
|
|
511
|
+
`:"")+G(Xe,te),pe=Ee}return ie}function G(N,te){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,ie,pe=0,Ee,je=0,Ve=0,Xe="";ie=de.exec(N);)Ve=ie.index,Ve-pe>te&&(Ee=je>pe?je:Ve,Xe+=`
|
|
512
512
|
`+N.slice(pe,Ee),pe=Ee+1),je=Ve;return Xe+=`
|
|
513
|
-
`,N.length-pe>
|
|
514
|
-
`+N.slice(je+1):Xe+=N.slice(pe),Xe.slice(1)}function $(N){for(var
|
|
515
|
-
`:""}function
|
|
516
|
-
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function
|
|
517
|
-
`,Me-1))}function xt(P,Me,K){var T,O,
|
|
518
|
-
`,
|
|
519
|
-
`);break}for(T?Q(Ee)?(
|
|
520
|
-
`,
|
|
521
|
-
`,de+1)):de===0?
|
|
513
|
+
`,N.length-pe>te&&je>pe?Xe+=N.slice(pe,je)+`
|
|
514
|
+
`+N.slice(je+1):Xe+=N.slice(pe),Xe.slice(1)}function $(N){for(var te="",de,ie,pe,Ee=0;Ee<N.length;Ee++){if(de=N.charCodeAt(Ee),de>=55296&&de<=56319&&(ie=N.charCodeAt(Ee+1),ie>=56320&&ie<=57343)){te+=Pe((de-55296)*1024+ie-56320+65536),Ee++;continue}pe=Fe[de],te+=!pe&&wt(de)?N[Ee]:pe||Pe(de)}return te}function Ae(N,te,de){var ie="",pe=N.tag,Ee,je;for(Ee=0,je=de.length;Ee<je;Ee+=1)Me(N,te,de[Ee],!1,!1)&&(Ee!==0&&(ie+=","+(N.condenseFlow?"":" ")),ie+=N.dump);N.tag=pe,N.dump="["+ie+"]"}function Ie(N,te,de,ie){var pe="",Ee=N.tag,je,Ve;for(je=0,Ve=de.length;je<Ve;je+=1)Me(N,te+1,de[je],!0,!0)&&((!ie||je!==0)&&(pe+=Je(N,te)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ee,N.dump=pe||"[]"}function Ge(N,te,de){var ie="",pe=N.tag,Ee=Object.keys(de),je,Ve,Xe,gt,At;for(je=0,Ve=Ee.length;je<Ve;je+=1)At="",je!==0&&(At+=", "),N.condenseFlow&&(At+='"'),Xe=Ee[je],gt=de[Xe],!!Me(N,te,Xe,!1,!1)&&(N.dump.length>1024&&(At+="? "),At+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Me(N,te,gt,!1,!1)&&(At+=N.dump,ie+=At));N.tag=pe,N.dump="{"+ie+"}"}function Ke(N,te,de,ie){var pe="",Ee=N.tag,je=Object.keys(de),Ve,Xe,gt,At,Nt,Tt;if(N.sortKeys===!0)je.sort();else if(typeof N.sortKeys=="function")je.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Ve=0,Xe=je.length;Ve<Xe;Ve+=1)Tt="",(!ie||Ve!==0)&&(Tt+=Je(N,te)),gt=je[Ve],At=de[gt],!!Me(N,te+1,gt,!0,!0,!0)&&(Nt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Nt&&(N.dump&&L===N.dump.charCodeAt(0)?Tt+="?":Tt+="? "),Tt+=N.dump,Nt&&(Tt+=Je(N,te)),!!Me(N,te+1,At,!0,Nt)&&(N.dump&&L===N.dump.charCodeAt(0)?Tt+=":":Tt+=": ",Tt+=N.dump,pe+=Tt));N.tag=Ee,N.dump=pe||"{}"}function P(N,te,de){var ie,pe,Ee,je,Ve,Xe;for(pe=de?N.explicitTypes:N.implicitTypes,Ee=0,je=pe.length;Ee<je;Ee+=1)if(Ve=pe[Ee],(Ve.instanceOf||Ve.predicate)&&(!Ve.instanceOf||typeof te=="object"&&te instanceof Ve.instanceOf)&&(!Ve.predicate||Ve.predicate(te))){if(N.tag=de?Ve.tag:"?",Ve.represent){if(Xe=N.styleMap[Ve.tag]||Ve.defaultStyle,b.call(Ve.represent)==="[object Function]")ie=Ve.represent(te,Xe);else if(S.call(Ve.represent,Xe))ie=Ve.represent[Xe](te,Xe);else throw new v("!<"+Ve.tag+'> tag resolver accepts not "'+Xe+'" style');N.dump=ie}return!0}return!1}function Me(N,te,de,ie,pe,Ee){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var je=b.call(N.dump);ie&&(ie=N.flowLevel<0||N.flowLevel>te);var Ve=je==="[object Object]"||je==="[object Array]",Xe,gt;if(Ve&&(Xe=N.duplicates.indexOf(de),gt=Xe!==-1),(N.tag!==null&&N.tag!=="?"||gt||N.indent!==2&&te>0)&&(pe=!1),gt&&N.usedDuplicates[Xe])N.dump="*ref_"+Xe;else{if(Ve&>&&!N.usedDuplicates[Xe]&&(N.usedDuplicates[Xe]=!0),je==="[object Object]")ie&&Object.keys(N.dump).length!==0?(Ke(N,te,N.dump,pe),gt&&(N.dump="&ref_"+Xe+N.dump)):(Ge(N,te,N.dump),gt&&(N.dump="&ref_"+Xe+" "+N.dump));else if(je==="[object Array]"){var At=N.noArrayIndent&&te>0?te-1:te;ie&&N.dump.length!==0?(Ie(N,At,N.dump,pe),gt&&(N.dump="&ref_"+Xe+N.dump)):(Ae(N,At,N.dump),gt&&(N.dump="&ref_"+Xe+" "+N.dump))}else if(je==="[object String]")N.tag!=="?"&&jt(N,N.dump,te,Ee);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+je)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,te){var de=[],ie=[],pe,Ee;for(T(N,de,ie),pe=0,Ee=ie.length;pe<Ee;pe+=1)te.duplicates.push(de[ie[pe]]);te.usedDuplicates=new Array(Ee)}function T(N,te,de){var ie,pe,Ee;if(N!==null&&typeof N=="object")if(pe=te.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(te.push(N),Array.isArray(N))for(pe=0,Ee=N.length;pe<Ee;pe+=1)T(N[pe],te,de);else for(ie=Object.keys(N),pe=0,Ee=ie.length;pe<Ee;pe+=1)T(N[ie[pe]],te,de)}function O(N,te){te=te||{};var de=new rt(te);return de.noRefs||K(N,de),Me(de,0,N,!0,!0)?de.dump+`
|
|
515
|
+
`:""}function le(N,te){return O(N,c.extend({schema:h},te))}p.exports.dump=O,p.exports.safeDump=le},14884:p=>{"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},p.exports=I},40028:(p,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),h=o(5972),b=o(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,D=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]/,M=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(P){return Object.prototype.toString.call(P)}function q(P){return P===10||P===13}function Q(P){return P===9||P===32}function Y(P){return P===9||P===32||P===10||P===13}function ce(P){return P===44||P===91||P===93||P===123||P===125}function ee(P){var Me;return 48<=P&&P<=57?P-48:(Me=P|32,97<=Me&&Me<=102?Me-97+10:-1)}function ne(P){return P===120?2:P===117?4:P===85?8:0}function xe(P){return 48<=P&&P<=57?P-48:-1}function we(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
|
|
516
|
+
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function ve(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),se=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=we(Fe)?1:0,se[Fe]=we(Fe);function Le(P,Me){this.input=P,this.filename=Me.filename||null,this.schema=Me.schema||b,this.onWarning=Me.onWarning||null,this.legacy=Me.legacy||!1,this.json=Me.json||!1,this.listener=Me.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Re(P,Me){return new v(Me,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Me){throw Re(P,Me)}function rt(P,Me){P.onWarning&&P.onWarning.call(null,Re(P,Me))}var Qe={YAML:function(Me,K,T){var O,le,N;Me.version!==null&&Pe(Me,"duplication of %YAML directive"),T.length!==1&&Pe(Me,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Me,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Me,"unacceptable YAML version of the document"),Me.version=T[0],Me.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Me,"unsupported YAML version of the document")},TAG:function(Me,K,T){var O,le;T.length!==2&&Pe(Me,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Me,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Me.tagMap,O)&&Pe(Me,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Me,"ill-formed tag prefix (second argument) of the TAG directive"),Me.tagMap[O]=le}};function Je(P,Me,K,T){var O,le,N,te;if(Me<K){if(te=P.input.slice(Me,K),T)for(O=0,le=te.length;O<le;O+=1)N=te.charCodeAt(O),N===9||32<=N&&N<=1114111||Pe(P,"expected valid JSON character");else k.test(te)&&Pe(P,"the stream contains non-printable characters");P.result+=te}}function ct(P,Me,K,T){var O,le,N,te;for(c.isObject(K)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,te=O.length;N<te;N+=1)le=O[N],S.call(Me,le)||(Me[le]=K[le],T[le]=!0)}function vt(P,Me,K,T,O,le,N,te){var de,ie;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,ie=O.length;de<ie;de+=1)Array.isArray(O[de])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Me===null&&(Me={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(de=0,ie=le.length;de<ie;de+=1)ct(P,Me,le[de],K);else ct(P,Me,le,K);else!P.json&&!S.call(K,O)&&S.call(Me,O)&&(P.line=N||P.line,P.position=te||P.position,Pe(P,"duplicated mapping key")),Me[O]=le,delete K[O];return Me}function wt(P){var Me;Me=P.input.charCodeAt(P.position),Me===10?P.position++:Me===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Pe(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function nt(P,Me,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Me&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(q(O))for(wt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ft(P){var Me=P.position,K;return K=P.input.charCodeAt(Me),!!((K===45||K===46)&&K===P.input.charCodeAt(Me+1)&&K===P.input.charCodeAt(Me+2)&&(Me+=3,K=P.input.charCodeAt(Me),K===0||Y(K)))}function mt(P,Me){Me===1?P.result+=" ":Me>1&&(P.result+=c.repeat(`
|
|
517
|
+
`,Me-1))}function xt(P,Me,K){var T,O,le,N,te,de,ie,pe,Ee=P.kind,je=P.result,Ve;if(Ve=P.input.charCodeAt(P.position),Y(Ve)||ce(Ve)||Ve===35||Ve===38||Ve===42||Ve===33||Ve===124||Ve===62||Ve===39||Ve===34||Ve===37||Ve===64||Ve===96||(Ve===63||Ve===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,te=!1;Ve!==0;){if(Ve===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O))break}else if(Ve===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ft(P)||K&&ce(Ve))break;if(q(Ve))if(de=P.line,ie=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Me){te=!0,Ve=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=ie,P.lineIndent=pe;break}}te&&(Je(P,le,N,!1),mt(P,P.line-de),le=N=P.position,te=!1),Q(Ve)||(N=P.position+1),Ve=P.input.charCodeAt(++P.position)}return Je(P,le,N,!1),P.result?!0:(P.kind=Ee,P.result=je,!1)}function ht(P,Me){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Je(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else q(K)?(Je(P,T,O,!0),mt(P,nt(P,!1,Me)),T=O=P.position):P.position===P.lineStart&&ft(P)?Pe(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Pe(P,"unexpected end of the stream within a single quoted scalar")}function Rt(P,Me){var K,T,O,le,N,te;if(te=P.input.charCodeAt(P.position),te!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(te=P.input.charCodeAt(P.position))!==0;){if(te===34)return Je(P,K,P.position,!0),P.position++,!0;if(te===92){if(Je(P,K,P.position,!0),te=P.input.charCodeAt(++P.position),q(te))nt(P,!1,Me);else if(te<256&&fe[te])P.result+=se[te],P.position++;else if((N=ne(te))>0){for(O=N,le=0;O>0;O--)te=P.input.charCodeAt(++P.position),(N=ee(te))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=ve(le),P.position++}else Pe(P,"unknown escape sequence");K=T=P.position}else q(te)?(Je(P,K,T,!0),mt(P,nt(P,!1,Me)),K=T=P.position):P.position===P.lineStart&&ft(P)?Pe(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Pe(P,"unexpected end of the stream within a double quoted scalar")}function Ft(P,Me){var K=!0,T,O=P.tag,le,N=P.anchor,te,de,ie,pe,Ee,je={},Ve,Xe,gt,At;if(At=P.input.charCodeAt(P.position),At===91)de=93,Ee=!1,le=[];else if(At===123)de=125,Ee=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),At=P.input.charCodeAt(++P.position);At!==0;){if(nt(P,!0,Me),At=P.input.charCodeAt(P.position),At===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ee?"mapping":"sequence",P.result=le,!0;K||Pe(P,"missed comma between flow collection entries"),Xe=Ve=gt=null,ie=pe=!1,At===63&&(te=P.input.charCodeAt(P.position+1),Y(te)&&(ie=pe=!0,P.position++,nt(P,!0,Me))),T=P.line,ge(P,Me,g,!1,!0),Xe=P.tag,Ve=P.result,nt(P,!0,Me),At=P.input.charCodeAt(P.position),(pe||P.line===T)&&At===58&&(ie=!0,At=P.input.charCodeAt(++P.position),nt(P,!0,Me),ge(P,Me,g,!1,!0),gt=P.result),Ee?vt(P,le,je,Xe,Ve,gt):ie?le.push(vt(P,null,je,Xe,Ve,gt)):le.push(Ve),nt(P,!0,Me),At=P.input.charCodeAt(P.position),At===44?(K=!0,At=P.input.charCodeAt(++P.position)):K=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Et(P,Me){var K,T,O=j,le=!1,N=!1,te=Me,de=0,ie=!1,pe,Ee;if(Ee=P.input.charCodeAt(P.position),Ee===124)T=!1;else if(Ee===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ee!==0;)if(Ee=P.input.charCodeAt(++P.position),Ee===43||Ee===45)j===O?O=Ee===43?H:_:Pe(P,"repeat of a chomping mode identifier");else if((pe=xe(Ee))>=0)pe===0?Pe(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Pe(P,"repeat of an indentation width identifier"):(te=Me+pe-1,N=!0);else break;if(Q(Ee)){do Ee=P.input.charCodeAt(++P.position);while(Q(Ee));if(Ee===35)do Ee=P.input.charCodeAt(++P.position);while(!q(Ee)&&Ee!==0)}for(;Ee!==0;){for(wt(P),P.lineIndent=0,Ee=P.input.charCodeAt(P.position);(!N||P.lineIndent<te)&&Ee===32;)P.lineIndent++,Ee=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>te&&(te=P.lineIndent),q(Ee)){de++;continue}if(P.lineIndent<te){O===H?P.result+=c.repeat(`
|
|
518
|
+
`,le?1+de:de):O===j&&le&&(P.result+=`
|
|
519
|
+
`);break}for(T?Q(Ee)?(ie=!0,P.result+=c.repeat(`
|
|
520
|
+
`,le?1+de:de)):ie?(ie=!1,P.result+=c.repeat(`
|
|
521
|
+
`,de+1)):de===0?le&&(P.result+=" "):P.result+=c.repeat(`
|
|
522
522
|
`,de):P.result+=c.repeat(`
|
|
523
|
-
`,
|
|
524
|
-
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Me),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)G(K);return K.documents}function
|
|
523
|
+
`,le?1+de:de),le=!0,N=!0,de=0,K=P.position;!q(Ee)&&Ee!==0;)Ee=P.input.charCodeAt(++P.position);Je(P,K,P.position,!1)}return!0}function Wt(P,Me){var K,T=P.tag,O=P.anchor,le=[],N,te=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(te=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Me){le.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ge(P,Me,D,!1,!0),le.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Me)&&de!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Me)break}return te?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function Ut(P,Me,K){var T,O,le,N,te=P.tag,de=P.anchor,ie={},pe={},Ee=null,je=null,Ve=null,Xe=!1,gt=!1,At;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ie),At=P.input.charCodeAt(P.position);At!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(At===63||At===58)&&Y(T))At===63?(Xe&&(vt(P,ie,pe,Ee,je,null),Ee=je=Ve=null),gt=!0,Xe=!0,O=!0):Xe?(Xe=!1,O=!0):Pe(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,At=T;else if(ge(P,K,L,!1,!0))if(P.line===le){for(At=P.input.charCodeAt(P.position);Q(At);)At=P.input.charCodeAt(++P.position);if(At===58)At=P.input.charCodeAt(++P.position),Y(At)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),Xe&&(vt(P,ie,pe,Ee,je,null),Ee=je=Ve=null),gt=!0,Xe=!1,O=!1,Ee=P.tag,je=P.result;else if(gt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=te,P.anchor=de,!0}else if(gt)Pe(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=te,P.anchor=de,!0;else break;if((P.line===le||P.lineIndent>Me)&&(ge(P,Me,B,!0,O)&&(Xe?je=P.result:Ve=P.result),Xe||(vt(P,ie,pe,Ee,je,Ve,le,N),Ee=je=Ve=null),nt(P,!0,-1),At=P.input.charCodeAt(P.position)),P.lineIndent>Me&&At!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Me)break}return Xe&&vt(P,ie,pe,Ee,je,null),gt&&(P.tag=te,P.anchor=de,P.kind="mapping",P.result=ie),gt}function jt(P){var Me,K=!1,T=!1,O,le,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Pe(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Me=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Me,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Me-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Me=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Me,P.position),M.test(le)&&Pe(P,"tag suffix cannot contain flow indicator characters")}return le&&!V.test(le)&&Pe(P,"tag name cannot contain such characters: "+le),K?P.tag=le:S.call(P.tagMap,O)?P.tag=P.tagMap[O]+le:O==="!"?P.tag="!"+le:O==="!!"?P.tag="tag:yaml.org,2002:"+le:Pe(P,'undeclared tag handle "'+O+'"'),!0}function St(P){var Me,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Me=P.position;K!==0&&!Y(K)&&!ce(K);)K=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Me,P.position),!0}function Dt(P){var Me,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Me=P.position;T!==0&&!Y(T)&&!ce(T);)T=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an alias node must contain at least one character"),K=P.input.slice(Me,P.position),S.call(P.anchorMap,K)||Pe(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ge(P,Me,K,T,O){var le,N,te,de=1,ie=!1,pe=!1,Ee,je,Ve,Xe,gt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=te=B===K||D===K,T&&nt(P,!0,-1)&&(ie=!0,P.lineIndent>Me?de=1:P.lineIndent===Me?de=0:P.lineIndent<Me&&(de=-1)),de===1)for(;jt(P)||St(P);)nt(P,!0,-1)?(ie=!0,te=le,P.lineIndent>Me?de=1:P.lineIndent===Me?de=0:P.lineIndent<Me&&(de=-1)):te=!1;if(te&&(te=ie||O),(de===1||B===K)&&(g===K||L===K?Xe=Me:Xe=Me+1,gt=P.position-P.lineStart,de===1?te&&(Wt(P,gt)||Ut(P,gt,Xe))||Ft(P,Xe)?pe=!0:(N&&Et(P,Xe)||ht(P,Xe)||Rt(P,Xe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):xt(P,Xe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=te&&Wt(P,gt))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Pe(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ee=0,je=P.implicitTypes.length;Ee<je;Ee+=1)if(Ve=P.implicitTypes[Ee],Ve.resolve(P.result)){P.result=Ve.construct(P.result),P.tag=Ve.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(Ve=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Ve.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Ve.kind+'", not "'+P.kind+'"'),Ve.resolve(P.result)?(P.result=Ve.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Pe(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Pe(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||pe}function G(P){var Me=P.position,K,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!q(N));break}if(q(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&wt(P),S.call(Qe,T)?Qe[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,nt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),ge(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Me,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ft(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(P,!0,-1));return}if(P.position<P.length-1)Pe(P,"end of the stream or a document separator is expected");else return}function $(P,Me){P=String(P),Me=Me||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
|
|
524
|
+
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Me),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)G(K);return K.documents}function Ae(P,Me,K){Me!==null&&typeof Me=="object"&&typeof K=="undefined"&&(K=Me,Me=null);var T=$(P,K);if(typeof Me!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Me(T[O])}function Ie(P,Me){var K=$(P,Me);if(K.length!==0){if(K.length===1)return K[0];throw new v("expected a single document in the stream, but found more")}}function Ge(P,Me,K){return typeof Me=="object"&&Me!==null&&typeof K=="undefined"&&(K=Me,Me=null),Ae(P,Me,c.extend({schema:h},K))}function Ke(P,Me){return Ie(P,c.extend({schema:h},Me))}p.exports.loadAll=Ae,p.exports.load=Ie,p.exports.safeLoadAll=Ge,p.exports.safeLoad=Ke},77334:(p,I,o)=>{"use strict";var c=o(25596);function v(x,h,b,S,g){this.name=x,this.buffer=h,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(h,b){var S,g,L,D,B;if(!this.buffer)return null;for(h=h||4,b=b||75,S="",g=this.position;g>0&&`\0\r
|
|
525
525
|
\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="",D=this.position;D<this.buffer.length&&`\0\r
|
|
526
526
|
\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(" ",h)+S+B+L+`
|
|
527
527
|
`+c.repeat(" ",h+this.position-g+S.length)+"^"},v.prototype.toString=function(h){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),h||(b=this.getSnippet(),b&&(S+=`:
|
|
528
528
|
`+b)),S},p.exports=v},82409:(p,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function h(g,L,D){var B=[];return g.include.forEach(function(j){D=h(j,L,D)}),g[L].forEach(function(j){D.forEach(function(_,H){_.tag===j.tag&&_.kind===j.kind&&B.push(H)}),D.push(j)}),D.filter(function(j,_){return B.indexOf(_)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;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=h(this,"implicit",[]),this.compiledExplicit=h(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}S.DEFAULT=null,S.create=function(){var L,D;switch(arguments.length){case 1:L=S.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 S}))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 S({include:L,explicit:D})},p.exports=S},17318:(p,I,o)=>{"use strict";var c=o(82409);p.exports=new c({include:[o(65796)]})},19321:(p,I,o)=>{"use strict";var c=o(82409);p.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(p,I,o)=>{"use strict";var c=o(82409);p.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(p,I,o)=>{"use strict";var c=o(82409);p.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(p,I,o)=>{"use strict";var c=o(82409);p.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(p,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function h(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(D){g[String(D)]=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=h(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}p.exports=b},18964:(p,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(D){}var x=o(53899),h=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
529
|
-
\r`;function b(D){if(D===null)return!1;var B,j,_=0,H=D.length,k=h;for(j=0;j<H;j++)if(B=k.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function S(D){var B,j,_=D.replace(/[\r\n=]/g,""),H=_.length,k=h,X=0,M=[];for(B=0;B<H;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|k.indexOf(_.charAt(B));return j=H%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",j=0,_,H,k=D.length,X=h;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)+D[_];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(D){return c&&c.isBuffer(D)}p.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(p,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 h(b){return Object.prototype.toString.call(b)==="[object Boolean]"}p.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:h,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:(p,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 h(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,_,H;return B=D.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(D,B){var j;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 j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}p.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(p,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 h(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,_=!1,H;if(!B)return!1;if(H=D[j],(H==="-"||H==="+")&&(H=D[++j]),H==="0"){if(j+1===B)return!0;if(H=D[++j],H==="b"){for(j++;j<B;j++)if(H=D[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=D[j],H!=="_"){if(!x(D.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=D[j],H!=="_"){if(!h(D.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=D[j],H!=="_"){if(H===":")break;if(!b(D.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,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(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}p.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,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:(p,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 h(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(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{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,D.slice(_[0]+1,_[1]-1)):new Function(j,"return "+D.slice(_[0],_[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}p.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:h,construct:b,predicate:g,represent:S})},97287:(p,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),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function h(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]"}p.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:h})},70575:(p,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function h(){return""}function b(S){return typeof S=="undefined"}p.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:h})},86553:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(p,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}p.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(p,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 h(b){return b===null}p.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:h,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(p,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function h(S){if(S===null)return!0;var g=[],L,D,B,j,_,H=S;for(L=0,D=H.length;L<D;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:[]}p.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:h,construct:b})},68244:(p,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,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]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function h(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}p.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:h})},43745:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(p,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 h(b){return b!==null?b:{}}p.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:h})},79483:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(p,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 h(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,_,H,k,X=0,M=null,C,V,J;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,j=+L[3],!L[4])return new Date(Date.UTC(D,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),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(D,B,j,_,H,k,X)),M&&J.setTime(J.getTime()-M),J}function S(g){return g.toISOString()}p.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:h,construct:b,instanceOf:Date,represent:S})},18552:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");p.exports=x},1989:(p,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),h=o(21327),b=o(81866);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},38407:(p,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),h=o(67518),b=o(13399);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},57071:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");p.exports=x},83369:(p,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),h=o(49916),b=o(95265);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},53818:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");p.exports=x},58525:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");p.exports=x},88668:(p,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function h(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}h.prototype.add=h.prototype.push=v,h.prototype.has=x,p.exports=h},46384:(p,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),h=o(67599),b=o(44758),S=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=h,g.prototype.has=b,g.prototype.set=S,p.exports=g},62705:(p,I,o)=>{var c=o(55639),v=c.Symbol;p.exports=v},11149:(p,I,o)=>{var c=o(55639),v=c.Uint8Array;p.exports=v},70577:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");p.exports=x},96874:p=>{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)}p.exports=I},77412:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}p.exports=I},34963:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,h=0,b=[];++v<x;){var S=o[v];c(S,v,o)&&(b[h++]=S)}return b}p.exports=I},14636:(p,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),h=o(44144),b=o(65776),S=o(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var _=x(B),H=!_&&v(B),k=!_&&!H&&h(B),X=!_&&!H&&!k&&S(B),M=_||H||k||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||k&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}p.exports=D},29932:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,h=Array(x);++v<x;)h[v]=c(o[v],v,o);return h}p.exports=I},62488:p=>{function I(o,c){for(var v=-1,x=c.length,h=o.length;++v<x;)o[h+v]=c[v];return o}p.exports=I},82908:p=>{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}p.exports=I},34865:(p,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,h=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(h.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}p.exports=b},18470:(p,I,o)=>{var c=o(77813);function v(x,h){for(var b=x.length;b--;)if(c(x[b][0],h))return b;return-1}p.exports=v},44037:(p,I,o)=>{var c=o(98363),v=o(3674);function x(h,b){return h&&c(b,v(b),h)}p.exports=x},63886:(p,I,o)=>{var c=o(98363),v=o(81704);function x(h,b){return h&&c(b,v(b),h)}p.exports=x},89465:(p,I,o)=>{var c=o(38777);function v(x,h,b){h=="__proto__"&&c?c(x,h,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[h]=b}p.exports=v},29750:p=>{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}p.exports=I},85990:(p,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),h=o(44037),b=o(63886),S=o(64626),g=o(278),L=o(18805),D=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),k=o(29148),X=o(38517),M=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),Y=o(81704),ce=1,ee=2,ie=4,xe="[object Arguments]",we="[object Array]",he="[object Boolean]",fe="[object Date]",ae="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Re="[object Map]",Pe="[object Number]",rt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ct="[object String]",vt="[object Symbol]",wt="[object WeakMap]",nt="[object ArrayBuffer]",ft="[object DataView]",mt="[object Float32Array]",xt="[object Float64Array]",ht="[object Int8Array]",Rt="[object Int16Array]",Ft="[object Int32Array]",Et="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",jt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ft]=St[he]=St[fe]=St[mt]=St[xt]=St[ht]=St[Rt]=St[Ft]=St[Re]=St[Pe]=St[rt]=St[Qe]=St[Je]=St[ct]=St[vt]=St[Et]=St[Wt]=St[Ut]=St[jt]=!0,St[ae]=St[Fe]=St[wt]=!1;function Dt(ge,G,$,Se,Ie,Ge){var Ke,P=G&ce,Me=G&ee,K=G&ie;if($&&(Ke=Ie?$(ge,Se,Ie,Ge):$(ge)),Ke!==void 0)return Ke;if(!J(ge))return ge;var T=M(ge);if(T){if(Ke=H(ge),!P)return g(ge,Ke)}else{var O=_(ge),se=O==Fe||O==Le;if(C(ge))return S(ge,P);if(O==rt||O==xe||se&&!Ie){if(Ke=Me||se?{}:X(ge),!P)return Me?D(ge,b(Ke,ge)):L(ge,h(Ke,ge))}else{if(!St[O])return Ie?ge:{};Ke=k(ge,O,P)}}Ge||(Ge=new c);var N=Ge.get(ge);if(N)return N;Ge.set(ge,Ke),q(ge)?ge.forEach(function(oe){Ke.add(Dt(oe,G,$,oe,ge,Ge))}):V(ge)&&ge.forEach(function(oe,pe){Ke.set(pe,Dt(oe,G,$,pe,ge,Ge))});var re=K?Me?j:B:Me?Y:Q,de=T?void 0:re(ge);return v(de||ge,function(oe,pe){de&&(pe=oe,oe=ge[pe]),x(Ke,pe,Dt(oe,G,$,pe,ge,Ge))}),Ke}p.exports=Dt},3118:(p,I,o)=>{var c=o(13218),v=Object.create,x=function(){function h(){}return function(b){if(!c(b))return{};if(v)return v(b);h.prototype=b;var S=new h;return h.prototype=void 0,S}}();p.exports=x},41848:p=>{function I(o,c,v,x){for(var h=o.length,b=v+(x?1:-1);x?b--:++b<h;)if(c(o[b],b,o))return b;return-1}p.exports=I},35764:(p,I,o)=>{var c=o(62488),v=o(37285);function x(h,b,S,g,L){var D=-1,B=h.length;for(S||(S=v),L||(L=[]);++D<B;){var j=h[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}p.exports=x},97786:(p,I,o)=>{var c=o(71811),v=o(40327);function x(h,b){b=c(b,h);for(var S=0,g=b.length;h!=null&&S<g;)h=h[v(b[S++])];return S&&S==g?h:void 0}p.exports=x},68866:(p,I,o)=>{var c=o(62488),v=o(1469);function x(h,b,S){var g=b(h);return v(h)?g:c(g,S(h))}p.exports=x},44239:(p,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),h="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:h:S&&S in Object(L)?v(L):x(L)}p.exports=g},13:p=>{function I(o,c){return o!=null&&c in Object(o)}p.exports=I},9454:(p,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function h(b){return v(b)&&c(b)==x}p.exports=h},90939:(p,I,o)=>{var c=o(2492),v=o(37005);function x(h,b,S,g,L){return h===b?!0:h==null||b==null||!v(h)&&!v(b)?h!==h&&b!==b:c(h,b,S,g,x,L)}p.exports=x},2492:(p,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),h=o(16096),b=o(98882),S=o(1469),g=o(44144),L=o(36719),D=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,k=H.hasOwnProperty;function X(M,C,V,J,q,Q){var Y=S(M),ce=S(C),ee=Y?j:b(M),ie=ce?j:b(C);ee=ee==B?_:ee,ie=ie==B?_:ie;var xe=ee==_,we=ie==_,he=ee==ie;if(he&&g(M)){if(!g(C))return!1;Y=!0,xe=!1}if(he&&!xe)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,q,Q):x(M,C,ee,V,J,q,Q);if(!(V&D)){var fe=xe&&k.call(M,"__wrapped__"),ae=we&&k.call(C,"__wrapped__");if(fe||ae){var Fe=fe?M.value():M,Le=ae?C.value():C;return Q||(Q=new c),q(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),h(M,C,V,J,q,Q)):!1}p.exports=X},25588:(p,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function h(b){return v(b)&&c(b)==x}p.exports=h},2958:(p,I,o)=>{var c=o(46384),v=o(90939),x=1,h=2;function b(S,g,L,D){var B=L.length,j=B,_=!D;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],M=H[1];if(_&&H[2]){if(X===void 0&&!(k in S))return!1}else{var C=new c;if(D)var V=D(X,M,k,S,g,C);if(!(V===void 0?v(M,X,x|h,D,C):V))return!1}}return!0}p.exports=b},28458:(p,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),h=o(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.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(h(H))}p.exports=_},29221:(p,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function h(b){return v(b)&&c(b)==x}p.exports=h},38749:(p,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),h="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",k="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",he={};he[J]=he[q]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[xe]=he[we]=!0,he[h]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[_]=he[H]=he[k]=he[X]=he[M]=!1;function fe(ae){return x(ae)&&v(ae.length)&&!!he[c(ae)]}p.exports=fe},67206:(p,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),h=o(1469),b=o(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?h(g)?v(g[0],g[1]):c(g):b(g)}p.exports=S},280:(p,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,h=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))h.call(S,L)&&L!="constructor"&&g.push(L);return g}p.exports=b},10313:(p,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),h=Object.prototype,b=h.hasOwnProperty;function S(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}p.exports=S},91573:(p,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function h(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)}}p.exports=h},16432:(p,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),h=o(15403),b=o(89162),S=o(42634),g=o(40327),L=1,D=2;function B(j,_){return h(j)&&b(_)?S(g(j),_):function(H){var k=v(H,j);return k===void 0&&k===_?x(H,j):c(_,k,L|D)}}p.exports=B},25970:(p,I,o)=>{var c=o(63012),v=o(79095);function x(h,b){return c(h,b,function(S,g){return v(h,g)})}p.exports=x},63012:(p,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function h(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}p.exports=h},40371:p=>{function I(o){return function(c){return c==null?void 0:c[o]}}p.exports=I},79152:(p,I,o)=>{var c=o(97786);function v(x){return function(h){return c(h,x)}}p.exports=v},5976:(p,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function h(b,S){return x(v(b,S,c),b+"")}p.exports=h},10611:(p,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),h=o(13218),b=o(40327);function S(g,L,D,B){if(!h(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]),M=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=k[X];M=B?B(C,X,k):void 0,M===void 0&&(M=h(C)?C:x(L[j+1])?[]:{})}c(k,X,M),k=k[X]}return g}p.exports=S},56560:(p,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),h=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;p.exports=h},22545:p=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}p.exports=I},80531:(p,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),h=o(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(h(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}p.exports=L},27561:(p,I,o)=>{var c=o(67990),v=/^\s+/;function x(h){return h&&h.slice(0,c(h)+1).replace(v,"")}p.exports=x},7518:p=>{function I(o){return function(c){return o(c)}}p.exports=I},74757:p=>{function I(o,c){return o.has(c)}p.exports=I},71811:(p,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),h=o(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(h(S))}p.exports=b},74318:(p,I,o)=>{var c=o(11149);function v(x){var h=new x.constructor(x.byteLength);return new c(h).set(new c(x)),h}p.exports=v},64626:(p,I,o)=>{p=o.nmd(p);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&p&&!p.nodeType&&p,h=x&&x.exports===v,b=h?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}p.exports=g},57157:(p,I,o)=>{var c=o(74318);function v(x,h){var b=h?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}p.exports=v},93147:p=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}p.exports=o},40419:(p,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function h(b){return x?Object(x.call(b)):{}}p.exports=h},77133:(p,I,o)=>{var c=o(74318);function v(x,h){var b=h?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}p.exports=v},278:p=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}p.exports=I},98363:(p,I,o)=>{var c=o(34865),v=o(89465);function x(h,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],_=g?g(S[j],h[j],j,S,h):void 0;_===void 0&&(_=h[j]),L?v(S,j,_):c(S,j,_)}return S}p.exports=x},18805:(p,I,o)=>{var c=o(98363),v=o(99551);function x(h,b){return c(h,v(h),b)}p.exports=x},1911:(p,I,o)=>{var c=o(98363),v=o(51442);function x(h,b){return c(h,v(h),b)}p.exports=x},14429:(p,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];p.exports=v},21463:(p,I,o)=>{var c=o(5976),v=o(16612);function x(h){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=h.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&h(b,j,g,D)}return b})}p.exports=x},67740:(p,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function h(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(_){return B(D[_],_,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}p.exports=h},38777:(p,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(h){}}();p.exports=v},67114:(p,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),h=1,b=2;function S(g,L,D,B,j,_){var H=D&h,k=g.length,X=L.length;if(k!=X&&!(H&&X>k))return!1;var M=_.get(g),C=_.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,q=D&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<k;){var Q=g[V],Y=L[V];if(B)var ce=H?B(Y,Q,V,L,g,_):B(Q,Y,V,g,L,_);if(ce!==void 0){if(ce)continue;J=!1;break}if(q){if(!v(L,function(ee,ie){if(!x(q,ie)&&(Q===ee||j(Q,ee,D,B,_)))return q.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}p.exports=S},18351:(p,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),h=o(67114),b=o(68776),S=o(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",k="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function Y(ce,ee,ie,xe,we,he,fe){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case H:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case k:case M:return ce==ee+"";case _:var ae=b;case X:var Fe=xe&g;if(ae||(ae=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Re=h(ae(ce),ae(ee),xe,we,he,fe);return fe.delete(ce),Re;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}p.exports=Y},16096:(p,I,o)=>{var c=o(58234),v=1,x=Object.prototype,h=x.hasOwnProperty;function b(S,g,L,D,B,j){var _=L&v,H=c(S),k=H.length,X=c(g),M=X.length;if(k!=M&&!_)return!1;for(var C=k;C--;){var V=H[C];if(!(_?V in g:h.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 Y=_;++C<k;){V=H[C];var ce=S[V],ee=g[V];if(D)var ie=_?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}p.exports=b},99021:(p,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function h(b){return x(v(b,void 0,c),b+"")}p.exports=h},31957:(p,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;p.exports=c},58234:(p,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function h(b){return c(b,x,v)}p.exports=h},46904:(p,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function h(b){return c(b,x,v)}p.exports=h},45050:(p,I,o)=>{var c=o(37019);function v(x,h){var b=x.__data__;return c(h)?b[typeof h=="string"?"string":"hash"]:b.map}p.exports=v},1499:(p,I,o)=>{var c=o(89162),v=o(3674);function x(h){for(var b=v(h),S=b.length;S--;){var g=b[S],L=h[g];b[S]=[g,L,c(L)]}return b}p.exports=x},10852:(p,I,o)=>{var c=o(28458),v=o(47801);function x(h,b){var S=v(h,b);return c(S)?S:void 0}p.exports=x},85924:(p,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);p.exports=v},89607:(p,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,h=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=h.call(g);return B&&(L?g[b]=D:delete g[b]),j}p.exports=S},99551:(p,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,h=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return h.call(g,L)}))}:v;p.exports=S},51442:(p,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),h=o(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:h;p.exports=S},98882:(p,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),h=o(58525),b=o(70577),S=o(44239),g=o(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",k=g(c),X=g(v),M=g(x),C=g(h),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||h&&J(new h)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=S(q),Y=Q==D?q.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case k:return H;case X:return L;case M:return B;case C:return j;case V:return _}return Q}),p.exports=J},47801:p=>{function I(o,c){return o==null?void 0:o[c]}p.exports=I},222:(p,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),h=o(65776),b=o(41780),S=o(40327);function g(L,D,B){D=c(D,L);for(var j=-1,_=D.length,H=!1;++j<_;){var k=S(D[j]);if(!(H=L!=null&&B(L,k)))break;L=L[k]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&h(k,_)&&(x(L)||v(L)))}p.exports=g},51789:(p,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}p.exports=v},80401:p=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}p.exports=I},57667:(p,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,h=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return h.call(g,S)?g[S]:void 0}p.exports=b},21327:(p,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function h(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}p.exports=h},81866:(p,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(h,b){var S=this.__data__;return this.size+=this.has(h)?0:1,S[h]=c&&b===void 0?v:b,this}p.exports=x},43824:p=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,h=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(h.index=v.index,h.input=v.input),h}p.exports=c},29148:(p,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),h=o(40419),b=o(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",k="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(xe,we,he){var fe=xe.constructor;switch(we){case k:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,he);case M:case C:case V:case J:case q:case Q:case Y:case ce:case ee:return b(xe,he);case L:return new fe;case D:case _:return new fe(xe);case B:return x(xe);case j:return new fe;case H:return h(xe)}}p.exports=ie},38517:(p,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function h(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}p.exports=h},37285:(p,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),h=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(h&&S&&S[h])}p.exports=b},65776:p=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var h=typeof v;return x=x==null?I:x,!!x&&(h=="number"||h!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}p.exports=c},16612:(p,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),h=o(13218);function b(S,g,L){if(!h(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}p.exports=b},15403:(p,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\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:h.test(S)||!x.test(S)||g!=null&&S in Object(g)}p.exports=b},37019:p=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}p.exports=I},15346:(p,I,o)=>{var c=o(14429),v=function(){var h=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function x(h){return!!v&&v in h}p.exports=x},25726:p=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}p.exports=o},89162:(p,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}p.exports=v},27040:p=>{function I(){this.__data__=[],this.size=0}p.exports=I},14125:(p,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function h(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}p.exports=h},82117:(p,I,o)=>{var c=o(18470);function v(x){var h=this.__data__,b=c(h,x);return b<0?void 0:h[b][1]}p.exports=v},67518:(p,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}p.exports=v},13399:(p,I,o)=>{var c=o(18470);function v(x,h){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,h])):b[S][1]=h,this}p.exports=v},24785:(p,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function h(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}p.exports=h},11285:(p,I,o)=>{var c=o(45050);function v(x){var h=c(this,x).delete(x);return this.size-=h?1:0,h}p.exports=v},96e3:(p,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}p.exports=v},49916:(p,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}p.exports=v},95265:(p,I,o)=>{var c=o(45050);function v(x,h){var b=c(this,x),S=b.size;return b.set(x,h),this.size+=b.size==S?0:1,this}p.exports=v},68776:p=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,h){v[++c]=[h,x]}),v}p.exports=I},42634:p=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}p.exports=I},24523:(p,I,o)=>{var c=o(88306),v=500;function x(h){var b=c(h,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}p.exports=x},94536:(p,I,o)=>{var c=o(10852),v=c(Object,"create");p.exports=v},86916:(p,I,o)=>{var c=o(5569),v=c(Object.keys,Object);p.exports=v},33498:p=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}p.exports=I},31167:(p,I,o)=>{p=o.nmd(p);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&p&&!p.nodeType&&p,h=x&&x.exports===v,b=h&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();p.exports=S},2333:p=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}p.exports=c},5569:p=>{function I(o,c){return function(v){return o(c(v))}}p.exports=I},45357:(p,I,o)=>{var c=o(96874),v=Math.max;function x(h,b,S){return b=v(b===void 0?h.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 j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(h,this,j)}}p.exports=x},55639:(p,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();p.exports=x},90619:p=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}p.exports=o},72385:p=>{function I(o){return this.__data__.has(o)}p.exports=I},21814:p=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}p.exports=I},30061:(p,I,o)=>{var c=o(56560),v=o(21275),x=v(c);p.exports=x},21275:p=>{var I=800,o=16,c=Date.now;function v(x){var h=0,b=0;return function(){var S=c(),g=o-(S-b);if(b=S,g>0){if(++h>=I)return arguments[0]}else h=0;return x.apply(void 0,arguments)}}p.exports=v},37465:(p,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}p.exports=v},63779:p=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}p.exports=I},67599:p=>{function I(o){return this.__data__.get(o)}p.exports=I},44758:p=>{function I(o){return this.__data__.has(o)}p.exports=I},34309:(p,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),h=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<h-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}p.exports=b},55514:(p,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,h=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});p.exports=h},40327:(p,I,o)=>{var c=o(33448),v=1/0;function x(h){if(typeof h=="string"||c(h))return h;var b=h+"";return b=="0"&&1/h==-v?"-0":b}p.exports=x},80346:p=>{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""}p.exports=c},67990:p=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}p.exports=o},28583:(p,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),h=o(98612),b=o(25726),S=o(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||h(j)){v(j,S(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});p.exports=D},50361:(p,I,o)=>{var c=o(85990),v=1,x=4;function h(b){return c(b,v|x)}p.exports=h},75703:p=>{function I(o){return function(){return o}}p.exports=I},77813:p=>{function I(o,c){return o===c||o!==o&&c!==c}p.exports=I},13311:(p,I,o)=>{var c=o(67740),v=o(30998),x=c(v);p.exports=x},30998:(p,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),h=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=h(D+B,0)),c(S,v(g,3),B)}p.exports=b},85564:(p,I,o)=>{var c=o(35764);function v(x){var h=x==null?0:x.length;return h?c(x,1):[]}p.exports=v},27361:(p,I,o)=>{var c=o(97786);function v(x,h,b){var S=x==null?void 0:c(x,h);return S===void 0?b:S}p.exports=v},79095:(p,I,o)=>{var c=o(13),v=o(222);function x(h,b){return h!=null&&v(h,b,c)}p.exports=x},6557:p=>{function I(o){return o}p.exports=I},35694:(p,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,h=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&h.call(g,"callee")&&!b.call(g,"callee")};p.exports=S},1469:p=>{var I=Array.isArray;p.exports=I},98612:(p,I,o)=>{var c=o(23560),v=o(41780);function x(h){return h!=null&&v(h.length)&&!c(h)}p.exports=x},44144:(p,I,o)=>{p=o.nmd(p);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,h=x&&!0&&p&&!p.nodeType&&p,b=h&&h.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;p.exports=L},41609:(p,I,o)=>{var c=o(280),v=o(98882),x=o(35694),h=o(1469),b=o(98612),S=o(44144),g=o(25726),L=o(36719),D="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(k){if(k==null)return!0;if(b(k)&&(h(k)||typeof k=="string"||typeof k.splice=="function"||S(k)||L(k)||x(k)))return!k.length;var X=v(k);if(X==D||X==B)return!k.size;if(g(k))return!c(k).length;for(var M in k)if(_.call(k,M))return!1;return!0}p.exports=H},23560:(p,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==h||D==b||D==x||D==S}p.exports=g},41780:p=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}p.exports=o},56688:(p,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),h=x&&x.isMap,b=h?v(h):c;p.exports=b},13218:p=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}p.exports=I},37005:p=>{function I(o){return o!=null&&typeof o=="object"}p.exports=I},68630:(p,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),h="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=h)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)==D}p.exports=B},72928:(p,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),h=x&&x.isSet,b=h?v(h):c;p.exports=b},47037:(p,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),h="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==h}p.exports=b},33448:(p,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function h(b){return typeof b=="symbol"||v(b)&&c(b)==x}p.exports=h},36719:(p,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),h=x&&x.isTypedArray,b=h?v(h):c;p.exports=b},3674:(p,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function h(b){return x(b)?c(b):v(b)}p.exports=h},81704:(p,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function h(b){return x(b)?c(b,!0):v(b)}p.exports=h},88306:(p,I,o)=>{var c=o(83369),v="Expected a function";function x(h,b){if(typeof h!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=h.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,p.exports=x},50308:p=>{function I(){}p.exports=I},78718:(p,I,o)=>{var c=o(25970),v=o(99021),x=v(function(h,b){return h==null?{}:c(h,b)});p.exports=x},39601:(p,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),h=o(40327);function b(S){return x(S)?c(h(S)):v(S)}p.exports=b},10240:(p,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),h=o(79833);function b(S,g,L){return S=h(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}p.exports=b},70479:p=>{function I(){return[]}p.exports=I},95062:p=>{function I(){return!1}p.exports=I},18601:(p,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function h(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}p.exports=h},40554:(p,I,o)=>{var c=o(18601);function v(x){var h=c(x),b=h%1;return h===h?b?h-b:h:0}p.exports=v},14841:(p,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),h=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return h;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)?h:+B}p.exports=D},79833:(p,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}p.exports=v},70631:(p,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,h=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,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?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,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,q=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Re=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(oe){return oe.__proto__}:null);function rt(oe,pe){if(oe===1/0||oe===-1/0||oe!==oe||oe&&oe>-1e3&&oe<1e3||ce.call(/e/,pe))return pe;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof oe=="number"){var je=oe<0?-we(-oe):we(oe);if(je!==oe){var Ve=String(je),Xe=J.call(pe,Ve.length+1);return q.call(Ve,Ee,"$&_")+"."+q.call(q.call(Xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(pe,Ee,"$&_")}var Qe=o(24654),Je=Qe.custom,ct=Et(Je)?Je:null;p.exports=function oe(pe,Ee,je,Ve){var Xe=Ee||{};if(jt(Xe,"quoteStyle")&&Xe.quoteStyle!=="single"&&Xe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(jt(Xe,"maxStringLength")&&(typeof Xe.maxStringLength=="number"?Xe.maxStringLength<0&&Xe.maxStringLength!==1/0:Xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var gt=jt(Xe,"customInspect")?Xe.customInspect:!0;if(typeof gt!="boolean"&>!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(jt(Xe,"indent")&&Xe.indent!==null&&Xe.indent!==" "&&!(parseInt(Xe.indent,10)===Xe.indent&&Xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(jt(Xe,"numericSeparator")&&typeof Xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Xe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Xe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Nt=String(pe);return At?rt(pe,Nt):Nt}if(typeof pe=="bigint"){var Tt=String(pe)+"n";return At?rt(pe,Tt):Tt}var bn=typeof Xe.depth=="undefined"?5:Xe.depth;if(typeof je=="undefined"&&(je=0),je>=bn&&bn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var zr=N(Xe,je);if(typeof Ve=="undefined")Ve=[];else if(ge(Ve,pe)>=0)return"[Circular]";function Fr(Gr,qr,ti){if(qr&&(Ve=xe.call(Ve),Ve.push(qr)),ti){var pr={depth:Xe.depth};return jt(Xe,"quoteStyle")&&(pr.quoteStyle=Xe.quoteStyle),oe(Gr,pr,je+1,Ve)}return oe(Gr,Xe,je+1,Ve)}if(typeof pe=="function"&&!mt(pe)){var Ci=Dt(pe),Qr=de(pe,Fr);return"[Function"+(Ci?": "+Ci:" (anonymous)")+"]"+(Qr.length>0?" { "+ie.call(Qr,", ")+" }":"")}if(Et(pe)){var $i=Fe?q.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):ae.call(pe);return typeof pe=="object"&&!Fe?K($i):$i}if(Ke(pe)){for(var zn="<"+Y.call(String(pe.nodeName)),wn=pe.attributes||[],Ln=0;Ln<wn.length;Ln++)zn+=" "+wn[Ln].name+"="+vt(wt(wn[Ln].value),"double",Xe);return zn+=">",pe.childNodes&&pe.childNodes.length&&(zn+="..."),zn+="</"+Y.call(String(pe.nodeName))+">",zn}if(nt(pe)){if(pe.length===0)return"[]";var Zr=de(pe,Fr);return zr&&!se(Zr)?"["+re(Zr,zr)+"]":"[ "+ie.call(Zr,", ")+" ]"}if(xt(pe)){var Oi=de(pe,Fr);return!("cause"in Error.prototype)&&"cause"in pe&&!Re.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Fr(pe.cause),Oi),", ")+" }":Oi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(Oi,", ")+" }"}if(typeof pe=="object"&>){if(ct&&typeof pe[ct]=="function"&&Qe)return Qe(pe,{depth:bn-je});if(gt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(G(pe)){var Ti=[];return h.call(pe,function(Gr,qr){Ti.push(Fr(qr,pe,!0)+" => "+Fr(Gr,pe))}),O("Map",x.call(pe),Ti,zr)}if(Ie(pe)){var ln=[];return L.call(pe,function(Gr){ln.push(Fr(Gr,pe))}),O("Set",g.call(pe),ln,zr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Rt(pe))return K(Fr(Number(pe)));if(Wt(pe))return K(Fr(he.call(pe)));if(Ft(pe))return K(X.call(pe));if(ht(pe))return K(Fr(String(pe)));if(!ft(pe)&&!mt(pe)){var Sn=de(pe,Fr),Gn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,$n=pe instanceof Object?"":"null prototype",An=!Gn&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):$n?"Object":"",ei=Gn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Pi=ei+(An||$n?"["+ie.call(ee.call([],An||[],$n||[]),": ")+"] ":"");return Sn.length===0?Pi+"{}":zr?Pi+"{"+re(Sn,zr)+"}":Pi+"{ "+ie.call(Sn,", ")+" }"}return String(pe)};function vt(oe,pe,Ee){var je=(Ee.quoteStyle||pe)==="double"?'"':"'";return je+oe+je}function wt(oe){return q.call(String(oe),/"/g,""")}function nt(oe){return St(oe)==="[object Array]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function ft(oe){return St(oe)==="[object Date]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function mt(oe){return St(oe)==="[object RegExp]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function xt(oe){return St(oe)==="[object Error]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function ht(oe){return St(oe)==="[object String]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function Rt(oe){return St(oe)==="[object Number]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function Ft(oe){return St(oe)==="[object Boolean]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function Et(oe){if(Fe)return oe&&typeof oe=="object"&&oe instanceof Symbol;if(typeof oe=="symbol")return!0;if(!oe||typeof oe!="object"||!ae)return!1;try{return ae.call(oe),!0}catch(pe){}return!1}function Wt(oe){if(!oe||typeof oe!="object"||!he)return!1;try{return he.call(oe),!0}catch(pe){}return!1}var Ut=Object.prototype.hasOwnProperty||function(oe){return oe in this};function jt(oe,pe){return Ut.call(oe,pe)}function St(oe){return M.call(oe)}function Dt(oe){if(oe.name)return oe.name;var pe=V.call(C.call(oe),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ge(oe,pe){if(oe.indexOf)return oe.indexOf(pe);for(var Ee=0,je=oe.length;Ee<je;Ee++)if(oe[Ee]===pe)return Ee;return-1}function G(oe){if(!x||!oe||typeof oe!="object")return!1;try{x.call(oe);try{g.call(oe)}catch(pe){return!0}return oe instanceof Map}catch(pe){}return!1}function $(oe){if(!B||!oe||typeof oe!="object")return!1;try{B.call(oe,B);try{_.call(oe,_)}catch(pe){return!0}return oe instanceof WeakMap}catch(pe){}return!1}function Se(oe){if(!k||!oe||typeof oe!="object")return!1;try{return k.call(oe),!0}catch(pe){}return!1}function Ie(oe){if(!g||!oe||typeof oe!="object")return!1;try{g.call(oe);try{x.call(oe)}catch(pe){return!0}return oe instanceof Set}catch(pe){}return!1}function Ge(oe){if(!_||!oe||typeof oe!="object")return!1;try{_.call(oe,_);try{B.call(oe,B)}catch(pe){return!0}return oe instanceof WeakSet}catch(pe){}return!1}function Ke(oe){return!oe||typeof oe!="object"?!1:typeof HTMLElement!="undefined"&&oe instanceof HTMLElement?!0:typeof oe.nodeName=="string"&&typeof oe.getAttribute=="function"}function P(oe,pe){if(oe.length>pe.maxStringLength){var Ee=oe.length-pe.maxStringLength,je="... "+Ee+" more character"+(Ee>1?"s":"");return P(J.call(oe,0,pe.maxStringLength),pe)+je}var Ve=q.call(q.call(oe,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Me);return vt(Ve,"single",pe)}function Me(oe){var pe=oe.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ee?"\\"+Ee:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(oe){return"Object("+oe+")"}function T(oe){return oe+" { ? }"}function O(oe,pe,Ee,je){var Ve=je?re(Ee,je):ie.call(Ee,", ");return oe+" ("+pe+") {"+Ve+"}"}function se(oe){for(var pe=0;pe<oe.length;pe++)if(ge(oe[pe],`
|
|
530
|
-
`)>=0)return!1;return!0}function N(
|
|
531
|
-
`+pe.prev+pe.base;return Ee+
|
|
532
|
-
`+pe.prev}function de(oe,pe){var Ee=nt(oe),je=[];if(Ee){je.length=oe.length;for(var Ve=0;Ve<oe.length;Ve++)je[Ve]=jt(oe,Ve)?pe(oe[Ve],oe):""}var Xe=typeof fe=="function"?fe(oe):[],gt;if(Fe){gt={};for(var At=0;At<Xe.length;At++)gt["$"+Xe[At]]=Xe[At]}for(var Nt in oe)!jt(oe,Nt)||Ee&&String(Number(Nt))===Nt&&Nt<oe.length||Fe&>["$"+Nt]instanceof Symbol||(ce.call(/[^\w$]/,Nt)?je.push(pe(Nt,oe)+": "+pe(oe[Nt],oe)):je.push(Nt+": "+pe(oe[Nt],oe)));if(typeof fe=="function")for(var Tt=0;Tt<Xe.length;Tt++)Re.call(oe,Xe[Tt])&&je.push("["+pe(Xe[Tt])+"]: "+pe(oe[Xe[Tt]],oe));return je}},9779:(p,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,_,H,k,X=0,M=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:D&&(C=32);default:B[M++]=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[M++]=37,B[M++]=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[M++]=37,B[M++]=k,B[M++]=C;break}B[M++]=16*_+H;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 h=new Array(256),b=0;b<256;++b)h[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",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&&(D+=L.slice(B,j)),_<128){B=j+1,D+=h[_];continue}if(_<2048){B=j+1,D+=h[192|_>>6]+h[128|_&63];continue}if(_<55296||_>=57344){B=j+1,D+=h[224|_>>12]+h[128|_>>6&63]+h[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),D+=h[240|_>>18]+h[128|_>>12&63]+h[128|_>>6&63]+h[128|_&63]}}return B===0?L:B<L.length?D+L.slice(B):D};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,D,B,j){D=D||"&",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,M="",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,Y=Q-1,ce=0;ce<Q;++ce)M+=q+_(S(J[ce])),ce<Y&&(M+=D);Q&&C<X&&(M+=D)}else M+=q+_(S(J)),C<X&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof D!="string"&&(D+="");var H=B.length,k=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,Y=0,ce="",ee="",ie=V,xe=V,we=0,he=0;he<L.length;++he){var fe=L.charCodeAt(he);if(fe===D.charCodeAt(Q)){if(++Q===k){var ae=he-Q+1;if(Y<H?q<ae&&(ce+=L.slice(q,ae)):q<ae&&(ee+=L.slice(q,ae)),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)_[ce]=ee,J[J.length]=ce;else{var Fe=_[ce];Fe instanceof Array?Fe[Fe.length]=ee:_[ce]=[Fe,ee]}if(--M==0)break;ie=xe=V,we=0,ce=ee="",q=he+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<H)if(fe===B.charCodeAt(Y)){if(++Y===H){var ae=he-Y+1;q<ae&&(ce+=L.slice(q,ae)),we=0,q=he+1}continue}else Y=0,ie||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ie=!0):we=0);fe===43&&(Y<H?(he-q>0&&(ce+=L.slice(q,he)),ce+="%20",ie=!0):(he-q>0&&(ee+=L.slice(q,he)),ee+="%20",xe=!0),q=he+1)}if(M>0&&(q<L.length||Y>0))if(q<L.length&&(Y<H?ce+=L.slice(q):Q<k&&(ee+=L.slice(q))),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)_[ce]=ee,J[J.length]=ce;else{var Fe=_[ce];Fe instanceof Array?Fe[Fe.length]=ee:_[ce]=[Fe,ee]}return _};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(p,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 h=function(){var _=function(k,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[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,M=Object.keys,C=x(H),V=x(k);return H&&k&&C==="object"&&C===V?M(H).length===M(k).length&&M(H).every(function(J){return X.equals(H[J],k[J])}):H===k},_}(),D=function(){function _(H,k){this.editor=H,this.props=k}return _.prototype.delegateCursor=function(H,k,X){var M=this.editor.getDoc();X&&this.editor.focus(),k?M.setCursor(H):M.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(M,C){k.props.onBlur(k.editor,C)});break;case"onContextMenu":{k.editor.on("contextmenu",function(M,C){k.props.onContextMenu(k.editor,C)});break}case"onCopy":{k.editor.on("copy",function(M,C){k.props.onCopy(k.editor,C)});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,C){k.props.onCut(k.editor,C)});break}case"onDblClick":{k.editor.on("dblclick",function(M,C){k.props.onDblClick(k.editor,C)});break}case"onDragEnter":k.editor.on("dragenter",function(M,C){k.props.onDragEnter(k.editor,C)});break;case"onDragLeave":{k.editor.on("dragleave",function(M,C){k.props.onDragLeave(k.editor,C)});break}case"onDragOver":k.editor.on("dragover",function(M,C){k.props.onDragOver(k.editor,C)});break;case"onDragStart":{k.editor.on("dragstart",function(M,C){k.props.onDragStart(k.editor,C)});break}case"onDrop":k.editor.on("drop",function(M,C){k.props.onDrop(k.editor,C)});break;case"onFocus":k.editor.on("focus",function(M,C){k.props.onFocus(k.editor,C)});break;case"onGutterClick":k.editor.on("gutterClick",function(M,C,V,J){k.props.onGutterClick(k.editor,C,V,J)});break;case"onInputRead":k.editor.on("inputRead",function(M,C){k.props.onInputRead(k.editor,C)});break;case"onKeyDown":k.editor.on("keydown",function(M,C){k.props.onKeyDown(k.editor,C)});break;case"onKeyHandled":k.editor.on("keyHandled",function(M,C,V){k.props.onKeyHandled(k.editor,C,V)});break;case"onKeyPress":k.editor.on("keypress",function(M,C){k.props.onKeyPress(k.editor,C)});break;case"onKeyUp":k.editor.on("keyup",function(M,C){k.props.onKeyUp(k.editor,C)});break;case"onMouseDown":{k.editor.on("mousedown",function(M,C){k.props.onMouseDown(k.editor,C)});break}case"onPaste":{k.editor.on("paste",function(M,C){k.props.onPaste(k.editor,C)});break}case"onRenderLine":{k.editor.on("renderLine",function(M,C,V){k.props.onRenderLine(k.editor,C,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,C){k.props.onSelection(k.editor,C)});break;case"onTouchStart":{k.editor.on("touchstart",function(M,C){k.props.onTouchStart(k.editor,C)});break}case"onUpdate":k.editor.on("update",function(M){k.props.onUpdate(k.editor)});break;case"onViewportChange":k.editor.on("viewportChange",function(M,C,V){k.props.onViewportChange(k.editor,C,V)});break}})},_}(),B=function(_){h(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,M=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.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(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(k||"",{line:0,ch:0},{line:M,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 M=X.getCursor();X.setValue(k),X.setCursor(M)}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 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(X,M){if(!k.emulating){M.cancel(),k.deferred=M;var C=k.mirrorChange(k.deferred);k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,k.deferred,C)}}),this.editor.on("change",function(X,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))},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(_){h(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,M=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!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 D(this.editor,this.props),this.editor.on("beforeChange",function(X,M){k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,M,k.editor.getValue(),k.onBeforeChangeCb)}),this.editor.on("change",function(X,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))},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 M=!0;return S&&(M=!1),this.detached&&k.detach&&(M=!1),M},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:p=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,h=typeof Symbol=="function"?Symbol:{},b=h.iterator||"@@iterator",S=h.asyncIterator||"@@asyncIterator",g=h.toStringTag||"@@toStringTag";function L(Le,Re,Pe){return Object.defineProperty(Le,Re,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Re]}try{L({},"")}catch(Le){L=function(Re,Pe,rt){return Re[Pe]=rt}}function D(Le,Re,Pe,rt){var Qe=Re&&Re.prototype instanceof M?Re:M,Je=Object.create(Qe.prototype),ct=new fe(rt||[]);return Je._invoke=ie(Le,Pe,ct),Je}o.wrap=D;function B(Le,Re,Pe){try{return{type:"normal",arg:Le.call(Re,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",_="suspendedYield",H="executing",k="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(ae([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Re){L(Le,Re,function(Pe){return this._invoke(Re,Pe)})})}o.isGeneratorFunction=function(Le){var Re=typeof Le=="function"&&Le.constructor;return Re?Re===C||(Re.displayName||Re.name)==="GeneratorFunction":!1},o.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},o.awrap=function(Le){return{__await:Le}};function ee(Le,Re){function Pe(Je,ct,vt,wt){var nt=B(Le[Je],Le,ct);if(nt.type==="throw")wt(nt.arg);else{var ft=nt.arg,mt=ft.value;return mt&&typeof mt=="object"&&v.call(mt,"__await")?Re.resolve(mt.__await).then(function(xt){Pe("next",xt,vt,wt)},function(xt){Pe("throw",xt,vt,wt)}):Re.resolve(mt).then(function(xt){ft.value=xt,vt(ft)},function(xt){return Pe("throw",xt,vt,wt)})}}var rt;function Qe(Je,ct){function vt(){return new Re(function(wt,nt){Pe(Je,ct,wt,nt)})}return rt=rt?rt.then(vt,vt):vt()}this._invoke=Qe}ce(ee.prototype),ee.prototype[S]=function(){return this},o.AsyncIterator=ee,o.async=function(Le,Re,Pe,rt,Qe){Qe===void 0&&(Qe=Promise);var Je=new ee(D(Le,Re,Pe,rt),Qe);return o.isGeneratorFunction(Re)?Je:Je.next().then(function(ct){return ct.done?ct.value:Je.next()})};function ie(Le,Re,Pe){var rt=j;return function(Je,ct){if(rt===H)throw new Error("Generator is already running");if(rt===k){if(Je==="throw")throw ct;return Fe()}for(Pe.method=Je,Pe.arg=ct;;){var vt=Pe.delegate;if(vt){var wt=xe(vt,Pe);if(wt){if(wt===X)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=k,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=H;var nt=B(Le,Re,Pe);if(nt.type==="normal"){if(rt=Pe.done?k:_,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=k,Pe.method="throw",Pe.arg=nt.arg)}}}function xe(Le,Re){var Pe=Le.iterator[Re.method];if(Pe===x){if(Re.delegate=null,Re.method==="throw"){if(Le.iterator.return&&(Re.method="return",Re.arg=x,xe(Le,Re),Re.method==="throw"))return X;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Re.arg);if(rt.type==="throw")return Re.method="throw",Re.arg=rt.arg,Re.delegate=null,X;var Qe=rt.arg;if(!Qe)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,X;if(Qe.done)Re[Le.resultName]=Qe.value,Re.next=Le.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=x);else return Qe;return Re.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Re={tryLoc:Le[0]};1 in Le&&(Re.catchLoc=Le[1]),2 in Le&&(Re.finallyLoc=Le[2],Re.afterLoc=Le[3]),this.tryEntries.push(Re)}function he(Le){var Re=Le.completion||{};Re.type="normal",delete Re.arg,Le.completion=Re}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}o.keys=function(Le){var Re=[];for(var Pe in Le)Re.push(Pe);return Re.reverse(),function rt(){for(;Re.length;){var Qe=Re.pop();if(Qe in Le)return rt.value=Qe,rt.done=!1,rt}return rt.done=!0,rt}};function ae(Le){if(Le){var Re=Le[b];if(Re)return Re.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Qe(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Qe.value=Le[Pe],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return rt.next=rt}}return{next:Fe}}o.values=ae;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){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),!Le)for(var Re in this)Re.charAt(0)==="t"&&v.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Re=Le.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Re=this;function Pe(wt,nt){return Je.type="throw",Je.arg=Le,Re.next=wt,nt&&(Re.method="next",Re.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Qe=this.tryEntries[rt],Je=Qe.completion;if(Qe.tryLoc==="root")return Pe("end");if(Qe.tryLoc<=this.prev){var ct=v.call(Qe,"catchLoc"),vt=v.call(Qe,"finallyLoc");if(ct&&vt){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else if(ct){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0)}else if(vt){if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Re){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Qe=rt;break}}Qe&&(Le==="break"||Le==="continue")&&Qe.tryLoc<=Re&&Re<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=Le,Je.arg=Re,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Je)},complete:function(Le,Re){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Re&&(this.next=Re),X},finish:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Qe=rt.arg;he(Pe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Re,Pe){return this.delegate={iterator:ae(Le),resultName:Re,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},o}(p.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(p,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),h=c("%TypeError%"),b=c("%WeakMap%",!0),S=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),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}},M=function(C,V){return!!H(C,V)};p.exports=function(){var V,J,q,Q={assert:function(Y){if(!Q.has(Y))throw new h("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(q)return k(q,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return _(J,Y)}else if(q)return M(q,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(q||(q={key:{},next:null}),X(q,Y,ce))}};return Q}},13837:(p,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},75019:(p,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},86081:(p,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},44254:(p,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},88996:(p,I,o)=>{"use strict";/*!
|
|
529
|
+
\r`;function b(D){if(D===null)return!1;var B,j,_=0,H=D.length,k=h;for(j=0;j<H;j++)if(B=k.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function S(D){var B,j,_=D.replace(/[\r\n=]/g,""),H=_.length,k=h,X=0,M=[];for(B=0;B<H;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|k.indexOf(_.charAt(B));return j=H%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",j=0,_,H,k=D.length,X=h;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)+D[_];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(D){return c&&c.isBuffer(D)}p.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(p,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 h(b){return Object.prototype.toString.call(b)==="[object Boolean]"}p.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:h,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:(p,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 h(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,_,H;return B=D.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(D,B){var j;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 j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}p.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:h,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(p,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 h(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,_=!1,H;if(!B)return!1;if(H=D[j],(H==="-"||H==="+")&&(H=D[++j]),H==="0"){if(j+1===B)return!0;if(H=D[++j],H==="b"){for(j++;j<B;j++)if(H=D[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=D[j],H!=="_"){if(!x(D.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=D[j],H!=="_"){if(!h(D.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=D[j],H!=="_"){if(H===":")break;if(!b(D.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,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(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}p.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,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:(p,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 h(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(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{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,D.slice(_[0]+1,_[1]-1)):new Function(j,"return "+D.slice(_[0],_[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}p.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:h,construct:b,predicate:g,represent:S})},97287:(p,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),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function h(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]"}p.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:h})},70575:(p,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function h(){return""}function b(S){return typeof S=="undefined"}p.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:h})},86553:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(p,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}p.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(p,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 h(b){return b===null}p.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:h,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(p,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function h(S){if(S===null)return!0;var g=[],L,D,B,j,_,H=S;for(L=0,D=H.length;L<D;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:[]}p.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:h,construct:b})},68244:(p,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,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]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function h(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}p.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:h})},43745:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(p,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 h(b){return b!==null?b:{}}p.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:h})},79483:(p,I,o)=>{"use strict";var c=o(53899);p.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(p,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 h(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,_,H,k,X=0,M=null,C,V,J;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,j=+L[3],!L[4])return new Date(Date.UTC(D,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),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(D,B,j,_,H,k,X)),M&&J.setTime(J.getTime()-M),J}function S(g){return g.toISOString()}p.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:h,construct:b,instanceOf:Date,represent:S})},18552:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");p.exports=x},1989:(p,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),h=o(21327),b=o(81866);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},38407:(p,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),h=o(67518),b=o(13399);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},57071:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");p.exports=x},83369:(p,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),h=o(49916),b=o(95265);function S(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])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=h,S.prototype.set=b,p.exports=S},53818:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");p.exports=x},58525:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");p.exports=x},88668:(p,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function h(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}h.prototype.add=h.prototype.push=v,h.prototype.has=x,p.exports=h},46384:(p,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),h=o(67599),b=o(44758),S=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=h,g.prototype.has=b,g.prototype.set=S,p.exports=g},62705:(p,I,o)=>{var c=o(55639),v=c.Symbol;p.exports=v},11149:(p,I,o)=>{var c=o(55639),v=c.Uint8Array;p.exports=v},70577:(p,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");p.exports=x},96874:p=>{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)}p.exports=I},77412:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}p.exports=I},34963:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,h=0,b=[];++v<x;){var S=o[v];c(S,v,o)&&(b[h++]=S)}return b}p.exports=I},14636:(p,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),h=o(44144),b=o(65776),S=o(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var _=x(B),H=!_&&v(B),k=!_&&!H&&h(B),X=!_&&!H&&!k&&S(B),M=_||H||k||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||k&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}p.exports=D},29932:p=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,h=Array(x);++v<x;)h[v]=c(o[v],v,o);return h}p.exports=I},62488:p=>{function I(o,c){for(var v=-1,x=c.length,h=o.length;++v<x;)o[h+v]=c[v];return o}p.exports=I},82908:p=>{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}p.exports=I},34865:(p,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,h=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(h.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}p.exports=b},18470:(p,I,o)=>{var c=o(77813);function v(x,h){for(var b=x.length;b--;)if(c(x[b][0],h))return b;return-1}p.exports=v},44037:(p,I,o)=>{var c=o(98363),v=o(3674);function x(h,b){return h&&c(b,v(b),h)}p.exports=x},63886:(p,I,o)=>{var c=o(98363),v=o(81704);function x(h,b){return h&&c(b,v(b),h)}p.exports=x},89465:(p,I,o)=>{var c=o(38777);function v(x,h,b){h=="__proto__"&&c?c(x,h,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[h]=b}p.exports=v},29750:p=>{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}p.exports=I},85990:(p,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),h=o(44037),b=o(63886),S=o(64626),g=o(278),L=o(18805),D=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),k=o(29148),X=o(38517),M=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),Y=o(81704),ce=1,ee=2,ne=4,xe="[object Arguments]",we="[object Array]",ve="[object Boolean]",fe="[object Date]",se="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Re="[object Map]",Pe="[object Number]",rt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ct="[object String]",vt="[object Symbol]",wt="[object WeakMap]",nt="[object ArrayBuffer]",ft="[object DataView]",mt="[object Float32Array]",xt="[object Float64Array]",ht="[object Int8Array]",Rt="[object Int16Array]",Ft="[object Int32Array]",Et="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Ut="[object Uint16Array]",jt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ft]=St[ve]=St[fe]=St[mt]=St[xt]=St[ht]=St[Rt]=St[Ft]=St[Re]=St[Pe]=St[rt]=St[Qe]=St[Je]=St[ct]=St[vt]=St[Et]=St[Wt]=St[Ut]=St[jt]=!0,St[se]=St[Fe]=St[wt]=!1;function Dt(ge,G,$,Ae,Ie,Ge){var Ke,P=G&ce,Me=G&ee,K=G≠if($&&(Ke=Ie?$(ge,Ae,Ie,Ge):$(ge)),Ke!==void 0)return Ke;if(!J(ge))return ge;var T=M(ge);if(T){if(Ke=H(ge),!P)return g(ge,Ke)}else{var O=_(ge),le=O==Fe||O==Le;if(C(ge))return S(ge,P);if(O==rt||O==xe||le&&!Ie){if(Ke=Me||le?{}:X(ge),!P)return Me?D(ge,b(Ke,ge)):L(ge,h(Ke,ge))}else{if(!St[O])return Ie?ge:{};Ke=k(ge,O,P)}}Ge||(Ge=new c);var N=Ge.get(ge);if(N)return N;Ge.set(ge,Ke),q(ge)?ge.forEach(function(ie){Ke.add(Dt(ie,G,$,ie,ge,Ge))}):V(ge)&&ge.forEach(function(ie,pe){Ke.set(pe,Dt(ie,G,$,pe,ge,Ge))});var te=K?Me?j:B:Me?Y:Q,de=T?void 0:te(ge);return v(de||ge,function(ie,pe){de&&(pe=ie,ie=ge[pe]),x(Ke,pe,Dt(ie,G,$,pe,ge,Ge))}),Ke}p.exports=Dt},3118:(p,I,o)=>{var c=o(13218),v=Object.create,x=function(){function h(){}return function(b){if(!c(b))return{};if(v)return v(b);h.prototype=b;var S=new h;return h.prototype=void 0,S}}();p.exports=x},41848:p=>{function I(o,c,v,x){for(var h=o.length,b=v+(x?1:-1);x?b--:++b<h;)if(c(o[b],b,o))return b;return-1}p.exports=I},35764:(p,I,o)=>{var c=o(62488),v=o(37285);function x(h,b,S,g,L){var D=-1,B=h.length;for(S||(S=v),L||(L=[]);++D<B;){var j=h[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}p.exports=x},97786:(p,I,o)=>{var c=o(71811),v=o(40327);function x(h,b){b=c(b,h);for(var S=0,g=b.length;h!=null&&S<g;)h=h[v(b[S++])];return S&&S==g?h:void 0}p.exports=x},68866:(p,I,o)=>{var c=o(62488),v=o(1469);function x(h,b,S){var g=b(h);return v(h)?g:c(g,S(h))}p.exports=x},44239:(p,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),h="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:h:S&&S in Object(L)?v(L):x(L)}p.exports=g},13:p=>{function I(o,c){return o!=null&&c in Object(o)}p.exports=I},9454:(p,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function h(b){return v(b)&&c(b)==x}p.exports=h},90939:(p,I,o)=>{var c=o(2492),v=o(37005);function x(h,b,S,g,L){return h===b?!0:h==null||b==null||!v(h)&&!v(b)?h!==h&&b!==b:c(h,b,S,g,x,L)}p.exports=x},2492:(p,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),h=o(16096),b=o(98882),S=o(1469),g=o(44144),L=o(36719),D=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,k=H.hasOwnProperty;function X(M,C,V,J,q,Q){var Y=S(M),ce=S(C),ee=Y?j:b(M),ne=ce?j:b(C);ee=ee==B?_:ee,ne=ne==B?_:ne;var xe=ee==_,we=ne==_,ve=ee==ne;if(ve&&g(M)){if(!g(C))return!1;Y=!0,xe=!1}if(ve&&!xe)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,q,Q):x(M,C,ee,V,J,q,Q);if(!(V&D)){var fe=xe&&k.call(M,"__wrapped__"),se=we&&k.call(C,"__wrapped__");if(fe||se){var Fe=fe?M.value():M,Le=se?C.value():C;return Q||(Q=new c),q(Fe,Le,V,J,Q)}}return ve?(Q||(Q=new c),h(M,C,V,J,q,Q)):!1}p.exports=X},25588:(p,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function h(b){return v(b)&&c(b)==x}p.exports=h},2958:(p,I,o)=>{var c=o(46384),v=o(90939),x=1,h=2;function b(S,g,L,D){var B=L.length,j=B,_=!D;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],M=H[1];if(_&&H[2]){if(X===void 0&&!(k in S))return!1}else{var C=new c;if(D)var V=D(X,M,k,S,g,C);if(!(V===void 0?v(M,X,x|h,D,C):V))return!1}}return!0}p.exports=b},28458:(p,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),h=o(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.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(h(H))}p.exports=_},29221:(p,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function h(b){return v(b)&&c(b)==x}p.exports=h},38749:(p,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),h="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",k="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ne="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",ve={};ve[J]=ve[q]=ve[Q]=ve[Y]=ve[ce]=ve[ee]=ve[ne]=ve[xe]=ve[we]=!0,ve[h]=ve[b]=ve[C]=ve[S]=ve[V]=ve[g]=ve[L]=ve[D]=ve[B]=ve[j]=ve[_]=ve[H]=ve[k]=ve[X]=ve[M]=!1;function fe(se){return x(se)&&v(se.length)&&!!ve[c(se)]}p.exports=fe},67206:(p,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),h=o(1469),b=o(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?h(g)?v(g[0],g[1]):c(g):b(g)}p.exports=S},280:(p,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,h=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))h.call(S,L)&&L!="constructor"&&g.push(L);return g}p.exports=b},10313:(p,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),h=Object.prototype,b=h.hasOwnProperty;function S(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}p.exports=S},91573:(p,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function h(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)}}p.exports=h},16432:(p,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),h=o(15403),b=o(89162),S=o(42634),g=o(40327),L=1,D=2;function B(j,_){return h(j)&&b(_)?S(g(j),_):function(H){var k=v(H,j);return k===void 0&&k===_?x(H,j):c(_,k,L|D)}}p.exports=B},25970:(p,I,o)=>{var c=o(63012),v=o(79095);function x(h,b){return c(h,b,function(S,g){return v(h,g)})}p.exports=x},63012:(p,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function h(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}p.exports=h},40371:p=>{function I(o){return function(c){return c==null?void 0:c[o]}}p.exports=I},79152:(p,I,o)=>{var c=o(97786);function v(x){return function(h){return c(h,x)}}p.exports=v},5976:(p,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function h(b,S){return x(v(b,S,c),b+"")}p.exports=h},10611:(p,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),h=o(13218),b=o(40327);function S(g,L,D,B){if(!h(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]),M=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=k[X];M=B?B(C,X,k):void 0,M===void 0&&(M=h(C)?C:x(L[j+1])?[]:{})}c(k,X,M),k=k[X]}return g}p.exports=S},56560:(p,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),h=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;p.exports=h},22545:p=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}p.exports=I},80531:(p,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),h=o(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(h(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}p.exports=L},27561:(p,I,o)=>{var c=o(67990),v=/^\s+/;function x(h){return h&&h.slice(0,c(h)+1).replace(v,"")}p.exports=x},7518:p=>{function I(o){return function(c){return o(c)}}p.exports=I},74757:p=>{function I(o,c){return o.has(c)}p.exports=I},71811:(p,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),h=o(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(h(S))}p.exports=b},74318:(p,I,o)=>{var c=o(11149);function v(x){var h=new x.constructor(x.byteLength);return new c(h).set(new c(x)),h}p.exports=v},64626:(p,I,o)=>{p=o.nmd(p);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&p&&!p.nodeType&&p,h=x&&x.exports===v,b=h?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}p.exports=g},57157:(p,I,o)=>{var c=o(74318);function v(x,h){var b=h?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}p.exports=v},93147:p=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}p.exports=o},40419:(p,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function h(b){return x?Object(x.call(b)):{}}p.exports=h},77133:(p,I,o)=>{var c=o(74318);function v(x,h){var b=h?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}p.exports=v},278:p=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}p.exports=I},98363:(p,I,o)=>{var c=o(34865),v=o(89465);function x(h,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],_=g?g(S[j],h[j],j,S,h):void 0;_===void 0&&(_=h[j]),L?v(S,j,_):c(S,j,_)}return S}p.exports=x},18805:(p,I,o)=>{var c=o(98363),v=o(99551);function x(h,b){return c(h,v(h),b)}p.exports=x},1911:(p,I,o)=>{var c=o(98363),v=o(51442);function x(h,b){return c(h,v(h),b)}p.exports=x},14429:(p,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];p.exports=v},21463:(p,I,o)=>{var c=o(5976),v=o(16612);function x(h){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=h.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&h(b,j,g,D)}return b})}p.exports=x},67740:(p,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function h(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(_){return B(D[_],_,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}p.exports=h},38777:(p,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(h){}}();p.exports=v},67114:(p,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),h=1,b=2;function S(g,L,D,B,j,_){var H=D&h,k=g.length,X=L.length;if(k!=X&&!(H&&X>k))return!1;var M=_.get(g),C=_.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,q=D&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<k;){var Q=g[V],Y=L[V];if(B)var ce=H?B(Y,Q,V,L,g,_):B(Q,Y,V,g,L,_);if(ce!==void 0){if(ce)continue;J=!1;break}if(q){if(!v(L,function(ee,ne){if(!x(q,ne)&&(Q===ee||j(Q,ee,D,B,_)))return q.push(ne)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}p.exports=S},18351:(p,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),h=o(67114),b=o(68776),S=o(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",k="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function Y(ce,ee,ne,xe,we,ve,fe){switch(ne){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!ve(new v(ce),new v(ee)));case D:case B:case H:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case k:case M:return ce==ee+"";case _:var se=b;case X:var Fe=xe&g;if(se||(se=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Re=h(se(ce),se(ee),xe,we,ve,fe);return fe.delete(ce),Re;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}p.exports=Y},16096:(p,I,o)=>{var c=o(58234),v=1,x=Object.prototype,h=x.hasOwnProperty;function b(S,g,L,D,B,j){var _=L&v,H=c(S),k=H.length,X=c(g),M=X.length;if(k!=M&&!_)return!1;for(var C=k;C--;){var V=H[C];if(!(_?V in g:h.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 Y=_;++C<k;){V=H[C];var ce=S[V],ee=g[V];if(D)var ne=_?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ne===void 0?ce===ee||B(ce,ee,L,D,j):ne)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}p.exports=b},99021:(p,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function h(b){return x(v(b,void 0,c),b+"")}p.exports=h},31957:(p,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;p.exports=c},58234:(p,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function h(b){return c(b,x,v)}p.exports=h},46904:(p,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function h(b){return c(b,x,v)}p.exports=h},45050:(p,I,o)=>{var c=o(37019);function v(x,h){var b=x.__data__;return c(h)?b[typeof h=="string"?"string":"hash"]:b.map}p.exports=v},1499:(p,I,o)=>{var c=o(89162),v=o(3674);function x(h){for(var b=v(h),S=b.length;S--;){var g=b[S],L=h[g];b[S]=[g,L,c(L)]}return b}p.exports=x},10852:(p,I,o)=>{var c=o(28458),v=o(47801);function x(h,b){var S=v(h,b);return c(S)?S:void 0}p.exports=x},85924:(p,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);p.exports=v},89607:(p,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,h=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=h.call(g);return B&&(L?g[b]=D:delete g[b]),j}p.exports=S},99551:(p,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,h=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return h.call(g,L)}))}:v;p.exports=S},51442:(p,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),h=o(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:h;p.exports=S},98882:(p,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),h=o(58525),b=o(70577),S=o(44239),g=o(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",k=g(c),X=g(v),M=g(x),C=g(h),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||h&&J(new h)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=S(q),Y=Q==D?q.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case k:return H;case X:return L;case M:return B;case C:return j;case V:return _}return Q}),p.exports=J},47801:p=>{function I(o,c){return o==null?void 0:o[c]}p.exports=I},222:(p,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),h=o(65776),b=o(41780),S=o(40327);function g(L,D,B){D=c(D,L);for(var j=-1,_=D.length,H=!1;++j<_;){var k=S(D[j]);if(!(H=L!=null&&B(L,k)))break;L=L[k]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&h(k,_)&&(x(L)||v(L)))}p.exports=g},51789:(p,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}p.exports=v},80401:p=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}p.exports=I},57667:(p,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,h=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return h.call(g,S)?g[S]:void 0}p.exports=b},21327:(p,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function h(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}p.exports=h},81866:(p,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(h,b){var S=this.__data__;return this.size+=this.has(h)?0:1,S[h]=c&&b===void 0?v:b,this}p.exports=x},43824:p=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,h=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(h.index=v.index,h.input=v.input),h}p.exports=c},29148:(p,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),h=o(40419),b=o(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",k="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ne(xe,we,ve){var fe=xe.constructor;switch(we){case k:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,ve);case M:case C:case V:case J:case q:case Q:case Y:case ce:case ee:return b(xe,ve);case L:return new fe;case D:case _:return new fe(xe);case B:return x(xe);case j:return new fe;case H:return h(xe)}}p.exports=ne},38517:(p,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function h(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}p.exports=h},37285:(p,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),h=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(h&&S&&S[h])}p.exports=b},65776:p=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var h=typeof v;return x=x==null?I:x,!!x&&(h=="number"||h!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}p.exports=c},16612:(p,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),h=o(13218);function b(S,g,L){if(!h(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}p.exports=b},15403:(p,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\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:h.test(S)||!x.test(S)||g!=null&&S in Object(g)}p.exports=b},37019:p=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}p.exports=I},15346:(p,I,o)=>{var c=o(14429),v=function(){var h=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}();function x(h){return!!v&&v in h}p.exports=x},25726:p=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}p.exports=o},89162:(p,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}p.exports=v},27040:p=>{function I(){this.__data__=[],this.size=0}p.exports=I},14125:(p,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function h(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}p.exports=h},82117:(p,I,o)=>{var c=o(18470);function v(x){var h=this.__data__,b=c(h,x);return b<0?void 0:h[b][1]}p.exports=v},67518:(p,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}p.exports=v},13399:(p,I,o)=>{var c=o(18470);function v(x,h){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,h])):b[S][1]=h,this}p.exports=v},24785:(p,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function h(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}p.exports=h},11285:(p,I,o)=>{var c=o(45050);function v(x){var h=c(this,x).delete(x);return this.size-=h?1:0,h}p.exports=v},96e3:(p,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}p.exports=v},49916:(p,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}p.exports=v},95265:(p,I,o)=>{var c=o(45050);function v(x,h){var b=c(this,x),S=b.size;return b.set(x,h),this.size+=b.size==S?0:1,this}p.exports=v},68776:p=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,h){v[++c]=[h,x]}),v}p.exports=I},42634:p=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}p.exports=I},24523:(p,I,o)=>{var c=o(88306),v=500;function x(h){var b=c(h,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}p.exports=x},94536:(p,I,o)=>{var c=o(10852),v=c(Object,"create");p.exports=v},86916:(p,I,o)=>{var c=o(5569),v=c(Object.keys,Object);p.exports=v},33498:p=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}p.exports=I},31167:(p,I,o)=>{p=o.nmd(p);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&p&&!p.nodeType&&p,h=x&&x.exports===v,b=h&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();p.exports=S},2333:p=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}p.exports=c},5569:p=>{function I(o,c){return function(v){return o(c(v))}}p.exports=I},45357:(p,I,o)=>{var c=o(96874),v=Math.max;function x(h,b,S){return b=v(b===void 0?h.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 j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(h,this,j)}}p.exports=x},55639:(p,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();p.exports=x},90619:p=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}p.exports=o},72385:p=>{function I(o){return this.__data__.has(o)}p.exports=I},21814:p=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}p.exports=I},30061:(p,I,o)=>{var c=o(56560),v=o(21275),x=v(c);p.exports=x},21275:p=>{var I=800,o=16,c=Date.now;function v(x){var h=0,b=0;return function(){var S=c(),g=o-(S-b);if(b=S,g>0){if(++h>=I)return arguments[0]}else h=0;return x.apply(void 0,arguments)}}p.exports=v},37465:(p,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}p.exports=v},63779:p=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}p.exports=I},67599:p=>{function I(o){return this.__data__.get(o)}p.exports=I},44758:p=>{function I(o){return this.__data__.has(o)}p.exports=I},34309:(p,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),h=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<h-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}p.exports=b},55514:(p,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,h=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});p.exports=h},40327:(p,I,o)=>{var c=o(33448),v=1/0;function x(h){if(typeof h=="string"||c(h))return h;var b=h+"";return b=="0"&&1/h==-v?"-0":b}p.exports=x},80346:p=>{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""}p.exports=c},67990:p=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}p.exports=o},28583:(p,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),h=o(98612),b=o(25726),S=o(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||h(j)){v(j,S(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});p.exports=D},50361:(p,I,o)=>{var c=o(85990),v=1,x=4;function h(b){return c(b,v|x)}p.exports=h},75703:p=>{function I(o){return function(){return o}}p.exports=I},77813:p=>{function I(o,c){return o===c||o!==o&&c!==c}p.exports=I},13311:(p,I,o)=>{var c=o(67740),v=o(30998),x=c(v);p.exports=x},30998:(p,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),h=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=h(D+B,0)),c(S,v(g,3),B)}p.exports=b},85564:(p,I,o)=>{var c=o(35764);function v(x){var h=x==null?0:x.length;return h?c(x,1):[]}p.exports=v},27361:(p,I,o)=>{var c=o(97786);function v(x,h,b){var S=x==null?void 0:c(x,h);return S===void 0?b:S}p.exports=v},79095:(p,I,o)=>{var c=o(13),v=o(222);function x(h,b){return h!=null&&v(h,b,c)}p.exports=x},6557:p=>{function I(o){return o}p.exports=I},35694:(p,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,h=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&h.call(g,"callee")&&!b.call(g,"callee")};p.exports=S},1469:p=>{var I=Array.isArray;p.exports=I},98612:(p,I,o)=>{var c=o(23560),v=o(41780);function x(h){return h!=null&&v(h.length)&&!c(h)}p.exports=x},44144:(p,I,o)=>{p=o.nmd(p);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,h=x&&!0&&p&&!p.nodeType&&p,b=h&&h.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;p.exports=L},41609:(p,I,o)=>{var c=o(280),v=o(98882),x=o(35694),h=o(1469),b=o(98612),S=o(44144),g=o(25726),L=o(36719),D="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(k){if(k==null)return!0;if(b(k)&&(h(k)||typeof k=="string"||typeof k.splice=="function"||S(k)||L(k)||x(k)))return!k.length;var X=v(k);if(X==D||X==B)return!k.size;if(g(k))return!c(k).length;for(var M in k)if(_.call(k,M))return!1;return!0}p.exports=H},23560:(p,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==h||D==b||D==x||D==S}p.exports=g},41780:p=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}p.exports=o},56688:(p,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),h=x&&x.isMap,b=h?v(h):c;p.exports=b},13218:p=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}p.exports=I},37005:p=>{function I(o){return o!=null&&typeof o=="object"}p.exports=I},68630:(p,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),h="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=h)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)==D}p.exports=B},72928:(p,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),h=x&&x.isSet,b=h?v(h):c;p.exports=b},47037:(p,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),h="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==h}p.exports=b},33448:(p,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function h(b){return typeof b=="symbol"||v(b)&&c(b)==x}p.exports=h},36719:(p,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),h=x&&x.isTypedArray,b=h?v(h):c;p.exports=b},3674:(p,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function h(b){return x(b)?c(b):v(b)}p.exports=h},81704:(p,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function h(b){return x(b)?c(b,!0):v(b)}p.exports=h},88306:(p,I,o)=>{var c=o(83369),v="Expected a function";function x(h,b){if(typeof h!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=h.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,p.exports=x},50308:p=>{function I(){}p.exports=I},78718:(p,I,o)=>{var c=o(25970),v=o(99021),x=v(function(h,b){return h==null?{}:c(h,b)});p.exports=x},39601:(p,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),h=o(40327);function b(S){return x(S)?c(h(S)):v(S)}p.exports=b},10240:(p,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),h=o(79833);function b(S,g,L){return S=h(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}p.exports=b},70479:p=>{function I(){return[]}p.exports=I},95062:p=>{function I(){return!1}p.exports=I},18601:(p,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function h(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}p.exports=h},40554:(p,I,o)=>{var c=o(18601);function v(x){var h=c(x),b=h%1;return h===h?b?h-b:h:0}p.exports=v},14841:(p,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),h=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return h;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)?h:+B}p.exports=D},79833:(p,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}p.exports=v},70631:(p,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,h=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,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?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,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,q=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ne=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,ve=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Re=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ie){return ie.__proto__}:null);function rt(ie,pe){if(ie===1/0||ie===-1/0||ie!==ie||ie&&ie>-1e3&&ie<1e3||ce.call(/e/,pe))return pe;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ie=="number"){var je=ie<0?-we(-ie):we(ie);if(je!==ie){var Ve=String(je),Xe=J.call(pe,Ve.length+1);return q.call(Ve,Ee,"$&_")+"."+q.call(q.call(Xe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(pe,Ee,"$&_")}var Qe=o(24654),Je=Qe.custom,ct=Et(Je)?Je:null;p.exports=function ie(pe,Ee,je,Ve){var Xe=Ee||{};if(jt(Xe,"quoteStyle")&&Xe.quoteStyle!=="single"&&Xe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(jt(Xe,"maxStringLength")&&(typeof Xe.maxStringLength=="number"?Xe.maxStringLength<0&&Xe.maxStringLength!==1/0:Xe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var gt=jt(Xe,"customInspect")?Xe.customInspect:!0;if(typeof gt!="boolean"&>!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(jt(Xe,"indent")&&Xe.indent!==null&&Xe.indent!==" "&&!(parseInt(Xe.indent,10)===Xe.indent&&Xe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(jt(Xe,"numericSeparator")&&typeof Xe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Xe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Xe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Nt=String(pe);return At?rt(pe,Nt):Nt}if(typeof pe=="bigint"){var Tt=String(pe)+"n";return At?rt(pe,Tt):Tt}var bn=typeof Xe.depth=="undefined"?5:Xe.depth;if(typeof je=="undefined"&&(je=0),je>=bn&&bn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var zr=N(Xe,je);if(typeof Ve=="undefined")Ve=[];else if(ge(Ve,pe)>=0)return"[Circular]";function Fr(Gr,qr,ti){if(qr&&(Ve=xe.call(Ve),Ve.push(qr)),ti){var pr={depth:Xe.depth};return jt(Xe,"quoteStyle")&&(pr.quoteStyle=Xe.quoteStyle),ie(Gr,pr,je+1,Ve)}return ie(Gr,Xe,je+1,Ve)}if(typeof pe=="function"&&!mt(pe)){var Ci=Dt(pe),Qr=de(pe,Fr);return"[Function"+(Ci?": "+Ci:" (anonymous)")+"]"+(Qr.length>0?" { "+ne.call(Qr,", ")+" }":"")}if(Et(pe)){var $i=Fe?q.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(pe);return typeof pe=="object"&&!Fe?K($i):$i}if(Ke(pe)){for(var zn="<"+Y.call(String(pe.nodeName)),wn=pe.attributes||[],Ln=0;Ln<wn.length;Ln++)zn+=" "+wn[Ln].name+"="+vt(wt(wn[Ln].value),"double",Xe);return zn+=">",pe.childNodes&&pe.childNodes.length&&(zn+="..."),zn+="</"+Y.call(String(pe.nodeName))+">",zn}if(nt(pe)){if(pe.length===0)return"[]";var Zr=de(pe,Fr);return zr&&!le(Zr)?"["+te(Zr,zr)+"]":"[ "+ne.call(Zr,", ")+" ]"}if(xt(pe)){var Oi=de(pe,Fr);return!("cause"in Error.prototype)&&"cause"in pe&&!Re.call(pe,"cause")?"{ ["+String(pe)+"] "+ne.call(ee.call("[cause]: "+Fr(pe.cause),Oi),", ")+" }":Oi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ne.call(Oi,", ")+" }"}if(typeof pe=="object"&>){if(ct&&typeof pe[ct]=="function"&&Qe)return Qe(pe,{depth:bn-je});if(gt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(G(pe)){var Ti=[];return h.call(pe,function(Gr,qr){Ti.push(Fr(qr,pe,!0)+" => "+Fr(Gr,pe))}),O("Map",x.call(pe),Ti,zr)}if(Ie(pe)){var ln=[];return L.call(pe,function(Gr){ln.push(Fr(Gr,pe))}),O("Set",g.call(pe),ln,zr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Ae(pe))return T("WeakRef");if(Rt(pe))return K(Fr(Number(pe)));if(Wt(pe))return K(Fr(ve.call(pe)));if(Ft(pe))return K(X.call(pe));if(ht(pe))return K(Fr(String(pe)));if(!ft(pe)&&!mt(pe)){var Sn=de(pe,Fr),Gn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,$n=pe instanceof Object?"":"null prototype",An=!Gn&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):$n?"Object":"",ei=Gn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Pi=ei+(An||$n?"["+ne.call(ee.call([],An||[],$n||[]),": ")+"] ":"");return Sn.length===0?Pi+"{}":zr?Pi+"{"+te(Sn,zr)+"}":Pi+"{ "+ne.call(Sn,", ")+" }"}return String(pe)};function vt(ie,pe,Ee){var je=(Ee.quoteStyle||pe)==="double"?'"':"'";return je+ie+je}function wt(ie){return q.call(String(ie),/"/g,""")}function nt(ie){return St(ie)==="[object Array]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function ft(ie){return St(ie)==="[object Date]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function mt(ie){return St(ie)==="[object RegExp]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function xt(ie){return St(ie)==="[object Error]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function ht(ie){return St(ie)==="[object String]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function Rt(ie){return St(ie)==="[object Number]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function Ft(ie){return St(ie)==="[object Boolean]"&&(!Le||!(typeof ie=="object"&&Le in ie))}function Et(ie){if(Fe)return ie&&typeof ie=="object"&&ie instanceof Symbol;if(typeof ie=="symbol")return!0;if(!ie||typeof ie!="object"||!se)return!1;try{return se.call(ie),!0}catch(pe){}return!1}function Wt(ie){if(!ie||typeof ie!="object"||!ve)return!1;try{return ve.call(ie),!0}catch(pe){}return!1}var Ut=Object.prototype.hasOwnProperty||function(ie){return ie in this};function jt(ie,pe){return Ut.call(ie,pe)}function St(ie){return M.call(ie)}function Dt(ie){if(ie.name)return ie.name;var pe=V.call(C.call(ie),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ge(ie,pe){if(ie.indexOf)return ie.indexOf(pe);for(var Ee=0,je=ie.length;Ee<je;Ee++)if(ie[Ee]===pe)return Ee;return-1}function G(ie){if(!x||!ie||typeof ie!="object")return!1;try{x.call(ie);try{g.call(ie)}catch(pe){return!0}return ie instanceof Map}catch(pe){}return!1}function $(ie){if(!B||!ie||typeof ie!="object")return!1;try{B.call(ie,B);try{_.call(ie,_)}catch(pe){return!0}return ie instanceof WeakMap}catch(pe){}return!1}function Ae(ie){if(!k||!ie||typeof ie!="object")return!1;try{return k.call(ie),!0}catch(pe){}return!1}function Ie(ie){if(!g||!ie||typeof ie!="object")return!1;try{g.call(ie);try{x.call(ie)}catch(pe){return!0}return ie instanceof Set}catch(pe){}return!1}function Ge(ie){if(!_||!ie||typeof ie!="object")return!1;try{_.call(ie,_);try{B.call(ie,B)}catch(pe){return!0}return ie instanceof WeakSet}catch(pe){}return!1}function Ke(ie){return!ie||typeof ie!="object"?!1:typeof HTMLElement!="undefined"&&ie instanceof HTMLElement?!0:typeof ie.nodeName=="string"&&typeof ie.getAttribute=="function"}function P(ie,pe){if(ie.length>pe.maxStringLength){var Ee=ie.length-pe.maxStringLength,je="... "+Ee+" more character"+(Ee>1?"s":"");return P(J.call(ie,0,pe.maxStringLength),pe)+je}var Ve=q.call(q.call(ie,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Me);return vt(Ve,"single",pe)}function Me(ie){var pe=ie.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ee?"\\"+Ee:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ie){return"Object("+ie+")"}function T(ie){return ie+" { ? }"}function O(ie,pe,Ee,je){var Ve=je?te(Ee,je):ne.call(Ee,", ");return ie+" ("+pe+") {"+Ve+"}"}function le(ie){for(var pe=0;pe<ie.length;pe++)if(ge(ie[pe],`
|
|
530
|
+
`)>=0)return!1;return!0}function N(ie,pe){var Ee;if(ie.indent===" ")Ee=" ";else if(typeof ie.indent=="number"&&ie.indent>0)Ee=ne.call(Array(ie.indent+1)," ");else return null;return{base:Ee,prev:ne.call(Array(pe+1),Ee)}}function te(ie,pe){if(ie.length===0)return"";var Ee=`
|
|
531
|
+
`+pe.prev+pe.base;return Ee+ne.call(ie,","+Ee)+`
|
|
532
|
+
`+pe.prev}function de(ie,pe){var Ee=nt(ie),je=[];if(Ee){je.length=ie.length;for(var Ve=0;Ve<ie.length;Ve++)je[Ve]=jt(ie,Ve)?pe(ie[Ve],ie):""}var Xe=typeof fe=="function"?fe(ie):[],gt;if(Fe){gt={};for(var At=0;At<Xe.length;At++)gt["$"+Xe[At]]=Xe[At]}for(var Nt in ie)!jt(ie,Nt)||Ee&&String(Number(Nt))===Nt&&Nt<ie.length||Fe&>["$"+Nt]instanceof Symbol||(ce.call(/[^\w$]/,Nt)?je.push(pe(Nt,ie)+": "+pe(ie[Nt],ie)):je.push(Nt+": "+pe(ie[Nt],ie)));if(typeof fe=="function")for(var Tt=0;Tt<Xe.length;Tt++)Re.call(ie,Xe[Tt])&&je.push("["+pe(Xe[Tt])+"]: "+pe(ie[Xe[Tt]],ie));return je}},9779:(p,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,_,H,k,X=0,M=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:D&&(C=32);default:B[M++]=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[M++]=37,B[M++]=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[M++]=37,B[M++]=k,B[M++]=C;break}B[M++]=16*_+H;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 h=new Array(256),b=0;b<256;++b)h[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",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&&(D+=L.slice(B,j)),_<128){B=j+1,D+=h[_];continue}if(_<2048){B=j+1,D+=h[192|_>>6]+h[128|_&63];continue}if(_<55296||_>=57344){B=j+1,D+=h[224|_>>12]+h[128|_>>6&63]+h[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),D+=h[240|_>>18]+h[128|_>>12&63]+h[128|_>>6&63]+h[128|_&63]}}return B===0?L:B<L.length?D+L.slice(B):D};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,D,B,j){D=D||"&",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,M="",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,Y=Q-1,ce=0;ce<Q;++ce)M+=q+_(S(J[ce])),ce<Y&&(M+=D);Q&&C<X&&(M+=D)}else M+=q+_(S(J)),C<X&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof D!="string"&&(D+="");var H=B.length,k=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,Y=0,ce="",ee="",ne=V,xe=V,we=0,ve=0;ve<L.length;++ve){var fe=L.charCodeAt(ve);if(fe===D.charCodeAt(Q)){if(++Q===k){var se=ve-Q+1;if(Y<H?q<se&&(ce+=L.slice(q,se)):q<se&&(ee+=L.slice(q,se)),ne&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)_[ce]=ee,J[J.length]=ce;else{var Fe=_[ce];Fe instanceof Array?Fe[Fe.length]=ee:_[ce]=[Fe,ee]}if(--M==0)break;ne=xe=V,we=0,ce=ee="",q=ve+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<H)if(fe===B.charCodeAt(Y)){if(++Y===H){var se=ve-Y+1;q<se&&(ce+=L.slice(q,se)),we=0,q=ve+1}continue}else Y=0,ne||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ne=!0):we=0);fe===43&&(Y<H?(ve-q>0&&(ce+=L.slice(q,ve)),ce+="%20",ne=!0):(ve-q>0&&(ee+=L.slice(q,ve)),ee+="%20",xe=!0),q=ve+1)}if(M>0&&(q<L.length||Y>0))if(q<L.length&&(Y<H?ce+=L.slice(q):Q<k&&(ee+=L.slice(q))),ne&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)_[ce]=ee,J[J.length]=ce;else{var Fe=_[ce];Fe instanceof Array?Fe[Fe.length]=ee:_[ce]=[Fe,ee]}return _};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(p,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 h=function(){var _=function(k,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[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,M=Object.keys,C=x(H),V=x(k);return H&&k&&C==="object"&&C===V?M(H).length===M(k).length&&M(H).every(function(J){return X.equals(H[J],k[J])}):H===k},_}(),D=function(){function _(H,k){this.editor=H,this.props=k}return _.prototype.delegateCursor=function(H,k,X){var M=this.editor.getDoc();X&&this.editor.focus(),k?M.setCursor(H):M.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(M,C){k.props.onBlur(k.editor,C)});break;case"onContextMenu":{k.editor.on("contextmenu",function(M,C){k.props.onContextMenu(k.editor,C)});break}case"onCopy":{k.editor.on("copy",function(M,C){k.props.onCopy(k.editor,C)});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,C){k.props.onCut(k.editor,C)});break}case"onDblClick":{k.editor.on("dblclick",function(M,C){k.props.onDblClick(k.editor,C)});break}case"onDragEnter":k.editor.on("dragenter",function(M,C){k.props.onDragEnter(k.editor,C)});break;case"onDragLeave":{k.editor.on("dragleave",function(M,C){k.props.onDragLeave(k.editor,C)});break}case"onDragOver":k.editor.on("dragover",function(M,C){k.props.onDragOver(k.editor,C)});break;case"onDragStart":{k.editor.on("dragstart",function(M,C){k.props.onDragStart(k.editor,C)});break}case"onDrop":k.editor.on("drop",function(M,C){k.props.onDrop(k.editor,C)});break;case"onFocus":k.editor.on("focus",function(M,C){k.props.onFocus(k.editor,C)});break;case"onGutterClick":k.editor.on("gutterClick",function(M,C,V,J){k.props.onGutterClick(k.editor,C,V,J)});break;case"onInputRead":k.editor.on("inputRead",function(M,C){k.props.onInputRead(k.editor,C)});break;case"onKeyDown":k.editor.on("keydown",function(M,C){k.props.onKeyDown(k.editor,C)});break;case"onKeyHandled":k.editor.on("keyHandled",function(M,C,V){k.props.onKeyHandled(k.editor,C,V)});break;case"onKeyPress":k.editor.on("keypress",function(M,C){k.props.onKeyPress(k.editor,C)});break;case"onKeyUp":k.editor.on("keyup",function(M,C){k.props.onKeyUp(k.editor,C)});break;case"onMouseDown":{k.editor.on("mousedown",function(M,C){k.props.onMouseDown(k.editor,C)});break}case"onPaste":{k.editor.on("paste",function(M,C){k.props.onPaste(k.editor,C)});break}case"onRenderLine":{k.editor.on("renderLine",function(M,C,V){k.props.onRenderLine(k.editor,C,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,C){k.props.onSelection(k.editor,C)});break;case"onTouchStart":{k.editor.on("touchstart",function(M,C){k.props.onTouchStart(k.editor,C)});break}case"onUpdate":k.editor.on("update",function(M){k.props.onUpdate(k.editor)});break;case"onViewportChange":k.editor.on("viewportChange",function(M,C,V){k.props.onViewportChange(k.editor,C,V)});break}})},_}(),B=function(_){h(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,M=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.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(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(k||"",{line:0,ch:0},{line:M,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 M=X.getCursor();X.setValue(k),X.setCursor(M)}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 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(X,M){if(!k.emulating){M.cancel(),k.deferred=M;var C=k.mirrorChange(k.deferred);k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,k.deferred,C)}}),this.editor.on("change",function(X,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))},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(_){h(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,M=k&&k.options?k.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!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 D(this.editor,this.props),this.editor.on("beforeChange",function(X,M){k.props.onBeforeChange&&k.props.onBeforeChange(k.editor,M,k.editor.getValue(),k.onBeforeChangeCb)}),this.editor.on("change",function(X,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))},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 M=!0;return S&&(M=!1),this.detached&&k.detach&&(M=!1),M},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:p=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,h=typeof Symbol=="function"?Symbol:{},b=h.iterator||"@@iterator",S=h.asyncIterator||"@@asyncIterator",g=h.toStringTag||"@@toStringTag";function L(Le,Re,Pe){return Object.defineProperty(Le,Re,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Re]}try{L({},"")}catch(Le){L=function(Re,Pe,rt){return Re[Pe]=rt}}function D(Le,Re,Pe,rt){var Qe=Re&&Re.prototype instanceof M?Re:M,Je=Object.create(Qe.prototype),ct=new fe(rt||[]);return Je._invoke=ne(Le,Pe,ct),Je}o.wrap=D;function B(Le,Re,Pe){try{return{type:"normal",arg:Le.call(Re,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",_="suspendedYield",H="executing",k="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(se([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Re){L(Le,Re,function(Pe){return this._invoke(Re,Pe)})})}o.isGeneratorFunction=function(Le){var Re=typeof Le=="function"&&Le.constructor;return Re?Re===C||(Re.displayName||Re.name)==="GeneratorFunction":!1},o.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},o.awrap=function(Le){return{__await:Le}};function ee(Le,Re){function Pe(Je,ct,vt,wt){var nt=B(Le[Je],Le,ct);if(nt.type==="throw")wt(nt.arg);else{var ft=nt.arg,mt=ft.value;return mt&&typeof mt=="object"&&v.call(mt,"__await")?Re.resolve(mt.__await).then(function(xt){Pe("next",xt,vt,wt)},function(xt){Pe("throw",xt,vt,wt)}):Re.resolve(mt).then(function(xt){ft.value=xt,vt(ft)},function(xt){return Pe("throw",xt,vt,wt)})}}var rt;function Qe(Je,ct){function vt(){return new Re(function(wt,nt){Pe(Je,ct,wt,nt)})}return rt=rt?rt.then(vt,vt):vt()}this._invoke=Qe}ce(ee.prototype),ee.prototype[S]=function(){return this},o.AsyncIterator=ee,o.async=function(Le,Re,Pe,rt,Qe){Qe===void 0&&(Qe=Promise);var Je=new ee(D(Le,Re,Pe,rt),Qe);return o.isGeneratorFunction(Re)?Je:Je.next().then(function(ct){return ct.done?ct.value:Je.next()})};function ne(Le,Re,Pe){var rt=j;return function(Je,ct){if(rt===H)throw new Error("Generator is already running");if(rt===k){if(Je==="throw")throw ct;return Fe()}for(Pe.method=Je,Pe.arg=ct;;){var vt=Pe.delegate;if(vt){var wt=xe(vt,Pe);if(wt){if(wt===X)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=k,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=H;var nt=B(Le,Re,Pe);if(nt.type==="normal"){if(rt=Pe.done?k:_,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=k,Pe.method="throw",Pe.arg=nt.arg)}}}function xe(Le,Re){var Pe=Le.iterator[Re.method];if(Pe===x){if(Re.delegate=null,Re.method==="throw"){if(Le.iterator.return&&(Re.method="return",Re.arg=x,xe(Le,Re),Re.method==="throw"))return X;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Re.arg);if(rt.type==="throw")return Re.method="throw",Re.arg=rt.arg,Re.delegate=null,X;var Qe=rt.arg;if(!Qe)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,X;if(Qe.done)Re[Le.resultName]=Qe.value,Re.next=Le.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=x);else return Qe;return Re.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Re={tryLoc:Le[0]};1 in Le&&(Re.catchLoc=Le[1]),2 in Le&&(Re.finallyLoc=Le[2],Re.afterLoc=Le[3]),this.tryEntries.push(Re)}function ve(Le){var Re=Le.completion||{};Re.type="normal",delete Re.arg,Le.completion=Re}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}o.keys=function(Le){var Re=[];for(var Pe in Le)Re.push(Pe);return Re.reverse(),function rt(){for(;Re.length;){var Qe=Re.pop();if(Qe in Le)return rt.value=Qe,rt.done=!1,rt}return rt.done=!0,rt}};function se(Le){if(Le){var Re=Le[b];if(Re)return Re.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Qe(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Qe.value=Le[Pe],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return rt.next=rt}}return{next:Fe}}o.values=se;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){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(ve),!Le)for(var Re in this)Re.charAt(0)==="t"&&v.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Re=Le.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Re=this;function Pe(wt,nt){return Je.type="throw",Je.arg=Le,Re.next=wt,nt&&(Re.method="next",Re.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Qe=this.tryEntries[rt],Je=Qe.completion;if(Qe.tryLoc==="root")return Pe("end");if(Qe.tryLoc<=this.prev){var ct=v.call(Qe,"catchLoc"),vt=v.call(Qe,"finallyLoc");if(ct&&vt){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else if(ct){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0)}else if(vt){if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Re){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Qe=rt;break}}Qe&&(Le==="break"||Le==="continue")&&Qe.tryLoc<=Re&&Re<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=Le,Je.arg=Re,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Je)},complete:function(Le,Re){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Re&&(this.next=Re),X},finish:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),ve(Pe),X}},catch:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Qe=rt.arg;ve(Pe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Re,Pe){return this.delegate={iterator:se(Le),resultName:Re,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},o}(p.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(p,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),h=c("%TypeError%"),b=c("%WeakMap%",!0),S=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),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}},M=function(C,V){return!!H(C,V)};p.exports=function(){var V,J,q,Q={assert:function(Y){if(!Q.has(Y))throw new h("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(q)return k(q,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return _(J,Y)}else if(q)return M(q,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(q||(q={key:{},next:null}),X(q,Y,ce))}};return Q}},13837:(p,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},75019:(p,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},86081:(p,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},44254:(p,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[p.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var h=c(v,x);p.exports=v.locals||{}},88996:(p,I,o)=>{"use strict";/*!
|
|
533
533
|
* The buffer module from node.js, for the browser.
|
|
534
534
|
*
|
|
535
535
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
536
536
|
* @license MIT
|
|
537
|
-
*/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 h=2147483647;I.kMaxLength=h,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 K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){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(K){if(K>h)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return _(K,T);if(ArrayBuffer.isView(K))return k(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=K.valueOf&&K.valueOf();if(se!=null&&se!==K)return g.from(se,T,O);const N=M(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function _(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let se=S(O);const N=se.write(K,T);return N!==O&&(se=se.slice(0,N)),se}function H(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let se=0;se<T;se+=1)O[se]=K[se]&255;return O}function k(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return H(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let se;return T===void 0&&O===void 0?se=new Uint8Array(K):O===void 0?se=new Uint8Array(K,T):se=new Uint8Array(K,T,O),Object.setPrototypeOf(se,g.prototype),se}function M(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):H(K);if(K.type==="Buffer"&&Array.isArray(K.data))return H(K.data)}function C(K){if(K>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let se=T.length,N=O.length;for(let re=0,de=Math.min(se,N);re<de;++re)if(T[re]!==O[re]){se=T[re],N=O[re];break}return se<N?-1:N<se?1:0},g.isEncoding=function(T){switch(String(T).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(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let se;if(O===void 0)for(O=0,se=0;se<T.length;++se)O+=T[se].length;const N=g.allocUnsafe(O);let re=0;for(se=0;se<T.length;++se){let de=T[se];if(Ie(de,Uint8Array))re+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,re)):Uint8Array.prototype.set.call(N,de,re);else if(g.isBuffer(de))de.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return se?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function q(K,T,O){let se=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return ae(this,T,O);case"ascii":return Re(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,T,O);default:if(se)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),se=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const se=K[T];K[T]=K[O],K[O]=se}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?ae(this,0,T):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,se,N,re){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),se===void 0&&(se=T?T.length:0),N===void 0&&(N=0),re===void 0&&(re=this.length),O<0||se>T.length||N<0||re>this.length)throw new RangeError("out of range index");if(N>=re&&O>=se)return 0;if(N>=re)return-1;if(O>=se)return 1;if(O>>>=0,se>>>=0,N>>>=0,re>>>=0,this===T)return 0;let de=re-N,oe=se-O;const pe=Math.min(de,oe),Ee=this.slice(N,re),je=T.slice(O,se);for(let Ve=0;Ve<pe;++Ve)if(Ee[Ve]!==je[Ve]){de=Ee[Ve],oe=je[Ve];break}return de<oe?-1:oe<de?1:0};function Y(K,T,O,se,N){if(K.length===0)return-1;if(typeof O=="string"?(se=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,se)),g.isBuffer(T))return T.length===0?-1:ce(K,T,O,se,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,se,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,se,N){let re=1,de=K.length,oe=T.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(K.length<2||T.length<2)return-1;re=2,de/=2,oe/=2,O/=2}function pe(je,Ve){return re===1?je[Ve]:je.readUInt16BE(Ve*re)}let Ee;if(N){let je=-1;for(Ee=O;Ee<de;Ee++)if(pe(K,Ee)===pe(T,je===-1?0:Ee-je)){if(je===-1&&(je=Ee),Ee-je+1===oe)return je*re}else je!==-1&&(Ee-=Ee-je),je=-1}else for(O+oe>de&&(O=de-oe),Ee=O;Ee>=0;Ee--){let je=!0;for(let Ve=0;Ve<oe;Ve++)if(pe(K,Ee+Ve)!==pe(T,Ve)){je=!1;break}if(je)return Ee}return-1}g.prototype.includes=function(T,O,se){return this.indexOf(T,O,se)!==-1},g.prototype.indexOf=function(T,O,se){return Y(this,T,O,se,!0)},g.prototype.lastIndexOf=function(T,O,se){return Y(this,T,O,se,!1)};function ee(K,T,O,se){O=Number(O)||0;const N=K.length-O;se?(se=Number(se),se>N&&(se=N)):se=N;const re=T.length;se>re/2&&(se=re/2);let de;for(de=0;de<se;++de){const oe=parseInt(T.substr(de*2,2),16);if(Ge(oe))return de;K[O+de]=oe}return de}function ie(K,T,O,se){return Se(Dt(T,K.length-O),K,O,se)}function xe(K,T,O,se){return Se(ge(T),K,O,se)}function we(K,T,O,se){return Se($(T),K,O,se)}function he(K,T,O,se){return Se(G(T,K.length-O),K,O,se)}g.prototype.write=function(T,O,se,N){if(O===void 0)N="utf8",se=this.length,O=0;else if(se===void 0&&typeof O=="string")N=O,se=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(se)?(se=se>>>0,N===void 0&&(N="utf8")):(N=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const re=this.length-O;if((se===void 0||se>re)&&(se=re),T.length>0&&(se<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,se);case"utf8":case"utf-8":return ie(this,T,O,se);case"ascii":case"latin1":case"binary":return xe(this,T,O,se);case"base64":return we(this,T,O,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,se);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function ae(K,T,O){O=Math.min(K.length,O);const se=[];let N=T;for(;N<O;){const re=K[N];let de=null,oe=re>239?4:re>223?3:re>191?2:1;if(N+oe<=O){let pe,Ee,je,Ve;switch(oe){case 1:re<128&&(de=re);break;case 2:pe=K[N+1],(pe&192)==128&&(Ve=(re&31)<<6|pe&63,Ve>127&&(de=Ve));break;case 3:pe=K[N+1],Ee=K[N+2],(pe&192)==128&&(Ee&192)==128&&(Ve=(re&15)<<12|(pe&63)<<6|Ee&63,Ve>2047&&(Ve<55296||Ve>57343)&&(de=Ve));break;case 4:pe=K[N+1],Ee=K[N+2],je=K[N+3],(pe&192)==128&&(Ee&192)==128&&(je&192)==128&&(Ve=(re&15)<<18|(pe&63)<<12|(Ee&63)<<6|je&63,Ve>65535&&Ve<1114112&&(de=Ve))}}de===null?(de=65533,oe=1):de>65535&&(de-=65536,se.push(de>>>10&1023|55296),de=56320|de&1023),se.push(de),N+=oe}return Le(se)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",se=0;for(;se<T;)O+=String.fromCharCode.apply(String,K.slice(se,se+=Fe));return O}function Re(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]&127);return se}function Pe(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]);return se}function rt(K,T,O){const se=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>se)&&(O=se);let N="";for(let re=T;re<O;++re)N+=Ke[K[re]];return N}function Qe(K,T,O){const se=K.slice(T,O);let N="";for(let re=0;re<se.length-1;re+=2)N+=String.fromCharCode(se[re]+se[re+1]*256);return N}g.prototype.slice=function(T,O){const se=this.length;T=~~T,O=O===void 0?se:~~O,T<0?(T+=se,T<0&&(T=0)):T>se&&(T=se),O<0?(O+=se,O<0&&(O=0)):O>se&&(O=se),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Je(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Je(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Je(T,O,this.length);let N=this[T+--O],re=1;for(;O>0&&(re*=256);)N+=this[T+--O]*re;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&Ut(T,this.length-8);const N=O+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+this[++T]*Sr(2,24),re=this[++T]+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+se*Sr(2,24);return BigInt(N)+(BigInt(re)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&Ut(T,this.length-8);const N=O*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+this[++T],re=this[++T]*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+se;return(BigInt(N)<<BigInt(32))+BigInt(re)}),g.prototype.readIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Je(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return re*=128,N>=re&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Je(T,O,this.length);let N=O,re=1,de=this[T+--N];for(;N>0&&(re*=256);)de+=this[T+--N]*re;return re*=128,de>=re&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const se=this[T]|this[T+1]<<8;return se&32768?se|4294901760:se},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const se=this[T+1]|this[T]<<8;return se&32768?se|4294901760:se},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&Ut(T,this.length-8);const N=this[T+4]+this[T+5]*Sr(2,8)+this[T+6]*Sr(2,16)+(se<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+this[++T]*Sr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&Ut(T,this.length-8);const N=(O<<24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+se)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!1,52,8)};function ct(K,T,O,se,N,re){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<re)throw new RangeError('"value" argument is out of bounds');if(O+se>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const oe=Math.pow(2,8*se)-1;ct(this,T,O,se,oe,0)}let re=1,de=0;for(this[O]=T&255;++de<se&&(re*=256);)this[O+de]=T/re&255;return O+se},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const oe=Math.pow(2,8*se)-1;ct(this,T,O,se,oe,0)}let re=se-1,de=1;for(this[O+re]=T&255;--re>=0&&(de*=256);)this[O+re]=T/de&255;return O+se},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function vt(K,T,O,se,N){Et(T,se,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function wt(K,T,O,se,N){Et(T,se,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O+7]=re,re=re>>8,K[O+6]=re,re=re>>8,K[O+5]=re,re=re>>8,K[O+4]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return vt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return wt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ct(this,T,O,se,pe-1,-pe)}let re=0,de=1,oe=0;for(this[O]=T&255;++re<se&&(de*=256);)T<0&&oe===0&&this[O+re-1]!==0&&(oe=1),this[O+re]=(T/de>>0)-oe&255;return O+se},g.prototype.writeIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ct(this,T,O,se,pe-1,-pe)}let re=se-1,de=1,oe=0;for(this[O+re]=T&255;--re>=0&&(de*=256);)T<0&&oe===0&&this[O+re+1]!==0&&(oe=1),this[O+re]=(T/de>>0)-oe&255;return O+se},g.prototype.writeInt8=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ct(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return vt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return wt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,se,N,re){if(O+se>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ft(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,se,23,4),O+4}g.prototype.writeFloatLE=function(T,O,se){return ft(this,T,O,!0,se)},g.prototype.writeFloatBE=function(T,O,se){return ft(this,T,O,!1,se)};function mt(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,se,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,se){return mt(this,T,O,!0,se)},g.prototype.writeDoubleBE=function(T,O,se){return mt(this,T,O,!1,se)},g.prototype.copy=function(T,O,se,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(se||(se=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<se&&(N=se),N===se||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=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),T.length-O<N-se&&(N=T.length-O+se);const re=N-se;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,se,N):Uint8Array.prototype.set.call(T,this.subarray(se,N),O),re},g.prototype.fill=function(T,O,se,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,se=this.length):typeof se=="string"&&(N=se,se=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(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<se)throw new RangeError("Out of range index");if(se<=O)return this;O=O>>>0,se=se===void 0?this.length:se>>>0,T||(T=0);let re;if(typeof T=="number")for(re=O;re<se;++re)this[re]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),oe=de.length;if(oe===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<se-O;++re)this[re+O]=de[re%oe]}return this};const xt={};function ht(K,T,O){xt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}ht("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ht("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),ht("ERR_OUT_OF_RANGE",function(K,T,O){let se=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>Sr(2,32)?N=Rt(String(O)):typeof O=="bigint"&&(N=String(O),(O>Sr(BigInt(2),BigInt(32))||O<-Sr(BigInt(2),BigInt(32)))&&(N=Rt(N)),N+="n"),se+=` It must be ${T}. Received ${N}`,se},RangeError);function Rt(K){let T="",O=K.length;const se=K[0]==="-"?1:0;for(;O>=se+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function Ft(K,T,O){Wt(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&Ut(T,K.length-(O+1))}function Et(K,T,O,se,N,re){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let oe;throw re>3?T===0||T===BigInt(0)?oe=`>= 0${de} and < 2${de} ** ${(re+1)*8}${de}`:oe=`>= -(2${de} ** ${(re+1)*8-1}${de}) and < 2 ** ${(re+1)*8-1}${de}`:oe=`>= ${T}${de} and <= ${O}${de}`,new xt.ERR_OUT_OF_RANGE("value",oe,K)}Ft(se,N,re)}function Wt(K,T){if(typeof K!="number")throw new xt.ERR_INVALID_ARG_TYPE(T,"number",K)}function Ut(K,T,O){throw Math.floor(K)!==K?(Wt(K,O),new xt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const jt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(jt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const se=K.length;let N=null;const re=[];for(let de=0;de<se;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(de+1===se){(T-=3)>-1&&re.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&re.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&re.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;re.push(O)}else if(O<2048){if((T-=2)<0)break;re.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;re.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;re.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return re}function ge(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function G(K,T){let O,se,N;const re=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),se=O>>8,N=O%256,re.push(N),re.push(se);return re}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,se){let N;for(N=0;N<se&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const se=O*16;for(let N=0;N<16;++N)T[se+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Me:K}function Me(){throw new Error("BigInt not supported")}},24269:p=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};p.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:(p,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);p.exports={formats:x,parse:v,stringify:c}},73777:(p,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,h={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",D=function(k,X){var M={},C=X.ignoreQueryPrefix?k.replace(/^\?/,""):k,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,xe,we;ie===-1?(xe=X.decoder(ce,h.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ie),h.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,h.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(M,xe)?M[xe]=c.combine(M[xe],we):M[xe]=we}return M},B=function(H,k,X,M){for(var C=M?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,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&q!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(k,X,M,C){if(!!k){var V=M.allowDots?k.replace(/\.([^.[]+)/g,"[$1]"):k,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;ce.push(Y)}for(var ee=0;M.depth>0&&(Q=q.exec(V))!==null&&ee<M.depth;){if(ee+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,M,C)}},_=function(k){if(!k)return h;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"?h.charset:k.charset;return{allowDots:typeof k.allowDots=="undefined"?h.allowDots:!!k.allowDots,allowPrototypes:typeof k.allowPrototypes=="boolean"?k.allowPrototypes:h.allowPrototypes,allowSparse:typeof k.allowSparse=="boolean"?k.allowSparse:h.allowSparse,arrayLimit:typeof k.arrayLimit=="number"?k.arrayLimit:h.arrayLimit,charset:X,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:h.charsetSentinel,comma:typeof k.comma=="boolean"?k.comma:h.comma,decoder:typeof k.decoder=="function"?k.decoder:h.decoder,delimiter:typeof k.delimiter=="string"||c.isRegExp(k.delimiter)?k.delimiter:h.delimiter,depth:typeof k.depth=="number"||k.depth===!1?+k.depth:h.depth,ignoreQueryPrefix:k.ignoreQueryPrefix===!0,interpretNumericEntities:typeof k.interpretNumericEntities=="boolean"?k.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof k.parameterLimit=="number"?k.parameterLimit:h.parameterLimit,parseArrays:k.parseArrays!==!1,plainObjects:typeof k.plainObjects=="boolean"?k.plainObjects:h.plainObjects,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:h.strictNullHandling}};p.exports=function(H,k){var X=_(k);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof H=="string"?D(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var q=V[J],Q=j(q,M[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(p,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),h=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},S=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,S(M)?M:[M])},D=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(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"},H=function X(M,C,V,J,q,Q,Y,ce,ee,ie,xe,we,he,fe,ae){var Fe=M;if(ae.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(_(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Re=[];if(typeof Fe=="undefined")return Re;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Qe=0;Qe<Pe.length;++Qe){var Je=Pe[Qe],ct=typeof Je=="object"&&Je.value!==void 0?Je.value:Fe[Je];if(!(q&&ct===null)){var vt=S(Fe)?typeof V=="function"?V(C,Je):C:C+(ee?"."+Je:"["+Je+"]");ae.set(M,!0);var wt=c();L(Re,X(ct,vt,V,J,q,Q,Y,ce,ee,ie,xe,we,he,fe,wt))}}return Re},k=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.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(!h.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||S(M.filter))&&(q=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};p.exports=function(X,M){var C=X,V=k(M),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 Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var xe=J[ie];V.skipNulls&&C[xe]===null||L(Q,H(C[xe],xe,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,ee))}var we=Q.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&"),we.length>0?he+we:""}},58760:(p,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,h=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),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 M(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,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=M(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],ce,J):Q[Y]=ce,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},D=function(M,C,V){var J=M.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 Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+h[ie];continue}if(ie<2048){ce=ce+(h[192|ie>>6]+h[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(h[224|ie>>12]+h[128|ie>>6&63]+h[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=h[240|ie>>18]+h[128|ie>>12&63]+h[128|ie>>6&63]+h[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],xe=Y[ie];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ie}),J.push(xe))}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)};p.exports={arrayToObject:S,assign:L,combine:k,compact:j,decode:D,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:p=>{var I=p.exports=function(k){return new o(k)};function o(k){this.value=k}o.prototype.get=function(k){for(var X=this.value,M=0;M<k.length;M++){var C=k[M];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,M=0;M<k.length;M++){var C=k[M];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(k,X){for(var M=this.value,C=0;C<k.length-1;C++){var V=k[C];H.call(M,V)||(M[V]={}),M=M[V]}return M[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 M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(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 M(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]=M(C[q])}),k.pop(),X.pop(),J}else return C}(this.value)};function c(k,X,M){var C=[],V=[],J=!0;return function q(Q){var Y=M?v(Q):Q,ce={},ee=!0,ie={node:Y,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(he,fe){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,fe&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!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(){J=!1},block:function(){ee=!1}};if(!J)return ie;function xe(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}xe();var we=X.call(ie,ie.node);return we!==void 0&&ie.update&&ie.update(we),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),xe(),_(ie.keys,function(he,fe){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var ae=q(ie.node[he]);M&&H.call(ie.node,he)&&(ie.node[he]=ae.node),ae.isLast=fe==ie.keys.length-1,ae.isFirst=fe==0,ce.post&&ce.post.call(ie,ae),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(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(D(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 M=k.constructor&&k.constructor.prototype||k.__proto__||{},C=function(){};C.prototype=M,X=new C}return _(x(k),function(V){X[V]=k[V]}),X}else return k}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function h(k){return Object.prototype.toString.call(k)}function b(k){return h(k)==="[object Date]"}function S(k){return h(k)==="[object RegExp]"}function g(k){return h(k)==="[object Error]"}function L(k){return h(k)==="[object Boolean]"}function D(k){return h(k)==="[object Number]"}function B(k){return h(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 M=0;M<k.length;M++)X(k[M],M,k)};_(x(o.prototype),function(k){I[k]=function(X){var M=[].slice.call(arguments,1),C=new o(X);return C[k].apply(C,M)}});var H=Object.hasOwnProperty||function(k,X){return X in k}},56089:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|
|
537
|
+
*/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 h=2147483647;I.kMaxLength=h,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 K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){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(K){if(K>h)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return _(K,T);if(ArrayBuffer.isView(K))return k(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=K.valueOf&&K.valueOf();if(le!=null&&le!==K)return g.from(le,T,O);const N=M(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function _(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let le=S(O);const N=le.write(K,T);return N!==O&&(le=le.slice(0,N)),le}function H(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=K[le]&255;return O}function k(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return H(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let le;return T===void 0&&O===void 0?le=new Uint8Array(K):O===void 0?le=new Uint8Array(K,T):le=new Uint8Array(K,T,O),Object.setPrototypeOf(le,g.prototype),le}function M(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):H(K);if(K.type==="Buffer"&&Array.isArray(K.data))return H(K.data)}function C(K){if(K>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let le=T.length,N=O.length;for(let te=0,de=Math.min(le,N);te<de;++te)if(T[te]!==O[te]){le=T[te],N=O[te];break}return le<N?-1:N<le?1:0},g.isEncoding=function(T){switch(String(T).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(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let le;if(O===void 0)for(O=0,le=0;le<T.length;++le)O+=T[le].length;const N=g.allocUnsafe(O);let te=0;for(le=0;le<T.length;++le){let de=T[le];if(Ie(de,Uint8Array))te+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,te)):Uint8Array.prototype.set.call(N,de,te);else if(g.isBuffer(de))de.copy(N,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return le?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function q(K,T,O){let le=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return se(this,T,O);case"ascii":return Re(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const le=K[T];K[T]=K[O],K[O]=le}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?se(this,0,T):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,le,N,te){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),le===void 0&&(le=T?T.length:0),N===void 0&&(N=0),te===void 0&&(te=this.length),O<0||le>T.length||N<0||te>this.length)throw new RangeError("out of range index");if(N>=te&&O>=le)return 0;if(N>=te)return-1;if(O>=le)return 1;if(O>>>=0,le>>>=0,N>>>=0,te>>>=0,this===T)return 0;let de=te-N,ie=le-O;const pe=Math.min(de,ie),Ee=this.slice(N,te),je=T.slice(O,le);for(let Ve=0;Ve<pe;++Ve)if(Ee[Ve]!==je[Ve]){de=Ee[Ve],ie=je[Ve];break}return de<ie?-1:ie<de?1:0};function Y(K,T,O,le,N){if(K.length===0)return-1;if(typeof O=="string"?(le=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,le)),g.isBuffer(T))return T.length===0?-1:ce(K,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,le,N){let te=1,de=K.length,ie=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(K.length<2||T.length<2)return-1;te=2,de/=2,ie/=2,O/=2}function pe(je,Ve){return te===1?je[Ve]:je.readUInt16BE(Ve*te)}let Ee;if(N){let je=-1;for(Ee=O;Ee<de;Ee++)if(pe(K,Ee)===pe(T,je===-1?0:Ee-je)){if(je===-1&&(je=Ee),Ee-je+1===ie)return je*te}else je!==-1&&(Ee-=Ee-je),je=-1}else for(O+ie>de&&(O=de-ie),Ee=O;Ee>=0;Ee--){let je=!0;for(let Ve=0;Ve<ie;Ve++)if(pe(K,Ee+Ve)!==pe(T,Ve)){je=!1;break}if(je)return Ee}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return Y(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return Y(this,T,O,le,!1)};function ee(K,T,O,le){O=Number(O)||0;const N=K.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const te=T.length;le>te/2&&(le=te/2);let de;for(de=0;de<le;++de){const ie=parseInt(T.substr(de*2,2),16);if(Ge(ie))return de;K[O+de]=ie}return de}function ne(K,T,O,le){return Ae(Dt(T,K.length-O),K,O,le)}function xe(K,T,O,le){return Ae(ge(T),K,O,le)}function we(K,T,O,le){return Ae($(T),K,O,le)}function ve(K,T,O,le){return Ae(G(T,K.length-O),K,O,le)}g.prototype.write=function(T,O,le,N){if(O===void 0)N="utf8",le=this.length,O=0;else if(le===void 0&&typeof O=="string")N=O,le=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(le)?(le=le>>>0,N===void 0&&(N="utf8")):(N=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const te=this.length-O;if((le===void 0||le>te)&&(le=te),T.length>0&&(le<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,le);case"utf8":case"utf-8":return ne(this,T,O,le);case"ascii":case"latin1":case"binary":return xe(this,T,O,le);case"base64":return we(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,T,O,le);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function se(K,T,O){O=Math.min(K.length,O);const le=[];let N=T;for(;N<O;){const te=K[N];let de=null,ie=te>239?4:te>223?3:te>191?2:1;if(N+ie<=O){let pe,Ee,je,Ve;switch(ie){case 1:te<128&&(de=te);break;case 2:pe=K[N+1],(pe&192)==128&&(Ve=(te&31)<<6|pe&63,Ve>127&&(de=Ve));break;case 3:pe=K[N+1],Ee=K[N+2],(pe&192)==128&&(Ee&192)==128&&(Ve=(te&15)<<12|(pe&63)<<6|Ee&63,Ve>2047&&(Ve<55296||Ve>57343)&&(de=Ve));break;case 4:pe=K[N+1],Ee=K[N+2],je=K[N+3],(pe&192)==128&&(Ee&192)==128&&(je&192)==128&&(Ve=(te&15)<<18|(pe&63)<<12|(Ee&63)<<6|je&63,Ve>65535&&Ve<1114112&&(de=Ve))}}de===null?(de=65533,ie=1):de>65535&&(de-=65536,le.push(de>>>10&1023|55296),de=56320|de&1023),le.push(de),N+=ie}return Le(le)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,K.slice(le,le+=Fe));return O}function Re(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]&127);return le}function Pe(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]);return le}function rt(K,T,O){const le=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let te=T;te<O;++te)N+=Ke[K[te]];return N}function Qe(K,T,O){const le=K.slice(T,O);let N="";for(let te=0;te<le.length-1;te+=2)N+=String.fromCharCode(le[te]+le[te+1]*256);return N}g.prototype.slice=function(T,O){const le=this.length;T=~~T,O=O===void 0?le:~~O,T<0?(T+=le,T<0&&(T=0)):T>le&&(T=le),O<0?(O+=le,O<0&&(O=0)):O>le&&(O=le),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Je(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T+--O],te=1;for(;O>0&&(te*=256);)N+=this[T+--O]*te;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Ut(T,this.length-8);const N=O+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+this[++T]*Sr(2,24),te=this[++T]+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+le*Sr(2,24);return BigInt(N)+(BigInt(te)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Ut(T,this.length-8);const N=O*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+this[++T],te=this[++T]*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+le;return(BigInt(N)<<BigInt(32))+BigInt(te)}),g.prototype.readIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return te*=128,N>=te&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=O,te=1,de=this[T+--N];for(;N>0&&(te*=256);)de+=this[T+--N]*te;return te*=128,de>=te&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T]|this[T+1]<<8;return le&32768?le|4294901760:le},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T+1]|this[T]<<8;return le&32768?le|4294901760:le},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Ut(T,this.length-8);const N=this[T+4]+this[T+5]*Sr(2,8)+this[T+6]*Sr(2,16)+(le<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*Sr(2,8)+this[++T]*Sr(2,16)+this[++T]*Sr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Ut(T,this.length-8);const N=(O<<24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*Sr(2,24)+this[++T]*Sr(2,16)+this[++T]*Sr(2,8)+le)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!1,52,8)};function ct(K,T,O,le,N,te){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<te)throw new RangeError('"value" argument is out of bounds');if(O+le>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ie=Math.pow(2,8*le)-1;ct(this,T,O,le,ie,0)}let te=1,de=0;for(this[O]=T&255;++de<le&&(te*=256);)this[O+de]=T/te&255;return O+le},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ie=Math.pow(2,8*le)-1;ct(this,T,O,le,ie,0)}let te=le-1,de=1;for(this[O+te]=T&255;--te>=0&&(de*=256);)this[O+te]=T/de&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function vt(K,T,O,le,N){Et(T,le,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function wt(K,T,O,le,N){Et(T,le,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O+7]=te,te=te>>8,K[O+6]=te,te=te>>8,K[O+5]=te,te=te>>8,K[O+4]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return vt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return wt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ct(this,T,O,le,pe-1,-pe)}let te=0,de=1,ie=0;for(this[O]=T&255;++te<le&&(de*=256);)T<0&&ie===0&&this[O+te-1]!==0&&(ie=1),this[O+te]=(T/de>>0)-ie&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ct(this,T,O,le,pe-1,-pe)}let te=le-1,de=1,ie=0;for(this[O+te]=T&255;--te>=0&&(de*=256);)T<0&&ie===0&&this[O+te+1]!==0&&(ie=1),this[O+te]=(T/de>>0)-ie&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ct(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return vt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return wt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,le,N,te){if(O+le>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ft(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return ft(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return ft(this,T,O,!1,le)};function mt(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return mt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return mt(this,T,O,!1,le)},g.prototype.copy=function(T,O,le,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(le||(le=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<le&&(N=le),N===le||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=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),T.length-O<N-le&&(N=T.length-O+le);const te=N-le;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,le,N):Uint8Array.prototype.set.call(T,this.subarray(le,N),O),te},g.prototype.fill=function(T,O,le,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,le=this.length):typeof le=="string"&&(N=le,le=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(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<le)throw new RangeError("Out of range index");if(le<=O)return this;O=O>>>0,le=le===void 0?this.length:le>>>0,T||(T=0);let te;if(typeof T=="number")for(te=O;te<le;++te)this[te]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),ie=de.length;if(ie===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(te=0;te<le-O;++te)this[te+O]=de[te%ie]}return this};const xt={};function ht(K,T,O){xt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}ht("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ht("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),ht("ERR_OUT_OF_RANGE",function(K,T,O){let le=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>Sr(2,32)?N=Rt(String(O)):typeof O=="bigint"&&(N=String(O),(O>Sr(BigInt(2),BigInt(32))||O<-Sr(BigInt(2),BigInt(32)))&&(N=Rt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Rt(K){let T="",O=K.length;const le=K[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function Ft(K,T,O){Wt(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&Ut(T,K.length-(O+1))}function Et(K,T,O,le,N,te){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ie;throw te>3?T===0||T===BigInt(0)?ie=`>= 0${de} and < 2${de} ** ${(te+1)*8}${de}`:ie=`>= -(2${de} ** ${(te+1)*8-1}${de}) and < 2 ** ${(te+1)*8-1}${de}`:ie=`>= ${T}${de} and <= ${O}${de}`,new xt.ERR_OUT_OF_RANGE("value",ie,K)}Ft(le,N,te)}function Wt(K,T){if(typeof K!="number")throw new xt.ERR_INVALID_ARG_TYPE(T,"number",K)}function Ut(K,T,O){throw Math.floor(K)!==K?(Wt(K,O),new xt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const jt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(jt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const le=K.length;let N=null;const te=[];for(let de=0;de<le;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&te.push(239,191,189);continue}else if(de+1===le){(T-=3)>-1&&te.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&te.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&te.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;te.push(O)}else if(O<2048){if((T-=2)<0)break;te.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;te.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;te.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return te}function ge(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function G(K,T){let O,le,N;const te=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),le=O>>8,N=O%256,te.push(N),te.push(le);return te}function $(K){return c.toByteArray(St(K))}function Ae(K,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const le=O*16;for(let N=0;N<16;++N)T[le+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Me:K}function Me(){throw new Error("BigInt not supported")}},24269:p=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};p.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:(p,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);p.exports={formats:x,parse:v,stringify:c}},73777:(p,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,h={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",D=function(k,X){var M={},C=X.ignoreQueryPrefix?k.replace(/^\?/,""):k,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var ce=J[Q],ee=ce.indexOf("]="),ne=ee===-1?ce.indexOf("="):ee+1,xe,we;ne===-1?(xe=X.decoder(ce,h.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ne),h.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ne+1),X),function(ve){return X.decoder(ve,h.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(M,xe)?M[xe]=c.combine(M[xe],we):M[xe]=we}return M},B=function(H,k,X,M){for(var C=M?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,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&q!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(k,X,M,C){if(!!k){var V=M.allowDots?k.replace(/\.([^.[]+)/g,"[$1]"):k,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;ce.push(Y)}for(var ee=0;M.depth>0&&(Q=q.exec(V))!==null&&ee<M.depth;){if(ee+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,M,C)}},_=function(k){if(!k)return h;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"?h.charset:k.charset;return{allowDots:typeof k.allowDots=="undefined"?h.allowDots:!!k.allowDots,allowPrototypes:typeof k.allowPrototypes=="boolean"?k.allowPrototypes:h.allowPrototypes,allowSparse:typeof k.allowSparse=="boolean"?k.allowSparse:h.allowSparse,arrayLimit:typeof k.arrayLimit=="number"?k.arrayLimit:h.arrayLimit,charset:X,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:h.charsetSentinel,comma:typeof k.comma=="boolean"?k.comma:h.comma,decoder:typeof k.decoder=="function"?k.decoder:h.decoder,delimiter:typeof k.delimiter=="string"||c.isRegExp(k.delimiter)?k.delimiter:h.delimiter,depth:typeof k.depth=="number"||k.depth===!1?+k.depth:h.depth,ignoreQueryPrefix:k.ignoreQueryPrefix===!0,interpretNumericEntities:typeof k.interpretNumericEntities=="boolean"?k.interpretNumericEntities:h.interpretNumericEntities,parameterLimit:typeof k.parameterLimit=="number"?k.parameterLimit:h.parameterLimit,parseArrays:k.parseArrays!==!1,plainObjects:typeof k.plainObjects=="boolean"?k.plainObjects:h.plainObjects,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:h.strictNullHandling}};p.exports=function(H,k){var X=_(k);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof H=="string"?D(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var q=V[J],Q=j(q,M[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(p,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),h=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},S=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,S(M)?M:[M])},D=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(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"},H=function X(M,C,V,J,q,Q,Y,ce,ee,ne,xe,we,ve,fe,se){var Fe=M;if(se.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ne(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ne(nt):nt})),Fe===null){if(J)return Q&&!ve?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(_(Fe)||v.isBuffer(Fe)){if(Q){var Le=ve?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Re=[];if(typeof Fe=="undefined")return Re;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Qe=0;Qe<Pe.length;++Qe){var Je=Pe[Qe],ct=typeof Je=="object"&&Je.value!==void 0?Je.value:Fe[Je];if(!(q&&ct===null)){var vt=S(Fe)?typeof V=="function"?V(C,Je):C:C+(ee?"."+Je:"["+Je+"]");se.set(M,!0);var wt=c();L(Re,X(ct,vt,V,J,q,Q,Y,ce,ee,ne,xe,we,ve,fe,wt))}}return Re},k=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.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(!h.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||S(M.filter))&&(q=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};p.exports=function(X,M){var C=X,V=k(M),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 Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ne=0;ne<J.length;++ne){var xe=J[ne];V.skipNulls&&C[xe]===null||L(Q,H(C[xe],xe,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,ee))}var we=Q.join(V.delimiter),ve=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?ve+="utf8=%26%2310003%3B&":ve+="utf8=%E2%9C%93&"),we.length>0?ve+we:""}},58760:(p,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,h=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),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 M(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,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=M(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],ce,J):Q[Y]=ce,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},D=function(M,C,V){var J=M.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 Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ne=Y.charCodeAt(ee);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||Q===c.RFC1738&&(ne===40||ne===41)){ce+=Y.charAt(ee);continue}if(ne<128){ce=ce+h[ne];continue}if(ne<2048){ce=ce+(h[192|ne>>6]+h[128|ne&63]);continue}if(ne<55296||ne>=57344){ce=ce+(h[224|ne>>12]+h[128|ne>>6&63]+h[128|ne&63]);continue}ee+=1,ne=65536+((ne&1023)<<10|Y.charCodeAt(ee)&1023),ce+=h[240|ne>>18]+h[128|ne>>12&63]+h[128|ne>>6&63]+h[128|ne&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ne=ce[ee],xe=Y[ne];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ne}),J.push(xe))}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)};p.exports={arrayToObject:S,assign:L,combine:k,compact:j,decode:D,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:p=>{var I=p.exports=function(k){return new o(k)};function o(k){this.value=k}o.prototype.get=function(k){for(var X=this.value,M=0;M<k.length;M++){var C=k[M];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,M=0;M<k.length;M++){var C=k[M];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(k,X){for(var M=this.value,C=0;C<k.length-1;C++){var V=k[C];H.call(M,V)||(M[V]={}),M=M[V]}return M[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 M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(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 M(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]=M(C[q])}),k.pop(),X.pop(),J}else return C}(this.value)};function c(k,X,M){var C=[],V=[],J=!0;return function q(Q){var Y=M?v(Q):Q,ce={},ee=!0,ne={node:Y,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(ve,fe){ne.isRoot||(ne.parent.node[ne.key]=ve),ne.node=ve,fe&&(ee=!1)},delete:function(ve){delete ne.parent.node[ne.key],ve&&(ee=!1)},remove:function(ve){j(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],ve&&(ee=!1)},keys:null,before:function(ve){ce.before=ve},after:function(ve){ce.after=ve},pre:function(ve){ce.pre=ve},post:function(ve){ce.post=ve},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ne;function xe(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=x(ne.node)),ne.isLeaf=ne.keys.length==0;for(var ve=0;ve<V.length;ve++)if(V[ve].node_===Q){ne.circular=V[ve];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}xe();var we=X.call(ne,ne.node);return we!==void 0&&ne.update&&ne.update(we),ce.before&&ce.before.call(ne,ne.node),ee&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),xe(),_(ne.keys,function(ve,fe){C.push(ve),ce.pre&&ce.pre.call(ne,ne.node[ve],ve);var se=q(ne.node[ve]);M&&H.call(ne.node,ve)&&(ne.node[ve]=se.node),se.isLast=fe==ne.keys.length-1,se.isFirst=fe==0,ce.post&&ce.post.call(ne,se),C.pop()}),V.pop()),ce.after&&ce.after.call(ne,ne.node)),ne}(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(D(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 M=k.constructor&&k.constructor.prototype||k.__proto__||{},C=function(){};C.prototype=M,X=new C}return _(x(k),function(V){X[V]=k[V]}),X}else return k}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function h(k){return Object.prototype.toString.call(k)}function b(k){return h(k)==="[object Date]"}function S(k){return h(k)==="[object RegExp]"}function g(k){return h(k)==="[object Error]"}function L(k){return h(k)==="[object Boolean]"}function D(k){return h(k)==="[object Number]"}function B(k){return h(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 M=0;M<k.length;M++)X(k[M],M,k)};_(x(o.prototype),function(k){I[k]=function(X){var M=[].slice.call(arguments,1),C=new o(X);return C[k].apply(C,M)}});var H=Object.hasOwnProperty||function(k,X){return X in k}},56089:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:p=>{"use strict";p.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|