@redocly/reference-docs 3.0.0-alpha.0 → 3.0.0-alpha.1
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/assets/redoc-fast-scroll.js +23 -0
- package/bin/cli/assets/template.hbs +25 -0
- package/bin/cli/commands/redocly-docs-cli.min.js +2680 -0
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +376 -0
- package/dist/console.redocly-reference-docs.min.js +503 -0
- package/dist/oauth2-redirect.html +7 -0
- package/dist/oauth2-redirect.js +9 -0
- package/dist/redocly-reference-docs.min.js +5314 -0
- package/lib/components/NextSectionButton.d.ts +4 -4
- package/lib/components/RedoclyReferenceDocs.d.ts +1 -3
- package/lib/components/RedoclyReferenceDocs.js +1 -1
- package/lib/components/console/ResponseBody.js +1 -1
- package/lib/components/console/ResponseHeadersList.d.ts +4 -0
- package/lib/components/console/ResponseHeadersList.js +2 -0
- package/lib/components/console/ResponsePanel.d.ts +0 -2
- package/lib/components/console/ResponsePanel.js +1 -1
- package/lib/components/console/styled.d.ts +2 -0
- package/lib/components/console/styled.js +1 -1
- package/lib/redoc-lib/src/components/Markdown/styled.elements.d.ts +4 -4
- package/lib/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -5
- package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -1
- package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib/redoc-lib/src/types/open-api.d.ts +1 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib/redoc-lib/src/utils/index.d.ts +1 -0
- package/lib/redoc-lib/src/utils/index.js +1 -1
- package/lib/redoc-lib/src/utils/openapi.js +1 -1
- package/lib-esm/components/NextSectionButton.d.ts +4 -4
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +1 -3
- package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
- package/lib-esm/components/console/ResponseBody.js +1 -1
- package/lib-esm/components/console/ResponseHeadersList.d.ts +4 -0
- package/lib-esm/components/console/ResponseHeadersList.js +2 -0
- package/lib-esm/components/console/ResponsePanel.d.ts +0 -2
- package/lib-esm/components/console/ResponsePanel.js +1 -1
- package/lib-esm/components/console/styled.d.ts +2 -0
- package/lib-esm/components/console/styled.js +1 -1
- package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.d.ts +4 -4
- package/lib-esm/redoc-lib/src/components/Markdown/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.d.ts +0 -5
- package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +2 -1
- package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
- package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.d.ts +4 -0
- package/lib-esm/redoc-lib/src/utils/argValuesHelpers.js +2 -0
- package/lib-esm/redoc-lib/src/utils/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/index.js +1 -1
- package/lib-esm/redoc-lib/src/utils/openapi.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
var gr=Math.pow;/*!
|
|
2
|
+
* Redocly Reference Docs
|
|
3
|
+
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
|
+
* -------------------------------------------------------------
|
|
5
|
+
* Version: "3.0.0-alpha.1"
|
|
6
|
+
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,a)=>{h.exports=a(27698)},77766:(h,I,a)=>{h.exports=a(8065)},72119:(h,I,a)=>{h.exports=a(57448)},20116:(h,I,a)=>{h.exports=a(11955)},94473:(h,I,a)=>{h.exports=a(61577)},78580:(h,I,a)=>{h.exports=a(33778)},2991:(h,I,a)=>{h.exports=a(61798)},3649:(h,I,a)=>{h.exports=a(82073)},92762:(h,I,a)=>{h.exports=a(2348)},59340:(h,I,a)=>{h.exports=a(8933)},51942:(h,I,a)=>{h.exports=a(63383)},26295:(h,I,a)=>{h.exports=a(86209)},86902:(h,I,a)=>{h.exports=a(23059)},93476:(h,I,a)=>{h.exports=a(27460)},52424:(h,I,a)=>{h.exports=a(72010)},53592:(h,I,a)=>{h.exports=a(27385)},78363:(h,I,a)=>{h.exports=a(81522)},19996:(h,I,a)=>{h.exports=a(32209)},30699:(h,I,a)=>{h.exports=a(44442)},28834:(h,I,a)=>{h.exports=a(57152)},95683:(h,I,a)=>{h.exports=a(69447)},95238:(h,I,a)=>{h.exports=a(81493)},189:(h,I,a)=>{h.exports=a(76094)},32752:(h,I,a)=>{h.exports=a(70573)},44341:(h,I,a)=>{h.exports=a(73685)},58377:(h,I,a)=>{h.exports=a(27533)},13038:(h,I,a)=>{h.exports=a(39057)},63263:(h,I,a)=>{h.exports=a(84710)},24889:(h,I,a)=>{h.exports=a(74303)},89356:(h,I,a)=>{h.exports=a(93799)},79542:(h,I,a)=>{h.exports=a(55122)},69798:(h,I,a)=>{h.exports=a(29531)},13535:(h,I,a)=>{h.exports=a(10856)},83863:(h,I,a)=>{h.exports=a(31524)},51446:(h,I,a)=>{h.exports=a(86600)},23882:(h,I,a)=>{h.exports=a(9759)},63109:(h,I,a)=>{h.exports=a(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=B,I.fromByteArray=Q;for(var a=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)a[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(z){var M=z.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=z.indexOf("=");X===-1&&(X=M);var L=X===M?0:4-X%4;return[X,L]}function g(z){var M=A(z),X=M[0],L=M[1];return(X+L)*3/4-L}function R(z,M,X){return(M+X)*3/4-X}function B(z){var M,X=A(z),L=X[0],P=X[1],j=new v(R(z,L,P)),J=0,_=P>0?L-4:L,q;for(q=0;q<_;q+=4)M=c[z.charCodeAt(q)]<<18|c[z.charCodeAt(q+1)]<<12|c[z.charCodeAt(q+2)]<<6|c[z.charCodeAt(q+3)],j[J++]=M>>16&255,j[J++]=M>>8&255,j[J++]=M&255;return P===2&&(M=c[z.charCodeAt(q)]<<2|c[z.charCodeAt(q+1)]>>4,j[J++]=M&255),P===1&&(M=c[z.charCodeAt(q)]<<10|c[z.charCodeAt(q+1)]<<4|c[z.charCodeAt(q+2)]>>2,j[J++]=M>>8&255,j[J++]=M&255),j}function N(z){return a[z>>18&63]+a[z>>12&63]+a[z>>6&63]+a[z&63]}function V(z,M,X){for(var L,P=[],j=M;j<X;j+=3)L=(z[j]<<16&16711680)+(z[j+1]<<8&65280)+(z[j+2]&255),P.push(N(L));return P.join("")}function Q(z){for(var M,X=z.length,L=X%3,P=[],j=16383,J=0,_=X-L;J<_;J+=j)P.push(V(z,J,J+j>_?_:J+j));return L===1?(M=z[X-1],P.push(a[M>>2]+a[M<<4&63]+"==")):L===2&&(M=(z[X-2]<<8)+z[X-1],P.push(a[M>>10]+a[M>>4&63]+a[M<<2&63]+"=")),P.join("")}},50706:(h,I,a)=>{var c=a(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,a)=>{"use strict";/*!
|
|
7
|
+
* The buffer module from node.js, for the browser.
|
|
8
|
+
*
|
|
9
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=P,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(pe,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(G),pe.__proto__=g.prototype):(pe===null&&(pe=new g(G)),pe.length=G),pe}function g(pe,G,Y){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(pe,G,Y);if(typeof pe=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return V(this,pe)}return R(this,pe,G,Y)}g.poolSize=8192,g._augment=function(pe){return pe.__proto__=g.prototype,pe};function R(pe,G,Y,we){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?M(pe,G,Y,we):typeof G=="string"?Q(pe,G,Y):X(pe,G)}g.from=function(pe,G,Y){return R(null,pe,G,Y)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function B(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function N(pe,G,Y,we){return B(G),G<=0?A(pe,G):Y!==void 0?typeof we=="string"?A(pe,G).fill(Y,we):A(pe,G).fill(Y):A(pe,G)}g.alloc=function(pe,G,Y){return N(null,pe,G,Y)};function V(pe,G){if(B(G),pe=A(pe,G<0?0:L(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<G;++Y)pe[Y]=0;return pe}g.allocUnsafe=function(pe){return V(null,pe)},g.allocUnsafeSlow=function(pe){return V(null,pe)};function Q(pe,G,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var we=j(G,Y)|0;pe=A(pe,we);var Re=pe.write(G,Y);return Re!==we&&(pe=pe.slice(0,Re)),pe}function z(pe,G){var Y=G.length<0?0:L(G.length)|0;pe=A(pe,Y);for(var we=0;we<Y;we+=1)pe[we]=G[we]&255;return pe}function M(pe,G,Y,we){if(G.byteLength,Y<0||G.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(G.byteLength<Y+(we||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&we===void 0?G=new Uint8Array(G):we===void 0?G=new Uint8Array(G,Y):G=new Uint8Array(G,Y,we),g.TYPED_ARRAY_SUPPORT?(pe=G,pe.__proto__=g.prototype):pe=z(pe,G),pe}function X(pe,G){if(g.isBuffer(G)){var Y=L(G.length)|0;return pe=A(pe,Y),pe.length===0||G.copy(pe,0,0,Y),pe}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||kt(G.length)?A(pe,0):z(pe,G);if(G.type==="Buffer"&&x(G.data))return z(pe,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function L(pe){if(pe>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return pe|0}function P(pe){return+pe!=pe&&(pe=0),g.alloc(+pe)}g.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},g.compare=function(G,Y){if(!g.isBuffer(G)||!g.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(G===Y)return 0;for(var we=G.length,Re=Y.length,be=0,Ae=Math.min(we,Re);be<Ae;++be)if(G[be]!==Y[be]){we=G[be],Re=Y[be];break}return we<Re?-1:Re<we?1:0},g.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(G,Y){if(!x(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return g.alloc(0);var we;if(Y===void 0)for(Y=0,we=0;we<G.length;++we)Y+=G[we].length;var Re=g.allocUnsafe(Y),be=0;for(we=0;we<G.length;++we){var Ae=G[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Re,be),be+=Ae.length}return Re};function j(pe,G){if(g.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var Y=pe.length;if(Y===0)return 0;for(var we=!1;;)switch(G){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return xt(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Gt(pe).length;default:if(we)return xt(pe).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=j;function J(pe,G,Y){var we=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0,G>>>=0,Y<=G))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return tt(this,G,Y);case"utf8":case"utf-8":return ae(this,G,Y);case"ascii":return De(this,G,Y);case"latin1":case"binary":return Fe(this,G,Y);case"base64":return ue(this,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,Y);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function _(pe,G,Y){var we=pe[G];pe[G]=pe[Y],pe[Y]=we}g.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<G;Y+=2)_(this,Y,Y+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 Y=0;Y<G;Y+=4)_(this,Y,Y+3),_(this,Y+1,Y+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 Y=0;Y<G;Y+=8)_(this,Y,Y+7),_(this,Y+1,Y+6),_(this,Y+2,Y+5),_(this,Y+3,Y+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="",Y=I.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(G+=" ... ")),"<Buffer "+G+">"},g.prototype.compare=function(G,Y,we,Re,be){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),we===void 0&&(we=G?G.length:0),Re===void 0&&(Re=0),be===void 0&&(be=this.length),Y<0||we>G.length||Re<0||be>this.length)throw new RangeError("out of range index");if(Re>=be&&Y>=we)return 0;if(Re>=be)return-1;if(Y>=we)return 1;if(Y>>>=0,we>>>=0,Re>>>=0,be>>>=0,this===G)return 0;for(var Ae=be-Re,O=we-Y,Ie=Math.min(Ae,O),W=this.slice(Re,be),C=G.slice(Y,we),T=0;T<Ie;++T)if(W[T]!==C[T]){Ae=W[T],O=C[T];break}return Ae<O?-1:O<Ae?1:0};function q(pe,G,Y,we,Re){if(pe.length===0)return-1;if(typeof Y=="string"?(we=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=Re?0:pe.length-1),Y<0&&(Y=pe.length+Y),Y>=pe.length){if(Re)return-1;Y=pe.length-1}else if(Y<0)if(Re)Y=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:K(pe,G,Y,we,Re);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Re?Uint8Array.prototype.indexOf.call(pe,G,Y):Uint8Array.prototype.lastIndexOf.call(pe,G,Y):K(pe,[G],Y,we,Re);throw new TypeError("val must be string, number or Buffer")}function K(pe,G,Y,we,Re){var be=1,Ae=pe.length,O=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(pe.length<2||G.length<2)return-1;be=2,Ae/=2,O/=2,Y/=2}function Ie(D,ee){return be===1?D[ee]:D.readUInt16BE(ee*be)}var W;if(Re){var C=-1;for(W=Y;W<Ae;W++)if(Ie(pe,W)===Ie(G,C===-1?0:W-C)){if(C===-1&&(C=W),W-C+1===O)return C*be}else C!==-1&&(W-=W-C),C=-1}else for(Y+O>Ae&&(Y=Ae-O),W=Y;W>=0;W--){for(var T=!0,se=0;se<O;se++)if(Ie(pe,W+se)!==Ie(G,se)){T=!1;break}if(T)return W}return-1}g.prototype.includes=function(G,Y,we){return this.indexOf(G,Y,we)!==-1},g.prototype.indexOf=function(G,Y,we){return q(this,G,Y,we,!0)},g.prototype.lastIndexOf=function(G,Y,we){return q(this,G,Y,we,!1)};function oe(pe,G,Y,we){Y=Number(Y)||0;var Re=pe.length-Y;we?(we=Number(we),we>Re&&(we=Re)):we=Re;var be=G.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var O=parseInt(G.substr(Ae*2,2),16);if(isNaN(O))return Ae;pe[Y+Ae]=O}return Ae}function te(pe,G,Y,we){return At(xt(G,pe.length-Y),pe,Y,we)}function ne(pe,G,Y,we){return At(jt(G),pe,Y,we)}function ye(pe,G,Y,we){return ne(pe,G,Y,we)}function ge(pe,G,Y,we){return At(Gt(G),pe,Y,we)}function de(pe,G,Y,we){return At(Rt(G,pe.length-Y),pe,Y,we)}g.prototype.write=function(G,Y,we,Re){if(Y===void 0)Re="utf8",we=this.length,Y=0;else if(we===void 0&&typeof Y=="string")Re=Y,we=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(we)?(we=we|0,Re===void 0&&(Re="utf8")):(Re=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if((we===void 0||we>be)&&(we=be),G.length>0&&(we<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");Re||(Re="utf8");for(var Ae=!1;;)switch(Re){case"hex":return oe(this,G,Y,we);case"utf8":case"utf-8":return te(this,G,Y,we);case"ascii":return ne(this,G,Y,we);case"latin1":case"binary":return ye(this,G,Y,we);case"base64":return ge(this,G,Y,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,G,Y,we);default:if(Ae)throw new TypeError("Unknown encoding: "+Re);Re=(""+Re).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(pe,G,Y){return G===0&&Y===pe.length?c.fromByteArray(pe):c.fromByteArray(pe.slice(G,Y))}function ae(pe,G,Y){Y=Math.min(pe.length,Y);for(var we=[],Re=G;Re<Y;){var be=pe[Re],Ae=null,O=be>239?4:be>223?3:be>191?2:1;if(Re+O<=Y){var Ie,W,C,T;switch(O){case 1:be<128&&(Ae=be);break;case 2:Ie=pe[Re+1],(Ie&192)==128&&(T=(be&31)<<6|Ie&63,T>127&&(Ae=T));break;case 3:Ie=pe[Re+1],W=pe[Re+2],(Ie&192)==128&&(W&192)==128&&(T=(be&15)<<12|(Ie&63)<<6|W&63,T>2047&&(T<55296||T>57343)&&(Ae=T));break;case 4:Ie=pe[Re+1],W=pe[Re+2],C=pe[Re+3],(Ie&192)==128&&(W&192)==128&&(C&192)==128&&(T=(be&15)<<18|(Ie&63)<<12|(W&63)<<6|C&63,T>65535&&T<1114112&&(Ae=T))}}Ae===null?(Ae=65533,O=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),Re+=O}return Ve(we)}var Le=4096;function Ve(pe){var G=pe.length;if(G<=Le)return String.fromCharCode.apply(String,pe);for(var Y="",we=0;we<G;)Y+=String.fromCharCode.apply(String,pe.slice(we,we+=Le));return Y}function De(pe,G,Y){var we="";Y=Math.min(pe.length,Y);for(var Re=G;Re<Y;++Re)we+=String.fromCharCode(pe[Re]&127);return we}function Fe(pe,G,Y){var we="";Y=Math.min(pe.length,Y);for(var Re=G;Re<Y;++Re)we+=String.fromCharCode(pe[Re]);return we}function tt(pe,G,Y){var we=pe.length;(!G||G<0)&&(G=0),(!Y||Y<0||Y>we)&&(Y=we);for(var Re="",be=G;be<Y;++be)Re+=Lt(pe[be]);return Re}function Qe(pe,G,Y){for(var we=pe.slice(G,Y),Re="",be=0;be<we.length;be+=2)Re+=String.fromCharCode(we[be]+we[be+1]*256);return Re}g.prototype.slice=function(G,Y){var we=this.length;G=~~G,Y=Y===void 0?we:~~Y,G<0?(G+=we,G<0&&(G=0)):G>we&&(G=we),Y<0?(Y+=we,Y<0&&(Y=0)):Y>we&&(Y=we),Y<G&&(Y=G);var Re;if(g.TYPED_ARRAY_SUPPORT)Re=this.subarray(G,Y),Re.__proto__=g.prototype;else{var be=Y-G;Re=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)Re[Ae]=this[Ae+G]}return Re};function Je(pe,G,Y){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+G>Y)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,Y,we){G=G|0,Y=Y|0,we||Je(G,Y,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<Y&&(be*=256);)Re+=this[G+Ae]*be;return Re},g.prototype.readUIntBE=function(G,Y,we){G=G|0,Y=Y|0,we||Je(G,Y,this.length);for(var Re=this[G+--Y],be=1;Y>0&&(be*=256);)Re+=this[G+--Y]*be;return Re},g.prototype.readUInt8=function(G,Y){return Y||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,Y){return Y||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,Y){return Y||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,Y){return Y||Je(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,Y){return Y||Je(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,Y,we){G=G|0,Y=Y|0,we||Je(G,Y,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<Y&&(be*=256);)Re+=this[G+Ae]*be;return be*=128,Re>=be&&(Re-=Math.pow(2,8*Y)),Re},g.prototype.readIntBE=function(G,Y,we){G=G|0,Y=Y|0,we||Je(G,Y,this.length);for(var Re=Y,be=1,Ae=this[G+--Re];Re>0&&(be*=256);)Ae+=this[G+--Re]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*Y)),Ae},g.prototype.readInt8=function(G,Y){return Y||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,Y){Y||Je(G,2,this.length);var we=this[G]|this[G+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function(G,Y){Y||Je(G,2,this.length);var we=this[G+1]|this[G]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function(G,Y){return Y||Je(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,Y){return Y||Je(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,Y){return Y||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,Y){return Y||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,Y){return Y||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,Y){return Y||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ut(pe,G,Y,we,Re,be){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Re||G<be)throw new RangeError('"value" argument is out of bounds');if(Y+we>pe.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,Y,we,Re){if(G=+G,Y=Y|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,Y,we,be,0)}var Ae=1,O=0;for(this[Y]=G&255;++O<we&&(Ae*=256);)this[Y+O]=G/Ae&255;return Y+we},g.prototype.writeUIntBE=function(G,Y,we,Re){if(G=+G,Y=Y|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,Y,we,be,0)}var Ae=we-1,O=1;for(this[Y+Ae]=G&255;--Ae>=0&&(O*=256);)this[Y+Ae]=G/O&255;return Y+we},g.prototype.writeUInt8=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[Y]=G&255,Y+1};function pt(pe,G,Y,we){G<0&&(G=65535+G+1);for(var Re=0,be=Math.min(pe.length-Y,2);Re<be;++Re)pe[Y+Re]=(G&255<<8*(we?Re:1-Re))>>>(we?Re:1-Re)*8}g.prototype.writeUInt16LE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):pt(this,G,Y,!0),Y+2},g.prototype.writeUInt16BE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):pt(this,G,Y,!1),Y+2};function yt(pe,G,Y,we){G<0&&(G=4294967295+G+1);for(var Re=0,be=Math.min(pe.length-Y,4);Re<be;++Re)pe[Y+Re]=G>>>(we?Re:3-Re)*8&255}g.prototype.writeUInt32LE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=G&255):yt(this,G,Y,!0),Y+4},g.prototype.writeUInt32BE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):yt(this,G,Y,!1),Y+4},g.prototype.writeIntLE=function(G,Y,we,Re){if(G=+G,Y=Y|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,Y,we,be-1,-be)}var Ae=0,O=1,Ie=0;for(this[Y]=G&255;++Ae<we&&(O*=256);)G<0&&Ie===0&&this[Y+Ae-1]!==0&&(Ie=1),this[Y+Ae]=(G/O>>0)-Ie&255;return Y+we},g.prototype.writeIntBE=function(G,Y,we,Re){if(G=+G,Y=Y|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,Y,we,be-1,-be)}var Ae=we-1,O=1,Ie=0;for(this[Y+Ae]=G&255;--Ae>=0&&(O*=256);)G<0&&Ie===0&&this[Y+Ae+1]!==0&&(Ie=1),this[Y+Ae]=(G/O>>0)-Ie&255;return Y+we},g.prototype.writeInt8=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,1,127,-128),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[Y]=G&255,Y+1},g.prototype.writeInt16LE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8):pt(this,G,Y,!0),Y+2},g.prototype.writeInt16BE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>8,this[Y+1]=G&255):pt(this,G,Y,!1),Y+2},g.prototype.writeInt32LE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[Y]=G&255,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24):yt(this,G,Y,!0),Y+4},g.prototype.writeInt32BE=function(G,Y,we){return G=+G,Y=Y|0,we||ut(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),g.TYPED_ARRAY_SUPPORT?(this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=G&255):yt(this,G,Y,!1),Y+4};function qe(pe,G,Y,we,Re,be){if(Y+we>pe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function lt(pe,G,Y,we,Re){return Re||qe(pe,G,Y,4,34028234663852886e22,-34028234663852886e22),v.write(pe,G,Y,we,23,4),Y+4}g.prototype.writeFloatLE=function(G,Y,we){return lt(this,G,Y,!0,we)},g.prototype.writeFloatBE=function(G,Y,we){return lt(this,G,Y,!1,we)};function gt(pe,G,Y,we,Re){return Re||qe(pe,G,Y,8,17976931348623157e292,-17976931348623157e292),v.write(pe,G,Y,we,52,8),Y+8}g.prototype.writeDoubleLE=function(G,Y,we){return gt(this,G,Y,!0,we)},g.prototype.writeDoubleBE=function(G,Y,we){return gt(this,G,Y,!1,we)},g.prototype.copy=function(G,Y,we,Re){if(we||(we=0),!Re&&Re!==0&&(Re=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),Re>0&&Re<we&&(Re=we),Re===we||G.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(Re<0)throw new RangeError("sourceEnd out of bounds");Re>this.length&&(Re=this.length),G.length-Y<Re-we&&(Re=G.length-Y+we);var be=Re-we,Ae;if(this===G&&we<Y&&Y<Re)for(Ae=be-1;Ae>=0;--Ae)G[Ae+Y]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)G[Ae+Y]=this[Ae+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+be),Y);return be},g.prototype.fill=function(G,Y,we,Re){if(typeof G=="string"){if(typeof Y=="string"?(Re=Y,Y=0,we=this.length):typeof we=="string"&&(Re=we,we=this.length),G.length===1){var be=G.charCodeAt(0);be<256&&(G=be)}if(Re!==void 0&&typeof Re!="string")throw new TypeError("encoding must be a string");if(typeof Re=="string"&&!g.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re)}else typeof G=="number"&&(G=G&255);if(Y<0||this.length<Y||this.length<we)throw new RangeError("Out of range index");if(we<=Y)return this;Y=Y>>>0,we=we===void 0?this.length:we>>>0,G||(G=0);var Ae;if(typeof G=="number")for(Ae=Y;Ae<we;++Ae)this[Ae]=G;else{var O=g.isBuffer(G)?G:xt(new g(G,Re).toString()),Ie=O.length;for(Ae=0;Ae<we-Y;++Ae)this[Ae+Y]=O[Ae%Ie]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function Qt(pe){if(pe=nt(pe).replace(mt,""),pe.length<2)return"";for(;pe.length%4!=0;)pe=pe+"=";return pe}function nt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function Lt(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function xt(pe,G){G=G||1/0;for(var Y,we=pe.length,Re=null,be=[],Ae=0;Ae<we;++Ae){if(Y=pe.charCodeAt(Ae),Y>55295&&Y<57344){if(!Re){if(Y>56319){(G-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){(G-=3)>-1&&be.push(239,191,189);continue}Re=Y;continue}if(Y<56320){(G-=3)>-1&&be.push(239,191,189),Re=Y;continue}Y=(Re-55296<<10|Y-56320)+65536}else Re&&(G-=3)>-1&&be.push(239,191,189);if(Re=null,Y<128){if((G-=1)<0)break;be.push(Y)}else if(Y<2048){if((G-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((G-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((G-=4)<0)break;be.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return be}function jt(pe){for(var G=[],Y=0;Y<pe.length;++Y)G.push(pe.charCodeAt(Y)&255);return G}function Rt(pe,G){for(var Y,we,Re,be=[],Ae=0;Ae<pe.length&&!((G-=2)<0);++Ae)Y=pe.charCodeAt(Ae),we=Y>>8,Re=Y%256,be.push(Re),be.push(we);return be}function Gt(pe){return c.toByteArray(Qt(pe))}function At(pe,G,Y,we){for(var Re=0;Re<we&&!(Re+Y>=G.length||Re>=pe.length);++Re)G[Re+Y]=pe[Re];return Re}function kt(pe){return pe!==pe}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,A){var g=c(b,!!A);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),A=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),R=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(N){g=null}h.exports=function(V){var Q=b(c,d,arguments);if(A&&g){var z=A(Q,"length");z.configurable&&g(Q,"length",{value:1+R(0,V.length-(arguments.length-1))})}return Q};var B=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:B}):h.exports.apply=B},82801:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(L,P,j){j&&j!=c.Init&&(L.removeKeyMap(b),L.state.closeBrackets=null),P&&(A(d(P,"pairs")),L.state.closeBrackets=P,L.addKeyMap(b))});function d(L,P){return P=="pairs"&&typeof L=="string"?L:typeof L=="object"&&L[P]!=null?L[P]:v[P]}var b={Backspace:B,Enter:N};function A(L){for(var P=0;P<L.length;P++){var j=L.charAt(P),J="'"+j+"'";b[J]||(b[J]=g(j))}}A(v.pairs+"`");function g(L){return function(P){return z(P,L)}}function R(L){var P=L.state.closeBrackets;if(!P||P.override)return P;var j=L.getModeAt(L.getCursor());return j.closeBrackets||P}function B(L){var P=R(L);if(!P||L.getOption("disableInput"))return c.Pass;for(var j=d(P,"pairs"),J=L.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var q=M(L,J[_].head);if(!q||j.indexOf(q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var K=J[_].head;L.replaceRange("",x(K.line,K.ch-1),x(K.line,K.ch+1),"+delete")}}function N(L){var P=R(L),j=P&&d(P,"explode");if(!j||L.getOption("disableInput"))return c.Pass;for(var J=L.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var q=M(L,J[_].head);if(!q||j.indexOf(q)%2!=0)return c.Pass}L.operation(function(){var K=L.lineSeparator()||`
|
|
12
|
+
`;L.replaceSelection(K+K,null),V(L,-1),J=L.listSelections();for(var oe=0;oe<J.length;oe++){var te=J[oe].head.line;L.indentLine(te,null,!0),L.indentLine(te+1,null,!0)}})}function V(L,P){for(var j=[],J=L.listSelections(),_=0,q=0;q<J.length;q++){var K=J[q];K.head==L.getCursor()&&(_=q);var oe=K.head.ch||P>0?{line:K.head.line,ch:K.head.ch+P}:{line:K.head.line-1};j.push({anchor:oe,head:oe})}L.setSelections(j,_)}function Q(L){var P=c.cmpPos(L.anchor,L.head)>0;return{anchor:new x(L.anchor.line,L.anchor.ch+(P?-1:1)),head:new x(L.head.line,L.head.ch+(P?1:-1))}}function z(L,P){var j=R(L);if(!j||L.getOption("disableInput"))return c.Pass;var J=d(j,"pairs"),_=J.indexOf(P);if(_==-1)return c.Pass;for(var q=d(j,"closeBefore"),K=d(j,"triples"),oe=J.charAt(_+1)==P,te=L.listSelections(),ne=_%2==0,ye,ge=0;ge<te.length;ge++){var de=te[ge],ue=de.head,ae,Le=L.getRange(ue,x(ue.line,ue.ch+1));if(ne&&!de.empty())ae="surround";else if((oe||!ne)&&Le==P)oe&&X(L,ue)?ae="both":K.indexOf(P)>=0&&L.getRange(ue,x(ue.line,ue.ch+3))==P+P+P?ae="skipThree":ae="skip";else if(oe&&ue.ch>1&&K.indexOf(P)>=0&&L.getRange(x(ue.line,ue.ch-2),ue)==P+P){if(ue.ch>2&&/\bstring/.test(L.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;ae="addFour"}else if(oe){var Ve=ue.ch==0?" ":L.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(Le)&&Ve!=P&&!c.isWordChar(Ve))ae="both";else return c.Pass}else if(ne&&(Le.length===0||/\s/.test(Le)||q.indexOf(Le)>-1))ae="both";else return c.Pass;if(!ye)ye=ae;else if(ye!=ae)return c.Pass}var De=_%2?J.charAt(_-1):P,Fe=_%2?P:J.charAt(_+1);L.operation(function(){if(ye=="skip")V(L,1);else if(ye=="skipThree")V(L,3);else if(ye=="surround"){for(var tt=L.getSelections(),Qe=0;Qe<tt.length;Qe++)tt[Qe]=De+tt[Qe]+Fe;L.replaceSelections(tt,"around"),tt=L.listSelections().slice();for(var Qe=0;Qe<tt.length;Qe++)tt[Qe]=Q(tt[Qe]);L.setSelections(tt)}else ye=="both"?(L.replaceSelection(De+Fe,null),L.triggerElectric(De+Fe),V(L,-1)):ye=="addFour"&&(L.replaceSelection(De+De+De+De,"before"),V(L,1))})}function M(L,P){var j=L.getRange(x(P.line,P.ch-1),x(P.line,P.ch+1));return j.length==2?j:null}function X(L,P){var j=L.getTokenAt(x(P.line,P.ch+1));return/\bstring/.test(j.type)&&j.start==P.ch&&(P.ch==0||!/\bstring/.test(L.getTokenTypeAt(P)))}})},4328:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(V){return V&&V.bracketRegex||/[(){}[\]]/}function A(V,Q,z){var M=V.getLineHandle(Q.line),X=Q.ch-1,L=z&&z.afterCursor;L==null&&(L=/(^| )cm-fat-cursor($| )/.test(V.getWrapperElement().className));var P=b(z),j=!L&&X>=0&&P.test(M.text.charAt(X))&&d[M.text.charAt(X)]||P.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!j)return null;var J=j.charAt(1)==">"?1:-1;if(z&&z.strict&&J>0!=(X==Q.ch))return null;var _=V.getTokenTypeAt(x(Q.line,X+1)),q=g(V,x(Q.line,X+(J>0?1:0)),J,_,z);return q==null?null:{from:x(Q.line,X),to:q&&q.pos,match:q&&q.ch==j.charAt(0),forward:J>0}}function g(V,Q,z,M,X){for(var L=X&&X.maxScanLineLength||1e4,P=X&&X.maxScanLines||1e3,j=[],J=b(X),_=z>0?Math.min(Q.line+P,V.lastLine()+1):Math.max(V.firstLine()-1,Q.line-P),q=Q.line;q!=_;q+=z){var K=V.getLine(q);if(!!K){var oe=z>0?0:K.length-1,te=z>0?K.length:-1;if(!(K.length>L))for(q==Q.line&&(oe=Q.ch-(z<0?1:0));oe!=te;oe+=z){var ne=K.charAt(oe);if(J.test(ne)&&(M===void 0||(V.getTokenTypeAt(x(q,oe+1))||"")==(M||""))){var ye=d[ne];if(ye&&ye.charAt(1)==">"==z>0)j.push(ne);else if(j.length)j.pop();else return{pos:x(q,oe),ch:ne}}}}}return q-z==(z>0?V.lastLine():V.firstLine())?!1:null}function R(V,Q,z){for(var M=V.state.matchBrackets.maxHighlightLineLength||1e3,X=z&&z.highlightNonMatching,L=[],P=V.listSelections(),j=0;j<P.length;j++){var J=P[j].empty()&&A(V,P[j].head,z);if(J&&(J.match||X!==!1)&&V.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";L.push(V.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&V.getLine(J.to.line).length<=M&&L.push(V.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(L.length){v&&V.state.focused&&V.focus();var q=function(){V.operation(function(){for(var K=0;K<L.length;K++)L[K].clear()})};if(Q)setTimeout(q,800);else return q}}function B(V){V.operation(function(){V.state.matchBrackets.currentlyHighlighted&&(V.state.matchBrackets.currentlyHighlighted(),V.state.matchBrackets.currentlyHighlighted=null),V.state.matchBrackets.currentlyHighlighted=R(V,!1,V.state.matchBrackets)})}function N(V){V.state.matchBrackets&&V.state.matchBrackets.currentlyHighlighted&&(V.state.matchBrackets.currentlyHighlighted(),V.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(V,Q,z){z&&z!=c.Init&&(V.off("cursorActivity",B),V.off("focus",B),V.off("blur",N),N(V)),Q&&(V.state.matchBrackets=typeof Q=="object"?Q:{},V.on("cursorActivity",B),V.on("focus",B),V.on("blur",N))}),c.defineExtension("matchBrackets",function(){R(this,!0)}),c.defineExtension("findMatchingBracket",function(V,Q,z){return(z||typeof Q=="boolean")&&(z?(z.strict=Q,Q=z):Q=Q?{strict:!0}:null),A(this,V,Q)}),c.defineExtension("scanForBracket",function(V,Q,z,M){return g(this,V,Q,z,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(L,P,j){if(!P)return L.showHint(j);j&&j.async&&(P.async=!0);var J={hint:P};if(j)for(var _ in j)J[_]=j[_];return L.showHint(J)},c.defineExtension("showHint",function(L){L=g(this,this.getCursor("start"),L);var P=this.listSelections();if(!(P.length>1)){if(this.somethingSelected()){if(!L.hint.supportsSelection)return;for(var j=0;j<P.length;j++)if(P[j].head.line!=P[j].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,L);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(L,P){if(this.cm=L,this.options=P,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 j=this;L.on("cursorActivity",this.activityFunc=function(){j.cursorActivity()})}}var b=window.requestAnimationFrame||function(L){return setTimeout(L,1e3/60)},A=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(L,P){var j=L.list[P],J=this;this.cm.operation(function(){j.hint?j.hint(J.cm,L,j):J.cm.replaceRange(R(j),j.from||L.from,j.to||L.to,"complete"),c.signal(L,"pick",j),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(A(this.debounce),this.debounce=0);var L=this.startPos;this.data&&(L=this.data.from);var P=this.cm.getCursor(),j=this.cm.getLine(P.line);if(P.line!=this.startPos.line||j.length-P.ch!=this.startLen-this.startPos.ch||P.ch<L.ch||this.cm.somethingSelected()||!P.ch||this.options.closeCharacters.test(j.charAt(P.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(L){if(this.tick!=null){var P=this,j=++this.tick;z(this.options.hint,this.cm,this.options,function(J){P.tick==j&&P.finishUpdate(J,L)})}},finishUpdate:function(L,P){this.data&&c.signal(this.data,"update");var j=this.widget&&this.widget.picked||P&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=L,L&&L.list.length&&(j&&L.list.length==1?this.pick(L,0):(this.widget=new V(this,L),c.signal(L,"shown")))}};function g(L,P,j){var J=L.options.hintOptions,_={};for(var q in X)_[q]=X[q];if(J)for(var q in J)J[q]!==void 0&&(_[q]=J[q]);if(j)for(var q in j)j[q]!==void 0&&(_[q]=j[q]);return _.hint.resolve&&(_.hint=_.hint.resolve(L,P)),_}function R(L){return typeof L=="string"?L:L.text}function B(L,P){var j={Up:function(){P.moveFocus(-1)},Down:function(){P.moveFocus(1)},PageUp:function(){P.moveFocus(-P.menuSize()+1,!0)},PageDown:function(){P.moveFocus(P.menuSize()-1,!0)},Home:function(){P.setFocus(0)},End:function(){P.setFocus(P.length-1)},Enter:P.pick,Tab:P.pick,Esc:P.close},J=/Mac/.test(navigator.platform);J&&(j["Ctrl-P"]=function(){P.moveFocus(-1)},j["Ctrl-N"]=function(){P.moveFocus(1)});var _=L.options.customKeys,q=_?{}:j;function K(ne,ye){var ge;typeof ye!="string"?ge=function(de){return ye(de,P)}:j.hasOwnProperty(ye)?ge=j[ye]:ge=ye,q[ne]=ge}if(_)for(var oe in _)_.hasOwnProperty(oe)&&K(oe,_[oe]);var te=L.options.extraKeys;if(te)for(var oe in te)te.hasOwnProperty(oe)&&K(oe,te[oe]);return q}function N(L,P){for(;P&&P!=L;){if(P.nodeName.toUpperCase()==="LI"&&P.parentNode==L)return P;P=P.parentNode}}function V(L,P){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=L,this.data=P,this.picked=!1;var j=this,J=L.cm,_=J.getInputField().ownerDocument,q=_.defaultView||_.parentWindow,K=this.hints=_.createElement("ul");K.setAttribute("role","listbox"),K.setAttribute("aria-expanded","true"),K.id=this.id;var oe=L.cm.options.theme;K.className="CodeMirror-hints "+oe,this.selectedHint=P.selectedHint||0;for(var te=P.list,ne=0;ne<te.length;++ne){var ye=K.appendChild(_.createElement("li")),ge=te[ne],de=v+(ne!=this.selectedHint?"":" "+x);ge.className!=null&&(de=ge.className+" "+de),ye.className=de,ne==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ne,ye.setAttribute("role","option"),ge.render?ge.render(ye,P,ge):ye.appendChild(_.createTextNode(ge.displayText||R(ge))),ye.hintId=ne}var ue=L.options.container||_.body,ae=J.cursorCoords(L.options.alignWithWord?P.from:null),Le=ae.left,Ve=ae.bottom,De=!0,Fe=0,tt=0;if(ue!==_.body){var Qe=["absolute","relative","fixed"].indexOf(q.getComputedStyle(ue).position)!==-1,Je=Qe?ue:ue.offsetParent,ut=Je.getBoundingClientRect(),pt=_.body.getBoundingClientRect();Fe=ut.left-pt.left-Je.scrollLeft,tt=ut.top-pt.top-Je.scrollTop}K.style.left=Le-Fe+"px",K.style.top=Ve-tt+"px";var yt=q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),qe=q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);ue.appendChild(K),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=L.options.moveOnOverlap?K.getBoundingClientRect():new DOMRect,gt=L.options.paddingForScrollbar?K.scrollHeight>K.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var Qt=lt.bottom-qe;if(Qt>0){var nt=lt.bottom-lt.top,Lt=ae.top-(ae.bottom-lt.top);if(Lt-nt>0)K.style.top=(Ve=ae.top-nt-tt)+"px",De=!1;else if(nt>qe){K.style.height=qe-5+"px",K.style.top=(Ve=ae.bottom-lt.top-tt)+"px";var xt=J.getCursor();P.from.ch!=xt.ch&&(ae=J.cursorCoords(xt),K.style.left=(Le=ae.left-Fe)+"px",lt=K.getBoundingClientRect())}}var jt=lt.right-yt;if(gt&&(jt+=J.display.nativeBarWidth),jt>0&&(lt.right-lt.left>yt&&(K.style.width=yt-5+"px",jt-=lt.right-lt.left-yt),K.style.left=(Le=ae.left-jt-Fe)+"px"),gt)for(var Rt=K.firstChild;Rt;Rt=Rt.nextSibling)Rt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=B(L,{moveFocus:function(kt,pe){j.changeActive(j.selectedHint+kt,pe)},setFocus:function(kt){j.changeActive(kt)},menuSize:function(){return j.screenAmount()},length:te.length,close:function(){L.close()},pick:function(){j.pick()},data:P})),L.options.closeOnUnfocus){var Gt;J.on("blur",this.onBlur=function(){Gt=setTimeout(function(){L.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Gt)})}J.on("scroll",this.onScroll=function(){var kt=J.getScrollInfo(),pe=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var G=Ve+mt.top-kt.top,Y=G-(q.pageYOffset||(_.documentElement||_.body).scrollTop);if(De||(Y+=K.offsetHeight),Y<=pe.top||Y>=pe.bottom)return L.close();K.style.top=G+"px",K.style.left=Le+mt.left-kt.left+"px"}),c.on(K,"dblclick",function(kt){var pe=N(K,kt.target||kt.srcElement);pe&&pe.hintId!=null&&(j.changeActive(pe.hintId),j.pick())}),c.on(K,"click",function(kt){var pe=N(K,kt.target||kt.srcElement);pe&&pe.hintId!=null&&(j.changeActive(pe.hintId),L.options.completeOnSingleClick&&j.pick())}),c.on(K,"mousedown",function(){setTimeout(function(){J.focus()},20)});var At=this.getSelectedHintRange();return(At.from!==0||At.to!==0)&&this.scrollToActive(),c.signal(P,"select",te[this.selectedHint],K.childNodes[this.selectedHint]),!0}V.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 L=this.completion.cm.getInputField();L.removeAttribute("aria-activedescendant"),L.removeAttribute("aria-owns");var P=this.completion.cm;this.completion.options.closeOnUnfocus&&(P.off("blur",this.onBlur),P.off("focus",this.onFocus)),P.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var L=this;this.keyMap={Enter:function(){L.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(L,P){if(L>=this.data.list.length?L=P?this.data.list.length-1:0:L<0&&(L=P?0:this.data.list.length-1),this.selectedHint!=L){var j=this.hints.childNodes[this.selectedHint];j&&(j.className=j.className.replace(" "+x,""),j.removeAttribute("aria-selected")),j=this.hints.childNodes[this.selectedHint=L],j.className+=" "+x,j.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",j.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],j)}},scrollToActive:function(){var L=this.getSelectedHintRange(),P=this.hints.childNodes[L.from],j=this.hints.childNodes[L.to],J=this.hints.firstChild;P.offsetTop<this.hints.scrollTop?this.hints.scrollTop=P.offsetTop-J.offsetTop:j.offsetTop+j.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=j.offsetTop+j.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var L=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-L),to:Math.min(this.data.list.length-1,this.selectedHint+L)}}};function Q(L,P){if(!L.somethingSelected())return P;for(var j=[],J=0;J<P.length;J++)P[J].supportsSelection&&j.push(P[J]);return j}function z(L,P,j,J){if(L.async)L(P,J,j);else{var _=L(P,j);_&&_.then?_.then(J):J(_)}}function M(L,P){var j=L.getHelpers(P,"hint"),J;if(j.length){var _=function(q,K,oe){var te=Q(q,j);function ne(ye){if(ye==te.length)return K(null);z(te[ye],q,oe,function(ge){ge&&ge.list.length>0?K(ge):ne(ye+1)})}ne(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=L.getHelper(L.getCursor(),"hintWords"))?function(q){return c.hint.fromList(q,{words:J})}:c.hint.anyword?function(q,K){return c.hint.anyword(q,K)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(L,P){var j=L.getCursor(),J=L.getTokenAt(j),_,q=c.Pos(j.line,J.start),K=j;J.start<j.ch&&/\w/.test(J.string.charAt(j.ch-J.start-1))?_=J.string.substr(0,j.ch-J.start):(_="",q=j);for(var oe=[],te=0;te<P.words.length;te++){var ne=P.words[te];ne.slice(0,_.length)==_&&oe.push(ne)}if(oe.length)return{list:oe,from:q,to:K}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(K,oe,te){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+K.options.theme,ne.appendChild(te.cloneNode(!0)),K.state.lint.options.selfContain?K.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ye(ge){if(!ne.parentNode)return c.off(document,"mousemove",ye);ne.style.top=Math.max(0,ge.clientY-ne.offsetHeight-5)+"px",ne.style.left=ge.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(oe),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(K){K.parentNode&&K.parentNode.removeChild(K)}function A(K){!K.parentNode||(K.style.opacity==null&&b(K),K.style.opacity=0,setTimeout(function(){b(K)},600))}function g(K,oe,te,ne){var ye=d(K,oe,te);function ge(){c.off(ne,"mouseout",ge),ye&&(A(ye),ye=null)}var de=setInterval(function(){if(ye)for(var ue=ne;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){ge();break}}if(!ye)return clearInterval(de)},400);c.on(ne,"mouseout",ge)}function R(K,oe,te){this.marked=[],oe instanceof Function&&(oe={getAnnotations:oe}),(!oe||oe===!0)&&(oe={}),this.options={},this.linterOptions=oe.options||{};for(var ne in B)this.options[ne]=B[ne];for(var ne in oe)B.hasOwnProperty(ne)?oe[ne]!=null&&(this.options[ne]=oe[ne]):oe.options||(this.linterOptions[ne]=oe[ne]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){q(K,ye)},this.waitingFor=0}var B={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function N(K){var oe=K.state.lint;oe.hasGutter&&K.clearGutter(v),oe.options.highlightLines&&V(K);for(var te=0;te<oe.marked.length;++te)oe.marked[te].clear();oe.marked.length=0}function V(K){K.eachLine(function(oe){var te=oe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(oe.wrapClass);te&&K.removeLineClass(oe,"wrap",te[0])})}function Q(K,oe,te,ne,ye){var ge=document.createElement("div"),de=ge;return ge.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,ne&&(de=ge.appendChild(document.createElement("div")),de.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(de,"mouseover",function(ue){g(K,ue,oe,de)}),ge}function z(K,oe){return K=="error"?K:oe}function M(K){for(var oe=[],te=0;te<K.length;++te){var ne=K[te],ye=ne.from.line;(oe[ye]||(oe[ye]=[])).push(ne)}return oe}function X(K){var oe=K.severity;oe||(oe="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+oe,typeof K.messageHTML!="undefined"?te.innerHTML=K.messageHTML:te.appendChild(document.createTextNode(K.message)),te}function L(K,oe){var te=K.state.lint,ne=++te.waitingFor;function ye(){ne=-1,K.off("change",ye)}K.on("change",ye),oe(K.getValue(),function(ge,de){K.off("change",ye),te.waitingFor==ne&&(de&&ge instanceof c&&(ge=de),K.operation(function(){j(K,ge)}))},te.linterOptions,K)}function P(K){var oe=K.state.lint;if(!!oe){var te=oe.options,ne=te.getAnnotations||K.getHelper(c.Pos(0,0),"lint");if(!!ne)if(te.async||ne.async)L(K,ne);else{var ye=ne(K.getValue(),oe.linterOptions,K);if(!ye)return;ye.then?ye.then(function(ge){K.operation(function(){j(K,ge)})}):K.operation(function(){j(K,ye)})}}}function j(K,oe){var te=K.state.lint;if(!!te){var ne=te.options;N(K);for(var ye=M(oe),ge=0;ge<ye.length;++ge){var de=ye[ge];if(!!de){var ue=[];de=de.filter(function(tt){return ue.indexOf(tt.message)>-1?!1:ue.push(tt.message)});for(var ae=null,Le=te.hasGutter&&document.createDocumentFragment(),Ve=0;Ve<de.length;++Ve){var De=de[Ve],Fe=De.severity;Fe||(Fe="error"),ae=z(ae,Fe),ne.formatAnnotation&&(De=ne.formatAnnotation(De)),te.hasGutter&&Le.appendChild(X(De)),De.to&&te.marked.push(K.markText(De.from,De.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Fe,__annotation:De}))}te.hasGutter&&K.setGutterMarker(ge,v,Q(K,Le,ae,ye[ge].length>1,ne.tooltips)),ne.highlightLines&&K.addLineClass(ge,"wrap",x+ae)}}ne.onUpdateLinting&&ne.onUpdateLinting(oe,ye,K)}}function J(K){var oe=K.state.lint;!oe||(clearTimeout(oe.timeout),oe.timeout=setTimeout(function(){P(K)},oe.options.delay))}function _(K,oe,te){for(var ne=te.target||te.srcElement,ye=document.createDocumentFragment(),ge=0;ge<oe.length;ge++){var de=oe[ge];ye.appendChild(X(de))}g(K,te,ye,ne)}function q(K,oe){var te=oe.target||oe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var ne=te.getBoundingClientRect(),ye=(ne.left+ne.right)/2,ge=(ne.top+ne.bottom)/2,de=K.findMarksAt(K.coordsChar({left:ye,top:ge},"client")),ue=[],ae=0;ae<de.length;++ae){var Le=de[ae].__annotation;Le&&ue.push(Le)}ue.length&&_(K,ue,oe)}}c.defineOption("lint",!1,function(K,oe,te){if(te&&te!=c.Init&&(N(K),K.state.lint.options.lintOnChange!==!1&&K.off("change",J),c.off(K.getWrapperElement(),"mouseover",K.state.lint.onMouseOver),clearTimeout(K.state.lint.timeout),delete K.state.lint),oe){for(var ne=K.getOption("gutters"),ye=!1,ge=0;ge<ne.length;++ge)ne[ge]==v&&(ye=!0);var de=K.state.lint=new R(K,oe,ye);de.options.lintOnChange&&K.on("change",J),de.options.tooltips!=!1&&de.options.tooltips!="gutter"&&c.on(K.getWrapperElement(),"mouseover",de.onMouseOver),P(K)}}),c.defineExtension("performLint",function(){P(this)})})},32095:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function x(P){var j=P.flags;return j!=null?j:(P.ignoreCase?"i":"")+(P.global?"g":"")+(P.multiline?"m":"")}function d(P,j){for(var J=x(P),_=J,q=0;q<j.length;q++)_.indexOf(j.charAt(q))==-1&&(_+=j.charAt(q));return J==_?P:new RegExp(P.source,_)}function b(P){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(P.source)}function A(P,j,J){j=d(j,"g");for(var _=J.line,q=J.ch,K=P.lastLine();_<=K;_++,q=0){j.lastIndex=q;var oe=P.getLine(_),te=j.exec(oe);if(te)return{from:v(_,te.index),to:v(_,te.index+te[0].length),match:te}}}function g(P,j,J){if(!b(j))return A(P,j,J);j=d(j,"gm");for(var _,q=1,K=J.line,oe=P.lastLine();K<=oe;){for(var te=0;te<q&&!(K>oe);te++){var ne=P.getLine(K++);_=_==null?ne:_+`
|
|
13
|
+
`+ne}q=q*2,j.lastIndex=J.ch;var ye=j.exec(_);if(ye){var ge=_.slice(0,ye.index).split(`
|
|
14
|
+
`),de=ye[0].split(`
|
|
15
|
+
`),ue=J.line+ge.length-1,ae=ge[ge.length-1].length;return{from:v(ue,ae),to:v(ue+de.length-1,de.length==1?ae+de[0].length:de[de.length-1].length),match:ye}}}}function R(P,j,J){for(var _,q=0;q<=P.length;){j.lastIndex=q;var K=j.exec(P);if(!K)break;var oe=K.index+K[0].length;if(oe>P.length-J)break;(!_||oe>_.index+_[0].length)&&(_=K),q=K.index+1}return _}function B(P,j,J){j=d(j,"g");for(var _=J.line,q=J.ch,K=P.firstLine();_>=K;_--,q=-1){var oe=P.getLine(_),te=R(oe,j,q<0?0:oe.length-q);if(te)return{from:v(_,te.index),to:v(_,te.index+te[0].length),match:te}}}function N(P,j,J){if(!b(j))return B(P,j,J);j=d(j,"gm");for(var _,q=1,K=P.getLine(J.line).length-J.ch,oe=J.line,te=P.firstLine();oe>=te;){for(var ne=0;ne<q&&oe>=te;ne++){var ye=P.getLine(oe--);_=_==null?ye:ye+`
|
|
16
|
+
`+_}q*=2;var ge=R(_,j,K);if(ge){var de=_.slice(0,ge.index).split(`
|
|
17
|
+
`),ue=ge[0].split(`
|
|
18
|
+
`),ae=oe+de.length,Le=de[de.length-1].length;return{from:v(ae,Le),to:v(ae+ue.length-1,ue.length==1?Le+ue[0].length:ue[ue.length-1].length),match:ge}}}}var V,Q;String.prototype.normalize?(V=function(P){return P.normalize("NFD").toLowerCase()},Q=function(P){return P.normalize("NFD")}):(V=function(P){return P.toLowerCase()},Q=function(P){return P});function z(P,j,J,_){if(P.length==j.length)return J;for(var q=0,K=J+Math.max(0,P.length-j.length);;){if(q==K)return q;var oe=q+K>>1,te=_(P.slice(0,oe)).length;if(te==J)return oe;te>J?K=oe:q=oe+1}}function M(P,j,J,_){if(!j.length)return null;var q=_?V:Q,K=q(j).split(/\r|\n\r?/);e:for(var oe=J.line,te=J.ch,ne=P.lastLine()+1-K.length;oe<=ne;oe++,te=0){var ye=P.getLine(oe).slice(te),ge=q(ye);if(K.length==1){var de=ge.indexOf(K[0]);if(de==-1)continue e;var J=z(ye,ge,de,q)+te;return{from:v(oe,z(ye,ge,de,q)+te),to:v(oe,z(ye,ge,de+K[0].length,q)+te)}}else{var ue=ge.length-K[0].length;if(ge.slice(ue)!=K[0])continue e;for(var ae=1;ae<K.length-1;ae++)if(q(P.getLine(oe+ae))!=K[ae])continue e;var Le=P.getLine(oe+K.length-1),Ve=q(Le),De=K[K.length-1];if(Ve.slice(0,De.length)!=De)continue e;return{from:v(oe,z(ye,ge,ue,q)+te),to:v(oe+K.length-1,z(Le,Ve,De.length,q))}}}}function X(P,j,J,_){if(!j.length)return null;var q=_?V:Q,K=q(j).split(/\r|\n\r?/);e:for(var oe=J.line,te=J.ch,ne=P.firstLine()-1+K.length;oe>=ne;oe--,te=-1){var ye=P.getLine(oe);te>-1&&(ye=ye.slice(0,te));var ge=q(ye);if(K.length==1){var de=ge.lastIndexOf(K[0]);if(de==-1)continue e;return{from:v(oe,z(ye,ge,de,q)),to:v(oe,z(ye,ge,de+K[0].length,q))}}else{var ue=K[K.length-1];if(ge.slice(0,ue.length)!=ue)continue e;for(var ae=1,J=oe-K.length+1;ae<K.length-1;ae++)if(q(P.getLine(J+ae))!=K[ae])continue e;var Le=P.getLine(oe+1-K.length),Ve=q(Le);if(Ve.slice(Ve.length-K[0].length)!=K[0])continue e;return{from:v(oe+1-K.length,z(Le,Ve,Le.length-K[0].length,q)),to:v(oe,z(ye,ge,ue.length,q))}}}}function L(P,j,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=P,J=J?P.clipPos(J):v(0,0),this.pos={from:J,to:J};var q;typeof _=="object"?q=_.caseFold:(q=_,_=null),typeof j=="string"?(q==null&&(q=!1),this.matches=function(K,oe){return(K?X:M)(P,j,oe,q)}):(j=d(j,"gm"),!_||_.multiline!==!1?this.matches=function(K,oe){return(K?N:g)(P,j,oe)}:this.matches=function(K,oe){return(K?B:A)(P,j,oe)})}L.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(P){var j=this.doc.clipPos(P?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(j=v(j.line,j.ch),P?(j.ch--,j.ch<0&&(j.line--,j.ch=(this.doc.getLine(j.line)||"").length)):(j.ch++,j.ch>(this.doc.getLine(j.line)||"").length&&(j.ch=0,j.line++)),c.cmpPos(j,this.doc.clipPos(j))!=0))return this.atOccurrence=!1;var J=this.matches(P,j);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(P?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(P,j){if(!!this.atOccurrence){var J=c.splitLines(P);this.doc.replaceRange(J,this.pos.from,this.pos.to,j),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(P,j,J){return new L(this.doc,P,j,J)}),c.defineDocExtension("getSearchCursor",function(P,j,J){return new L(this,P,j,J)}),c.defineExtension("selectMatches",function(P,j){for(var J=[],_=this.getSearchCursor(P,this.getCursor("from"),j);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,A=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),R=g&&/Qt\/\d+\.\d+/.test(I),B=!d&&/Chrome\//.test(I),N=/Opera\//.test(I),V=/Apple Computer/.test(navigator.vendor),Q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),z=/PhantomJS/.test(I),M=V&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),L=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),P=M||/Mac/.test(a),j=/\bCrOS\b/.test(I),J=/win/i.test(a),_=N&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(N=!1,g=!0);var q=P&&(R||N&&(_==null||_<12.11)),K=c||b&&A>=9;function oe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=oe(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 ye(e,n){return ne(e).appendChild(n)}function ge(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function de(e,n,u,l){var f=ge(e,n,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:ue=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function 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 Le(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ve(e,n){var u=e.className;oe(n).test(u)||(e.className+=(u?" ":"")+n)}function De(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!oe(u[l]).test(n)&&(n+=" "+u[l]);return n}var Fe=function(e){e.select()};M?Fe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Fe=function(e){try{e.select()}catch(n){}});function tt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Qe(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function 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 ut=function(){this.id=null,this.f=null,this.time=0,this.handler=tt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,qe={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},gt={origin:"*mouse"},mt={origin:"+move"};function Qt(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 nt=[""];function Lt(e){for(;nt.length<=e;)nt.push(xt(nt)+" ");return nt[e]}function xt(e){return e[e.length-1]}function jt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Rt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Gt(){}function At(e,n){var u;return Object.create?u=Object.create(e):(Gt.prototype=e,u=new Gt),n&&Qe(n,u),u}var kt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||kt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&pe(e)?!0:n.test(e):pe(e)}function Y(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Re(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&Re(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,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 O(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 Ie=null;function W(e,n,u){var l;Ie=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:Ie=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var C=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(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 H(Z,xe,Ee){this.level=Z,this.from=xe,this.to=Ee}return function(Z,xe){var Ee=xe=="ltr"?"L":"R";if(Z.length==0||xe=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,Me=[],Ye=0;Ye<Ne;++Ye)Me.push(u(Z.charCodeAt(Ye)));for(var rt=0,st=Ee;rt<Ne;++rt){var ct=Me[rt];ct=="m"?Me[rt]=st:st=ct}for(var vt=0,dt=Ee;vt<Ne;++vt){var bt=Me[vt];bt=="1"&&dt=="r"?Me[vt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(Me[vt]="R"))}for(var Pt=1,Ot=Me[0];Pt<Ne-1;++Pt){var Ut=Me[Pt];Ut=="+"&&Ot=="1"&&Me[Pt+1]=="1"?Me[Pt]="1":Ut==","&&Ot==Me[Pt+1]&&(Ot=="1"||Ot=="n")&&(Me[Pt]=Ot),Ot=Ut}for(var ar=0;ar<Ne;++ar){var Wr=Me[ar];if(Wr==",")Me[ar]="N";else if(Wr=="%"){var hr=void 0;for(hr=ar+1;hr<Ne&&Me[hr]=="%";++hr);for(var gn=ar&&Me[ar-1]=="!"||hr<Ne&&Me[hr]=="1"?"1":"N",un=ar;un<hr;++un)Me[un]=gn;ar=hr-1}}for(var Ir=0,fn=Ee;Ir<Ne;++Ir){var Hr=Me[Ir];fn=="L"&&Hr=="1"?Me[Ir]="L":m.test(Hr)&&(fn=Hr)}for(var Fr=0;Fr<Ne;++Fr)if(f.test(Me[Fr])){var kr=void 0;for(kr=Fr+1;kr<Ne&&f.test(Me[kr]);++kr);for(var xr=(Fr?Me[Fr-1]:Ee)=="L",cn=(kr<Ne?Me[kr]:Ee)=="L",ha=xr==cn?xr?"L":"R":Ee,Hi=Fr;Hi<kr;++Hi)Me[Hi]=ha;Fr=kr-1}for(var Zr=[],$n,Mr=0;Mr<Ne;)if(F.test(Me[Mr])){var ul=Mr;for(++Mr;Mr<Ne&&F.test(Me[Mr]);++Mr);Zr.push(new H(0,ul,Mr))}else{var Rn=Mr,zi=Zr.length,_r=xe=="rtl"?1:0;for(++Mr;Mr<Ne&&Me[Mr]!="L";++Mr);for(var dn=Rn;dn<Mr;)if(U.test(Me[dn])){Rn<dn&&(Zr.splice(zi,0,new H(1,Rn,dn)),zi+=_r);var va=dn;for(++dn;dn<Mr&&U.test(Me[dn]);++dn);Zr.splice(zi,0,new H(2,va,dn)),zi+=_r,Rn=dn}else++dn;Rn<Mr&&Zr.splice(zi,0,new H(1,Rn,Mr))}return xe=="ltr"&&(Zr[0].level==1&&($n=Z.match(/^\s+/))&&(Zr[0].from=$n[0].length,Zr.unshift(new H(0,0,$n[0].length))),xt(Zr).level==1&&($n=Z.match(/\s+$/))&&(xt(Zr).to-=$n[0].length,Zr.push(new H(0,Ne-$n[0].length,Ne)))),xe=="rtl"?Zr.reverse():Zr}}();function T(e,n){var u=e.order;return u==null&&(u=e.order=C(e.text,n)),u}var se=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||se).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||se}function fe(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=pt(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function Ce(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Ce(e,u||n.type,e,n),wt(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function Ge(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){fe(this,n,u)}}function at(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function St(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Kt(e){at(e),St(e)}function Bt(e){return e.target||e.srcElement}function cr(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),P&&e.ctrlKey&&n==1&&(n=3),n}var Jr=function(){if(b&&A<9)return!1;var e=ge("div");return"draggable"in e||"dragDrop"in e}(),En;function Ji(e){if(En==null){var n=ge("span","\u200B");ye(e,ge("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(En=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=En?ge("span","\u200B"):ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function Bn(e){if(jr!=null)return jr;var n=ye(e,document.createTextNode("A\u062EA")),u=ue(n,0,1).getBoundingClientRect(),l=ue(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var Yn=`
|
|
19
|
+
|
|
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/)},Cn=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},ma=function(){var e=ge("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Jn=null;function On(e){if(Jn!=null)return Jn;var n=ye(e,ge("span","x")),u=n.getBoundingClientRect(),l=ue(n,0,1).getBoundingClientRect();return Jn=Math.abs(u.left-l.left)>1}var Va={},mn={};function Xn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Va[e]=n}function Oi(e,n){mn[e]=n}function Xi(e){if(typeof e=="string"&&mn.hasOwnProperty(e))e=mn[e];else if(e&&typeof e.name=="string"&&mn.hasOwnProperty(e.name)){var n=mn[e.name];typeof n=="string"&&(n={name:n}),e=At(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Un(e,n){n=Xi(n);var u=Va[n.name];if(!u)return Un(e,"text/plain");var l=u(e,n);if(Ti.hasOwnProperty(n.name)){var f=Ti[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 Ti={};function Mo(e,n){var u=Ti.hasOwnProperty(e)?Ti[e]:Ti[e]={};Qe(n,u)}function Tn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function xn(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Pi(e,n,u){return e.startState?e.startState(n,u):!0}var yr=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};yr.prototype.eol=function(){return this.pos>=this.string.length},yr.prototype.sol=function(){return this.pos==this.lineStart},yr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yr.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},yr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},yr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},yr.prototype.skipToEnd=function(){this.pos=this.string.length},yr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},yr.prototype.backUp=function(e){this.pos-=e},yr.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)},yr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},yr.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)}},yr.prototype.current=function(){return this.string.slice(this.start,this.pos)},yr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},yr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},yr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ct(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 oi(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 bn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function jn(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],H=U.height;if(n<H)break;n-=H}return u+F}function Qi(e,n){return n>=e.first&&n<e.first+e.size}function si(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function it(e,n,u){if(u===void 0&&(u=null),!(this instanceof it))return new it(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Mt(e,n){return e.line-n.line||e.ch-n.ch}function xa(e,n){return e.sticky==n.sticky&&Mt(e,n)==0}function le(e){return it(e.line,e.ch)}function Oe(e,n){return Mt(e,n)<0?n:e}function _e(e,n){return Mt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function ft(e,n){if(n.line<e.first)return it(e.first,0);var u=e.first+e.size-1;return n.line>u?it(u,Ct(e,u).text.length):zt(n,Ct(e,n.line).text.length)}function zt(e,n){var u=e.ch;return u==null||u>n?it(e.line,n):u<0?it(e.line,0):e}function _t(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=ft(e,n[l]);return u}var wr=function(e,n){this.state=e,this.lookAhead=n},Sr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Sr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Sr.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}},Sr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Sr.fromSaved=function(e,n,u){return n instanceof wr?new Sr(e,Tn(e.mode,n.state),u,n.lookAhead):new Sr(e,Tn(e.mode,n),u)},Sr.prototype.save=function(e){var n=e!==!1?Tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wr(n,this.maxLookAhead):n};function Ro(e,n,u,l){var f=[e.state.modeGen],m={};Ol(e,n.text,e.doc.mode,u,function(Z,xe){return f.push(Z,xe)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var xe=e.state.overlays[Z],Ee=1,Ne=0;u.state=!0,Ol(e,n.text,xe.mode,u,function(Me,Ye){for(var rt=Ee;Ne<Me;){var st=f[Ee];st>Me&&f.splice(Ee,1,Me,f[Ee+1],st),Ee+=2,Ne=Math.min(Me,st)}if(!!Ye)if(xe.opaque)f.splice(rt,Ee-rt,Me,"overlay "+Ye),Ee=rt+2;else for(;rt<Ee;rt+=2){var ct=f[rt+1];f[rt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function qt(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=Wa(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Tn(e.doc.mode,l.state),m=Ro(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 Wa(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Sr(l,!0,n);var m=pf(e,n,u),F=m>l.first&&Ct(l,m-1).stateAfter,U=F?Sr.fromSaved(l,F,m):new Sr(l,Pi(l.mode),m);return l.iter(m,n,function(H){pn(e,H.text,U);var Z=U.line;H.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 pn(e,n,u,l){var f=e.doc.mode,m=new yr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&El(f,u.state);!m.eol();)Ha(f,m,u.state),m.start=m.pos}function El(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=xn(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Ha(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=xn(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 Cl=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function xs(e,n,u,l){var f=e.doc,m=f.mode,F;n=ft(f,n);var U=Ct(f,n.line),H=Wa(e,n.line,u),Z=new yr(U.text,e.options.tabSize,H),xe;for(l&&(xe=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=Ha(m,Z,H.state),l&&xe.push(new Cl(Z,F,Tn(f.mode,H.state)));return l?xe:new Cl(Z,F,H.state)}function bs(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 Ol(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,xe=new yr(n,e.options.tabSize,l),Ee,Ne=e.options.addModeClass&&[null];for(n==""&&bs(El(u,l.state),m);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(U=!1,F&&pn(e,n,l,xe.pos),xe.pos=n.length,Ee=null):Ee=bs(Ha(u,xe,l.state,Ne),m),Ne){var Me=Ne[0].name;Me&&(Ee="m-"+(Ee?Me+" "+Ee:Me))}if(!U||Z!=Ee){for(;H<xe.start;)H=Math.min(xe.start,H+5e3),f(H,Z);Z=Ee}xe.start=xe.pos}for(;H<xe.pos;){var Ye=Math.min(xe.pos,H+5e3);f(Ye,Z),H=Ye}}function pf(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 H=Ct(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof wr?Z.lookAhead:0)<=m.modeFrontier))return U;var xe=Je(H.text,null,e.options.tabSize);(f==null||l>xe)&&(f=U-1,l=xe)}return f}function hf(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=Ct(e,l).stateAfter;if(f&&(!(f instanceof wr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Tl=!1,Fi=!1;function gd(){Tl=!0}function vf(){Fi=!0}function Lo(e,n,u){this.marker=e,this.from=n,this.to=u}function za(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function gf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function yf(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 yd(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 H=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new Lo(F,m.from,H?null:m.to))}}return l}function md(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 H=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new Lo(F,H?null:m.from-n,m.to==null?null:m.to-n))}}return l}function Pl(e,n){if(n.full)return null;var u=Qi(e,n.from.line)&&Ct(e,n.from.line).markedSpans,l=Qi(e,n.to.line)&&Ct(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Mt(n.from,n.to)==0,U=yd(u,f,F),H=md(l,m,F),Z=n.text.length==1,xe=xt(n.text).length+(Z?f:0);if(U)for(var Ee=0;Ee<U.length;++Ee){var Ne=U[Ee];if(Ne.to==null){var Me=za(H,Ne.marker);Me?Z&&(Ne.to=Me.to==null?null:Me.to+xe):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var rt=H[Ye];if(rt.to!=null&&(rt.to+=xe),rt.from==null){var st=za(U,rt.marker);st||(rt.from=xe,Z&&(U||(U=[])).push(rt))}else rt.from+=xe,Z&&(U||(U=[])).push(rt)}U&&(U=mf(U)),H&&H!=U&&(H=mf(H));var ct=[U];if(!Z){var vt=n.text.length-2,dt;if(vt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new Lo(U[bt].marker,null,null));for(var Pt=0;Pt<vt;++Pt)ct.push(dt);ct.push(H)}return ct}function mf(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 xf(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Me){if(Me.markedSpans)for(var Ye=0;Ye<Me.markedSpans.length;++Ye){var rt=Me.markedSpans[Ye].marker;rt.readOnly&&(!l||pt(l,rt)==-1)&&(l||(l=[])).push(rt)}}),!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),H=0;H<f.length;++H){var Z=f[H];if(!(Mt(Z.to,U.from)<0||Mt(Z.from,U.to)>0)){var xe=[H,1],Ee=Mt(Z.from,U.from),Ne=Mt(Z.to,U.to);(Ee<0||!F.inclusiveLeft&&!Ee)&&xe.push({from:Z.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&xe.push({from:U.to,to:Z.to}),f.splice.apply(f,xe),H+=xe.length-3}}return f}function ws(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Il(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ss(e){return e.inclusiveLeft?-1:0}function As(e){return e.inclusiveRight?1:0}function Fl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Mt(l.from,f.from)||Ss(e)-Ss(n);if(m)return-m;var F=Mt(l.to,f.to)||As(e)-As(n);return F||n.id-e.id}function bf(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||Fl(l,f.marker)<0)&&(l=f.marker);return l}function Ga(e){return bf(e,!0)}function Vt(e){return bf(e,!1)}function wn(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||Fl(l,m.marker)<0)&&(l=m.marker)}return l}function Et(e,n,u,l,f){var m=Ct(e,n),F=Fi&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),xe=Mt(Z.from,u)||Ss(H.marker)-Ss(f),Ee=Mt(Z.to,l)||As(H.marker)-As(f);if(!(xe>=0&&Ee<=0||xe<=0&&Ee>=0)&&(xe<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Mt(Z.to,u)>=0:Mt(Z.to,u)>0)||xe>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Mt(Z.from,l)<=0:Mt(Z.from,l)<0)))return!0}}}function Qn(e){for(var n;n=Ga(e);)e=n.find(-1,!0).line;return e}function kl(e){for(var n;n=Vt(e);)e=n.find(1,!0).line;return e}function xd(e){for(var n,u;n=Vt(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Es(e,n){var u=Ct(e,n),l=Qn(u);return u==l?n:Zt(l)}function Ml(e,n){if(n>e.lastLine())return n;var u=Ct(e,n),l;if(!ki(e,u))return n;for(;l=Vt(u);)u=l.find(1,!0).line;return Zt(u)+1}function ki(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&&ba(e,n,l))return!0}}}function ba(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return ba(e,l.line,za(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)&&ba(e,n,f))return!0}function Zn(e){e=Qn(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 $a(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=Ga(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Vt(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 Do(e){var n=e.display,u=e.doc;n.maxLine=Ct(u,u.first),n.maxLineLength=$a(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=$a(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var li=function(e,n,u){this.text=e,Il(this,n),this.height=u?u(this):1};li.prototype.lineNo=function(){return Zt(this)},He(li);function wf(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),ws(e),Il(e,u);var f=l?l(e):1;f!=e.height&&bn(e,f)}function Sf(e){e.parent=null,ws(e)}var Rl={},Ll={};function Dl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Ll:Rl;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Nl(e,n){var u=de("span",null,null,g?"padding-right: .1px":null),l={pre:de("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Af,Bn(e.display.measure)&&(F=T(m,e.doc.direction))&&(l.addToken=hn(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(m);Ya(m,l,qt(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=De(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=De(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ji(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 H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ce(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=De(l.pre.className,l.textClass||"")),l}function Bl(e){var n=ge("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Af(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?Ka(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,xe;if(!H.test(n))e.col+=n.length,xe=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,xe),b&&A<9&&(Z=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ee=0;;){H.lastIndex=Ee;var Ne=H.exec(n),Me=Ne?Ne.index-Ee:n.length-Ee;if(Me){var Ye=document.createTextNode(U.slice(Ee,Ee+Me));b&&A<9?xe.appendChild(ge("span",[Ye])):xe.appendChild(Ye),e.map.push(e.pos,e.pos+Me,Ye),e.col+=Me,e.pos+=Me}if(!Ne)break;Ee+=Me+1;var rt=void 0;if(Ne[0]==" "){var st=e.cm.options.tabSize,ct=st-e.col%st;rt=xe.appendChild(ge("span",Lt(ct),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=ct}else Ne[0]=="\r"||Ne[0]==`
|
|
22
|
+
`?(rt=xe.appendChild(ge("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rt.setAttribute("cm-text",Ne[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(Ne[0]),rt.setAttribute("cm-text",Ne[0]),b&&A<9?xe.appendChild(ge("span",[rt])):xe.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var vt=u||"";l&&(vt+=l),f&&(vt+=f);var dt=ge("span",[xe],vt,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(xe)}}function Ka(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 hn(e,n){return function(u,l,f,m,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,xe=Z+l.length;;){for(var Ee=void 0,Ne=0;Ne<n.length&&(Ee=n[Ne],!(Ee.to>Z&&Ee.from<=Z));Ne++);if(Ee.to>=xe)return e(u,l,f,m,F,U,H);e(u,l.slice(0,Ee.to-Z),f,m,null,U,H),m=null,l=l.slice(Ee.to-Z),Z=Ee.to}}}function Ef(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 Ya(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]),Dl(u[F+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,xe="",Ee,Ne,Me=0,Ye,rt,st,ct,vt;;){if(Me==H){Ye=rt=st=Ne="",vt=null,ct=null,Me=1/0;for(var dt=[],bt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],Ut=Ot.marker;if(Ut.type=="bookmark"&&Ot.from==H&&Ut.widgetNode)dt.push(Ut);else if(Ot.from<=H&&(Ot.to==null||Ot.to>H||Ut.collapsed&&Ot.to==H&&Ot.from==H)){if(Ot.to!=null&&Ot.to!=H&&Me>Ot.to&&(Me=Ot.to,rt=""),Ut.className&&(Ye+=" "+Ut.className),Ut.css&&(Ne=(Ne?Ne+";":"")+Ut.css),Ut.startStyle&&Ot.from==H&&(st+=" "+Ut.startStyle),Ut.endStyle&&Ot.to==Me&&(bt||(bt=[])).push(Ut.endStyle,Ot.to),Ut.title&&((vt||(vt={})).title=Ut.title),Ut.attributes)for(var ar in Ut.attributes)(vt||(vt={}))[ar]=Ut.attributes[ar];Ut.collapsed&&(!ct||Fl(ct.marker,Ut)<0)&&(ct=Ot)}else Ot.from>H&&Me>Ot.from&&(Me=Ot.from)}if(bt)for(var Wr=0;Wr<bt.length;Wr+=2)bt[Wr+1]==Me&&(rt+=" "+bt[Wr]);if(!ct||ct.from==H)for(var hr=0;hr<dt.length;++hr)Ef(n,0,dt[hr]);if(ct&&(ct.from||0)==H){if(Ef(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var gn=Math.min(U,Me);;){if(xe){var un=H+xe.length;if(!ct){var Ir=un>gn?xe.slice(0,gn-H):xe;n.addToken(n,Ir,Ee?Ee+Ye:Ye,st,H+Ir.length==Me?rt:"",Ne,vt)}if(un>=gn){xe=xe.slice(gn-H),H=gn;break}H=un,st=""}xe=f.slice(m,m=u[Z++]),Ee=Dl(u[Z++],n.cm.options)}}}function Ul(e,n,u){this.line=n,this.rest=xd(n),this.size=this.rest?Zt(xt(this.rest))-u+1:1,this.node=this.text=null,this.hidden=ki(e,n)}function No(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new Ul(e.doc,Ct(e.doc,m),m);f=m+F.size,l.push(F)}return l}var er=null;function jl(e){er?er.ops.push(e):e.ownsGroup=er={ops:[e],delayedCallbacks:[]}}function Cf(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 Of(e,n){var u=e.ownsGroup;if(!!u)try{Cf(u)}finally{er=null,n(u)}}var Ja=null;function Lr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;er?f=er.delayedCallbacks:Ja?f=Ja:(f=Ja=[],setTimeout(Tf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function Tf(){var e=Ja;Ja=null;for(var n=0;n<e.length;++n)e[n]()}function Vl(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?Pf(e,n):m=="gutter"?Bo(e,n,u,l):m=="class"?Xa(e,n):m=="widget"&&If(e,n,l)}n.changes=null}function Zi(e){return e.node==e.text&&(e.node=ge("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&A<8&&(e.node.style.zIndex=2)),e.node}function Wl(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=Zi(n);n.background=l.insertBefore(ge("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Cs(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Nl(e,n)}function Pf(e,n){var u=n.text.className,l=Cs(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,Xa(e,n)):u&&(n.text.className=u)}function Xa(e,n){Wl(e,n),n.line.wrapClass?Zi(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 Bo(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=Zi(n);n.gutterBackground=ge("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Zi(n),U=n.gutter=ge("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(ge("div",si(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,xe=m.hasOwnProperty(Z)&&m[Z];xe&&U.appendChild(ge("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function If(e,n,u){n.alignable&&(n.alignable=null);for(var l=oe("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Hl(e,n,u)}function bd(e,n,u,l){var f=Cs(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Xa(e,n),Bo(e,n,u,l),Hl(e,n,l),n.node}function Hl(e,n,u){if(Mi(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Mi(e,n.rest[l],n,u,!1)}function Mi(e,n,u,l,f){if(!!n.widgets)for(var m=Zi(u),F=0,U=n.widgets;F<U.length;++F){var H=U[F],Z=ge("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Ff(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),Lr(H,"redraw")}}function Ff(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 Qa(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;"),ye(n.display.measure,ge("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,n){for(var u=Bt(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 Uo(e){return e.lineSpace.offsetTop}function Os(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function zl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,ge("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function _n(e){return yt-e.display.nativeBarWidth}function Xr(e){return e.display.scroller.clientWidth-_n(e)-e.display.barWidth}function an(e){return e.display.scroller.clientHeight-_n(e)-e.display.barHeight}function Ri(e,n,u){var l=e.options.lineWrapping,f=l&&Xr(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 H=F[U],Z=F[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ts(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(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Gl(e,n){n=Qn(n);var u=Zt(n),l=e.display.externalMeasured=new Ul(e.doc,n,u);l.lineN=u;var f=l.built=Nl(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function $l(e,n,u,l){return qn(e,wa(e,n),u,l)}function Ps(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[ta(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function wa(e,n){var u=Zt(n),l=Ps(e,u);l&&!l.text?l=null:l&&l.changes&&(Vl(e,l,u,Ls(e)),e.curOp.forceUpdate=!0),l||(l=Gl(e,n));var f=Ts(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function qn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Ri(e,n.view,n.rect),n.hasHeights=!0),F=Mf(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 Kl={left:0,right:0,top:0,bottom:0};function Yl(e,n,u){for(var l,f,m,F,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,m=1,F="left"):n<H?(f=n-U,m=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(m=H-U,f=m-1,n>=H&&(F="right")),f!=null){if(l=e[Z+2],U==H&&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==H-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:H}}function kf(e,n){var u=Kl;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 Mf(e,n,u,l){var f=Yl(n.map,u,l),m=f.node,F=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&Re(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Re(n.line.text.charAt(f.coverStart+U));)++U;if(b&&A<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=kf(ue(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,H="right"}b&&A<11&&(Z=Jl(e.display.measure,Z))}else{F>0&&(H=l="right");var Ee;e.options.lineWrapping&&(Ee=m.getClientRects()).length>1?Z=Ee[l=="right"?Ee.length-1:0]:Z=m.getBoundingClientRect()}if(b&&A<9&&!F&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+Ea(e.display),top:Ne.top,bottom:Ne.bottom}:Z=Kl}for(var Me=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,rt=(Me+Ye)/2,st=n.view.measure.heights,ct=0;ct<st.length-1&&!(rt<st[ct]);ct++);var vt=ct?st[ct-1]:0,dt=st[ct],bt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:vt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=Me,bt.rbottom=Ye),bt}function Jl(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!On(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 Is(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 Xl(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Is(e.display.view[n])}function _i(e){Xl(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ql(){return B&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Fs(){return B&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ks(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Qa(e.widgets[u]));return n}function jo(e,n,u,l,f){if(!f){var m=ks(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=Zn(n);if(l=="local"?F+=Uo(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Fs());var H=U.left+(l=="window"?0:Ql());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Zl(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ql(),f-=Fs();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 Za(e,n,u,l,f){return l||(l=Ct(e.doc,n.line)),jo(e,l,$l(e,l,n.ch,f),u)}function Vn(e,n,u,l,f,m){l=l||Ct(e.doc,n.line),f||(f=wa(e,l));function F(Ye,rt){var st=qn(e,f,Ye,rt?"right":"left",m);return rt?st.left=st.right:st.right=st.left,jo(e,l,st,u)}var U=T(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return F(Z=="before"?H-1:H,Z=="before");function xe(Ye,rt,st){var ct=U[rt],vt=ct.level==1;return F(st?Ye-1:Ye,vt!=st)}var Ee=W(U,H,Z),Ne=Ie,Me=xe(H,Ee,Z=="before");return Ne!=null&&(Me.other=xe(H,Ne,Z!="before")),Me}function qi(e,n){var u=0;n=ft(e.doc,n),e.options.lineWrapping||(u=Ea(e.display)*n.ch);var l=Ct(e.doc,n.line),f=Zn(l)+Uo(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Sa(e,n,u,l,f){var m=it(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function _a(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Sa(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return Sa(l.first+l.size-1,Ct(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=Ct(l,f);;){var U=Rs(e,F,f,n,u),H=wn(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;F=Ct(l,f=Z.line)}}function Aa(e,n,u,l){l-=ks(n);var f=n.text.length,m=Ae(function(F){return qn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return qn(e,u,F).top>l},m,f),{begin:m,end:f}}function ea(e,n,u,l){u||(u=wa(e,n));var f=jo(e,n,qn(e,u,l),"line").top;return Aa(e,n,u,f)}function Ms(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Rs(e,n,u,l,f){f-=Zn(n);var m=wa(e,n),F=ks(n),U=0,H=n.text.length,Z=!0,xe=T(n,e.doc.direction);if(xe){var Ee=(e.options.lineWrapping?Lf:Rf)(e,n,u,m,xe,l,f);Z=Ee.level!=1,U=Z?Ee.from:Ee.to-1,H=Z?Ee.to:Ee.from-1}var Ne=null,Me=null,Ye=Ae(function(Pt){var Ot=qn(e,m,Pt);return Ot.top+=F,Ot.bottom+=F,Ms(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(Ne=Pt,Me=Ot),!0):!1},U,H),rt,st,ct=!1;if(Me){var vt=l-Me.left<Me.right-l,dt=vt==Z;Ye=Ne+(dt?0:1),st=dt?"after":"before",rt=vt?Me.left:Me.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,st=Ye==0?"after":Ye==n.text.length?"before":qn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var bt=Vn(e,it(u,Ye,st),"line",n,m);rt=bt.left,ct=f<bt.top?-1:f>=bt.bottom?1:0}return Ye=be(n.text,Ye,1),Sa(u,Ye,st,ct,l-rt)}function Rf(e,n,u,l,f,m,F){var U=Ae(function(Ee){var Ne=f[Ee],Me=Ne.level!=1;return Ms(Vn(e,it(u,Me?Ne.to:Ne.from,Me?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,xe=Vn(e,it(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);Ms(xe,m,F,!0)&&xe.top>F&&(H=f[U-1])}return H}function Lf(e,n,u,l,f,m,F){var U=Aa(e,n,l,F),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var xe=null,Ee=null,Ne=0;Ne<f.length;Ne++){var Me=f[Ne];if(!(Me.from>=Z||Me.to<=H)){var Ye=Me.level!=1,rt=qn(e,l,Ye?Math.min(Z,Me.to)-1:Math.max(H,Me.from)).right,st=rt<m?m-rt+1e9:rt-m;(!xe||Ee>st)&&(xe=Me,Ee=st)}}return xe||(xe=f[f.length-1]),xe.from<H&&(xe={from:H,to:xe.to,level:xe.level}),xe.to>Z&&(xe={from:xe.from,to:Z,level:xe.level}),xe}var Li;function ei(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Li==null){Li=ge("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Li.appendChild(document.createTextNode("x")),Li.appendChild(ge("br"));Li.appendChild(document.createTextNode("x"))}ye(e.measure,Li);var u=Li.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function Ea(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ge("span","xxxxxxxxxx"),u=ge("pre",[n],"CodeMirror-line-like");ye(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Ls(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:Ds(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Ds(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _l(e){var n=ei(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Ea(e.display)-3);return function(f){if(ki(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 Vo(e){var n=e.doc,u=_l(e);n.iter(function(l){var f=u(l);f!=l.height&&bn(l,f)})}function fi(e,n,u,l){var f=e.display;if(!u&&Bt(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(Ee){return null}var H=_a(e,m,F),Z;if(l&&H.xRel>0&&(Z=Ct(e.doc,H.line).text).length==H.ch){var xe=Je(Z,Z.length,e.options.tabSize)-Z.length;H=it(H.line,Math.max(0,Math.round((m-zl(e.display).left)/Ea(e.display))-xe))}return H}function ta(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 en(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&&Es(e.doc,n)<f.viewTo&&Di(e);else if(u<=f.viewFrom)Fi&&Ml(e.doc,u+l)>f.viewFrom?Di(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Di(e);else if(n<=f.viewFrom){var m=qa(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Di(e)}else if(u>=f.viewTo){var F=qa(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Di(e)}else{var U=qa(e,n,n,-1),H=qa(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(No(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Di(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function Wn(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[ta(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);pt(F,u)==-1&&F.push(u)}}}function Di(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qa(e,n,u,l){var f=ta(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,H=0;H<f;H++)U+=F[H].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(;Es(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function wd(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=No(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=No(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(ta(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(No(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,ta(e,u)))),l.viewTo=u}function ql(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 Hn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ns(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 H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(F){var xe=F(e,H);xe&&eu(e,xe,f)}else(Z||e.options.showCursorWhenSelecting)&&eu(e,H.head,f);Z||Sd(e,H,m)}}return l}function eu(e,n,u){var l=Vn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ge("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Za(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(ge("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 ci(e,n){return e.top-n.top||e.left-n.left}function Sd(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=zl(e.display),U=F.left,H=Math.max(l.sizerWidth,Xr(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function xe(dt,bt,Pt,Ot){bt<0&&(bt=0),bt=Math.round(bt),Ot=Math.round(Ot),m.appendChild(ge("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
23
|
+
top: `+bt+"px; width: "+(Pt==null?H-dt:Pt)+`px;
|
|
24
|
+
height: `+(Ot-bt)+"px"))}function Ee(dt,bt,Pt){var Ot=Ct(f,dt),Ut=Ot.text.length,ar,Wr;function hr(Ir,fn){return Za(e,it(dt,Ir),"div",Ot,fn)}function gn(Ir,fn,Hr){var Fr=ea(e,Ot,null,Ir),kr=fn=="ltr"==(Hr=="after")?"left":"right",xr=Hr=="after"?Fr.begin:Fr.end-(/\s/.test(Ot.text.charAt(Fr.end-1))?2:1);return hr(xr,kr)[kr]}var un=T(Ot,f.direction);return O(un,bt||0,Pt==null?Ut:Pt,function(Ir,fn,Hr,Fr){var kr=Hr=="ltr",xr=hr(Ir,kr?"left":"right"),cn=hr(fn-1,kr?"right":"left"),ha=bt==null&&Ir==0,Hi=Pt==null&&fn==Ut,Zr=Fr==0,$n=!un||Fr==un.length-1;if(cn.top-xr.top<=3){var Mr=(Z?ha:Hi)&&Zr,ul=(Z?Hi:ha)&&$n,Rn=Mr?U:(kr?xr:cn).left,zi=ul?H:(kr?cn:xr).right;xe(Rn,xr.top,zi-Rn,xr.bottom)}else{var _r,dn,va,fs;kr?(_r=Z&&ha&&Zr?U:xr.left,dn=Z?H:gn(Ir,Hr,"before"),va=Z?U:gn(fn,Hr,"after"),fs=Z&&Hi&&$n?H:cn.right):(_r=Z?gn(Ir,Hr,"before"):U,dn=!Z&&ha&&Zr?H:xr.right,va=!Z&&Hi&&$n?U:cn.left,fs=Z?gn(fn,Hr,"after"):H),xe(_r,xr.top,dn-_r,xr.bottom),xr.bottom<cn.top&&xe(U,xr.bottom,null,cn.top),xe(va,cn.top,fs-va,cn.bottom)}(!ar||ci(xr,ar)<0)&&(ar=xr),ci(cn,ar)<0&&(ar=cn),(!Wr||ci(xr,Wr)<0)&&(Wr=xr),ci(cn,Wr)<0&&(Wr=cn)}),{start:ar,end:Wr}}var Ne=n.from(),Me=n.to();if(Ne.line==Me.line)Ee(Ne.line,Ne.ch,Me.ch);else{var Ye=Ct(f,Ne.line),rt=Ct(f,Me.line),st=Qn(Ye)==Qn(rt),ct=Ee(Ne.line,Ne.ch,st?Ye.text.length+1:null).end,vt=Ee(Me.line,st?0:null,Me.ch).start;st&&(ct.top<vt.top-2?(xe(ct.right,ct.top,null,ct.bottom),xe(U,vt.top,vt.left,vt.bottom)):xe(ct.right,ct.top,vt.left-ct.right,ct.bottom)),ct.bottom<vt.top&&xe(U,ct.bottom,null,vt.top)}u.appendChild(m)}function Bs(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()||Ca(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Df(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Us(e))}function tu(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ca(e))},100)}function Us(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ce(e,"focus",e,n),e.state.focused=!0,Ve(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Bs(e))}function Ca(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Ce(e,"blur",e,n),e.state.focused=!1,te(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Wo(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],H=e.options.lineWrapping,Z=void 0,xe=0;if(!U.hidden){if(f+=U.line.height,b&&A<8){var Ee=U.node.offsetTop+U.node.offsetHeight;Z=Ee-u,u=Ee}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!H&&U.text.firstChild&&(xe=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var Me=U.line.height-Z;if((Me>.005||Me<-.005)&&(f<l&&(m-=Me),bn(U.line,Z),Nf(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Nf(U.rest[Ye]);if(xe>e.display.sizerWidth){var rt=Math.ceil(xe/Ea(e.display));rt>e.display.maxLineLength&&(e.display.maxLineLength=rt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function Nf(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 js(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Uo(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=jn(n,l),F=jn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<m?(m=U,F=jn(n,Zn(Ct(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=F&&(m=jn(n,Zn(Ct(n,H))-e.wrapper.clientHeight),F=H)}return{from:m,to:Math.max(F,m+1)}}function Ad(e,n){if(!Pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!z){var m=ge("div","\u200B",null,`position: absolute;
|
|
25
|
+
top: `+(n.top-u.viewOffset-Uo(e.display))+`px;
|
|
26
|
+
height: `+(n.bottom-n.top+_n(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 Bf(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?it(n.line,n.ch+1,"before"):n,n=n.ch?it(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=Vn(e,n),H=!u||u==n?U:Vn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=ru(e,f),xe=e.doc.scrollTop,Ee=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ni(e,Z.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),Z.scrollLeft!=null&&($t(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ee)>1&&(F=!0)),!F)break}return f}function Ed(e,n){var u=ru(e,n);u.scrollTop!=null&&Ni(e,u.scrollTop),u.scrollLeft!=null&&$t(e,u.scrollLeft)}function ru(e,n){var u=e.display,l=ei(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=an(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Os(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=H?0:n.top;else if(n.bottom>f+m){var xe=Math.min(n.top,(Z?U:n.bottom)-m);xe!=f&&(F.scrollTop=xe)}var Ee=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ee,Me=Xr(e)-u.gutters.offsetWidth,Ye=n.right-n.left>Me;return Ye&&(n.right=n.left+Me),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ee-(Ye?0:10)):n.right>Me+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-Me),F}function ra(e,n){n!=null&&(Ho(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function $r(e){Ho(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Sn(e,n,u){(n!=null||u!=null)&&Ho(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function ti(e,n){Ho(e),e.curOp.scrollToPos=n}function Ho(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=qi(e,n.from),l=qi(e,n.to);Vs(e,u,l,n.margin)}}function Vs(e,n,u,l){var f=ru(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});Sn(e,f.scrollLeft,f.scrollTop)}function Ni(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Go(e,{top:n}),Pn(e,n,!0),c&&Go(e),hi(e,100))}function Pn(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 $t(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,Nr(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function di(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Os(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+_n(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Bi=function(e,n,u){this.cm=u;var l=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bi.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}},Bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bi.prototype.zeroWidthHack=function(){var e=P&&!Q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Bi.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)},Bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var na=function(){};na.prototype.update=function(){return{bottom:0,right:0}},na.prototype.setScrollLeft=function(){},na.prototype.setScrollTop=function(){},na.prototype.clear=function(){};function ia(e,n){n||(n=di(e));var u=e.display.barWidth,l=e.display.barHeight;Ws(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Wo(e),Ws(e,di(e)),u=e.display.barWidth,l=e.display.barHeight}function Ws(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 Oa={native:Bi,null:na};function Hs(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Oa[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?$t(e,n):Ni(e,n)},e),e.display.scrollbars.addClass&&Ve(e.display.wrapper,e.display.scrollbars.addClass)}var zs=0;function Dt(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:++zs,markArrays:null},jl(e.curOp)}function Ui(e){var n=e.curOp;n&&Of(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;nu(u)})}function nu(e){for(var n=e.ops,u=0;u<n.length;u++)pi(n[u]);for(var l=0;l<n.length;l++)eo(n[l]);for(var f=0;f<n.length;f++)zn(n[f]);for(var m=0;m<n.length;m++)Ta(n[m]);for(var F=0;F<n.length;F++)tn(n[F])}function pi(e){var n=e.cm,u=n.display;iu(n),e.updateMaxLine&&Do(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 aa(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function eo(e){e.updatedDisplay=e.mustUpdate&&zo(e.cm,e.update)}function zn(e){var n=e.cm,u=n.display;e.updatedDisplay&&Wo(n),e.barMeasure=di(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=$l(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+_n(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Xr(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Ta(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&$t(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Le();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&ia(n,e.barMeasure),e.updatedDisplay&&on(n,e.barMeasure),e.selectionChanged&&Bs(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Df(e.cm)}function tn(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&to(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&Pn(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$t(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Bf(n,ft(l,e.scrollToPos.from),ft(l,e.scrollToPos.to),e.scrollToPos.margin);Ad(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||Ce(m[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&Ce(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Ce(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Pr(e,n){if(e.curOp)return n();Dt(e);try{return n()}finally{Ui(e)}}function Ar(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Dt(e);try{return n.apply(e,arguments)}finally{Ui(e)}}}function Dr(e){return function(){if(this.curOp)return e.apply(this,arguments);Dt(this);try{return e.apply(this,arguments)}finally{Ui(this)}}}function mr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Dt(n);try{return e.apply(this,arguments)}finally{Ui(n)}}}function hi(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,tt(Gs,e))}function Gs(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=Wa(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?Tn(n.mode,l.state):null,H=Ro(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,xe=H.classes;xe?m.styleClasses=xe:Z&&(m.styleClasses=null);for(var Ee=!F||F.length!=m.styles.length||Z!=xe&&(!Z||!xe||Z.bgClass!=xe.bgClass||Z.textClass!=xe.textClass),Ne=0;!Ee&&Ne<F.length;++Ne)Ee=F[Ne]!=m.styles[Ne];Ee&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&pn(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return hi(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Pr(e,function(){for(var m=0;m<f.length;m++)Wn(e,f[m],"text")})}}var aa=function(e,n,u){var l=e.display;this.viewport=n,this.visible=js(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Xr(e),this.force=u,this.dims=Ls(e),this.events=[]};aa.prototype.signal=function(e,n){Ge(e,n)&&this.events.push(arguments)},aa.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ce.apply(null,this.events[e])};function iu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=_n(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=_n(e)+"px",n.scrollbarsClipped=!0)}function Cd(e){if(e.hasFocus())return null;var n=Le();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 au(e){if(!(!e||!e.activeElt||e.activeElt==Le())&&(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 zo(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Di(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&&ql(e)==0)return!1;$s(e)&&(Di(e),n.dims=Ls(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=Es(e.doc,m),F=Ml(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;wd(e,m,F),u.viewOffset=Zn(Ct(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=ql(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Cd(e);return H>4&&(u.lineDiv.style.display="none"),vi(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,au(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,hi(e,400)),u.updateLineNumbers=null,!0}function to(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Xr(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Os(e.display)-an(e),u.top)}),n.visible=js(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=js(e.display,e.doc,u));if(!zo(e,n))break;Wo(e);var f=di(e);Hn(e),ia(e,f),on(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 Go(e,n){var u=new aa(e,n);if(zo(e,u)){Wo(e),to(e,u);var l=di(e);Hn(e),ia(e,l),on(e,l),u.finish()}}function vi(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var rt=Ye.nextSibling;return g&&P&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),rt}for(var H=l.view,Z=l.viewFrom,xe=0;xe<H.length;xe++){var Ee=H[xe];if(!Ee.hidden)if(!Ee.node||Ee.node.parentNode!=m){var Ne=bd(e,Ee,Z,u);m.insertBefore(Ne,F)}else{for(;F!=Ee.node;)F=U(F);var Me=f&&n!=null&&n<=Z&&Ee.lineNumber;Ee.changes&&(pt(Ee.changes,"gutter")>-1&&(Me=!1),Vl(e,Ee,Z,u)),Me&&(ne(Ee.lineNumber),Ee.lineNumber.appendChild(document.createTextNode(si(e.options,Z)))),F=Ee.node.nextSibling}Z+=Ee.size}for(;F;)F=U(F)}function ro(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Lr(e,"gutterChanged",e)}function on(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+_n(e)+"px"}function Nr(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Ds(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 H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function $s(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=si(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ge("div",[ge("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),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",ro(e.display),!0}return!1}function $o(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 Ks(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(ge("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",ro(e)}function oa(e){Ks(e.display),en(e),Nr(e)}function ou(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ge("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ge("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=de("div",null,"CodeMirror-code"),f.selectionDiv=ge("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ge("div",null,"CodeMirror-cursors"),f.measure=ge("div",null,"CodeMirror-measure"),f.lineMeasure=ge("div",null,"CodeMirror-measure"),f.lineSpace=de("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=de("div",[f.lineSpace],"CodeMirror-lines");f.mover=ge("div",[m],null,"position: relative"),f.sizer=ge("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ge("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=ge("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ge("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ge("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&A<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&L)&&(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=$o(l.gutters,l.lineNumbers),Ks(f),u.init(f)}var sa=0,ri=null;b?ri=-.53:c?ri=15:B?ri=-.7:V&&(ri=-1/3);function Ys(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 su(e){var n=Ys(e);return n.x*=ri,n.y*=ri,n}function Js(e,n){var u=Ys(n),l=u.x,f=u.y,m=ri;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&P&&g){e:for(var xe=n.target,Ee=F.view;xe!=U;xe=xe.parentNode)for(var Ne=0;Ne<Ee.length;Ne++)if(Ee[Ne].node==xe){e.display.currentWheelTarget=xe;break e}}if(l&&!c&&!N&&m!=null){f&&Z&&Ni(e,Math.max(0,U.scrollTop+f*m)),$t(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&at(n),F.wheelStartX=null;return}if(f&&m!=null){var Me=f*m,Ye=e.doc.scrollTop,rt=Ye+F.wrapper.clientHeight;Me<0?Ye=Math.max(0,Ye+Me-50):rt=Math.min(e.doc.height,rt+Me+50),Go(e,{top:Ye,bottom:rt})}sa<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,ct=U.scrollTop-F.wheelStartY,vt=ct&&F.wheelDY&&ct/F.wheelDY||st&&F.wheelDX&&st/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!vt&&(ri=(ri*sa+vt)/(sa+1),++sa)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var vn=function(e,n){this.ranges=e,this.primIndex=n};vn.prototype.primary=function(){return this.ranges[this.primIndex]},vn.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(!xa(u.anchor,l.anchor)||!xa(u.head,l.head))return!1}return!0},vn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new Wt(le(this.ranges[n].anchor),le(this.ranges[n].head));return new vn(e,this.primIndex)},vn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},vn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Mt(n,l.from())>=0&&Mt(e,l.to())<=0)return u}return-1};var Wt=function(e,n){this.anchor=e,this.head=n};Wt.prototype.from=function(){return _e(this.anchor,this.head)},Wt.prototype.to=function(){return Oe(this.anchor,this.head)},Wt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function In(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,Me){return Mt(Ne.from(),Me.from())}),u=pt(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],H=Mt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var Z=_e(U.from(),F.from()),xe=Oe(U.to(),F.to()),Ee=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new Wt(Ee?xe:Z,Ee?Z:xe))}}return new vn(n,u)}function gi(e,n){return new vn([new Wt(e,n||e)],0)}function yi(e){return e.text?it(e.from.line+e.text.length-1,xt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Xs(e,n){if(Mt(e,n.from)<0)return e;if(Mt(e,n.to)<=0)return yi(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+=yi(n).ch-n.to.ch),it(u,l)}function Ko(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new Wt(Xs(f.anchor,n),Xs(f.head,n)))}return In(e.cm,u,e.sel.primIndex)}function Qs(e,n,u){return e.line==n.line?it(u.line,e.ch-n.ch+u.ch):it(u.line+(e.line-n.line),e.ch)}function lu(e,n,u){for(var l=[],f=it(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],H=Qs(U.from,f,m),Z=Qs(yi(U),f,m);if(f=U.to,m=Z,u=="around"){var xe=e.sel.ranges[F],Ee=Mt(xe.head,xe.anchor)<0;l[F]=new Wt(Ee?Z:H,Ee?H:Z)}else l[F]=new Wt(H,H)}return new vn(l,e.sel.primIndex)}function Yo(e){e.doc.mode=Un(e.options,e.doc.modeOption),Pa(e)}function Pa(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,hi(e,100),e.state.modeGen++,e.curOp&&en(e)}function no(e,n){return n.from.ch==0&&n.to.ch==0&&xt(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function uu(e,n,u,l){function f(vt){return u?u[vt]:null}function m(vt,dt,bt){wf(vt,dt,bt,l),Lr(vt,"change",vt,n)}function F(vt,dt){for(var bt=[],Pt=vt;Pt<dt;++Pt)bt.push(new li(Z[Pt],f(Pt),l));return bt}var U=n.from,H=n.to,Z=n.text,xe=Ct(e,U.line),Ee=Ct(e,H.line),Ne=xt(Z),Me=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(no(e,n)){var rt=F(0,Z.length-1);m(Ee,Ee.text,Me),Ye&&e.remove(U.line,Ye),rt.length&&e.insert(U.line,rt)}else if(xe==Ee)if(Z.length==1)m(xe,xe.text.slice(0,U.ch)+Ne+xe.text.slice(H.ch),Me);else{var st=F(1,Z.length-1);st.push(new li(Ne+xe.text.slice(H.ch),Me,l)),m(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,st)}else if(Z.length==1)m(xe,xe.text.slice(0,U.ch)+Z[0]+Ee.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),m(Ee,Ne+Ee.text.slice(H.ch),Me);var ct=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}Lr(e,"change",e,n)}function mi(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=F&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function fu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Vo(e),Yo(e),Ze(e),e.options.direction=n.direction,e.options.lineWrapping||Do(e),e.options.mode=n.modeOption,en(e)}function Ze(e){(e.doc.direction=="rtl"?Ve:te)(e.display.lineDiv,"CodeMirror-rtl")}function cu(e){Pr(e,function(){Ze(e),en(e)})}function la(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 io(e,n){var u={from:le(n.from),to:yi(n),text:oi(e,n.from,n.to)};return vu(e,u,n.from.line,n.to.line+1),mi(e,function(l){return vu(l,u,n.from.line,n.to.line+1)},!0),u}function Zs(e){for(;e.length;){var n=xt(e);if(n.ranges)e.pop();else break}}function du(e,n){if(n)return Zs(e.done),xt(e.done);if(e.done.length&&!xt(e.done).ranges)return xt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),xt(e.done)}function pu(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=du(f,f.lastOp==l)))U=xt(F.changes),Mt(n.from,n.to)==0&&Mt(n.from,U.to)==0?U.to=yi(n):F.changes.push(io(e,n));else{var H=xt(f.done);for((!H||!H.ranges)&&ni(e.sel,f.done),F={changes:[io(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||Ce(e,"historyAdded")}function Yt(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 hu(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||Yt(e,m,xt(f.done),n))?f.done[f.done.length-1]=n:ni(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Zs(f.undone)}function ni(e,n){var u=xt(n);u&&u.ranges&&u.equals(e)||n.push(e)}function vu(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 ua(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 Uf(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(ua(u[f]));return l}function _s(e,n){var u=Uf(e,n),l=Pl(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 H=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else F&&(u[f]=F)}return u}function Ia(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?vn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var Z=F[H],xe=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ee in Z)(xe=Ee.match(/^spans_(\d+)$/))&&pt(n,Number(xe[1]))>-1&&(xt(U)[Ee]=Z[Ee],delete Z[Ee])}}return l}function qs(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Mt(n,f)<0;m!=Mt(u,f)<0?(f=n,n=u):m!=Mt(n,u)<0&&(n=u)}return new Wt(f,n)}else return new Wt(u||n,n)}function ao(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Vr(e,new vn([qs(e.sel.primary(),n,u,f)],0),l)}function gu(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]=qs(e.sel.ranges[m],n[m],null,f);var F=In(e.cm,l,e.sel.primIndex);Vr(e,F,u)}function el(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Vr(e,In(e.cm,f,e.sel.primIndex),l)}function sn(e,n,u,l){Vr(e,gi(n,u),l)}function yu(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 Wt(ft(e,f[m].anchor),ft(e,f[m].head))},origin:u&&u.origin};return Ce(e,"beforeSelectionChange",e,l),e.cm&&Ce(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?In(e.cm,l.ranges,l.ranges.length-1):n}function mu(e,n,u){var l=e.history.done,f=xt(l);f&&f.ranges?(l[l.length-1]=n,Qr(e,n,u)):Vr(e,n,u)}function Vr(e,n,u){Qr(e,n,u),hu(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Qr(e,n,u){(Ge(e,"beforeSelectionChange")||e.cm&&Ge(e.cm,"beforeSelectionChange"))&&(n=yu(e,n,u));var l=u&&u.bias||(Mt(n.primary().head,e.sel.primary().head)<0?-1:1);xu(e,Jo(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&$r(e.cm)}function xu(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Lr(e,"cursorActivity",e))}function xi(e){xu(e,Jo(e,e.sel,null,!1))}function Jo(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],H=oo(e,F.anchor,U&&U.anchor,u,l),Z=oo(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new Wt(H,Z))}return f?In(e.cm,f,n.primIndex):n}function fa(e,n,u,l,f){var m=Ct(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,xe="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(xe?U.to>=n.ch:U.to>n.ch))){if(f&&(Ce(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ee=H.find(l<0?1:-1),Ne=void 0;if((l<0?xe:Z)&&(Ee=Kr(e,Ee,-l,Ee&&Ee.line==n.line?m:null)),Ee&&Ee.line==n.line&&(Ne=Mt(Ee,u))&&(l<0?Ne<0:Ne>0))return fa(e,Ee,n,l,f)}var Me=H.find(l<0?-1:1);return(l<0?Z:xe)&&(Me=Kr(e,Me,l,Me.line==n.line?m:null)),Me?fa(e,Me,n,l,f):null}}return n}function oo(e,n,u,l,f){var m=l||1,F=fa(e,n,u,m,f)||!f&&fa(e,n,u,m,!0)||fa(e,n,u,-m,f)||!f&&fa(e,n,u,-m,!0);return F||(e.cantEdit=!0,it(e.first,0))}function Kr(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?ft(e,it(n.line-1)):null:u>0&&n.ch==(l||Ct(e,n.line)).text.length?n.line<e.first+e.size-1?it(n.line+1,0):null:new it(n.line,n.ch+u)}function bu(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),lt)}function Xo(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=ft(e,f)),m&&(l.to=ft(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),Ce(e,"beforeChange",e,l),e.cm&&Ce(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 Fa(e,n,u){if(e.cm){if(!e.cm.curOp)return Ar(e.cm,Fa)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"))&&(n=Xo(e,n,!0),!n))){var l=Tl&&!u&&xf(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)Qo(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else Qo(e,n)}}function Qo(e,n){if(!(n.text.length==1&&n.text[0]==""&&Mt(n.from,n.to)==0)){var u=Ko(e,n);pu(e,n,u,e.cm?e.cm.curOp.id:NaN),so(e,n,u,Pl(e,n));var l=[];mi(e,function(f,m){!m&&pt(l,f.history)==-1&&(Su(f.history,n),l.push(f.history)),so(f,n,null,Pl(f,n))})}}function Zo(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,H=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(ni(m,H),u&&!m.equals(e.sel)){Vr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var xe=[];ni(F,H),H.push({changes:xe,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ee=Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"),Ne=function(rt){var st=m.changes[rt];if(st.origin=n,Ee&&!Xo(e,st,!1))return U.length=0,{};xe.push(io(e,st));var ct=rt?Ko(e,st):xt(U);so(e,st,ct,_s(e,st)),!rt&&e.cm&&e.cm.scrollIntoView({from:st.from,to:yi(st)});var vt=[];mi(e,function(dt,bt){!bt&&pt(vt,dt.history)==-1&&(Su(dt.history,st),vt.push(dt.history)),so(dt,st,null,_s(dt,st))})},Me=m.changes.length-1;Me>=0;--Me){var Ye=Ne(Me);if(Ye)return Ye.v}}}}function jf(e,n){if(n!=0&&(e.first+=n,e.sel=new vn(jt(e.sel.ranges,function(f){return new Wt(it(f.anchor.line+n,f.anchor.ch),it(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){en(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)Wn(e.cm,l,"gutter")}}function so(e,n,u,l){if(e.cm&&!e.cm.curOp)return Ar(e.cm,so)(e,n,u,l);if(n.to.line<e.first){jf(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);jf(e,f),n={from:it(e.first,0),to:it(n.to.line+f,n.to.ch),text:[xt(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:it(m,Ct(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=oi(e,n.from,n.to),u||(u=Ko(e,n)),e.cm?Vf(e.cm,n,l):uu(e,n,l),Qr(e,u,lt),e.cantEdit&&oo(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function Vf(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Qn(Ct(l,m.line))),l.iter(H,F.line+1,function(Me){if(Me==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),uu(l,n,u,_l(e)),e.options.lineWrapping||(l.iter(H,m.line+n.text.length,function(Me){var Ye=$a(Me);Ye>f.maxLineLength&&(f.maxLine=Me,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),hf(l,m.line),hi(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?en(e):m.line==F.line&&n.text.length==1&&!no(e.doc,n)?Wn(e,m.line,"text"):en(e,m.line,F.line+1,Z);var xe=Ge(e,"changes"),Ee=Ge(e,"change");if(Ee||xe){var Ne={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ee&&Lr(e,"change",e,Ne),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function ka(e,n,u,l,f){var m;l||(l=u),Mt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Fa(e,{from:u,to:l,text:n,origin:f})}function wu(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function _o(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++)wu(m.ranges[U].anchor,n,u,l),wu(m.ranges[U].head,n,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=it(Z.from.line+l,Z.from.ch),Z.to=it(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 Su(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;_o(e.done,u,l,f),_o(e.undone,u,l,f)}function lo(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ct(e,ot(e,n)):f=Zt(n),f==null?null:(l(m,f)&&e.cm&&Wn(e.cm,f,u),m)}function dr(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}dr.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,Sf(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 bi(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}bi.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 dr))){var U=[];this.collapse(U),this.children=[new dr(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 H=new dr(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.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 bi(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new bi(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 uo=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};uo.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(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=Qa(this);bn(u,Math.max(0,u.height-m)),e&&(Pr(e,function(){Wf(e,u,-m),Wn(e,l,"widget")}),Lr(e,"lineWidgetCleared",e,this,l))}},uo.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Qa(this)-n;!f||(ki(this.doc,l)||bn(l,l.height+f),u&&Pr(u,function(){u.curOp.forceUpdate=!0,Wf(u,l,f),Lr(u,"lineWidgetChanged",u,e,Zt(l))}))},He(uo);function Wf(e,n,u){Zn(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ra(e,u)}function Od(e,n,u,l){var f=new uo(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&&!ki(e,F)){var H=Zn(F)<e.scrollTop;bn(F,F.height+Qa(f)),H&&ra(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Lr(m,"lineWidgetAdded",m,f,typeof n=="number"?n:Zt(n)),f}var Hf=0,ji=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Hf};ji.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Dt(e),Ge(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=za(F.markedSpans,this);e&&!this.collapsed?Wn(e,Zt(F),"text"):e&&(U.to!=null&&(f=Zt(F)),U.from!=null&&(l=Zt(F))),F.markedSpans=gf(F.markedSpans,U),U.from==null&&this.collapsed&&!ki(this.doc,F)&&e&&bn(F,ei(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Qn(this.lines[H]),xe=$a(Z);xe>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&en(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&xi(e.doc)),e&&Lr(e,"markerCleared",e,this,l,f),n&&Ui(e),this.parent&&this.parent.clear()}},ji.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=za(m.markedSpans,this);if(F.from!=null&&(u=it(n?m:Zt(m),F.from),e==-1))return u;if(F.to!=null&&(l=it(n?m:Zt(m),F.to),e==1))return l}return u&&{from:u,to:l}},ji.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Pr(l,function(){var f=n.line,m=Zt(n.line),F=Ps(l,m);if(F&&(Is(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ki(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Qa(u)-U;H&&bn(f,f.height+H)}Lr(l,"markerChanged",l,e)})},ji.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ji.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(ji);function Ma(e,n,u,l,f){if(l&&l.shared)return zf(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Ar(e.cm,Ma)(e,n,u,l,f);var m=new ji(e,f),F=Mt(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=de("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Et(e,n.line,n,u,m)||n.line!=u.line&&Et(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");vf()}m.addToHistory&&pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ee){H&&m.collapsed&&!H.options.lineWrapping&&Qn(Ee)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&bn(Ee,0),yf(Ee,new Lo(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(Ee){ki(e,Ee)&&bn(Ee,0)}),m.clearOnEnter&&D(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(gd(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Hf,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)en(H,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var xe=n.line;xe<=u.line;xe++)Wn(H,xe,"text");m.atomic&&xi(H.doc),Lr(H,"markerAdded",H,m)}return m}var qo=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};qo.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")}},qo.prototype.find=function(e,n){return this.primary.find(e,n)},He(qo);function zf(e,n,u,l,f){l=Qe(l),l.shared=!1;var m=[Ma(e,n,u,l,f)],F=m[0],U=l.widgetNode;return mi(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(Ma(H,ft(H,n),ft(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;F=xt(m)}),new qo(m,F)}function Au(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(n){return n.parent})}function Gf(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(Mt(m,F)){var U=Ma(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function $f(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];mi(f.primary.doc,function(H){return m.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var Kf=0,ln=function(e,n,u,l,f){if(!(this instanceof ln))return new ln(e,n,u,l,f);u==null&&(u=0),bi.call(this,[new dr([new li("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=it(u,0);this.sel=gi(m),this.history=new la(null),this.id=++Kf,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),uu(this,{from:m,to:m,text:e}),Vr(this,gi(m),lt)};ln.prototype=At(bi.prototype,{constructor:ln,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:mr(function(e){var n=it(this.first,0),u=this.first+this.size-1;Fa(this,{from:n,to:it(u,Ct(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Sn(this.cm,0,0),Vr(this,gi(n),lt)}),replaceRange:function(e,n,u,l){n=ft(this,n),u=u?ft(this,u):n,ka(this,e,n,u,l)},getRange:function(e,n,u){var l=oi(this,ft(this,e),ft(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(Qi(this,e))return Ct(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ct(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:mr(function(e,n,u){sn(this,ft(this,typeof e=="number"?it(e,n||0):e),null,u)}),setSelection:mr(function(e,n,u){sn(this,ft(this,e),ft(this,n||e),u)}),extendSelection:mr(function(e,n,u){ao(this,ft(this,e),n&&ft(this,n),u)}),extendSelections:mr(function(e,n){gu(this,_t(this,e),n)}),extendSelectionsBy:mr(function(e,n){var u=jt(this.sel.ranges,e);gu(this,_t(this,u),n)}),setSelections:mr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new Wt(ft(this,e[f].anchor),ft(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Vr(this,In(this.cm,l,n),u)}}),addSelection:mr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new Wt(ft(this,e),ft(this,n||e))),Vr(this,In(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=oi(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=oi(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:mr(function(e,n,u){for(var l=[],f=this.sel,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"&&lu(this,l,n),H=l.length-1;H>=0;H--)Fa(this,l[H]);U?mu(this,U):this.cm&&$r(this.cm)}),undo:mr(function(){Zo(this,"undo")}),redo:mr(function(){Zo(this,"redo")}),undoSelection:mr(function(){Zo(this,"undo",!0)}),redoSelection:mr(function(){Zo(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 la(this.history),mi(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:Ia(this.history.done),undone:Ia(this.history.undone)}},setHistory:function(e){var n=this.history=new la(this.history);n.done=Ia(e.done.slice(0),null,!0),n.undone=Ia(e.undone.slice(0),null,!0)},setGutterMarker:mr(function(e,n,u){return lo(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&Y(f)&&(l.gutterMarkers=null),!0})}),clearGutter:mr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&lo(n,u,"gutter",function(){return u.gutterMarkers[e]=null,Y(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Qi(this,e)||(n=e,e=Ct(this,e),!e))return null}else if(n=Zt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:mr(function(e,n,u){return 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(oe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:mr(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(oe(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:mr(function(e,n,u){return Od(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return Ma(this,ft(this,e),ft(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=ft(this,e),Ma(this,e,e,u,"bookmark")},findMarksAt:function(e){e=ft(this,e);var n=[],u=Ct(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=ft(this,e),n=ft(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 H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.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}),ft(this,it(u,n))},indexFromPos:function(e){e=ft(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 ln(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 ln(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}],Gf(l,Au(this)),l},unlinkDoc:function(e){if(e instanceof fr&&(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),$f(Au(this));break}}if(e.history==this.history){var l=[e.id];mi(e,function(f){return l.push(f.id)},!0),e.history=new la(null),e.history.done=Ia(this.history.done,l),e.history.undone=Ia(this.history.undone,l)}},iterLinkedDocs:function(e){mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Yn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
+
`},setDirection:mr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&cu(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var ir=0;function Gn(e){var n=this;if(rl(n),!(Pe(n,e)||ui(n.display,e))){at(e),b&&(ir=+new Date);var u=fi(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&&Ar(n,function(){u=ft(n.doc,u);var Me={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};Fa(n.doc,Me),mu(n.doc,gi(ft(n.doc,u),ft(n.doc,yi(Me))))})()},H=function(Me,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Me.type)==-1){U();return}var rt=new FileReader;rt.onerror=function(){return U()},rt.onload=function(){var st=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(st)){U();return}m[Ye]=st,U()},rt.readAsText(Me)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ee;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ee=n.listSelections()),Qr(n.doc,gi(u,u)),Ee)for(var Ne=0;Ne<Ee.length;++Ne)ka(n.doc,"",Ee[Ne].anchor,Ee[Ne].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(Me){}}}}function Yf(e,n){if(b&&(!e.state.draggingText||+new Date-ir<100)){Kt(n);return}if(!(Pe(e,n)||ui(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!V)){var u=ge("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",N&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),N&&u.parentNode.removeChild(u)}}function tl(e,n){var u=fi(e,n);if(!!u){var l=document.createDocumentFragment();eu(e,u,l),e.display.dragCursor||(e.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function rl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ca(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 nl=!1;function Eu(){nl||(Jf(),nl=!0)}function Jf(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ca(Cu)},100))}),D(window,"blur",function(){return ca(Ca)})}function Cu(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var ii={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"},Ra=0;Ra<10;Ra++)ii[Ra+48]=ii[Ra+96]=String(Ra);for(var fo=65;fo<=90;fo++)ii[fo]=String.fromCharCode(fo);for(var Vi=1;Vi<=12;Vi++)ii[Vi+111]=ii[Vi+63235]="F"+Vi;var wi={};wi.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"},wi.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"},wi.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"},wi.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"]},wi.default=P?wi.macDefault:wi.pcDefault;function Xf(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 La(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=jt(u.split(" "),Xf),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 H=n[U];if(!H)n[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function da(e,n,u,l){n=es(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 da(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var F=da(e,n.fallthrough[m],u,l);if(F)return F}}}function Ou(e){var n=typeof e=="string"?e:ii[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function co(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 Tu(e,n){if(N&&e.keyCode==34&&e.char)return!1;var u=ii[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),co(u,e,n))}function es(e){return typeof e=="string"?wi[e]:e}function pa(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Mt(m.from,xt(l).to)<=0;){var F=l.pop();if(Mt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}Pr(e,function(){for(var U=l.length-1;U>=0;U--)ka(e.doc,"",l[U].from,l[U].to,"+delete");$r(e)})}function ts(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function rs(e,n,u){var l=ts(e,n.ch,u);return l==null?null:new it(n.line,l,u<0?"after":"before")}function ns(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=T(u,n.doc.direction);if(m){var F=f<0?xt(m):m[0],U=f<0==(F.level==1),H=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var xe=wa(n,u);Z=f<0?u.text.length-1:0;var Ee=qn(n,xe,Z).top;Z=Ae(function(Ne){return qn(n,xe,Ne).top==Ee},f<0==(F.level==1)?F.from:F.to-1,Z),H=="before"&&(Z=ts(u,Z,1))}else Z=f<0?F.to:F.from;return new it(l,Z,H)}}return new it(l,f<0?u.text.length:0,f<0?"before":"after")}function Qf(e,n,u,l){var f=T(n,e.doc.direction);if(!f)return rs(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=W(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 rs(n,u,l);var U=function(ct,vt){return ts(n,ct instanceof it?ct.ch:ct,vt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||wa(e,n),ea(e,n,H,ct)):{begin:0,end:n.text.length}},xe=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ee=F.level==1==l<0,Ne=U(u,Ee?1:-1);if(Ne!=null&&(Ee?Ne<=F.to&&Ne<=xe.end:Ne>=F.from&&Ne>=xe.begin)){var Me=Ee?"before":"after";return new it(u.line,Ne,Me)}}var Ye=function(ct,vt,dt){for(var bt=function(ar,Wr){return Wr?new it(u.line,U(ar,1),"before"):new it(u.line,ar,"after")};ct>=0&&ct<f.length;ct+=vt){var Pt=f[ct],Ot=vt>0==(Pt.level!=1),Ut=Ot?dt.begin:U(dt.end,-1);if(Pt.from<=Ut&&Ut<Pt.to||(Ut=Ot?Pt.from:U(Pt.to,-1),dt.begin<=Ut&&Ut<dt.end))return bt(Ut,Ot)}},rt=Ye(m+l,l,xe);if(rt)return rt;var st=l>0?xe.end:U(xe.begin,-1);return st!=null&&!(l>0&&st==n.text.length)&&(rt=Ye(l>0?0:f.length-1,l,Z(st)),rt)?rt:null}var po={selectAll:bu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return pa(e,function(n){if(n.empty()){var u=Ct(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:it(n.head.line+1,0)}:{from:n.head,to:it(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return pa(e,function(n){return{from:it(n.from().line,0),to:ft(e.doc,it(n.to().line+1,0))}})},delLineLeft:function(e){return pa(e,function(n){return{from:it(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return pa(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 pa(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(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return ho(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Er(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Zf(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Er(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Je(e.getLine(m.line),m.ch,l);n.push(Lt(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pr(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Ct(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new it(f.line,f.ch-1)),f.ch>0)f=new it(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),it(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ct(e.doc,f.line-1).text;F&&(f=new it(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),it(f.line-1,F.length-1),f,"+transpose"))}}u.push(new Wt(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Pr(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);$r(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ho(e,n){var u=Ct(e.doc,n),l=Qn(u);return l!=u&&(n=Zt(l)),ns(!0,e,l,n,1)}function Zf(e,n){var u=Ct(e.doc,n),l=kl(u);return l!=u&&(n=Zt(l)),ns(!0,e,u,n,-1)}function Er(e,n){var u=ho(e,n.line),l=Ct(e.doc,u.line),f=T(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 it(u.line,F?0:m,u.sticky)}return u}function is(e,n,u){if(typeof n=="string"&&(n=po[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function Td(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=da(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&da(n,e.options.extraKeys,u,e)||da(n,e.options.keyMap,u,e)}var _f=new ut;function Fn(e,n,u,l){var f=e.state.keySeq;if(f){if(Ou(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:_f.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Pu(e,f+" "+n,u,l))return!0}return Pu(e,n,u,l)}function Pu(e,n,u,l){var f=Td(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Lr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(at(u),Bs(e)),!!f}function Iu(e,n){var u=Tu(n,!0);return u?n.shiftKey&&!e.state.keySeq?Fn(e,"Shift-"+u,n,function(l){return is(e,l,!0)})||Fn(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return is(e,l)}):Fn(e,u,n,function(l){return is(e,l)}):!1}function qf(e,n,u){return Fn(e,"'"+u+"'",n,function(l){return is(e,l,!0)})}var il=null;function ec(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Le(),!Pe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=Iu(n,e);N&&(il=l?u:null,!l&&u==88&&!ma&&(P?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!P&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Pd(n)}}function Pd(e){var n=e.display.lineDiv;Ve(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),fe(document,"keyup",u),fe(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function tc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function rc(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ui(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||P&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(N&&u==il){il=null,at(e);return}if(!(N&&(!e.which||e.which<10)&&Iu(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(qf(n,e,f)||n.display.input.onKeyPress(e))}}}var Id=400,Fu=function(e,n,u){this.time=e,this.pos=n,this.button=u};Fu.prototype.compare=function(e,n,u){return this.time+Id>e&&Mt(n,this.pos)==0&&u==this.button};var as,os;function Fd(e,n){var u=+new Date;return os&&os.compare(u,e,n)?(as=os=null,"triple"):as&&as.compare(u,e,n)?(os=new Fu(u,e,n),as=null,"double"):(as=new Fu(u,e,n),os=null,"single")}function nc(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!al(n,e)){var l=fi(n,e),f=cr(e),m=l?Fd(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&ku(n,f,l,m,e))&&(f==1?l?ic(n,l,m,e):Bt(e)==u.scroller&&at(e):f==2?(l&&ao(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(K?n.display.input.onContextMenu(e):tu(n)))}}}function ku(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,Fn(e,co(m,f),f,function(F){if(typeof F=="string"&&(F=po[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=qe}finally{e.state.suppressEdits=!1}return U})}function Da(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=j?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=P?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(P?u.altKey:u.ctrlKey)),f}function ic(e,n,u,l){b?setTimeout(tt(Df,e),0):e.curOp.focus=Le();var f=Da(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&Jr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Mt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Mt(F.to(),n)>0||n.xRel<0)?ac(e,l,n,f):oc(e,l,n,f)}function ac(e,n,u,l){var f=e.display,m=!1,F=Ar(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:tu(e)),fe(f.wrapper.ownerDocument,"mouseup",F),fe(f.wrapper.ownerDocument,"mousemove",U),fe(f.scroller,"dragstart",H),fe(f.scroller,"drop",F),m||(at(Z),l.addNew||ao(e.doc,u,null,null,l.extend),g&&!V||b&&A==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},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",F),D(f.wrapper.ownerDocument,"mousemove",U),D(f.scroller,"dragstart",H),D(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function vo(e,n,u){if(u=="char")return new Wt(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new Wt(it(n.line,0),ft(e.doc,it(n.line+1,0)));var l=u(e,n);return new Wt(l.from,l.to)}function oc(e,n,u,l){b&&tu(e);var f=e.display,m=e.doc;at(n);var F,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new Wt(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new Wt(u,u)),u=fi(e,n,!0,!0),U=-1;else{var xe=vo(e,u,l.unit);l.extend?F=qs(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?U==-1?(U=Z.length,Vr(m,In(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Vr(m,In(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):el(m,U,F,gt):(U=0,Vr(m,new vn([F],0),gt),H=m.sel);var Ee=u;function Ne(dt){if(Mt(Ee,dt)!=0)if(Ee=dt,l.unit=="rectangle"){for(var bt=[],Pt=e.options.tabSize,Ot=Je(Ct(m,u.line).text,u.ch,Pt),Ut=Je(Ct(m,dt.line).text,dt.ch,Pt),ar=Math.min(Ot,Ut),Wr=Math.max(Ot,Ut),hr=Math.min(u.line,dt.line),gn=Math.min(e.lastLine(),Math.max(u.line,dt.line));hr<=gn;hr++){var un=Ct(m,hr).text,Ir=Qt(un,ar,Pt);ar==Wr?bt.push(new Wt(it(hr,Ir),it(hr,Ir))):un.length>Ir&&bt.push(new Wt(it(hr,Ir),it(hr,Qt(un,Wr,Pt))))}bt.length||bt.push(new Wt(u,u)),Vr(m,In(e,H.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var fn=F,Hr=vo(e,dt,l.unit),Fr=fn.anchor,kr;Mt(Hr.anchor,Fr)>0?(kr=Hr.head,Fr=_e(fn.from(),Hr.anchor)):(kr=Hr.anchor,Fr=Oe(fn.to(),Hr.head));var xr=H.ranges.slice(0);xr[U]=sc(e,new Wt(ft(m,Fr),kr)),Vr(m,In(e,xr,U),gt)}}var Me=f.wrapper.getBoundingClientRect(),Ye=0;function rt(dt){var bt=++Ye,Pt=fi(e,dt,!0,l.unit=="rectangle");if(!!Pt)if(Mt(Pt,Ee)!=0){e.curOp.focus=Le(),Ne(Pt);var Ot=js(f,m);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(Ar(e,function(){Ye==bt&&rt(dt)}),150)}else{var Ut=dt.clientY<Me.top?-20:dt.clientY>Me.bottom?20:0;Ut&&setTimeout(Ar(e,function(){Ye==bt&&(f.scroller.scrollTop+=Ut,rt(dt))}),50)}}function st(dt){e.state.selectingText=!1,Ye=1/0,dt&&(at(dt),f.input.focus()),fe(f.wrapper.ownerDocument,"mousemove",ct),fe(f.wrapper.ownerDocument,"mouseup",vt),m.history.lastSelOrigin=null}var ct=Ar(e,function(dt){dt.buttons===0||!cr(dt)?st(dt):rt(dt)}),vt=Ar(e,st);e.state.selectingText=vt,D(f.wrapper.ownerDocument,"mousemove",ct),D(f.wrapper.ownerDocument,"mouseup",vt)}function sc(e,n){var u=n.anchor,l=n.head,f=Ct(e.doc,u.line);if(Mt(u,l)==0&&u.sticky==l.sticky)return n;var m=T(f);if(!m)return n;var F=W(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==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 xe=W(m,l.ch,l.sticky),Ee=xe-F||(l.ch-u.ch)*(U.level==1?-1:1);xe==H-1||xe==H?Z=Ee<0:Z=Ee>0}var Ne=m[H+(Z?-1:0)],Me=Z==(Ne.level==1),Ye=Me?Ne.from:Ne.to,rt=Me?"after":"before";return u.ch==Ye&&u.sticky==rt?n:new Wt(new it(u.line,Ye,rt),l)}function Mu(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(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&at(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Ge(e,u))return wt(n);m-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=F.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var xe=jn(e.doc,m),Ee=e.display.gutterSpecs[H];return Ce(e,u,e,xe,Ee.className,n),wt(n)}}}function al(e,n){return Mu(e,n,"gutterClick",!0)}function ss(e,n){ui(e.display,n)||Si(e,n)||Pe(e,n,"contextmenu")||K||e.display.input.onContextMenu(n)}function Si(e,n){return Ge(e,"gutterContextMenu")?Mu(e,n,"gutterContextMenu",!1):!1}function lc(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_i(e)}var kn={toString:function(){return"CodeMirror.Init"}},go={},Wi={};function Ru(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,H,Z){Z!=kn&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=kn,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Yo(l)},!0),u("indentUnit",2,Yo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Pa(l),_i(l),en(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var xe=H.text.indexOf(f,Z);if(xe==-1)break;Z=xe+f.length,m.push(it(F,xe))}F++});for(var U=m.length-1;U>=0;U--)ka(l.doc,f,m[U],it(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!=kn&&l.refresh()}),u("specialCharPlaceholder",Bl,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",L?"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){lc(l),oa(l)},!0),u("keyMap","default",function(l,f,m){var F=es(f),U=m!=kn&&es(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,uc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=$o(f,l.options.lineNumbers),oa(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Ds(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return ia(l)},!0),u("scrollbarStyle","native",function(l){Hs(l),ia(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=$o(l.options.gutters,f),oa(l)},!0),u("firstLineNumber",1,oa,!0),u("lineNumberFormatter",function(l){return l},oa,!0),u("showCursorWhenSelecting",!1,Hn,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(Ca(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,Lu),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Hn,!0),u("singleCursorHeightPerLine",!0,Hn,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Pa,!0),u("addModeClass",!1,Pa,!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,Pa,!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 Lu(e,n,u){var l=u&&u!=kn;if(!n!=!l){var f=e.display.dragFunctions,m=n?D:fe;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 uc(e){e.options.lineWrapping?(Ve(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),Do(e)),Vo(e),en(e),_i(e),setTimeout(function(){return ia(e)},100)}function fr(e,n){var u=this;if(!(this instanceof fr))return new fr(e,n);this.options=n=n?Qe(n):{},Qe(go,n,!1);var l=n.value;typeof l=="string"?l=new ln(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new fr.inputStyles[n.inputStyle](this),m=this.display=new ou(e,l,f,n);m.wrapper.CodeMirror=this,lc(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hs(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},n.autofocus&&!L&&m.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Du(this),Eu(),Dt(this),this.curOp.forceUpdate=!0,fu(this,l),n.autofocus&&!L||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Us(u)},20):Ca(this);for(var F in Wi)Wi.hasOwnProperty(F)&&Wi[F](this,n[F],kn);$s(this),n.finishInit&&n.finishInit(this);for(var U=0;U<Na.length;++U)Na[U](this);Ui(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}fr.defaults=go,fr.optionHandlers=Wi;function Du(e){var n=e.display;D(n.scroller,"mousedown",Ar(e,nc)),b&&A<11?D(n.scroller,"dblclick",Ar(e,function(H){if(!Pe(e,H)){var Z=fi(e,H);if(!(!Z||al(e,H)||ui(e.display,H))){at(H);var xe=e.findWordAt(Z);ao(e.doc,xe.anchor,xe.head)}}})):D(n.scroller,"dblclick",function(H){return Pe(e,H)||at(H)}),D(n.scroller,"contextmenu",function(H){return ss(e,H)}),D(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||ss(e,H)});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(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(H,Z){if(Z.left==null)return!0;var xe=Z.left-H.left,Ee=Z.top-H.top;return xe*xe+Ee*Ee>20*20}D(n.scroller,"touchstart",function(H){if(!Pe(e,H)&&!m(H)&&!al(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(H){var Z=n.activeTouch;if(Z&&!ui(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ee;!Z.prev||F(Z,Z.prev)?Ee=new Wt(xe,xe):!Z.prev.prev||F(Z,Z.prev.prev)?Ee=e.findWordAt(xe):Ee=new Wt(it(xe.line,0),ft(e.doc,it(xe.line+1,0))),e.setSelection(Ee.anchor,Ee.head),e.focus(),at(H)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ni(e,n.scroller.scrollTop),$t(e,n.scroller.scrollLeft,!0),Ce(e,"scroll",e))}),D(n.scroller,"mousewheel",function(H){return Js(e,H)}),D(n.scroller,"DOMMouseScroll",function(H){return Js(e,H)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){Pe(e,H)||Kt(H)},over:function(H){Pe(e,H)||(tl(e,H),Kt(H))},start:function(H){return Yf(e,H)},drop:Ar(e,Gn),leave:function(H){Pe(e,H)||rl(e)}};var U=n.input.getField();D(U,"keyup",function(H){return tc.call(e,H)}),D(U,"keydown",Ar(e,ec)),D(U,"keypress",Ar(e,rc)),D(U,"focus",function(H){return Us(e,H)}),D(U,"blur",function(H){return Ca(e,H)})}var Na=[];fr.defineInitHook=function(e){return Na.push(e)};function yo(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=Wa(e,n).state:u="prev");var F=e.options.tabSize,U=Ct(f,n),H=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(U.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(m,U.text.slice(Z.length),U.text),xe==qe||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Je(Ct(f,n-1).text,null,F):xe=0:u=="add"?xe=H+e.options.indentUnit:u=="subtract"?xe=H-e.options.indentUnit:typeof u=="number"&&(xe=H+u),xe=Math.max(0,xe);var Ee="",Ne=0;if(e.options.indentWithTabs)for(var Me=Math.floor(xe/F);Me;--Me)Ne+=F,Ee+=" ";if(Ne<xe&&(Ee+=Lt(xe-Ne)),Ee!=Z)return ka(f,Ee,it(n,0),it(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var rt=f.sel.ranges[Ye];if(rt.head.line==n&&rt.head.ch<Z.length){var st=it(n,Z.length);el(f,Ye,new Wt(st,st));break}}}var Mn=null;function mo(e){Mn=e}function ls(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,H=Yn(n),Z=null;if(U&&l.ranges.length>1)if(Mn&&Mn.text.join(`
|
|
30
|
+
`)==n){if(l.ranges.length%Mn.text.length==0){Z=[];for(var xe=0;xe<Mn.text.length;xe++)Z.push(m.splitLines(Mn.text[xe]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=jt(H,function(ct){return[ct]}));for(var Ee=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var Me=l.ranges[Ne],Ye=Me.from(),rt=Me.to();Me.empty()&&(u&&u>0?Ye=it(Ye.line,Ye.ch-u):e.state.overwrite&&!U?rt=it(rt.line,Math.min(Ct(m,rt.line).text.length,rt.ch+xt(H).length)):U&&Mn&&Mn.lineWise&&Mn.text.join(`
|
|
31
|
+
`)==H.join(`
|
|
32
|
+
`)&&(Ye=rt=it(Ye.line,0)));var st={from:Ye,to:rt,text:Z?Z[Ne%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Fa(e.doc,st),Lr(e,"inputRead",e,st)}n&&!U&&Bu(e,n),$r(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Nu(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Pr(n,function(){return ls(n,u,0,null,"paste")}),!0}function Bu(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=yo(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ct(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=yo(e,f.head.line,"smart"));F&&Lr(e,"electricInput",e,f.head.line)}}}function xo(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:it(f,0),head:it(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function ol(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function sl(){var e=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=ge("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),ol(e),n}function Uu(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)&&Ar(this,n[l])(this,f,F),Ce(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"](es(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:Dr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Rt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,en(this)}),removeOverlay:Dr(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++,en(this);return}}}),indentLine:Dr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Qi(this.doc,l)&&yo(this,l,f,m)}),indentSelection:Dr(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&&(yo(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&$r(this));else{var H=U.from(),Z=U.to(),xe=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ee=xe;Ee<m;++Ee)yo(this,Ee,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&el(this.doc,F,new Wt(H,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return xs(this,l,f)},getLineTokens:function(l,f){return xs(this,it(l),f,!0)},getTokenTypeAt:function(l){l=ft(this.doc,l);var f=qt(this,Ct(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=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{H=f[Z*2+2];break}}var xe=H?H.indexOf("overlay "):-1;return xe<0?H:xe==0?null:H.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var 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 H=0;H<U[f].length;H++){var Z=F[U[f][H]];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 xe=0;xe<F._global.length;xe++){var Ee=F._global[xe];Ee.pred(U,this)&&pt(m,Ee.val)==-1&&m.push(Ee.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=ot(m,l==null?m.first+m.size-1:l),Wa(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=ft(this.doc,l):m=l?F.from():F.to(),Vn(this,m,f||"page")},charCoords:function(l,f){return Za(this,ft(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Zl(this,l,f||"page"),_a(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Zl(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Ct(this.doc,l)}else U=l;return jo(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-Zn(U):0)},defaultTextHeight:function(){return ei(this.display)},defaultCharWidth:function(){return Ea(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var H=this.display;l=Vn(this,ft(this.doc,l));var Z=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ee=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ee)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ee&&(Z=l.bottom),xe+f.offsetWidth>Ne&&(xe=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(xe=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?xe=0:U=="middle"&&(xe=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),m&&Ed(this,{left:xe,top:Z,right:xe+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Dr(ec),triggerOnKeyPress:Dr(rc),triggerOnKeyUp:tc,triggerOnMouseDown:Dr(nc),execCommand:function(l){if(po.hasOwnProperty(l))return po[l].call(null,this)},triggerElectric:Dr(function(l){Bu(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var H=ft(this.doc,l),Z=0;Z<f&&(H=ll(this.doc,H,U,m,F),!H.hitSide);++Z);return H},moveH:Dr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?ll(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Dr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):pa(this,function(U){var H=ll(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var Z=ft(this.doc,l),xe=0;xe<f;++xe){var Ee=Vn(this,Z,"div");if(H==null?H=Ee.left:Ee.left=H,Z=ju(this,Ee,U,m),Z.hitSide)break}return Z},moveV:Dr(function(l,f){var m=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(H)return l<0?xe.from():xe.to();var Ee=Vn(m,xe.head,"div");xe.goalColumn!=null&&(Ee.left=xe.goalColumn),U.push(Ee.left);var Ne=ju(m,Ee,l,f);return f=="page"&&xe==F.sel.primary()&&ra(m,Za(m,Ne,"div").top-Ee.top),Ne},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ct(f,l.line).text,F=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),xe=G(Z,H)?function(Ee){return G(Ee,H)}:/\s/.test(Z)?function(Ee){return/\s/.test(Ee)}:function(Ee){return!/\s/.test(Ee)&&!G(Ee)};F>0&&xe(m.charAt(F-1));)--F;for(;U<m.length&&xe(m.charAt(U));)++U}return new Wt(it(l.line,F),it(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Ce(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Le()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Dr(function(l,f){Sn(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-_n(this)-this.display.barHeight,width:l.scrollWidth-_n(this)-this.display.barWidth,clientHeight:an(this),clientWidth:Xr(this)}},scrollIntoView:Dr(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:it(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?ti(this,l):Vs(this,l.from,l.to,l.margin)}),setSize:Dr(function(l,f){var m=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Xl(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){Wn(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,Ce(this,"refresh",this)}),operation:function(l){return Pr(this,l)},startOperation:function(){return Dt(this)},endOperation:function(){return Ui(this)},refresh:Dr(function(){var l=this.display.cachedTextHeight;en(this),this.curOp.forceUpdate=!0,_i(this),Sn(this,this.doc.scrollLeft,this.doc.scrollTop),ro(this.display),(l==null||Math.abs(l-ei(this.display))>.5||this.options.lineWrapping)&&Vo(this),Ce(this,"refresh",this)}),swapDoc:Dr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),fu(this,l),_i(this),this.display.input.reset(),Sn(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}},He(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 ll(e,n,u,l,f){var m=n,F=u,U=Ct(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var vt=n.line+H;return vt<e.first||vt>=e.first+e.size?!1:(n=new it(vt,n.ch,n.sticky),U=Ct(e,vt))}function xe(vt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var Pt=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new it(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?dt=Qf(e.cm,U,n,u):dt=rs(U,n,u);if(dt==null)if(!vt&&Z())n=ns(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ee=null,Ne=l=="group",Me=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!xe(!Ye));Ye=!1){var rt=U.text.charAt(n.ch)||`
|
|
33
|
+
`,st=G(rt,Me)?"w":Ne&&rt==`
|
|
34
|
+
`?"n":!Ne||/\s/.test(rt)?null:"p";if(Ne&&!Ye&&!st&&(st="s"),Ee&&Ee!=st){u<0&&(u=1,xe(),n.sticky="after");break}if(st&&(Ee=st),u>0&&!xe(!Ye))break}var ct=oo(e,n,m,F,!0);return xa(m,ct)&&(ct.hitSide=!0),ct}function ju(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),H=Math.max(U-.5*ei(e.display),3);F=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var Z;Z=_a(e,m,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var tr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tr.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,ol(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}D(f,"paste",function(U){!m(U)||Pe(l,U)||Nu(U,l)||A<=11&&setTimeout(Ar(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),D(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),D(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!m(U)||Pe(l,U))){if(l.somethingSelected())mo({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=xo(l);mo({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=Mn.text.join(`
|
|
35
|
+
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var xe=sl(),Ee=xe.firstChild;l.display.lineSpace.insertBefore(xe,l.display.lineSpace.firstChild),Ee.value=Mn.text.join(`
|
|
36
|
+
`);var Ne=Le();Fe(Ee),setTimeout(function(){l.display.lineSpace.removeChild(xe),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}D(f,"copy",F),D(f,"cut",F)},tr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=Ns(this.cm,!1);return e.focus=Le()==this.div,e},tr.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tr.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=bo(n,e.anchorNode,e.anchorOffset),F=bo(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Mt(_e(m,F),l)==0&&Mt(Oe(m,F),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&Vu(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&Vu(n,f);if(!Z){var xe=U[U.length-1].measure,Ee=xe.maps?xe.maps[xe.maps.length-1]:xe.map;Z={node:Ee[Ee.length-1],offset:Ee[Ee.length-2]-Ee[Ee.length-3]}}if(!H||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),Me;try{Me=ue(H.node,H.offset,Z.offset,Z.node)}catch(Ye){}Me&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),Me.collapsed||(e.removeAllRanges(),e.addRange(Me))):(e.removeAllRanges(),e.addRange(Me)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},tr.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)},tr.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},tr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ae(this.div,n)},tr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Le()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},tr.prototype.blur=function(){this.div.blur()},tr.prototype.getField=function(){return this.div},tr.prototype.supportsTouch=function(){return!0},tr.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Pr(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)},tr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&B&&this.cm.display.gutterSpecs.length&&fc(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=bo(n,e.anchorNode,e.anchorOffset),l=bo(n,e.focusNode,e.focusOffset);u&&l&&Pr(n,function(){Vr(n.doc,gi(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},tr.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=it(l.line-1,Ct(e.doc,l.line-1).length)),f.ch==Ct(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=it(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,F,U;l.line==n.viewFrom||(m=ta(e,l.line))==0?(F=Zt(n.view[0].line),U=n.view[0].node):(F=Zt(n.view[m].line),U=n.view[m-1].node.nextSibling);var H=ta(e,f.line),Z,xe;if(H==n.view.length-1?(Z=n.viewTo-1,xe=n.lineDiv.lastChild):(Z=Zt(n.view[H+1].line)-1,xe=n.view[H+1].node.previousSibling),!U)return!1;for(var Ee=e.doc.splitLines(Wu(e,U,xe,F,Z)),Ne=oi(e.doc,it(F,0),it(Z,Ct(e.doc,Z).text.length));Ee.length>1&&Ne.length>1;)if(xt(Ee)==xt(Ne))Ee.pop(),Ne.pop(),Z--;else if(Ee[0]==Ne[0])Ee.shift(),Ne.shift(),F++;else break;for(var Me=0,Ye=0,rt=Ee[0],st=Ne[0],ct=Math.min(rt.length,st.length);Me<ct&&rt.charCodeAt(Me)==st.charCodeAt(Me);)++Me;for(var vt=xt(Ee),dt=xt(Ne),bt=Math.min(vt.length-(Ee.length==1?Me:0),dt.length-(Ne.length==1?Me:0));Ye<bt&&vt.charCodeAt(vt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ee.length==1&&Ne.length==1&&F==l.line)for(;Me&&Me>l.ch&&vt.charCodeAt(vt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)Me--,Ye++;Ee[Ee.length-1]=vt.slice(0,vt.length-Ye).replace(/^\u200b+/,""),Ee[0]=Ee[0].slice(Me).replace(/\u200b+$/,"");var Pt=it(F,Me),Ot=it(Z,Ne.length?xt(Ne).length-Ye:0);if(Ee.length>1||Ee[0]||Mt(Pt,Ot))return ka(e.doc,Ee,Pt,Ot,"+input"),!0},tr.prototype.ensurePolled=function(){this.forceCompositionEnd()},tr.prototype.reset=function(){this.forceCompositionEnd()},tr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tr.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))},tr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Pr(this.cm,function(){return en(e.cm)})},tr.prototype.setUneditable=function(e){e.contentEditable="false"},tr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ar(this.cm,ls)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},tr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},tr.prototype.onContextMenu=function(){},tr.prototype.resetPosition=function(){},tr.prototype.needsContentAttribute=!0;function Vu(e,n){var u=Ps(e,n.line);if(!u||u.hidden)return null;var l=Ct(e.doc,n.line),f=Ts(u,l,n.line),m=T(l,e.doc.direction),F="left";if(m){var U=W(m,n.ch);F=U%2?"right":"left"}var H=Yl(f.map,n.ch,F);return H.offset=H.collapse=="right"?H.end:H.start,H}function fc(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function Ba(e,n){return n&&(e.bad=!0),e}function Wu(e,n,u,l,f){var m="",F=!1,U=e.doc.lineSeparator(),H=!1;function Z(Me){return function(Ye){return Ye.id==Me}}function xe(){F&&(m+=U,H&&(m+=U),F=H=!1)}function Ee(Me){Me&&(xe(),m+=Me)}function Ne(Me){if(Me.nodeType==1){var Ye=Me.getAttribute("cm-text");if(Ye){Ee(Ye);return}var rt=Me.getAttribute("cm-marker"),st;if(rt){var ct=e.findMarks(it(l,0),it(f+1,0),Z(+rt));ct.length&&(st=ct[0].find(0))&&Ee(oi(e.doc,st.from,st.to).join(U));return}if(Me.getAttribute("contenteditable")=="false")return;var vt=/^(pre|div|p|li|table|br)$/i.test(Me.nodeName);if(!/^br$/i.test(Me.nodeName)&&Me.textContent.length==0)return;vt&&xe();for(var dt=0;dt<Me.childNodes.length;dt++)Ne(Me.childNodes[dt]);/^(pre|p)$/i.test(Me.nodeName)&&(H=!0),vt&&(F=!0)}else Me.nodeType==3&&Ee(Me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return m}function bo(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return Ba(e.clipPos(it(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 cc(m,n,u)}}function cc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ae(l,n))return Ba(it(Zt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?xt(e.rest):e.line;return Ba(it(Zt(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 H=e.measure,Z=H.maps;function xe(st,ct,vt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var bt=dt<0?H.map:Z[dt],Pt=0;Pt<bt.length;Pt+=3){var Ot=bt[Pt+2];if(Ot==st||Ot==ct){var Ut=Zt(dt<0?e.line:e.rest[dt]),ar=bt[Pt]+vt;return(vt<0||Ot!=st)&&(ar=bt[Pt+(vt?1:0)]),it(Ut,ar)}}}var Ee=xe(F,U,u);if(Ee)return Ba(Ee,f);for(var Ne=U.nextSibling,Me=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ee=xe(Ne,Ne.firstChild,0),Ee)return Ba(it(Ee.line,Ee.ch-Me),f);Me+=Ne.textContent.length}for(var Ye=U.previousSibling,rt=u;Ye;Ye=Ye.previousSibling){if(Ee=xe(Ye,Ye.firstChild,-1),Ee)return Ba(it(Ee.line,Ee.ch+rt),f);rt+=Ye.textContent.length}}var Cr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Cr.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),M&&(f.style.width="0px"),D(f,"input",function(){b&&A>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(F){Pe(l,F)||Nu(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(F){if(!Pe(l,F)){if(l.somethingSelected())mo({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=xo(l);mo({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
|
|
37
|
+
`),Fe(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",m),D(f,"copy",m),D(e.scroller,"paste",function(F){if(!(ui(e,F)||Pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),D(e.lineSpace,"selectstart",function(F){ui(e,F)||at(F)}),D(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Cr.prototype.createField=function(e){this.wrapper=sl(),this.textarea=this.wrapper.firstChild},Cr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Cr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Ns(e);if(e.options.moveInputWithCursor){var f=Vn(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},Cr.prototype.showSelection=function(e){var n=this.cm,u=n.display;ye(u.cursorDiv,e.cursors),ye(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Cr.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&&Fe(this.textarea),b&&A>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&A>=9&&(this.hasSelection=null))}},Cr.prototype.getField=function(){return this.textarea},Cr.prototype.supportsTouch=function(){return!1},Cr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!L||Le()!=this.textarea))try{this.textarea.focus()}catch(e){}},Cr.prototype.blur=function(){this.textarea.blur()},Cr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Cr.prototype.receivedFocus=function(){this.slowPoll()},Cr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Cr.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)},Cr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Cn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&A>=9&&this.hasSelection===f||P&&/[\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 Pr(n,function(){ls(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
|
+
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Cr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Cr.prototype.onKeyPress=function(){b&&A>=9&&(this.hasSelection=null),this.fastPoll()},Cr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=fi(u,e),F=l.scroller.scrollTop;if(!m||N)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&Ar(u,Vr)(u.doc,gi(m),lt);var H=f.style.cssText,Z=n.wrapper.style.cssText,xe=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
|
+
top: `+(e.clientY-xe.top-5)+"px; left: "+(e.clientX-xe.left-5)+`px;
|
|
40
|
+
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
41
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ee;g&&(Ee=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ee),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var rt=u.somethingSelected(),st="\u200B"+(rt?f.value:"");f.value="\u21DA",f.value=st,n.prevInput=rt?"":"\u200B",f.selectionStart=1,f.selectionEnd=st.length,l.selForContextMenu=u.doc.sel}}function Me(){if(n.contextMenuPending==Me&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&A<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&A<9)&&Ne();var rt=0,st=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Ar(u,bu)(u):rt++<10?l.detectingSelectAll=setTimeout(st,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(st,200)}}if(b&&A>=9&&Ne(),K){Kt(e);var Ye=function(){fe(window,"mouseup",Ye),setTimeout(Me,20)};D(window,"mouseup",Ye)}else setTimeout(Me,50)},Cr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Cr.prototype.setUneditable=function(){},Cr.prototype.needsContentAttribute=!1;function dc(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=Le();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(fe(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=fr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function us(e){e.off=fe,e.on=D,e.wheelEventPixels=su,e.Doc=ln,e.splitLines=Yn,e.countColumn=Je,e.findColumn=Qt,e.isWordChar=pe,e.Pass=qe,e.signal=Ce,e.Line=li,e.changeEnd=yi,e.scrollbarModel=Oa,e.Pos=it,e.cmpPos=Mt,e.modes=Va,e.mimeModes=mn,e.resolveMode=Xi,e.getMode=Un,e.modeExtensions=Ti,e.extendMode=Mo,e.copyState=Tn,e.startState=Pi,e.innerMode=xn,e.commands=po,e.keyMap=wi,e.keyName=Tu,e.isModifierKey=Ou,e.lookupKey=da,e.normalizeKeyMap=La,e.StringStream=yr,e.SharedTextMarker=qo,e.TextMarker=ji,e.LineWidget=uo,e.e_preventDefault=at,e.e_stopPropagation=St,e.e_stop=Kt,e.addClass=Ve,e.contains=ae,e.rmClass=te,e.keyNames=ii}Ru(fr),Uu(fr);var Hu="iter insert remove copy getEditor constructor".split(" ");for(var wo in ln.prototype)ln.prototype.hasOwnProperty(wo)&&pt(Hu,wo)<0&&(fr.prototype[wo]=function(e){return function(){return e.apply(this.doc,arguments)}}(ln.prototype[wo]));return He(ln),fr.inputStyles={textarea:Cr,contenteditable:tr},fr.defineMode=function(e){!fr.defaults.mode&&e!="null"&&(fr.defaults.mode=e),Xn.apply(this,arguments)},fr.defineMIME=Oi,fr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),fr.defineMIME("text/plain","null"),fr.defineExtension=function(e,n){fr.prototype[e]=n},fr.defineDocExtension=function(e,n){ln.prototype[e]=n},fr.fromTextArea=dc,us(fr),fr.version="5.65.0",fr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,A=x.jsonld,g=x.json||A,R=x.trackScope!==!1,B=x.typescript,N=x.wordCharacters||/[\w$\xa1-\uffff]/,V=function(){function le(wr){return{type:wr,style:"keyword"}}var Oe=le("keyword a"),_e=le("keyword b"),ot=le("keyword c"),ft=le("keyword d"),zt=le("operator"),_t={type:"atom",style:"atom"};return{if:le("if"),while:Oe,with:Oe,else:_e,do:_e,try:_e,finally:_e,return:ft,break:ft,continue:ft,new:le("new"),delete:ot,void:ot,throw:ot,debugger:le("debugger"),var:le("var"),const:le("var"),let:le("var"),function:le("function"),catch:le("catch"),for:le("for"),switch:le("switch"),case:le("case"),default:le("default"),in:zt,typeof:zt,instanceof:zt,true:_t,false:_t,null:_t,undefined:_t,NaN:_t,Infinity:_t,this:le("this"),class:le("class"),super:le("atom"),yield:ot,export:le("export"),import:le("import"),extends:ot,await:ot}}(),Q=/[+\-*&%=<>!?|~^@]/,z=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(le){for(var Oe=!1,_e,ot=!1;(_e=le.next())!=null;){if(!Oe){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Oe=!Oe&&_e=="\\"}}var X,L;function P(le,Oe,_e){return X=le,L=_e,Oe}function j(le,Oe){var _e=le.next();if(_e=='"'||_e=="'")return Oe.tokenize=J(_e),Oe.tokenize(le,Oe);if(_e=="."&&le.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return P("number","number");if(_e=="."&&le.match(".."))return P("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return P(_e);if(_e=="="&&le.eat(">"))return P("=>","operator");if(_e=="0"&&le.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return P("number","number");if(/\d/.test(_e))return le.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),P("number","number");if(_e=="/")return le.eat("*")?(Oe.tokenize=_,_(le,Oe)):le.eat("/")?(le.skipToEnd(),P("comment","comment")):xa(le,Oe,1)?(M(le),le.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),P("regexp","string-2")):(le.eat("="),P("operator","operator",le.current()));if(_e=="`")return Oe.tokenize=q,q(le,Oe);if(_e=="#"&&le.peek()=="!")return le.skipToEnd(),P("meta","meta");if(_e=="#"&&le.eatWhile(N))return P("variable","property");if(_e=="<"&&le.match("!--")||_e=="-"&&le.match("->")&&!/\S/.test(le.string.slice(0,le.start)))return le.skipToEnd(),P("comment","comment");if(Q.test(_e))return(_e!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(le.eat("=")?(_e=="!"||_e=="=")&&le.eat("="):/[<>*+\-|&?]/.test(_e)&&(le.eat(_e),_e==">"&&le.eat(_e))),_e=="?"&&le.eat(".")?P("."):P("operator","operator",le.current());if(N.test(_e)){le.eatWhile(N);var ot=le.current();if(Oe.lastType!="."){if(V.propertyIsEnumerable(ot)){var ft=V[ot];return P(ft.type,ft.style,ot)}if(ot=="async"&&le.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return P("async","keyword",ot)}return P("variable","variable",ot)}}function J(le){return function(Oe,_e){var ot=!1,ft;if(A&&Oe.peek()=="@"&&Oe.match(z))return _e.tokenize=j,P("jsonld-keyword","meta");for(;(ft=Oe.next())!=null&&!(ft==le&&!ot);)ot=!ot&&ft=="\\";return ot||(_e.tokenize=j),P("string","string")}}function _(le,Oe){for(var _e=!1,ot;ot=le.next();){if(ot=="/"&&_e){Oe.tokenize=j;break}_e=ot=="*"}return P("comment","comment")}function q(le,Oe){for(var _e=!1,ot;(ot=le.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&le.eat("{"))){Oe.tokenize=j;break}_e=!_e&&ot=="\\"}return P("quasi","string-2",le.current())}var K="([{}])";function oe(le,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var _e=le.string.indexOf("=>",le.start);if(!(_e<0)){if(B){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(le.string.slice(le.start,_e));ot&&(_e=ot.index)}for(var ft=0,zt=!1,_t=_e-1;_t>=0;--_t){var wr=le.string.charAt(_t),Sr=K.indexOf(wr);if(Sr>=0&&Sr<3){if(!ft){++_t;break}if(--ft==0){wr=="("&&(zt=!0);break}}else if(Sr>=3&&Sr<6)++ft;else if(N.test(wr))zt=!0;else if(/["'\/`]/.test(wr))for(;;--_t){if(_t==0)return;var Ro=le.string.charAt(_t-1);if(Ro==wr&&le.string.charAt(_t-2)!="\\"){_t--;break}}else if(zt&&!ft){++_t;break}}zt&&!ft&&(Oe.fatArrowAt=_t)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(le,Oe,_e,ot,ft,zt){this.indented=le,this.column=Oe,this.type=_e,this.prev=ft,this.info=zt,ot!=null&&(this.align=ot)}function ye(le,Oe){if(!R)return!1;for(var _e=le.localVars;_e;_e=_e.next)if(_e.name==Oe)return!0;for(var ot=le.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Oe)return!0}function ge(le,Oe,_e,ot,ft){var zt=le.cc;for(de.state=le,de.stream=ft,de.marked=null,de.cc=zt,de.style=Oe,le.lexical.hasOwnProperty("align")||(le.lexical.align=!0);;){var _t=zt.length?zt.pop():g?nt:mt;if(_t(_e,ot)){for(;zt.length&&zt[zt.length-1].lex;)zt.pop()();return de.marked?de.marked:_e=="variable"&&ye(le,ot)?"variable-2":Oe}}}var de={state:null,column:null,marked:null,cc:null};function ue(){for(var le=arguments.length-1;le>=0;le--)de.cc.push(arguments[le])}function ae(){return ue.apply(null,arguments),!0}function Le(le,Oe){for(var _e=Oe;_e;_e=_e.next)if(_e.name==le)return!0;return!1}function Ve(le){var Oe=de.state;if(de.marked="def",!!R){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var _e=De(le,Oe.context);if(_e!=null){Oe.context=_e;return}}else if(!Le(le,Oe.localVars)){Oe.localVars=new Qe(le,Oe.localVars);return}}x.globalVars&&!Le(le,Oe.globalVars)&&(Oe.globalVars=new Qe(le,Oe.globalVars))}}function De(le,Oe){if(Oe)if(Oe.block){var _e=De(le,Oe.prev);return _e?_e==Oe.prev?Oe:new tt(_e,Oe.vars,!0):null}else return Le(le,Oe.vars)?Oe:new tt(Oe.prev,new Qe(le,Oe.vars),!1);else return null}function Fe(le){return le=="public"||le=="private"||le=="protected"||le=="abstract"||le=="readonly"}function tt(le,Oe,_e){this.prev=le,this.vars=Oe,this.block=_e}function Qe(le,Oe){this.name=le,this.next=Oe}var Je=new Qe("this",new Qe("arguments",null));function ut(){de.state.context=new tt(de.state.context,de.state.localVars,!1),de.state.localVars=Je}function pt(){de.state.context=new tt(de.state.context,de.state.localVars,!0),de.state.localVars=null}function yt(){de.state.localVars=de.state.context.vars,de.state.context=de.state.context.prev}yt.lex=!0;function qe(le,Oe){var _e=function(){var ot=de.state,ft=ot.indented;if(ot.lexical.type=="stat")ft=ot.lexical.indented;else for(var zt=ot.lexical;zt&&zt.type==")"&&zt.align;zt=zt.prev)ft=zt.indented;ot.lexical=new ne(ft,de.stream.column(),le,null,ot.lexical,Oe)};return _e.lex=!0,_e}function lt(){var le=de.state;le.lexical.prev&&(le.lexical.type==")"&&(le.indented=le.lexical.indented),le.lexical=le.lexical.prev)}lt.lex=!0;function gt(le){function Oe(_e){return _e==le?ae():le==";"||_e=="}"||_e==")"||_e=="]"?ue():ae(Oe)}return Oe}function mt(le,Oe){return le=="var"?ae(qe("vardef",Oe),Ji,gt(";"),lt):le=="keyword a"?ae(qe("form"),xt,mt,lt):le=="keyword b"?ae(qe("form"),mt,lt):le=="keyword d"?de.stream.match(/^\s*$/,!1)?ae():ae(qe("stat"),Rt,gt(";"),lt):le=="debugger"?ae(gt(";")):le=="{"?ae(qe("}"),pt,D,lt,yt):le==";"?ae():le=="if"?(de.state.lexical.info=="else"&&de.state.cc[de.state.cc.length-1]==lt&&de.state.cc.pop()(),ae(qe("form"),xt,mt,lt,Jn)):le=="function"?ae(Xn):le=="for"?ae(qe("form"),pt,On,mt,yt,lt):le=="class"||B&&Oe=="interface"?(de.marked="keyword",ae(qe("form",le=="class"?le:Oe),Mo,lt)):le=="variable"?B&&Oe=="declare"?(de.marked="keyword",ae(mt)):B&&(Oe=="module"||Oe=="enum"||Oe=="type")&&de.stream.match(/^\s*\w/,!1)?(de.marked="keyword",Oe=="enum"?ae(si):Oe=="type"?ae(Xi,gt("operator"),Te,gt(";")):ae(qe("form"),jr,gt("{"),qe("}"),D,lt,lt)):B&&Oe=="namespace"?(de.marked="keyword",ae(qe("form"),nt,mt,lt)):B&&Oe=="abstract"?(de.marked="keyword",ae(mt)):ae(qe("stat"),Ae):le=="switch"?ae(qe("form"),xt,gt("{"),qe("}","switch"),pt,D,lt,lt,yt):le=="case"?ae(nt,gt(":")):le=="default"?ae(gt(":")):le=="catch"?ae(qe("form"),ut,Qt,mt,lt,yt):le=="export"?ae(qe("stat"),yr,lt):le=="import"?ae(qe("stat"),oi,lt):le=="async"?ae(mt):Oe=="@"?ae(nt,mt):ue(qe("stat"),nt,gt(";"),lt)}function Qt(le){if(le=="(")return ae(Un,gt(")"))}function nt(le,Oe){return jt(le,Oe,!1)}function Lt(le,Oe){return jt(le,Oe,!0)}function xt(le){return le!="("?ue():ae(qe(")"),Rt,gt(")"),lt)}function jt(le,Oe,_e){if(de.state.fatArrowAt==de.stream.start){var ot=_e?Y:G;if(le=="(")return ae(ut,qe(")"),T(Un,")"),lt,gt("=>"),ot,yt);if(le=="variable")return ue(ut,jr,gt("=>"),ot,yt)}var ft=_e?At:Gt;return te.hasOwnProperty(le)?ae(ft):le=="function"?ae(Xn,ft):le=="class"||B&&Oe=="interface"?(de.marked="keyword",ae(qe("form"),Ti,lt)):le=="keyword c"||le=="async"?ae(_e?Lt:nt):le=="("?ae(qe(")"),Rt,gt(")"),lt,ft):le=="operator"||le=="spread"?ae(_e?Lt:nt):le=="["?ae(qe("]"),Qi,lt,ft):le=="{"?se(Ie,"}",null,ft):le=="quasi"?ue(kt,ft):le=="new"?ae(we(_e)):ae()}function Rt(le){return le.match(/[;\}\)\],]/)?ue():ue(nt)}function Gt(le,Oe){return le==","?ae(Rt):At(le,Oe,!1)}function At(le,Oe,_e){var ot=_e==!1?Gt:At,ft=_e==!1?nt:Lt;if(le=="=>")return ae(ut,_e?Y:G,yt);if(le=="operator")return/\+\+|--/.test(Oe)||B&&Oe=="!"?ae(ot):B&&Oe=="<"&&de.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ae(qe(">"),T(Te,">"),lt,ot):Oe=="?"?ae(nt,gt(":"),ft):ae(ft);if(le=="quasi")return ue(kt,ot);if(le!=";"){if(le=="(")return se(Lt,")","call",ot);if(le==".")return ae(O,ot);if(le=="[")return ae(qe("]"),Rt,gt("]"),lt,ot);if(B&&Oe=="as")return de.marked="keyword",ae(Te,ot);if(le=="regexp")return de.state.lastType=de.marked="operator",de.stream.backUp(de.stream.pos-de.stream.start-1),ae(ft)}}function kt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?ae(kt):ae(Rt,pe)}function pe(le){if(le=="}")return de.marked="string-2",de.state.tokenize=q,ae(kt)}function G(le){return oe(de.stream,de.state),ue(le=="{"?mt:nt)}function Y(le){return oe(de.stream,de.state),ue(le=="{"?mt:Lt)}function we(le){return function(Oe){return Oe=="."?ae(le?be:Re):Oe=="variable"&&B?ae(cr,le?At:Gt):ue(le?Lt:nt)}}function Re(le,Oe){if(Oe=="target")return de.marked="keyword",ae(Gt)}function be(le,Oe){if(Oe=="target")return de.marked="keyword",ae(At)}function Ae(le){return le==":"?ae(lt,mt):ue(Gt,gt(";"),lt)}function O(le){if(le=="variable")return de.marked="property",ae()}function Ie(le,Oe){if(le=="async")return de.marked="property",ae(Ie);if(le=="variable"||de.style=="keyword"){if(de.marked="property",Oe=="get"||Oe=="set")return ae(W);var _e;return B&&de.state.fatArrowAt==de.stream.start&&(_e=de.stream.match(/^\s*:\s*/,!1))&&(de.state.fatArrowAt=de.stream.pos+_e[0].length),ae(C)}else{if(le=="number"||le=="string")return de.marked=A?"property":de.style+" property",ae(C);if(le=="jsonld-keyword")return ae(C);if(B&&Fe(Oe))return de.marked="keyword",ae(Ie);if(le=="[")return ae(nt,ee,gt("]"),C);if(le=="spread")return ae(Lt,C);if(Oe=="*")return de.marked="keyword",ae(Ie);if(le==":")return ue(C)}}function W(le){return le!="variable"?ue(C):(de.marked="property",ae(Xn))}function C(le){if(le==":")return ae(Lt);if(le=="(")return ue(Xn)}function T(le,Oe,_e){function ot(ft,zt){if(_e?_e.indexOf(ft)>-1:ft==","){var _t=de.state.lexical;return _t.info=="call"&&(_t.pos=(_t.pos||0)+1),ae(function(wr,Sr){return wr==Oe||Sr==Oe?ue():ue(le)},ot)}return ft==Oe||zt==Oe?ae():_e&&_e.indexOf(";")>-1?ue(le):ae(gt(Oe))}return function(ft,zt){return ft==Oe||zt==Oe?ae():ue(le,ot)}}function se(le,Oe,_e){for(var ot=3;ot<arguments.length;ot++)de.cc.push(arguments[ot]);return ae(qe(Oe,_e),T(le,Oe),lt)}function D(le){return le=="}"?ae():ue(mt,D)}function ee(le,Oe){if(B){if(le==":")return ae(Te);if(Oe=="?")return ae(ee)}}function fe(le,Oe){if(B&&(le==":"||Oe=="in"))return ae(Te)}function Ce(le){if(B&&le==":")return de.stream.match(/^\s*\w+\s+is\b/,!1)?ae(nt,Pe,Te):ae(Te)}function Pe(le,Oe){if(Oe=="is")return de.marked="keyword",ae()}function Te(le,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return de.marked="keyword",ae(Oe=="typeof"?Lt:Te);if(le=="variable"||Oe=="void")return de.marked="type",ae(Bt);if(Oe=="|"||Oe=="&")return ae(Te);if(le=="string"||le=="number"||le=="atom")return ae(Bt);if(le=="[")return ae(qe("]"),T(Te,"]",","),lt,Bt);if(le=="{")return ae(qe("}"),He,lt,Bt);if(le=="(")return ae(T(Kt,")"),Ge,Bt);if(le=="<")return ae(T(Te,">"),Te);if(le=="quasi")return ue(St,Bt)}function Ge(le){if(le=="=>")return ae(Te)}function He(le){return le.match(/[\}\)\]]/)?ae():le==","||le==";"?ae(He):ue(at,He)}function at(le,Oe){if(le=="variable"||de.style=="keyword")return de.marked="property",ae(at);if(Oe=="?"||le=="number"||le=="string")return ae(at);if(le==":")return ae(Te);if(le=="[")return ae(gt("variable"),fe,gt("]"),at);if(le=="(")return ue(Oi,at);if(!le.match(/[;\}\)\],]/))return ae()}function St(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?ae(St):ae(Te,wt)}function wt(le){if(le=="}")return de.marked="string-2",de.state.tokenize=q,ae(St)}function Kt(le,Oe){return le=="variable"&&de.stream.match(/^\s*[?:]/,!1)||Oe=="?"?ae(Kt):le==":"?ae(Te):le=="spread"?ae(Kt):ue(Te)}function Bt(le,Oe){if(Oe=="<")return ae(qe(">"),T(Te,">"),lt,Bt);if(Oe=="|"||le=="."||Oe=="&")return ae(Te);if(le=="[")return ae(Te,gt("]"),Bt);if(Oe=="extends"||Oe=="implements")return de.marked="keyword",ae(Te);if(Oe=="?")return ae(Te,gt(":"),Te)}function cr(le,Oe){if(Oe=="<")return ae(qe(">"),T(Te,">"),lt,Bt)}function Jr(){return ue(Te,En)}function En(le,Oe){if(Oe=="=")return ae(Te)}function Ji(le,Oe){return Oe=="enum"?(de.marked="keyword",ae(si)):ue(jr,ee,Cn,ma)}function jr(le,Oe){if(B&&Fe(Oe))return de.marked="keyword",ae(jr);if(le=="variable")return Ve(Oe),ae();if(le=="spread")return ae(jr);if(le=="[")return se(Yn,"]");if(le=="{")return se(Bn,"}")}function Bn(le,Oe){return le=="variable"&&!de.stream.match(/^\s*:/,!1)?(Ve(Oe),ae(Cn)):(le=="variable"&&(de.marked="property"),le=="spread"?ae(jr):le=="}"?ue():le=="["?ae(nt,gt("]"),gt(":"),Bn):ae(gt(":"),jr,Cn))}function Yn(){return ue(jr,Cn)}function Cn(le,Oe){if(Oe=="=")return ae(Lt)}function ma(le){if(le==",")return ae(Ji)}function Jn(le,Oe){if(le=="keyword b"&&Oe=="else")return ae(qe("form","else"),mt,lt)}function On(le,Oe){if(Oe=="await")return ae(On);if(le=="(")return ae(qe(")"),Va,lt)}function Va(le){return le=="var"?ae(Ji,mn):le=="variable"?ae(mn):ue(mn)}function mn(le,Oe){return le==")"?ae():le==";"?ae(mn):Oe=="in"||Oe=="of"?(de.marked="keyword",ae(nt,mn)):ue(nt,mn)}function Xn(le,Oe){if(Oe=="*")return de.marked="keyword",ae(Xn);if(le=="variable")return Ve(Oe),ae(Xn);if(le=="(")return ae(ut,qe(")"),T(Un,")"),lt,Ce,mt,yt);if(B&&Oe=="<")return ae(qe(">"),T(Jr,">"),lt,Xn)}function Oi(le,Oe){if(Oe=="*")return de.marked="keyword",ae(Oi);if(le=="variable")return Ve(Oe),ae(Oi);if(le=="(")return ae(ut,qe(")"),T(Un,")"),lt,Ce,yt);if(B&&Oe=="<")return ae(qe(">"),T(Jr,">"),lt,Oi)}function Xi(le,Oe){if(le=="keyword"||le=="variable")return de.marked="type",ae(Xi);if(Oe=="<")return ae(qe(">"),T(Jr,">"),lt)}function Un(le,Oe){return Oe=="@"&&ae(nt,Un),le=="spread"?ae(Un):B&&Fe(Oe)?(de.marked="keyword",ae(Un)):B&&le=="this"?ae(ee,Cn):ue(jr,ee,Cn)}function Ti(le,Oe){return le=="variable"?Mo(le,Oe):Tn(le,Oe)}function Mo(le,Oe){if(le=="variable")return Ve(Oe),ae(Tn)}function Tn(le,Oe){if(Oe=="<")return ae(qe(">"),T(Jr,">"),lt,Tn);if(Oe=="extends"||Oe=="implements"||B&&le==",")return Oe=="implements"&&(de.marked="keyword"),ae(B?Te:nt,Tn);if(le=="{")return ae(qe("}"),xn,lt)}function xn(le,Oe){if(le=="async"||le=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||B&&Fe(Oe))&&de.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return de.marked="keyword",ae(xn);if(le=="variable"||de.style=="keyword")return de.marked="property",ae(Pi,xn);if(le=="number"||le=="string")return ae(Pi,xn);if(le=="[")return ae(nt,ee,gt("]"),Pi,xn);if(Oe=="*")return de.marked="keyword",ae(xn);if(B&&le=="(")return ue(Oi,xn);if(le==";"||le==",")return ae(xn);if(le=="}")return ae();if(Oe=="@")return ae(nt,xn)}function Pi(le,Oe){if(Oe=="!"||Oe=="?")return ae(Pi);if(le==":")return ae(Te,Cn);if(Oe=="=")return ae(Lt);var _e=de.state.lexical.prev,ot=_e&&_e.info=="interface";return ue(ot?Oi:Xn)}function yr(le,Oe){return Oe=="*"?(de.marked="keyword",ae(jn,gt(";"))):Oe=="default"?(de.marked="keyword",ae(nt,gt(";"))):le=="{"?ae(T(Ct,"}"),jn,gt(";")):ue(mt)}function Ct(le,Oe){if(Oe=="as")return de.marked="keyword",ae(gt("variable"));if(le=="variable")return ue(Lt,Ct)}function oi(le){return le=="string"?ae():le=="("?ue(nt):le=="."?ue(Gt):ue(Ii,bn,jn)}function Ii(le,Oe){return le=="{"?se(Ii,"}"):(le=="variable"&&Ve(Oe),Oe=="*"&&(de.marked="keyword"),ae(Zt))}function bn(le){if(le==",")return ae(Ii,bn)}function Zt(le,Oe){if(Oe=="as")return de.marked="keyword",ae(Ii)}function jn(le,Oe){if(Oe=="from")return de.marked="keyword",ae(nt)}function Qi(le){return le=="]"?ae():ue(T(Lt,"]"))}function si(){return ue(qe("form"),jr,gt("{"),qe("}"),T(it,"}"),lt,lt)}function it(){return ue(jr,Cn)}function Mt(le,Oe){return le.lastType=="operator"||le.lastType==","||Q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function xa(le,Oe,_e){return Oe.tokenize==j&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(le.string.slice(0,le.pos-(_e||0)))}return{startState:function(le){var Oe={tokenize:j,lastType:"sof",cc:[],lexical:new ne((le||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new tt(null,null,!1),indented:le||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(le,Oe){if(le.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=le.indentation(),oe(le,Oe)),Oe.tokenize!=_&&le.eatSpace())return null;var _e=Oe.tokenize(le,Oe);return X=="comment"?_e:(Oe.lastType=X=="operator"&&(L=="++"||L=="--")?"incdec":X,ge(Oe,_e,X,L,le))},indent:function(le,Oe){if(le.tokenize==_||le.tokenize==q)return c.Pass;if(le.tokenize!=j)return 0;var _e=Oe&&Oe.charAt(0),ot=le.lexical,ft;if(!/^\s*else\b/.test(Oe))for(var zt=le.cc.length-1;zt>=0;--zt){var _t=le.cc[zt];if(_t==lt)ot=ot.prev;else if(_t!=Jn&&_t!=yt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(ft=le.cc[le.cc.length-1])&&(ft==Gt||ft==At)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var wr=ot.type,Sr=_e==wr;return wr=="vardef"?ot.indented+(le.lastType=="operator"||le.lastType==","?ot.info.length+1:0):wr=="form"&&_e=="{"?ot.indented:wr=="form"?ot.indented+d:wr=="stat"?ot.indented+(Mt(le,Oe)?b||d:0):ot.info=="switch"&&!Sr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):ot.align?ot.column+(Sr?0:1):ot.indented+(Sr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:A,jsonMode:g,expressionAllowed:xa,skipExpression:function(le){ge(le,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
42
|
+
* cookie
|
|
43
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
44
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
45
|
+
* MIT Licensed
|
|
46
|
+
*/I.parse=d,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,R){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var B={},N=R||{},V=g.split(v),Q=N.decode||a,z=0;z<V.length;z++){var M=V[z],X=M.indexOf("=");if(!(X<0)){var L=M.substr(0,X).trim(),P=M.substr(++X,M.length).trim();P[0]=='"'&&(P=P.slice(1,-1)),B[L]==null&&(B[L]=A(P,Q))}}return B}function b(g,R,B){var N=B||{},V=N.encode||c;if(typeof V!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var Q=V(R);if(Q&&!x.test(Q))throw new TypeError("argument val is invalid");var z=g+"="+Q;if(N.maxAge!=null){var M=N.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");z+="; Max-Age="+Math.floor(M)}if(N.domain){if(!x.test(N.domain))throw new TypeError("option domain is invalid");z+="; Domain="+N.domain}if(N.path){if(!x.test(N.path))throw new TypeError("option path is invalid");z+="; Path="+N.path}if(N.expires){if(typeof N.expires.toUTCString!="function")throw new TypeError("option expires is invalid");z+="; Expires="+N.expires.toUTCString()}if(N.httpOnly&&(z+="; HttpOnly"),N.secure&&(z+="; Secure"),N.sameSite){var X=typeof N.sameSite=="string"?N.sameSite.toLowerCase():N.sameSite;switch(X){case!0:z+="; SameSite=Strict";break;case"lax":z+="; SameSite=Lax";break;case"strict":z+="; SameSite=Strict";break;case"none":z+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return z}function A(g,R){try{return R(g)}catch(B){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,a)=>{var c=a(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,a)=>{var c=a(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var A=b.includes;return b===x||b instanceof Array&&A===x.includes?c:typeof b=="string"||b===d||b instanceof String&&A===d.includes?v:A}},34570:(h,I,a)=>{var c=a(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,a)=>{var c=a(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,a)=>{var c=a(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,a)=>{var c=a(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,A,g){return v.defineProperty(b,A,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(4808),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),A=a(55449),g=a(22902);h.exports=function(B){var N=v(B),V=typeof this=="function"?this:Array,Q=arguments.length,z=Q>1?arguments[1]:void 0,M=z!==void 0,X=g(N),L=0,P,j,J,_,q,K;if(M&&(z=c(z,Q>2?arguments[2]:void 0,2)),X!=null&&!(V==Array&&d(X)))for(_=X.call(N),q=_.next,j=new V;!(J=q.call(_)).done;L++)K=M?x(_,z,[J.value,L],!0):J.value,A(j,L,K);else for(P=b(N.length),j=new V(P);P>L;L++)K=M?z(N[L],L):N[L],A(j,L,K);return j.length=L,j}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(A,g,R){var B=c(A),N=v(B.length),V=x(R,N),Q;if(b&&g!=g){for(;N>V;)if(Q=B[V++],Q!=Q)return!0}else for(;N>V;V++)if((b||V in B)&&B[V]===g)return b||V||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),A=[].push,g=function(R){var B=R==1,N=R==2,V=R==3,Q=R==4,z=R==6,M=R==7,X=R==5||z;return function(L,P,j,J){for(var _=x(L),q=v(_),K=c(P,j,3),oe=d(q.length),te=0,ne=J||b,ye=B?ne(L,oe):N||M?ne(L,0):void 0,ge,de;oe>te;te++)if((X||te in q)&&(ge=q[te],de=K(ge,te,_),R))if(B)ye[te]=de;else if(de)switch(R){case 3:return!0;case 5:return ge;case 6:return te;case 2:A.call(ye,ge)}else switch(R){case 4:return!1;case 7:A.call(ye,ge)}return z?-1:V||Q?Q:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var A=[],g=A.constructor={};return g[d]=function(){return{foo:1}},A[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,A){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(A===0?0:A)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,A){try{return A?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(A){}h.exports=function(A,g){if(!g&&!x)return!1;var R=!1;try{var B={};B[v]=function(){return{next:function(){return{done:R=!0}}}},A(B)}catch(N){}return R}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,R){try{return g[R]}catch(B){}};h.exports=c?v:function(g){var R,B,N;return g===void 0?"Undefined":g===null?"Null":typeof(B=A(R=Object(g),d))=="string"?B:b?v(R):(N=v(R))=="Object"&&typeof R.callee=="function"?"Arguments":N}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),A=a(93091),g=a(3610),R=a(47457),B=a(45402),N=B.set,V=B.getterFor,Q=g.find,z=g.findIndex,M=0,X=function(j){return j.frozen||(j.frozen=new L)},L=function(){this.entries=[]},P=function(j,J){return Q(j.entries,function(_){return _[0]===J})};L.prototype={get:function(j){var J=P(this,j);if(J)return J[1]},has:function(j){return!!P(this,j)},set:function(j,J){var _=P(this,j);_?_[1]=J:this.entries.push([j,J])},delete:function(j){var J=z(this.entries,function(_){return _[0]===j});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(j,J,_,q){var K=j(function(ne,ye){b(ne,K,J),N(ne,{type:J,id:M++,frozen:void 0}),ye!=null&&A(ye,ne[q],{that:ne,AS_ENTRIES:_})}),oe=V(J),te=function(ne,ye,ge){var de=oe(ne),ue=v(x(ye),!0);return ue===!0?X(de).set(ye,ge):ue[de.id]=ge,ne};return c(K.prototype,{delete:function(ne){var ye=oe(this);if(!d(ne))return!1;var ge=v(ne);return ge===!0?X(ye).delete(ne):ge&&R(ge,ye.id)&&delete ge[ye.id]},has:function(ye){var ge=oe(this);if(!d(ye))return!1;var de=v(ye);return de===!0?X(ge).has(ye):de&&R(de,ge.id)}}),c(K.prototype,_?{get:function(ye){var ge=oe(this);if(d(ye)){var de=v(ye);return de===!0?X(ge).get(ye):de?de[ge.id]:void 0}},set:function(ye,ge){return te(this,ye,ge)}}:{add:function(ye){return te(this,ye,!0)}}),K}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),A=a(93091),g=a(5743),R=a(10941),B=a(90904),N=a(65988).f,V=a(3610).forEach,Q=a(55746),z=a(45402),M=z.set,X=z.getterFor;h.exports=function(L,P,j){var J=L.indexOf("Map")!==-1,_=L.indexOf("Weak")!==-1,q=J?"set":"add",K=v[L],oe=K&&K.prototype,te={},ne;if(!Q||typeof K!="function"||!(_||oe.forEach&&!d(function(){new K().entries().next()})))ne=j.getConstructor(P,L,J,q),x.REQUIRED=!0;else{ne=P(function(ge,de){M(g(ge,ne,L),{type:L,collection:new K}),de!=null&&A(de,ge[q],{that:ge,AS_ENTRIES:J})});var ye=X(L);V(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ge){var de=ge=="add"||ge=="set";ge in oe&&!(_&&ge=="clear")&&b(ne.prototype,ge,function(ue,ae){var Le=ye(this).collection;if(!de&&_&&!R(ue))return ge=="get"?void 0:!1;var Ve=Le[ge](ue===0?0:ue,ae);return de?this:Ve})}),_||N(ne.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return B(ne,L,!1,!0),te[L]=ne,c({global:!0,forced:!0},te),_||j.setStrong(ne,L,J),ne}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(A){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),A=function(){return this};h.exports=function(g,R,B){var N=R+" Iterator";return g.prototype=v(c,{next:x(1,B)}),d(g,N,!1,!0),b[N]=A,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,A){return v.f(d,b,x(1,A))}:function(d,b,A){return d[b]=A,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,A){var g=c(b);g in d?v.f(d,g,x(0,A)):d[g]=A}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),A=a(32029),g=a(99754),R=a(99813),B=a(82529),N=a(12077),V=a(35143),Q=V.IteratorPrototype,z=V.BUGGY_SAFARI_ITERATORS,M=R("iterator"),X="keys",L="values",P="entries",j=function(){return this};h.exports=function(J,_,q,K,oe,te,ne){v(q,_,K);var ye=function(Qe){if(Qe===oe&&Le)return Le;if(!z&&Qe in ue)return ue[Qe];switch(Qe){case X:return function(){return new q(this,Qe)};case L:return function(){return new q(this,Qe)};case P:return function(){return new q(this,Qe)}}return function(){return new q(this)}},ge=_+" Iterator",de=!1,ue=J.prototype,ae=ue[M]||ue["@@iterator"]||oe&&ue[oe],Le=!z&&ae||ye(oe),Ve=_=="Array"&&ue.entries||ae,De,Fe,tt;if(Ve&&(De=x(Ve.call(new J)),Q!==Object.prototype&&De.next&&(!B&&x(De)!==Q&&(d?d(De,Q):typeof De[M]!="function"&&A(De,M,j)),b(De,ge,!0,!0),B&&(N[ge]=j))),oe==L&&ae&&ae.name!==L&&(de=!0,Le=function(){return ae.call(this)}),(!B||ne)&&ue[M]!==Le&&A(ue,M,Le),N[_]=Le,oe)if(Fe={values:ye(L),keys:te?Le:ye(X),entries:ye(P)},ne)for(tt in Fe)(z||de||!(tt in ue))&&g(ue,tt,Fe[tt]);else c({target:_,proto:!0,forced:z||de},Fe);return Fe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var A=c.Symbol||(c.Symbol={});v(A,b)||d(A,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,A,g;b?(A=b.split("."),g=A[0]<4?1:A[0]+A[1]):v&&(A=v.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=v.match(/Chrome\/(\d+)/),A&&(g=A[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),A=a(32029),g=a(47457),R=function(B){var N=function(V,Q,z){if(this instanceof B){switch(arguments.length){case 0:return new B;case 1:return new B(V);case 2:return new B(V,Q)}return new B(V,Q,z)}return B.apply(this,arguments)};return N.prototype=B.prototype,N};h.exports=function(B,N){var V=B.target,Q=B.global,z=B.stat,M=B.proto,X=Q?c:z?c[V]:(c[V]||{}).prototype,L=Q?d:d[V]||(d[V]={}),P=L.prototype,j,J,_,q,K,oe,te,ne,ye;for(q in N)j=x(Q?q:V+(z?".":"#")+q,B.forced),J=!j&&X&&g(X,q),oe=L[q],J&&(B.noTargetGet?(ye=v(X,q),te=ye&&ye.value):te=X[q]),K=J&&te?te:N[q],!(J&&typeof oe==typeof K)&&(B.bind&&J?ne=b(K,c):B.wrap&&J?ne=R(K):M&&typeof K=="function"?ne=b(Function.call,K):ne=K,(B.sham||K&&K.sham||oe&&oe.sham)&&A(ne,"sham",!0),L[q]=ne,M&&(_=V+"Prototype",g(d,_)||A(d,_,{}),d[_][q]=K,B.real&&P&&!P[q]&&A(P,q,K)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,A){return v.call(x,b,A)};case 3:return function(b,A,g){return v.call(x,b,A,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(A,g,R){if(!(g in d)){for(var B=[],N=0;N<g;N++)B[N]="a["+N+"]";d[g]=Function("C,a","return new C("+B.join(",")+")")}return d[g](A,R)};h.exports=Function.bind||function(g){var R=c(this),B=x.call(arguments,1),N=function(){var Q=B.concat(x.call(arguments));return this instanceof N?b(R,Q.length,Q):R.apply(g,Q)};return v(R.prototype)&&(N.prototype=R.prototype),N}},626:(h,I,a)=>{var c=a(54058),v=a(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),A=a(45602),g=b("meta"),R=0,B=Object.isExtensible||function(){return!0},N=function(X){d(X,g,{value:{objectID:"O"+ ++R,weakData:{}}})},V=function(X,L){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!B(X))return"F";if(!L)return"E";N(X)}return X[g].objectID},Q=function(X,L){if(!x(X,g)){if(!B(X))return!0;if(!L)return!1;N(X)}return X[g].weakData},z=function(X){return A&&M.REQUIRED&&B(X)&&!x(X,g)&&N(X),X},M=h.exports={REQUIRED:!1,fastKey:V,getWeakData:Q,onFreeze:z};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),A=a(63030),g=a(44262),R=a(27748),B="Object already initialized",N=v.WeakMap,V,Q,z,M=function(q){return z(q)?Q(q):V(q,{})},X=function(q){return function(K){var oe;if(!x(K)||(oe=Q(K)).type!==q)throw TypeError("Incompatible receiver, "+q+" required");return oe}};if(c||A.state){var L=A.state||(A.state=new N),P=L.get,j=L.has,J=L.set;V=function(q,K){if(j.call(L,q))throw new TypeError(B);return K.facade=q,J.call(L,q,K),K},Q=function(q){return P.call(L,q)||{}},z=function(q){return j.call(L,q)}}else{var _=g("state");R[_]=!0,V=function(q,K){if(b(q,_))throw new TypeError(B);return K.facade=q,d(q,_,K),K},Q=function(q){return b(q,_)?q[_]:{}},z=function(q){return b(q,_)}}h.exports={set:V,get:Q,has:z,enforce:M,getterFor:X}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(R,B){var N=b[d(R)];return N==g?!0:N==A?!1:typeof B=="function"?c(B):!!B},d=x.normalize=function(R){return String(R).replace(v,".").toLowerCase()},b=x.data={},A=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var A;return c(b)&&((A=b[d])!==void 0?!!A:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),A=a(7609),g=function(R,B){this.stopped=R,this.result=B};h.exports=function(R,B,N){var V=N&&N.that,Q=!!(N&&N.AS_ENTRIES),z=!!(N&&N.IS_ITERATOR),M=!!(N&&N.INTERRUPTED),X=d(B,V,1+Q+M),L,P,j,J,_,q,K,oe=function(ne){return L&&A(L),new g(!0,ne)},te=function(ne){return Q?(c(ne),M?X(ne[0],ne[1],oe):X(ne[0],ne[1])):M?X(ne,oe):X(ne)};if(z)L=R;else{if(P=b(R),typeof P!="function")throw TypeError("Target is not iterable");if(v(P)){for(j=0,J=x(R.length);J>j;j++)if(_=te(R[j]),_&&_ instanceof g)return _;return new g(!1)}L=P.call(R)}for(q=L.next;!(K=q.call(L)).done;){try{_=te(K.value)}catch(ne){throw A(L),ne}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),A=a(82529),g=b("iterator"),R=!1,B=function(){return this},N,V,Q;[].keys&&(Q=[].keys(),"next"in Q?(V=v(v(Q)),V!==Object.prototype&&(N=V)):R=!0);var z=N==null||c(function(){var M={};return N[g].call(M)!==M});z&&(N={}),(!A||z)&&!d(N,g)&&x(N,g,B),h.exports={IteratorPrototype:N,BUGGY_SAFARI_ITERATORS:R}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),A=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,R=c.document,B=c.process,N=c.Promise,V=v(c,"queueMicrotask"),Q=V&&V.value,z,M,X,L,P,j,J,_;Q||(z=function(){var q,K;for(A&&(q=B.domain)&&q.exit();M;){K=M.fn,M=M.next;try{K()}catch(oe){throw M?L():X=void 0,oe}}X=void 0,q&&q.enter()},!d&&!A&&!b&&g&&R?(P=!0,j=R.createTextNode(""),new g(z).observe(j,{characterData:!0}),L=function(){j.data=P=!P}):N&&N.resolve?(J=N.resolve(void 0),J.constructor=N,_=J.then,L=function(){_.call(J,z)}):A?L=function(){B.nextTick(z)}:L=function(){x.call(c,z)}),h.exports=Q||function(q){var K={fn:q,next:void 0};X&&(X.next=K),M||(M=K,L()),X=K}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(A,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=A,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),A=a(89678),g=a(37026),R=Object.assign,B=Object.defineProperty;h.exports=!R||v(function(){if(c&&R({b:1},R(B({},"a",{enumerable:!0,get:function(){B(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var N={},V={},Q=Symbol(),z="abcdefghijklmnopqrst";return N[Q]=7,z.split("").forEach(function(M){V[M]=M}),R({},N)[Q]!=7||x(R({},V)).join("")!=z})?function(V,Q){for(var z=A(V),M=arguments.length,X=1,L=d.f,P=b.f;M>X;)for(var j=g(arguments[X++]),J=L?x(j).concat(L(j)):x(j),_=J.length,q=0,K;_>q;)K=J[q++],(!c||P.call(j,K))&&(z[K]=j[K]);return z}:R},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),A=a(61333),g=a(44262),R=">",B="<",N="prototype",V="script",Q=g("IE_PROTO"),z=function(){},M=function(J){return B+V+R+J+B+"/"+V+R},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},L=function(){var J=A("iframe"),_="java"+V+":",q;return J.style.display="none",b.appendChild(J),J.src=String(_),q=J.contentWindow.document,q.open(),q.write(M("document.F=Object")),q.close(),q.F},P,j=function(){try{P=document.domain&&new ActiveXObject("htmlfile")}catch(_){}j=P?X(P):L();for(var J=x.length;J--;)delete j[N][x[J]];return j()};d[Q]=!0,h.exports=Object.create||function(_,q){var K;return _!==null?(z[N]=c(_),K=new z,z[N]=null,K[Q]=_):K=j(),q===void 0?K:v(K,q)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var R=d(g),B=R.length,N=0,V;B>N;)v.f(A,V=R[N++],g[V]);return A}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,R,B){if(x(g),R=d(R,!0),x(B),v)try{return b(g,R,B)}catch(N){}if("get"in B||"set"in B)throw TypeError("Accessors not supported");return"value"in B&&(g[R]=B.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),A=a(47457),g=a(2840),R=Object.getOwnPropertyDescriptor;I.f=c?R:function(N,V){if(N=d(N),V=b(V,!0),g)try{return R(N,V)}catch(Q){}if(A(N,V))return x(!v.f.call(N,V),N[V])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(A){try{return v(A)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,a)=>{var c=a(55629),v=a(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),A=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?A:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,A){var g=v(b),R=0,B=[],N;for(N in g)!c(d,N)&&c(g,N)&&B.push(N);for(;A.length>R;)c(g,N=A[R++])&&(~x(B,N)||B.push(N));return B}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(A){}return function(g,R){return c(g),v(R),x?b.call(g,R):g.__proto__=R,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(A){return function(g){for(var R=x(g),B=v(R),N=B.length,V=0,Q=[],z;N>V;)z=B[V++],(!c||d.call(R,z))&&Q.push(A?[z,R[z]]:R[z]);return Q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(A){var g=v.f(d(A)),R=x.f;return R?g.concat(R(A)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var A=x.f(d),g=A.resolve;return g(b),A.promise}},87524:(h,I,a)=>{var c=a(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,a)=>{var c=a(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(A){var g=c(A),R=v.f;d&&g&&!g[b]&&R(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),A=a(99813),g=A("toStringTag");h.exports=function(R,B,N,V){if(R){var Q=N?R:R.prototype;d(Q,g)||v(Q,g,{configurable:!0,value:B}),V&&!c&&x(Q,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,A){var g=c(b).constructor,R;return g===void 0||(R=c(g)[d])==null?A:v(R)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,A){var g=String(v(b)),R=c(A),B=g.length,N,V;return R<0||R>=B?d?"":void 0:(N=g.charCodeAt(R),N<55296||N>56319||R+1===B||(V=g.charCodeAt(R+1))<56320||V>57343?d?g.charAt(R):N:d?g.slice(R,R+2):(N-55296<<10)+(V-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),A=a(22749),g=a(6049),R=c.location,B=c.setImmediate,N=c.clearImmediate,V=c.process,Q=c.MessageChannel,z=c.Dispatch,M=0,X={},L="onreadystatechange",P,j,J,_=function(te){if(X.hasOwnProperty(te)){var ne=X[te];delete X[te],ne()}},q=function(te){return function(){_(te)}},K=function(te){_(te.data)},oe=function(te){c.postMessage(te+"",R.protocol+"//"+R.host)};(!B||!N)&&(B=function(ne){for(var ye=[],ge=1;arguments.length>ge;)ye.push(arguments[ge++]);return X[++M]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ye)},P(M),M},N=function(ne){delete X[ne]},g?P=function(te){V.nextTick(q(te))}:z&&z.now?P=function(te){z.now(q(te))}:Q&&!A?(j=new Q,J=j.port2,j.port1.onmessage=K,P=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&R&&R.protocol!=="file:"&&!v(oe)?(P=oe,c.addEventListener("message",K,!1)):L in b("script")?P=function(te){d.appendChild(b("script"))[L]=function(){d.removeChild(this),_(te)}}:P=function(te){setTimeout(q(te),0)}),h.exports={set:B,clear:N}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var A=c(d);return A<0?v(A+b,0):x(A,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),A=a(32302),g=v("wks"),R=c.Symbol,B=A?R:R&&R.withoutSetter||d;h.exports=function(N){return(!x(g,N)||!(b||typeof g[N]=="string"))&&(b&&x(R,N)?g[N]=R[N]:g[N]=B("Symbol."+N)),g[N]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),A=a(31887),g=a(93091),R=function(N,V){var Q=this;if(!(Q instanceof R))return new R(N,V);x&&(Q=x(new Error(void 0),v(Q))),V!==void 0&&b(Q,"message",String(V));var z=[];return g(N,z.push,{that:z}),b(Q,"errors",z),Q};R.prototype=d(Error.prototype,{constructor:A(5,R),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:R})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),A=a(43057),g=a(55449),R=a(64692),B=a(50568),N=a(99813),V=a(53385),Q=N("isConcatSpreadable"),z=9007199254740991,M="Maximum allowed index exceeded",X=V>=51||!v(function(){var J=[];return J[Q]=!1,J.concat()[0]!==J}),L=B("concat"),P=function(J){if(!d(J))return!1;var _=J[Q];return _!==void 0?!!_:x(J)},j=!X||!L;c({target:"Array",proto:!0,forced:j},{concat:function(_){var q=b(this),K=R(q,0),oe=0,te,ne,ye,ge,de;for(te=-1,ye=arguments.length;te<ye;te++)if(de=te===-1?q:arguments[te],P(de)){if(ge=A(de.length),oe+ge>z)throw TypeError(M);for(ne=0;ne<ge;ne++,oe++)ne in de&&g(K,oe,de[ne])}else{if(oe>=z)throw TypeError(M);g(K,oe++,de)}return K.length=oe,K}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,A=x("indexOf");c({target:"Array",proto:!0,forced:b||!A},{indexOf:function(R){return b?d.apply(this,arguments)||0:v(this,R,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),A="Array Iterator",g=d.set,R=d.getterFor(A);h.exports=b(Array,"Array",function(B,N){g(this,{type:A,target:c(B),index:0,kind:N})},function(){var B=R(this),N=B.target,V=B.kind,Q=B.index++;return!N||Q>=N.length?(B.target=void 0,{value:void 0,done:!0}):V=="keys"?{value:Q,done:!1}:V=="values"?{value:N[Q],done:!1}:{value:[Q,N[Q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),A=a(74529),g=a(55449),R=a(99813),B=a(50568),N=B("slice"),V=R("species"),Q=[].slice,z=Math.max;c({target:"Array",proto:!0,forced:!N},{slice:function(X,L){var P=A(this),j=b(P.length),J=d(X,j),_=d(L===void 0?j:L,j),q,K,oe;if(x(P)&&(q=P.constructor,typeof q=="function"&&(q===Array||x(q.prototype))?q=void 0:v(q)&&(q=q[V],q===null&&(q=void 0)),q===Array||q===void 0))return Q.call(P,J,_);for(K=new(q===void 0?Array:q)(z(_-J,0)),oe=0;J<_;J++,oe++)J in P&&g(K,oe,P[J]);return K.length=oe,K}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),A=a(64692),g=a(55449),R=a(50568),B=R("splice"),N=Math.max,V=Math.min,Q=9007199254740991,z="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!B},{splice:function(X,L){var P=b(this),j=d(P.length),J=v(X,j),_=arguments.length,q,K,oe,te,ne,ye;if(_===0?q=K=0:_===1?(q=0,K=j-J):(q=_-2,K=V(N(x(L),0),j-J)),j+q-K>Q)throw TypeError(z);for(oe=A(P,K),te=0;te<K;te++)ne=J+te,ne in P&&g(oe,te,P[ne]);if(oe.length=K,q<K){for(te=J;te<j-K;te++)ne=te+K,ye=te+q,ne in P?P[ye]=P[ne]:delete P[ye];for(te=j;te>j-K+q;te--)delete P[te-1]}else if(q>K)for(te=j-K;te>J;te--)ne=te+K-1,ye=te+q-1,ne in P?P[ye]=P[ne]:delete P[ye];for(te=0;te<q;te++)P[te+J]=arguments[te+2];return P.length=j-K+q,oe}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,R=function(N,V,Q){var z=Q.charAt(V-1),M=Q.charAt(V+1);return A.test(N)&&!g.test(M)||g.test(N)&&!A.test(z)?"\\u"+N.charCodeAt(0).toString(16):N},B=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:B},{stringify:function(V,Q,z){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,R):M}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(B,N){return d(x(B),N)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),A=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(R){for(var B=d(R),N=b.f,V=x(B),Q={},z=0,M,X;V.length>z;)X=N(B,M=V[z++]),X!==void 0&&A(Q,M,X);return Q}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),A=v(function(){d(1)});c({target:"Object",stat:!0,forced:A,sham:!b},{getPrototypeOf:function(R){return d(x(R))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var R=this,B=x.f(R),N=B.resolve,V=B.reject,Q=d(function(){var z=v(R.resolve),M=[],X=0,L=1;b(g,function(P){var j=X++,J=!1;M.push(void 0),L++,z.call(R,P).then(function(_){J||(J=!0,M[j]={status:"fulfilled",value:_},--L||N(M))},function(_){J||(J=!0,M[j]={status:"rejected",reason:_},--L||N(M))})}),--L||N(M)});return Q.error&&V(Q.value),B.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),A=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(B){var N=this,V=d.f(N),Q=V.resolve,z=V.reject,M=b(function(){var X=v(N.resolve),L=[],P=0,j=1,J=!1;A(B,function(_){var q=P++,K=!1;L.push(void 0),j++,X.call(N,_).then(function(oe){K||J||(J=!0,Q(oe))},function(oe){K||J||(K=!0,L[q]=oe,--j||z(new(x("AggregateError"))(L,g)))})}),--j||z(new(x("AggregateError"))(L,g))});return M.error&&z(M.value),V.promise}})},4808:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),A=a(70487),g=a(56584),R=a(99754),B=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:B},{finally:function(V){var Q=A(this,b("Promise")),z=typeof V=="function";return this.then(z?function(M){return g(Q,V()).then(function(){return M})}:V,z?function(M){return g(Q,V()).then(function(){throw M})}:V)}}),!v&&typeof x=="function"){var N=b("Promise").prototype.finally;x.prototype.finally!==N&&R(x.prototype,"finally",N,{unsafe:!0})}},98881:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),A=a(99754),g=a(87524),R=a(88929),B=a(90904),N=a(94431),V=a(10941),Q=a(33916),z=a(5743),M=a(81302),X=a(93091),L=a(21385),P=a(70487),j=a(42941).set,J=a(66132),_=a(56584),q=a(34845),K=a(69520),oe=a(40002),te=a(45402),ne=a(37252),ye=a(99813),ge=a(23321),de=a(6049),ue=a(53385),ae=ye("species"),Le="Promise",Ve=te.get,De=te.set,Fe=te.getterFor(Le),tt=b&&b.prototype,Qe=b,Je=tt,ut=x.TypeError,pt=x.document,yt=x.process,qe=K.f,lt=qe,gt=!!(pt&&pt.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",Qt="unhandledrejection",nt="rejectionhandled",Lt=0,xt=1,jt=2,Rt=1,Gt=2,At=!1,kt,pe,G,Y,we=ne(Le,function(){var ee=M(Qe)!==String(Qe);if(!ee&&ue===66||v&&!Je.finally)return!0;if(ue>=51&&/native code/.test(Qe))return!1;var fe=new Qe(function(Te){Te(1)}),Ce=function(Te){Te(function(){},function(){})},Pe=fe.constructor={};return Pe[ae]=Ce,At=fe.then(function(){})instanceof Ce,At?!ee&&ge&&!mt:!0}),Re=we||!L(function(ee){Qe.all(ee).catch(function(){})}),be=function(ee){var fe;return V(ee)&&typeof(fe=ee.then)=="function"?fe:!1},Ae=function(ee,fe){if(!ee.notified){ee.notified=!0;var Ce=ee.reactions;J(function(){for(var Pe=ee.value,Te=ee.state==xt,Ge=0;Ce.length>Ge;){var He=Ce[Ge++],at=Te?He.ok:He.fail,St=He.resolve,wt=He.reject,Kt=He.domain,Bt,cr,Jr;try{at?(Te||(ee.rejection===Gt&&C(ee),ee.rejection=Rt),at===!0?Bt=Pe:(Kt&&Kt.enter(),Bt=at(Pe),Kt&&(Kt.exit(),Jr=!0)),Bt===He.promise?wt(ut("Promise-chain cycle")):(cr=be(Bt))?cr.call(Bt,St,wt):St(Bt)):wt(Pe)}catch(En){Kt&&!Jr&&Kt.exit(),wt(En)}}ee.reactions=[],ee.notified=!1,fe&&!ee.rejection&&Ie(ee)})}},O=function(ee,fe,Ce){var Pe,Te;gt?(Pe=pt.createEvent("Event"),Pe.promise=fe,Pe.reason=Ce,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:fe,reason:Ce},!mt&&(Te=x["on"+ee])?Te(Pe):ee===Qt&&q("Unhandled promise rejection",Ce)},Ie=function(ee){j.call(x,function(){var fe=ee.facade,Ce=ee.value,Pe=W(ee),Te;if(Pe&&(Te=oe(function(){de?yt.emit("unhandledRejection",Ce,fe):O(Qt,fe,Ce)}),ee.rejection=de||W(ee)?Gt:Rt,Te.error))throw Te.value})},W=function(ee){return ee.rejection!==Rt&&!ee.parent},C=function(ee){j.call(x,function(){var fe=ee.facade;de?yt.emit("rejectionHandled",fe):O(nt,fe,ee.value)})},T=function(ee,fe,Ce){return function(Pe){ee(fe,Pe,Ce)}},se=function(ee,fe,Ce){ee.done||(ee.done=!0,Ce&&(ee=Ce),ee.value=fe,ee.state=jt,Ae(ee,!0))},D=function(ee,fe,Ce){if(!ee.done){ee.done=!0,Ce&&(ee=Ce);try{if(ee.facade===fe)throw ut("Promise can't be resolved itself");var Pe=be(fe);Pe?J(function(){var Te={done:!1};try{Pe.call(fe,T(D,Te,ee),T(se,Te,ee))}catch(Ge){se(Te,Ge,ee)}}):(ee.value=fe,ee.state=xt,Ae(ee,!1))}catch(Te){se({done:!1},Te,ee)}}};if(we&&(Qe=function(fe){z(this,Qe,Le),Q(fe),kt.call(this);var Ce=Ve(this);try{fe(T(D,Ce),T(se,Ce))}catch(Pe){se(Ce,Pe)}},Je=Qe.prototype,kt=function(fe){De(this,{type:Le,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Lt,value:void 0})},kt.prototype=g(Je,{then:function(fe,Ce){var Pe=Fe(this),Te=qe(P(this,Qe));return Te.ok=typeof fe=="function"?fe:!0,Te.fail=typeof Ce=="function"&&Ce,Te.domain=de?yt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=Lt&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),pe=function(){var ee=new kt,fe=Ve(ee);this.promise=ee,this.resolve=T(D,fe),this.reject=T(se,fe)},K.f=qe=function(ee){return ee===Qe||ee===G?new pe(ee):lt(ee)},!v&&typeof b=="function"&&tt!==Object.prototype)){Y=tt.then,At||(A(tt,"then",function(fe,Ce){var Pe=this;return new Qe(function(Te,Ge){Y.call(Pe,Te,Ge)}).then(fe,Ce)},{unsafe:!0}),A(tt,"catch",Je.catch,{unsafe:!0}));try{delete tt.constructor}catch(ee){}R&&R(tt,Je)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),B(Qe,Le,!1,!0),N(Le),G=d(Le),c({target:Le,stat:!0,forced:we},{reject:function(fe){var Ce=qe(this);return Ce.reject.call(void 0,fe),Ce.promise}}),c({target:Le,stat:!0,forced:v||we},{resolve:function(fe){return _(v&&this===G?Qe:this,fe)}}),c({target:Le,stat:!0,forced:Re},{all:function(fe){var Ce=this,Pe=qe(Ce),Te=Pe.resolve,Ge=Pe.reject,He=oe(function(){var at=Q(Ce.resolve),St=[],wt=0,Kt=1;X(fe,function(Bt){var cr=wt++,Jr=!1;St.push(void 0),Kt++,at.call(Ce,Bt).then(function(En){Jr||(Jr=!0,St[cr]=En,--Kt||Te(St))},Ge)}),--Kt||Te(St)});return He.error&&Ge(He.value),Pe.promise},race:function(fe){var Ce=this,Pe=qe(Ce),Te=Pe.reject,Ge=oe(function(){var He=Q(Ce.resolve);X(fe,function(at){He.call(Ce,at).then(Pe.resolve,Te)})});return Ge.error&&Te(Ge.value),Pe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),A=a(29290),g=a(98308),R=a(95981),B=v("Reflect","construct"),N=R(function(){function z(){}return!(B(function(){},[],z)instanceof z)}),V=!R(function(){B(function(){})}),Q=N||V;c({target:"Reflect",stat:!0,forced:Q,sham:Q},{construct:function(M,X){x(M),d(X);var L=arguments.length<3?M:x(arguments[2]);if(V&&!N)return B(M,X,L);if(M==L){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var P=[null];return P.push.apply(P,X),new(g.apply(M,P))}var j=L.prototype,J=A(b(j)?j:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),A=a(249);function g(R,B){var N=arguments.length<3?R:arguments[2],V,Q;if(x(R)===N)return R[B];if(V=b.f(R,B))return d(V,"value")?V.value:V.get===void 0?void 0:V.get.call(N);if(v(Q=A(R)))return g(Q,B,N)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(A){return!!~String(x(this)).indexOf(v(A),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,A=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var R=A(this),B=R.string,N=R.index,V;return N>=B.length?{value:void 0,done:!0}:(V=c(B,N),R.index+=V.length,{value:V,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),A=a(72497),g=a(32302),R=a(95981),B=a(47457),N=a(1052),V=a(10941),Q=a(96059),z=a(89678),M=a(74529),X=a(46935),L=a(31887),P=a(29290),j=a(14771),J=a(10946),_=a(684),q=a(87857),K=a(49677),oe=a(65988),te=a(36760),ne=a(32029),ye=a(99754),ge=a(68726),de=a(44262),ue=a(27748),ae=a(99418),Le=a(99813),Ve=a(11477),De=a(66349),Fe=a(90904),tt=a(45402),Qe=a(3610).forEach,Je=de("hidden"),ut="Symbol",pt="prototype",yt=Le("toPrimitive"),qe=tt.set,lt=tt.getterFor(ut),gt=Object[pt],mt=v.Symbol,Qt=x("JSON","stringify"),nt=K.f,Lt=oe.f,xt=_.f,jt=te.f,Rt=ge("symbols"),Gt=ge("op-symbols"),At=ge("string-to-symbol-registry"),kt=ge("symbol-to-string-registry"),pe=ge("wks"),G=v.QObject,Y=!G||!G[pt]||!G[pt].findChild,we=b&&R(function(){return P(Lt({},"a",{get:function(){return Lt(this,"a",{value:7}).a}})).a!=7})?function(ee,fe,Ce){var Pe=nt(gt,fe);Pe&&delete gt[fe],Lt(ee,fe,Ce),Pe&&ee!==gt&&Lt(gt,fe,Pe)}:Lt,Re=function(ee,fe){var Ce=Rt[ee]=P(mt[pt]);return qe(Ce,{type:ut,tag:ee,description:fe}),b||(Ce.description=fe),Ce},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof mt},Ae=function(fe,Ce,Pe){fe===gt&&Ae(Gt,Ce,Pe),Q(fe);var Te=X(Ce,!0);return Q(Pe),B(Rt,Te)?(Pe.enumerable?(B(fe,Je)&&fe[Je][Te]&&(fe[Je][Te]=!1),Pe=P(Pe,{enumerable:L(0,!1)})):(B(fe,Je)||Lt(fe,Je,L(1,{})),fe[Je][Te]=!0),we(fe,Te,Pe)):Lt(fe,Te,Pe)},O=function(fe,Ce){Q(fe);var Pe=M(Ce),Te=j(Pe).concat(se(Pe));return Qe(Te,function(Ge){(!b||W.call(Pe,Ge))&&Ae(fe,Ge,Pe[Ge])}),fe},Ie=function(fe,Ce){return Ce===void 0?P(fe):O(P(fe),Ce)},W=function(fe){var Ce=X(fe,!0),Pe=jt.call(this,Ce);return this===gt&&B(Rt,Ce)&&!B(Gt,Ce)?!1:Pe||!B(this,Ce)||!B(Rt,Ce)||B(this,Je)&&this[Je][Ce]?Pe:!0},C=function(fe,Ce){var Pe=M(fe),Te=X(Ce,!0);if(!(Pe===gt&&B(Rt,Te)&&!B(Gt,Te))){var Ge=nt(Pe,Te);return Ge&&B(Rt,Te)&&!(B(Pe,Je)&&Pe[Je][Te])&&(Ge.enumerable=!0),Ge}},T=function(fe){var Ce=xt(M(fe)),Pe=[];return Qe(Ce,function(Te){!B(Rt,Te)&&!B(ue,Te)&&Pe.push(Te)}),Pe},se=function(fe){var Ce=fe===gt,Pe=xt(Ce?Gt:M(fe)),Te=[];return Qe(Pe,function(Ge){B(Rt,Ge)&&(!Ce||B(gt,Ge))&&Te.push(Rt[Ge])}),Te};if(A||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Ce=ae(fe),Pe=function(Te){this===gt&&Pe.call(Gt,Te),B(this,Je)&&B(this[Je],Ce)&&(this[Je][Ce]=!1),we(this,Ce,L(1,Te))};return b&&Y&&we(gt,Ce,{configurable:!0,set:Pe}),Re(Ce,fe)},ye(mt[pt],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(ee){return Re(ae(ee),ee)}),te.f=W,oe.f=Ae,K.f=C,J.f=_.f=T,q.f=se,Ve.f=function(ee){return Re(Le(ee),ee)},b&&(Lt(mt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(gt,"propertyIsEnumerable",W,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:mt}),Qe(j(pe),function(ee){De(ee)}),c({target:ut,stat:!0,forced:!A},{for:function(ee){var fe=String(ee);if(B(At,fe))return At[fe];var Ce=mt(fe);return At[fe]=Ce,kt[Ce]=fe,Ce},keyFor:function(fe){if(!be(fe))throw TypeError(fe+" is not a symbol");if(B(kt,fe))return kt[fe]},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:O,getOwnPropertyDescriptor:C}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:T,getOwnPropertySymbols:se}),c({target:"Object",stat:!0,forced:R(function(){q.f(1)})},{getOwnPropertySymbols:function(fe){return q.f(z(fe))}}),Qt){var D=!A||R(function(){var ee=mt();return Qt([ee])!="[null]"||Qt({a:ee})!="{}"||Qt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(fe,Ce,Pe){for(var Te=[fe],Ge=1,He;arguments.length>Ge;)Te.push(arguments[Ge++]);if(He=Ce,!(!V(Ce)&&fe===void 0||be(fe)))return N(Ce)||(Ce=function(at,St){if(typeof He=="function"&&(St=He.call(this,at,St)),!be(St))return St}),Te[1]=Ce,Qt.apply(null,Te)}})}mt[pt][yt]||ne(mt[pt],yt,mt[pt].valueOf),Fe(mt,ut),ue[Je]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),A=a(10941),g=a(45402).enforce,R=a(38019),B=!c.ActiveXObject&&"ActiveXObject"in c,N=Object.isExtensible,V,Q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},z=h.exports=d("WeakMap",Q,b);if(R&&B){V=b.getConstructor(Q,"WeakMap",!0),x.REQUIRED=!0;var M=z.prototype,X=M.delete,L=M.has,P=M.get,j=M.set;v(M,{delete:function(J){if(A(J)&&!N(J)){var _=g(this);return _.frozen||(_.frozen=new V),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(A(_)&&!N(_)){var q=g(this);return q.frozen||(q.frozen=new V),L.call(this,_)||q.frozen.has(_)}return L.call(this,_)},get:function(_){if(A(_)&&!N(_)){var q=g(this);return q.frozen||(q.frozen=new V),L.call(this,_)?P.call(this,_):q.frozen.get(_)}return P.call(this,_)},set:function(_,q){if(A(_)&&!N(_)){var K=g(this);K.frozen||(K.frozen=new V),L.call(this,_)?j.call(this,_,q):K.frozen.set(_,q)}else j.call(this,_,q);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),A=x(d);return(A.error?b.reject:b.resolve)(A.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),A=a(99813),g=A("toStringTag");for(var R in c){var B=v[R],N=B&&B.prototype;N&&x(N)!==g&&d(N,g,R),b[R]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.entries;return b===x||b instanceof Array&&A===x.entries||d.hasOwnProperty(v(b))?c:A}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.forEach;return b===x||b instanceof Array&&A===x.forEach||d.hasOwnProperty(v(b))?c:A}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function A(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ne={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function R(te){this.map={},te instanceof R?te.forEach(function(ne,ye){this.append(ye,ne)},this):Array.isArray(te)?te.forEach(function(ne){this.append(ne[0],ne[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ne){this.append(ne,te[ne])},this)}R.prototype.append=function(te,ne){te=b(te),ne=A(ne);var ye=this.map[te];this.map[te]=ye?ye+", "+ne:ne},R.prototype.delete=function(te){delete this.map[b(te)]},R.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},R.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},R.prototype.set=function(te,ne){this.map[b(te)]=A(ne)},R.prototype.forEach=function(te,ne){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(ne,this.map[ye],ye,this)},R.prototype.keys=function(){var te=[];return this.forEach(function(ne,ye){te.push(ye)}),g(te)},R.prototype.values=function(){var te=[];return this.forEach(function(ne){te.push(ne)}),g(te)},R.prototype.entries=function(){var te=[];return this.forEach(function(ne,ye){te.push([ye,ne])}),g(te)},c.iterable&&(R.prototype[Symbol.iterator]=R.prototype.entries);function B(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function N(te){return new Promise(function(ne,ye){te.onload=function(){ne(te.result)},te.onerror=function(){ye(te.error)}})}function V(te){var ne=new FileReader,ye=N(ne);return ne.readAsArrayBuffer(te),ye}function Q(te){var ne=new FileReader,ye=N(ne);return ne.readAsText(te),ye}function z(te){for(var ne=new Uint8Array(te),ye=new Array(ne.length),ge=0;ge<ne.length;ge++)ye[ge]=String.fromCharCode(ne[ge]);return ye.join("")}function M(te){if(te.slice)return te.slice(0);var ne=new Uint8Array(te.byteLength);return ne.set(new Uint8Array(te)),ne.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=M(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=M(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=B(this);if(te)return te;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?B(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(V)}),this.text=function(){var te=B(this);if(te)return te;if(this._bodyBlob)return Q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(z(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function P(te){var ne=te.toUpperCase();return L.indexOf(ne)>-1?ne:te}function j(te,ne){ne=ne||{};var ye=ne.body;if(te instanceof j){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ne.headers||(this.headers=new R(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!ye&&te._bodyInit!=null&&(ye=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new R(ne.headers)),this.method=P(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")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function J(te){var ne=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var ge=ye.split("="),de=ge.shift().replace(/\+/g," "),ue=ge.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(de),decodeURIComponent(ue))}}),ne}function _(te){var ne=new R,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ge){var de=ge.split(":"),ue=de.shift().trim();if(ue){var ae=de.join(":").trim();ne.append(ue,ae)}}),ne}X.call(j.prototype);function q(te,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 R(ne.headers),this.url=ne.url||"",this._initBody(te)}X.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},q.error=function(){var te=new q(null,{status:0,statusText:""});return te.type="error",te};var K=[301,302,303,307,308];q.redirect=function(te,ne){if(K.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new q(null,{status:ne,headers:{location:te}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(te){a.DOMException=function(ne,ye){this.message=ne,this.name=ye;var ge=Error(ne);this.stack=ge.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function oe(te,ne){return new Promise(function(ye,ge){var de=new j(te,ne);if(de.signal&&de.signal.aborted)return ge(new a.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function ae(){ue.abort()}ue.onload=function(){var Le={status:ue.status,statusText:ue.statusText,headers:_(ue.getAllResponseHeaders()||"")};Le.url="responseURL"in ue?ue.responseURL:Le.headers.get("X-Request-URL");var Ve="response"in ue?ue.response:ue.responseText;ye(new q(Ve,Le))},ue.onerror=function(){ge(new TypeError("Network request failed"))},ue.ontimeout=function(){ge(new TypeError("Network request failed"))},ue.onabort=function(){ge(new a.DOMException("Aborted","AbortError"))},ue.open(de.method,de.url,!0),de.credentials==="include"?ue.withCredentials=!0:de.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),de.headers.forEach(function(Le,Ve){ue.setRequestHeader(Ve,Le)}),de.signal&&(de.signal.addEventListener("abort",ae),ue.onreadystatechange=function(){ue.readyState===4&&de.signal.removeEventListener("abort",ae)}),ue.send(typeof de._bodyInit=="undefined"?null:de._bodyInit)})}return oe.polyfill=!0,h.fetch||(h.fetch=oe,h.Headers=R,h.Request=j,h.Response=q),a.Headers=R,a.Request=j,a.Response=q,a.fetch=oe,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(A.arrayBuffer)var R=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],B=ArrayBuffer.isView||function(ue){return ue&&R.indexOf(Object.prototype.toString.call(ue))>-1};function N(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function V(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function Q(ue){var ae={next:function(){var Le=ue.shift();return{done:Le===void 0,value:Le}}};return A.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function z(ue){this.map={},ue instanceof z?ue.forEach(function(ae,Le){this.append(Le,ae)},this):Array.isArray(ue)?ue.forEach(function(ae){this.append(ae[0],ae[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(ae){this.append(ae,ue[ae])},this)}z.prototype.append=function(ue,ae){ue=N(ue),ae=V(ae);var Le=this.map[ue];this.map[ue]=Le?Le+", "+ae:ae},z.prototype.delete=function(ue){delete this.map[N(ue)]},z.prototype.get=function(ue){return ue=N(ue),this.has(ue)?this.map[ue]:null},z.prototype.has=function(ue){return this.map.hasOwnProperty(N(ue))},z.prototype.set=function(ue,ae){this.map[N(ue)]=V(ae)},z.prototype.forEach=function(ue,ae){for(var Le in this.map)this.map.hasOwnProperty(Le)&&ue.call(ae,this.map[Le],Le,this)},z.prototype.keys=function(){var ue=[];return this.forEach(function(ae,Le){ue.push(Le)}),Q(ue)},z.prototype.values=function(){var ue=[];return this.forEach(function(ae){ue.push(ae)}),Q(ue)},z.prototype.entries=function(){var ue=[];return this.forEach(function(ae,Le){ue.push([Le,ae])}),Q(ue)},A.iterable&&(z.prototype[Symbol.iterator]=z.prototype.entries);function M(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(ae,Le){ue.onload=function(){ae(ue.result)},ue.onerror=function(){Le(ue.error)}})}function L(ue){var ae=new FileReader,Le=X(ae);return ae.readAsArrayBuffer(ue),Le}function P(ue){var ae=new FileReader,Le=X(ae);return ae.readAsText(ue),Le}function j(ue){for(var ae=new Uint8Array(ue),Le=new Array(ae.length),Ve=0;Ve<ae.length;Ve++)Le[Ve]=String.fromCharCode(ae[Ve]);return Le.join("")}function J(ue){if(ue.slice)return ue.slice(0);var ae=new Uint8Array(ue.byteLength);return ae.set(new Uint8Array(ue)),ae.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:A.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:A.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():A.arrayBuffer&&A.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||B(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(L)}),this.text=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return P(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(j(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function K(ue){var ae=ue.toUpperCase();return q.indexOf(ae)>-1?ae:ue}function oe(ue,ae){ae=ae||{};var Le=ae.body;if(ue instanceof oe){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,ae.headers||(this.headers=new z(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!Le&&ue._bodyInit!=null&&(Le=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new z(ae.headers)),this.method=K(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")&&Le)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Le)}oe.prototype.clone=function(){return new oe(this,{body:this._bodyInit})};function te(ue){var ae=new FormData;return ue.trim().split("&").forEach(function(Le){if(Le){var Ve=Le.split("="),De=Ve.shift().replace(/\+/g," "),Fe=Ve.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(De),decodeURIComponent(Fe))}}),ae}function ne(ue){var ae=new z,Le=ue.replace(/\r?\n[\t ]+/g," ");return Le.split(/\r?\n/).forEach(function(Ve){var De=Ve.split(":"),Fe=De.shift().trim();if(Fe){var tt=De.join(":").trim();ae.append(Fe,tt)}}),ae}_.call(oe.prototype);function ye(ue,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 z(ae.headers),this.url=ae.url||"",this._initBody(ue)}_.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new z(this.headers),url:this.url})},ye.error=function(){var ue=new ye(null,{status:0,statusText:""});return ue.type="error",ue};var ge=[301,302,303,307,308];ye.redirect=function(ue,ae){if(ge.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:ae,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(ae,Le){this.message=ae,this.name=Le;var Ve=Error(ae);this.stack=Ve.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function de(ue,ae){return new Promise(function(Le,Ve){var De=new oe(ue,ae);if(De.signal&&De.signal.aborted)return Ve(new b.DOMException("Aborted","AbortError"));var Fe=new XMLHttpRequest;function tt(){Fe.abort()}Fe.onload=function(){var Qe={status:Fe.status,statusText:Fe.statusText,headers:ne(Fe.getAllResponseHeaders()||"")};Qe.url="responseURL"in Fe?Fe.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Fe?Fe.response:Fe.responseText;Le(new ye(Je,Qe))},Fe.onerror=function(){Ve(new TypeError("Network request failed"))},Fe.ontimeout=function(){Ve(new TypeError("Network request failed"))},Fe.onabort=function(){Ve(new b.DOMException("Aborted","AbortError"))},Fe.open(De.method,De.url,!0),De.credentials==="include"?Fe.withCredentials=!0:De.credentials==="omit"&&(Fe.withCredentials=!1),"responseType"in Fe&&A.blob&&(Fe.responseType="blob"),De.headers.forEach(function(Qe,Je){Fe.setRequestHeader(Je,Qe)}),De.signal&&(De.signal.addEventListener("abort",tt),Fe.onreadystatechange=function(){Fe.readyState===4&&De.signal.removeEventListener("abort",tt)}),Fe.send(typeof De._bodyInit=="undefined"?null:De._bodyInit)})}return de.polyfill=!0,x.fetch||(x.fetch=de,x.Headers=z,x.Request=oe,x.Response=ye),b.Headers=z,b.Request=oe,b.Response=ye,b.fetch=de,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
47
|
+
`,""]);const A=b},58635:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>j});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=a(61667),A=a.n(b),g=new URL(a(17735),a.b),R=new URL(a(56089),a.b),B=new URL(a(46050),a.b),N=new URL(a(71090),a.b),V=new URL(a(96192),a.b),Q=d()(v()),z=A()(g),M=A()(R),X=A()(B),L=A()(N),P=A()(V);Q.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+z+")}.CodeMirror-lint-mark-error{background-image:url("+M+")}.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("+L+")}.CodeMirror-lint-marker-multiple{background-image:url("+P+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
48
|
+
`,""]);const j=Q},45272:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
49
|
+
`,""]);const A=b},40961:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
50
|
+
`,""]);const A=b},61667:h=>{"use strict";h.exports=function(I,a){return a||(a={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),a.hash&&(I+=a.hash),/["'() \t\n]|(%20)/.test(I)||a.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,a)=>{"use strict";var c=a(48764).Buffer;/*!
|
|
51
|
+
* @description Recursive object extending
|
|
52
|
+
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
53
|
+
* @license MIT
|
|
54
|
+
*
|
|
55
|
+
* The MIT License (MIT)
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
58
|
+
*
|
|
59
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
60
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
61
|
+
* the Software without restriction, including without limitation the rights to
|
|
62
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
63
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
64
|
+
* subject to the following conditions:
|
|
65
|
+
*
|
|
66
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
67
|
+
* copies or substantial portions of the Software.
|
|
68
|
+
*
|
|
69
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
71
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
72
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
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 R=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(R),R}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var R=[];return g.forEach(function(B,N){typeof B=="object"&&B!==null?Array.isArray(B)?R[N]=d(B):v(B)?R[N]=x(B):R[N]=A({},B):R[N]=B}),R}function b(g,R){return R==="__proto__"?void 0:g[R]}var A=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],R=Array.prototype.slice.call(arguments,1),B,N,V;return R.forEach(function(Q){typeof Q!="object"||Q===null||Array.isArray(Q)||Object.keys(Q).forEach(function(z){if(N=b(g,z),B=b(Q,z),B!==g)if(typeof B!="object"||B===null){g[z]=B;return}else if(Array.isArray(B)){g[z]=d(B);return}else if(v(B)){g[z]=x(B);return}else if(typeof N!="object"||N===null||Array.isArray(N)){g[z]=A({},B);return}else{g[z]=A(N,B);return}})}),g}},94041:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>ed,TryItPanel:()=>lf});var c={};a.r(c),a.d(c,{JsonPatchError:()=>zr,_areEquals:()=>hl,applyOperation:()=>Oo,applyPatch:()=>To,applyReducer:()=>rg,deepClone:()=>eg,getValueByPointer:()=>pl,validate:()=>hp,validator:()=>qu});var v={};a.r(v),a.d(v,{compare:()=>fg,generate:()=>Uc,observe:()=>ug,unobserve:()=>lg});var x={};a.r(x),a.d(x,{cookie:()=>Ny,header:()=>Dy,path:()=>My,query:()=>Ry});var d=a(67294),b=a(58804);function A(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function g(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function R(t,r,i){return r&&g(t.prototype,r),i&&g(t,i),t}function B(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},N.apply(this,arguments)}function V(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}return i}function Q(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?V(Object(i),!0).forEach(function(o){B(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):V(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function z(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&&X(t,r)}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},M(t)}function X(t,r){return X=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},X(t,r)}function L(){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 P(t,r){if(t==null)return{};var i={},o=Object.keys(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function j(t,r){if(t==null)return{};var i=P(t,r),o,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)o=p[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}function J(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:J(t)}function q(t){var r=L();return function(){var o=M(t),s;if(r){var p=M(this).constructor;s=Reflect.construct(o,arguments,p)}else s=o.apply(this,arguments);return _(this,s)}}function K(t,r){return ne(t)||ge(t,r)||de(t,r)||Le()}function oe(t){return te(t)||ye(t)||de(t)||ae()}function te(t){if(Array.isArray(t))return ue(t)}function ne(t){if(Array.isArray(t))return t}function ye(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ge(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),S;!(o=(S=y.next()).done)&&(i.push(S.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function de(t,r){if(!!t){if(typeof t=="string")return ue(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 ue(t,r)}}function ue(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function ae(){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 Le(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ve(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=de(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,S;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,S=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw S}}}}function De(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Fe=De(function(t){function r(k,$){for(var ie=0,re=0;re<k.length;re++)ie=(ie<<5)-ie+k.charCodeAt(re),ie|=0;return $[Math.abs(ie)%$.length]}function i(k,$){var ie=$.namespace;if($.useColors){var re=$.color,ce="[3"+(re<8?re:"8;5;"+re),ve=" ".concat(ce,";1m").concat(ie," [0m");k[0]=ve+k[0].split(`
|
|
79
|
+
`).join(`
|
|
80
|
+
`+ve)}else k[0]=ie+" "+k[0]}function o(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var ie="color: "+$.color,re=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(ve){ve!=="%%"&&(re++,ve==="%c"&&(ce=re))}),k.splice(ce,0,ie)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch($){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function S(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0;return function(){for(var ie=arguments.length,re=new Array(ie),ce=0;ce<ie;ce++)re[ce]=arguments[ce];k&&re.unshift(k);var ve=$.namespaces.split(",").map(function(ke){return ke[ke.length-1]==="*"?new RegExp("^"+ke.slice(0,ke.length-1)+".*$"):new RegExp("^"+ke+"$")}),he=ve.some(function(ke){return ke.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var me}}function w(k){return S(k,y())}function E(k){return S(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),tt=Fe("informed:ObjMap "),Qe=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Je=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},ut=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},pt=function(r){return r.replace(ut(r),"").replace(/\./,"")},yt=function(r,i){var o=ut(i),s=pt(i),p=o?Je(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return y===S.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+S[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&(delete s[p],o=!0),s[p])},r),o},gt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},Qt=function(r){var i=Qe(r);return Number.isInteger(+i[i.length-1])},nt=function(){function t(){A(this,t)}return R(t,null,[{key:"empty",value:function(i){return mt(i).length===0}},{key:"get",value:function(i,o){var s=Je(i,o);return s}},{key:"has",value:function(i,o){return yt(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)tt("SETTING",o,s),qe(i,o,s);else if(Qt(o)&&t.get(i,o)!==void 0){tt("Special case SETTING",o,"to undefined"),qe(i,o,void 0);var p=Qe(o);p=p.slice(0,p.length-1),Lt(i,p)}else!Qt(o)&&t.get(i,o)!==void 0&&(tt("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){tt("DELETE",o),Qt(o)?(tt("ARRAY",o),this.pullOut(i,o)):lt(i,o);var s=Qe(o);s=s.slice(0,s.length-1),Lt(i,s)}},{key:"pullOut",value:function(i,o){var s=Qe(o),p=s[s.length-1];s=s.slice(0,s.length-1),tt("Pulling out:",s,"index",p);var y=Je(i,s);tt("Array",y),Array.isArray(y)&>(y,p),Lt(i,s)}}]),t}();function Lt(t,r){if(r.length!==0){var i=Je(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&<(t,r),Lt(t,r.slice(0,r.length-1))}}var xt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),jt=d.createContext({}),Rt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Gt=d.createContext(),At=d.createContext(),kt=d.createContext(),pe=d.createContext(),G=d.createContext(),Y=d.createContext(),we=d.createContext(),Re=d.createContext();function be(){var t=(0,d.useContext)(Rt);return t}function Ae(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=K(o,2),p=s[0],y=s[1];r.current=p;var S=function(k){r.current=k,i.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var O=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},Ie=function(r){var i={};if(r.inner){if(r.inner.length===0){nt.set(i,r.path,r.message);return}var o=Ve(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;nt.get(i,p.path)||nt.set(i,p.path,p.message)}}catch(y){o.e(y)}finally{o.f()}}return i},W=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=Ie(s);return o}},C=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(o){return C(o)}},se=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,S=s.keyword,w=s.params,E=y;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),nt.set(o,E,p)}),o},D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},ee=function(r,i){var o;return function(){for(var p=arguments.length,y=new Array(p),S=0;S<p;S++)y[S]=arguments[S];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,i)}},fe=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,ie=i.title,re=i.minimum,ce=i.maximum,ve=i.minLength,he=i.maxLength,Se=i.pattern,me=i.type,ke=i.properties,$e=D();y&&y.id&&($e=y.id);var Ue={componentType:s,field:o?"".concat(o,".").concat(r):r,type:me,uiBefore:S,uiAfter:w,properties:me==="object"?ke:void 0,items:me==="array"?k:void 0,props:Q(Q({label:ie,id:$e,min:re,max:ce,minLength:ve,maxLength:he,pattern:Se},p),y)};if(E){var ze=i.oneOf.map(function(We){var Xe=We["input:props"],et=Xe===void 0?{}:Xe;return Q({value:We.const,label:We.title},et)});Ue.props.options=ze}if($){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(k&&k.oneOf){var je=k.oneOf.map(function(We){var Xe=We["input:props"],et=Xe===void 0?{}:Xe;return Q({value:We.const,label:We.title},et)});Ue.props.options=je}return Ue},Ce=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,S=r.propertyOrder,w=S===void 0?[]:S;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(k,$){var ie=w.indexOf(k),re=w.indexOf($);return(ie>-1?ie:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var $=p[k],ie=fe(k,$,o);return ie});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},Pe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Te=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ge=function(r,i){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==i[o]?s=o:p=!1,o=o+1;return s},He=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=Te(i,o),p=s.findIndex(function(he){return typeof he!="string"}),y=s.length-oe(s).reverse().findIndex(function(he){return typeof he!="string"}),S=[],w=o.split(""),E=0,k=0,$=Ge(s.slice(0,p),w.slice(0,p));$>-1&&(E=$+1,S=S.concat(s.slice(0,$+1)),k=$+1),$<0&&(S=S.concat(s.slice(0,p)),k=p);for(var ie=k;ie<s.length;ie++){var re=s[ie];if(E!=w.length){var ce=w[E];if(typeof re=="function")S.push(re(ce)),E=E+1;else{var ve=typeof re=="string"?re===ce:re.test(ce);ve&&typeof re=="string"?(S.push(re),E=E+1):!ve&&typeof re=="string"?E!=w.length&&S.push(re):ve&&typeof re!="string"?(S.push(ce),E=E+1):!ve&&typeof re!="string"&&(E=E+1,ie=ie-1)}}else if(typeof re=="string"&&ie>=y)S.push(re);else break}return{value:S.join(""),offset:o?S.length-o.length:0}},at=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),S=(o=(s=y.formatToParts(.1).find(function(he){var Se=he.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";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 k(he,Se,me){var ke=oe(he);return Array.isArray(me)?ke.splice.apply(ke,[Se,0].concat(oe(me))):ke.splice(Se,0,me),ke}function $(he){return"".concat(he).replace(/\D/g,"")}function ie(he){return"".concat(he).split(S).map(function(Se){return $(Se)}).join(".")}function re(he){if(typeof he=="number")return he;var Se=parseFloat(ie(he));return Number.isNaN(Se)?void 0:Se}function ce(he){var Se=ie(he),me="".concat(Se).split(".")[1],ke=p.formatToParts(Number(Se));me==="0"&&ke.push({type:"decimal",value:S},{type:"fraction",value:me});var $e=ke.reduce(function(Be,je){var We=je.type,Xe=je.value;return["decimal","fraction"].includes(We)&&me==null?Be:["integer","fraction"].includes(We)?[].concat(oe(Be),oe(Xe.split("").filter(function(et,Ke){return We==="fraction"?Ke<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(oe(Be),oe(Xe.split(""))):[].concat(oe(Be),[Xe])},[]),Ue=E($e,function(Be){return w(Be,/\d/)});$e.indexOf(S)===-1&&"".concat(he).indexOf(S)!==-1&&($e=k($e,Ue+1,[S,"[]"]),Ue+=2);var ze=$e.slice(Ue+1).join("");return $e=[].concat(oe($e.slice(0,Ue+1)),[ze]),$e}var ve=function(Se){if(Se!=null)return re(Se)};return{formatter:ce,parser:ve}},St=Object.freeze({__proto__:null,getChildDisplayName:O,yupToFormErrors:Ie,validateYupSchema:W,yupToFormError:C,validateYupField:T,validateAjvSchema:se,uuidv4:D,debounce:ee,computeFieldFromProperty:fe,computeFieldsFromSchema:Ce,getSchemaPathFromJsonPath:Pe,informedFormat:He,createIntlNumberFormatter:at}),wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Kt=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ae(0),S=K(y,3),w=S[0],E=S[1],k=S[2],$=Ae(0),ie=K($,3),re=ie[0],ce=ie[1],ve=ie[2];return wt(function(){if(o.current!=null&&k()){var he=k()+ve();ve()!=0&&p?o.current.setSelectionRange(he+1,he+1):p&&o.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:ce,setCursor:E,cursor:w,getCursor:k,cursorOffset:re}},Bt=function(r,i){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},i)},cr=Fe("informed:useField "),Jr=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var y=He(r,o);return y.value}return r}},En=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=He(r,s);return p.value}return r},Ji=function(r,i,o){var s=o.required;if(r||i)return function(p,y){if(i)return T(i,p);if(r)return r(p,y)};if(s)return function(p){return ma(p,s)}},jr=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,S=function(E){return o(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return o(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){o(E.target.checked),s&&s(E)}),function(w){S(w)}},Bn=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Yn=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Cn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},ma=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Jn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,ie=t.initialValue,re=t.validateOnChange,ce=t.validateOnBlur,ve=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,me=t.allowEmptyString,ke=t.onValueChange,$e=t.notify,Ue=t.keepState,ze=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Xe=t.fieldType,et=t.multiple,Ke=t.onChange,ht=t.onBlur,Ft=t.formController,Ht=t.relevant,sr=t.required,Rr=t.keepStateIfRelevant,Tr=t.initialize,Yr=t.formatterDependencies,br=Yr===void 0?[]:Yr,Ur=j(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"]),yn=(0,d.useState)(D()),Jt=K(yn,1),It=Jt[0],Nt=(0,d.useContext)(xt),lr=(0,d.useContext)(Re),rn=lr||Rr,vr=be(),ms=(0,d.useRef)(),yl=(0,d.useRef)(!0),Io=(0,d.useRef)(),Ki=(0,d.useRef)(!1),ml=function(){return!Ki.current},uf=function(){return Ki.current};Ft&&(Nt=Ft.updater,vr=Ft.getFormApi());var Ci=Ji(o,p,{required:sr}),xl=(0,d.useState)(function(){return Nt.getInitialValue(i)}),um=K(xl,1),fm=um[0],ff=Nt.getSavedValue(i),cf,th;(Ue||rn)&&ff?(cr("Setting field ".concat(vd,"'s kept state"),ff),cf=ff.value,th=ff.touched,vr.removeSavedState(vd)):ie!=null?cf=ie:cf=fm;var cm=Ae(Jr(cf,y,k,$,Tr)),td=K(cm,3),bl=td[0],rd=td[1],dm=td[2],pm=Ae(ve?Ci(bl):void 0),nd=K(pm,3),rh=nd[0],nh=nd[1],hm=nd[2],vm=Ae(th),id=K(vm,3),ih=id[0],gm=id[1],ah=id[2],ym=(0,d.useState)(function(){return En(bl,w,E,k)}),oh=K(ym,2),ad=oh[0],od=oh[1],sh=(0,d.useRef)();sh.current=ad;var lh=(0,d.useRef)(ie),Fo=(0,d.useRef)(i),uh=(0,d.useRef)();lh.current=ie,Fo.current=i;var mm=(0,d.useRef)(null),Yi=d.useMemo(function(){return r||mm},[]),sd=Kt({value:bl,inputRef:Yi,maintainCursor:!!ze}),ld=sd.getCursor,xm=sd.setCursor,ud=sd.setCursorOffset,bm=function(){return!0},fd=function(ur){var nn=Ht||bm,Dn=vr.getFullField(Fo.current)||Fo.current,Xt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Al){return nt.get(Nn,Al)}};return lr&&lr.relevant?nn(ur,Xt)&&lr.relevant(ur,Xt):nn(ur,Xt)},wm=Ae(fd(vr.getValues())),cd=K(wm,3),df=cd[0],Sm=cd[1],fh=cd[2],Am=function(ur){return lr&&lr.relevant?lr.relevant(ur):!0},Em=function(){var ur=fd(vr.getValues()),nn=fh();return ur!=nn&&Sm(ur),ur};(0,d.useEffect)(function(){!df&&!Ue&&ms.current.reset()},[df]);var ai=function(){return je?vr.getDerrivedValue(i):dm()},wl=function(ur){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=nn.preventUpdate;We&&vr.getStep()<We?(cr("Setting ".concat(i,"'s error to undefined as we are not at that step")),nh(void 0),Nt.setError(It,void 0,!Dn)):(cr("Setting ".concat(i,"'s error to ").concat(ur)),nh(ur),Nt.setError(It,ur,!Dn))},dd=function(ur,nn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=ur;Ki.current=!0,cr("Setting ".concat(i," to ").concat(Xt)),Tr&&(Xt=Tr(Xt));var ko=vr.getOptions(),Nn=Xt;if(Xt===""&&!me&&!Dn.allowEmptyString&&!ko.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Xe==="number")&&Xt!==void 0&&(Xt=+Xt),nn&&nn.target&&nn.target.selectionStart&&xm(nn.target.selectionStart),y&&!Se&&(Nn=y(Xt,ld()),Xt=y(Xt,ld())),S&&!Se){var Al=S(Xt,ld());Nn=Al.value,Xt=Al.value,ud(Al.offset)}if(w&&E&&(Xt=E(Xt),Nn=w(Xt)),k){var ch=He(Xt,k);ud(ch.offset),Nn=ch.value,Xt=Nn}$&&(Xt=Xt!=null?$(Xt):Xt),Ci&&re&&!Dn.initial&&(cr("Validating after change ".concat(i," ").concat(Xt)),wl(Ci(Xt,vr.getValues()))),rd(Xt),od(Nn),ke&&ke(Xt),Nt.setValue(It,Xt,!Dn.preventUpdate)};Bt(function(){ms.current.setValue(sh.current)},oe(br));var pd=function(ur,nn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Dn.preventUpdate;if(cr("Field ".concat(i," has been touched")),Ci&&ce&&!nn&&ur&&(cr("Validating after blur ".concat(i," ").concat(ai())),wl(Ci(ai(),vr.getValues()))),s&&he&&!nn&&ur&&(cr("Validating async after blur ".concat(i," ").concat(ai())),s(ai(),vr.getValues())),y&&Se){var ko=y(ai());rd(ko),od(ko),ke&&ke(ko),Nt.setValue(It,ko,!Xt)}if(S&&Se){var Nn=S(ai());ud(Nn.offset),rd(Nn.value),od(Nn.value),ke&&ke(Nn.value),Nt.setValue(It,Nn.value,!Xt)}gm(ur),Nt.setTouched(It,ur,!Xt)},Cm=function(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},nn=ur.preventUpdate,Dn=Jr(lh.current||Nt.getInitialValue(Fo.current),y,k,$,Tr);dd(Dn,null,{initial:!0,preventUpdate:nn}),wl(ve?Ci(Dn):void 0,{preventUpdate:nn}),pd(void 0,!0,{preventUpdate:nn}),Ki.current=!1},Om=function(ur){Ci&&(cr("Field validating ".concat(i," ").concat(ai())),wl(Ci(ai(),ur||vr.getValues())))},Tm=function(ur){s&&(cr("Field async validating ".concat(i," ").concat(ai())),s(ai(),ur||vr.getValues()))},hd={setValue:dd,setTouched:pd,setError:wl,reset:Cm,validate:Om,asyncValidate:Tm,getValue:ai,getTouched:ah,getError:hm,getIsRelevant:fh,getDirty:uf,getPristine:ml,getFieldState:function(){return{value:ai(),touched:ah(),dirty:uf(),pristine:ml()}},relevant:fd,multistepRelevant:Am,checkRelevant:Em};ms.current=hd;var Sl={value:bl,error:rh,touched:ih,maskedValue:ad,isRelevant:df,dirty:Ki.current,pristine:!Ki.current};je&&(Sl={error:rh,touched:ih}),cr("Render",vr.getFullField(i),Sl),wt(function(){var qr=vr.getFullField(Fo.current);return cr("Register",It,Fo.current),Io.current={field:qr,fieldId:It,fieldApi:hd,fieldState:Sl,notify:$e,keepState:Ue,inMultistep:rn,shadow:je},Nt.register(It,Io.current),function(){var ur=vr.getFullField(Fo.current);cr("Deregister",It,ur),Nt.deregister(It)}},[]),(0,d.useEffect)(function(){var qr=vr.getFullField(i);return yl.current?yl.current=!1:(cr("Update",i,rn),Io.current.field=qr,Nt.update(It,Io.current,uh.current)),function(){uh.current=qr}},[i]),wt(function(){Be&&Yi&&(Yi.current.style.border="5px solid orange",setTimeout(function(){Yi.current.style.borderWidth="2px",Yi.current.style.borderStyle="inset",Yi.current.style.borderColor="initial",Yi.current.style.borderImage="initial"},500))});var Pm=[].concat(oe(Object.values(Sl)),oe(Object.values(t)),oe(Object.values(Ur))),Im=function(ur){return(0,d.useMemo)(function(){return df?ur:null},oe(Pm))},vd=i,Fm=jr({fieldType:Xe,setValue:dd,onChange:Ke,multiple:et,ref:Yi}),km=Bn({setTouched:pd,onBlur:ht}),Mm=Yn({fieldType:Xe,maskedValue:ad,multiple:et,value:bl}),Rm=Cn(Xe);return{fieldState:Sl,fieldApi:hd,render:Im,ref:Yi,userProps:Q(Q({},Ur),{},{multiple:et,onChange:Ke,onBlur:ht,id:Ur.id||It}),informed:Q({name:vd,multiple:et,onChange:Fm,onBlur:km,value:Mm,ref:Yi,type:Rm,id:Ur.id||It},Ur)}}var On=function(r){var i=d.forwardRef(function(o,s){var p=Jn(o,s),y=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,N({fieldApi:S,fieldState:y,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},k)))});return i.displayName="asField(".concat(O(r),")"),i},Va=Fe("informed:Text "),mn=function(r){var i=r.fieldApi,o=r.fieldState,s=j(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.forwardedRef,re=s.debug,ce=s.label,ve=s.title,he=s.id,Se=j(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Va("Render",k),wt(function(){re&&ie&&(ie.current.style.background="red",setTimeout(function(){ie.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:he}," ",ce," "):null,d.createElement("input",N({},Se,{id:he,name:k,ref:ie,value:!p&&p!==0?"":p,onChange:function(ke){y(ke.target.value,ke),w&&w(ke)},onBlur:function(ke){S(!0),E&&E(ke)}})))},Xn=On(mn),Oi=function(r){var i=r.fieldApi,o=r.fieldState,s=j(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.forwardedRef,re=s.debug,ce=s.label,ve=s.id,he=j(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return wt(function(){re&&ie&&(ie.current.style.background="red",setTimeout(function(){ie.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ve}," ",ce," "):null,d.createElement("textarea",N({},he,{id:ve,name:k,ref:ie,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)}})))},Xi=On(Oi),Un=Fe("informed:Select "),Ti=function(r){var i=r.fieldApi,o=r.fieldState,s=j(r,["fieldApi","fieldState"]),p=o.value,y=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,ie=s.children,re=s.forwardedRef,ce=s.debug,ve=s.multiple,he=s.label,Se=s.id,me=j(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),ke=(0,d.useRef)(),$e=function(ze){var Be=Array.from((re||ke).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ve?Be:Be[0]||""),S&&ze&&S(ze)};return wt(function(){ce&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),Un("Render",E,p),d.createElement(d.Fragment,null,he?d.createElement("label",{htmlFor:Se}," ",he," "):null,d.createElement("select",N({},me,{id:Se,multiple:ve,name:E,ref:re||ke,value:p||(ve?[]:""),onChange:$e,onBlur:function(ze){y(!0),w&&w(ze)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ie))},Mo=On(Ti),Tn=function(r){var i=r.fieldApi,o=r.fieldState,s=j(r,["fieldApi","fieldState"]),p=o.value,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.debug,re=s.forwardedRef,ce=s.id,ve=s.label,he=j(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ve?d.createElement("label",{htmlFor:ce}," ",ve," "):null,d.createElement("input",N({},he,{id:ce,name:k,ref:re,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)},type:"checkbox"})))},xn=On(Tn),Pi=function(r){return d.forwardRef(function(i,o){return d.createElement(Gt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,N({radioGroupApi:p,radioGroupState:y,ref:o},i))})})},yr=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=j(r,["radioGroupApi","radioGroupState"]),p=o.value,y=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,ie=s.onBlur,re=s.field,ce=s.initialValue,ve=s.forwardedRef,he=j(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",N({},he,{name:re,ref:ve,value:k,checked:p===k,onChange:function(me){!me.target.checked||(y(k),$&&$(me),w&&w(me))},onBlur:function(me){S(!0),ie&&ie(me),E&&E(me)},type:"radio"}))},Ct=Pi(yr),oi=function(t){z(i,t);var r=q(i);function i(){return A(this,i),r.apply(this,arguments)}return R(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(Gt.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(Ct,{value:S.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:Q(Q({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),Ii=On(oi);function bn(){return(0,d.useContext)(kt)}var Zt=function(){var r=bn(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function jn(){return(0,d.useContext)(pe)}var Qi=function(){var r=jn(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},si=Fe("informed:useArrayField "),it=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=j(r,["field","initialValue","validate","arrayFieldApiRef"]),S=be(),w=(0,d.useState)(new Map),E=K(w,1),k=E[0],$=(0,d.useContext)(xt),ie=S.getFullField(i),re=$.getInitialValue(i)||o||[],ce=S.getSavedValue(ie)&&S.getSavedValue(ie).value,ve=Ae(ce||re),he=K(ve,3),Se=he[0],me=he[1],ke=he[2],$e=Se?Se.map(function(){return D()}):[],Ue=Ae($e),ze=K(Ue,3),Be=ze[0],je=ze[1],We=ze[2],Xe=(0,d.useMemo)(function(){return function(Jt,It){var Nt=We()==null?0:We().length;return s?s(Jt,Nt,It):void 0}}),et=Jn(Q({field:i,validate:s?Xe:void 0,shadow:!0},y)),Ke=et.fieldApi;wt(function(){var Jt=function(Nt){Nt!==ie&&(si("".concat(ie," changed")),RegExp("".concat(ie,"\\[[0-9]+\\]")).test(Nt)&&Ke.validate())};return S.emitter.on("value",Jt),function(){S.emitter.removeListener("value",Jt)}},[i]);var ht=function(It){si("EXPECTING REMOVAL OF","".concat(i,"[").concat(It,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(It,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Nt=Be.slice(0,It).concat(Be.slice(It+1,Be.length));je(Nt);var lr=ke(),rn=lr.slice(0,It).concat(lr.slice(It+1,lr.length));me(rn)},Ft=function(It,Nt){si("Swapping","".concat(i,"[").concat(It,"] and ").concat(i,"[").concat(Nt,"]"));var lr=oe(Be);Be[It]&&Be[Nt]?(lr[It]=Be[Nt],lr[Nt]=Be[It]):console.warn("Attempted to swap ".concat(It," with ").concat(Nt," but one of them does not exist :(")),je(lr)},Ht=function(){Be.push(D()),je(oe(Be))},sr=function(It){Be.push(D()),je(oe(Be));var Nt=oe(ke());Nt[Be.length-1]=It,me(Nt)},Rr=function(){var It=$.getInitialValue(i)||o||[];me(It);var Nt=It?It.map(function(){return D()}):[];je(Nt)},Tr=Be.map(function(Jt,It){var Nt={remove:function(){return ht(It)}},lr={initialValue:Se&&Se[It],key:Jt,field:"".concat(i,"[").concat(It,"]"),index:It};return Q(Q({arrayFieldItemApi:Nt,arrayFieldItemState:lr},Nt),lr)}),Yr={add:Ht,swap:Ft,addWithInitialValue:sr,reset:Rr};p&&(p.current=Yr);var br={fields:Tr,field:i},Ur=Q(Q({},$),{},{register:function(It,Nt){k.set(It,Nt);for(var lr=arguments.length,rn=new Array(lr>2?lr-2:0),vr=2;vr<lr;vr++)rn[vr-2]=arguments[vr];$.register.apply($,[It,Nt].concat(rn))},deregister:function(It){k.delete(It);for(var Nt=arguments.length,lr=new Array(Nt>1?Nt-1:0),rn=1;rn<Nt;rn++)lr[rn-1]=arguments[rn];$.deregister.apply($,[It].concat(lr))},getInitialValue:function(It){if(RegExp("".concat(ie,"\\[[0-9]+\\]")).test(It)){var Nt=It.replace(i,""),lr=nt.get(ke(),Nt);return si("Resetting ".concat(Nt," to ").concat(lr)),lr}return $.getInitialValue(It)}}),yn=function(It){return d.createElement(xt.Provider,{value:Ur},d.createElement(kt.Provider,{value:Yr},d.createElement(At.Provider,{value:br},It)))};return{render:yn,add:Ht,swap:Ft,addWithInitialValue:sr,fields:Tr,arrayFieldState:br,arrayFieldApi:Yr,field:i}},Mt=function(r,i){return Q(Q({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function xa(t){var r=be(),i=(0,d.useMemo)(function(){return Mt(t,r)},[t]);return i}function le(){var t=(0,d.useContext)(jt);return t}var Oe=function(r){var i=r.when,o=r.children,s=le(),p=i(s);return p?o:null},_e=function(r){var i=r.relevant,o=r.field,s=j(r,["relevant","field"]),p=be();if(i){var y=p.getFullField(o),S={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return nt.get(k,$)}},w=function(k){var $=k.values;return i($,S)};return d.createElement(Oe,{when:w},d.createElement(ot,N({field:o},s)))}else return d.createElement(ot,N({field:o},s))},ot=function(r){var i=r.children,o=j(r,["children"]),s=it(o),p=s.render,y=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(Q(Q({field:w,arrayFieldApi:S,arrayFieldState:y},S),y)):i)},ft=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(xt),y=be(),S=(0,d.useState)(0),w=K(S,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),ie=K($,1),re=ie[0],ce=i.field,ve=xa(ce),he=function(){var Be=y.getState(),je=Be.values,We=Be.errors,Xe=Be.touched,et={values:nt.get(je,ce),errors:nt.get(We,ce),touched:nt.get(Xe,ce)};return et};(0,d.useEffect)(function(){var ze=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===ce&&k(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[ce]);var Se=function(){re.forEach(function(Be){Be.fieldApi.reset()})},me=he(),ke=Q(Q({},p),{},{register:function(Be,je,We){re.set(Be,je),p.register(Be,je,We)},deregister:function(Be){re.delete(Be);for(var je=arguments.length,We=new Array(je>1?je-1:0),Xe=1;Xe<je;Xe++)We[Xe-1]=arguments[Xe];p.deregister.apply(p,[Be].concat(We))}}),$e=Q(Q(Q({},o),ve),{},{reset:Se}),Ue=Q(Q({},i),me);return typeof s=="function"?d.createElement(xt.Provider,{value:ke},d.createElement(pe.Provider,{value:$e},d.createElement(G.Provider,{value:Ue},s(Q(Q({arrayFieldItemApi:$e,arrayFieldItemState:Ue},$e),Ue))))):d.createElement(xt.Provider,{value:ke},d.createElement(pe.Provider,{value:$e},d.createElement(G.Provider,{value:Ue},s)))};_e.Items=function(t){var r=t.children,i=(0,d.useContext)(At),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,S=p.key;return d.createElement(ft,{key:S,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var zt=function(r){var i=r.components,o=(0,d.useContext)(xt),s=o.fieldMap;return i?i.map(function(p,y){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},_t=Fe("informed:FormFields "),wr=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(xt),y=p.fieldMap,S=(0,d.useMemo)(function(){var w=Ce(i,s,o),E=w.map(function(k,$){var ie=k.field,re=k.props,ce=k.type,ve=k.properties,he=k.items,Se=k.componentType,me=k.uiBefore,ke=k.uiAfter,$e=k.allOf,Ue=y[Se];return _t("Rendering Field",ie,k),!Ue&&ce==="object"&&ve?d.createElement(t,{schema:k,prefix:ie,key:"ScheamField-".concat($)}):!Ue&&ce==="array"&&he?d.createElement(Sr,N({key:"ScheamField-".concat($),field:ie,items:he,uiBefore:me,uiAfter:ke},re)):Ue&&Se==="array"&&he&&ce==="array"?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ie,items:he,uiBefore:me,uiAfter:ke},re)):Se==="conditionals"?$e.map(function(ze){var Be=ze.then,je=ze.if.properties,We=function(et){var Ke=et.values;return Object.keys(je).every(function(ht){var Ft=je[ht];return Ke[ht]===Ft.const})};return d.createElement(Oe,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ie},re)):null});return E},[i,o]);return S},Sr=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=j(r,["field","items","uiBefore","uiAfter"]);return d.createElement(_e,N({field:i},y),d.createElement(zt,{components:s}),d.createElement(_e.Items,null,function(S){var w=S.field;return d.createElement(d.Fragment,null,d.createElement(zt,{components:o["ui:before"]}),d.createElement(wr,{schema:o,prefix:w}),d.createElement(zt,{components:o["ui:after"]}))}),d.createElement(zt,{components:p}))},Ro={select:Mo,input:Xn,textarea:Xi,checkbox:xn,radio:Ii,add:Zt,remove:Qi,array:Sr},qt=Fe("informed:Controller "),Wa=function(r,i){var o=Object.keys(i).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},pn=function(){},El=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};A(this,t),this.options=i,this.subscriptions=new Map;var o=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Ro,this.fieldsById=new Map,this.fieldsByName={get:function(S){var w;return r.fieldsById.forEach(function(E){E&&E.field===S&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:pn,setTouched:pn,setError:pn,reset:pn,validate:pn,getValue:pn,getTouched:pn,getError:pn,getFieldState:pn,checkRelevant:pn,getPristine:pn,getDirty:pn}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);k.shadow||nt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||nt.delete(r.state.values,k.field),r.fieldsById.forEach(function($){var ie=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!ie&&!$.keepState)&&(nt.delete(r.state.values,$.field),nt.delete(r.state.touched,$.field),nt.delete(r.state.errors,$.field))}),E&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&nt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&nt.set(r.state.touched,k.field,k.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",k.field))},setError:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&nt.set(r.state.errors,k.field,k.fieldApi.getError());var $=nt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof $=="string")&&nt.set(r.state.errors,k.field,k.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",k.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 R(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,Q({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{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,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(qt("Submit",this.state),this.emit("submit")):(qt("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,o){nt.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return qt("Returning form state"),Q(Q({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var o=this.getValues();return nt.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return qt("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return qt("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return qt("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return qt("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return qt("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return qt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return qt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return qt("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 o=this.fieldsByName.get(i);return o&&o.shadow?nt.get(this.savedValues,"shadow-".concat(i)):nt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?nt.delete(this.savedValues,"shadow-".concat(i)):nt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return nt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){qt("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(i),S="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(S);w&&(qt("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!!(nt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=K(o,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!nt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){qt("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){qt("Setting values"),this.fieldsById.forEach(function(o){var s=nt.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;qt("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=W(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(nt.has(s,w.field)){var E=nt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=se(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(nt.has(p,w.field)){var E=nt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var S=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(nt.has(S,w.field)){var E=nt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){qt("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.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()?(qt("Submit",this.state),this.emit("submit")):(qt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var p=o.field,y=o.state;qt("Register ID:",i,"Name:",p,y,"Initial",s);var S=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,k){E&&E.field===p&&(w=k)}),w&&(o.keepState||o.inMultistep)?(qt("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),qt("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),qt("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;qt("Deregister",i,s),delete this.onScreen[i];var p=Wa(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(qt("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?nt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):nt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(qt("Removing field",s),this.fieldsById.delete(i),p||(nt.delete(this.state.values,s),nt.delete(this.state.touched,s),nt.delete(this.state.errors,s),o.shadow?nt.delete(this.savedValues,"shadow-".concat(s)):nt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(qt("Pulling out",s,"with magic value",y),nt.pullOut(this.state.values,y),nt.pullOut(this.state.touched,y),nt.pullOut(this.state.errors,y),nt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){qt("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){qt("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),S=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(nt.set(this.state.values,s),nt.set(this.state.errors,s),nt.set(this.state.touched,s)),nt.set(this.state.values,o.field,p),nt.set(this.state.errors,o.field,y),nt.set(this.state.touched,o.field,S),this.emit("change")}}]),t}(),Ha=Fe("informed:FormProvider "),Cl=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,y=j(r,["children","formApi","formController","formState"]);if(Ha("Render FormProvider"),o)return Ha("Render FormProvider with given values"),d.createElement(xt.Provider,{value:s.updater},d.createElement(Rt.Provider,{value:o},d.createElement(jt.Provider,{value:p},i)));Ha("Render FormProvider with generated values");var S=bs(y);return d.createElement(xt.Provider,{value:S.formController.updater},d.createElement(Rt.Provider,{value:S.formApi},d.createElement(jt.Provider,{value:S.formState},i)))},xs=Fe("informed:useForm "),bs=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,ie=r.onSubmit,re=r.onValueChange,ce=r.onSubmitFailure,ve=r.validationSchema,he=r.schema,Se=r.ajv,me=r.fieldMap,ke=r.onlyValidateSchema,$e=j(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:S,validationSchema:ve,schema:he,ajv:Se,fieldMap:me}},[i,o,s,p,y,S,ve,he,Se,me]),ze=(0,d.useState)(function(){return new El(Ue)}),Be=K(ze,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),wt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Xe=K(We,2),et=Xe[0],Ke=Xe[1];wt(function(){var Rr=function(){return k&&k(je.getFormState())},Tr=function(){return $&&$()},Yr=function(){return ie&&ie(je.getFormState().values)},br=function(){return re&&re(je.getFormState().values)},Ur=function(){return ce&&ce(je.getFormState().errors)};return je.on("change",Rr),je.on("reset",Tr),je.on("submit",Yr),je.on("value",br),je.on("failure",Ur),function(){je.removeListener("change",Rr),je.removeListener("reset",Tr),je.removeListener("submit",Yr),je.removeListener("value",br),je.removeListener("failure",Ur)}},[k,$,ie,re,ce]),(0,d.useState)(function(){var Rr=function(){xs("Setting form state"),Ke(je.getFormState())};je.on("change",Rr),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var ht=(0,d.useState)(function(){return je.getFormApi()}),Ft=K(ht,1),Ht=Ft[0],sr=function(Tr){return d.createElement(Cl,{formApi:Ht,formState:et,formController:je},d.createElement(d.Fragment,null,Tr||d.createElement(wr,{schema:he,onlyValidateSchema:ke})))};return{formApi:Ht,formState:et,formController:je,render:sr,userProps:$e}},Ol=Fe("informed:Form "),pf=function(r){var i=r.children,o=r.render,s=r.component,p=j(r,["children","render","component"]);Ol("Render FORM");var y=bs(p),S=y.formApi,w=y.formController,E=y.formState,k=y.render,$=y.userProps,ie=function(){var ce={formState:E,formApi:S};return s?d.createElement(s,ce,i):o?o(ce):typeof i=="function"?i(ce):i};return k(d.createElement("form",N({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ie()))},hf=function(r,i){return Q(Q({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},Tl=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,S=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,ie=i.fieldMap,re=i.getSavedValue;return{register:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return o.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},deregister:function(ve){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(ve)].concat(Se))},update:function(ve){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(ve)].concat(Se))},setValue:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},setTouched:function(ve){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(ve)].concat(Se))},setError:function(ve){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(ve)].concat(Se))},getField:function(ve){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(ve)].concat(Se))},expectRemoval:function(ve){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return k.apply(void 0,["".concat(r,".").concat(ve)].concat(Se))},getInitialValue:function(ve){return $("".concat(r,".").concat(ve))},getSavedValue:function(ve){return re("".concat(r,".").concat(ve))},fieldMap:ie}},Fi=function(r){var i=r.scope,o=r.children,s=useContext(xt),p=be(),y=le(),S=useMemo(function(){return hf(i,p)},[i]),w=useMemo(function(){return Tl(i,s)},[i]);return React.createElement(xt.Provider,{value:w},React.createElement(Rt.Provider,{value:S},React.createElement(jt.Provider,{value:y},o)))},gd=function(r){var i=le(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){o[re]=i[re]}):o=i;var s=o,p=s.pristine,y=s.dirty,S=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,ie=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:S,values:w,errors:E,touched:k,validating:$,submitting:ie},null,2)))},vf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=be(),p=s.getValues,y=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=K(w,1),k=E[0],$=(0,d.useRef)(0),ie=Ae({current:i,steps:[],goal:null}),re=K(ie,3),ce=re[0],ve=re[1],he=re[2],Se=(0,d.useState)(function(){var Ue=function(){var je=he(),We=je.current,Xe=k.get(We);return Xe},ze={getState:function(){return he()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),S()){var je=Ue(),We=je.getNext,Xe=We(),et=typeof Xe=="function"?Xe(p()):Xe;et&&ve(function(Ke){return Q(Q({},Ke),{},{current:et})})}},back:function(){var je=Ue(),We=je.getPrevious,Xe=We(),et=typeof Xe=="function"?Xe(p()):Xe;et&&ve(function(Ke){return Q(Q({},Ke),{},{current:et})})},setCurrent:function(je){if(je){var We=k.get(je).index;We<Ue().index?ve(function(Xe){return Q(Q({},Xe),{},{current:je,goal:null})}):ve(function(Xe){return Q(Q({},Xe),{},{goal:je})})}},register:function(je,We,Xe){Xe?($.current=$.current+1,k.set(je,Q(Q({},We),{},{index:$.current}))):ve(function(et){return Q(Q({},et),{},{steps:Array.from(k.keys())})})},deregister:function(je){k.delete(je),$.current=$.current-1,ve(function(We){return Q(Q({},We),{},{steps:Array.from(k.keys())})})}};return o&&(o.current=ze),ze}),me=K(Se,1),ke=me[0],$e=function(ze){return d.createElement(we.Provider,{value:ke},d.createElement(Y.Provider,{value:ce},ze))};return Q(Q(Q({},ke),ce),{},{render:$e})};function Lo(){return(0,d.useContext)(Y)}function za(){return(0,d.useContext)(we)}var gf=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,y=le(),S=y.values,w=Lo(),E=w.current,k=w.goal,$=za(),ie=$.register,re=$.deregister,ce=$.next,ve=i===E,he=p?p(S):!0,Se=(0,d.useRef)(o),me=(0,d.useRef)(s),ke=(0,d.useRef)();Se.current=o,me.current=s,ke.current=p,(0,d.useState)(function(){ie(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return ie(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){k&&ve&&k!==i&&ce()},[k,ve]);var $e=function(ze){return d.createElement(Re.Provider,{value:{relevant:function(je){return ke.current?ke.current(je):!0},multistep:!0}},ve&&he?ze:null)};return{isCurrent:ve,isRelevant:he,step:i,render:$e}};function yf(t){var r=t.children,i=j(t,["children"]),o=vf(i),s=o.render,p=j(o,["render"]);return s(typeof r=="function"?r(p):r)}yf.Step=function(r){var i=r.children,o=j(r,["children"]),s=gf(o),p=s.render;return p(i)};var yd=function(r){var i=r.field,o=useContext(xt),s=o.fieldMap,p=be(),y=p.getFullField,S=p.getOptions,w=y(i),E=S(),k=E.schema,$=Pe(w),ie=nt.get(k,$);if(!ie)return null;var re=fe(i,ie),ce=re.props,ve=re.componentType,he=s[ve];return React.createElement(he,N({field:i},ce))},md=function(){var r=be(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(wr,{schema:s})},Pl=function(r){return React.forwardRef(function(i,o){return React.createElement(Rt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:o},i))})})},mf=function(r){return React.forwardRef(function(i,o){return React.createElement(jt.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:o},i))})})},xf=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 ws(t){var r=be(),i=useMemo(function(){return xf(r,t)},[t]);return i}function Il(t){var r=ws(t),i=be(),o=React.useState(),s=K(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return wt(function(){var S=function(E){E===t&&y()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),wt(function(){y()},[]),r.getFieldState()||{}}var Ss=function(r){return function(i){return function(o){var s=Il(r);return React.createElement(i,N({fieldState:s},o))}}},As=function(r){return function(i){return function(o){var s=ws(r);return React.createElement(i,N({fieldApi:s},o))}}},Fl=function(r){var i=r.value,o=r.forwardedRef,s=r.children,p=j(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:o,value:i,key:i},p),s)},bf=null,Ga=a(80150),Vt=a(25446),wn=a(25973),Et=a(39713),Qn=a(78005);const kl=t=>{(0,d.useEffect)(()=>{t()},[])},xd=t=>{useEffect(()=>()=>{t()},[])};var Es=Object.defineProperty,Ml=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,ba=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,Do=(t,r,i)=>r in t?Es(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,li=(t,r)=>{for(var i in r||(r={}))Zn.call(r,i)&&Do(t,i,r[i]);if(ba)for(var i of ba(r))$a.call(r,i)&&Do(t,i,r[i]);return t},wf=(t,r)=>Ml(t,ki(r)),Sf=(t,r)=>{var i={};for(var o in t)Zn.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&ba)for(var o of ba(t))r.indexOf(o)<0&&$a.call(t,o)&&(i[o]=t[o]);return i};const Rl=t=>b.css`
|
|
81
|
+
border: none;
|
|
82
|
+
outline: none;
|
|
83
|
+
padding: 8px;
|
|
84
|
+
border-radius: var(--global-border-radius);
|
|
85
|
+
background-color: var(--${t}-panel-controls-background-color);
|
|
86
|
+
color: var(--color-content-inverse);
|
|
87
|
+
font-family: var(--code-font-family);
|
|
88
|
+
font-size: var(--font-size-base);
|
|
89
|
+
|
|
90
|
+
&::placeholder {
|
|
91
|
+
opacity: 0.6;
|
|
92
|
+
color: var(--color-content-inverse);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:-webkit-autofill {
|
|
96
|
+
background-color: var(--${t}-panel-background-color);
|
|
97
|
+
}
|
|
98
|
+
`,Ll=b.default.div`
|
|
99
|
+
display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
|
|
100
|
+
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
101
|
+
`,Dl=b.default.div`
|
|
102
|
+
position: relative;
|
|
103
|
+
`,Nl=b.default.input`
|
|
104
|
+
${({panel:t})=>Rl(t)}
|
|
105
|
+
${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
|
|
106
|
+
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
107
|
+
`,Bl=b.default.span`
|
|
108
|
+
position: absolute;
|
|
109
|
+
right: 0;
|
|
110
|
+
line-height: normal;
|
|
111
|
+
|
|
112
|
+
font-size: 0.8em;
|
|
113
|
+
padding: calc(8px / 0.8);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
text-align: center;
|
|
116
|
+
color: var(--samples-panel-text-color);
|
|
117
|
+
`;function Af(t,r){var i=t,{fullWidth:o,errorMessage:s,type:p,inputActionButton:y,panel:S="samples"}=i,w=Sf(i,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[E,k]=d.useState(p==="password"),$=d.useCallback(()=>{k(!E)},[E]);return d.createElement(Ll,{fullWidth:o,type:p},d.createElement(Dl,null,d.createElement(Nl,li({fullWidth:o,inputActionButton:y,type:E?"password":"text",inputType:p,ref:r,panel:S},w)),y?d.createElement(Bl,{onClick:y.onClick},y.label):p==="password"?d.createElement(Bl,{onClick:$},E?"show":"hide"):null),s?d.createElement(Et.Xq,null,s):null)}const Ka=d.forwardRef(Af);function hn(t){const r=Jn(li({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement(Ka,wf(li(li({},i),p),{errorMessage:s.error})))}const Ya=On(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,k)=>({value:E.title||E.value,idx:k,origValue:E.value})),p=s.find(E=>E.origValue===t),[y,S]=d.useState(p==null?void 0:p.value);kl(()=>{t&&i.setValue(t)});const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),S(s[E.idx].value)},[s,i]);return d.createElement(Ll,{fullWidth:!0},d.createElement(Qn.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),o.error?d.createElement(Et.Xq,null,o.error):null)});function Ul(t){const{name:r,value:i,description:o,variableEnum:s,onChange:p,defaultValue:y}=t,S=k=>p(k.target.value),w=k=>p(k.value),E=s?s.map((k,$)=>({value:k,idx:$})):[];return d.createElement(Et.NI,null,d.createElement(Et.lX,null,r,":"),E&&E.length?d.createElement(wn.VD,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement(Ka,{fullWidth:!0,value:i,onChange:S,placeholder:y,panel:"try-it"}),o&&d.createElement(No,null,o))}const No=b.default.small`
|
|
118
|
+
display: inline-block;
|
|
119
|
+
margin-top: 5px;
|
|
120
|
+
color: #d0d0d0;
|
|
121
|
+
`;var er=a(7241),jl=Object.defineProperty,Cf=Object.defineProperties,Of=Object.getOwnPropertyDescriptor,Ja=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,Tf=Object.prototype.hasOwnProperty,Vl=Object.prototype.propertyIsEnumerable,Zi=(t,r,i)=>r in t?jl(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wl=(t,r)=>{for(var i in r||(r={}))Tf.call(r,i)&&Zi(t,i,r[i]);if(Lr)for(var i of Lr(r))Vl.call(r,i)&&Zi(t,i,r[i]);return t},Cs=(t,r)=>Cf(t,Ja(r)),Pf=(t,r,i,o)=>{for(var s=o>1?void 0:o?Of(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&jl(r,i,s),s},Xa=(t,r,i)=>(Zi(t,typeof r!="symbol"?r+"":r,i),i);let Bo=class extends d.Component{constructor(){super(...arguments);Xa(this,"state",{activeIdx:0,variables:{}}),Xa(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(o=>o.url===t.serverUrl),i=(0,er.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,Vt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),Xa(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],o=r||r===""?r:(0,er.mj)(i)[t],s=Cs(Wl({},this.state.variables),{[t]:o});this.setState({variables:s}),(0,er.UY)(t,o),this.props.onChange(Cs(Wl({},i),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,Vt.YQ)("serverUrl"),o=r.servers.findIndex(s=>s.url===i);return{activeIdx:o<0?0:o}}componentDidMount(){const t=(0,er.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map((s,p)=>({idx:p,serverUrl:s.url,value:`
|
|
122
|
+
${(0,er.nq)((0,er.v5)(s.url,this.state.variables),s.variables)}
|
|
123
|
+
- ${s.description||"Default"}
|
|
124
|
+
`})),o=Object.keys(this.state.variables);return d.createElement(If,null,d.createElement(Et.lX,{htmlFor:"server"},"Target server: "),d.createElement(Et.NI,null,d.createElement(wn.VD,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),o.length?o.map(s=>{var p;const y=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(y)return d.createElement(Ul,{key:s,name:s,value:this.state.variables[s],defaultValue:y.default,onChange:S=>this.handleVariableChange(s,S),variableEnum:y.enum,description:y.description})}):null)}};Bo=Pf([Ga.Pi],Bo);const If=b.default.div`
|
|
125
|
+
margin-top: 20px;
|
|
126
|
+
`,Hl=On(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(t),p=r.map((S,w)=>({idx:w,value:S})),y=S=>{i.setValue(S.value),s(S.value)};return kl(()=>{t&&i.setValue(t)}),d.createElement(wn.VD,{fullWidth:!0,variant:"dark",value:o,options:p,onChange:y})});var Mi;(function(t){t.ARRAY="array",t.OBJECT="object"})(Mi||(Mi={}));const Ff=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Qa(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function ui(t){const r={};return t.forEach(i=>{Qa(r,i.in,i)}),r}const Uo=["path","query","cookie","header"];function Os(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===Mi.ARRAY&&Array.isArray(r)){if(r.length>(t.schema.rawSchema&&t.schema.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.schema.rawSchema.maxItems}`;if(r.length<(t.schema.rawSchema&&t.schema.rawSchema.minItems||0)){const i=t.schema.rawSchema.minItems;return`You should select at least ${i===1?`${i} item`:`${i} items`}`}}}}function zl(t){if(t.schema.type===Mi.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&t.schema.rawSchema.items){if(t.schema.rawSchema.items.default)return[t.schema.rawSchema.items.default];if(t.schema.rawSchema.items.example)return[t.schema.rawSchema.items.example]}return r||[]}else return t.schema.default||t.schema.example}function _n({values:t,operation:r}){function i(S,w){const E=d.useMemo(()=>Os(w),[w]),k=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,$=zl(w),ie=S.split(".").map(re=>(0,Vt.dw)(re));return k?d.createElement(Et.NI,null,d.createElement(Hl,{initValue:$,paramEnum:k,field:S})):d.createElement(hn,{fullWidth:!0,"data-cy":"parameter-input",id:S,field:S,placeholder:Ff(w),validate:E,initialValue:$||(0,Vt.U2)(t,ie),validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})}function o({oneOfType:S,type:w,items:E}){return S||w===Mi.ARRAY&&(E==null?void 0:E.type)===Mi.OBJECT&&"Array of objects"}function s(S,w,E){var k;const $=E?(0,Vt.s1)(E,S.name):S.name,ie=o(S.schema);if(ie&&console.warn(`Unsupported parameter definition: "${ie}"`),S.schema.type===Mi.OBJECT)return(k=S.schema.fields)==null?void 0:k.map(ve=>s(ve,w,$));const re=E?[w,E]:[S.in],ce=(0,Vt.s1)(...re,(0,Vt.A8)(S.name));return d.createElement(Et.NI,{key:ce},d.createElement(Et.lX,{required:S.required},$,":"),ie?d.createElement(Et.GE,null,"Unsupported field schema definition"):i(ce,S))}function p(S,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:S},d.createElement(Et.NI,null,d.createElement(Et.iG,null," # ",S," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,S)))}const y=ui(r.parameters||[]);return d.createElement(Et.iA,null,Uo.map(S=>p(S,y[S])))}var Xr=a(45756),an=a(76671),Ri=a(78722),Ts=a(55346),Gl=a(23715);function $l(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,er.v5)(t,o);const S=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const E=S(w);return E?(0,an.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const Ps=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(qn,null,d.createElement(Ts._,null,d.createElement(Gl.FH,{type:r.httpVerb},r.httpVerb),d.createElement(Ts.y,{wrap:"true"},$l(r.path,s,r.parameters))),d.createElement(wa,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),wa=(0,b.default)(Xr.Button)`
|
|
127
|
+
width: var(--try-it-panel-action-button-width);
|
|
128
|
+
`,qn=(0,b.default)(Ri.k1)`
|
|
129
|
+
flex-direction: row;
|
|
130
|
+
align-items: flex-start;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
`,Kl=d.memo(Ps);function Yl({response:t}){return d.createElement(d.Fragment,null,d.createElement(wn.EE,null," Body: "),kf(t))}function kf(t){return t.body?d.createElement(Xr.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?d.createElement(an.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(Xr.SourceCode,{lang:(0,an.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data,withCopyButton:!0}):d.createElement(wn.w3,null,d.createElement("i",null,"(no content)")):null}function Mf({headers:t}){const r=d.useContext(an.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,S=y&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(wn.EE,null," Headers: "),d.createElement(wn.w3,null,S.map(E=>d.createElement("div",{key:E},d.createElement(Jl,null,E,":"),d.createElement("code",null,t[E]))),y&&d.createElement(Is,{onClick:w},i?"Show more...":"Hide headers")))}const Jl=b.default.strong`
|
|
133
|
+
text-transform: capitalize;
|
|
134
|
+
display: inline-block;
|
|
135
|
+
padding-right: 5px;
|
|
136
|
+
`,Is=b.default.div`
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
margin-top: 5px;
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
`;Jl.displayName="HeaderName",Is.displayName="StyledShowMoreLabel";const Xl=b.default.div`
|
|
141
|
+
margin-bottom: 10px;
|
|
142
|
+
`,_i=b.default.div`
|
|
143
|
+
display: inline-block;
|
|
144
|
+
margin-right: 20px;
|
|
145
|
+
padding: 2px 0;
|
|
146
|
+
text-align: center;
|
|
147
|
+
color: var(--color-content-inverse);
|
|
148
|
+
`,Ql=(0,b.default)(_i)`
|
|
149
|
+
color: ${({code:t})=>t>=200&&t<300?"var(--response-success-text-color)":t>=300&&t<400?"var(--response-redirect-text-color)":t>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
|
|
150
|
+
`,Fs=b.default.header`
|
|
151
|
+
font-weight: bold;
|
|
152
|
+
margin-bottom: 10px;
|
|
153
|
+
`,ks=b.default.code`
|
|
154
|
+
border-left: 3px solid #ff4040;
|
|
155
|
+
padding-left: 5px;
|
|
156
|
+
`;class jo extends d.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(Fs,null," Could not get any response "),d.createElement(ks,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(Fs,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition")):s?d.createElement(d.Fragment,null,d.createElement(Xl,null,d.createElement(Ql,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(_i,null,d.createElement("span",null," Time: "),o,"ms"),d.createElement(_i,null,d.createElement("span",null," Size: "),y)),d.createElement("div",null,d.createElement(Mf,{headers:s.headers}),d.createElement(Yl,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var Zl=a(9996),Za=a.n(Zl),Vn=a(29656),qi=a(4631);function Sa(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,y=16,S=0,w=0,E=0,k=0,$=0;function ie(ke,$e){for(var Ue=0,ze=0;Ue<ke||!$e;){var Be=t.charCodeAt(o);if(Be>=48&&Be<=57)ze=ze*16+Be-48;else if(Be>=65&&Be<=70)ze=ze*16+Be-65+10;else if(Be>=97&&Be<=102)ze=ze*16+Be-97+10;else break;o++,Ue++}return Ue<ke&&(ze=-1),ze}function re(ke){o=ke,s="",p=0,y=16,$=0}function ce(){var ke=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&ea(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&ea(t.charCodeAt(o)))for(o++;o<t.length&&ea(t.charCodeAt(o));)o++;else return $=3,t.substring(ke,o);var $e=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&ea(t.charCodeAt(o))){for(o++;o<t.length&&ea(t.charCodeAt(o));)o++;$e=o}else $=3;return t.substring(ke,$e)}function ve(){for(var ke="",$e=o;;){if(o>=i){ke+=t.substring($e,o),$=2;break}var Ue=t.charCodeAt(o);if(Ue===34){ke+=t.substring($e,o),o++;break}if(Ue===92){if(ke+=t.substring($e,o),o++,o>=i){$=2;break}var ze=t.charCodeAt(o++);switch(ze){case 34:ke+='"';break;case 92:ke+="\\";break;case 47:ke+="/";break;case 98:ke+="\b";break;case 102:ke+="\f";break;case 110:ke+=`
|
|
157
|
+
`;break;case 114:ke+="\r";break;case 116:ke+=" ";break;case 117:var Be=ie(4,!0);Be>=0?ke+=String.fromCharCode(Be):$=4;break;default:$=5}$e=o;continue}if(Ue>=0&&Ue<=31)if(Aa(Ue)){ke+=t.substring($e,o),$=2;break}else $=6;o++}return ke}function he(){if(s="",$=0,p=o,w=S,k=E,o>=i)return p=i,y=17;var ke=t.charCodeAt(o);if(_a(ke)){do o++,s+=String.fromCharCode(ke),ke=t.charCodeAt(o);while(_a(ke));return y=15}if(Aa(ke))return o++,s+=String.fromCharCode(ke),ke===13&&t.charCodeAt(o)===10&&(o++,s+=`
|
|
158
|
+
`),S++,E=o,y=14;switch(ke){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=ve(),y=10;case 47:var $e=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Aa(t.charCodeAt(o));)o++;return s=t.substring($e,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Ue=i-1,ze=!1;o<Ue;){var Be=t.charCodeAt(o);if(Be===42&&t.charCodeAt(o+1)===47){o+=2,ze=!0;break}o++,Aa(Be)&&(Be===13&&t.charCodeAt(o)===10&&o++,S++,E=o)}return ze||(o++,$=1),s=t.substring($e,o),y=13}return s+=String.fromCharCode(ke),o++,y=16;case 45:if(s+=String.fromCharCode(ke),o++,o===i||!ea(t.charCodeAt(o)))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+=ce(),y=11;default:for(;o<i&&Se(ke);)o++,ke=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(ke),o++,y=16}}function Se(ke){if(_a(ke)||Aa(ke))return!1;switch(ke){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var ke;do ke=he();while(ke>=12&&ke<=15);return ke}return{setPosition:re,getPosition:function(){return o},scan:r?me:he,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return $}}}function _a(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 Aa(t){return t===10||t===13||t===8232||t===8233}function ea(t){return t>=48&&t<=57}function Ms(t,r,i){var o,s,p,y,S;if(r){for(y=r.offset,S=y+r.length,p=y;p>0&&!Li(t,p-1);)p--;for(var w=S;w<t.length&&!Li(t,w);)w++;s=t.substring(p,w),o=Rf(s,i)}else s=t,o=0,p=0,y=0,S=t.length;var E=Lf(i,t),k=!1,$=0,ie;i.insertSpaces?ie=Rs(" ",i.tabSize||4):ie=" ";var re=Sa(s,!1),ce=!1;function ve(){return E+Rs(ie,o+$)}function he(){var et=re.scan();for(k=!1;et===15||et===14;)k=k||et===14,et=re.scan();return ce=et===16||re.getTokenError()!==0,et}var Se=[];function me(et,Ke,ht){!ce&&Ke<S&&ht>y&&t.substring(Ke,ht)!==et&&Se.push({offset:Ke,length:ht-Ke,content:et})}var ke=he();if(ke!==17){var $e=re.getTokenOffset()+p,Ue=Rs(ie,o);me(Ue,p,$e)}for(;ke!==17;){for(var ze=re.getTokenOffset()+re.getTokenLength()+p,Be=he(),je="";!k&&(Be===12||Be===13);){var We=re.getTokenOffset()+p;me(" ",ze,We),ze=re.getTokenOffset()+re.getTokenLength()+p,je=Be===12?ve():"",Be=he()}if(Be===2)ke!==1&&($--,je=ve());else if(Be===4)ke!==3&&($--,je=ve());else{switch(ke){case 3:case 1:$++,je=ve();break;case 5:case 12:je=ve();break;case 13:k?je=ve():je=" ";break;case 6:je=" ";break;case 10:if(Be===6){je="";break}case 7:case 8:case 9:case 11:case 2:case 4:Be===12||Be===13?je=" ":Be!==5&&Be!==17&&(ce=!0);break;case 16:ce=!0;break}k&&(Be===12||Be===13)&&(je=ve())}var Xe=re.getTokenOffset()+p;me(je,ze,Xe),ke=Be}return Se}function Rs(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Rf(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")o++;else if(p===" ")o+=s;else break;i++}return Math.floor(o/s)}function Lf(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
159
|
+
`?`\r
|
|
160
|
+
`:"\r";if(o===`
|
|
161
|
+
`)return`
|
|
162
|
+
`}return t&&t.eol||`
|
|
163
|
+
`}function Li(t,r){return`\r
|
|
164
|
+
`.indexOf(t.charAt(r))!==-1}var ei;(function(t){t.DEFAULT={allowTrailingComma:!1}})(ei||(ei={}));function Ea(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function S(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{Wn(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,k){if(r<E||(S(w,E,k,"property"),i[i.length-1]=w,r<=E+k))throw o},onObjectEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw o;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(S(w,E,k,qa(w)),r<=E+k))throw o},onSeparator:function(w,E,k){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,k=0;E<w.length&&k<i.length;k++)if(w[E]===i[k]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Ls(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=ei.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var S={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return Wn(t,S,i),s[0]}function Ds(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=ei.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,k){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:k,parent:o})},onObjectEnd:function(w,E){s(w+E),o.length=w+E-o.offset,o=o.parent,s(w+E)},onArrayBegin:function(w,E){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,E){o.length=w+E-o.offset,o=o.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:qa(w),offset:E,length:k,parent:o,value:w}),s(E+k)},onSeparator:function(w,E,k){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};Wn(t,y,i);var S=o.children[0];return S&&delete S.parent,S}function _l(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,S=0,w=i.children;S<w.length;S++){var E=w[S];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],y=!0;break}}if(!y)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function Vo(t){if(!t.parent||!t.parent.children)return[];var r=Vo(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function fi(t){switch(t.type){case"array":return t.children.map(fi);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],p=s.children[1];p&&(r[s.children[0].value]=fi(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function ta(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function en(t,r,i){if(i===void 0&&(i=!1),ta(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=en(o[s],r,i);if(p)return p}return t}}function Wn(t,r,i){i===void 0&&(i=ei.DEFAULT);var o=Sa(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Xe){return We(Xe,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),ie=p(r.onSeparator),re=s(r.onComment),ce=p(r.onError),ve=i&&i.disallowComments,he=i&&i.allowTrailingComma;function Se(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ve||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ve?me(10):re();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Xe,et){if(Xe===void 0&&(Xe=[]),et===void 0&&(et=[]),ce(We),Xe.length+et.length>0)for(var Ke=o.getToken();Ke!==17;){if(Xe.indexOf(Ke)!==-1){Se();break}else if(et.indexOf(Ke)!==-1)break;Ke=Se()}}function ke(We){var Xe=o.getTokenValue();return We?$(Xe):S(Xe),Se(),!0}function $e(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Xe=Number(We);isNaN(Xe)&&(me(2),Xe=0),$(Xe);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return Se(),!0}function Ue(){return o.getToken()!==10?(me(3,[],[2,5]),!1):(ke(!1),o.getToken()===6?(ie(":"),Se(),je()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),Se();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),ie(","),Se(),o.getToken()===2&&he)break}else We&&me(6,[],[]);Ue()||me(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?me(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),ie(","),Se(),o.getToken()===4&&he)break}else We&&me(6,[],[]);je()||me(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?me(8,[4],[]):Se(),!0}function je(){switch(o.getToken()){case 3:return Be();case 1:return ze();case 10:return ke(!0);default:return $e()}}return Se(),o.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):je()?(o.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Di(t,r){var i=Sa(t),o=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function qa(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 wd(t,r,i){return ql(t,r,void 0,i)}function ql(t,r,i,o){for(var s,p=r.slice(),y=[],S=parseTree(t,y),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(S,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[E]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var $=w.children.indexOf(k.parent),ie=void 0,re=k.parent.offset+k.parent.length;if($>0){var ce=w.children[$-1];ie=ce.offset+ce.length}else if(ie=w.offset+1,w.children.length>1){var ve=w.children[1];re=ve.offset}return Hn(t,{offset:ie,length:re-ie,content:""},o)}else return Hn(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var he=JSON.stringify(E)+": "+JSON.stringify(i),Se=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Se>0){var ce=w.children[Se-1];me={offset:ce.offset+ce.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 Hn(t,me,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var ke=E;if(ke===-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 ce=w.children[w.children.length-1];me={offset:ce.offset+ce.length,length:0,content:","+he}}return Hn(t,me,o)}else if(i===void 0&&w.children.length>=0){var $e=E,Ue=w.children[$e],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var ce=w.children[$e-1],ze=ce.offset+ce.length,Be=w.offset+w.length;me={offset:ze,length:Be-2-ze,content:""}}else me={offset:Ue.offset,length:w.children[$e+1].offset-Ue.offset,content:""};return Hn(t,me,o)}else if(i!==void 0){var me=void 0,he=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var je=w.children[E];me={offset:je.offset,length:je.length,content:he}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?he:he+","};else{var Se=E>w.children.length?w.children.length:E,ce=w.children[Se-1];me={offset:ce.offset+ce.length,length:0,content:","+he}}return Hn(t,me,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+ke+" 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 Hn(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},o)}}function Hn(t,r,i){if(!i.formattingOptions)return[r];var o=Ns(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var y=format(o,{offset:s,length:p-s},i.formattingOptions),S=y.length-1;S>=0;S--){var w=y[S];o=Ns(o,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(o.length-p)-s;return[{offset:s,length:E,content:o.substring(s,p)}]}function Ns(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function eu(t,r){return`\r
|
|
165
|
+
`.indexOf(t.charAt(r))!==-1}var ci=Sa,Sd=Ea,Bs=Ls,Df=Ds,tu=_l,Us=en,Ca=Vo,Wo=fi,Nf=Wn,js=Di;function Ad(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 Bf(t,r,i){return Ms(t,r,i)}function Ed(t,r,i,o){return edit.setProperty(t,r,i,o)}function ru(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function ra(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,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!ra(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!ra(s,p))return!1;for(i=0;i<s.length;i++)if(!ra(t[s[i]],r[s[i]]))return!1}return!0}function $r(t){return typeof t=="number"}function Sn(t){return typeof t!="undefined"}function ti(t){return typeof t=="boolean"}function Ho(t){return typeof t=="string"}var Vs;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Vs||(Vs={}));var Ni;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Ni||(Ni={}));var Pn;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=Ni.MAX_VALUE),s===Number.MAX_VALUE&&(s=Ni.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(Pn||(Pn={}));var $t;(function(t){function r(o,s,p,y){if(Ze.uinteger(o)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(y))return{start:Pn.create(o,s),end:Pn.create(p,y)};if(Pn.is(o)&&Pn.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&Pn.is(s.start)&&Pn.is(s.end)}t.is=i})($t||($t={}));var di;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&$t.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(di||(di={}));var Bi;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&$t.is(s.targetRange)&&Ze.string(s.targetUri)&&($t.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&($t.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(Bi||(Bi={}));var na;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function i(o){var s=o;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})(na||(na={}));var ia;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return $t.is(s.range)&&na.is(s.color)}t.is=i})(ia||(ia={}));var Ws;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||zn.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,zn.is))}t.is=i})(Ws||(Ws={}));var Oa;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Oa||(Oa={}));var Hs;(function(t){function r(o,s,p,y,S){var w={startLine:o,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(y)&&(w.endCharacter=y),Ze.defined(S)&&(w.kind=S),w}t.create=r;function i(o){var s=o;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})(Hs||(Hs={}));var zs;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&di.is(s.location)&&Ze.string(s.message)}t.is=i})(zs||(zs={}));var Dt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Dt||(Dt={}));var Ui;(function(t){t.Unnecessary=1,t.Deprecated=2})(Ui||(Ui={}));var nu;(function(t){function r(i){var o=i;return o!=null&&Ze.string(o.href)}t.is=r})(nu||(nu={}));var pi;(function(t){function r(o,s,p,y,S,w){var E={range:o,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(y)&&(E.code=y),Ze.defined(S)&&(E.source=S),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return Ze.defined(p)&&$t.is(p.range)&&Ze.string(p.message)&&(Ze.number(p.severity)||Ze.undefined(p.severity))&&(Ze.integer(p.code)||Ze.string(p.code)||Ze.undefined(p.code))&&(Ze.undefined(p.codeDescription)||Ze.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(p.source)||Ze.undefined(p.source))&&(Ze.undefined(p.relatedInformation)||Ze.typedArray(p.relatedInformation,zs.is))}t.is=i})(pi||(pi={}));var eo;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var S={title:o,command:s};return Ze.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(eo||(eo={}));var zn;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return Ze.objectLiteral(y)&&Ze.string(y.newText)&&$t.is(y.range)}t.is=s})(zn||(zn={}));var Ta;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(o){var s=o;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})(Ta||(Ta={}));var tn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(tn||(tn={}));var Pr;(function(t){function r(p,y,S){return{range:p,newText:y,annotationId:S}}t.replace=r;function i(p,y,S){return{range:{start:p,end:p},newText:y,annotationId:S}}t.insert=i;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return zn.is(y)&&(Ta.is(y.annotationId)||tn.is(y.annotationId))}t.is=s})(Pr||(Pr={}));var Ar;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&to.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Ar||(Ar={}));var Dr;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;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||tn.is(s.annotationId))}t.is=i})(Dr||(Dr={}));var mr;(function(t){function r(o,s,p,y){var S={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),y!==void 0&&(S.annotationId=y),S}t.create=r;function i(o){var s=o;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||tn.is(s.annotationId))}t.is=i})(mr||(mr={}));var hi;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;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||tn.is(s.annotationId))}t.is=i})(hi||(hi={}));var Gs;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return Ze.string(s.kind)?Dr.is(s)||mr.is(s)||hi.is(s):Ar.is(s)}))}t.is=r})(Gs||(Gs={}));var aa=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,p;if(o===void 0?s=zn.insert(r,i):tn.is(o)?(p=o,s=Pr.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Pr.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,o){var s,p;if(o===void 0?s=zn.replace(r,i):tn.is(o)?(p=o,s=Pr.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Pr.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=zn.del(r):tn.is(i)?(s=i,o=Pr.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Pr.del(r,s)),this.edits.push(o),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}(),iu=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 o;if(tn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Cd=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new iu(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(Ar.is(o)){var s=new aa(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new aa(r.changes[o]);i._textEditChanges[o]=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(to.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},o=this._textEditChanges[i.uri];if(!o){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),o=new aa(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new aa(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new iu,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,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Ta.is(i)||tn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=Dr.create(r,o):(y=tn.is(s)?s:this._changeAnnotations.manage(s),p=Dr.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;Ta.is(o)||tn.is(o)?p=o:s=o;var y,S;if(p===void 0?y=mr.create(r,i,s):(S=tn.is(p)?p:this._changeAnnotations.manage(p),y=mr.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(y),S!==void 0)return S},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Ta.is(i)||tn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=hi.create(r,o):(y=tn.is(s)?s:this._changeAnnotations.manage(s),p=hi.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),au;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})(au||(au={}));var zo;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(zo||(zo={}));var to;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(to||(to={}));var Go;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(Go||(Go={}));var vi;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(vi||(vi={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(vi||(vi={}));var ro;(function(t){function r(i){var o=i;return Ze.objectLiteral(i)&&vi.is(o.kind)&&Ze.string(o.value)}t.is=r})(ro||(ro={}));var on;(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})(on||(on={}));var Nr;(function(t){t.PlainText=1,t.Snippet=2})(Nr||(Nr={}));var $s;(function(t){t.Deprecated=1})($s||($s={}));var $o;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function i(o){var s=o;return s&&Ze.string(s.newText)&&$t.is(s.insert)&&$t.is(s.replace)}t.is=i})($o||($o={}));var Ks;(function(t){t.asIs=1,t.adjustIndentation=2})(Ks||(Ks={}));var oa;(function(t){function r(i){return{label:i}}t.create=r})(oa||(oa={}));var ou;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(ou||(ou={}));var sa;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(sa||(sa={}));var ri;(function(t){function r(i){var o=i;return!!o&&Ze.objectLiteral(o)&&(ro.is(o.contents)||sa.is(o.contents)||Ze.typedArray(o.contents,sa.is))&&(i.range===void 0||$t.is(i.range))}t.is=r})(ri||(ri={}));var Ys;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(Ys||(Ys={}));var su;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return Ze.defined(o)&&(y.documentation=o),Ze.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(su||(su={}));var Js;(function(t){t.Text=1,t.Read=2,t.Write=3})(Js||(Js={}));var vn;(function(t){function r(i,o){var s={range:i};return Ze.number(o)&&(s.kind=o),s}t.create=r})(vn||(vn={}));var Wt;(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})(Wt||(Wt={}));var In;(function(t){t.Deprecated=1})(In||(In={}));var gi;(function(t){function r(i,o,s,p,y){var S={name:i,kind:o,location:{uri:p,range:s}};return y&&(S.containerName=y),S}t.create=r})(gi||(gi={}));var yi;(function(t){function r(o,s,p,y,S,w){var E={name:o,detail:s,kind:p,range:y,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&$t.is(s.range)&&$t.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})(yi||(yi={}));var Xs;(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"})(Xs||(Xs={}));var Ko;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,pi.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(Ko||(Ko={}));var Qs;(function(t){function r(o,s,p){var y={title:o},S=!0;return typeof s=="string"?(S=!1,y.kind=s):eo.is(s)?y.command=s:y.edit=s,S&&p!==void 0&&(y.kind=p),y}t.create=r;function i(o){var s=o;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,pi.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||eo.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||Gs.is(s.edit))}t.is=i})(Qs||(Qs={}));var lu;(function(t){function r(o,s){var p={range:o};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&$t.is(s.range)&&(Ze.undefined(s.command)||eo.is(s.command))}t.is=i})(lu||(lu={}));var Yo;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(Yo||(Yo={}));var Pa;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&$t.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(Pa||(Pa={}));var no;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&$t.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(no||(no={}));var uu=null,mi;(function(t){function r(p,y,S,w){return new fu(p,y,S,w)}t.create=r;function i(p){var y=p;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 o(p,y){for(var S=p.getText(),w=s(y,function(ce,ve){var he=ce.range.start.line-ve.range.start.line;return he===0?ce.range.start.character-ve.range.start.character:he}),E=S.length,k=w.length-1;k>=0;k--){var $=w[k],ie=p.offsetAt($.range.start),re=p.offsetAt($.range.end);if(re<=E)S=S.substring(0,ie)+$.newText+S.substring(re,S.length);else throw new Error("Overlapping edit");E=ie}return S}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,y),s(E,y);for(var k=0,$=0,ie=0;k<w.length&&$<E.length;){var re=y(w[k],E[$]);re<=0?p[ie++]=w[k++]:p[ie++]=E[$++]}for(;k<w.length;)p[ie++]=w[k++];for(;$<E.length;)p[ie++]=E[$++];return p}})(mi||(mi={}));var fu=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}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,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var p=i.charAt(s);o=p==="\r"||p===`
|
|
166
|
+
`,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
167
|
+
`&&s++}o&&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(),o=0,s=i.length;if(s===0)return Pn.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var y=o-1;return Pn.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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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 o(re){return typeof re=="undefined"}t.undefined=o;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function S(re,ce,ve){return r.call(re)==="[object Number]"&&ce<=re&&re<=ve}t.numberRange=S;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function E(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=E;function k(re){return r.call(re)==="[object Function]"}t.func=k;function $(re){return re!==null&&typeof re=="object"}t.objectLiteral=$;function ie(re,ce){return Array.isArray(re)&&re.every(ce)}t.typedArray=ie})(Ze||(Ze={}));var cu=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var y=du(p.range),S=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),k=Math.max(y.end.line,0),$=this._lineOffsets,ie=Zs(p.text,!1,S);if(k-E===ie.length)for(var re=0,ce=ie.length;re<ce;re++)$[re+E+1]=ie[re];else ie.length<1e4?$.splice.apply($,[E+1,k-E].concat(ie)):this._lineOffsets=$=$.slice(0,E+1).concat(ie,$.slice(k+1));var ve=p.text.length-(w-S);if(ve!==0)for(var re=E+1+ie.length,ce=$.length;re<ce;re++)$[re]=$[re]+ve}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Zs(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var y=o-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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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}(),la;(function(t){function r(s,p,y,S){return new cu(s,p,y,S)}t.create=r;function i(s,p,y){if(s instanceof cu)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var y=s.getText(),S=io(p.map(pu),function(ce,ve){var he=ce.range.start.line-ve.range.start.line;return he===0?ce.range.start.character-ve.range.start.character:he}),w=0,E=[],k=0,$=S;k<$.length;k++){var ie=$[k],re=s.offsetAt(ie.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(y.substring(w,re)),ie.newText.length&&E.push(ie.newText),w=s.offsetAt(ie.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=o})(la||(la={}));function io(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);io(o,r),io(s,r);for(var p=0,y=0,S=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[S++]=o[p++]:t[S++]=s[y++]}for(;p<o.length;)t[S++]=o[p++];for(;y<s.length;)t[S++]=s[y++];return t}function Zs(t,r,i){i===void 0&&(i=0);for(var o=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(i+s+1))}return o}function du(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 pu(t){var r=du(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Yt;(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"})(Yt||(Yt={}));var hu;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[vi.Markdown,vi.PlainText],commitCharactersSupport:!0}}}}})(hu||(hu={}));var ni=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),vu={"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,}))$/}},ua=function(){function t(r,i,o){this.offset=i,this.length=o,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}(),Uf=function(t){ni(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(ua),_s=function(t){ni(r,t);function r(i,o,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=o,p}return r}(ua),Ia=function(t){ni(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(ua),qs=function(t){ni(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(ua),ao=function(t){ni(r,t);function r(i,o,s){var p=t.call(this,i,o,s)||this;return p.type="string",p.value="",p}return r}(ua),gu=function(t){ni(r,t);function r(i,o){var s=t.call(this,i,o)||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}(ua),el=function(t){ni(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(ua);function sn(t){return ti(t)?t?{}:{not:{}}:t}var yu;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(yu||(yu={}));var mu=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||fa(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Vr=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}(),Qr=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,o=r;i<o.length;i++){var s=o[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,o=this.problems;i<o.length;i++){var s=o[i];s.code===Yt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function xu(t,r){return r===void 0&&(r=[]),new oo(t,r,[])}function xi(t){return Wo(t)}function Jo(t){return Ca(t)}function fa(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var oo=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Us(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Qr;return Kr(this.root,i,o,Vr.instance),o.problems.map(function(s){var p=$t.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return pi.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new mu(i,o);return this.root&&r&&Kr(this.root,r,new Qr,s),s.schemas},t}();function Kr(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,i,o);break;case"array":S(t,r,i,o);break;case"string":y(t,r,i,o);break;case"number":p(t,r,i,o);break;case"property":return Kr(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function E(Ke){return t.type===Ke||Ke==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var ie=$[k];Kr(t,sn(ie),i,o)}var re=sn(r.not);if(re){var ce=new Qr,ve=o.newSub();Kr(t,re,ce,ve),ce.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ve.schemas;he<Se.length;he++){var me=Se[he];me.inverted=!me.inverted,o.add(me)}}var ke=function(Ke,ht){for(var Ft=[],Ht=null,sr=0,Rr=Ke;sr<Rr.length;sr++){var Tr=Rr[sr],Yr=sn(Tr),br=new Qr,Ur=o.newSub();if(Kr(t,Yr,br,Ur),br.hasProblems()||Ft.push(Yr),!Ht)Ht={schema:Yr,validationResult:br,matchingSchemas:Ur};else if(!ht&&!br.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Ur),Ht.validationResult.propertiesMatches+=br.propertiesMatches,Ht.validationResult.propertiesValueMatches+=br.propertiesValueMatches;else{var yn=br.compare(Ht.validationResult);yn>0?Ht={schema:Yr,validationResult:br,matchingSchemas:Ur}:yn===0&&(Ht.matchingSchemas.merge(Ur),Ht.validationResult.mergeEnumValues(br))}}return Ft.length>1&&ht&&i.problems.push({location:{offset:t.offset,length:1},severity:Dt.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,o.merge(Ht.matchingSchemas)),Ft.length};Array.isArray(r.anyOf)&&ke(r.anyOf,!1),Array.isArray(r.oneOf)&&ke(r.oneOf,!0);var $e=function(Ke){var ht=new Qr,Ft=o.newSub();Kr(t,sn(Ke),ht,Ft),i.merge(ht),i.propertiesMatches+=ht.propertiesMatches,i.propertiesValueMatches+=ht.propertiesValueMatches,o.merge(Ft)},Ue=function(Ke,ht,Ft){var Ht=sn(Ke),sr=new Qr,Rr=o.newSub();Kr(t,Ht,sr,Rr),o.merge(Rr),sr.hasProblems()?Ft&&$e(Ft):ht&&$e(ht)},ze=sn(r.if);if(ze&&Ue(ze,sn(r.then),sn(r.else)),Array.isArray(r.enum)){for(var Be=xi(t),je=!1,We=0,Xe=r.enum;We<Xe.length;We++){var et=Xe[We];if(ra(Be,et)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(Ke){return JSON.stringify(Ke)}).join(", ")+"."})}if(Sn(r.const)){var Be=xi(t);ra(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Dt.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Dt.Warning,message:r.deprecationMessage})}function p(E,k,$,ie){var re=E.value;$r(k.multipleOf)&&re%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce($e,Ue){if($r(Ue))return Ue;if(ti(Ue)&&Ue)return $e}function ve($e,Ue){if(!ti(Ue)||!Ue)return $e}var he=ce(k.minimum,k.exclusiveMinimum);$r(he)&&re<=he&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=ce(k.maximum,k.exclusiveMaximum);$r(Se)&&re>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var me=ve(k.minimum,k.exclusiveMinimum);$r(me)&&re<me&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is below the minimum of "+me+"."});var ke=ve(k.maximum,k.exclusiveMaximum);$r(ke)&&re>ke&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Value is above the maximum of "+ke+"."})}function y(E,k,$,ie){if($r(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),$r(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),Ho(k.pattern)){var re=new RegExp(k.pattern);re.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var ce=void 0;if(!E.value)ce="URI expected.";else{var ve=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ve?!ve[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=vu[k.format];(!E.value||!he.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:k.patternErrorMessage||k.errorMessage||he.errorMessage});break;default:}}function S(E,k,$,ie){if(Array.isArray(k.items)){for(var re=k.items,ce=0;ce<re.length;ce++){var ve=re[ce],he=sn(ve),Se=new Qr,me=E.items[ce];me?(Kr(me,he,Se,ie),$.mergePropertyMatch(Se)):E.items.length>=re.length&&$.propertiesValueMatches++}if(E.items.length>re.length)if(typeof k.additionalItems=="object")for(var ke=re.length;ke<E.items.length;ke++){var Se=new Qr;Kr(E.items[ke],k.additionalItems,Se,ie),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var $e=sn(k.items);if($e)for(var Ue=0,ze=E.items;Ue<ze.length;Ue++){var me=ze[Ue],Se=new Qr;Kr(me,$e,Se,ie),$.mergePropertyMatch(Se)}}var Be=sn(k.contains);if(Be){var je=E.items.some(function(et){var Ke=new Qr;return Kr(et,Be,Ke,Vr.instance),!Ke.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:k.errorMessage||"Array does not contain required item."})}if($r(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),$r(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=xi(E),Xe=We.some(function(et,Ke){return Ke!==We.lastIndexOf(et)});Xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Array has duplicate items."})}}function w(E,k,$,ie){for(var re=Object.create(null),ce=[],ve=0,he=E.properties;ve<he.length;ve++){var Se=he[ve],me=Se.keyNode.value;re[me]=Se.valueNode,ce.push(me)}if(Array.isArray(k.required))for(var ke=0,$e=k.required;ke<$e.length;ke++){var Ue=$e[ke];if(!re[Ue]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Dt.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(Ci){for(var xl=ce.indexOf(Ci);xl>=0;)ce.splice(xl,1),xl=ce.indexOf(Ci)};if(k.properties)for(var We=0,Xe=Object.keys(k.properties);We<Xe.length;We++){var Ue=Xe[We];je(Ue);var et=k.properties[Ue],Ke=re[Ue];if(Ke)if(ti(et))if(et)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var ht=new Qr;Kr(Ke,et,ht,ie),$.mergePropertyMatch(ht)}}if(k.patternProperties)for(var Ft=0,Ht=Object.keys(k.patternProperties);Ft<Ht.length;Ft++)for(var sr=Ht[Ft],Rr=new RegExp(sr),Tr=0,Yr=ce.slice(0);Tr<Yr.length;Tr++){var Ue=Yr[Tr];if(Rr.test(Ue)){je(Ue);var Ke=re[Ue];if(Ke){var et=k.patternProperties[sr];if(ti(et))if(et)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var ht=new Qr;Kr(Ke,et,ht,ie),$.mergePropertyMatch(ht)}}}}if(typeof k.additionalProperties=="object")for(var br=0,Ur=ce;br<Ur.length;br++){var Ue=Ur[br],Ke=re[Ue];if(Ke){var ht=new Qr;Kr(Ke,k.additionalProperties,ht,ie),$.mergePropertyMatch(ht)}}else if(k.additionalProperties===!1&&ce.length>0)for(var yn=0,Jt=ce;yn<Jt.length;yn++){var Ue=Jt[yn],Ke=re[Ue];if(Ke){var Se=Ke.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Dt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if($r(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),$r(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var It=0,Nt=Object.keys(k.dependencies);It<Nt.length;It++){var me=Nt[It],lr=re[me];if(lr){var rn=k.dependencies[me];if(Array.isArray(rn))for(var vr=0,ms=rn;vr<ms.length;vr++){var yl=ms[vr];re[yl]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Dt.Warning,message:"Object is missing property "+yl+" required by property {$key}."})}else{var et=sn(rn);if(et){var ht=new Qr;Kr(E,et,ht,ie),$.mergePropertyMatch(ht)}}}}var Io=sn(k.propertyNames);if(Io)for(var Ki=0,ml=E.properties;Ki<ml.length;Ki++){var uf=ml[Ki],me=uf.keyNode;me&&Kr(me,Io,$,Vr.instance)}}}function bu(t,r){var i=[],o=-1,s=t.getText(),p=ci(s,!1),y=r&&r.collectComments?[]:void 0;function S(){for(;;){var ze=p.scan();switch($(),ze){case 12:case 13:Array.isArray(y)&&y.push($t.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return p.getToken()===ze?(S(),!0):!1}function E(ze,Be,je,We,Xe){if(Xe===void 0&&(Xe=Dt.Error),i.length===0||je!==o){var et=$t.create(t.positionAt(je),t.positionAt(We));i.push(pi.create(et,ze,Xe,Be,t.languageId)),o=je}}function k(ze,Be,je,We,Xe){je===void 0&&(je=null),We===void 0&&(We=[]),Xe===void 0&&(Xe=[]);var et=p.getTokenOffset(),Ke=p.getTokenOffset()+p.getTokenLength();if(et===Ke&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;Ke=et+1}if(E(ze,Be,et,Ke),je&&ie(je,!1),We.length+Xe.length>0)for(var ht=p.getToken();ht!==17;){if(We.indexOf(ht)!==-1){S();break}else if(Xe.indexOf(ht)!==-1)break;ht=S()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",Yt.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",Yt.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",Yt.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",Yt.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",Yt.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",Yt.InvalidCharacter),!0}return!1}function ie(ze,Be){return ze.length=p.getTokenOffset()+p.getTokenLength()-ze.offset,Be&&S(),ze}function re(ze){if(p.getToken()!==3)return null;var Be=new Ia(ze,p.getTokenOffset());S();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",Yt.ValueExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var et=ke(Be,je++);et?Be.items.push(et):k("Value expected",Yt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",Yt.CommaOrCloseBacketExpected,Be):ie(Be,!0)}function ce(ze,Be){var je=new gu(ze,p.getTokenOffset()),We=he(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",Yt.Undefined);var Xe=new ao(je,p.getTokenOffset(),p.getTokenLength());Xe.value=p.getTokenValue(),We=Xe,S()}else return null;je.keyNode=We;var et=Be[We.value];if(et?(E("Duplicate object key",Yt.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Dt.Warning),typeof et=="object"&&E("DuplicateKeyWarning",Yt.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,Dt.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),S();else if(k("Colon expected",Yt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var Ke=ke(je,We.value);return Ke?(je.valueNode=Ke,je.length=Ke.offset+Ke.length-je.offset,je):k("Value expected",Yt.ValueExpected,je,[],[2,5])}function ve(ze){if(p.getToken()!==1)return null;var Be=new el(ze,p.getTokenOffset()),je=Object.create(null);S();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",Yt.PropertyExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var et=ce(Be,je);et?Be.properties.push(et):k("Property expected",Yt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",Yt.CommaOrCloseBraceExpected,Be):ie(Be,!0)}function he(ze){if(p.getToken()!==10)return null;var Be=new ao(ze,p.getTokenOffset());return Be.value=p.getTokenValue(),ie(Be,!0)}function Se(ze){if(p.getToken()!==11)return null;var Be=new qs(ze,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!$r(We))return k("Invalid number format.",Yt.Undefined,Be);Be.value=We}catch(Xe){return k("Invalid number format.",Yt.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return ie(Be,!0)}function me(ze){var Be;switch(p.getToken()){case 7:return ie(new Uf(ze,p.getTokenOffset()),!0);case 8:return ie(new _s(ze,!0,p.getTokenOffset()),!0);case 9:return ie(new _s(ze,!1,p.getTokenOffset()),!0);default:return null}}function ke(ze,Be){return re(ze)||ve(ze)||he(ze)||Se(ze)||me(ze)}var $e=null,Ue=S();return Ue!==17&&($e=ke(null,null),$e?p.getToken()!==17&&k("End of file expected.",Yt.Undefined):k("Expected a JSON object, array or literal.",Yt.Undefined)),new oo($e,i,y)}function Xo(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
168
|
+
`,p=0;p<t.length;p++)s+=o+Xo(t[p],o,i),p<t.length-1&&(s+=","),s+=`
|
|
169
|
+
`;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
|
|
170
|
+
`,p=0;p<y.length;p++){var S=y[p];s+=o+JSON.stringify(S)+": "+Xo(t[S],o,i),p<y.length-1&&(s+=","),s+=`
|
|
171
|
+
`}return s+=r+"}",s}}return i(t)}function Fa(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 Qo(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function Zo(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function jf(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var so=[",","}","]"],Vf=[":"],ka=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,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 o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,p={items:[],isIncomplete:!1},y=r.getText(),S=r.offsetAt(i),w=o.getNodeFromOffset(S,!0);if(this.isInComment(r,w?w.offset:0,S))return Promise.resolve(p);if(w&&S===w.offset+w.length&&S>0){var E=y[S-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,S),$=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))$=$t.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ie=S-k.length;ie>0&&y[ie-1]==='"'&&ie--,$=$t.create(r.positionAt(ie),i)}var re=this.doesSupportsCommitCharacters(),ce={},ve={add:function(he){var Se=ce[he.label];Se?Se.documentation||(Se.documentation=he.documentation):(ce[he.label]=he,$&&(he.textEdit=zn.replace($,he.insertText)),re&&(he.commitCharacters=he.kind===on.Property?Vf:so),p.items.push(he))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(he){var Se=[],me=!0,ke="",$e=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(me=!Ue.valueNode,$e=Ue,ke=y.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===S)return p;var ze=w.properties;ze.forEach(function(Xe){(!$e||$e!==Xe)&&(ce[Xe.keyNode.value]=oa.create("__"))});var Be="";me&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt($.end))),he?s.getPropertyCompletions(he,o,w,me,Be,ve):s.getSchemaLessPropertyCompletions(o,w,ke,ve);var je=Jo(w);s.contributions.forEach(function(Xe){var et=Xe.collectPropertyCompletions(r.uri,je,k,me,Be==="",ve);et&&Se.push(et)}),!he&&k.length>0&&y.charAt(S-k.length-1)!=='"'&&(ve.add({kind:on.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Be),insertTextFormat:Nr.Snippet,documentation:""}),ve.setAsIncomplete())}var We={};return he?s.getValueCompletions(he,o,w,S,r,ve,We):s.getSchemaLessValueCompletions(o,w,S,r,ve),s.contributions.length>0&&s.getContributedValueCompletions(o,w,S,r,ve,Se),s.promiseConstructor.all(Se).then(function(){if(ve.getNumberOfProposals()===0){var Xe=S;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Xe=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Xe);s.addFillerValueCompletions(We,et,ve)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,y){var S=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var k=E.schema.properties;k&&Object.keys(k).forEach(function($){var ie=k[$],re=!1;if(typeof ie=="object"&&ie.allOf)for(var ce=0,ve=ie.allOf;ce<ve.length;ce++){var he=ve[ce];if(he.readOnly){re=!0;break}}if(typeof ie=="object"&&!ie.deprecationMessage&&!ie.doNotSuggest&&!re){var Se={kind:on.Property,label:S.sanitizeLabel($),insertText:S.getInsertTextForProperty($,ie,s,p),insertTextFormat:Nr.Snippet,filterText:S.getFilterTextForValue($),documentation:S.fromMarkup(ie.markdownDescription)||ie.description||""};Qo(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,y=function(w){w.properties.forEach(function(E){var k=E.keyNode.value;s.add({kind:on.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:Nr.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var S=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===S&&w.valueNode&&w.valueNode.type==="object"&&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:on.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Nr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,p){var y=this,S=o;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(S=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Nr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Nr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,S),E=function(re){fa(re.parent,o,!0)||p.add({kind:y.getSuggestionKind(re.type),label:y.getLabelTextForMatchingNode(re,s),insertText:y.getInsertTextForMatchingNode(re,s,w),insertTextFormat:Nr.Snippet,documentation:""}),re.type==="boolean"&&y.addBooleanValueCompletion(!re.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var k=i.valueNode;if(k&&(o>k.offset+k.length||k.type==="object"||k.type==="array"))return;var $=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===$&&re.valueNode&&E(re.valueNode),!0}),$==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ie=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===ie&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,o,s,p,y,S){var w=this,E=s,k=null,$=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,$=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,S);return}if(o.type==="property"&&s>o.colonOffset){var ie=o.valueNode;if(ie&&s>ie.offset+ie.length)return;k=o.keyNode.value,o=o.parent}if(o&&(k!==null||o.type==="array")){var re=this.evaluateSeparatorAfter(p,E),ce=i.getMatchingSchemas(r.schema,o.offset,$);ce.forEach(function(ve){if(ve.node===o&&!ve.inverted&&ve.schema){if(o.type==="array"&&ve.schema.items)if(Array.isArray(ve.schema.items)){var he=w.findItemAtOffset(o,p,s);he<ve.schema.items.length&&w.addSchemaValueCompletions(ve.schema.items[he],re,y,S)}else w.addSchemaValueCompletions(ve.schema.items,re,y,S);if(ve.schema.properties){var Se=ve.schema.properties[k];Se&&w.addSchemaValueCompletions(Se,re,y,S)}}}),k==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(re,y),S.boolean&&(this.addBooleanValueCompletion(!0,re,y),this.addBooleanValueCompletion(!1,re,y)),S.null&&this.addNullValueCompletion(re,y)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,y){if(!i)this.contributions.forEach(function(k){var $=k.collectDefaultCompletions(s.uri,p);$&&y.push($)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var S=i.keyNode.value,w=i.valueNode;if(!w||o<=w.offset+w.length){var E=Jo(i.parent);this.contributions.forEach(function(k){var $=k.collectValueCompletions(s.uri,E,S,p);$&&y.push($)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var y=!1;if(Sn(r.default)){for(var S=r.type,w=r.default,E=s;E>0;E--)w=[w],S="array";o.add({kind:this.getSuggestionKind(S),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Nr.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var $=r.type,ie=k,re=s;re>0;re--)ie=[ie],$="array";o.add({kind:p.getSuggestionKind($),label:p.getLabelForValue(ie),insertText:p.getInsertTextForValue(ie,i),insertTextFormat:Nr.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var $=r.type,ie=k.body,re=k.label,ce,ve;if(Sn(ie)){for(var he=r.type,Se=s;Se>0;Se--)ie=[ie],he="array";ce=p.getInsertTextForSnippetValue(ie,i),ve=p.getFilterTextForSnippetValue(ie),re=re||p.getLabelForSnippetValue(ie)}else if(typeof k.bodyText=="string"){for(var me="",ke="",$e="",Se=s;Se>0;Se--)me=me+$e+`[
|
|
172
|
+
`,ke=ke+`
|
|
173
|
+
`+$e+"]",$e+=" ",$="array";ce=me+$e+k.bodyText.split(`
|
|
174
|
+
`).join(`
|
|
175
|
+
`+$e)+ke+i,re=re||p.sanitizeLabel(ce),ve=ce.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind($),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:ce,insertTextFormat:Nr.Snippet,filterText:ve}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(Sn(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Nr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var y=r.enum[s],S=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?S=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(S=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:Nr.Snippet,documentation:S})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||Sn(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Nr.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Nr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Nr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Nr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:on.Module,label:o.getLabelForValue(p),filterText:o.getFilterTextForValue(p),insertText:o.getInsertTextForValue(p,r),insertTextFormat:Nr.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 o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Xo(r,"",o)+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 o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+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 on.Value;switch(r){case"string":return on.Value;case"object":return on.Module;case"property":return on.Property;default:return on.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var p=this.getInsertTextForValue(r,"");if(!o)return p;var y=p+": ",S,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;Sn(E)&&(S=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!S&&i.enum.length===1&&(S=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),Sn(i.default)&&(S||(S=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var k=Array.isArray(i.type)?i.type[0]:i.type;switch(k||(i.properties?k="object":i.items&&(k="array")),k){case"boolean":S="$1";break;case"string":S='"$1"';break;case"object":S="{$1}";break;case"array":S="[$1]";break;case"number":case"integer":S="${1:0}";break;case"null":S="${1:null}";break;default:return p}}}return(!S||w>1)&&(S="$1"),y+S+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
|
|
176
|
+
\r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=ci(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=ci(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var S=p[y];if(o>S.offset+S.length){s.setPosition(S.offset+S.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=S.offset)return y}return 0},t.prototype.isInComment=function(r,i,o){var s=ci(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<o;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:vi.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!Sn(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(vi.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!Sn(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),wu=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),p=o.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var y=p;if(p.type==="string"){var S=p.parent;if(S&&S.type==="property"&&S.keyNode===p&&(p=S.valueNode,!p))return this.promise.resolve(null)}for(var w=$t.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(ce){var ve={contents:ce,range:w};return ve},k=Jo(p),$=this.contributions.length-1;$>=0;$--){var ie=this.contributions[$],re=ie.getInfoContribution(r.uri,k);if(re)return re.then(function(ce){return E(ce)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(ce){if(ce){var ve=o.getMatchingSchemas(ce.schema,p.offset),he=null,Se=null,me=null,ke=null;ve.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(he=he||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||_o(Ue.schema.description),Ue.schema.enum)){var ze=Ue.schema.enum.indexOf(xi(p));Ue.schema.markdownEnumDescriptions?me=Ue.schema.markdownEnumDescriptions[ze]:Ue.schema.enumDescriptions&&(me=_o(Ue.schema.enumDescriptions[ze])),me&&(ke=Ue.schema.enum[ze],typeof ke!="string"&&(ke=JSON.stringify(ke)))}return!0});var $e="";return he&&($e=_o(he)),Se&&($e.length>0&&($e+=`
|
|
177
|
+
|
|
178
|
+
`),$e+=Se),me&&($e.length>0&&($e+=`
|
|
179
|
+
|
|
180
|
+
`),$e+="`"+Su(ke)+"`: "+me),E([$e])}return null})},t}();function _o(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
181
|
+
|
|
182
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Su(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var lo=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),dr,bi;if(typeof process=="object")bi=!1;else if(typeof navigator=="object"){var uo=navigator.userAgent;bi=uo.indexOf("Windows")>=0}function Wf(t){return 55296<=t&&t<=56319}function Od(t){return 56320<=t&&t<=57343}function Hf(t){return t>=97&&t<=102}function ji(t){return t>=97&&t<=122}function Ma(t){return t>=65&&t<=90}function qo(t){return ji(t)||Ma(t)}var zf=/^\w[\w\d+.-]*$/,Au=/^\//,Gf=/^\/\//;function $f(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&&!zf.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Au.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(Gf.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 Kf(t,r){return!t&&!r?"file":t}function ln(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==Gn&&(r=Gn+r):r=Gn;break}return r}var ir="",Gn="/",Yf=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,tl=function(){function t(r,i,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||ir,this.authority=r.authority||ir,this.path=r.path||ir,this.query=r.query||ir,this.fragment=r.fragment||ir):(this.scheme=Kf(r,y),this.authority=i||ir,this.path=ln(this.scheme,o||ir),this.query=s||ir,this.fragment=p||ir,$f(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 Cu(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,p=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=ir),o===void 0?o=this.authority:o===null&&(o=ir),s===void 0?s=this.path:s===null&&(s=ir),p===void 0?p=this.query:p===null&&(p=ir),y===void 0?y=this.fragment:y===null&&(y=ir),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ca(i,o,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var o=Yf.exec(r);return o?new ca(o[2]||ir,Vi(o[4]||ir),Vi(o[5]||ir),Vi(o[7]||ir),Vi(o[9]||ir),i):new ca(ir,ir,ir,ir,ir)},t.file=function(r){var i=ir;if(bi&&(r=r.replace(/\\/g,Gn)),r[0]===Gn&&r[1]===Gn){var o=r.indexOf(Gn,2);o===-1?(i=r.substring(2),r=Gn):(i=r.substring(2,o),r=r.substring(o)||Gn)}return new ca("file",i,r,ir,ir)},t.from=function(r){return new ca(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),ii(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new ca(r);return i._formatted=r.external,i._fsPath=r._sep===rl?r.fsPath:null,i}else return r},t}(),rl=bi?1:void 0,ca=function(t){lo(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=Cu(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?ii(this,!0):(this._formatted||(this._formatted=ii(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=rl),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}(tl),nl=(dr={},dr[58]="%3A",dr[47]="%2F",dr[63]="%3F",dr[35]="%23",dr[91]="%5B",dr[93]="%5D",dr[64]="%40",dr[33]="%21",dr[36]="%24",dr[38]="%26",dr[39]="%27",dr[40]="%28",dr[41]="%29",dr[42]="%2A",dr[43]="%2B",dr[44]="%2C",dr[59]="%3B",dr[61]="%3D",dr[32]="%20",dr);function Eu(t,r){for(var i=void 0,o=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=nl[p];y!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=y):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Jf(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=nl[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Cu(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,bi&&(i=i.replace(/\//g,"\\")),i}function ii(t,r){var i=r?Jf:Eu,o="",s=t.scheme,p=t.authority,y=t.path,S=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=Gn,o+=Gn),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?o+=i(k,!1):(o+=i(k.substr(0,E),!1),o+=":",o+=i(k.substr(E+1),!1)),o+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?o+=i(p,!1):(o+=i(p.substr(0,E),!1),o+=p.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var $=y.charCodeAt(1);$>=65&&$<=90&&(y="/"+String.fromCharCode($+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var $=y.charCodeAt(0);$>=65&&$<=90&&(y=String.fromCharCode($+32)+":"+y.substr(2))}o+=i(y,!0)}return S&&(o+="?",o+=i(S,!1)),w&&(o+="#",o+=r?w:Eu(w,!1)),o}function Ra(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+Ra(t.substr(3)):t}}var fo=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Vi(t){return t.match(fo)?t.replace(fo,function(r){return Ra(r)}):t}var wi=function(){function t(r){try{this.patternRegExp=new RegExp(Zo(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}(),Xf=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new La(o)))}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}(),La=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),da=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return sn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var y=p[s],S=new RegExp(y);if(S.test(o))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(o,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}(),Ou=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||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 o=tl.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},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,o=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[S]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return tl.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var S=p[y];this.contributionAssociations[y]=S;for(var w=this.getOrAddFilePatternAssociation(y),E=0,k=S;E<k.length;E++){var $=k[E],o=this.normalizeId($);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Xf(this,r,i);return this.schemasById[r]=o,o},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 wi(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,y=i;p<y.length;p++){var S=y[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return o?this.addSchemaHandle(s,o):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 o=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var y=p[s],r=this.normalizeId(y);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+co(r)+"'. No schema request service available";return this.promise.resolve(new La({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+co(r)+"': No content.";return new La({},[s])}var p={},y=[];p=Bs(o,y);var S=y.length?["Unable to parse content from '"+co(r)+"': Parse error at offset "+y[0].offset]:[];return new La(p,S)},function(o){var s="Unable to load schema from '"+co(r)+"': "+o.toString();return new La({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var S=this.normalizeId(y.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new da({},["Draft-03 schemas are not supported."]));S==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(re,ce){if(!ce)return re;var ve=re;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(he){return ve=ve[he],!ve}),ve},k=function(re,ce,ve,he){var Se=E(ce,he);if(Se)for(var me in Se)Se.hasOwnProperty(me)&&!re.hasOwnProperty(me)&&(re[me]=Se[me]);else p.push("$ref '"+he+"' in '"+ve+"' can not be resolved.")},$=function(re,ce,ve,he,Se){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,he)),ce=s.normalizeId(ce);var me=s.getOrAddSchemaHandle(ce);return me.getUnresolvedSchema().then(function(ke){if(Se[ce]=!0,ke.errors.length){var $e=ve?ce+"#"+ve:ce;p.push("Problems loading reference '"+$e+"': "+ke.errors[0]+".")}return k(re,ke.schema,ce,ve),ie(re,ke.schema,ce,me.dependencies)})},ie=function(re,ce,ve,he){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],me=[],ke=[],$e=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];typeof ht=="object"&&Se.push(ht)}},Ue=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];if(typeof ht=="object")for(var Ft in ht){var Ht=ht[Ft];typeof Ht=="object"&&Se.push(Ht)}}},ze=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var et=0,Ke=We;et<Ke.length;et++){var ht=Ke[et];if(Array.isArray(ht))for(var Ft=0,Ht=ht;Ft<Ht.length;Ft++){var sr=Ht[Ft];typeof sr=="object"&&Se.push(sr)}}},Be=function(We){for(var Xe=[];We.$ref;){var et=We.$ref,Ke=et.split("#",2);if(delete We.$ref,Ke[0].length>0){ke.push($(We,Ke[0],Ke[1],ve,he));return}else Xe.indexOf(et)===-1&&(k(We,ce,ve,Ke[1]),Xe.push(et))}$e(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 je=Se.pop();me.indexOf(je)>=0||(me.push(je),Be(je))}return s.promise.all(ke)};return ie(y,y,i,o).then(function(re){return new da(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(o.length>0){var s=xi(o[0].valueNode);if(s&&Fa(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,ie=k.getSchemas();$<ie.length;$++){var re=ie[$];y[re]||(S.push(re),y[re]=!0)}}return S.length>0?this.createCombinedSchema(r,S).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function co(t){try{}catch(r){}return t}var Tu=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Dt.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],S={},w=function($){var ie=$.range.start.line+" "+$.range.start.character+" "+$.message;S[ie]||(S[ie]=!0,y.push($))},E=function($){var ie=o?rs(o.trailingCommas):Dt.Error,re=o?rs(o.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var ce=i.root,ve=ce.type==="object"?ce.properties[0]:null;if(ve&&ve.keyNode.value==="$schema"){var he=ve.valueNode||ve,Se=$t.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(pi.create(Se,$.errors[0],Dt.Warning,Yt.SchemaResolveError))}else{var Se=$t.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(pi.create(Se,$.errors[0],Dt.Warning,Yt.SchemaResolveError))}}else{var me=i.validate(r,$.schema);me&&me.forEach(w)}pa($.schema)&&(re=void 0),ts($.schema)&&(ie=void 0)}for(var ke=0,$e=i.syntaxErrors;ke<$e.length;ke++){var Ue=$e[ke];if(Ue.code===Yt.TrailingComma){if(typeof ie!="number")continue;Ue.severity=ie}w(Ue)}if(typeof re=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(pi.create(Be,ze,re,Yt.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+es++;return this.jsonSchemaService.resolveSchemaContent(new La(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),es=0;function pa(t){if(t&&typeof t=="object"){if(ti(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=pa(o);if(ti(s))return s}}}function ts(t){if(t&&typeof t=="object"){if(ti(t.allowTrailingCommas))return t.allowTrailingCommas;if(ti(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=ts(o);if(ti(s))return s}}}function rs(t){switch(t){case"error":return Dt.Error;case"warning":return Dt.Warning;case"ignore":return}}var ns=48,Qf=57,po=65,ho=97,Zf=102;function Er(t){return t<ns?0:t<=Qf?t-ns:(t<ho&&(t+=ho-po),t>=ho&&t<=Zf?t-ho+10:0)}function is(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Er(t.charCodeAt(1))*17/255,green:Er(t.charCodeAt(2))*17/255,blue:Er(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Er(t.charCodeAt(1))*17/255,green:Er(t.charCodeAt(2))*17/255,blue:Er(t.charCodeAt(3))*17/255,alpha:Er(t.charCodeAt(4))*17/255};case 7:return{red:(Er(t.charCodeAt(1))*16+Er(t.charCodeAt(2)))/255,green:(Er(t.charCodeAt(3))*16+Er(t.charCodeAt(4)))/255,blue:(Er(t.charCodeAt(5))*16+Er(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Er(t.charCodeAt(1))*16+Er(t.charCodeAt(2)))/255,green:(Er(t.charCodeAt(3))*16+Er(t.charCodeAt(4)))/255,blue:(Er(t.charCodeAt(5))*16+Er(t.charCodeAt(6)))/255,alpha:(Er(t.charCodeAt(7))*16+Er(t.charCodeAt(8)))/255}}return null}function Td(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var _f=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=o.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Qo(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ie=0,re=$.properties;ie<re.length;ie++){var ce=re[ie];if(ce.keyNode.value==="key"&&ce.valueNode){var ve=di.create(r.uri,Fn(r,$));if(w.push({name:xi(ce.valueNode),kind:Wt.Function,location:ve}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S),w}}}return w}var he=function(me,ke,$e){return y>=0&&(ke.type==="array"?ke.items.forEach(function(Ue){return he(me,Ue,$e)}):ke.type==="object"&&ke.properties.forEach(function(Ue){if(y>=0){var ze=Ue.valueNode;if(ze){y--;var Be=di.create(r.uri,Fn(r,Ue)),je=$e?$e+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),location:Be,containerName:$e}),he(me,ze,je)}}})),me},Se=he([],p,void 0);return y<0&&(Se.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=o.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Qo(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ie=0,re=$.properties;ie<re.length;ie++){var ce=re[ie];if(ce.keyNode.value==="key"&&ce.valueNode){var ve=Fn(r,$),he=Fn(r,ce.keyNode);if(w.push({name:xi(ce.valueNode),kind:Wt.Function,range:ve,selectionRange:he}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S),w}}}return w}var Se=function(ke,$e){return y>=0&&($e.type==="array"?$e.items.forEach(function(Ue,ze){if(Ue&&y>=0){y--;var Be=Fn(r,Ue),je=Be,We=String(ze),Xe=Se([],Ue);ke.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Xe})}}):$e.type==="object"&&$e.properties.forEach(function(Ue){var ze=Ue.valueNode;if(ze&&y>=0){y--;var Be=Fn(r,Ue),je=Fn(r,Ue.keyNode),We=Se([],ze);ke.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(ze.type),range:Be,selectionRange:je,children:We})}})),ke},me=Se([],p);return y<0&&(me.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Wt.Module;case"string":return Wt.String;case"number":return Wt.Number;case"array":return Wt.Array;case"boolean":return Wt.Boolean;default:return Wt.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,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,S=i.getMatchingSchemas(s.schema),w={},E=0,k=S;E<k.length;E++){var $=k[E];if(!$.inverted&&$.schema&&($.schema.format==="color"||$.schema.format==="color-hex")&&$.node&&$.node.type==="string"){var ie=String($.node.offset);if(!w[ie]){var re=is(xi($.node));if(re){var ce=Fn(r,$.node);p.push({color:re,range:ce})}if(w[ie]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],y=Math.round(o.red*255),S=Math.round(o.green*255),w=Math.round(o.blue*255);function E($){var ie=$.toString(16);return ie.length!==2?"0"+ie:ie}var k;return o.alpha===1?k="#"+E(y)+E(S)+E(w):k="#"+E(y)+E(S)+E(w)+E(Math.round(o.alpha*255)),p.push({label:k,textEdit:zn.replace(s,JSON.stringify(k))}),p},t}();function Fn(t,r){return $t.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Pu={schemaAssociations:{},schemas:{}};function Iu(t,r){var i=[],o=[],s=[],p=-1,y=ci(t.getText(),!1),S=y.scan();function w(Xe){i.push(Xe),o.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,k={startLine:E,endLine:E,kind:S===1?"object":"array"};s.push(k);break}case 2:case 4:{var $=S===2?"object":"array";if(s.length>0&&s[s.length-1].kind===$){var k=s.pop(),ie=t.positionAt(y.getTokenOffset()).line;k&&ie>k.startLine+1&&p!==k.startLine&&(k.endLine=ie-1,w(k),p=k.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(Pn.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:Oa.Comment}),p=E);break}case 12:{var ce=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ve=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ve){var ie=t.positionAt(y.getTokenOffset()).line;if(ve[1]){var k={startLine:ie,endLine:ie,kind:Oa.Region};s.push(k)}else{for(var he=s.length-1;he>=0&&s[he].kind!==Oa.Region;)he--;if(he>=0){var k=s[he];s.length=he,ie>k.startLine&&p!==k.startLine&&(k.endLine=ie,w(k),p=k.startLine)}}}break}}S=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=[],ke=0,$e=o;ke<$e.length;ke++){var Ue=$e[ke];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var ze=0,Be=0,he=0;he<me.length;he++){var je=me[he];if(je){if(je+ze>Se){Be=he;break}ze+=je}}for(var We=[],he=0;he<i.length;he++){var Ue=o[he];typeof Ue=="number"&&(Ue<Be||Ue===Be&&ze++<Se)&&We.push(i[he])}return We}function qf(t,r,i){function o(S){for(var w=t.offsetAt(S),E=i.getNodeFromOffset(w,!0),k=[];E;){switch(E.type){case"string":case"object":case"array":var $=E.offset+1,ie=E.offset+E.length-1;$<ie&&w>=$&&w<=ie&&k.push(s($,ie)),k.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":k.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&&k.push(s(E.offset,re))}E=E.parent}for(var ce=void 0,ve=k.length-1;ve>=0;ve--)ce=no.create(k[ve],ce);return ce||(ce=no.create($t.create(S,S))),ce}function s(S,w){return $t.create(t.positionAt(S),t.positionAt(w))}var p=ci(t.getText(),!0);function y(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function il(t){var r=t.promiseConstructor||Promise,i=new Ou(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Pu);var o=new ka(i,t.contributions,r,t.clientCapabilities),s=new wu(i,t.contributions,r),p=new _f(i),y=new Tu(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(S){return bu(S,{collectComments:!0})},newJSONDocument:function(S,w){return xu(S,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(S,w){return p.findDocumentColors(S,w).then(function(E){return E.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Iu,getSelectionRanges:qf,format:function(S,w,E){var k=void 0;if(w){var $=S.offsetAt(w.start),ie=S.offsetAt(w.end)-$;k={offset:$,length:ie}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
183
|
+
`};return Bf(S.getText(),k,re).map(function(ce){return zn.replace($t.create(S.positionAt(ce.offset),S.positionAt(ce.offset+ce.length)),ce.content)})}}}var ec=a(96876),Pd=a(4328),tc=a(3256),rc=a(71707),Id=a(82801),Fu=a(32095),as=a(86081),os=a(44254),Fd=a(75019),nc=a(13837),ku=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const Da=il({});qi.registerHelper("lint","json",function(t,r){return ku(this,null,function*(){const{schema:i,setError:o}=r;Da.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=la.create(r.id+".json","json",0,t),p=Da.parseJSONDocument(s),y=yield Da.doValidation(s,p);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(S=>({from:qi.Pos(S.range.start.line,S.range.start.character),to:qi.Pos(S.range.end.line,S.range.end.character),message:S.message}))})}),qi.registerHelper("hint","json",(t,r)=>ku(void 0,null,function*(){const i=r.schema;if(!i)return;Da.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=la.create(r.id+".json","json",0,t.getValue()),y=Da.parseJSONDocument(p),S=yield Da.doComplete(p,{line:o.line,character:o.ch},y),w=k=>{let $="";for(;k--;)$+=" ";return $};let E=S?S.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:($,ie,re)=>{const ce="_$__REDOC_CURSOR_HERE";let ve=re.text.replace(/(\$1|\${1:[^}]+})/,ce)||"";if(ve=ve.replace(/(\$\d+|\${[^}]+})/g,"")||"",$.setSelection(re.from,re.to),ve.indexOf(`
|
|
184
|
+
`)>-1){const Se=$.getLine($.getCursor().line).search(/(\S|$)/);ve=ve.replace(/\n/g,`
|
|
185
|
+
`+w(Se))}$.replaceSelection(ve);const he=$.getSearchCursor(ce,re.from);he.findNext()&&($.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:qi.Pos(o.line,s.start),to:qi.Pos(o.line,o.ch),list:E}}));var ic=Object.defineProperty,ac=(t,r,i)=>r in t?ic(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,vo=(t,r,i)=>(ac(t,typeof r!="symbol"?r+"":r,i),i);const oc=b.createGlobalStyle`
|
|
186
|
+
.cm-s-material.CodeMirror {
|
|
187
|
+
background-color: var(--samples-panel-controls-background-color)!important;
|
|
188
|
+
color: var(--color-content-inverse)!important;
|
|
189
|
+
font-family: var(--code-font-family);
|
|
190
|
+
line-height: 18px;
|
|
191
|
+
padding: 10px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.CodeMirror-lint-mark-error {
|
|
195
|
+
background-size: 4px;
|
|
196
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
|
|
200
|
+
background: rgba(255, 255, 255, 0.3) !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.cm-s-material .CodeMirror-code .cm-string.cm-property {
|
|
204
|
+
color: #9EFAA7;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.cm-s-material .CodeMirror-code .cm-string {
|
|
208
|
+
color: #FEE39E;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.cm-s-material .CodeMirror-code .cm-atom {
|
|
212
|
+
color: var(--color-content-inverse);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
div .cm-s-material .CodeMirror-matchingbracket {
|
|
216
|
+
outline: 1px solid grey;
|
|
217
|
+
text-decoration: none;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.react-codemirror2 {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
justify-content: flex-start;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
|
|
226
|
+
flex: 1;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.CodeMirror {
|
|
230
|
+
flex: 1;
|
|
231
|
+
border-radius: var(--panels-border-radius);
|
|
232
|
+
}
|
|
233
|
+
`;class sc extends d.Component{constructor(){super(...arguments);vo(this,"editor"),vo(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),vo(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),vo(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:o,setError:s}=this.props.fieldApi,{onChange:p,onBlur:y,forwardedRef:S}=this.props;return d.createElement(d.Fragment,null,d.createElement(oc,null),d.createElement(Vn.fk,{editorDidMount:this.initEditor,value:r||"",ref:S||void 0,onBeforeChange:(w,E,k)=>{i(k),p&&p(k)},onBlur:w=>{o(),y&&y(w)},options:{mode:this.props.mode||"application/json",theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const Mu=On(sc),al=(0,b.default)(Gl.A3)`
|
|
234
|
+
border-radius: var(--panels-border-radius);
|
|
235
|
+
margin-bottom: 10px;
|
|
236
|
+
`;var ss=a(67897),Si=a(64776),lc=a(68929),kn;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(kn||(kn={}));var go;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(go||(go={}));var Wi;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(Wi||(Wi={}));var Ru=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const Lu=Object.values(go),uc=["application/octet-stream","application/pdf","application/gzip","application/zip"],fr=["image/","audio/","video/"];function Du(t){if(fr.some(r=>t.startsWith(r)))return t}function Na(t){return uc.includes(t)?!0:fr.some(r=>t.startsWith(r))}function yo(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||"",o=r.format||r.contentEncoding||(Na(i)?"binary":"");return r.type===kn.STRING&&Lu.includes(o)}function Mn(t,r){if(!t||!t.type||t.type==="any")return Na(r);const i=t.format||t.contentEncoding||"";return t.type===kn.STRING&&Lu.includes(i)}function mo(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function ls({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(go.BASE64)}function Nu(t,r){return Ru(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===kn.STRING&&ls(r)?o=yield mo(i[0]):r.type===kn.ARRAY&&r.items&&(ls(r.items)?o=yield Promise.all(i.map(p=>Ru(this,null,function*(){return yield mo(p)}))):o=i),o})}var Bu=Object.defineProperty,xo=Object.getOwnPropertySymbols,ol=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,Uu=(t,r,i)=>r in t?Bu(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ll=(t,r)=>{for(var i in r||(r={}))ol.call(r,i)&&Uu(t,i,r[i]);if(xo)for(var i of xo(r))sl.call(r,i)&&Uu(t,i,r[i]);return t},ju=(t,r)=>{var i={};for(var o in t)ol.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&xo)for(var o of xo(t))r.indexOf(o)<0&&sl.call(t,o)&&(i[o]=t[o]);return i},tr=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const Vu=d.forwardRef((t,r)=>{var i=ju(t,[]);const{schema:o,contentName:s,onChange:p,name:y}=i,{render:S}=Jn(ll({field:y},i)),w=E=>tr(void 0,null,function*(){const k=yield Nu(E.target.files,o);p(s,k)});return S(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))}),fc=(0,Ga.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:y}=(0,ss.C6)(i.operation,p),S=(r=p[y])==null?void 0:r.rawValue,w=Ba(i);(0,d.useEffect)(()=>s&&w.forEach(k=>{var $,ie;const re=S==null?void 0:S[k.name],ce=(ie=($=k.example)!=null?$:re==null?void 0:re.example)!=null?ie:re;ce!==void 0&&s.setValue("body."+k.name,`${ce}`)}),[y]);const E=i.schema||{};return Mn(E,i.name)?d.createElement(Wu,null,d.createElement(Et.NI,null,d.createElement(bo,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:Du(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==kn.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(Wu,null,w.map(k=>{const $=k.schema||{},ie=i.name===Wi.MULTIPART&&yo($),re=$.contentMediaType||"",ce=ie?d.createElement(bo,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:Du(re),multiple:$.type==="array",schema:$,contentName:k.name,onChange:o}):d.createElement(hn,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:$.description||k.name,panel:"try-it"});return d.createElement(Et.NI,{key:k.name},d.createElement(Et.lX,null,k.name,":"),ce)}))});function Ba(t){var r,i,o,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(y=>!y.schema.readOnly)}const Wu=b.default.div`
|
|
237
|
+
> div {
|
|
238
|
+
margin-top: 10px;
|
|
239
|
+
}
|
|
240
|
+
`,bo=(0,b.default)(Vu)`
|
|
241
|
+
${Rl("try-it")};
|
|
242
|
+
${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
|
|
243
|
+
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
244
|
+
`;var cc=Object.defineProperty,Cr=Object.defineProperties,dc=Object.getOwnPropertyDescriptors,us=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?cc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))Hu.call(r,i)&&e(t,i,r[i]);if(us)for(var i of us(r))wo.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>Cr(t,dc(r)),l=(t,r)=>{var i={};for(var o in t)Hu.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&us)for(var o of us(t))r.indexOf(o)<0&&wo.call(t,o)&&(i[o]=t[o]);return i},f=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const m=(0,Ga.Pi)(t=>{var r=t,{properties:i={}}=r,o=l(r,["properties"]),s;const p=o.body.content,y=o.console.formApi,S=ve=>{var he;if(!p||!p.hasSample)return"";const Se=(he=p.active)==null?void 0:he.examples;if(!(Se==null?void 0:Se[ve]))return"";const me=Za()(Se==null?void 0:Se[ve].value,i,{arrayMerge:Si.lN});return JSON.stringify(me,null,2)},w=(s=p==null?void 0:p.operation)==null?void 0:s.activeExampleName,E=ve=>{var he;(he=p==null?void 0:p.operation)==null||he.activateExampleName(ve),y.setValue("body",S(ve))},k=ve=>{if(!ve)return"";if(ve.mime==="application/x-www-form-urlencoded")return ve.value;const he=Za()(ve.value,i,{arrayMerge:Si.lN});return JSON.stringify(he,null,2)},$=(ve,he)=>f(void 0,null,function*(){const{setValue:Se}=y;Se(`body.${ve}`,he)});(0,d.useEffect)(()=>{w!==!1?w&&y.setValue("body",S(w)):y.setValue("body",JSON.stringify(i,null,2))},[w]);const{validate:ie,body:re}=o,ce=ve=>d.createElement(an.DropdownOrLabel,u(n({},ve),{variant:"dark",fullWidth:!0,Label:al,Dropdown:wn.VD}));return d.createElement(d.Fragment,null,d.createElement(an.MediaTypesSwitch,{content:re.content,renderDropdown:ce},ve=>{var he;const Se=ve.examples||{},me=Object.keys(Se),ke=ve.schema,$e=Mn(ke||{},ve.name)||ve.name===Wi.MULTIPART||ve.name===Wi.URL_ENCODED,{exampleKey:Ue}=(0,ss.C6)(ve.operation,Se),ze=Se[Ue];return d.createElement(d.Fragment,null,me.length&&me.length!==1&&d.createElement(ss.b_,{examples:Se,onChange:E,exampleKey:Ue,panel:"try-it"})||null,$e?d.createElement(fc,{mediaType:ve,formApi:y,onChange:$.bind(void 0)}):d.createElement(Mu,{id:"body"+o.id,field:"body",initialValue:k(ze),schema:(((he=o==null?void 0:o.resolvedBody)==null?void 0:he.content[ve.name])||{}).schema,mode:ve.name,validate:ie}))}))}),F=b.default.div`
|
|
245
|
+
display: flex;
|
|
246
|
+
font-size: 12px;
|
|
247
|
+
button {
|
|
248
|
+
margin: 0;
|
|
249
|
+
}
|
|
250
|
+
`,U=b.default.button`
|
|
251
|
+
outline: none;
|
|
252
|
+
border: none;
|
|
253
|
+
background-color: var(--try-it-panel-tab-background-color);
|
|
254
|
+
text-align: center;
|
|
255
|
+
cursor: pointer;
|
|
256
|
+
color: var(--color-content-inverse);
|
|
257
|
+
min-width: 80px;
|
|
258
|
+
min-height: 30px;
|
|
259
|
+
border-radius: var(--global-border-radius);
|
|
260
|
+
font-size: 12px;
|
|
261
|
+
padding: 0 10px;
|
|
262
|
+
border-top: 4px solid transparent;
|
|
263
|
+
border-bottom: 4px solid transparent;
|
|
264
|
+
|
|
265
|
+
&:first-child {
|
|
266
|
+
border-radius: var(--global-border-radius) 0 0 var(--global-border-radius);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:last-child {
|
|
270
|
+
border-radius: 0 var(--global-border-radius) var(--global-border-radius) 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
${({active:t})=>t&&b.css`
|
|
274
|
+
border-bottom: 4px solid var(--try-it-panel-active-tab-border-color);
|
|
275
|
+
background-color: var(--try-it-panel-active-tab-background-color);
|
|
276
|
+
`||""}
|
|
277
|
+
|
|
278
|
+
${({disabled:t})=>t&&b.css`
|
|
279
|
+
cursor: default;
|
|
280
|
+
color: var(--try-it-panel-disabled-tab-color);
|
|
281
|
+
`||""}
|
|
282
|
+
`;function H({onChange:t,active:r,hasResponse:i}){return d.createElement(F,null,d.createElement(U,{onClick:()=>t(0),active:r===0},i?"Edit Request":"Request"),d.createElement(U,{onClick:()=>i&&t(1),active:r===1,disabled:!i}," ","Response"," "))}var Z=Object.defineProperty,xe=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,rt=(t,r,i)=>r in t?Z(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,st=(t,r)=>{for(var i in r||(r={}))Me.call(r,i)&&rt(t,i,r[i]);if(Ne)for(var i of Ne(r))Ye.call(r,i)&&rt(t,i,r[i]);return t},ct=(t,r)=>xe(t,Ee(r));const vt=b.default.input`
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
margin-left: 0;
|
|
285
|
+
margin-right: 5px;
|
|
286
|
+
height: 20px;
|
|
287
|
+
|
|
288
|
+
align-self: baseline;
|
|
289
|
+
margin-top: 0;
|
|
290
|
+
margin-bottom: 0;
|
|
291
|
+
`,dt=b.default.label`
|
|
292
|
+
display: inline-block;
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
vertical-align: middle;
|
|
295
|
+
position: relative;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
overflow: hidden;
|
|
298
|
+
|
|
299
|
+
overflow-wrap: break-word;
|
|
300
|
+
line-height: 20px;
|
|
301
|
+
`,bt=b.default.div`
|
|
302
|
+
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
303
|
+
display: inline-flex;
|
|
304
|
+
align-items: center;
|
|
305
|
+
|
|
306
|
+
& > label {
|
|
307
|
+
white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
${({nowrap:t})=>t?"":`
|
|
311
|
+
:not(:first-child) {
|
|
312
|
+
margin-top: 5px;
|
|
313
|
+
}
|
|
314
|
+
`}
|
|
315
|
+
`;function Pt(t,r){const{fullWidth:i,id:o,label:s,nowrap:p}=t;return d.createElement(bt,{fullWidth:i,nowrap:p},d.createElement(vt,ct(st({},t),{type:"checkbox",ref:r})),d.createElement(dt,{htmlFor:o},s))}const Ot=d.forwardRef(Pt);var Ut=Object.defineProperty,ar=(t,r,i)=>r in t?Ut(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wr=(t,r,i)=>(ar(t,typeof r!="symbol"?r+"":r,i),i);const hr=11;class gn extends d.Component{constructor(){super(...arguments);Wr(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(o)p=[...s,i];else{const y=s.indexOf(i);p=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:o,maxDisplayedItems:s,showControls:p,trimItemsLength:y}=this.props,{collapsed:S}=this.state,w=i.getError(),E=s||hr,k=y&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(Ir,null,d.createElement(Xr.SamplesControlButton,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(Xr.SamplesControlButton,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map($=>d.createElement(Ot,{fullWidth:!0,id:$,value:$,checked:this.isFieldChecked($),label:$,key:$,onChange:ie=>{this.onCheckBoxClick(ie),o&&i.validate()}})),r.length>E&&y?d.createElement(fn,{onClick:()=>{this.toggle()}},S?"Show all":"Collapse"):null),w?d.createElement(Et.Xq,null,w):"")}}const un=On(gn),Ir=(0,b.default)(Xr.SampleControls)`
|
|
316
|
+
opacity: 1;
|
|
317
|
+
text-align: left;
|
|
318
|
+
`,fn=(0,b.default)(Xr.SamplesControlButton)`
|
|
319
|
+
float: right;
|
|
320
|
+
`;function Hr(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,Vt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(Et.NI,null,d.createElement(Et.lX,null," Scopes: "),d.createElement(un,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var Fr=a(17673),kr=Object.defineProperty,xr=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,$n=(t,r,i)=>r in t?kr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Mr=(t,r)=>{for(var i in r||(r={}))Hi.call(r,i)&&$n(t,i,r[i]);if(ha)for(var i of ha(r))Zr.call(r,i)&&$n(t,i,r[i]);return t},ul=(t,r)=>xr(t,cn(r)),Rn=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const zi="/oauth2-redirect.html";class _r{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:S,errorCallback:w}){const E=(0,Si.p8)({date:new Date().toString()}),k=new URL(r),$=p==="/"?"":p,ie=`${window.location.origin}${$}${zi}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",y||ie),k.searchParams.set("response_type","token"),k.searchParams.set("state",E),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:re=>{S(re),_r.clearRedirectData("implicit")},errorCallback:re=>{w(re),_r.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:S,extraParams:w={},routingBasePath:E,redirectUri:k,successCallback:$,errorCallback:ie}){const re=new URL(r),ce=E==="/"?"":E,ve=`${window.location.origin}${ce}${zi}`,he=(0,Si.p8)({date:new Date().toString()});re.searchParams.set("client_id",o),re.searchParams.set("redirect_uri",k||ve),re.searchParams.set("response_type","code"),re.searchParams.set("state",he),Array.isArray(S)&&re.searchParams.set("scope",S.join(" ")),y&&(re.searchParams.set("code_challenge",y),re.searchParams.set("code_challenge_method","S256"));for(const Se in w)re.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:S},state:he,successCallback:Se=>Rn(this,[Se],function*({auth_code:me}){try{const ke=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Fr.stringify(Mr(ul(Mr({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:me,grant_type:"authorization_code",redirect_uri:k||ve}),w))});yield va(ke,$,ie)}catch(ke){ie(ke)}_r.clearRedirectData("authorizationCode")}),errorCallback:Se=>{ie(Se),_r.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Rn(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:p=[],extraParams:y={},successCallback:S,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:Fr.stringify(Mr({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield va(E,S,w)}catch(E){w(E)}})}}const dn=new _r;function va(t,r,i){return Rn(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function fs(t){return Rn(this,null,function*(){return(0,Si.rS)(yield(0,Si.JQ)(t))})}var dh=Object.defineProperty,ph=Object.defineProperties,hh=Object.getOwnPropertyDescriptors,kd=Object.getOwnPropertySymbols,vh=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,pc=(t,r,i)=>r in t?dh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Md=(t,r)=>{for(var i in r||(r={}))vh.call(r,i)&&pc(t,i,r[i]);if(kd)for(var i of kd(r))gh.call(r,i)&&pc(t,i,r[i]);return t},Rd=(t,r)=>ph(t,hh(r)),zu=(t,r,i)=>(pc(t,typeof r!="symbol"?r+"":r,i),i),yh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function mh(t){if(!t)return"Token is required"}class xh extends d.Component{constructor(){super(...arguments);zu(this,"state",{error:"",loading:!1,tokenMasked:!0}),zu(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Vt.WW)(`auth.${this.props.id}.token`,"")}),zu(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),zu(this,"requestToken",()=>yh(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,er.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield _r.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,successCallback:S=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,S),this.setState({loading:!1})},errorCallback:S=>{this.clearToken(),this.setState({error:S.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[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:o}=this.state,{id:s,defaultValues:p}=this.props,y=Object.keys(this.props.flow.scopes);let S=(0,Vt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);S=S?JSON.parse(S):"";const w=(0,Vt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Vt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,Vt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client ID:"),w?d.createElement(Ya,Rd(Md({},E),{options:w})):d.createElement(hn,Rd(Md({},E),{type:"password",panel:"try-it"}))),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Vt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),d.createElement(hn,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:S,validate:mh}),d.createElement(Hr,{id:s,scopes:y})),d.createElement(Xr.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(Et.ph,null," Access Token "),i?d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(Et.TR,null,d.createElement(Et.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(Et.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(Et.h,{onClick:this.clearToken}," Clear ")):d.createElement(Et.Xq,{style:{marginBottom:"1em"}},"No token"))}}const bh=xh,wh=b.default.div`
|
|
321
|
+
position: relative;
|
|
322
|
+
height: 4px;
|
|
323
|
+
display: block;
|
|
324
|
+
width: 100%;
|
|
325
|
+
background-color: var(--linear-progress-background-color);
|
|
326
|
+
border-radius: var(--global-border-radius);
|
|
327
|
+
background-clip: padding-box;
|
|
328
|
+
margin: 0.5rem 0 1rem 0;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
|
|
331
|
+
.determinate {
|
|
332
|
+
position: absolute;
|
|
333
|
+
top: 0;
|
|
334
|
+
bottom: 0;
|
|
335
|
+
background-color: var(--linear-progress-color);
|
|
336
|
+
transition: width 0.3s linear;
|
|
337
|
+
}
|
|
338
|
+
.indeterminate {
|
|
339
|
+
background-color: var(--linear-progress-color);
|
|
340
|
+
}
|
|
341
|
+
.indeterminate:before {
|
|
342
|
+
content: '';
|
|
343
|
+
position: absolute;
|
|
344
|
+
background-color: inherit;
|
|
345
|
+
top: 0;
|
|
346
|
+
left: 0;
|
|
347
|
+
bottom: 0;
|
|
348
|
+
will-change: left, right;
|
|
349
|
+
-webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
350
|
+
animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
351
|
+
}
|
|
352
|
+
.indeterminate:after {
|
|
353
|
+
content: '';
|
|
354
|
+
position: absolute;
|
|
355
|
+
background-color: inherit;
|
|
356
|
+
top: 0;
|
|
357
|
+
left: 0;
|
|
358
|
+
bottom: 0;
|
|
359
|
+
will-change: left, right;
|
|
360
|
+
-webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
361
|
+
animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
362
|
+
-webkit-animation-delay: 1.15s;
|
|
363
|
+
animation-delay: 1.15s;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@-webkit-keyframes indeterminate {
|
|
367
|
+
0% {
|
|
368
|
+
left: -35%;
|
|
369
|
+
right: 100%;
|
|
370
|
+
}
|
|
371
|
+
60% {
|
|
372
|
+
left: 100%;
|
|
373
|
+
right: -90%;
|
|
374
|
+
}
|
|
375
|
+
100% {
|
|
376
|
+
left: 100%;
|
|
377
|
+
right: -90%;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
@keyframes indeterminate {
|
|
381
|
+
0% {
|
|
382
|
+
left: -35%;
|
|
383
|
+
right: 100%;
|
|
384
|
+
}
|
|
385
|
+
60% {
|
|
386
|
+
left: 100%;
|
|
387
|
+
right: -90%;
|
|
388
|
+
}
|
|
389
|
+
100% {
|
|
390
|
+
left: 100%;
|
|
391
|
+
right: -90%;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
@-webkit-keyframes indeterminate-short {
|
|
395
|
+
0% {
|
|
396
|
+
left: -200%;
|
|
397
|
+
right: 100%;
|
|
398
|
+
}
|
|
399
|
+
60% {
|
|
400
|
+
left: 107%;
|
|
401
|
+
right: -8%;
|
|
402
|
+
}
|
|
403
|
+
100% {
|
|
404
|
+
left: 107%;
|
|
405
|
+
right: -8%;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
@keyframes indeterminate-short {
|
|
409
|
+
0% {
|
|
410
|
+
left: -200%;
|
|
411
|
+
right: 100%;
|
|
412
|
+
}
|
|
413
|
+
60% {
|
|
414
|
+
left: 107%;
|
|
415
|
+
right: -8%;
|
|
416
|
+
}
|
|
417
|
+
100% {
|
|
418
|
+
left: 107%;
|
|
419
|
+
right: -8%;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
`,Ld=()=>d.createElement(wh,null,d.createElement("div",{className:"indeterminate"}));var Sh=Object.defineProperty,Ah=Object.defineProperties,Eh=Object.getOwnPropertyDescriptors,Dd=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,Oh=Object.prototype.propertyIsEnumerable,hc=(t,r,i)=>r in t?Sh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Gu=(t,r)=>{for(var i in r||(r={}))Ch.call(r,i)&&hc(t,i,r[i]);if(Dd)for(var i of Dd(r))Oh.call(r,i)&&hc(t,i,r[i]);return t},vc=(t,r)=>Ah(t,Eh(r)),fl=(t,r,i)=>(hc(t,typeof r!="symbol"?r+"":r,i),i),Th=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Ph(t){if(!t)return"Field is required"}class $u extends d.Component{constructor(){super(...arguments);fl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),fl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),fl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),fl(this,"handleCodeVerifierChange",r=>Th(this,[r],function*({target:{value:i}}){const o=yield fs(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}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,Si.CY)(43);fs(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:p,authCorsProxyUrl:y}=this.props;if(!(0,Si.Qr)(this.errors))return;this.setState({loading:!0,error:null});const S=y?y+(0,er.jg)(r):r,w=y&&p?y+(0,er.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),k={authorizationUrl:S.startsWith("http")?S:this.props.server+S,clientId:this.values.client_id,scopes:E,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:$=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,$),this.setState({loading:!1,error:null})},errorCallback:$=>{this.setState({loading:!1,error:($==null?void 0:$.message)||"Failed to retrieve the access token"})}};i==="implicit"&&_r.authorizeImplicit(k),i==="authorizationCode"&&_r.authorizeAuthorizationCode(Gu(vc(Gu({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),_r.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:y,usePkce:S,defaultValues:w}=this.props;if(!p)return d.createElement(Et.Xq,null,"No flow info");let E=(0,Vt.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const k=(0,Vt.Al)(o,"client_id"),$={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Vt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,Vt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:Ph,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(Et.n5,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null," Client ID: "),k?d.createElement(Ya,vc(Gu({},$),{options:k})):d.createElement(hn,vc(Gu({},$),{"data-cy":"client-id-input",panel:"try-it"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(S==null?void 0:S.hideClientSecretInput)||!S)&&d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Vt.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),S&&!S.disableManualConfiguration&&d.createElement(kh,null,d.createElement(Ot,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Mh,null,d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Verifier"),d.createElement(Ka,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null,"Code Challenge"),d.createElement(Ka,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ie}})=>{this.setState({codeChallenge:ie})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),d.createElement(hn,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E,panel:"try-it"}),d.createElement(Hr,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(Ka,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),d.createElement(Fh,null,this.values.token&&this.values.token.access_token?d.createElement(Xr.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(Xr.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Ld,null)):d.createElement(Xr.Button,{fullWidth:!0,disabled:!(0,Si.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(Et.n5,null,d.createElement(Et.NI,null,i?d.createElement(Et.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(Ih,null,d.createElement(Et.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(Et.GE,null," No Access Token. Please, Authorize. "):null)))}}fl($u,"contextType",an.OptionsContext);const Ih=b.default.div`
|
|
423
|
+
font-family: var(--font-family-monospaced);
|
|
424
|
+
margin-top: 10px;
|
|
425
|
+
line-height: 1;
|
|
426
|
+
padding-left: 10px;
|
|
427
|
+
border-left: 1px solid gray;
|
|
428
|
+
`,Fh=b.default.div`
|
|
429
|
+
margin-bottom: 15px;
|
|
430
|
+
`,kh=b.default.div`
|
|
431
|
+
padding: 8px 0 20px;
|
|
432
|
+
`,Mh=b.default.div`
|
|
433
|
+
padding: 4px 0;
|
|
434
|
+
`;var Rh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Lh(t){return Rh(this,null,function*(){return(yield fetch(t)).json()})}var Dh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Nh(t){var r;const{scheme:i,defaultValues:o}=t,[s,p]=d.useState({}),[y,S]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{k(i.openIdConnectUrl)},[i.openIdConnectUrl]);const k=$=>Dh(this,null,function*(){E(!0),S("");try{const ie=yield Lh($);p(ie)}catch(ie){S(ie.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Ld,null)):d.createElement("div",null,y?d.createElement(Et.Xq,null,y):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Bh,null,"OAuth2 Implicit Flow"),d.createElement($u,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:o})):d.createElement("div",null,"Unsupported flow")))}const Bh=b.default.div`
|
|
435
|
+
margin-top: 5px;
|
|
436
|
+
margin-bottom: 10px;
|
|
437
|
+
`;var cl=a(51027),Uh=Object.defineProperty,jh=Object.defineProperties,Vh=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Wh=Object.prototype.hasOwnProperty,Hh=Object.prototype.propertyIsEnumerable,gc=(t,r,i)=>r in t?Uh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cs=(t,r)=>{for(var i in r||(r={}))Wh.call(r,i)&&gc(t,i,r[i]);if(Nd)for(var i of Nd(r))Hh.call(r,i)&&gc(t,i,r[i]);return t},ds=(t,r)=>jh(t,Vh(r)),Bd=(t,r,i)=>(gc(t,typeof r!="symbol"?r+"":r,i),i);class zh extends d.Component{constructor(){super(...arguments);Bd(this,"state",{activeScheme:0}),Bd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Vt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(S=>S.id).join(" and ")),s=(0,Vt.YQ)("securityRequirementName"),p=o.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,p=o.map(y=>y.schemes.map(S=>S.id).join(" and ")).map((y,S)=>({value:y,idx:S}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(Et.n5,null,p.length>1&&d.createElement(Et.NI,null,d.createElement(Et.lX,null," Security scheme: "),d.createElement(wn.VD,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(y=>{var S,w,E,k,$,ie,re;const ce=(0,Vt.A8)(y.id);if(y.type==="apiKey"){const ve=(0,Vt.Al)(ce,""),he={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,er.NG)(y)||(0,Vt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,er.NG)(y)||(0,Vt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:er.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(Et.NI,{key:ce},d.createElement(Et.lX,null," ",y.name,": "),ve?d.createElement(Ya,ds(cs({},he),{options:ve})):d.createElement(hn,ds(cs({},he),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ve=(0,Vt.Al)(ce,"username"),he={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,Vt.YQ)(`auth.${ce}.username`)||((S=r==null?void 0:r[ce])==null?void 0:S.username),initValue:(0,Vt.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:er.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,cl.l)("tryItAuthBasicUsername"),": "),ve?d.createElement(Ya,ds(cs({},he),{options:ve})):d.createElement(hn,ds(cs({},he),{panel:"try-it"}))),d.createElement(Et.NI,null,d.createElement(Et.lX,null," ",(0,cl.l)("tryItAuthBasicPassword"),": "),d.createElement(hn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,Vt.YQ)(`auth.${ce}.password`)||((E=r==null?void 0:r[ce])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const ve=(0,Vt.Al)(ce,""),he={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,Vt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,Vt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:er.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Bearer Token: "),ve?d.createElement(Ya,ds(cs({},he),{options:ve})):d.createElement(hn,ds(cs({},he),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(bh,{key:ce,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement($u,{key:ce,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((($=(k=y==null?void 0:y.flows)==null?void 0:k.implicit)==null?void 0:$.scopes)||{}),server:this.props.activeServer,id:ce,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[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement($u,{key:ce,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ie=y.flows.authorizationCode)==null?void 0:ie.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"){let ve=(0,Vt.YQ)(`auth.${ce}.token`)||JSON.stringify((re=r==null?void 0:r[ce])==null?void 0:re.token);return ve=ve?JSON.parse(ve):{},d.createElement(d.Fragment,{key:ce},d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token Type: "),d.createElement(hn,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:ve.token_type||"Bearer",panel:"try-it"})),d.createElement(Et.NI,null,d.createElement(Et.lX,null," Access Token: "),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:er.np,initialValue:ve.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(Nh,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Ud=a(11429),jd=a(89356),Ku=a(63263),Gh=a(30699),yc=a(58377),Vd=a(28834),Wd=a(13038),$h=a(32752),mc=a(44341);function Hd(t,r,i){return r in t?mc(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function zd(t,r){var i=jd(t);if(Ku){var o=Ku(t);r&&(o=Gh(o).call(o,function(s){return yc(t,s).enumerable})),i.push.apply(i,o)}return i}function Or(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Vd(o=zd(Object(i),!0)).call(o,function(p){Hd(t,p,i[p])})}else if(Wd)$h(t,Wd(i));else{var s;Vd(s=zd(Object(i))).call(s,function(p){mc(t,p,yc(i,p))})}}return t}var Kh=a(28583),Yu=a.n(Kh),Yh=a(10240),Gd=a.n(Yh),Ua=a(8575),So=a(51446),xc=a(19996),bc=a(78363),Jh=a(95238),$d=a(53592);function wc(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function Sc(t,r){var i;if(!!t){if(typeof t=="string")return wc(t,r);var o=Jh(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return $d(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return wc(t,r)}}function Ao(t,r){var i=typeof So!="undefined"&&xc(t)||t["@@iterator"];if(!i){if(bc(t)||(i=Sc(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
438
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){y=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw S}}}}var Xh=a(23882);function pr(t){return typeof So=="function"&&typeof Xh=="symbol"?pr=function(i){return typeof i}:pr=function(i){return i&&typeof So=="function"&&i.constructor===So&&i!==So.prototype?"symbol":typeof i},pr(t)}function Qh(t){if(bc(t))return t}function Zh(t,r){var i=t&&(typeof So!="undefined"&&xc(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,p=!1,y,S;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(o.push(y.value),!(r&&o.length===r));s=!0);}catch(w){p=!0,S=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw S}}return o}}function _h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
439
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ai(t,r){return Qh(t)||Zh(t,r)||Sc(t,r)||_h()}var Kd=a(69798);function Yd(t,r,i,o,s,p,y){try{var S=t[p](y),w=S.value}catch(E){i(E);return}S.done?r(w):Kd.resolve(w).then(o,s)}function Ac(t){return function(){var r=this,i=arguments;return new Kd(function(o,s){var p=t.apply(r,i);function y(w){Yd(p,o,s,y,S,"next",w)}function S(w){Yd(p,o,s,y,S,"throw",w)}y(void 0)})}}var qh=a(63109),Gi=a.n(qh),ev=a(78580),Ec=a.n(ev),tv=a(72119),Jd=a.n(tv),rv=a(66419),nv=a.n(rv),iv=a(59340),Ju=a.n(iv),av=a(2991),rr=a.n(av),ov=a(86902),nr=a.n(ov),sv=a(77766),Tt=a.n(sv),lv=a(26295),Xd=a.n(lv),uv=a(20116),Ln=a.n(uv),Lm=a(31905),fv=a(92495),Cc=a.n(fv),cv=a(93320),Qd=a.n(cv),dv=a(78718),Oc=a.n(dv),pv=a(23560),dl=a.n(pv),Zd=a(88996);function Tc(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _d(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),mc(t,o.key,o)}}function Pc(t,r,i){return r&&_d(t.prototype,r),i&&_d(t,i),t}var qd=a(83863),ep=a(79542),tp=a(24889);function ps(t){return ps=ep?tp:function(i){return i.__proto__||tp(i)},ps(t)}function hv(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=ps(t),t!==null););return t}function Xu(t,r,i){return typeof Reflect!="undefined"&&qd?Xu=qd:Xu=function(s,p,y){var S=hv(s,p);if(!!S){var w=yc(S,p);return w.get?w.get.call(y):w.value}},Xu(t,r,i||t)}var vv=a(189);function Ic(t,r){return Ic=ep||function(o,s){return o.__proto__=s,o},Ic(t,r)}function gv(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=vv(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Ic(t,r)}var Qu=a(13535);function yv(){if(typeof Reflect=="undefined"||!Qu||Qu.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Qu(Boolean,[],function(){})),!0}catch(t){return!1}}function mv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xv(t,r){return r&&(pr(r)==="object"||typeof r=="function")?r:mv(t)}function bv(t){var r=yv();return function(){var o=ps(t),s;if(r){var p=ps(this).constructor;s=Qu(o,arguments,p)}else s=o.apply(this,arguments);return xv(this,s)}}var wv=a(94473),Sv=a.n(wv),Av=a(57514),Ev=a.n(Av),Cv=function(r){var i=function(p,y){return{name:p,value:y}};if(dl()(r.prototype.set)||dl()(r.prototype.get)||dl()(r.prototype.getAll)||dl()(r.prototype.has))return r;var o=function(s){gv(y,s);var p=bv(y);function y(S){var w;return Tc(this,y),w=p.call(this,S),w.entryList=[],w}return Pc(y,[{key:"append",value:function(w,E,k){return this.entryList.push(i(w,E)),Xu(ps(y.prototype),"append",this).call(this,w,E,k)}},{key:"set",value:function(w,E){var k,$=i(w,E);this.entryList=Ln()(k=this.entryList).call(k,function(ie){return ie.name!==w}),this.entryList.push($)}},{key:"get",value:function(w){var E,k=Sv()(E=this.entryList).call(E,function($){return $.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var E,k;return rr()(E=Ln()(k=this.entryList).call(k,function($){return $.name===w})).call(E,function($){return $.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),y}(r);return o};const Ov=Cv(Ev());function Tv(t){if(bc(t))return wc(t)}function Pv(t){if(typeof So!="undefined"&&xc(t)!=null||t["@@iterator"]!=null)return $d(t)}function Iv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
440
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(t){return Tv(t)||Pv(t)||Sc(t)||Iv()}var Fv=a(3649),$i=a.n(Fv),kv=a(88996),Mv=kv.Buffer,Rv=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Lv=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function hs(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):rr()(r=Eo(t)).call(r,function(p){var y,S;if(Lv(p)||Rv(p)&&o==="unsafe")return p;var w=rr()(y=rr()(S=Mv.from(p).toJSON().data||[]).call(S,function(E){var k;return $i()(k="0".concat(E.toString(16).toUpperCase())).call(k,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function Fc(t){var r=t.value;return Array.isArray(r)?Dv(t):pr(r)==="object"?Nv(t):Bv(t)}function Dv(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function($){return hs($,{escape:p})};if(o==="simple")return rr()(i).call(i,function(k){return y(k)}).join(",");if(o==="label")return".".concat(rr()(i).call(i,function(k){return y(k)}).join("."));if(o==="matrix")return rr()(i).call(i,function(k){return y(k)}).reduce(function(k,$){var ie;if(!k||s){var re,ce;return Tt()(re=Tt()(ce="".concat(k||"",";")).call(ce,r,"=")).call(re,$)}return Tt()(ie="".concat(k,",")).call(ie,$)},"");if(o==="form"){var S=s?"&".concat(r,"="):",";return rr()(i).call(i,function(k){return y(k)}).join(S)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return rr()(i).call(i,function(k){return y(k)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return rr()(i).call(i,function(k){return y(k)}).join("|".concat(E))}}function Nv(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(E){return hs(E,{escape:p})},S=nr()(i);if(o==="simple")return S.reduce(function(w,E){var k,$,ie,re=y(i[E]),ce=s?"=":",",ve=w?"".concat(w,","):"";return Tt()(k=Tt()($=Tt()(ie="".concat(ve)).call(ie,E)).call($,ce)).call(k,re)},"");if(o==="label")return S.reduce(function(w,E){var k,$,ie,re=y(i[E]),ce=s?"=":".",ve=w?"".concat(w,"."):".";return Tt()(k=Tt()($=Tt()(ie="".concat(ve)).call(ie,E)).call($,ce)).call(k,re)},"");if(o==="matrix"&&s)return S.reduce(function(w,E){var k,$,ie=y(i[E]),re=w?"".concat(w,";"):";";return Tt()(k=Tt()($="".concat(re)).call($,E,"=")).call(k,ie)},"");if(o==="matrix")return S.reduce(function(w,E){var k,$,ie=y(i[E]),re=w?"".concat(w,","):";".concat(r,"=");return Tt()(k=Tt()($="".concat(re)).call($,E,",")).call(k,ie)},"");if(o==="form")return S.reduce(function(w,E){var k,$,ie,re,ce=y(i[E]),ve=w?Tt()(k="".concat(w)).call(k,s?"&":","):"",he=s?"=":",";return Tt()($=Tt()(ie=Tt()(re="".concat(ve)).call(re,E)).call(ie,he)).call($,ce)},"")}function Bv(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return hs(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var y;return Tt()(y=";".concat(r,"=")).call(y,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var kc={serializeRes:rp,mergeInQueryOrForm:lp};function Zu(t){return Mc.apply(this,arguments)}function Mc(){return Mc=Ac(Gi().mark(function t(r){var i,o,s,p,y,S=arguments;return Gi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=S.length>1&&S[1]!==void 0?S[1]:{},pr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},kc.mergeInQueryOrForm(i),i.headers&&nr()(i.headers).forEach(function(k){var $=i.headers[k];typeof $=="string"&&(i.headers[k]=$.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 o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(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,kc.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw 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]])})),Mc.apply(this,arguments)}var Uv=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function jv(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Qd().safeLoad(t)}function rp(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:np(t.headers)},y=p.headers["content-type"],S=s||Uv(y),w=S?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,S)try{var k=jv(E,y);p.body=k,p.obj=k}catch($){p.parseError=$}return p})}function Vv(t){var r=Ec()(t).call(t,", ");return r?t.split(", "):t}function np(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dl()(Jd()(t))?nv()(Jd()(t).call(t)).reduce(function(r,i){var o=Ai(i,2),s=o[0],p=o[1];return r[s]=Vv(p),r},{}):{}}function Rc(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&pr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Zd.Buffer!="undefined"&&t instanceof Zd.Buffer?!0:t!==null&&pr(t)==="object"&&typeof t.pipe=="function"}function ip(t,r){return Array.isArray(t)&&t.some(function(i){return Rc(i,r)})}var Wv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Hv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function ap(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,S=pr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function($){return $.toString()}:function($){return encodeURIComponent($)},E=w(t);if(typeof S=="undefined"&&s)return[[E,""]];if(Rc(S)||ip(S))return[[E,S]];if(p)return op(t,S,i,p);if(y){if([pr(y.style),pr(y.explode),pr(y.allowReserved)].some(function($){return $!=="undefined"}))return op(t,S,i,Oc()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var k=typeof S=="string"?S:Ju()(S);return[[E,w(k)]]}return[[E,w(S.toString())]]}return pr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)&&S.every(function($){return pr($)!=="object"})?[[E,rr()(S).call(S,w).join(",")]]:[[E,w(Ju()(S))]]}return pr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)?o==="multi"?[[E,rr()(S).call(S,w)]]:[[E,rr()(S).call(S,w).join(Hv[o||"csv"])]]:[[E,""]]}function op(t,r,i,o){var s,p=o.style||"form",y=typeof o.explode=="undefined"?p==="form":o.explode,S=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(re){return hs(re,{escape:S})},E=i?function(ie){return ie}:function(ie){return hs(ie,{escape:S})};if(pr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),rr()(r).call(r,w)]]:[[E(t),rr()(r).call(r,w).join(Wv[p])]];if(p==="deepObject"){var k;return rr()(k=nr()(r)).call(k,function(ie){var re;return[E(Tt()(re="".concat(t,"[")).call(re,ie,"]")),w(r[ie])]})}if(y){var $;return rr()($=nr()(r)).call($,function(ie){return[E(ie),w(r[ie])]})}return[[E(t),rr()(s=nr()(r)).call(s,function(ie){var re;return[Tt()(re="".concat(E(ie),",")).call(re,w(r[ie]))]}).join(",")]]}function zv(t){return Xd()(t).reduce(function(r,i){var o=Ai(i,2),s=o[0],p=o[1],y=Ao(ap(s,p,!0)),S;try{for(y.s();!(S=y.n()).done;){var w=Ai(S.value,2),E=w[0],k=w[1];if(Array.isArray(k)){var $=Ao(k),ie;try{for($.s();!(ie=$.n()).done;){var re=ie.value;r.append(E,re)}}catch(ce){$.e(ce)}finally{$.f()}}else r.append(E,k)}}catch(ce){y.e(ce)}finally{y.f()}return r},new Ov)}function sp(t){var r=nr()(t).reduce(function(i,o){var s=Ao(ap(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var y=Ai(p.value,2),S=y[0],w=y[1];i[S]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Cc().stringify(r,{encode:!1,indices:!1})||""}function lp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,p=function(){for(var Se=arguments.length,me=new Array(Se),ke=0;ke<Se;ke++)me[ke]=arguments[ke];var $e=Ln()(me).call(me,function(Ue){return Ue}).join("&");return $e?"?".concat($e):""};if(s){var y=nr()(s).some(function(he){var Se=s[he].value;return Rc(Se)||ip(Se)}),S=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(S)?t.body=zv(t.form):t.body=sp(s),delete t.form}if(o){var w=i.split("?"),E=Ai(w,2),k=E[0],$=E[1],ie="";if($){var re=Cc().parse($),ce=nr()(o);ce.forEach(function(he){return delete re[he]}),ie=Cc().stringify(re,{encode:!0})}var ve=p(ie,sp(o));t.url=k+ve,delete t.query}return t}function Gv(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),kc.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var $v=a(51942),Ei=a.n($v),Kv=a(93476),Co=a.n(Kv),Yv=a(92762),Jv=a.n(Yv),Xv=a(13311),Qv=a.n(Xv),Zv=a(50308),up=a.n(Zv);/*!
|
|
441
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
442
|
+
* (c) 2017 Joachim Wester
|
|
443
|
+
* MIT license
|
|
444
|
+
*/var _v=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),qv=Object.prototype.hasOwnProperty;function _u(t,r){return qv.call(t,r)}function Lc(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 o in t)_u(t,o)&&i.push(o);return i}function Kn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Dc(t){for(var r=0,i=t.length,o;r<i;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function ga(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function fp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function cp(t,r){var i;for(var o in t)if(_u(t,o)){if(t[o]===r)return ga(o)+"/";if(typeof t[o]=="object"&&(i=cp(t[o],r),i!=""))return ga(o)+"/"+i}return""}function Dm(t,r){if(t===r)return"/";var i=cp(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Nc(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Nc(t[r]))return!0}else if(typeof t=="object"){for(var o=Lc(t),s=o.length,r=0;r<s;r++)if(Nc(t[o[r]]))return!0}}return!1}function dp(t,r){var i=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&i.push(o+": "+s)}return i.join(`
|
|
445
|
+
`)}var pp=function(t){_v(r,t);function r(i,o,s,p,y){var S=this.constructor,w=t.call(this,dp(i,{name:o,index:s,operation:p,tree:y}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,S.prototype),w.message=dp(i,{name:o,index:s,operation:p,tree:y}),w}return r}(Error),zr=pp,eg=Kn,vs={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=pl(i,this.path);o&&(o=Kn(o));var s=Oo(i,{op:"remove",path:this.from}).removed;return Oo(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=pl(i,this.from);return Oo(i,{op:"add",path:this.path,value:Kn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:hl(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},tg={add:function(t,r,i){return Dc(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:vs.move,copy:vs.copy,test:vs.test,_get:vs._get};function pl(t,r){if(r=="")return t;var i={op:"_get",path:r};return Oo(t,i),i.value}function Oo(t,r,i,o,s,p){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):qu(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=pl(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=hl(t,r.value),y.test===!1)throw new zr("Test operation failed","TEST_OPERATION_FAILED",p,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 zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{o||(t=Kn(t));var S=r.path||"",w=S.split("/"),E=t,k=1,$=w.length,ie=void 0,re=void 0,ce=void 0;for(typeof i=="function"?ce=i:ce=qu;;){if(re=w[k],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&&ie===void 0&&(E[re]===void 0?ie=w.slice(0,k).join("/"):k==$-1&&(ie=r.path),ie!==void 0&&ce(r,0,t,ie)),k++,Array.isArray(E)){if(re==="-")re=E.length;else{if(i&&!Dc(re))throw new zr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);Dc(re)&&(re=~~re)}if(k>=$){if(i&&r.op==="add"&&re>E.length)throw new zr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=tg[r.op].call(r,E,re,t);if(y.test===!1)throw new zr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(re&&re.indexOf("~")!=-1&&(re=fp(re)),k>=$){var y=vs[r.op].call(r,E,re,t);if(y.test===!1)throw new zr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}E=E[re]}}}function To(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=Kn(t));for(var p=new Array(r.length),y=0,S=r.length;y<S;y++)p[y]=Oo(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function rg(t,r,i){var o=Oo(t,r);if(o.test===!1)throw new zr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function qu(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new zr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(vs[t.op]){if(typeof t.path!="string")throw new zr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new zr('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 zr("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 zr("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")&&Nc(t.value))throw new zr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=o.split("/").length;if(s!==p+1&&s!==p)throw new zr("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!==o)throw new zr("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},S=hp([y],i);if(S&&S.name==="OPERATION_PATH_UNRESOLVABLE")throw new zr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function hp(t,r,i){try{if(!Array.isArray(t))throw new zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)To(Kn(r),Kn(t),i||!0);else{i=i||qu;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof zr)return s;throw s}}function hl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,p,y;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!hl(t[s],r[s]))return!1;return!0}if(i!=o)return!1;var S=Object.keys(t);if(p=S.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(S[s]))return!1;for(s=p;s--!=0;)if(y=S[s],!hl(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
446
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
447
|
+
* (c) 2017 Joachim Wester
|
|
448
|
+
* MIT license
|
|
449
|
+
*/var Bc=new WeakMap,ng=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),ig=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function ag(t){return Bc.get(t)}function og(t,r){return t.observers.get(r)}function sg(t,r){t.observers.delete(r.callback)}function lg(t,r){r.unobserve()}function ug(t,r){var i=[],o,s=ag(t);if(!s)s=new ng(t),Bc.set(t,s);else{var p=og(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=Kn(t),r){o.callback=r,o.next=null;var y=function(){Uc(o)},S=function(){clearTimeout(o.next),o.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return o.patches=i,o.object=t,o.unobserve=function(){Uc(o),clearTimeout(o.next),sg(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new ig(r,o)),o}function Uc(t,r){r===void 0&&(r=!1);var i=Bc.get(t.object);jc(i.value,t.object,t.patches,"",r),t.patches.length&&To(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function jc(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Lc(r),y=Lc(t),S=!1,w=!1,E=y.length-1;E>=0;E--){var k=y[E],$=t[k];if(_u(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var ie=r[k];typeof $=="object"&&$!=null&&typeof ie=="object"&&ie!=null?jc($,ie,i,o+"/"+ga(k),s):$!==ie&&(S=!0,s&&i.push({op:"test",path:o+"/"+ga(k),value:Kn($)}),i.push({op:"replace",path:o+"/"+ga(k),value:Kn(ie)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+ga(k),value:Kn($)}),i.push({op:"remove",path:o+"/"+ga(k)}),w=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),S=!0)}if(!(!w&&p.length==y.length))for(var E=0;E<p.length;E++){var k=p[E];!_u(t,k)&&r[k]!==void 0&&i.push({op:"add",path:o+"/"+ga(k),value:Kn(r[k])})}}}function fg(t,r,i){i===void 0&&(i=!1);var o=[];return jc(t,r,o,"",i),o}const Nm=Object.assign({},c,v,{JsonPatchError:pp,deepClone:Kn,escapePathComponent:ga,unescapePathComponent:fp});var cg=a(31312),dg=a.n(cg),pg=a(50361),hg=a.n(pg);const or={add:gg,replace:Vc,remove:yg,merge:mg,mergeDeep:xg,context:bg,getIn:Eg,applyPatch:vg,parentPathMatch:Ag,flatten:vl,fullyNormalizeArray:Cg,normalizeArray:yp,isPromise:Og,forEachNew:wg,forEachNewPrimitive:Sg,isJsonPatch:bp,isContextPatch:Ig,isPatch:tf,isMutation:wp,isAdditiveMutation:ef,isGenerator:Pg,isFunction:xp,isObject:ja,isError:Tg};function vg(t,r,i){if(i=i||{},r=Or(Or({},r),{},{path:r.path&&vp(r.path)}),r.op==="merge"){var o=zc(t,r.path);Ei()(o,r.value),To(t,[Vc(r.path,o)])}else if(r.op==="mergeDeep"){var s=zc(t,r.path);for(var p in r.value){var y=r.value[p],S=Array.isArray(y);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,y)}else if(ja(y)&&!S){var E=Or({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(E,k)){E=dg()(hg()(E),y);break}else Ei()(E,Hd({},k,y[k]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&ja(r.value)){var $=nr()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(vp(Se)),value:r.value[Se]}),he},[]);To(t,$)}else if(r.op==="replace"&&r.path===""){var ie=r,re=ie.value;i.allowMetaPatches&&r.meta&&ef(r)&&(Array.isArray(r.value)||ja(r.value))&&(re=Or(Or({},re),r.meta)),t=re}else if(To(t,[r]),i.allowMetaPatches&&r.meta&&ef(r)&&(Array.isArray(r.value)||ja(r.value))){var ce=zc(t,r.path),ve=Or(Or({},ce),r.meta);To(t,[Vc(r.path,ve)])}return t}function vp(t){return Array.isArray(t)?t.length<1?"":"/".concat(rr()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function gg(t,r){return{op:"add",path:t,value:r}}function Vc(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function yg(t){return{op:"remove",path:t}}function mg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function xg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function bg(t,r){return{type:"context",path:t,value:r}}function wg(t,r){try{return gp(t,Hc,r)}catch(i){return i}}function Sg(t,r){try{return gp(t,Wc,r)}catch(i){return i}}function gp(t,r,i){var o,s=rr()(o=Ln()(t).call(t,ef)).call(o,function(S){return r(S.value,i,S.path)})||[],p=vl(s),y=mp(p);return y}function Wc(t,r,i){if(i=i||[],Array.isArray(t))return rr()(t).call(t,function(s,p){return Wc(s,r,Tt()(i).call(i,p))});if(ja(t)){var o;return rr()(o=nr()(t)).call(o,function(s){return Wc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Hc(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Tt()(o).call(o,s))}if(Array.isArray(t)){var p=rr()(t).call(t,function(w,E){return Hc(w,r,Tt()(i).call(i,E))});p&&(o=Tt()(o).call(o,p))}else if(ja(t)){var y,S=rr()(y=nr()(t)).call(y,function(w){return Hc(t[w],r,Tt()(i).call(i,w))});S&&(o=Tt()(o).call(o,S))}return o=vl(o),o}function Ag(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function Eg(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cg(t){return mp(vl(yp(t)))}function yp(t){return Array.isArray(t)?t:[t]}function vl(t){var r;return Tt()(r=[]).apply(r,Eo(rr()(t).call(t,function(i){return Array.isArray(i)?vl(i):i})))}function mp(t){return Ln()(t).call(t,function(r){return typeof r!="undefined"})}function ja(t){return t&&pr(t)==="object"}function Og(t){return ja(t)&&xp(t.then)}function xp(t){return t&&typeof t=="function"}function Tg(t){return t instanceof Error}function bp(t){if(tf(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Pg(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function wp(t){return bp(t)||tf(t)&&t.type==="mutation"}function ef(t){return wp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Ig(t){return tf(t)&&t.type==="context"}function tf(t){return t&&pr(t)==="object"}function zc(t,r){try{return pl(t,r)}catch(i){return console.error(i),{}}}var Fg=a(52424),kg=a.n(Fg),Mg=a(54098),Rg=a(9779),Sp=a.n(Rg);function Ap(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Lg=a(13692),Dg=a.n(Lg),Ng=a(47037),Bg=a.n(Ng),Ug=["properties"],jg=["properties"],Vg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Wg=["schema/example","items/example"];function Ep(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Ug.indexOf(r)>-1&&jg.indexOf(i)===-1||Vg.indexOf(o)>-1||Wg.some(function(s){return o.indexOf(s)>-1})}function Hg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return o.getContext(Tt()(k=[]).call(k,Eo(r),Eo(E))).baseDoc}:s,y=i.targetKeys,S=y===void 0?["$ref","$$ref"]:y,w=[];return Dg()(t).forEach(function(){if(Ec()(S).call(S,this.key)&&Bg()(this.node)){var k=this.path,$=Tt()(r).call(r,this.path),ie=Gc(this.node,p(k));w.push(o.replace($,ie))}}),w}function Gc(t,r){var i,o=t.split("#"),s=Ai(o,2),p=s[0],y=s[1],S=Ua.resolve(p||"",r||"");return y?Tt()(i="".concat(S,"#")).call(i,y):S}var Cp="application/json, application/yaml",zg=new RegExp("^([a-z]+://|//)","i"),gs=Ap("JSONRefError",function(r,i,o){this.originalError=o,Ei()(this,i||{})}),ya={},Op=new(kg()),Gg=[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"}],$g=function(r){return Gg.some(function(i){return i(r)})},Kg={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),y=$i()(o).call(o,0,-1);if(!(Ep(y)||$g(y))){var S=s.getContext(o),w=S.baseDoc;if(typeof r!="string")return new gs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=Ip(r),k=E[0],$=E[1]||"",ie;try{ie=w||k?Pp(k,w):null}catch(me){return $c(me,{pointer:$,$ref:r,basePath:ie,fullPath:o})}var re,ce;if(_g($,ie,y,s)&&!p.useCircularStructures){var ve=Gc(r,ie);return r===ve?null:or.replace(o,ve)}if(ie==null?(ce=Yc($),re=s.get(ce),typeof re=="undefined"&&(re=new gs("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:o}))):(re=Fp(ie,$),re.__value!=null?re=re.__value:re=re.catch(function(me){throw $c(me,{pointer:$,$ref:r,baseDoc:w,fullPath:o})})),re instanceof Error)return[or.remove(o),re];var he=Gc(r,ie),Se=or.replace(y,re,{$$ref:he});if(ie&&ie!==w)return[Se,or.context(y,{baseDoc:ie})];try{if(!qg(s.state,Se)||p.useCircularStructures)return Se}catch(me){return null}}}},Tp=Ei()(Kg,{docCache:ya,absoluteify:Pp,clearCache:Jg,JSONRefError:gs,wrapError:$c,getDoc:kp,split:Ip,extractFromDoc:Fp,fetchJSON:Xg,extract:Kc,jsonPointerToArray:Yc,unescapeJsonPointerToken:Mp});const Yg=Tp;function Pp(t,r){if(!zg.test(t)){if(!r){var i;throw new gs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ua.resolve(r,t)}return t}function $c(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Tt()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new gs("Could not resolve reference: ".concat(i),r,t)}function Ip(t){return(t+"").split("#")}function Fp(t,r){var i=ya[t];if(i&&!or.isPromise(i))try{var o=Kc(r,i);return Ei()(Co().resolve(o),{__value:o})}catch(s){return Co().reject(s)}return kp(t).then(function(s){return Kc(r,s)})}function Jg(t){typeof t!="undefined"?delete ya[t]:nr()(ya).forEach(function(r){delete ya[r]})}function kp(t){var r=ya[t];return r?or.isPromise(r)?r:Co().resolve(r):(ya[t]=Tp.fetchJSON(t).then(function(i){return ya[t]=i,i}),ya[t])}function Xg(t){return(0,Mg.fetch)(t,{headers:{Accept:Cp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Qd().safeLoad(r)})}function Kc(t,r){var i=Yc(t);if(i.length<1)return r;var o=or.getIn(r,i);if(typeof o=="undefined")throw new gs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function Yc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(pr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:rr()(r=t.split("/")).call(r,Mp)}function Mp(t){return typeof t!="string"?t:Sp().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Rp(t){return Sp().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function Qg(t){return t.length===0?"":"/".concat(rr()(t).call(t,Rp).join("/"))}var Zg=function(r){return!r||r==="/"||r==="#"};function Jc(t,r){if(Zg(r))return!0;var i=t.charAt(r.length),o=$i()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function _g(t,r,i,o){var s,p,y=Op.get(o);y||(y={},Op.set(o,y));var S=Qg(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&Jc(E,t))return!0;var $="",ie=i.some(function(re){var ce;return $=Tt()(ce="".concat($,"/")).call(ce,Rp(re)),y[$]&&y[$].some(function(ve){return Jc(ve,w)||Jc(w,ve)})});if(ie)return!0;y[E]=Tt()(p=y[E]||[]).call(p,w)}function qg(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),o(r.value);function o(s){return or.isObject(s)&&(i.indexOf(s)>=0||nr()(s).some(function(p){return o(s[p])}))}}var ey=a(41609),ty=a.n(ey);const ry={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=$i()(o).call(o,0,-1);if(!Ep(y)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=o,S}var w=!1,E=p.value;if(y.forEach(function(ie){!E||(E=E[ie])}),E=Or({},E),!ty()(E)){delete E.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ie,re){if(!s.isObject(ie)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=o,k.push(ce)}k.push(s.mergeDeep(y,ie));var ve=$i()(o).call(o,0,-1),he=Hg(ie,ve,{getBaseUrlForNodePath:function(me){var ke;return s.getContext(Tt()(ke=[]).call(ke,Eo(o),[re],Eo(me))).baseDoc},specmap:s});k.push.apply(k,Eo(he))}),k.push(s.mergeDeep(y,E)),!E.$$ref){var $;k.push(s.remove(Tt()($=[]).call($,y,"$$ref")))}return k}}}}},ny={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=Ei()([],r),y=$i()(o).call(o,0,-1),S=Or({},or.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch($){var k=new Error($);return k.fullPath=o,k}}),or.replace(o,p)}return or.replace(o,r)}},iy={key:"properties",plugin:function(r,i,o,s){var p=Or({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(E){var S=new Error(E);return S.fullPath=o,S}var w=or.replace(o,p);return w}};var ay=function(){function t(r){Tc(this,t),this.root=Xc(r||{})}return Pc(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){rf(this.root,o,null);return}var p=i[i.length-1],y=s.children;if(y[p]){rf(y[p],o,s);return}y[p]=Xc(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<i.length&&(p=i[y],s=o.children,!!s[p]);y+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:$i()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&o&&(y[p]=Xc(null,s)),y[p]},this.root)}}]),t}();function Xc(t,r){return rf({children:{}},t,r)}function rf(t,r,i){return t.value=r||{},t.protoValue=i?Or(Or({},i.protoValue),t.value):t.value,nr()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=rf(s,s.value,t)}),t}var Lp=100,oy=function(){function t(r){var i=this,o,s;Tc(this,t),Ei()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ay,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Ei()(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=Ln()(o=rr()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,or.isFunction),this.patches.push(or.add([],this.spec)),this.patches.push(or.context([],this.context)),this.updatePatches(this.patches)}return Pc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),S=1;S<p;S++)y[S-1]=arguments[S];(o=console).log.apply(o,Tt()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):or.isFunction(i)?y=i:or.isObject(i)&&(y=S(i)),Ei()(y.bind(p),{pluginName:i.name||o,isGenerator:or.isGenerator(y)});function S(w){var E=function($,ie){return Array.isArray($)?$.every(function(re,ce){return re===ie[ce]}):!0};return Gi().mark(function k($,ie){var re,ce,ve,he,Se,me;return Gi().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:me=function(ze,Be,je){var We,Xe,et,Ke,ht,Ft,Ht,sr,Rr,Tr,Yr,br,Ur;return Gi().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(or.isObject(ze)){Jt.next=6;break}if(w.key!==Be[Be.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin(ze,w.key,Be,ie);case 4:Jt.next=30;break;case 6:We=Be.length-1,Xe=Be[We],et=Be.indexOf("properties"),Ke=Xe==="properties"&&We===et,ht=ie.allowMetaPatches&&ce[ze.$$ref],Ft=0,Ht=nr()(ze);case 12:if(!(Ft<Ht.length)){Jt.next=30;break}if(sr=Ht[Ft],Rr=ze[sr],Tr=Tt()(Be).call(Be,sr),Yr=or.isObject(Rr),br=ze.$$ref,ht){Jt.next=22;break}if(!Yr){Jt.next=22;break}return ie.allowMetaPatches&&br&&(ce[br]=!0),Jt.delegateYield(me(Rr,Tr,je),"t0",22);case 22:if(!(!Ke&&sr===w.key)){Jt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Jt.next=27;break}return Jt.next=27,w.plugin(Rr,sr,Tr,ie,je);case 27:Ft++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},re)},re=Gi().mark(me),ce={},ve=Ao(Ln()($).call($,or.isAdditiveMutation)),$e.prev=4,ve.s();case 6:if((he=ve.n()).done){$e.next=11;break}return Se=he.value,$e.delegateYield(me(Se.value,Se.path,Se),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),ve.e($e.t1);case 16:return $e.prev=16,ve.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return Qv()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return Co().race(rr()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;or.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!or.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),or.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(or.isContextPatch(s)){o.setContext(s.path,s.value);return}if(or.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){pr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Or({},i.value));var o=or.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Jv()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var p=Or(Or({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),$i()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+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,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Co().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Lp){var S;return Co().resolve({spec:o.state,errors:Tt()(S=o.errors).call(S,new Error("We've reached a hard limit of ".concat(Lp," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=rr()(w=this.promisedPatches).call(w,function(ie){return ie.value});return Co().all(rr()(E).call(E,function(ie){return ie.then(up(),up())})).then(function(){return i.dispatch()})}return k();function k(){o.currentPlugin=s;var ie=o.getCurrentMutations(),re=o.mutations.length-1;try{if(s.isGenerator){var ce=Ao(s(ie,o.getLib())),ve;try{for(ce.s();!(ve=ce.n()).done;){var he=ve.value;$(he)}}catch(me){ce.e(me)}finally{ce.f()}}else{var Se=s(ie,o.getLib());$(Se)}}catch(me){console.error(me),$([Ei()(Object.create(me),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:re})}return o.dispatch()}function $(ie){ie&&(ie=or.fullyNormalizeArray(ie),o.updatePatches(ie,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return Ln()(i).call(i,o)}}]),t}();function sy(t){return new oy(t).dispatch()}var Po={refs:Yg,allOf:ry,parameters:ny,properties:iy},ly=a(13218),Dp=a.n(ly),Np=function(r){return String.prototype.toLowerCase.call(r)},Bp=function(r){return r.replace(/[^\w]/gi,"_")};function Up(t){var r=t.openapi;return r?Gd()(r,"3"):!1}function Bm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function nf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||pr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Bp(t.operationId):uy(r,i,{v2OperationIdCompatibilityMode:s})}function uy(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,y,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(y="".concat(t.substring(1),"_")).call(y,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Np(r))).call(i,Bp(t))}function jp(t,r){var i;return Tt()(i="".concat(Np(r),"-")).call(i,t)}function fy(t,r){return!t||!t.paths?null:cy(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||pr(p)!=="object")return!1;var y=p.operationId,S=nf(p,o,s),w=jp(o,s);return[S,w,y].some(function(E){return E&&E===r})})}function cy(t,r){return Vp(t,r,!0)||null}function Vp(t,r,i){if(!t||pr(t)!=="object"||!t.paths||pr(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var y=o[s][p];if(!(!y||pr(y)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(S);if(i&&w)return S}}}function Wp(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Dp()(p)){var y=p.parameters,S=function($){var ie=p[$];if(!Dp()(ie))return"continue";var re=nf(ie,s,$);if(re){o[re]?o[re].push(ie):o[re]=[ie];var ce=o[re];if(ce.length>1)ce.forEach(function(Xe,et){var Ke;Xe.__originalOperationId=Xe.__originalOperationId||Xe.operationId,Xe.operationId=Tt()(Ke="".concat(re)).call(Ke,et+1)});else if(typeof ie.operationId!="undefined"){var ve=ce[0];ve.__originalOperationId=ve.__originalOperationId||ie.operationId,ve.operationId=re}}if($!=="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 ke=Ao(he),$e;try{for(ke.s();!($e=ke.n()).done;){var Ue=$e.value;for(var ze in Ue)if(!ie[ze])ie[ze]=Ue[ze];else if(ze==="parameters"){var Be=Ao(Ue[ze]),je;try{var We=function(){var et=je.value,Ke=ie[ze].some(function(ht){return ht.name&&ht.name===et.name||ht.$ref&&ht.$ref===et.$ref||ht.$$ref&&ht.$$ref===et.$$ref||ht===et});Ke||ie[ze].push(et)};for(Be.s();!(je=Be.n()).done;)We()}catch(Xe){Be.e(Xe)}finally{Be.f()}}}}catch(Xe){ke.e(Xe)}finally{ke.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function Hp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:Cp},credentials:s}).then(function(y){return y.body})}}function dy(){Po.refs.clearCache()}function zp(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,ie=t.skipNormalization,re=t.useCircularStructures,ce=t.http,ve=t.baseDoc;if(ve=ve||o,ce=r||ce||Zu,!i)return Hp(ce,{requestInterceptor:k,responseInterceptor:$})(ve).then(he);return he(i);function he(Se){ve&&(Po.refs.docCache[ve]=Se),Po.refs.fetchJSON=Hp(ce,{requestInterceptor:k,responseInterceptor:$});var me=[Po.refs];return typeof E=="function"&&me.push(Po.parameters),typeof w=="function"&&me.push(Po.properties),s!=="strict"&&me.push(Po.allOf),sy({spec:Se,context:{baseDoc:ve},plugins:me,allowMetaPatches:y,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(ie?function(){var ke=Ac(Gi().mark(function $e(Ue){return Gi().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},$e)}));return function($e){return ke.apply(this,arguments)}}():Wp)}}var py=a(27361),gl=a.n(py);function hy(t,r){return Qc.apply(this,arguments)}function Qc(){return Qc=Ac(Gi().mark(function t(r,i){var o,s,p,y,S,w,E,k,$,ie,re,ce,ve=arguments;return Gi().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return o=ve.length>2&&ve[2]!==void 0?ve[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,S=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,k=o.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},ie=Wp({spec:r}),re=ie.spec,Se.next=6,zp(Or(Or({},$),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Se.sent,!s&&Array.isArray(i)&&i.length&&(ce.spec=gl()(ce.spec,i)||null),Se.abrupt("return",ce);case 9:case"end":return Se.stop()}},t)})),Qc.apply(this,arguments)}var vy=function(){return null},gy=function(r){return Array.isArray(r)?r:[r]},af={mapTagOperations:xy,makeExecute:yy};function yy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Or(Or({spec:t.spec},Oc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},y))}}}function Um(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=af.makeExecute(t),i=af.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var p in i[s])o[s].operations[p]={execute:i[s][p]}}return{apis:o}}function my(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=af.makeExecute(t);return{apis:af.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function xy(t){var r=t.spec,i=t.cb,o=i===void 0?vy:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,S={},w={};return Vp(r,function(E){var k=E.pathName,$=E.method,ie=E.operation,re=ie.tags?gy(ie.tags):[p];re.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var ve=w[ce],he=nf(ie,k,$,{v2OperationIdCompatibilityMode:y}),Se=o({spec:r,pathName:k,method:$,operation:ie,operationId:he});if(S[he]){var me;S[he]+=1,ve[Tt()(me="".concat(he)).call(me,S[he])]=Se}else if(typeof ve[he]!="undefined"){var ke,$e,Ue=S[he]||1;S[he]=Ue+1,ve[Tt()(ke="".concat(he)).call(ke,S[he])]=Se;var ze=ve[he];delete ve[he],ve[Tt()($e="".concat(he)).call($e,Ue)]=ze}else ve[he]=Se}})}),w}var Gp=a(95683);function by(t,r){if(t==null)return{};var i={},o=jd(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(Gp(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function wy(t,r){if(t==null)return{};var i=by(t,r),o,s;if(Ku){var p=Ku(t);for(s=0;s<p.length;s++)o=p[s],!(Gp(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Sy=a(68630),$p=a.n(Sy),Ay=a(1469),Ey=a.n(Ay),Cy=a(76489);const Oy={body:Ty,header:Iy,query:ky,path:Fy,formData:Py};function Ty(t){var r=t.req,i=t.value;r.body=i}function Py(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Iy(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Fy(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function ky(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function of(t,r){return Ec()(r).call(r,"application/json")?typeof t=="string"?t:Ju()(t):t.toString()}function My(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,S=o.content;if(S){var w=nr()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(hs(of(i,w),{escape:!0}));return}var E=Fc({key:o.name,value:i,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Ry(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=nr()(o.content)[0];r.query[o.name]=of(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:Oc()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ly=["accept","authorization","content-type"];function Dy(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Ly.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=nr()(i.content)[0];r.headers[i.name]=of(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=Fc({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Ny(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=pr(o);if(i.content){var p,y=nr()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,of(o,y));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Fc({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var By=a(50706),Kp=a.n(By);function Uy(t,r){var i=t.operation,o=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=jy({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=nr()(w.content||{}),k=S&&E.indexOf(S)>-1;if(o||y){if(S&&k)r.headers["Content-Type"]=S;else if(!S){var $=E[0];$&&(r.headers["Content-Type"]=$,S=$)}}else S&&k&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var ie,re=Ln()(ie=Xd()(i.responses)).call(ie,function(ve){var he=Ai(ve,2),Se=he[0],me=he[1],ke=parseInt(Se,10);return ke>=200&&ke<300&&$p()(me.content)}).reduce(function(ve,he){var Se=Ai(he,2),me=Se[1];return Tt()(ve).call(ve,nr()(me.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(o)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(pr(o)==="object"){var ce=(w.content[S]||{}).encoding||{};r.form={},nr()(o).forEach(function(ve){r.form[ve]={value:o[ve],encoding:ce[ve]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function jy(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=Yu()({},r),w=o.authorized,E=w===void 0?{}:w,k=p.security||y.security||[],$=E&&!!nr()(E).length,ie=gl()(y,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!nr()(o).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){nr()(re).forEach(function(ce){var ve=E[ce],he=ie[ce];if(!!ve){var Se=ve.value||ve,me=he.type;if(ve){if(me==="apiKey")he.in==="query"&&(S.query[he.name]=Se),he.in==="header"&&(S.headers[he.name]=Se),he.in==="cookie"&&(S.cookies[he.name]=Se);else if(me==="http"){if(/^basic$/i.test(he.scheme)){var ke,$e=Se.username||"",Ue=Se.password||"",ze=Kp()(Tt()(ke="".concat($e,":")).call(ke,Ue));S.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(he.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(me==="oauth2"||me==="openIdConnect"){var Be,je=ve.token||{},We=he["x-tokenName"]||"access_token",Xe=je[We],et=je.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),S.headers.Authorization=Tt()(Be="".concat(et," ")).call(Be,Xe)}}}})}),S)}function Vy(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=Wy({request:r,securities:s,operation:o,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=Ai(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=Ai(i.consumes,1);r.headers["Content-Type"]=$[0]}else o.parameters&&Ln()(w=o.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&Ln()(E=o.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ie,re,ce=o.parameters&&Ln()(ie=o.parameters).call(ie,function(he){return he.in==="body"}).length>0,ve=o.parameters&&Ln()(re=o.parameters).call(re,function(he){return he.in==="formData"}).length>0;(ce||ve)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function Wy(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=Yu()({},r),w=o.authorized,E=w===void 0?{}:w,k=o.specSecurity,$=k===void 0?[]:k,ie=p.security||$,re=E&&!!nr()(E).length,ce=y.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!nr()(o).length||!re||!ie||Array.isArray(p.security)&&!p.security.length?r:(ie.forEach(function(ve){nr()(ve).forEach(function(he){var Se=E[he];if(!!Se){var me=Se.token,ke=Se.value||Se,$e=ce[he],Ue=$e.type,ze=$e["x-tokenName"]||"access_token",Be=me&&me[ze],je=me&&me.token_type;if(Se){if(Ue==="apiKey"){var We=$e.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][$e.name]=ke}else if(Ue==="basic")if(ke.header)S.headers.authorization=ke.header;else{var Xe,et=ke.username||"",Ke=ke.password||"";ke.base64=Kp()(Tt()(Xe="".concat(et,":")).call(Xe,Ke)),S.headers.authorization="Basic ".concat(ke.base64)}else if(Ue==="oauth2"&&Be){var ht;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,S.headers.authorization=Tt()(ht="".concat(je," ")).call(ht,Be)}}}})}),S)}var Yp=function(r){return Array.isArray(r)?r:[]},Hy=Ap("OperationNotFoundError",function(r,i,o){this.originalError=o,Ei()(this,i||{})}),zy=function(r,i){return Ln()(i).call(i,function(o){return o.name===r})},Gy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return nr()(i).forEach(function(s){nr()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},$y={buildRequest:Jp};function Ky(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,S=t.parameters,w=t.securities,E=wy(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||Zu;p&&y&&!s&&(s=jp(p,y));var $=$y.buildRequest(Or({spec:o,operationId:s,parameters:S,securities:w,http:k},E));return $.body&&($p()($.body)||Ey()($.body))&&($.body=Ju()($.body)),k($)}function Jp(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,ie=t.serverVariables,re=t.http,ce=t.parameters,ve=t.parameterBuilders,he=Up(o);ve||(he?ve=x:ve=Oy);var Se=re&&re.withCredentials?"include":"same-origin",me={url:"",credentials:Se,headers:{},cookies:{}};S&&(me.requestInterceptor=S),w&&(me.responseInterceptor=w),k&&(me.userFetch=k);var ke=fy(o,s);if(!ke)throw new Hy("Operation ".concat(s," not found"));var $e=ke.operation,Ue=$e===void 0?{}:$e,ze=ke.method,Be=ke.pathName;if(me.url+=Xp({spec:o,scheme:y,contextUrl:E,server:$,serverVariables:ie,pathName:Be,method:ze}),!s)return delete me.cookies,me;me.url+=Be,me.method="".concat(ze).toUpperCase(),ce=ce||{};var je=o.paths[Be]||{};p&&(me.headers.accept=p);var We=Gy(Tt()(r=Tt()(i=[]).call(i,Yp(Ue.parameters))).call(r,Yp(je.parameters)));We.forEach(function(Ke){var ht=ve[Ke.in],Ft;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(Ft=ce),Ft=Ke&&Ke.name&&ce[Ke.name],typeof Ft=="undefined"){var Ht;Ft=Ke&&Ke.name&&ce[Tt()(Ht="".concat(Ke.in,".")).call(Ht,Ke.name)]}else if(zy(Ke.name,We).length>1){var sr;console.warn(Tt()(sr="Parameter '".concat(Ke.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ke.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Ft!==null){if(typeof Ke.default!="undefined"&&typeof Ft=="undefined"&&(Ft=Ke.default),typeof Ft=="undefined"&&Ke.required&&!Ke.allowEmptyValue)throw new Error("Required parameter ".concat(Ke.name," is not provided"));if(he&&Ke.schema&&Ke.schema.type==="object"&&typeof Ft=="string")try{Ft=JSON.parse(Ft)}catch(Rr){throw new Error("Could not parse object parameter value string as JSON")}ht&&ht({req:me,parameter:Ke,value:Ft,operation:Ue,spec:o})}});var Xe=Or(Or({},t),{},{operation:Ue});if(he?me=Uy(Xe,me):me=Vy(Xe,me),me.cookies&&nr()(me.cookies).length){var et=nr()(me.cookies).reduce(function(Ke,ht){var Ft=me.cookies[ht],Ht=Ke?"&":"",sr=Cy.serialize(ht,Ft);return Ke+Ht+sr},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,lp(me),me}var Zc=function(r){return r?r.replace(/\W/g,""):null};function Xp(t){var r=Up(t.spec);return r?Yy(t):Qy(t)}function Yy(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,S=y===void 0?{}:y,w=gl()(r,["paths",i,(o||"").toLowerCase(),"servers"])||gl()(r,["paths",i,"servers"])||gl()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=rr()(w).call(w,function(ce){return ce.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ie=Ai(w,1);k=ie[0]}if(E.indexOf("{")>-1){var re=Xy(E);re.forEach(function(ce){if(k.variables&&k.variables[ce]){var ve=k.variables[ce],he=S[ce]||ve.default,Se=new RegExp("{".concat(ce,"}"),"g");E=E.replace(Se,he)}})}return Jy(E,p)}function Jy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ua.parse(Ua.resolve(r,t)):Ua.parse(t),o=Ua.parse(r),s=Zc(i.protocol)||Zc(o.protocol)||"",p=i.host||o.host,y=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+y)}else S=y;return S[S.length-1]==="/"?$i()(S).call(S,0,-1):S}function Xy(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function Qy(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Ua.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||y||Zc(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(S&&w){var $;k=Tt()($="".concat(S,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?$i()(k).call(k,0,-1):k}Br.http=Zu,Br.makeHttp=Gv.bind(null,Br.http),Br.resolve=zp,Br.resolveSubtree=hy,Br.execute=Ky,Br.serializeRes=rp,Br.serializeHeaders=np,Br.clearCache=dy,Br.makeApisTagOperation=my,Br.buildRequest=Jp,Br.helpers={opId:nf},Br.getBaseUrl=Xp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);Yu()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Yu()(r,Br.makeApisTagOperation(r)),r});return o.client=this,o}Br.prototype={http:Zu,execute:function(r){return this.applyDefaults(),Br.execute(Or({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Or({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(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Gd()(i,"http")){var o=Ua.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var jm=Br.helpers;const Zy=Br;var _y=a(71057),qy=a(72940),Qp=Object.defineProperty,em=Object.defineProperties,tm=Object.getOwnPropertyDescriptor,rm=Object.getOwnPropertyDescriptors,sf=Object.getOwnPropertySymbols,Zp=Object.prototype.hasOwnProperty,_p=Object.prototype.propertyIsEnumerable,_c=(t,r,i)=>r in t?Qp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Gr=(t,r)=>{for(var i in r||(r={}))Zp.call(r,i)&&_c(t,i,r[i]);if(sf)for(var i of sf(r))_p.call(r,i)&&_c(t,i,r[i]);return t},An=(t,r)=>em(t,rm(r)),qc=(t,r)=>{var i={};for(var o in t)Zp.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&sf)for(var o of sf(t))r.indexOf(o)<0&&_p.call(t,o)&&(i[o]=t[o]);return i},nm=(t,r,i,o)=>{for(var s=o>1?void 0:o?tm(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&Qp(r,i,s),s},ys=(t,r,i)=>(_c(t,typeof r!="symbol"?r+"":r,i),i),qp=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function eh(t){return t.startsWith("//")?"https:"+t:t}const im={flex:1,display:"flex",flexDirection:"column"};let ed=class extends d.Component{constructor(t){super(t);ys(this,"formApi"),ys(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=qc(o,["values"]);this.formApi=r,setTimeout(()=>{const y=An(Gr({},p),{values:An(Gr({},s),{query:(0,er.FU)(s.query||{})})});this.setState({form:y})},0)}),ys(this,"handleChange",r=>{var i=r,{values:o}=i,s=qc(i,["values"]);const p=An(Gr({},s),{values:An(Gr({},o),{query:(0,er.FU)(o.query||{})})});this.setState({form:p}),(0,er.Hc)(p)}),ys(this,"handleTabChange",r=>{this.setState({activeTab:r})}),ys(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),ys(this,"handleExecute",()=>qp(this,null,function*(){var r,i,o,s,p,y,S;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:ie}=this.state.form;if(this.formApi.submitForm(),ie){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:Ud.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,ce=re&&re.content&&re.content.active&&re.content.active.name||"";let ve=$.body;if(/json/.test(ce))try{ve=JSON.parse(ve)}catch(Ke){console.error(Ke)}this.setState({loading:!0});const he=this.state.resolvedRawSpec,Se=(E.httpVerb||"").toLowerCase(),me=(0,Vt.U2)(he,["paths",E.path,Se,"servers"])||(0,Vt.U2)(he,["paths",E.path,"servers"])||(0,Vt.U2)(he,["servers"]);if(!me)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 ke=me.find(Ke=>this.state.server.url.endsWith(Ke.url.endsWith("/")?Ke.url.substring(0,Ke.url.length-1):Ke.url)),$e=Date.now(),Ue=!!window.document.documentMode;let ze,Be=$.auth;if($.auth){const Ke=Object.keys($.auth)[0],ht=(0,Vt.dw)(Ke);ze=An(Gr({},he),{components:An(Gr({},he.components),{securitySchemes:An(Gr({},he.components.securitySchemes),{[ht]:An(Gr({},he.components.securitySchemes[ht]),{type:he.components.securitySchemes[ht].type==="openIdConnect"?"oauth2":he.components.securitySchemes[ht].type})})})}),Be=An(Gr({},Be),{[ht]:Be[Ke]})}else ze=Gr({},he);const je=w.options.corsProxyUrl;je&&me.length&&(ze.servers=me.map(Ke=>An(Gr({},Ke),{url:je+eh(Ke.url)})),ze.paths=An(Gr({},ze.paths),{[E.path]:An(Gr({},ze.paths[E.path]),{[Se]:An(Gr({},ze.paths[E.path][Se]),{servers:void 0}),servers:void 0})}));const We=((s=(o=re==null?void 0:re.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&ve&&Na(We)){const Ke=Object.values(ve);ve=Ke.length>1?Ke:Ke[0]}const Xe=(Ke,ht)=>Ft=>(this.props.store.options.sendXUserAgentInTryIt&&(Ft.headers["X-User-Agent"]="Redocly Try it API console"),Ke?Ke(Ft,ht):Ft),et={userFetch:Ue&&a(54098).fetch,server:je?je+eh(ke.url):ke.url,serverVariables:this.state.server.variables,spec:ze,pathName:E.path,method:E.httpVerb,parameters:Gr(Gr(Gr(Gr({},$.path),$.query),$.header),$.cookie),securities:{authorized:Be},requestBody:ve,requestContentType:We,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:Xe(w.options.requestInterceptor,E)};try{const Ke=yield Zy.execute(et),ht=Ke==null?void 0:Ke.data;ht instanceof Blob&&(Na(ht.type)&&(Ke.fileInfo={rawData:ht,fileName:(0,er.AM)(Ke.headers)}),Ke.data=yield ht.text()),k==null||k({request:et,response:Ke}),this.setState({response:Ke,error:void 0})}catch(Ke){Ke&&Ke.response&&Ke.response.data instanceof Blob&&(Ke.response.data=yield Ke.response.data.text(),k==null||k({request:et,response:Ke.response})),this.setState({response:void 0,error:Ke})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-$e}),(S=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||S.call(y,{eventType:Ud.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,er.ZS)(t.operation.parameters,"path"),cookie:(0,er.ZS)(t.operation.parameters,"cookie"),header:(0,er.ZS)(t.operation.parameters,"header"),query:(0,er.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return qp(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:o,activeTab:s,form:p,response:y,loading:S,error:w}=this.state,E=!!(y||w);return d.createElement(om,{shaking:o,className:r,rootElement:i},d.createElement(Ri.k1,null,d.createElement(H,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(wn.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(wn.RE,{hidden:s!==0},this.renderRequest()),d.createElement(wn.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Kl,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=y&&an.JsonPointer.get(y,r.pointer);let $=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!$||!p.values.auth[$])&&($=void 0),$&&(p.values.auth[$].token!==void 0||p.values.auth[$].client_id!==void 0||p.values.auth[$].client_secret!==void 0)&&(!p.values.auth[$].token||!p.values.auth[$].token.access_token)&&($=void 0),$&&p.values.auth[$].username!=null&&(!p.values.auth[$].username||!p.values.auth[$].password)&&($=void 0);const ie=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(pf,{onChange:this.handleChange,getApi:this.setFormApi,style:An(Gr({},im),{margin:0})},d.createElement(Ri.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(lf,{header:(0,cl.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},re?d.createElement(sm,{field:"auth",validate:er.np},ce=>d.createElement(_y.Q,{Hook:re,props:{server:S,operation:r,onChange:ce,OAuth2:_r}})):d.createElement(zh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(lf,{header:(0,cl.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(m,{validate:am,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,ie.length&&d.createElement(lf,{header:(0,cl.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(_n,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Bo,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(jo,{response:t,error:r,time:i})}};ed=nm([Ga.Pi],ed);function am(){}function om(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,Vt.Bs)(s),y=d.useContext(an.StoreContext);return d.createElement(wn.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function sm(t){const{fieldApi:r,render:i,userProps:o}=Jn(Gr({},t)),{setValue:s}=r,{children:p}=o;return i(d.createElement(d.Fragment,null,p(s)))}function lf(t){var r=t,{header:i,error:o,success:s}=r,p=qc(r,["header","error","success"]);const y=({toggle:S,expanded:w})=>d.createElement(Ri.h4,{onClick:S,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(Ri.xz,null,d.createElement(Ri.Dx,null,i),d.createElement(an.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(an.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&d.createElement(an.LockIcon,{size:"14px",color:"--color-success-500"})||null);return d.createElement(lm,An(Gr({},p),{header:y}))}const lm=(0,b.default)(Ri.s_)`
|
|
450
|
+
${Ri.h4} {
|
|
451
|
+
color: white;
|
|
452
|
+
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
453
|
+
padding: 10px;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
${an.ShelfIcon} path {
|
|
457
|
+
fill: white;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
${qy.N} {
|
|
461
|
+
padding: 15px 10px;
|
|
462
|
+
background-color: #3e4c59;
|
|
463
|
+
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
464
|
+
border-top: 0;
|
|
465
|
+
}
|
|
466
|
+
`},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var A=a.call(arguments,1),g,R=function(){if(this instanceof g){var z=b.apply(this,A.concat(a.call(arguments)));return Object(z)===z?z:this}else return b.apply(d,A.concat(a.call(arguments)))},B=Math.max(0,b.length-A.length),N=[],V=0;V<B;V++)N.push("$"+V);if(g=Function("binder","return function ("+N.join(",")+"){ return binder.apply(this,arguments); }")(R),b.prototype){var Q=function(){};Q.prototype=b.prototype,g.prototype=new Q,Q.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(ge){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(ye){A=null}var g=function(){throw new d},R=A?function(){try{return arguments.callee,g}catch(ye){try{return A(arguments,"callee").get}catch(ge){return g}}}():g,B=a(41405)(),N=Object.getPrototypeOf||function(ye){return ye.__proto__},V={},Q=typeof Uint8Array=="undefined"?c:N(Uint8Array),z={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":B?N([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":V,"%AsyncGenerator%":V,"%AsyncGeneratorFunction%":V,"%AsyncIteratorPrototype%":V,"%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%":V,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":B?N(N([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!B?c:N(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"||!B?c:N(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":B?N(""[Symbol.iterator]()):c,"%Symbol%":B?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":R,"%TypedArray%":Q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function ye(ge){var de;if(ge==="%AsyncFunction%")de=b("async function () {}");else if(ge==="%GeneratorFunction%")de=b("function* () {}");else if(ge==="%AsyncGeneratorFunction%")de=b("async function* () {}");else if(ge==="%AsyncGenerator%"){var ue=ye("%AsyncGeneratorFunction%");ue&&(de=ue.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var ae=ye("%AsyncGenerator%");ae&&(de=N(ae.prototype))}return z[ge]=de,de},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=a(58612),P=a(17642),j=L.call(Function.call,Array.prototype.concat),J=L.call(Function.apply,Array.prototype.splice),_=L.call(Function.call,String.prototype.replace),q=L.call(Function.call,String.prototype.slice),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,te=function(ge){var de=q(ge,0,1),ue=q(ge,-1);if(de==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&de!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ae=[];return _(ge,K,function(Le,Ve,De,Fe){ae[ae.length]=De?_(Fe,oe,"$1"):Ve||Le}),ae},ne=function(ge,de){var ue=ge,ae;if(P(X,ue)&&(ae=X[ue],ue="%"+ae[0]+"%"),P(z,ue)){var Le=z[ue];if(Le===V&&(Le=M(ue)),typeof Le=="undefined"&&!de)throw new d("intrinsic "+ge+" exists, but is not available. Please file an issue!");return{alias:ae,name:ue,value:Le}}throw new v("intrinsic "+ge+" does not exist!")};h.exports=function(ge,de){if(typeof ge!="string"||ge.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=te(ge),ae=ue.length>0?ue[0]:"",Le=ne("%"+ae+"%",de),Ve=Le.name,De=Le.value,Fe=!1,tt=Le.alias;tt&&(ae=tt[0],J(ue,j([0,1],tt)));for(var Qe=1,Je=!0;Qe<ue.length;Qe+=1){var ut=ue[Qe],pt=q(ut,0,1),yt=q(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||yt==='"'||yt==="'"||yt==="`")&&pt!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Fe=!0),ae+="."+ut,Ve="%"+ae+"%",P(z,Ve))De=z[Ve];else if(De!=null){if(!(ut in De)){if(!de)throw new d("base intrinsic for "+ge+" exists, but the property is not available.");return}if(A&&Qe+1>=ue.length){var qe=A(De,ut);Je=!!qe,Je&&"get"in qe&&!("originalValue"in qe.get)?De=qe.get:De=De[ut]}else Je=P(De,ut),De=De[ut];Je&&!Fe&&(z[Ve]=De)}}return De}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},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;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(a,c,v,x,d){var b,A,g=d*8-x-1,R=(1<<g)-1,B=R>>1,N=-7,V=v?d-1:0,Q=v?-1:1,z=a[c+V];for(V+=Q,b=z&(1<<-N)-1,z>>=-N,N+=g;N>0;b=b*256+a[c+V],V+=Q,N-=8);for(A=b&(1<<-N)-1,b>>=-N,N+=x;N>0;A=A*256+a[c+V],V+=Q,N-=8);if(b===0)b=1-B;else{if(b===R)return A?NaN:(z?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-B}return(z?-1:1)*A*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var A,g,R,B=b*8-d-1,N=(1<<B)-1,V=N>>1,Q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=x?0:b-1,M=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,A=N):(A=Math.floor(Math.log(c)/Math.LN2),c*(R=Math.pow(2,-A))<1&&(A--,R*=2),A+V>=1?c+=Q/R:c+=Q*Math.pow(2,1-V),c*R>=2&&(A++,R/=2),A+V>=N?(g=0,A=N):A+V>=1?(g=(c*R-1)*Math.pow(2,d),A=A+V):(g=c*Math.pow(2,V-1)*Math.pow(2,d),A=0));d>=8;a[v+z]=g&255,z+=M,g/=256,d-=8);for(A=A<<d|g,B+=d;B>0;a[v+z]=A&255,z+=M,A/=256,B-=8);a[v+z-M]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,A){var g,R,B,N;if(A)for(N=Object.keys(A),g=0,R=N.length;g<R;g+=1)B=N[g],b[B]=A[B];return b}function x(b,A){var g="",R;for(R=0;R<A;R+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,R=10,B=13,N=32,V=33,Q=34,z=35,M=37,X=38,L=39,P=42,j=44,J=45,_=58,q=61,K=62,oe=63,te=64,ne=91,ye=93,ge=96,de=123,ue=124,ae=125,Le={};Le[0]="\\0",Le[7]="\\a",Le[8]="\\b",Le[9]="\\t",Le[10]="\\n",Le[11]="\\v",Le[12]="\\f",Le[13]="\\r",Le[27]="\\e",Le[34]='\\"',Le[92]="\\\\",Le[133]="\\N",Le[160]="\\_",Le[8232]="\\L",Le[8233]="\\P";var Ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function De(D,ee){var fe,Ce,Pe,Te,Ge,He,at;if(ee===null)return{};for(fe={},Ce=Object.keys(ee),Pe=0,Te=Ce.length;Pe<Te;Pe+=1)Ge=Ce[Pe],He=String(ee[Ge]),Ge.slice(0,2)==="!!"&&(Ge="tag:yaml.org,2002:"+Ge.slice(2)),at=D.compiledTypeMap.fallback[Ge],at&&A.call(at.styleAliases,He)&&(He=at.styleAliases[He]),fe[Ge]=He;return fe}function Fe(D){var ee,fe,Ce;if(ee=D.toString(16).toUpperCase(),D<=255)fe="x",Ce=2;else if(D<=65535)fe="u",Ce=4;else if(D<=4294967295)fe="U",Ce=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+fe+c.repeat("0",Ce-ee.length)+ee}function tt(D){this.schema=D.schema||x,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=De(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(D,ee){for(var fe=c.repeat(" ",ee),Ce=0,Pe=-1,Te="",Ge,He=D.length;Ce<He;)Pe=D.indexOf(`
|
|
467
|
+
`,Ce),Pe===-1?(Ge=D.slice(Ce),Ce=He):(Ge=D.slice(Ce,Pe+1),Ce=Pe+1),Ge.length&&Ge!==`
|
|
468
|
+
`&&(Te+=fe),Te+=Ge;return Te}function Je(D,ee){return`
|
|
469
|
+
`+c.repeat(" ",D.indent*ee)}function ut(D,ee){var fe,Ce,Pe;for(fe=0,Ce=D.implicitTypes.length;fe<Ce;fe+=1)if(Pe=D.implicitTypes[fe],Pe.resolve(ee))return!0;return!1}function pt(D){return D===N||D===g}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function qe(D){return yt(D)&&!pt(D)&&D!==65279&&D!==B&&D!==R}function lt(D,ee){return yt(D)&&D!==65279&&D!==j&&D!==ne&&D!==ye&&D!==de&&D!==ae&&D!==_&&(D!==z||ee&&qe(ee))}function gt(D){return yt(D)&&D!==65279&&!pt(D)&&D!==J&&D!==oe&&D!==_&&D!==j&&D!==ne&&D!==ye&&D!==de&&D!==ae&&D!==z&&D!==X&&D!==P&&D!==V&&D!==ue&&D!==q&&D!==K&&D!==L&&D!==Q&&D!==M&&D!==te&&D!==ge}function mt(D){var ee=/^\n* /;return ee.test(D)}var Qt=1,nt=2,Lt=3,xt=4,jt=5;function Rt(D,ee,fe,Ce,Pe){var Te,Ge,He,at=!1,St=!1,wt=Ce!==-1,Kt=-1,Bt=gt(D.charCodeAt(0))&&!pt(D.charCodeAt(D.length-1));if(ee)for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),!yt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Bt=Bt&<(Ge,He)}else{for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),Ge===R)at=!0,wt&&(St=St||Te-Kt-1>Ce&&D[Kt+1]!==" ",Kt=Te);else if(!yt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Bt=Bt&<(Ge,He)}St=St||wt&&Te-Kt-1>Ce&&D[Kt+1]!==" "}return!at&&!St?Bt&&!Pe(D)?Qt:nt:fe>9&&mt(D)?jt:St?xt:Lt}function Gt(D,ee,fe,Ce){D.dump=function(){if(ee.length===0)return"''";if(!D.noCompatMode&&Ve.indexOf(ee)!==-1)return"'"+ee+"'";var Pe=D.indent*Math.max(1,fe),Te=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-Pe),Ge=Ce||D.flowLevel>-1&&fe>=D.flowLevel;function He(at){return ut(D,at)}switch(Rt(ee,Ge,D.indent,Te,He)){case Qt:return ee;case nt:return"'"+ee.replace(/'/g,"''")+"'";case Lt:return"|"+At(ee,D.indent)+kt(Qe(ee,Pe));case xt:return">"+At(ee,D.indent)+kt(Qe(pe(ee,Te),Pe));case jt:return'"'+Y(ee,Te)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function At(D,ee){var fe=mt(D)?String(ee):"",Ce=D[D.length-1]===`
|
|
470
|
+
`,Pe=Ce&&(D[D.length-2]===`
|
|
471
|
+
`||D===`
|
|
472
|
+
`),Te=Pe?"+":Ce?"":"-";return fe+Te+`
|
|
473
|
+
`}function kt(D){return D[D.length-1]===`
|
|
474
|
+
`?D.slice(0,-1):D}function pe(D,ee){for(var fe=/(\n+)([^\n]*)/g,Ce=function(){var St=D.indexOf(`
|
|
475
|
+
`);return St=St!==-1?St:D.length,fe.lastIndex=St,G(D.slice(0,St),ee)}(),Pe=D[0]===`
|
|
476
|
+
`||D[0]===" ",Te,Ge;Ge=fe.exec(D);){var He=Ge[1],at=Ge[2];Te=at[0]===" ",Ce+=He+(!Pe&&!Te&&at!==""?`
|
|
477
|
+
`:"")+G(at,ee),Pe=Te}return Ce}function G(D,ee){if(D===""||D[0]===" ")return D;for(var fe=/ [^ ]/g,Ce,Pe=0,Te,Ge=0,He=0,at="";Ce=fe.exec(D);)He=Ce.index,He-Pe>ee&&(Te=Ge>Pe?Ge:He,at+=`
|
|
478
|
+
`+D.slice(Pe,Te),Pe=Te+1),Ge=He;return at+=`
|
|
479
|
+
`,D.length-Pe>ee&&Ge>Pe?at+=D.slice(Pe,Ge)+`
|
|
480
|
+
`+D.slice(Ge+1):at+=D.slice(Pe),at.slice(1)}function Y(D){for(var ee="",fe,Ce,Pe,Te=0;Te<D.length;Te++){if(fe=D.charCodeAt(Te),fe>=55296&&fe<=56319&&(Ce=D.charCodeAt(Te+1),Ce>=56320&&Ce<=57343)){ee+=Fe((fe-55296)*1024+Ce-56320+65536),Te++;continue}Pe=Le[fe],ee+=!Pe&&yt(fe)?D[Te]:Pe||Fe(fe)}return ee}function we(D,ee,fe){var Ce="",Pe=D.tag,Te,Ge;for(Te=0,Ge=fe.length;Te<Ge;Te+=1)Ie(D,ee,fe[Te],!1,!1)&&(Te!==0&&(Ce+=","+(D.condenseFlow?"":" ")),Ce+=D.dump);D.tag=Pe,D.dump="["+Ce+"]"}function Re(D,ee,fe,Ce){var Pe="",Te=D.tag,Ge,He;for(Ge=0,He=fe.length;Ge<He;Ge+=1)Ie(D,ee+1,fe[Ge],!0,!0)&&((!Ce||Ge!==0)&&(Pe+=Je(D,ee)),D.dump&&R===D.dump.charCodeAt(0)?Pe+="-":Pe+="- ",Pe+=D.dump);D.tag=Te,D.dump=Pe||"[]"}function be(D,ee,fe){var Ce="",Pe=D.tag,Te=Object.keys(fe),Ge,He,at,St,wt;for(Ge=0,He=Te.length;Ge<He;Ge+=1)wt="",Ge!==0&&(wt+=", "),D.condenseFlow&&(wt+='"'),at=Te[Ge],St=fe[at],!!Ie(D,ee,at,!1,!1)&&(D.dump.length>1024&&(wt+="? "),wt+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),!!Ie(D,ee,St,!1,!1)&&(wt+=D.dump,Ce+=wt));D.tag=Pe,D.dump="{"+Ce+"}"}function Ae(D,ee,fe,Ce){var Pe="",Te=D.tag,Ge=Object.keys(fe),He,at,St,wt,Kt,Bt;if(D.sortKeys===!0)Ge.sort();else if(typeof D.sortKeys=="function")Ge.sort(D.sortKeys);else if(D.sortKeys)throw new v("sortKeys must be a boolean or a function");for(He=0,at=Ge.length;He<at;He+=1)Bt="",(!Ce||He!==0)&&(Bt+=Je(D,ee)),St=Ge[He],wt=fe[St],!!Ie(D,ee+1,St,!0,!0,!0)&&(Kt=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,Kt&&(D.dump&&R===D.dump.charCodeAt(0)?Bt+="?":Bt+="? "),Bt+=D.dump,Kt&&(Bt+=Je(D,ee)),!!Ie(D,ee+1,wt,!0,Kt)&&(D.dump&&R===D.dump.charCodeAt(0)?Bt+=":":Bt+=": ",Bt+=D.dump,Pe+=Bt));D.tag=Te,D.dump=Pe||"{}"}function O(D,ee,fe){var Ce,Pe,Te,Ge,He,at;for(Pe=fe?D.explicitTypes:D.implicitTypes,Te=0,Ge=Pe.length;Te<Ge;Te+=1)if(He=Pe[Te],(He.instanceOf||He.predicate)&&(!He.instanceOf||typeof ee=="object"&&ee instanceof He.instanceOf)&&(!He.predicate||He.predicate(ee))){if(D.tag=fe?He.tag:"?",He.represent){if(at=D.styleMap[He.tag]||He.defaultStyle,b.call(He.represent)==="[object Function]")Ce=He.represent(ee,at);else if(A.call(He.represent,at))Ce=He.represent[at](ee,at);else throw new v("!<"+He.tag+'> tag resolver accepts not "'+at+'" style');D.dump=Ce}return!0}return!1}function Ie(D,ee,fe,Ce,Pe,Te){D.tag=null,D.dump=fe,O(D,fe,!1)||O(D,fe,!0);var Ge=b.call(D.dump);Ce&&(Ce=D.flowLevel<0||D.flowLevel>ee);var He=Ge==="[object Object]"||Ge==="[object Array]",at,St;if(He&&(at=D.duplicates.indexOf(fe),St=at!==-1),(D.tag!==null&&D.tag!=="?"||St||D.indent!==2&&ee>0)&&(Pe=!1),St&&D.usedDuplicates[at])D.dump="*ref_"+at;else{if(He&&St&&!D.usedDuplicates[at]&&(D.usedDuplicates[at]=!0),Ge==="[object Object]")Ce&&Object.keys(D.dump).length!==0?(Ae(D,ee,D.dump,Pe),St&&(D.dump="&ref_"+at+D.dump)):(be(D,ee,D.dump),St&&(D.dump="&ref_"+at+" "+D.dump));else if(Ge==="[object Array]"){var wt=D.noArrayIndent&&ee>0?ee-1:ee;Ce&&D.dump.length!==0?(Re(D,wt,D.dump,Pe),St&&(D.dump="&ref_"+at+D.dump)):(we(D,wt,D.dump),St&&(D.dump="&ref_"+at+" "+D.dump))}else if(Ge==="[object String]")D.tag!=="?"&&Gt(D,D.dump,ee,Te);else{if(D.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ge)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function W(D,ee){var fe=[],Ce=[],Pe,Te;for(C(D,fe,Ce),Pe=0,Te=Ce.length;Pe<Te;Pe+=1)ee.duplicates.push(fe[Ce[Pe]]);ee.usedDuplicates=new Array(Te)}function C(D,ee,fe){var Ce,Pe,Te;if(D!==null&&typeof D=="object")if(Pe=ee.indexOf(D),Pe!==-1)fe.indexOf(Pe)===-1&&fe.push(Pe);else if(ee.push(D),Array.isArray(D))for(Pe=0,Te=D.length;Pe<Te;Pe+=1)C(D[Pe],ee,fe);else for(Ce=Object.keys(D),Pe=0,Te=Ce.length;Pe<Te;Pe+=1)C(D[Ce[Pe]],ee,fe)}function T(D,ee){ee=ee||{};var fe=new tt(ee);return fe.noRefs||W(D,fe),Ie(fe,0,D,!0,!0)?fe.dump+`
|
|
481
|
+
`:""}function se(D,ee){return T(D,c.extend({schema:d},ee))}h.exports.dump=T,h.exports.safeDump=se},14884:h=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(77334),d=a(5972),b=a(19321),A=Object.prototype.hasOwnProperty,g=1,R=2,B=3,N=4,V=1,Q=2,z=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,L=/[,\[\]\{\}]/,P=/^(?:!|!!|![a-z\-]+!)$/i,j=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(O){return Object.prototype.toString.call(O)}function _(O){return O===10||O===13}function q(O){return O===9||O===32}function K(O){return O===9||O===32||O===10||O===13}function oe(O){return O===44||O===91||O===93||O===123||O===125}function te(O){var Ie;return 48<=O&&O<=57?O-48:(Ie=O|32,97<=Ie&&Ie<=102?Ie-97+10:-1)}function ne(O){return O===120?2:O===117?4:O===85?8:0}function ye(O){return 48<=O&&O<=57?O-48:-1}function ge(O){return O===48?"\0":O===97?"\x07":O===98?"\b":O===116||O===9?" ":O===110?`
|
|
482
|
+
`:O===118?"\v":O===102?"\f":O===114?"\r":O===101?"":O===32?" ":O===34?'"':O===47?"/":O===92?"\\":O===78?"\x85":O===95?"\xA0":O===76?"\u2028":O===80?"\u2029":""}function de(O){return O<=65535?String.fromCharCode(O):String.fromCharCode((O-65536>>10)+55296,(O-65536&1023)+56320)}for(var ue=new Array(256),ae=new Array(256),Le=0;Le<256;Le++)ue[Le]=ge(Le)?1:0,ae[Le]=ge(Le);function Ve(O,Ie){this.input=O,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=O.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function De(O,Ie){return new v(Ie,new x(O.filename,O.input,O.position,O.line,O.position-O.lineStart))}function Fe(O,Ie){throw De(O,Ie)}function tt(O,Ie){O.onWarning&&O.onWarning.call(null,De(O,Ie))}var Qe={YAML:function(Ie,W,C){var T,se,D;Ie.version!==null&&Fe(Ie,"duplication of %YAML directive"),C.length!==1&&Fe(Ie,"YAML directive accepts exactly one argument"),T=/^([0-9]+)\.([0-9]+)$/.exec(C[0]),T===null&&Fe(Ie,"ill-formed argument of the YAML directive"),se=parseInt(T[1],10),D=parseInt(T[2],10),se!==1&&Fe(Ie,"unacceptable YAML version of the document"),Ie.version=C[0],Ie.checkLineBreaks=D<2,D!==1&&D!==2&&tt(Ie,"unsupported YAML version of the document")},TAG:function(Ie,W,C){var T,se;C.length!==2&&Fe(Ie,"TAG directive accepts exactly two arguments"),T=C[0],se=C[1],P.test(T)||Fe(Ie,"ill-formed tag handle (first argument) of the TAG directive"),A.call(Ie.tagMap,T)&&Fe(Ie,'there is a previously declared suffix for "'+T+'" tag handle'),j.test(se)||Fe(Ie,"ill-formed tag prefix (second argument) of the TAG directive"),Ie.tagMap[T]=se}};function Je(O,Ie,W,C){var T,se,D,ee;if(Ie<W){if(ee=O.input.slice(Ie,W),C)for(T=0,se=ee.length;T<se;T+=1)D=ee.charCodeAt(T),D===9||32<=D&&D<=1114111||Fe(O,"expected valid JSON character");else M.test(ee)&&Fe(O,"the stream contains non-printable characters");O.result+=ee}}function ut(O,Ie,W,C){var T,se,D,ee;for(c.isObject(W)||Fe(O,"cannot merge mappings; the provided source object is unacceptable"),T=Object.keys(W),D=0,ee=T.length;D<ee;D+=1)se=T[D],A.call(Ie,se)||(Ie[se]=W[se],C[se]=!0)}function pt(O,Ie,W,C,T,se,D,ee){var fe,Ce;if(Array.isArray(T))for(T=Array.prototype.slice.call(T),fe=0,Ce=T.length;fe<Ce;fe+=1)Array.isArray(T[fe])&&Fe(O,"nested arrays are not supported inside keys"),typeof T=="object"&&J(T[fe])==="[object Object]"&&(T[fe]="[object Object]");if(typeof T=="object"&&J(T)==="[object Object]"&&(T="[object Object]"),T=String(T),Ie===null&&(Ie={}),C==="tag:yaml.org,2002:merge")if(Array.isArray(se))for(fe=0,Ce=se.length;fe<Ce;fe+=1)ut(O,Ie,se[fe],W);else ut(O,Ie,se,W);else!O.json&&!A.call(W,T)&&A.call(Ie,T)&&(O.line=D||O.line,O.position=ee||O.position,Fe(O,"duplicated mapping key")),Ie[T]=se,delete W[T];return Ie}function yt(O){var Ie;Ie=O.input.charCodeAt(O.position),Ie===10?O.position++:Ie===13?(O.position++,O.input.charCodeAt(O.position)===10&&O.position++):Fe(O,"a line break is expected"),O.line+=1,O.lineStart=O.position}function qe(O,Ie,W){for(var C=0,T=O.input.charCodeAt(O.position);T!==0;){for(;q(T);)T=O.input.charCodeAt(++O.position);if(Ie&&T===35)do T=O.input.charCodeAt(++O.position);while(T!==10&&T!==13&&T!==0);if(_(T))for(yt(O),T=O.input.charCodeAt(O.position),C++,O.lineIndent=0;T===32;)O.lineIndent++,T=O.input.charCodeAt(++O.position);else break}return W!==-1&&C!==0&&O.lineIndent<W&&tt(O,"deficient indentation"),C}function lt(O){var Ie=O.position,W;return W=O.input.charCodeAt(Ie),!!((W===45||W===46)&&W===O.input.charCodeAt(Ie+1)&&W===O.input.charCodeAt(Ie+2)&&(Ie+=3,W=O.input.charCodeAt(Ie),W===0||K(W)))}function gt(O,Ie){Ie===1?O.result+=" ":Ie>1&&(O.result+=c.repeat(`
|
|
483
|
+
`,Ie-1))}function mt(O,Ie,W){var C,T,se,D,ee,fe,Ce,Pe,Te=O.kind,Ge=O.result,He;if(He=O.input.charCodeAt(O.position),K(He)||oe(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(T=O.input.charCodeAt(O.position+1),K(T)||W&&oe(T)))return!1;for(O.kind="scalar",O.result="",se=D=O.position,ee=!1;He!==0;){if(He===58){if(T=O.input.charCodeAt(O.position+1),K(T)||W&&oe(T))break}else if(He===35){if(C=O.input.charCodeAt(O.position-1),K(C))break}else{if(O.position===O.lineStart&<(O)||W&&oe(He))break;if(_(He))if(fe=O.line,Ce=O.lineStart,Pe=O.lineIndent,qe(O,!1,-1),O.lineIndent>=Ie){ee=!0,He=O.input.charCodeAt(O.position);continue}else{O.position=D,O.line=fe,O.lineStart=Ce,O.lineIndent=Pe;break}}ee&&(Je(O,se,D,!1),gt(O,O.line-fe),se=D=O.position,ee=!1),q(He)||(D=O.position+1),He=O.input.charCodeAt(++O.position)}return Je(O,se,D,!1),O.result?!0:(O.kind=Te,O.result=Ge,!1)}function Qt(O,Ie){var W,C,T;if(W=O.input.charCodeAt(O.position),W!==39)return!1;for(O.kind="scalar",O.result="",O.position++,C=T=O.position;(W=O.input.charCodeAt(O.position))!==0;)if(W===39)if(Je(O,C,O.position,!0),W=O.input.charCodeAt(++O.position),W===39)C=O.position,O.position++,T=O.position;else return!0;else _(W)?(Je(O,C,T,!0),gt(O,qe(O,!1,Ie)),C=T=O.position):O.position===O.lineStart&<(O)?Fe(O,"unexpected end of the document within a single quoted scalar"):(O.position++,T=O.position);Fe(O,"unexpected end of the stream within a single quoted scalar")}function nt(O,Ie){var W,C,T,se,D,ee;if(ee=O.input.charCodeAt(O.position),ee!==34)return!1;for(O.kind="scalar",O.result="",O.position++,W=C=O.position;(ee=O.input.charCodeAt(O.position))!==0;){if(ee===34)return Je(O,W,O.position,!0),O.position++,!0;if(ee===92){if(Je(O,W,O.position,!0),ee=O.input.charCodeAt(++O.position),_(ee))qe(O,!1,Ie);else if(ee<256&&ue[ee])O.result+=ae[ee],O.position++;else if((D=ne(ee))>0){for(T=D,se=0;T>0;T--)ee=O.input.charCodeAt(++O.position),(D=te(ee))>=0?se=(se<<4)+D:Fe(O,"expected hexadecimal character");O.result+=de(se),O.position++}else Fe(O,"unknown escape sequence");W=C=O.position}else _(ee)?(Je(O,W,C,!0),gt(O,qe(O,!1,Ie)),W=C=O.position):O.position===O.lineStart&<(O)?Fe(O,"unexpected end of the document within a double quoted scalar"):(O.position++,C=O.position)}Fe(O,"unexpected end of the stream within a double quoted scalar")}function Lt(O,Ie){var W=!0,C,T=O.tag,se,D=O.anchor,ee,fe,Ce,Pe,Te,Ge={},He,at,St,wt;if(wt=O.input.charCodeAt(O.position),wt===91)fe=93,Te=!1,se=[];else if(wt===123)fe=125,Te=!0,se={};else return!1;for(O.anchor!==null&&(O.anchorMap[O.anchor]=se),wt=O.input.charCodeAt(++O.position);wt!==0;){if(qe(O,!0,Ie),wt=O.input.charCodeAt(O.position),wt===fe)return O.position++,O.tag=T,O.anchor=D,O.kind=Te?"mapping":"sequence",O.result=se,!0;W||Fe(O,"missed comma between flow collection entries"),at=He=St=null,Ce=Pe=!1,wt===63&&(ee=O.input.charCodeAt(O.position+1),K(ee)&&(Ce=Pe=!0,O.position++,qe(O,!0,Ie))),C=O.line,pe(O,Ie,g,!1,!0),at=O.tag,He=O.result,qe(O,!0,Ie),wt=O.input.charCodeAt(O.position),(Pe||O.line===C)&&wt===58&&(Ce=!0,wt=O.input.charCodeAt(++O.position),qe(O,!0,Ie),pe(O,Ie,g,!1,!0),St=O.result),Te?pt(O,se,Ge,at,He,St):Ce?se.push(pt(O,null,Ge,at,He,St)):se.push(He),qe(O,!0,Ie),wt=O.input.charCodeAt(O.position),wt===44?(W=!0,wt=O.input.charCodeAt(++O.position)):W=!1}Fe(O,"unexpected end of the stream within a flow collection")}function xt(O,Ie){var W,C,T=V,se=!1,D=!1,ee=Ie,fe=0,Ce=!1,Pe,Te;if(Te=O.input.charCodeAt(O.position),Te===124)C=!1;else if(Te===62)C=!0;else return!1;for(O.kind="scalar",O.result="";Te!==0;)if(Te=O.input.charCodeAt(++O.position),Te===43||Te===45)V===T?T=Te===43?z:Q:Fe(O,"repeat of a chomping mode identifier");else if((Pe=ye(Te))>=0)Pe===0?Fe(O,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?Fe(O,"repeat of an indentation width identifier"):(ee=Ie+Pe-1,D=!0);else break;if(q(Te)){do Te=O.input.charCodeAt(++O.position);while(q(Te));if(Te===35)do Te=O.input.charCodeAt(++O.position);while(!_(Te)&&Te!==0)}for(;Te!==0;){for(yt(O),O.lineIndent=0,Te=O.input.charCodeAt(O.position);(!D||O.lineIndent<ee)&&Te===32;)O.lineIndent++,Te=O.input.charCodeAt(++O.position);if(!D&&O.lineIndent>ee&&(ee=O.lineIndent),_(Te)){fe++;continue}if(O.lineIndent<ee){T===z?O.result+=c.repeat(`
|
|
484
|
+
`,se?1+fe:fe):T===V&&se&&(O.result+=`
|
|
485
|
+
`);break}for(C?q(Te)?(Ce=!0,O.result+=c.repeat(`
|
|
486
|
+
`,se?1+fe:fe)):Ce?(Ce=!1,O.result+=c.repeat(`
|
|
487
|
+
`,fe+1)):fe===0?se&&(O.result+=" "):O.result+=c.repeat(`
|
|
488
|
+
`,fe):O.result+=c.repeat(`
|
|
489
|
+
`,se?1+fe:fe),se=!0,D=!0,fe=0,W=O.position;!_(Te)&&Te!==0;)Te=O.input.charCodeAt(++O.position);Je(O,W,O.position,!1)}return!0}function jt(O,Ie){var W,C=O.tag,T=O.anchor,se=[],D,ee=!1,fe;for(O.anchor!==null&&(O.anchorMap[O.anchor]=se),fe=O.input.charCodeAt(O.position);fe!==0&&!(fe!==45||(D=O.input.charCodeAt(O.position+1),!K(D)));){if(ee=!0,O.position++,qe(O,!0,-1)&&O.lineIndent<=Ie){se.push(null),fe=O.input.charCodeAt(O.position);continue}if(W=O.line,pe(O,Ie,B,!1,!0),se.push(O.result),qe(O,!0,-1),fe=O.input.charCodeAt(O.position),(O.line===W||O.lineIndent>Ie)&&fe!==0)Fe(O,"bad indentation of a sequence entry");else if(O.lineIndent<Ie)break}return ee?(O.tag=C,O.anchor=T,O.kind="sequence",O.result=se,!0):!1}function Rt(O,Ie,W){var C,T,se,D,ee=O.tag,fe=O.anchor,Ce={},Pe={},Te=null,Ge=null,He=null,at=!1,St=!1,wt;for(O.anchor!==null&&(O.anchorMap[O.anchor]=Ce),wt=O.input.charCodeAt(O.position);wt!==0;){if(C=O.input.charCodeAt(O.position+1),se=O.line,D=O.position,(wt===63||wt===58)&&K(C))wt===63?(at&&(pt(O,Ce,Pe,Te,Ge,null),Te=Ge=He=null),St=!0,at=!0,T=!0):at?(at=!1,T=!0):Fe(O,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),O.position+=1,wt=C;else if(pe(O,W,R,!1,!0))if(O.line===se){for(wt=O.input.charCodeAt(O.position);q(wt);)wt=O.input.charCodeAt(++O.position);if(wt===58)wt=O.input.charCodeAt(++O.position),K(wt)||Fe(O,"a whitespace character is expected after the key-value separator within a block mapping"),at&&(pt(O,Ce,Pe,Te,Ge,null),Te=Ge=He=null),St=!0,at=!1,T=!1,Te=O.tag,Ge=O.result;else if(St)Fe(O,"can not read an implicit mapping pair; a colon is missed");else return O.tag=ee,O.anchor=fe,!0}else if(St)Fe(O,"can not read a block mapping entry; a multiline key may not be an implicit key");else return O.tag=ee,O.anchor=fe,!0;else break;if((O.line===se||O.lineIndent>Ie)&&(pe(O,Ie,N,!0,T)&&(at?Ge=O.result:He=O.result),at||(pt(O,Ce,Pe,Te,Ge,He,se,D),Te=Ge=He=null),qe(O,!0,-1),wt=O.input.charCodeAt(O.position)),O.lineIndent>Ie&&wt!==0)Fe(O,"bad indentation of a mapping entry");else if(O.lineIndent<Ie)break}return at&&pt(O,Ce,Pe,Te,Ge,null),St&&(O.tag=ee,O.anchor=fe,O.kind="mapping",O.result=Ce),St}function Gt(O){var Ie,W=!1,C=!1,T,se,D;if(D=O.input.charCodeAt(O.position),D!==33)return!1;if(O.tag!==null&&Fe(O,"duplication of a tag property"),D=O.input.charCodeAt(++O.position),D===60?(W=!0,D=O.input.charCodeAt(++O.position)):D===33?(C=!0,T="!!",D=O.input.charCodeAt(++O.position)):T="!",Ie=O.position,W){do D=O.input.charCodeAt(++O.position);while(D!==0&&D!==62);O.position<O.length?(se=O.input.slice(Ie,O.position),D=O.input.charCodeAt(++O.position)):Fe(O,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!K(D);)D===33&&(C?Fe(O,"tag suffix cannot contain exclamation marks"):(T=O.input.slice(Ie-1,O.position+1),P.test(T)||Fe(O,"named tag handle cannot contain such characters"),C=!0,Ie=O.position+1)),D=O.input.charCodeAt(++O.position);se=O.input.slice(Ie,O.position),L.test(se)&&Fe(O,"tag suffix cannot contain flow indicator characters")}return se&&!j.test(se)&&Fe(O,"tag name cannot contain such characters: "+se),W?O.tag=se:A.call(O.tagMap,T)?O.tag=O.tagMap[T]+se:T==="!"?O.tag="!"+se:T==="!!"?O.tag="tag:yaml.org,2002:"+se:Fe(O,'undeclared tag handle "'+T+'"'),!0}function At(O){var Ie,W;if(W=O.input.charCodeAt(O.position),W!==38)return!1;for(O.anchor!==null&&Fe(O,"duplication of an anchor property"),W=O.input.charCodeAt(++O.position),Ie=O.position;W!==0&&!K(W)&&!oe(W);)W=O.input.charCodeAt(++O.position);return O.position===Ie&&Fe(O,"name of an anchor node must contain at least one character"),O.anchor=O.input.slice(Ie,O.position),!0}function kt(O){var Ie,W,C;if(C=O.input.charCodeAt(O.position),C!==42)return!1;for(C=O.input.charCodeAt(++O.position),Ie=O.position;C!==0&&!K(C)&&!oe(C);)C=O.input.charCodeAt(++O.position);return O.position===Ie&&Fe(O,"name of an alias node must contain at least one character"),W=O.input.slice(Ie,O.position),A.call(O.anchorMap,W)||Fe(O,'unidentified alias "'+W+'"'),O.result=O.anchorMap[W],qe(O,!0,-1),!0}function pe(O,Ie,W,C,T){var se,D,ee,fe=1,Ce=!1,Pe=!1,Te,Ge,He,at,St;if(O.listener!==null&&O.listener("open",O),O.tag=null,O.anchor=null,O.kind=null,O.result=null,se=D=ee=N===W||B===W,C&&qe(O,!0,-1)&&(Ce=!0,O.lineIndent>Ie?fe=1:O.lineIndent===Ie?fe=0:O.lineIndent<Ie&&(fe=-1)),fe===1)for(;Gt(O)||At(O);)qe(O,!0,-1)?(Ce=!0,ee=se,O.lineIndent>Ie?fe=1:O.lineIndent===Ie?fe=0:O.lineIndent<Ie&&(fe=-1)):ee=!1;if(ee&&(ee=Ce||T),(fe===1||N===W)&&(g===W||R===W?at=Ie:at=Ie+1,St=O.position-O.lineStart,fe===1?ee&&(jt(O,St)||Rt(O,St,at))||Lt(O,at)?Pe=!0:(D&&xt(O,at)||Qt(O,at)||nt(O,at)?Pe=!0:kt(O)?(Pe=!0,(O.tag!==null||O.anchor!==null)&&Fe(O,"alias node should not have any properties")):mt(O,at,g===W)&&(Pe=!0,O.tag===null&&(O.tag="?")),O.anchor!==null&&(O.anchorMap[O.anchor]=O.result)):fe===0&&(Pe=ee&&jt(O,St))),O.tag!==null&&O.tag!=="!")if(O.tag==="?"){for(O.result!==null&&O.kind!=="scalar"&&Fe(O,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+O.kind+'"'),Te=0,Ge=O.implicitTypes.length;Te<Ge;Te+=1)if(He=O.implicitTypes[Te],He.resolve(O.result)){O.result=He.construct(O.result),O.tag=He.tag,O.anchor!==null&&(O.anchorMap[O.anchor]=O.result);break}}else A.call(O.typeMap[O.kind||"fallback"],O.tag)?(He=O.typeMap[O.kind||"fallback"][O.tag],O.result!==null&&He.kind!==O.kind&&Fe(O,"unacceptable node kind for !<"+O.tag+'> tag; it should be "'+He.kind+'", not "'+O.kind+'"'),He.resolve(O.result)?(O.result=He.construct(O.result),O.anchor!==null&&(O.anchorMap[O.anchor]=O.result)):Fe(O,"cannot resolve a node with !<"+O.tag+"> explicit tag")):Fe(O,"unknown tag !<"+O.tag+">");return O.listener!==null&&O.listener("close",O),O.tag!==null||O.anchor!==null||Pe}function G(O){var Ie=O.position,W,C,T,se=!1,D;for(O.version=null,O.checkLineBreaks=O.legacy,O.tagMap={},O.anchorMap={};(D=O.input.charCodeAt(O.position))!==0&&(qe(O,!0,-1),D=O.input.charCodeAt(O.position),!(O.lineIndent>0||D!==37));){for(se=!0,D=O.input.charCodeAt(++O.position),W=O.position;D!==0&&!K(D);)D=O.input.charCodeAt(++O.position);for(C=O.input.slice(W,O.position),T=[],C.length<1&&Fe(O,"directive name must not be less than one character in length");D!==0;){for(;q(D);)D=O.input.charCodeAt(++O.position);if(D===35){do D=O.input.charCodeAt(++O.position);while(D!==0&&!_(D));break}if(_(D))break;for(W=O.position;D!==0&&!K(D);)D=O.input.charCodeAt(++O.position);T.push(O.input.slice(W,O.position))}D!==0&&yt(O),A.call(Qe,C)?Qe[C](O,C,T):tt(O,'unknown document directive "'+C+'"')}if(qe(O,!0,-1),O.lineIndent===0&&O.input.charCodeAt(O.position)===45&&O.input.charCodeAt(O.position+1)===45&&O.input.charCodeAt(O.position+2)===45?(O.position+=3,qe(O,!0,-1)):se&&Fe(O,"directives end mark is expected"),pe(O,O.lineIndent-1,N,!1,!0),qe(O,!0,-1),O.checkLineBreaks&&X.test(O.input.slice(Ie,O.position))&&tt(O,"non-ASCII line breaks are interpreted as content"),O.documents.push(O.result),O.position===O.lineStart&<(O)){O.input.charCodeAt(O.position)===46&&(O.position+=3,qe(O,!0,-1));return}if(O.position<O.length-1)Fe(O,"end of the stream or a document separator is expected");else return}function Y(O,Ie){O=String(O),Ie=Ie||{},O.length!==0&&(O.charCodeAt(O.length-1)!==10&&O.charCodeAt(O.length-1)!==13&&(O+=`
|
|
490
|
+
`),O.charCodeAt(0)===65279&&(O=O.slice(1)));var W=new Ve(O,Ie),C=O.indexOf("\0");for(C!==-1&&(W.position=C,Fe(W,"null byte is not allowed in input")),W.input+="\0";W.input.charCodeAt(W.position)===32;)W.lineIndent+=1,W.position+=1;for(;W.position<W.length-1;)G(W);return W.documents}function we(O,Ie,W){Ie!==null&&typeof Ie=="object"&&typeof W=="undefined"&&(W=Ie,Ie=null);var C=Y(O,W);if(typeof Ie!="function")return C;for(var T=0,se=C.length;T<se;T+=1)Ie(C[T])}function Re(O,Ie){var W=Y(O,Ie);if(W.length!==0){if(W.length===1)return W[0];throw new v("expected a single document in the stream, but found more")}}function be(O,Ie,W){return typeof Ie=="object"&&Ie!==null&&typeof W=="undefined"&&(W=Ie,Ie=null),we(O,Ie,c.extend({schema:d},W))}function Ae(O,Ie){return Re(O,c.extend({schema:d},Ie))}h.exports.loadAll=we,h.exports.load=Re,h.exports.safeLoadAll=be,h.exports.safeLoad=Ae},77334:(h,I,a)=>{"use strict";var c=a(25596);function v(x,d,b,A,g){this.name=x,this.buffer=d,this.position=b,this.line=A,this.column=g}v.prototype.getSnippet=function(d,b){var A,g,R,B,N;if(!this.buffer)return null;for(d=d||4,b=b||75,A="",g=this.position;g>0&&`\0\r
|
|
491
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){A=" ... ",g+=5;break}for(R="",B=this.position;B<this.buffer.length&&`\0\r
|
|
492
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(B))===-1;)if(B+=1,B-this.position>b/2-1){R=" ... ",B-=5;break}return N=this.buffer.slice(g,B),c.repeat(" ",d)+A+N+R+`
|
|
493
|
+
`+c.repeat(" ",d+this.position-g+A.length)+"^"},v.prototype.toString=function(d){var b,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(A+=`:
|
|
494
|
+
`+b)),A},h.exports=v},82409:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(53899);function d(g,R,B){var N=[];return g.include.forEach(function(V){B=d(V,R,B)}),g[R].forEach(function(V){B.forEach(function(Q,z){Q.tag===V.tag&&Q.kind===V.kind&&N.push(z)}),B.push(V)}),B.filter(function(V,Q){return N.indexOf(Q)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},R,B;function N(V){g[V.kind][V.tag]=g.fallback[V.tag]=V}for(R=0,B=arguments.length;R<B;R+=1)arguments[R].forEach(N);return g}function A(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(R){if(R.loadKind&&R.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}A.DEFAULT=null,A.create=function(){var R,B;switch(arguments.length){case 1:R=A.DEFAULT,B=arguments[0];break;case 2:R=arguments[0],B=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(R=c.toArray(R),B=c.toArray(B),!R.every(function(N){return N instanceof A}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!B.every(function(N){return N instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new A({include:R,explicit:B})},h.exports=A},17318:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(65796)]})},19321:(h,I,a)=>{"use strict";var c=a(82409);h.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(h,I,a)=>{"use strict";var c=a(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(A){var g={};return A!==null&&Object.keys(A).forEach(function(R){A[R].forEach(function(B){g[String(B)]=R})}),g}function b(A,g){if(g=g||{},Object.keys(g).forEach(function(R){if(v.indexOf(R)===-1)throw new c('Unknown option "'+R+'" is met in definition of "'+A+'" YAML type.')}),this.tag=A,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(R){return R},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}h.exports=b},18964:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(B){}var x=a(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
495
|
+
\r`;function b(B){if(B===null)return!1;var N,V,Q=0,z=B.length,M=d;for(V=0;V<z;V++)if(N=M.indexOf(B.charAt(V)),!(N>64)){if(N<0)return!1;Q+=6}return Q%8==0}function A(B){var N,V,Q=B.replace(/[\r\n=]/g,""),z=Q.length,M=d,X=0,L=[];for(N=0;N<z;N++)N%4==0&&N&&(L.push(X>>16&255),L.push(X>>8&255),L.push(X&255)),X=X<<6|M.indexOf(Q.charAt(N));return V=z%4*6,V===0?(L.push(X>>16&255),L.push(X>>8&255),L.push(X&255)):V===18?(L.push(X>>10&255),L.push(X>>2&255)):V===12&&L.push(X>>4&255),c?c.from?c.from(L):new c(L):L}function g(B){var N="",V=0,Q,z,M=B.length,X=d;for(Q=0;Q<M;Q++)Q%3==0&&Q&&(N+=X[V>>18&63],N+=X[V>>12&63],N+=X[V>>6&63],N+=X[V&63]),V=(V<<8)+B[Q];return z=M%3,z===0?(N+=X[V>>18&63],N+=X[V>>12&63],N+=X[V>>6&63],N+=X[V&63]):z===2?(N+=X[V>>10&63],N+=X[V>>4&63],N+=X[V<<2&63],N+=X[64]):z===1&&(N+=X[V>>2&63],N+=X[V<<4&63],N+=X[64],N+=X[64]),N}function R(B){return c&&c.isBuffer(B)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:R,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var A=b.length;return A===4&&(b==="true"||b==="True"||b==="TRUE")||A===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(B){return!(B===null||!x.test(B)||B[B.length-1]==="_")}function b(B){var N,V,Q,z;return N=B.replace(/_/g,"").toLowerCase(),V=N[0]==="-"?-1:1,z=[],"+-".indexOf(N[0])>=0&&(N=N.slice(1)),N===".inf"?V===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:N===".nan"?NaN:N.indexOf(":")>=0?(N.split(":").forEach(function(M){z.unshift(parseFloat(M,10))}),N=0,Q=1,z.forEach(function(M){N+=M*Q,Q*=60}),V*N):V*parseFloat(N,10)}var A=/^[-+]?[0-9]+e/;function g(B,N){var V;if(isNaN(B))switch(N){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===B)switch(N){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===B)switch(N){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(B))return"-0.0";return V=B.toString(10),A.test(V)?V.replace("e",".e"):V}function R(B){return Object.prototype.toString.call(B)==="[object Number]"&&(B%1!=0||c.isNegativeZero(B))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:R,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(B){return 48<=B&&B<=57||65<=B&&B<=70||97<=B&&B<=102}function d(B){return 48<=B&&B<=55}function b(B){return 48<=B&&B<=57}function A(B){if(B===null)return!1;var N=B.length,V=0,Q=!1,z;if(!N)return!1;if(z=B[V],(z==="-"||z==="+")&&(z=B[++V]),z==="0"){if(V+1===N)return!0;if(z=B[++V],z==="b"){for(V++;V<N;V++)if(z=B[V],z!=="_"){if(z!=="0"&&z!=="1")return!1;Q=!0}return Q&&z!=="_"}if(z==="x"){for(V++;V<N;V++)if(z=B[V],z!=="_"){if(!x(B.charCodeAt(V)))return!1;Q=!0}return Q&&z!=="_"}for(;V<N;V++)if(z=B[V],z!=="_"){if(!d(B.charCodeAt(V)))return!1;Q=!0}return Q&&z!=="_"}if(z==="_")return!1;for(;V<N;V++)if(z=B[V],z!=="_"){if(z===":")break;if(!b(B.charCodeAt(V)))return!1;Q=!0}return!Q||z==="_"?!1:z!==":"?!0:/^(:[0-5]?[0-9])+$/.test(B.slice(V))}function g(B){var N=B,V=1,Q,z,M=[];return N.indexOf("_")!==-1&&(N=N.replace(/_/g,"")),Q=N[0],(Q==="-"||Q==="+")&&(Q==="-"&&(V=-1),N=N.slice(1),Q=N[0]),N==="0"?0:Q==="0"?N[1]==="b"?V*parseInt(N.slice(2),2):N[1]==="x"?V*parseInt(N,16):V*parseInt(N,8):N.indexOf(":")!==-1?(N.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),N=0,z=1,M.forEach(function(X){N+=X*z,z*=60}),V*N):V*parseInt(N,10)}function R(B){return Object.prototype.toString.call(B)==="[object Number]"&&B%1==0&&!c.isNegativeZero(B)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:R,represent:{binary:function(B){return B>=0?"0b"+B.toString(2):"-0b"+B.toString(2).slice(1)},octal:function(B){return B>=0?"0"+B.toString(8):"-0"+B.toString(8).slice(1)},decimal:function(B){return B.toString(10)},hexadecimal:function(B){return B>=0?"0x"+B.toString(16).toUpperCase():"-0x"+B.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(R){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(R){if(R===null)return!1;try{var B="("+R+")",N=c.parse(B,{range:!0});return!(N.type!=="Program"||N.body.length!==1||N.body[0].type!=="ExpressionStatement"||N.body[0].expression.type!=="ArrowFunctionExpression"&&N.body[0].expression.type!=="FunctionExpression")}catch(V){return!1}}function b(R){var B="("+R+")",N=c.parse(B,{range:!0}),V=[],Q;if(N.type!=="Program"||N.body.length!==1||N.body[0].type!=="ExpressionStatement"||N.body[0].expression.type!=="ArrowFunctionExpression"&&N.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return N.body[0].expression.params.forEach(function(z){V.push(z.name)}),Q=N.body[0].expression.body.range,N.body[0].expression.body.type==="BlockStatement"?new Function(V,B.slice(Q[0]+1,Q[1]-1)):new Function(V,"return "+B.slice(Q[0],Q[1]))}function A(R){return R.toString()}function g(R){return Object.prototype.toString.call(R)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:A})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,R=/\/([gim]*)$/.exec(A),B="";return!(g[0]==="/"&&(R&&(B=R[1]),B.length>3||g[g.length-B.length-1]!=="/"))}function x(A){var g=A,R=/\/([gim]*)$/.exec(A),B="";return g[0]==="/"&&(R&&(B=R[1]),g=g.slice(1,g.length-B.length-1)),new RegExp(g,B)}function d(A){var g="/"+A.source+"/";return A.global&&(g+="g"),A.multiline&&(g+="m"),A.ignoreCase&&(g+="i"),g}function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(A){return typeof A=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var A=b.length;return A===1&&b==="~"||A===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],R,B,N,V,Q,z=A;for(R=0,B=z.length;R<B;R+=1){if(N=z[R],Q=!1,x.call(N)!=="[object Object]")return!1;for(V in N)if(v.call(N,V))if(!Q)Q=!0;else return!1;if(!Q)return!1;if(g.indexOf(V)===-1)g.push(V);else return!1}return!0}function b(A){return A!==null?A:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,R,B,N,V=b;for(N=new Array(V.length),A=0,g=V.length;A<g;A+=1){if(R=V[A],v.call(R)!=="[object Object]"||(B=Object.keys(R),B.length!==1))return!1;N[A]=[B[0],R[B[0]]]}return!0}function d(b){if(b===null)return[];var A,g,R,B,N,V=b;for(N=new Array(V.length),A=0,g=V.length;A<g;A+=1)R=V[A],B=Object.keys(R),N[A]=[B[0],R[B[0]]];return N}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var A,g=b;for(A in g)if(v.call(g,A)&&g[A]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var R,B,N,V,Q,z,M,X=0,L=null,P,j,J;if(R=v.exec(g),R===null&&(R=x.exec(g)),R===null)throw new Error("Date resolve error");if(B=+R[1],N=+R[2]-1,V=+R[3],!R[4])return new Date(Date.UTC(B,N,V));if(Q=+R[4],z=+R[5],M=+R[6],R[7]){for(X=R[7].slice(0,3);X.length<3;)X+="0";X=+X}return R[9]&&(P=+R[10],j=+(R[11]||0),L=(P*60+j)*6e4,R[9]==="-"&&(L=-L)),J=new Date(Date.UTC(B,N,V,Q,z,M,X)),L&&J.setTime(J.getTime()-L),J}function A(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:A})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function A(g){var R=-1,B=g==null?0:g.length;for(this.clear();++R<B;){var N=g[R];this.set(N[0],N[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function A(g){var R=-1,B=g==null?0:g.length;for(this.clear();++R<B;){var N=g[R];this.set(N[0],N[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function A(g){var R=-1,B=g==null?0:g.length;for(this.clear();++R<B;){var N=g[R];this.set(N[0],N[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var A=-1,g=b==null?0:b.length;for(this.__data__=new c;++A<g;)this.add(b[A])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),A=a(34309);function g(R){var B=this.__data__=new c(R);this.size=B.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=A,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var A=a[v];c(A,v,a)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),A=a(36719),g=Object.prototype,R=g.hasOwnProperty;function B(N,V){var Q=x(N),z=!Q&&v(N),M=!Q&&!z&&d(N),X=!Q&&!z&&!M&&A(N),L=Q||z||M||X,P=L?c(N.length,String):[],j=P.length;for(var J in N)(V||R.call(N,J))&&!(L&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,j)))&&P.push(J);return P}h.exports=B},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,R){var B=A[g];(!(d.call(A,g)&&v(B,R))||R===void 0&&!(g in A))&&c(A,g,R)}h.exports=b},18470:(h,I,a)=>{var c=a(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),A=a(64626),g=a(278),R=a(18805),B=a(1911),N=a(58234),V=a(46904),Q=a(98882),z=a(43824),M=a(29148),X=a(38517),L=a(1469),P=a(44144),j=a(56688),J=a(13218),_=a(72928),q=a(3674),K=a(81704),oe=1,te=2,ne=4,ye="[object Arguments]",ge="[object Array]",de="[object Boolean]",ue="[object Date]",ae="[object Error]",Le="[object Function]",Ve="[object GeneratorFunction]",De="[object Map]",Fe="[object Number]",tt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ut="[object String]",pt="[object Symbol]",yt="[object WeakMap]",qe="[object ArrayBuffer]",lt="[object DataView]",gt="[object Float32Array]",mt="[object Float64Array]",Qt="[object Int8Array]",nt="[object Int16Array]",Lt="[object Int32Array]",xt="[object Uint8Array]",jt="[object Uint8ClampedArray]",Rt="[object Uint16Array]",Gt="[object Uint32Array]",At={};At[ye]=At[ge]=At[qe]=At[lt]=At[de]=At[ue]=At[gt]=At[mt]=At[Qt]=At[nt]=At[Lt]=At[De]=At[Fe]=At[tt]=At[Qe]=At[Je]=At[ut]=At[pt]=At[xt]=At[jt]=At[Rt]=At[Gt]=!0,At[ae]=At[Le]=At[yt]=!1;function kt(pe,G,Y,we,Re,be){var Ae,O=G&oe,Ie=G&te,W=G≠if(Y&&(Ae=Re?Y(pe,we,Re,be):Y(pe)),Ae!==void 0)return Ae;if(!J(pe))return pe;var C=L(pe);if(C){if(Ae=z(pe),!O)return g(pe,Ae)}else{var T=Q(pe),se=T==Le||T==Ve;if(P(pe))return A(pe,O);if(T==tt||T==ye||se&&!Re){if(Ae=Ie||se?{}:X(pe),!O)return Ie?B(pe,b(Ae,pe)):R(pe,d(Ae,pe))}else{if(!At[T])return Re?pe:{};Ae=M(pe,T,O)}}be||(be=new c);var D=be.get(pe);if(D)return D;be.set(pe,Ae),_(pe)?pe.forEach(function(Ce){Ae.add(kt(Ce,G,Y,Ce,pe,be))}):j(pe)&&pe.forEach(function(Ce,Pe){Ae.set(Pe,kt(Ce,G,Y,Pe,pe,be))});var ee=W?Ie?V:N:Ie?K:q,fe=C?void 0:ee(pe);return v(fe||pe,function(Ce,Pe){fe&&(Pe=Ce,Ce=pe[Pe]),x(Ae,Pe,kt(Ce,G,Y,Pe,pe,be))}),Ae}h.exports=kt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,A,g,R){var B=-1,N=d.length;for(A||(A=v),R||(R=[]);++B<N;){var V=d[B];b>0&&A(V)?b>1?x(V,b-1,A,g,R):c(R,V):g||(R[R.length]=V)}return R}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var A=0,g=b.length;d!=null&&A<g;)d=d[v(b[A++])];return A&&A==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",A=c?c.toStringTag:void 0;function g(R){return R==null?R===void 0?b:d:A&&A in Object(R)?v(R):x(R)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,A,g,R){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,A,g,x,R)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),A=a(1469),g=a(44144),R=a(36719),B=1,N="[object Arguments]",V="[object Array]",Q="[object Object]",z=Object.prototype,M=z.hasOwnProperty;function X(L,P,j,J,_,q){var K=A(L),oe=A(P),te=K?V:b(L),ne=oe?V:b(P);te=te==N?Q:te,ne=ne==N?Q:ne;var ye=te==Q,ge=ne==Q,de=te==ne;if(de&&g(L)){if(!g(P))return!1;K=!0,ye=!1}if(de&&!ye)return q||(q=new c),K||R(L)?v(L,P,j,J,_,q):x(L,P,te,j,J,_,q);if(!(j&B)){var ue=ye&&M.call(L,"__wrapped__"),ae=ge&&M.call(P,"__wrapped__");if(ue||ae){var Le=ue?L.value():L,Ve=ae?P.value():P;return q||(q=new c),_(Le,Ve,j,J,q)}}return de?(q||(q=new c),d(L,P,j,J,_,q)):!1}h.exports=X},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(A,g,R,B){var N=R.length,V=N,Q=!B;if(A==null)return!V;for(A=Object(A);N--;){var z=R[N];if(Q&&z[2]?z[1]!==A[z[0]]:!(z[0]in A))return!1}for(;++N<V;){z=R[N];var M=z[0],X=A[M],L=z[1];if(Q&&z[2]){if(X===void 0&&!(M in A))return!1}else{var P=new c;if(B)var j=B(X,L,M,A,g,P);if(!(j===void 0?v(L,X,x|d,B,P):j))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,R=Object.prototype,B=g.toString,N=R.hasOwnProperty,V=RegExp("^"+B.call(N).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q(z){if(!x(z)||v(z))return!1;var M=c(z)?V:A;return M.test(d(z))}h.exports=Q},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",R="[object Error]",B="[object Function]",N="[object Map]",V="[object Number]",Q="[object Object]",z="[object RegExp]",M="[object Set]",X="[object String]",L="[object WeakMap]",P="[object ArrayBuffer]",j="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",q="[object Int8Array]",K="[object Int16Array]",oe="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",de={};de[J]=de[_]=de[q]=de[K]=de[oe]=de[te]=de[ne]=de[ye]=de[ge]=!0,de[d]=de[b]=de[P]=de[A]=de[j]=de[g]=de[R]=de[B]=de[N]=de[V]=de[Q]=de[z]=de[M]=de[X]=de[L]=!1;function ue(ae){return x(ae)&&v(ae.length)&&!!de[c(ae)]}h.exports=ue},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function A(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=A},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(A){if(!c(A))return v(A);var g=[];for(var R in Object(A))d.call(A,R)&&R!="constructor"&&g.push(R);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var R=v(g),B=[];for(var N in g)N=="constructor"&&(R||!b.call(g,N))||B.push(N);return B}h.exports=A},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var A=v(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(g){return g===b||c(g,b,A)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),A=a(42634),g=a(40327),R=1,B=2;function N(V,Q){return d(V)&&b(Q)?A(g(V),Q):function(z){var M=v(z,V);return M===void 0&&M===Q?x(z,V):c(Q,M,R|B)}}h.exports=N},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,A,g){for(var R=-1,B=A.length,N={};++R<B;){var V=A[R],Q=c(b,V);g(Q,V)&&v(N,x(V,b),Q)}return N}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function A(g,R,B,N){if(!d(g))return g;R=v(R,g);for(var V=-1,Q=R.length,z=Q-1,M=g;M!=null&&++V<Q;){var X=b(R[V]),L=B;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(V!=z){var P=M[X];L=N?N(P,X,M):void 0,L===void 0&&(L=d(P)?P:x(R[V+1])?[]:{})}c(M,X,L),M=M[X]}return g}h.exports=A},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,A){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(A),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function R(B){if(typeof B=="string")return B;if(x(B))return v(B,R)+"";if(d(B))return g?g.call(B):"";var N=B+"";return N=="0"&&1/B==-b?"-0":N}h.exports=R},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,a)=>{var c=a(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,A=b?b.allocUnsafe:void 0;function g(R,B){if(B)return R.slice();var N=R.length,V=A?A(N):new R.constructor(N);return R.copy(V),V}h.exports=g},57157:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,A,g){var R=!A;A||(A={});for(var B=-1,N=b.length;++B<N;){var V=b[B],Q=g?g(A[V],d[V],V,A,d):void 0;Q===void 0&&(Q=d[V]),R?v(A,V,Q):c(A,V,Q)}return A}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,A){var g=-1,R=A.length,B=R>1?A[R-1]:void 0,N=R>2?A[2]:void 0;for(B=d.length>3&&typeof B=="function"?(R--,B):void 0,N&&v(A[0],A[1],N)&&(B=R<3?void 0:B,R=1),b=Object(b);++g<R;){var V=A[g];V&&d(b,V,g,B)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(A,g,R){var B=Object(A);if(!v(A)){var N=c(g,3);A=x(A),g=function(Q){return N(B[Q],Q,B)}}var V=b(A,g,R);return V>-1?B[N?A[V]:V]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function A(g,R,B,N,V,Q){var z=B&d,M=g.length,X=R.length;if(M!=X&&!(z&&X>M))return!1;var L=Q.get(g),P=Q.get(R);if(L&&P)return L==R&&P==g;var j=-1,J=!0,_=B&b?new c:void 0;for(Q.set(g,R),Q.set(R,g);++j<M;){var q=g[j],K=R[j];if(N)var oe=z?N(K,q,j,R,g,Q):N(q,K,j,g,R,Q);if(oe!==void 0){if(oe)continue;J=!1;break}if(_){if(!v(R,function(te,ne){if(!x(_,ne)&&(q===te||V(q,te,B,N,Q)))return _.push(ne)})){J=!1;break}}else if(!(q===K||V(q,K,B,N,Q))){J=!1;break}}return Q.delete(g),Q.delete(R),J}h.exports=A},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),A=a(21814),g=1,R=2,B="[object Boolean]",N="[object Date]",V="[object Error]",Q="[object Map]",z="[object Number]",M="[object RegExp]",X="[object Set]",L="[object String]",P="[object Symbol]",j="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,q=_?_.valueOf:void 0;function K(oe,te,ne,ye,ge,de,ue){switch(ne){case J:if(oe.byteLength!=te.byteLength||oe.byteOffset!=te.byteOffset)return!1;oe=oe.buffer,te=te.buffer;case j:return!(oe.byteLength!=te.byteLength||!de(new v(oe),new v(te)));case B:case N:case z:return x(+oe,+te);case V:return oe.name==te.name&&oe.message==te.message;case M:case L:return oe==te+"";case Q:var ae=b;case X:var Le=ye&g;if(ae||(ae=A),oe.size!=te.size&&!Le)return!1;var Ve=ue.get(oe);if(Ve)return Ve==te;ye|=R,ue.set(oe,te);var De=d(ae(oe),ae(te),ye,ge,de,ue);return ue.delete(oe),De;case P:if(q)return q.call(oe)==q.call(te)}return!1}h.exports=K},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,R,B,N,V){var Q=R&v,z=c(A),M=z.length,X=c(g),L=X.length;if(M!=L&&!Q)return!1;for(var P=M;P--;){var j=z[P];if(!(Q?j in g:d.call(g,j)))return!1}var J=V.get(A),_=V.get(g);if(J&&_)return J==g&&_==A;var q=!0;V.set(A,g),V.set(g,A);for(var K=Q;++P<M;){j=z[P];var oe=A[j],te=g[j];if(B)var ne=Q?B(te,oe,j,g,A,V):B(oe,te,j,A,g,V);if(!(ne===void 0?oe===te||N(oe,te,R,B,V):ne)){q=!1;break}K||(K=j=="constructor")}if(q&&!K){var ye=A.constructor,ge=g.constructor;ye!=ge&&"constructor"in A&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof ge=="function"&&ge instanceof ge)&&(q=!1)}return V.delete(A),V.delete(g),q}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),A=b.length;A--;){var g=b[A],R=d[g];b[A]=[g,R,c(R)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function A(g){var R=x.call(g,b),B=g[b];try{g[b]=void 0;var N=!0}catch(Q){}var V=d.call(g);return N&&(R?g[b]=B:delete g[b]),V}h.exports=A},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(R){return d.call(g,R)}))}:v;h.exports=A},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,A=b?function(g){for(var R=[];g;)c(R,x(g)),g=v(g);return R}:d;h.exports=A},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),A=a(44239),g=a(80346),R="[object Map]",B="[object Object]",N="[object Promise]",V="[object Set]",Q="[object WeakMap]",z="[object DataView]",M=g(c),X=g(v),L=g(x),P=g(d),j=g(b),J=A;(c&&J(new c(new ArrayBuffer(1)))!=z||v&&J(new v)!=R||x&&J(x.resolve())!=N||d&&J(new d)!=V||b&&J(new b)!=Q)&&(J=function(_){var q=A(_),K=q==B?_.constructor:void 0,oe=K?g(K):"";if(oe)switch(oe){case M:return z;case X:return R;case L:return N;case P:return V;case j:return Q}return q}),h.exports=J},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),A=a(40327);function g(R,B,N){B=c(B,R);for(var V=-1,Q=B.length,z=!1;++V<Q;){var M=A(B[V]);if(!(z=R!=null&&N(R,M)))break;R=R[M]}return z||++V!=Q?z:(Q=R==null?0:R.length,!!Q&&b(Q)&&d(M,Q)&&(x(R)||v(R)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(A){var g=this.__data__;if(c){var R=g[A];return R===v?void 0:R}return d.call(g,A)?g[A]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var A=this.__data__;return c?A[b]!==void 0:x.call(A,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),A="[object Boolean]",g="[object Date]",R="[object Map]",B="[object Number]",N="[object RegExp]",V="[object Set]",Q="[object String]",z="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",L="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",oe="[object Uint16Array]",te="[object Uint32Array]";function ne(ye,ge,de){var ue=ye.constructor;switch(ge){case M:return c(ye);case A:case g:return new ue(+ye);case X:return v(ye,de);case L:case P:case j:case J:case _:case q:case K:case oe:case te:return b(ye,de);case R:return new ue;case B:case Q:return new ue(ye);case N:return x(ye);case V:return new ue;case z:return d(ye)}}h.exports=ne},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(A){return x(A)||v(A)||!!(d&&A&&A[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(A,g,R){if(!d(R))return!1;var B=typeof g;return(B=="number"?v(R)&&x(g,R.length):B=="string"&&g in R)?c(R[g],A):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(A,g){if(c(A))return!1;var R=typeof A;return R=="number"||R=="symbol"||R=="boolean"||A==null||v(A)?!0:d.test(A)||!x.test(A)||g!=null&&A in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var A=this.__data__,g=c(A,b);if(g<0)return!1;var R=A.length-1;return g==R?A.pop():x.call(A,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,A=c(b,x);return A<0?(++this.size,b.push([x,d])):b[A][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),A=b.size;return b.set(x,d),this.size+=b.size==A?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return A.size===v&&A.clear(),g}),A=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,A=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(R){}}();h.exports=A},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,A){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,R=-1,B=v(g.length-b,0),N=Array(B);++R<B;)N[R]=g[b+R];R=-1;for(var V=Array(b+1);++R<b;)V[R]=g[R];return V[b]=A(N),c(d,this,V)}}h.exports=x},55639:(h,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=a-(A-b);if(b=A,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(A,g){var R=this.__data__;if(R instanceof c){var B=R.__data__;if(!v||B.length<d-1)return B.push([A,g]),this.size=++R.size,this;R=this.__data__=new x(B)}return R.set(A,g),this.size=R.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(v,function(g,R,B,N){A.push(B?N.replace(x,"$1"):R||g)}),A});h.exports=d},40327:(h,I,a)=>{var c=a(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),A=a(3674),g=Object.prototype,R=g.hasOwnProperty,B=x(function(N,V){if(b(V)||d(V)){v(V,A(V),N);return}for(var Q in V)R.call(V,Q)&&c(N,Q,V[Q])});h.exports=B},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(A,g,R){var B=A==null?0:A.length;if(!B)return-1;var N=R==null?0:x(R);return N<0&&(N=d(B+N,0)),c(A,v(g,3),N)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var A=x==null?void 0:c(x,d);return A===void 0?b:A}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,A=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=A},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,A=b?c.Buffer:void 0,g=A?A.isBuffer:void 0,R=g||v;h.exports=R},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),A=a(44144),g=a(25726),R=a(36719),B="[object Map]",N="[object Set]",V=Object.prototype,Q=V.hasOwnProperty;function z(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||A(M)||R(M)||x(M)))return!M.length;var X=v(M);if(X==B||X==N)return!M.size;if(g(M))return!c(M).length;for(var L in M)if(Q.call(M,L))return!1;return!0}h.exports=z},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(R){if(!v(R))return!1;var B=c(R);return B==d||B==b||B==x||B==A}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,R=A.hasOwnProperty,B=g.call(Object);function N(V){if(!x(V)||c(V)!=d)return!1;var Q=v(V);if(Q===null)return!0;var z=R.call(Q,"constructor")&&Q.constructor;return typeof z=="function"&&z instanceof z&&g.call(z)==B}h.exports=N},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var A=function(){var g=arguments,R=b?b.apply(this,g):g[0],B=A.cache;if(B.has(R))return B.get(R);var N=d.apply(this,g);return A.cache=B.set(R,N)||B,N};return A.cache=new(x.Cache||c),A}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(A,g,R){return A=d(A),R=R==null?0:c(x(R),0,A.length),g=v(g),A.slice(R,R+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,a)=>{var c=a(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var A=b<0?-1:1;return A*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,R=parseInt;function B(N){if(typeof N=="number")return N;if(x(N))return d;if(v(N)){var V=typeof N.valueOf=="function"?N.valueOf():N;N=v(V)?V+"":V}if(typeof N!="string")return N===0?N:+N;N=c(N);var Q=A.test(N);return Q||g.test(N)?R(N.slice(2),Q?2:8):b.test(N)?d:+N}h.exports=B},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,A=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&A&&typeof A.get=="function"?A.get:null,R=b&&Set.prototype.forEach,B=typeof WeakMap=="function"&&WeakMap.prototype,N=B?WeakMap.prototype.has:null,V=typeof WeakSet=="function"&&WeakSet.prototype,Q=V?WeakSet.prototype.has:null,z=typeof WeakRef=="function"&&WeakRef.prototype,M=z?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,L=Object.prototype.toString,P=Function.prototype.toString,j=String.prototype.match,J=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,K=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),ne=a(24654).custom,ye=ne&&Je(ne)?ne:null,ge=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,O,Ie,W){var C=O||{};if(yt(C,"quoteStyle")&&C.quoteStyle!=="single"&&C.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(C,"maxStringLength")&&(typeof C.maxStringLength=="number"?C.maxStringLength<0&&C.maxStringLength!==1/0:C.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var T=yt(C,"customInspect")?C.customInspect:!0;if(typeof T!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(yt(C,"indent")&&C.indent!==null&&C.indent!==" "&&!(parseInt(C.indent,10)===C.indent&&C.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Rt(Ae,C);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var se=typeof C.depth=="undefined"?5:C.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=se&&se>0&&typeof Ae=="object")return ae(Ae)?"[Array]":"[Object]";var D=Y(C,Ie);if(typeof W=="undefined")W=[];else if(gt(W,Ae)>=0)return"[Circular]";function ee(Bn,Yn,Cn){if(Yn&&(W=W.slice(),W.push(Yn)),Cn){var ma={depth:C.depth};return yt(C,"quoteStyle")&&(ma.quoteStyle=C.quoteStyle),be(Bn,ma,Ie+1,W)}return be(Bn,C,Ie+1,W)}if(typeof Ae=="function"){var fe=lt(Ae),Ce=Re(Ae,ee);return"[Function"+(fe?": "+fe:" (anonymous)")+"]"+(Ce.length>0?" { "+Ce.join(", ")+" }":"")}if(Je(Ae)){var Pe=K?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(Ae);return typeof Ae=="object"&&!K?At(Pe):Pe}if(jt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),Ge=Ae.attributes||[],He=0;He<Ge.length;He++)Te+=" "+Ge[He].name+"="+de(ue(Ge[He].value),"double",C);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(ae(Ae)){if(Ae.length===0)return"[]";var at=Re(Ae,ee);return D&&!G(at)?"["+we(at,D)+"]":"[ "+at.join(", ")+" ]"}if(De(Ae)){var St=Re(Ae,ee);return St.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+St.join(", ")+" }"}if(typeof Ae=="object"&&T){if(ye&&typeof Ae[ye]=="function")return Ae[ye]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(mt(Ae)){var wt=[];return d.call(Ae,function(Bn,Yn){wt.push(ee(Yn,Ae,!0)+" => "+ee(Bn,Ae))}),pe("Map",x.call(Ae),wt,D)}if(Lt(Ae)){var Kt=[];return R.call(Ae,function(Bn){Kt.push(ee(Bn,Ae))}),pe("Set",g.call(Ae),Kt,D)}if(Qt(Ae))return kt("WeakMap");if(xt(Ae))return kt("WeakSet");if(nt(Ae))return kt("WeakRef");if(tt(Ae))return At(ee(Number(Ae)));if(ut(Ae))return At(ee(J.call(Ae)));if(Qe(Ae))return At(X.call(Ae));if(Fe(Ae))return At(ee(String(Ae)));if(!Le(Ae)&&!Ve(Ae)){var Bt=Re(Ae,ee),cr=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,Jr=Ae instanceof Object?"":"null prototype",En=!cr&&ge&&Object(Ae)===Ae&&ge in Ae?qe(Ae).slice(8,-1):Jr?"Object":"",Ji=cr||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=Ji+(En||Jr?"["+[].concat(En||[],Jr||[]).join(": ")+"] ":"");return Bt.length===0?jr+"{}":D?jr+"{"+we(Bt,D)+"}":jr+"{ "+Bt.join(", ")+" }"}return String(Ae)};function de(be,Ae,O){var Ie=(O.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function ue(be){return String(be).replace(/"/g,""")}function ae(be){return qe(be)==="[object Array]"&&(!ge||!(typeof be=="object"&&ge in be))}function Le(be){return qe(be)==="[object Date]"&&(!ge||!(typeof be=="object"&&ge in be))}function Ve(be){return qe(be)==="[object RegExp]"&&(!ge||!(typeof be=="object"&&ge in be))}function De(be){return qe(be)==="[object Error]"&&(!ge||!(typeof be=="object"&&ge in be))}function Fe(be){return qe(be)==="[object String]"&&(!ge||!(typeof be=="object"&&ge in be))}function tt(be){return qe(be)==="[object Number]"&&(!ge||!(typeof be=="object"&&ge in be))}function Qe(be){return qe(be)==="[object Boolean]"&&(!ge||!(typeof be=="object"&&ge in be))}function Je(be){if(K)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!q)return!1;try{return q.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!J)return!1;try{return J.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function yt(be,Ae){return pt.call(be,Ae)}function qe(be){return L.call(be)}function lt(be){if(be.name)return be.name;var Ae=j.call(P.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function gt(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var O=0,Ie=be.length;O<Ie;O++)if(be[O]===Ae)return O;return-1}function mt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function Qt(be){if(!N||!be||typeof be!="object")return!1;try{N.call(be,N);try{Q.call(be,Q)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function nt(be){if(!M||!be||typeof be!="object")return!1;try{return M.call(be),!0}catch(Ae){}return!1}function Lt(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function xt(be){if(!Q||!be||typeof be!="object")return!1;try{Q.call(be,Q);try{N.call(be,N)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function jt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Rt(be,Ae){if(be.length>Ae.maxStringLength){var O=be.length-Ae.maxStringLength,Ie="... "+O+" more character"+(O>1?"s":"");return Rt(be.slice(0,Ae.maxStringLength),Ae)+Ie}var W=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Gt);return de(W,"single",Ae)}function Gt(be){var Ae=be.charCodeAt(0),O={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return O?"\\"+O:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function At(be){return"Object("+be+")"}function kt(be){return be+" { ? }"}function pe(be,Ae,O,Ie){var W=Ie?we(O,Ie):O.join(", ");return be+" ("+Ae+") {"+W+"}"}function G(be){for(var Ae=0;Ae<be.length;Ae++)if(gt(be[Ae],`
|
|
496
|
+
`)>=0)return!1;return!0}function Y(be,Ae){var O;if(be.indent===" ")O=" ";else if(typeof be.indent=="number"&&be.indent>0)O=Array(be.indent+1).join(" ");else return null;return{base:O,prev:Array(Ae+1).join(O)}}function we(be,Ae){if(be.length===0)return"";var O=`
|
|
497
|
+
`+Ae.prev+Ae.base;return O+be.join(","+O)+`
|
|
498
|
+
`+Ae.prev}function Re(be,Ae){var O=ae(be),Ie=[];if(O){Ie.length=be.length;for(var W=0;W<be.length;W++)Ie[W]=yt(be,W)?Ae(be[W],be):""}var C=typeof _=="function"?_(be):[],T;if(K){T={};for(var se=0;se<C.length;se++)T["$"+C[se]]=C[se]}for(var D in be)!yt(be,D)||O&&String(Number(D))===D&&D<be.length||K&&T["$"+D]instanceof Symbol||(/[^\w$]/.test(D)?Ie.push(Ae(D,be)+": "+Ae(be[D],be)):Ie.push(D+": "+Ae(be[D],be)));if(typeof _=="function")for(var ee=0;ee<C.length;ee++)oe.call(be,C[ee])&&Ie.push("["+Ae(C[ee])+"]: "+Ae(be[C[ee]],be));return Ie}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(R,B){for(var N=new v(R.length),V=0,Q,z,M,X=0,L=0;X<=R.length;X++){var P=X<R.length?R.charCodeAt(X):NaN;switch(V){case 0:switch(P){case 37:Q=0,z=0,V=1;break;case 43:B&&(P=32);default:N[L++]=P;break}break;case 1:if(M=P,P>=48&&P<=57)Q=P-48;else if(P>=65&&P<=70)Q=P-65+10;else if(P>=97&&P<=102)Q=P-97+10;else{N[L++]=37,N[L++]=P,V=0;break}V=2;break;case 2:if(V=0,P>=48&&P<=57)z=P-48;else if(P>=65&&P<=70)z=P-65+10;else if(P>=97&&P<=102)z=P-97+10;else{N[L++]=37,N[L++]=M,N[L++]=P;break}N[L++]=16*Q+z;break}}return N.slice(0,L-1)};function x(R,B){try{return decodeURIComponent(R)}catch(N){return c.unescapeBuffer(R,B).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(R){typeof R!="string"&&(R+="");for(var B="",N=0,V=0;V<R.length;++V){var Q=R.charCodeAt(V);if(!(Q===33||Q===45||Q===46||Q===95||Q===126||Q>=39&&Q<=42||Q>=48&&Q<=57||Q>=65&&Q<=90||Q>=97&&Q<=122)){if(V-N>0&&(B+=R.slice(N,V)),Q<128){N=V+1,B+=d[Q];continue}if(Q<2048){N=V+1,B+=d[192|Q>>6]+d[128|Q&63];continue}if(Q<55296||Q>=57344){N=V+1,B+=d[224|Q>>12]+d[128|Q>>6&63]+d[128|Q&63];continue}++V;var z;if(V<R.length)z=R.charCodeAt(V)&1023;else throw new URIError("URI malformed");N=V+1,Q=65536+((Q&1023)<<10|z),B+=d[240|Q>>18]+d[128|Q>>12&63]+d[128|Q>>6&63]+d[128|Q&63]}}return N===0?R:N<R.length?B+R.slice(N):B};var A=function(R){return typeof R=="string"?R:typeof R=="number"&&isFinite(R)?""+R:typeof R=="boolean"?R?"true":"false":""};c.stringify=c.encode=function(R,B,N,V){B=B||"&",N=N||"=";var Q=c.escape;if(V&&typeof V.encodeURIComponent=="function"&&(Q=V.encodeURIComponent),R!==null&&typeof R=="object"){for(var z=Object.keys(R),M=z.length,X=M-1,L="",P=0;P<M;++P){var j=z[P],J=R[j],_=Q(A(j))+N;if(Array.isArray(J)){for(var q=J.length,K=q-1,oe=0;oe<q;++oe)L+=_+Q(A(J[oe])),oe<K&&(L+=B);q&&P<X&&(L+=B)}else L+=_+Q(A(J)),P<X&&(L+=B)}return L}return""},c.parse=c.decode=function(R,B,N,V){B=B||"&",N=N||"=";var Q={};if(typeof R!="string"||R.length===0)return Q;typeof B!="string"&&(B+="");var z=N.length,M=B.length,X=1e3;V&&typeof V.maxKeys=="number"&&(X=V.maxKeys);var L=1/0;X>0&&(L=X);var P=c.unescape;V&&typeof V.decodeURIComponent=="function"&&(P=V.decodeURIComponent);for(var j=P!==x,J=[],_=0,q=0,K=0,oe="",te="",ne=j,ye=j,ge=0,de=0;de<R.length;++de){var ue=R.charCodeAt(de);if(ue===B.charCodeAt(q)){if(++q===M){var ae=de-q+1;if(K<z?_<ae&&(oe+=R.slice(_,ae)):_<ae&&(te+=R.slice(_,ae)),ne&&(oe=g(oe,P)),ye&&(te=g(te,P)),J.indexOf(oe)===-1)Q[oe]=te,J[J.length]=oe;else{var Le=Q[oe];Le instanceof Array?Le[Le.length]=te:Q[oe]=[Le,te]}if(--L==0)break;ne=ye=j,ge=0,oe=te="",_=de+1,q=K=0}continue}else q=0,ye||(ue===37?ge=1:ge>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ge==3&&(ye=!0):ge=0);if(K<z)if(ue===N.charCodeAt(K)){if(++K===z){var ae=de-K+1;_<ae&&(oe+=R.slice(_,ae)),ge=0,_=de+1}continue}else K=0,ne||(ue===37?ge=1:ge>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ge==3&&(ne=!0):ge=0);ue===43&&(K<z?(de-_>0&&(oe+=R.slice(_,de)),oe+="%20",ne=!0):(de-_>0&&(te+=R.slice(_,de)),te+="%20",ye=!0),_=de+1)}if(L>0&&(_<R.length||K>0))if(_<R.length&&(K<z?oe+=R.slice(_):q<M&&(te+=R.slice(_))),ne&&(oe=g(oe,P)),ye&&(te=g(te,P)),J.indexOf(oe)===-1)Q[oe]=te,J[J.length]=oe;else{var Le=Q[oe];Le instanceof Array?Le[Le.length]=te:Q[oe]=[Le,te]}return Q};function g(R,B){try{return B(R)}catch(N){return c.unescape(R,!0)}}},29656:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(Q){for(var z=1;z<arguments.length;z++){var M=arguments[z];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(Q[X]=M[X])}return Q},v.apply(this,arguments)}function x(Q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(Q)}var d=function(){var Q=function(M,X){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,P){L.__proto__=P}||function(L,P){for(var j in P)P.hasOwnProperty(j)&&(L[j]=P[j])},Q(M,X)};return function(z,M){Q(z,M);function X(){this.constructor=z}z.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),A=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=a(4631));var R=function(){function Q(){}return Q.equals=function(z,M){var X=this,L=Object.keys,P=x(z),j=x(M);return z&&M&&P==="object"&&P===j?L(z).length===L(M).length&&L(z).every(function(J){return X.equals(z[J],M[J])}):z===M},Q}(),B=function(){function Q(z,M){this.editor=z,this.props=M}return Q.prototype.delegateCursor=function(z,M,X){var L=this.editor.getDoc();X&&this.editor.focus(),M?L.setCursor(z):L.setCursor(z,null,{scroll:!1})},Q.prototype.delegateScroll=function(z){this.editor.scrollTo(z.x,z.y)},Q.prototype.delegateSelection=function(z,M){var X=this.editor.getDoc();X.setSelections(z),M&&this.editor.focus()},Q.prototype.apply=function(z){z&&z.selection&&z.selection.ranges&&this.delegateSelection(z.selection.ranges,z.selection.focus||!1),z&&z.cursor&&this.delegateCursor(z.cursor,z.autoScroll||!1,this.editor.getOption("autofocus")||!1),z&&z.scroll&&this.delegateScroll(z.scroll)},Q.prototype.applyNext=function(z,M,X){z&&z.selection&&z.selection.ranges&&M&&M.selection&&M.selection.ranges&&!R.equals(z.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),z&&z.cursor&&M&&M.cursor&&!R.equals(z.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),z&&z.scroll&&M&&M.scroll&&!R.equals(z.scroll,M.scroll)&&this.delegateScroll(M.scroll)},Q.prototype.applyUserDefined=function(z,M){M&&M.cursor&&this.delegateCursor(M.cursor,z.autoScroll||!1,this.editor.getOption("autofocus")||!1)},Q.prototype.wire=function(z){var M=this;Object.keys(z||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(L,P){M.props.onBlur(M.editor,P)});break;case"onContextMenu":{M.editor.on("contextmenu",function(L,P){M.props.onContextMenu(M.editor,P)});break}case"onCopy":{M.editor.on("copy",function(L,P){M.props.onCopy(M.editor,P)});break}case"onCursor":M.editor.on("cursorActivity",function(L){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(L){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(L,P){M.props.onCut(M.editor,P)});break}case"onDblClick":{M.editor.on("dblclick",function(L,P){M.props.onDblClick(M.editor,P)});break}case"onDragEnter":M.editor.on("dragenter",function(L,P){M.props.onDragEnter(M.editor,P)});break;case"onDragLeave":{M.editor.on("dragleave",function(L,P){M.props.onDragLeave(M.editor,P)});break}case"onDragOver":M.editor.on("dragover",function(L,P){M.props.onDragOver(M.editor,P)});break;case"onDragStart":{M.editor.on("dragstart",function(L,P){M.props.onDragStart(M.editor,P)});break}case"onDrop":M.editor.on("drop",function(L,P){M.props.onDrop(M.editor,P)});break;case"onFocus":M.editor.on("focus",function(L,P){M.props.onFocus(M.editor,P)});break;case"onGutterClick":M.editor.on("gutterClick",function(L,P,j,J){M.props.onGutterClick(M.editor,P,j,J)});break;case"onInputRead":M.editor.on("inputRead",function(L,P){M.props.onInputRead(M.editor,P)});break;case"onKeyDown":M.editor.on("keydown",function(L,P){M.props.onKeyDown(M.editor,P)});break;case"onKeyHandled":M.editor.on("keyHandled",function(L,P,j){M.props.onKeyHandled(M.editor,P,j)});break;case"onKeyPress":M.editor.on("keypress",function(L,P){M.props.onKeyPress(M.editor,P)});break;case"onKeyUp":M.editor.on("keyup",function(L,P){M.props.onKeyUp(M.editor,P)});break;case"onMouseDown":{M.editor.on("mousedown",function(L,P){M.props.onMouseDown(M.editor,P)});break}case"onPaste":{M.editor.on("paste",function(L,P){M.props.onPaste(M.editor,P)});break}case"onRenderLine":{M.editor.on("renderLine",function(L,P,j){M.props.onRenderLine(M.editor,P,j)});break}case"onScroll":M.editor.on("scroll",function(L){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(L,P){M.props.onSelection(M.editor,P)});break;case"onTouchStart":{M.editor.on("touchstart",function(L,P){M.props.onTouchStart(M.editor,P)});break}case"onUpdate":M.editor.on("update",function(L){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(L,P,j){M.props.onViewportChange(M.editor,P,j)});break}})},Q}(),N=function(Q){d(z,Q);function z(M){var X=Q.call(this,M)||this;return A||(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 z.prototype.hydrate=function(M){var X=this,L=M&&M.options?M.options:{},P=v({},g.defaults,this.editor.options,L),j=Object.keys(P).some(function(J){return X.editor.getOption(J)!==P[J]});j&&Object.keys(P).forEach(function(J){L.hasOwnProperty(J)&&X.editor.getOption(J)!==P[J]&&(X.editor.setOption(J,P[J]),X.mirror.setOption(J,P[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},z.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),L=X.lastLine(),P=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:L,ch:P}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},z.prototype.resolveChange=function(M){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),M&&M!==X.getValue()){var L=X.getCursor();X.setValue(M),X.setCursor(L)}this.emulating=!1,this.deferred=null},z.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},z.prototype.componentDidMount=function(){var M=this;A||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new B(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,L){if(!M.emulating){L.cancel(),M.deferred=L;var P=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,P)}}),this.editor.on("change",function(X,L){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,L,M.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},z.prototype.componentDidUpdate=function(M){if(!A){var X={cursor:null};this.props.value!==M.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(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},z.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},z.prototype.shouldComponentUpdate=function(M,X){return!A},z.prototype.render=function(){var M=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(P){return M.ref=P}})},z}(b.Component);I.fk=N;var V=function(Q){d(z,Q);function z(M){var X=Q.call(this,M)||this;return A||(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 z.prototype.hydrate=function(M){var X=this,L=M&&M.options?M.options:{},P=v({},g.defaults,this.editor.options,L),j=Object.keys(P).some(function(K){return X.editor.getOption(K)!==P[K]});if(j&&Object.keys(P).forEach(function(K){L.hasOwnProperty(K)&&X.editor.getOption(K)!==P[K]&&X.editor.setOption(K,P[K])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:q})}this.hydrated=!0},z.prototype.componentDidMount=function(){var M=this;A||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new B(this.editor,this.props),this.editor.on("beforeChange",function(X,L){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,L,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,L){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,L,M.editor.getValue()):M.props.onChange(M.editor,L,M.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},z.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(A||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},z.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},z.prototype.shouldComponentUpdate=function(M,X){var L=!0;return A&&(L=!1),this.detached&&M.detach&&(L=!1),L},z.prototype.render=function(){var M=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(P){return M.ref=P}})},z}(b.Component);c=V},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",A=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function R(Ve,De,Fe){return Object.defineProperty(Ve,De,{value:Fe,enumerable:!0,configurable:!0,writable:!0}),Ve[De]}try{R({},"")}catch(Ve){R=function(De,Fe,tt){return De[Fe]=tt}}function B(Ve,De,Fe,tt){var Qe=De&&De.prototype instanceof L?De:L,Je=Object.create(Qe.prototype),ut=new ue(tt||[]);return Je._invoke=ne(Ve,Fe,ut),Je}a.wrap=B;function N(Ve,De,Fe){try{return{type:"normal",arg:Ve.call(De,Fe)}}catch(tt){return{type:"throw",arg:tt}}}var V="suspendedStart",Q="suspendedYield",z="executing",M="completed",X={};function L(){}function P(){}function j(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,q=_&&_(_(ae([])));q&&q!==c&&v.call(q,b)&&(J=q);var K=j.prototype=L.prototype=Object.create(J);P.prototype=K.constructor=j,j.constructor=P,P.displayName=R(j,g,"GeneratorFunction");function oe(Ve){["next","throw","return"].forEach(function(De){R(Ve,De,function(Fe){return this._invoke(De,Fe)})})}a.isGeneratorFunction=function(Ve){var De=typeof Ve=="function"&&Ve.constructor;return De?De===P||(De.displayName||De.name)==="GeneratorFunction":!1},a.mark=function(Ve){return Object.setPrototypeOf?Object.setPrototypeOf(Ve,j):(Ve.__proto__=j,R(Ve,g,"GeneratorFunction")),Ve.prototype=Object.create(K),Ve},a.awrap=function(Ve){return{__await:Ve}};function te(Ve,De){function Fe(Je,ut,pt,yt){var qe=N(Ve[Je],Ve,ut);if(qe.type==="throw")yt(qe.arg);else{var lt=qe.arg,gt=lt.value;return gt&&typeof gt=="object"&&v.call(gt,"__await")?De.resolve(gt.__await).then(function(mt){Fe("next",mt,pt,yt)},function(mt){Fe("throw",mt,pt,yt)}):De.resolve(gt).then(function(mt){lt.value=mt,pt(lt)},function(mt){return Fe("throw",mt,pt,yt)})}}var tt;function Qe(Je,ut){function pt(){return new De(function(yt,qe){Fe(Je,ut,yt,qe)})}return tt=tt?tt.then(pt,pt):pt()}this._invoke=Qe}oe(te.prototype),te.prototype[A]=function(){return this},a.AsyncIterator=te,a.async=function(Ve,De,Fe,tt,Qe){Qe===void 0&&(Qe=Promise);var Je=new te(B(Ve,De,Fe,tt),Qe);return a.isGeneratorFunction(De)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ne(Ve,De,Fe){var tt=V;return function(Je,ut){if(tt===z)throw new Error("Generator is already running");if(tt===M){if(Je==="throw")throw ut;return Le()}for(Fe.method=Je,Fe.arg=ut;;){var pt=Fe.delegate;if(pt){var yt=ye(pt,Fe);if(yt){if(yt===X)continue;return yt}}if(Fe.method==="next")Fe.sent=Fe._sent=Fe.arg;else if(Fe.method==="throw"){if(tt===V)throw tt=M,Fe.arg;Fe.dispatchException(Fe.arg)}else Fe.method==="return"&&Fe.abrupt("return",Fe.arg);tt=z;var qe=N(Ve,De,Fe);if(qe.type==="normal"){if(tt=Fe.done?M:Q,qe.arg===X)continue;return{value:qe.arg,done:Fe.done}}else qe.type==="throw"&&(tt=M,Fe.method="throw",Fe.arg=qe.arg)}}}function ye(Ve,De){var Fe=Ve.iterator[De.method];if(Fe===x){if(De.delegate=null,De.method==="throw"){if(Ve.iterator.return&&(De.method="return",De.arg=x,ye(Ve,De),De.method==="throw"))return X;De.method="throw",De.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var tt=N(Fe,Ve.iterator,De.arg);if(tt.type==="throw")return De.method="throw",De.arg=tt.arg,De.delegate=null,X;var Qe=tt.arg;if(!Qe)return De.method="throw",De.arg=new TypeError("iterator result is not an object"),De.delegate=null,X;if(Qe.done)De[Ve.resultName]=Qe.value,De.next=Ve.nextLoc,De.method!=="return"&&(De.method="next",De.arg=x);else return Qe;return De.delegate=null,X}oe(K),R(K,g,"Generator"),K[b]=function(){return this},K.toString=function(){return"[object Generator]"};function ge(Ve){var De={tryLoc:Ve[0]};1 in Ve&&(De.catchLoc=Ve[1]),2 in Ve&&(De.finallyLoc=Ve[2],De.afterLoc=Ve[3]),this.tryEntries.push(De)}function de(Ve){var De=Ve.completion||{};De.type="normal",delete De.arg,Ve.completion=De}function ue(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(ge,this),this.reset(!0)}a.keys=function(Ve){var De=[];for(var Fe in Ve)De.push(Fe);return De.reverse(),function tt(){for(;De.length;){var Qe=De.pop();if(Qe in Ve)return tt.value=Qe,tt.done=!1,tt}return tt.done=!0,tt}};function ae(Ve){if(Ve){var De=Ve[b];if(De)return De.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var Fe=-1,tt=function Qe(){for(;++Fe<Ve.length;)if(v.call(Ve,Fe))return Qe.value=Ve[Fe],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return tt.next=tt}}return{next:Le}}a.values=ae;function Le(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Ve){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(de),!Ve)for(var De in this)De.charAt(0)==="t"&&v.call(this,De)&&!isNaN(+De.slice(1))&&(this[De]=x)},stop:function(){this.done=!0;var Ve=this.tryEntries[0],De=Ve.completion;if(De.type==="throw")throw De.arg;return this.rval},dispatchException:function(Ve){if(this.done)throw Ve;var De=this;function Fe(yt,qe){return Je.type="throw",Je.arg=Ve,De.next=yt,qe&&(De.method="next",De.arg=x),!!qe}for(var tt=this.tryEntries.length-1;tt>=0;--tt){var Qe=this.tryEntries[tt],Je=Qe.completion;if(Qe.tryLoc==="root")return Fe("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),pt=v.call(Qe,"finallyLoc");if(ut&&pt){if(this.prev<Qe.catchLoc)return Fe(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Fe(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return Fe(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return Fe(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ve,De){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var tt=this.tryEntries[Fe];if(tt.tryLoc<=this.prev&&v.call(tt,"finallyLoc")&&this.prev<tt.finallyLoc){var Qe=tt;break}}Qe&&(Ve==="break"||Ve==="continue")&&Qe.tryLoc<=De&&De<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=Ve,Je.arg=De,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Je)},complete:function(Ve,De){if(Ve.type==="throw")throw Ve.arg;return Ve.type==="break"||Ve.type==="continue"?this.next=Ve.arg:Ve.type==="return"?(this.rval=this.arg=Ve.arg,this.method="return",this.next="end"):Ve.type==="normal"&&De&&(this.next=De),X},finish:function(Ve){for(var De=this.tryEntries.length-1;De>=0;--De){var Fe=this.tryEntries[De];if(Fe.finallyLoc===Ve)return this.complete(Fe.completion,Fe.afterLoc),de(Fe),X}},catch:function(Ve){for(var De=this.tryEntries.length-1;De>=0;--De){var Fe=this.tryEntries[De];if(Fe.tryLoc===Ve){var tt=Fe.completion;if(tt.type==="throw"){var Qe=tt.arg;de(Fe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Ve,De,Fe){return this.delegate={iterator:ae(Ve),resultName:De,nextLoc:Fe},this.method==="next"&&(this.arg=x),X}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),R=v("WeakMap.prototype.set",!0),B=v("WeakMap.prototype.has",!0),N=v("Map.prototype.get",!0),V=v("Map.prototype.set",!0),Q=v("Map.prototype.has",!0),z=function(P,j){for(var J=P,_;(_=J.next)!==null;J=_)if(_.key===j)return J.next=_.next,_.next=P.next,P.next=_,_},M=function(P,j){var J=z(P,j);return J&&J.value},X=function(P,j,J){var _=z(P,j);_?_.value=J:P.next={key:j,next:P.next,value:J}},L=function(P,j){return!!z(P,j)};h.exports=function(){var j,J,_,q={assert:function(K){if(!q.has(K))throw new d("Side channel does not contain "+x(K))},get:function(K){if(b&&K&&(typeof K=="object"||typeof K=="function")){if(j)return g(j,K)}else if(A){if(J)return N(J,K)}else if(_)return M(_,K)},has:function(K){if(b&&K&&(typeof K=="object"||typeof K=="function")){if(j)return B(j,K)}else if(A){if(J)return Q(J,K)}else if(_)return L(_,K);return!1},set:function(K,oe){b&&K&&(typeof K=="object"||typeof K=="function")?(j||(j=new b),R(j,K,oe)):A?(J||(J=new A),V(J,K,oe)):(_||(_={key:{},next:null}),X(_,K,oe))}};return q}},13837:(h,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,a)=>{"use strict";/*!
|
|
499
|
+
* The buffer module from node.js, for the browser.
|
|
500
|
+
*
|
|
501
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
502
|
+
* @license MIT
|
|
503
|
+
*/const c=a(79742),v=a(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=j,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const W=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(W,C),W.foo()===42}catch(W){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function A(W){if(W>d)throw new RangeError('The value "'+W+'" is invalid for option "size"');const C=new Uint8Array(W);return Object.setPrototypeOf(C,g.prototype),C}function g(W,C,T){if(typeof W=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return V(W)}return R(W,C,T)}g.poolSize=8192;function R(W,C,T){if(typeof W=="string")return Q(W,C);if(ArrayBuffer.isView(W))return M(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Re(W,ArrayBuffer)||W&&Re(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Re(W,SharedArrayBuffer)||W&&Re(W.buffer,SharedArrayBuffer)))return X(W,C,T);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=W.valueOf&&W.valueOf();if(se!=null&&se!==W)return g.from(se,C,T);const D=L(W);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return g.from(W[Symbol.toPrimitive]("string"),C,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}g.from=function(W,C,T){return R(W,C,T)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function B(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function N(W,C,T){return B(W),W<=0?A(W):C!==void 0?typeof T=="string"?A(W).fill(C,T):A(W).fill(C):A(W)}g.alloc=function(W,C,T){return N(W,C,T)};function V(W){return B(W),A(W<0?0:P(W)|0)}g.allocUnsafe=function(W){return V(W)},g.allocUnsafeSlow=function(W){return V(W)};function Q(W,C){if((typeof C!="string"||C==="")&&(C="utf8"),!g.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const T=J(W,C)|0;let se=A(T);const D=se.write(W,C);return D!==T&&(se=se.slice(0,D)),se}function z(W){const C=W.length<0?0:P(W.length)|0,T=A(C);for(let se=0;se<C;se+=1)T[se]=W[se]&255;return T}function M(W){if(Re(W,Uint8Array)){const C=new Uint8Array(W);return X(C.buffer,C.byteOffset,C.byteLength)}return z(W)}function X(W,C,T){if(C<0||W.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<C+(T||0))throw new RangeError('"length" is outside of buffer bounds');let se;return C===void 0&&T===void 0?se=new Uint8Array(W):T===void 0?se=new Uint8Array(W,C):se=new Uint8Array(W,C,T),Object.setPrototypeOf(se,g.prototype),se}function L(W){if(g.isBuffer(W)){const C=P(W.length)|0,T=A(C);return T.length===0||W.copy(T,0,0,C),T}if(W.length!==void 0)return typeof W.length!="number"||be(W.length)?A(0):z(W);if(W.type==="Buffer"&&Array.isArray(W.data))return z(W.data)}function P(W){if(W>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return W|0}function j(W){return+W!=W&&(W=0),g.alloc(+W)}g.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==g.prototype},g.compare=function(C,T){if(Re(C,Uint8Array)&&(C=g.from(C,C.offset,C.byteLength)),Re(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(C)||!g.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===T)return 0;let se=C.length,D=T.length;for(let ee=0,fe=Math.min(se,D);ee<fe;++ee)if(C[ee]!==T[ee]){se=C[ee],D=T[ee];break}return se<D?-1:D<se?1:0},g.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(C,T){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return g.alloc(0);let se;if(T===void 0)for(T=0,se=0;se<C.length;++se)T+=C[se].length;const D=g.allocUnsafe(T);let ee=0;for(se=0;se<C.length;++se){let fe=C[se];if(Re(fe,Uint8Array))ee+fe.length>D.length?(g.isBuffer(fe)||(fe=g.from(fe)),fe.copy(D,ee)):Uint8Array.prototype.set.call(D,fe,ee);else if(g.isBuffer(fe))fe.copy(D,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=fe.length}return D};function J(W,C){if(g.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Re(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const T=W.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&T===0)return 0;let D=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return kt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return Y(W).length;default:if(D)return se?-1:kt(W).length;C=(""+C).toLowerCase(),D=!0}}g.byteLength=J;function _(W,C,T){let se=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,C>>>=0,T<=C))return"";for(W||(W="utf8");;)switch(W){case"hex":return tt(this,C,T);case"utf8":case"utf-8":return ae(this,C,T);case"ascii":return De(this,C,T);case"latin1":case"binary":return Fe(this,C,T);case"base64":return ue(this,C,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,C,T);default:if(se)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),se=!0}}g.prototype._isBuffer=!0;function q(W,C,T){const se=W[C];W[C]=W[T],W[T]=se}g.prototype.swap16=function(){const C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;T<C;T+=2)q(this,T,T+1);return this},g.prototype.swap32=function(){const C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let T=0;T<C;T+=4)q(this,T,T+3),q(this,T+1,T+2);return this},g.prototype.swap64=function(){const C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let T=0;T<C;T+=8)q(this,T,T+7),q(this,T+1,T+6),q(this,T+2,T+5),q(this,T+3,T+4);return this},g.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?ae(this,0,C):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(C){if(!g.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:g.compare(this,C)===0},g.prototype.inspect=function(){let C="";const T=I.INSPECT_MAX_BYTES;return C=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(C+=" ... "),"<Buffer "+C+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(C,T,se,D,ee){if(Re(C,Uint8Array)&&(C=g.from(C,C.offset,C.byteLength)),!g.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(T===void 0&&(T=0),se===void 0&&(se=C?C.length:0),D===void 0&&(D=0),ee===void 0&&(ee=this.length),T<0||se>C.length||D<0||ee>this.length)throw new RangeError("out of range index");if(D>=ee&&T>=se)return 0;if(D>=ee)return-1;if(T>=se)return 1;if(T>>>=0,se>>>=0,D>>>=0,ee>>>=0,this===C)return 0;let fe=ee-D,Ce=se-T;const Pe=Math.min(fe,Ce),Te=this.slice(D,ee),Ge=C.slice(T,se);for(let He=0;He<Pe;++He)if(Te[He]!==Ge[He]){fe=Te[He],Ce=Ge[He];break}return fe<Ce?-1:Ce<fe?1:0};function K(W,C,T,se,D){if(W.length===0)return-1;if(typeof T=="string"?(se=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,be(T)&&(T=D?0:W.length-1),T<0&&(T=W.length+T),T>=W.length){if(D)return-1;T=W.length-1}else if(T<0)if(D)T=0;else return-1;if(typeof C=="string"&&(C=g.from(C,se)),g.isBuffer(C))return C.length===0?-1:oe(W,C,T,se,D);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(W,C,T):Uint8Array.prototype.lastIndexOf.call(W,C,T):oe(W,[C],T,se,D);throw new TypeError("val must be string, number or Buffer")}function oe(W,C,T,se,D){let ee=1,fe=W.length,Ce=C.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(W.length<2||C.length<2)return-1;ee=2,fe/=2,Ce/=2,T/=2}function Pe(Ge,He){return ee===1?Ge[He]:Ge.readUInt16BE(He*ee)}let Te;if(D){let Ge=-1;for(Te=T;Te<fe;Te++)if(Pe(W,Te)===Pe(C,Ge===-1?0:Te-Ge)){if(Ge===-1&&(Ge=Te),Te-Ge+1===Ce)return Ge*ee}else Ge!==-1&&(Te-=Te-Ge),Ge=-1}else for(T+Ce>fe&&(T=fe-Ce),Te=T;Te>=0;Te--){let Ge=!0;for(let He=0;He<Ce;He++)if(Pe(W,Te+He)!==Pe(C,He)){Ge=!1;break}if(Ge)return Te}return-1}g.prototype.includes=function(C,T,se){return this.indexOf(C,T,se)!==-1},g.prototype.indexOf=function(C,T,se){return K(this,C,T,se,!0)},g.prototype.lastIndexOf=function(C,T,se){return K(this,C,T,se,!1)};function te(W,C,T,se){T=Number(T)||0;const D=W.length-T;se?(se=Number(se),se>D&&(se=D)):se=D;const ee=C.length;se>ee/2&&(se=ee/2);let fe;for(fe=0;fe<se;++fe){const Ce=parseInt(C.substr(fe*2,2),16);if(be(Ce))return fe;W[T+fe]=Ce}return fe}function ne(W,C,T,se){return we(kt(C,W.length-T),W,T,se)}function ye(W,C,T,se){return we(pe(C),W,T,se)}function ge(W,C,T,se){return we(Y(C),W,T,se)}function de(W,C,T,se){return we(G(C,W.length-T),W,T,se)}g.prototype.write=function(C,T,se,D){if(T===void 0)D="utf8",se=this.length,T=0;else if(se===void 0&&typeof T=="string")D=T,se=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(se)?(se=se>>>0,D===void 0&&(D="utf8")):(D=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-T;if((se===void 0||se>ee)&&(se=ee),C.length>0&&(se<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let fe=!1;for(;;)switch(D){case"hex":return te(this,C,T,se);case"utf8":case"utf-8":return ne(this,C,T,se);case"ascii":case"latin1":case"binary":return ye(this,C,T,se);case"base64":return ge(this,C,T,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,C,T,se);default:if(fe)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),fe=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(W,C,T){return C===0&&T===W.length?c.fromByteArray(W):c.fromByteArray(W.slice(C,T))}function ae(W,C,T){T=Math.min(W.length,T);const se=[];let D=C;for(;D<T;){const ee=W[D];let fe=null,Ce=ee>239?4:ee>223?3:ee>191?2:1;if(D+Ce<=T){let Pe,Te,Ge,He;switch(Ce){case 1:ee<128&&(fe=ee);break;case 2:Pe=W[D+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(fe=He));break;case 3:Pe=W[D+1],Te=W[D+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(fe=He));break;case 4:Pe=W[D+1],Te=W[D+2],Ge=W[D+3],(Pe&192)==128&&(Te&192)==128&&(Ge&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|Ge&63,He>65535&&He<1114112&&(fe=He))}}fe===null?(fe=65533,Ce=1):fe>65535&&(fe-=65536,se.push(fe>>>10&1023|55296),fe=56320|fe&1023),se.push(fe),D+=Ce}return Ve(se)}const Le=4096;function Ve(W){const C=W.length;if(C<=Le)return String.fromCharCode.apply(String,W);let T="",se=0;for(;se<C;)T+=String.fromCharCode.apply(String,W.slice(se,se+=Le));return T}function De(W,C,T){let se="";T=Math.min(W.length,T);for(let D=C;D<T;++D)se+=String.fromCharCode(W[D]&127);return se}function Fe(W,C,T){let se="";T=Math.min(W.length,T);for(let D=C;D<T;++D)se+=String.fromCharCode(W[D]);return se}function tt(W,C,T){const se=W.length;(!C||C<0)&&(C=0),(!T||T<0||T>se)&&(T=se);let D="";for(let ee=C;ee<T;++ee)D+=Ae[W[ee]];return D}function Qe(W,C,T){const se=W.slice(C,T);let D="";for(let ee=0;ee<se.length-1;ee+=2)D+=String.fromCharCode(se[ee]+se[ee+1]*256);return D}g.prototype.slice=function(C,T){const se=this.length;C=~~C,T=T===void 0?se:~~T,C<0?(C+=se,C<0&&(C=0)):C>se&&(C=se),T<0?(T+=se,T<0&&(T=0)):T>se&&(T=se),T<C&&(T=C);const D=this.subarray(C,T);return Object.setPrototypeOf(D,g.prototype),D};function Je(W,C,T){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+C>T)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(C,T,se){C=C>>>0,T=T>>>0,se||Je(C,T,this.length);let D=this[C],ee=1,fe=0;for(;++fe<T&&(ee*=256);)D+=this[C+fe]*ee;return D},g.prototype.readUintBE=g.prototype.readUIntBE=function(C,T,se){C=C>>>0,T=T>>>0,se||Je(C,T,this.length);let D=this[C+--T],ee=1;for(;T>0&&(ee*=256);)D+=this[C+--T]*ee;return D},g.prototype.readUint8=g.prototype.readUInt8=function(C,T){return C=C>>>0,T||Je(C,1,this.length),this[C]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(C,T){return C=C>>>0,T||Je(C,2,this.length),this[C]|this[C+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(C,T){return C=C>>>0,T||Je(C,2,this.length),this[C]<<8|this[C+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},g.prototype.readBigUInt64LE=O(function(C){C=C>>>0,jt(C,"offset");const T=this[C],se=this[C+7];(T===void 0||se===void 0)&&Rt(C,this.length-8);const D=T+this[++C]*gr(2,8)+this[++C]*gr(2,16)+this[++C]*gr(2,24),ee=this[++C]+this[++C]*gr(2,8)+this[++C]*gr(2,16)+se*gr(2,24);return BigInt(D)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=O(function(C){C=C>>>0,jt(C,"offset");const T=this[C],se=this[C+7];(T===void 0||se===void 0)&&Rt(C,this.length-8);const D=T*gr(2,24)+this[++C]*gr(2,16)+this[++C]*gr(2,8)+this[++C],ee=this[++C]*gr(2,24)+this[++C]*gr(2,16)+this[++C]*gr(2,8)+se;return(BigInt(D)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(C,T,se){C=C>>>0,T=T>>>0,se||Je(C,T,this.length);let D=this[C],ee=1,fe=0;for(;++fe<T&&(ee*=256);)D+=this[C+fe]*ee;return ee*=128,D>=ee&&(D-=Math.pow(2,8*T)),D},g.prototype.readIntBE=function(C,T,se){C=C>>>0,T=T>>>0,se||Je(C,T,this.length);let D=T,ee=1,fe=this[C+--D];for(;D>0&&(ee*=256);)fe+=this[C+--D]*ee;return ee*=128,fe>=ee&&(fe-=Math.pow(2,8*T)),fe},g.prototype.readInt8=function(C,T){return C=C>>>0,T||Je(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},g.prototype.readInt16LE=function(C,T){C=C>>>0,T||Je(C,2,this.length);const se=this[C]|this[C+1]<<8;return se&32768?se|4294901760:se},g.prototype.readInt16BE=function(C,T){C=C>>>0,T||Je(C,2,this.length);const se=this[C+1]|this[C]<<8;return se&32768?se|4294901760:se},g.prototype.readInt32LE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},g.prototype.readInt32BE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},g.prototype.readBigInt64LE=O(function(C){C=C>>>0,jt(C,"offset");const T=this[C],se=this[C+7];(T===void 0||se===void 0)&&Rt(C,this.length-8);const D=this[C+4]+this[C+5]*gr(2,8)+this[C+6]*gr(2,16)+(se<<24);return(BigInt(D)<<BigInt(32))+BigInt(T+this[++C]*gr(2,8)+this[++C]*gr(2,16)+this[++C]*gr(2,24))}),g.prototype.readBigInt64BE=O(function(C){C=C>>>0,jt(C,"offset");const T=this[C],se=this[C+7];(T===void 0||se===void 0)&&Rt(C,this.length-8);const D=(T<<24)+this[++C]*gr(2,16)+this[++C]*gr(2,8)+this[++C];return(BigInt(D)<<BigInt(32))+BigInt(this[++C]*gr(2,24)+this[++C]*gr(2,16)+this[++C]*gr(2,8)+se)}),g.prototype.readFloatLE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),v.read(this,C,!0,23,4)},g.prototype.readFloatBE=function(C,T){return C=C>>>0,T||Je(C,4,this.length),v.read(this,C,!1,23,4)},g.prototype.readDoubleLE=function(C,T){return C=C>>>0,T||Je(C,8,this.length),v.read(this,C,!0,52,8)},g.prototype.readDoubleBE=function(C,T){return C=C>>>0,T||Je(C,8,this.length),v.read(this,C,!1,52,8)};function ut(W,C,T,se,D,ee){if(!g.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>D||C<ee)throw new RangeError('"value" argument is out of bounds');if(T+se>W.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(C,T,se,D){if(C=+C,T=T>>>0,se=se>>>0,!D){const Ce=Math.pow(2,8*se)-1;ut(this,C,T,se,Ce,0)}let ee=1,fe=0;for(this[T]=C&255;++fe<se&&(ee*=256);)this[T+fe]=C/ee&255;return T+se},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(C,T,se,D){if(C=+C,T=T>>>0,se=se>>>0,!D){const Ce=Math.pow(2,8*se)-1;ut(this,C,T,se,Ce,0)}let ee=se-1,fe=1;for(this[T+ee]=C&255;--ee>=0&&(fe*=256);)this[T+ee]=C/fe&255;return T+se},g.prototype.writeUint8=g.prototype.writeUInt8=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,1,255,0),this[T]=C&255,T+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,2,65535,0),this[T]=C&255,this[T+1]=C>>>8,T+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,2,65535,0),this[T]=C>>>8,this[T+1]=C&255,T+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,4,4294967295,0),this[T+3]=C>>>24,this[T+2]=C>>>16,this[T+1]=C>>>8,this[T]=C&255,T+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,4,4294967295,0),this[T]=C>>>24,this[T+1]=C>>>16,this[T+2]=C>>>8,this[T+3]=C&255,T+4};function pt(W,C,T,se,D){xt(C,se,D,W,T,7);let ee=Number(C&BigInt(4294967295));W[T++]=ee,ee=ee>>8,W[T++]=ee,ee=ee>>8,W[T++]=ee,ee=ee>>8,W[T++]=ee;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return W[T++]=fe,fe=fe>>8,W[T++]=fe,fe=fe>>8,W[T++]=fe,fe=fe>>8,W[T++]=fe,T}function yt(W,C,T,se,D){xt(C,se,D,W,T,7);let ee=Number(C&BigInt(4294967295));W[T+7]=ee,ee=ee>>8,W[T+6]=ee,ee=ee>>8,W[T+5]=ee,ee=ee>>8,W[T+4]=ee;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return W[T+3]=fe,fe=fe>>8,W[T+2]=fe,fe=fe>>8,W[T+1]=fe,fe=fe>>8,W[T]=fe,T+8}g.prototype.writeBigUInt64LE=O(function(C,T=0){return pt(this,C,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=O(function(C,T=0){return yt(this,C,T,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(C,T,se,D){if(C=+C,T=T>>>0,!D){const Pe=Math.pow(2,8*se-1);ut(this,C,T,se,Pe-1,-Pe)}let ee=0,fe=1,Ce=0;for(this[T]=C&255;++ee<se&&(fe*=256);)C<0&&Ce===0&&this[T+ee-1]!==0&&(Ce=1),this[T+ee]=(C/fe>>0)-Ce&255;return T+se},g.prototype.writeIntBE=function(C,T,se,D){if(C=+C,T=T>>>0,!D){const Pe=Math.pow(2,8*se-1);ut(this,C,T,se,Pe-1,-Pe)}let ee=se-1,fe=1,Ce=0;for(this[T+ee]=C&255;--ee>=0&&(fe*=256);)C<0&&Ce===0&&this[T+ee+1]!==0&&(Ce=1),this[T+ee]=(C/fe>>0)-Ce&255;return T+se},g.prototype.writeInt8=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,1,127,-128),C<0&&(C=255+C+1),this[T]=C&255,T+1},g.prototype.writeInt16LE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,2,32767,-32768),this[T]=C&255,this[T+1]=C>>>8,T+2},g.prototype.writeInt16BE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,2,32767,-32768),this[T]=C>>>8,this[T+1]=C&255,T+2},g.prototype.writeInt32LE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,4,2147483647,-2147483648),this[T]=C&255,this[T+1]=C>>>8,this[T+2]=C>>>16,this[T+3]=C>>>24,T+4},g.prototype.writeInt32BE=function(C,T,se){return C=+C,T=T>>>0,se||ut(this,C,T,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[T]=C>>>24,this[T+1]=C>>>16,this[T+2]=C>>>8,this[T+3]=C&255,T+4},g.prototype.writeBigInt64LE=O(function(C,T=0){return pt(this,C,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=O(function(C,T=0){return yt(this,C,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(W,C,T,se,D,ee){if(T+se>W.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function lt(W,C,T,se,D){return C=+C,T=T>>>0,D||qe(W,C,T,4,34028234663852886e22,-34028234663852886e22),v.write(W,C,T,se,23,4),T+4}g.prototype.writeFloatLE=function(C,T,se){return lt(this,C,T,!0,se)},g.prototype.writeFloatBE=function(C,T,se){return lt(this,C,T,!1,se)};function gt(W,C,T,se,D){return C=+C,T=T>>>0,D||qe(W,C,T,8,17976931348623157e292,-17976931348623157e292),v.write(W,C,T,se,52,8),T+8}g.prototype.writeDoubleLE=function(C,T,se){return gt(this,C,T,!0,se)},g.prototype.writeDoubleBE=function(C,T,se){return gt(this,C,T,!1,se)},g.prototype.copy=function(C,T,se,D){if(!g.isBuffer(C))throw new TypeError("argument should be a Buffer");if(se||(se=0),!D&&D!==0&&(D=this.length),T>=C.length&&(T=C.length),T||(T=0),D>0&&D<se&&(D=se),D===se||C.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),C.length-T<D-se&&(D=C.length-T+se);const ee=D-se;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,se,D):Uint8Array.prototype.set.call(C,this.subarray(se,D),T),ee},g.prototype.fill=function(C,T,se,D){if(typeof C=="string"){if(typeof T=="string"?(D=T,T=0,se=this.length):typeof se=="string"&&(D=se,se=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!g.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(C.length===1){const fe=C.charCodeAt(0);(D==="utf8"&&fe<128||D==="latin1")&&(C=fe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(T<0||this.length<T||this.length<se)throw new RangeError("Out of range index");if(se<=T)return this;T=T>>>0,se=se===void 0?this.length:se>>>0,C||(C=0);let ee;if(typeof C=="number")for(ee=T;ee<se;++ee)this[ee]=C;else{const fe=g.isBuffer(C)?C:g.from(C,D),Ce=fe.length;if(Ce===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ee=0;ee<se-T;++ee)this[ee+T]=fe[ee%Ce]}return this};const mt={};function Qt(W,C,T){mt[W]=class extends T{constructor(){super();Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}Qt("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Qt("ERR_INVALID_ARG_TYPE",function(W,C){return`The "${W}" argument must be of type number. Received type ${typeof C}`},TypeError),Qt("ERR_OUT_OF_RANGE",function(W,C,T){let se=`The value of "${W}" is out of range.`,D=T;return Number.isInteger(T)&&Math.abs(T)>gr(2,32)?D=nt(String(T)):typeof T=="bigint"&&(D=String(T),(T>gr(BigInt(2),BigInt(32))||T<-gr(BigInt(2),BigInt(32)))&&(D=nt(D)),D+="n"),se+=` It must be ${C}. Received ${D}`,se},RangeError);function nt(W){let C="",T=W.length;const se=W[0]==="-"?1:0;for(;T>=se+4;T-=3)C=`_${W.slice(T-3,T)}${C}`;return`${W.slice(0,T)}${C}`}function Lt(W,C,T){jt(C,"offset"),(W[C]===void 0||W[C+T]===void 0)&&Rt(C,W.length-(T+1))}function xt(W,C,T,se,D,ee){if(W>T||W<C){const fe=typeof C=="bigint"?"n":"";let Ce;throw ee>3?C===0||C===BigInt(0)?Ce=`>= 0${fe} and < 2${fe} ** ${(ee+1)*8}${fe}`:Ce=`>= -(2${fe} ** ${(ee+1)*8-1}${fe}) and < 2 ** ${(ee+1)*8-1}${fe}`:Ce=`>= ${C}${fe} and <= ${T}${fe}`,new mt.ERR_OUT_OF_RANGE("value",Ce,W)}Lt(se,D,ee)}function jt(W,C){if(typeof W!="number")throw new mt.ERR_INVALID_ARG_TYPE(C,"number",W)}function Rt(W,C,T){throw Math.floor(W)!==W?(jt(W,T),new mt.ERR_OUT_OF_RANGE(T||"offset","an integer",W)):C<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${C}`,W)}const Gt=/[^+/0-9A-Za-z-_]/g;function At(W){if(W=W.split("=")[0],W=W.trim().replace(Gt,""),W.length<2)return"";for(;W.length%4!=0;)W=W+"=";return W}function kt(W,C){C=C||1/0;let T;const se=W.length;let D=null;const ee=[];for(let fe=0;fe<se;++fe){if(T=W.charCodeAt(fe),T>55295&&T<57344){if(!D){if(T>56319){(C-=3)>-1&&ee.push(239,191,189);continue}else if(fe+1===se){(C-=3)>-1&&ee.push(239,191,189);continue}D=T;continue}if(T<56320){(C-=3)>-1&&ee.push(239,191,189),D=T;continue}T=(D-55296<<10|T-56320)+65536}else D&&(C-=3)>-1&&ee.push(239,191,189);if(D=null,T<128){if((C-=1)<0)break;ee.push(T)}else if(T<2048){if((C-=2)<0)break;ee.push(T>>6|192,T&63|128)}else if(T<65536){if((C-=3)<0)break;ee.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((C-=4)<0)break;ee.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return ee}function pe(W){const C=[];for(let T=0;T<W.length;++T)C.push(W.charCodeAt(T)&255);return C}function G(W,C){let T,se,D;const ee=[];for(let fe=0;fe<W.length&&!((C-=2)<0);++fe)T=W.charCodeAt(fe),se=T>>8,D=T%256,ee.push(D),ee.push(se);return ee}function Y(W){return c.toByteArray(At(W))}function we(W,C,T,se){let D;for(D=0;D<se&&!(D+T>=C.length||D>=W.length);++D)C[D+T]=W[D];return D}function Re(W,C){return W instanceof C||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===C.name}function be(W){return W!==W}const Ae=function(){const W="0123456789abcdef",C=new Array(256);for(let T=0;T<16;++T){const se=T*16;for(let D=0;D<16;++D)C[se+D]=W[T]+W[D]}return C}();function O(W){return typeof BigInt=="undefined"?Ie:W}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(z){return z.replace(/&#(\d+);/g,function(M,X){return String.fromCharCode(parseInt(X,10))})},A=function(z,M){return z&&typeof z=="string"&&M.comma&&z.indexOf(",")>-1?z.split(","):z},g="utf8=%26%2310003%3B",R="utf8=%E2%9C%93",B=function(M,X){var L={},P=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,j=X.parameterLimit===1/0?void 0:X.parameterLimit,J=P.split(X.delimiter,j),_=-1,q,K=X.charset;if(X.charsetSentinel)for(q=0;q<J.length;++q)J[q].indexOf("utf8=")===0&&(J[q]===R?K="utf-8":J[q]===g&&(K="iso-8859-1"),_=q,q=J.length);for(q=0;q<J.length;++q)if(q!==_){var oe=J[q],te=oe.indexOf("]="),ne=te===-1?oe.indexOf("="):te+1,ye,ge;ne===-1?(ye=X.decoder(oe,d.decoder,K,"key"),ge=X.strictNullHandling?null:""):(ye=X.decoder(oe.slice(0,ne),d.decoder,K,"key"),ge=c.maybeMap(A(oe.slice(ne+1),X),function(de){return X.decoder(de,d.decoder,K,"value")})),ge&&X.interpretNumericEntities&&K==="iso-8859-1"&&(ge=b(ge)),oe.indexOf("[]=")>-1&&(ge=x(ge)?[ge]:ge),v.call(L,ye)?L[ye]=c.combine(L[ye],ge):L[ye]=ge}return L},N=function(z,M,X,L){for(var P=L?M:A(M,X),j=z.length-1;j>=0;--j){var J,_=z[j];if(_==="[]"&&X.parseArrays)J=[].concat(P);else{J=X.plainObjects?Object.create(null):{};var q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,K=parseInt(q,10);!X.parseArrays&&q===""?J={0:P}:!isNaN(K)&&_!==q&&String(K)===q&&K>=0&&X.parseArrays&&K<=X.arrayLimit?(J=[],J[K]=P):J[q]=P}P=J}return P},V=function(M,X,L,P){if(!!M){var j=L.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,q=L.depth>0&&J.exec(j),K=q?j.slice(0,q.index):j,oe=[];if(K){if(!L.plainObjects&&v.call(Object.prototype,K)&&!L.allowPrototypes)return;oe.push(K)}for(var te=0;L.depth>0&&(q=_.exec(j))!==null&&te<L.depth;){if(te+=1,!L.plainObjects&&v.call(Object.prototype,q[1].slice(1,-1))&&!L.allowPrototypes)return;oe.push(q[1])}return q&&oe.push("["+j.slice(q.index)+"]"),N(oe,X,L,P)}},Q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");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 X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(z,M){var X=Q(M);if(z===""||z===null||typeof z=="undefined")return X.plainObjects?Object.create(null):{};for(var L=typeof z=="string"?B(z,X):z,P=X.plainObjects?Object.create(null):{},j=Object.keys(L),J=0;J<j.length;++J){var _=j[J],q=V(_,L[_],X,typeof z=="string");P=c.merge(P,q,X)}return X.allowSparse===!0?P:c.compact(P)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(L){return L+"[]"},comma:"comma",indices:function(L,P){return L+"["+P+"]"},repeat:function(L){return L}},A=Array.isArray,g=Array.prototype.push,R=function(X,L){g.apply(X,A(L)?L:[L])},B=Date.prototype.toISOString,N=x.default,V={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:N,formatter:x.formatters[N],indices:!1,serializeDate:function(L){return B.call(L)},skipNulls:!1,strictNullHandling:!1},Q=function(L){return typeof L=="string"||typeof L=="number"||typeof L=="boolean"||typeof L=="symbol"||typeof L=="bigint"},z=function X(L,P,j,J,_,q,K,oe,te,ne,ye,ge,de,ue,ae){var Le=L;if(ae.has(L))throw new RangeError("Cyclic object value");if(typeof K=="function"?Le=K(P,Le):Le instanceof Date?Le=ne(Le):j==="comma"&&A(Le)&&(Le=v.maybeMap(Le,function(qe){return qe instanceof Date?ne(qe):qe})),Le===null){if(J)return q&&!de?q(P,V.encoder,ue,"key",ye):P;Le=""}if(Q(Le)||v.isBuffer(Le)){if(q){var Ve=de?P:q(P,V.encoder,ue,"key",ye);return[ge(Ve)+"="+ge(q(Le,V.encoder,ue,"value",ye))]}return[ge(P)+"="+ge(String(Le))]}var De=[];if(typeof Le=="undefined")return De;var Fe;if(j==="comma"&&A(Le))Fe=[{value:Le.length>0?Le.join(",")||null:void 0}];else if(A(K))Fe=K;else{var tt=Object.keys(Le);Fe=oe?tt.sort(oe):tt}for(var Qe=0;Qe<Fe.length;++Qe){var Je=Fe[Qe],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Le[Je];if(!(_&&ut===null)){var pt=A(Le)?typeof j=="function"?j(P,Je):P:P+(te?"."+Je:"["+Je+"]");ae.set(L,!0);var yt=c();R(De,X(ut,pt,j,J,_,q,K,oe,te,ne,ye,ge,de,ue,yt))}}return De},M=function(L){if(!L)return V;if(L.encoder!==null&&L.encoder!==void 0&&typeof L.encoder!="function")throw new TypeError("Encoder has to be a function.");var P=L.charset||V.charset;if(typeof L.charset!="undefined"&&L.charset!=="utf-8"&&L.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var j=x.default;if(typeof L.format!="undefined"){if(!d.call(x.formatters,L.format))throw new TypeError("Unknown format option provided.");j=L.format}var J=x.formatters[j],_=V.filter;return(typeof L.filter=="function"||A(L.filter))&&(_=L.filter),{addQueryPrefix:typeof L.addQueryPrefix=="boolean"?L.addQueryPrefix:V.addQueryPrefix,allowDots:typeof L.allowDots=="undefined"?V.allowDots:!!L.allowDots,charset:P,charsetSentinel:typeof L.charsetSentinel=="boolean"?L.charsetSentinel:V.charsetSentinel,delimiter:typeof L.delimiter=="undefined"?V.delimiter:L.delimiter,encode:typeof L.encode=="boolean"?L.encode:V.encode,encoder:typeof L.encoder=="function"?L.encoder:V.encoder,encodeValuesOnly:typeof L.encodeValuesOnly=="boolean"?L.encodeValuesOnly:V.encodeValuesOnly,filter:_,format:j,formatter:J,serializeDate:typeof L.serializeDate=="function"?L.serializeDate:V.serializeDate,skipNulls:typeof L.skipNulls=="boolean"?L.skipNulls:V.skipNulls,sort:typeof L.sort=="function"?L.sort:null,strictNullHandling:typeof L.strictNullHandling=="boolean"?L.strictNullHandling:V.strictNullHandling}};h.exports=function(X,L){var P=X,j=M(L),J,_;typeof j.filter=="function"?(_=j.filter,P=_("",P)):A(j.filter)&&(_=j.filter,J=_);var q=[];if(typeof P!="object"||P===null)return"";var K;L&&L.arrayFormat in b?K=L.arrayFormat:L&&"indices"in L?K=L.indices?"indices":"repeat":K="indices";var oe=b[K];J||(J=Object.keys(P)),j.sort&&J.sort(j.sort);for(var te=c(),ne=0;ne<J.length;++ne){var ye=J[ne];j.skipNulls&&P[ye]===null||R(q,z(P[ye],ye,oe,j.strictNullHandling,j.skipNulls,j.encode?j.encoder:null,j.filter,j.sort,j.allowDots,j.serializeDate,j.format,j.formatter,j.encodeValuesOnly,j.charset,te))}var ge=q.join(j.delimiter),de=j.addQueryPrefix===!0?"?":"";return j.charsetSentinel&&(j.charset==="iso-8859-1"?de+="utf8=%26%2310003%3B&":de+="utf8=%E2%9C%93&"),ge.length>0?de+ge:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var L=[],P=0;P<256;++P)L.push("%"+((P<16?"0":"")+P.toString(16)).toUpperCase());return L}(),b=function(P){for(;P.length>1;){var j=P.pop(),J=j.obj[j.prop];if(x(J)){for(var _=[],q=0;q<J.length;++q)typeof J[q]!="undefined"&&_.push(J[q]);j.obj[j.prop]=_}}},A=function(P,j){for(var J=j&&j.plainObjects?Object.create(null):{},_=0;_<P.length;++_)typeof P[_]!="undefined"&&(J[_]=P[_]);return J},g=function L(P,j,J){if(!j)return P;if(typeof j!="object"){if(x(P))P.push(j);else if(P&&typeof P=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,j))&&(P[j]=!0);else return[P,j];return P}if(!P||typeof P!="object")return[P].concat(j);var _=P;return x(P)&&!x(j)&&(_=A(P,J)),x(P)&&x(j)?(j.forEach(function(q,K){if(v.call(P,K)){var oe=P[K];oe&&typeof oe=="object"&&q&&typeof q=="object"?P[K]=L(oe,q,J):P.push(q)}else P[K]=q}),P):Object.keys(j).reduce(function(q,K){var oe=j[K];return v.call(q,K)?q[K]=L(q[K],oe,J):q[K]=oe,q},_)},R=function(P,j){return Object.keys(j).reduce(function(J,_){return J[_]=j[_],J},P)},B=function(L,P,j){var J=L.replace(/\+/g," ");if(j==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},N=function(P,j,J,_,q){if(P.length===0)return P;var K=P;if(typeof P=="symbol"?K=Symbol.prototype.toString.call(P):typeof P!="string"&&(K=String(P)),J==="iso-8859-1")return escape(K).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var oe="",te=0;te<K.length;++te){var ne=K.charCodeAt(te);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)){oe+=K.charAt(te);continue}if(ne<128){oe=oe+d[ne];continue}if(ne<2048){oe=oe+(d[192|ne>>6]+d[128|ne&63]);continue}if(ne<55296||ne>=57344){oe=oe+(d[224|ne>>12]+d[128|ne>>6&63]+d[128|ne&63]);continue}te+=1,ne=65536+((ne&1023)<<10|K.charCodeAt(te)&1023),oe+=d[240|ne>>18]+d[128|ne>>12&63]+d[128|ne>>6&63]+d[128|ne&63]}return oe},V=function(P){for(var j=[{obj:{o:P},prop:"o"}],J=[],_=0;_<j.length;++_)for(var q=j[_],K=q.obj[q.prop],oe=Object.keys(K),te=0;te<oe.length;++te){var ne=oe[te],ye=K[ne];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(j.push({obj:K,prop:ne}),J.push(ye))}return b(j),P},Q=function(P){return Object.prototype.toString.call(P)==="[object RegExp]"},z=function(P){return!P||typeof P!="object"?!1:!!(P.constructor&&P.constructor.isBuffer&&P.constructor.isBuffer(P))},M=function(P,j){return[].concat(P,j)},X=function(P,j){if(x(P)){for(var J=[],_=0;_<P.length;_+=1)J.push(j(P[_]));return J}return j(P)};h.exports={arrayToObject:A,assign:R,combine:M,compact:V,decode:B,encode:N,isBuffer:z,isRegExp:Q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,L=0;L<M.length;L++){var P=M[L];if(!X||!z.call(X,P)){X=void 0;break}X=X[P]}return X},a.prototype.has=function(M){for(var X=this.value,L=0;L<M.length;L++){var P=M[L];if(!X||!z.call(X,P))return!1;X=X[P]}return!0},a.prototype.set=function(M,X){for(var L=this.value,P=0;P<M.length-1;P++){var j=M[P];z.call(L,j)||(L[j]={}),L=L[j]}return L[M[P]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var L=arguments.length===1,P=L?this.value:X;return this.forEach(function(j){(!this.isRoot||!L)&&(P=M.call(this,P,j))}),P},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function L(P){for(var j=0;j<M.length;j++)if(M[j]===P)return X[j];if(typeof P=="object"&&P!==null){var J=v(P);return M.push(P),X.push(J),Q(x(P),function(_){J[_]=L(P[_])}),M.pop(),X.pop(),J}else return P}(this.value)};function c(M,X,L){var P=[],j=[],J=!0;return function _(q){var K=L?v(q):q,oe={},te=!0,ne={node:K,node_:q,path:[].concat(P),parent:j[j.length-1],parents:j,key:P.slice(-1)[0],isRoot:P.length===0,level:P.length,circular:null,update:function(de,ue){ne.isRoot||(ne.parent.node[ne.key]=de),ne.node=de,ue&&(te=!1)},delete:function(de){delete ne.parent.node[ne.key],de&&(te=!1)},remove:function(de){V(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],de&&(te=!1)},keys:null,before:function(de){oe.before=de},after:function(de){oe.after=de},pre:function(de){oe.pre=de},post:function(de){oe.post=de},stop:function(){J=!1},block:function(){te=!1}};if(!J)return ne;function ye(){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 de=0;de<j.length;de++)if(j[de].node_===q){ne.circular=j[de];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ye();var ge=X.call(ne,ne.node);return ge!==void 0&&ne.update&&ne.update(ge),oe.before&&oe.before.call(ne,ne.node),te&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(j.push(ne),ye(),Q(ne.keys,function(de,ue){P.push(de),oe.pre&&oe.pre.call(ne,ne.node[de],de);var ae=_(ne.node[de]);L&&z.call(ne.node,de)&&(ne.node[de]=ae.node),ae.isLast=ue==ne.keys.length-1,ae.isFirst=ue==0,oe.post&&oe.post.call(ne,ae),P.pop()}),j.pop()),oe.after&&oe.after.call(ne,ne.node)),ne}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(V(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(A(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(R(M))X=new Boolean(M);else if(B(M))X=new Number(M);else if(N(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var L=M.constructor&&M.constructor.prototype||M.__proto__||{},P=function(){};P.prototype=L,X=new P}return Q(x(M),function(j){X[j]=M[j]}),X}else return M}var x=Object.keys||function(X){var L=[];for(var P in X)L.push(P);return L};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function A(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function R(M){return d(M)==="[object Boolean]"}function B(M){return d(M)==="[object Number]"}function N(M){return d(M)==="[object String]"}var V=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},Q=function(M,X){if(M.forEach)return M.forEach(X);for(var L=0;L<M.length;L++)X(M[L],L,M)};Q(x(a.prototype),function(M){I[M]=function(X){var L=[].slice.call(arguments,1),P=new a(X);return P[M].apply(P,L)}});var z=Object.hasOwnProperty||function(M,X){return X in M}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|