UNPKG

ic-auth

Version:

A simple to use, modular package for integrating Internet Computer authentication providers into your app.

30 lines (28 loc) 838 kB
const p=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))u(g);new MutationObserver(g=>{for(const d of g)if(d.type==="childList")for(const B of d.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&u(B)}).observe(document,{childList:!0,subtree:!0});function n(g){const d={};return g.integrity&&(d.integrity=g.integrity),g.referrerpolicy&&(d.referrerPolicy=g.referrerpolicy),g.crossorigin==="use-credentials"?d.credentials="include":g.crossorigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(g){if(g.ep)return;g.ep=!0;const d=n(g);fetch(g.href,d)}};p();var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(a){if(a.__esModule)return a;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(n){var u=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return a[n]}})}),t}function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var buffer$1={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array!="undefined"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function getLens(a){var t=a.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=a.indexOf("=");n===-1&&(n=t);var u=n===t?0:4-n%4;return[n,u]}function byteLength(a){var t=getLens(a),n=t[0],u=t[1];return(n+u)*3/4-u}function _byteLength(a,t,n){return(t+n)*3/4-n}function toByteArray(a){var t,n=getLens(a),u=n[0],g=n[1],d=new Arr(_byteLength(a,u,g)),B=0,I=g>0?u-4:u,k;for(k=0;k<I;k+=4)t=revLookup[a.charCodeAt(k)]<<18|revLookup[a.charCodeAt(k+1)]<<12|revLookup[a.charCodeAt(k+2)]<<6|revLookup[a.charCodeAt(k+3)],d[B++]=t>>16&255,d[B++]=t>>8&255,d[B++]=t&255;return g===2&&(t=revLookup[a.charCodeAt(k)]<<2|revLookup[a.charCodeAt(k+1)]>>4,d[B++]=t&255),g===1&&(t=revLookup[a.charCodeAt(k)]<<10|revLookup[a.charCodeAt(k+1)]<<4|revLookup[a.charCodeAt(k+2)]>>2,d[B++]=t>>8&255,d[B++]=t&255),d}function tripletToBase64(a){return lookup[a>>18&63]+lookup[a>>12&63]+lookup[a>>6&63]+lookup[a&63]}function encodeChunk(a,t,n){for(var u,g=[],d=t;d<n;d+=3)u=(a[d]<<16&16711680)+(a[d+1]<<8&65280)+(a[d+2]&255),g.push(tripletToBase64(u));return g.join("")}function fromByteArray(a){for(var t,n=a.length,u=n%3,g=[],d=16383,B=0,I=n-u;B<I;B+=d)g.push(encodeChunk(a,B,B+d>I?I:B+d));return u===1?(t=a[n-1],g.push(lookup[t>>2]+lookup[t<<4&63]+"==")):u===2&&(t=(a[n-2]<<8)+a[n-1],g.push(lookup[t>>10]+lookup[t>>4&63]+lookup[t<<2&63]+"=")),g.join("")}var ieee754$1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754$1.read=function(a,t,n,u,g){var d,B,I=g*8-u-1,k=(1<<I)-1,F=k>>1,P=-7,L=n?g-1:0,se=n?-1:1,j=a[t+L];for(L+=se,d=j&(1<<-P)-1,j>>=-P,P+=I;P>0;d=d*256+a[t+L],L+=se,P-=8);for(B=d&(1<<-P)-1,d>>=-P,P+=u;P>0;B=B*256+a[t+L],L+=se,P-=8);if(d===0)d=1-F;else{if(d===k)return B?NaN:(j?-1:1)*(1/0);B=B+Math.pow(2,u),d=d-F}return(j?-1:1)*B*Math.pow(2,d-u)};ieee754$1.write=function(a,t,n,u,g,d){var B,I,k,F=d*8-g-1,P=(1<<F)-1,L=P>>1,se=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=u?0:d-1,pe=u?1:-1,Se=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(I=isNaN(t)?1:0,B=P):(B=Math.floor(Math.log(t)/Math.LN2),t*(k=Math.pow(2,-B))<1&&(B--,k*=2),B+L>=1?t+=se/k:t+=se*Math.pow(2,1-L),t*k>=2&&(B++,k/=2),B+L>=P?(I=0,B=P):B+L>=1?(I=(t*k-1)*Math.pow(2,g),B=B+L):(I=t*Math.pow(2,L-1)*Math.pow(2,g),B=0));g>=8;a[n+j]=I&255,j+=pe,I/=256,g-=8);for(B=B<<g|I,F+=g;F>0;a[n+j]=B&255,j+=pe,B/=256,F-=8);a[n+j-pe]|=Se*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */(function(a){const t=base64Js,n=ieee754$1,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=I,a.SlowBuffer=Me,a.INSPECT_MAX_BYTES=50;const g=2147483647;a.kMaxLength=g,I.TYPED_ARRAY_SUPPORT=d(),!I.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 d(){try{const M=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(M,m),M.foo()===42}catch{return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}}),Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function B(M){if(M>g)throw new RangeError('The value "'+M+'" is invalid for option "size"');const m=new Uint8Array(M);return Object.setPrototypeOf(m,I.prototype),m}function I(M,m,b){if(typeof M=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(M)}return k(M,m,b)}I.poolSize=8192;function k(M,m,b){if(typeof M=="string")return se(M,m);if(ArrayBuffer.isView(M))return pe(M);if(M==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);if(Ce(M,ArrayBuffer)||M&&Ce(M.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ce(M,SharedArrayBuffer)||M&&Ce(M.buffer,SharedArrayBuffer)))return Se(M,m,b);if(typeof M=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=M.valueOf&&M.valueOf();if(V!=null&&V!==M)return I.from(V,m,b);const te=Ye(M);if(te)return te;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof M[Symbol.toPrimitive]=="function")return I.from(M[Symbol.toPrimitive]("string"),m,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M)}I.from=function(M,m,b){return k(M,m,b)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array);function F(M){if(typeof M!="number")throw new TypeError('"size" argument must be of type number');if(M<0)throw new RangeError('The value "'+M+'" is invalid for option "size"')}function P(M,m,b){return F(M),M<=0?B(M):m!==void 0?typeof b=="string"?B(M).fill(m,b):B(M).fill(m):B(M)}I.alloc=function(M,m,b){return P(M,m,b)};function L(M){return F(M),B(M<0?0:Ve(M)|0)}I.allocUnsafe=function(M){return L(M)},I.allocUnsafeSlow=function(M){return L(M)};function se(M,m){if((typeof m!="string"||m==="")&&(m="utf8"),!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const b=et(M,m)|0;let V=B(b);const te=V.write(M,m);return te!==b&&(V=V.slice(0,te)),V}function j(M){const m=M.length<0?0:Ve(M.length)|0,b=B(m);for(let V=0;V<m;V+=1)b[V]=M[V]&255;return b}function pe(M){if(Ce(M,Uint8Array)){const m=new Uint8Array(M);return Se(m.buffer,m.byteOffset,m.byteLength)}return j(M)}function Se(M,m,b){if(m<0||M.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(M.byteLength<m+(b||0))throw new RangeError('"length" is outside of buffer bounds');let V;return m===void 0&&b===void 0?V=new Uint8Array(M):b===void 0?V=new Uint8Array(M,m):V=new Uint8Array(M,m,b),Object.setPrototypeOf(V,I.prototype),V}function Ye(M){if(I.isBuffer(M)){const m=Ve(M.length)|0,b=B(m);return b.length===0||M.copy(b,0,0,m),b}if(M.length!==void 0)return typeof M.length!="number"||ze(M.length)?B(0):j(M);if(M.type==="Buffer"&&Array.isArray(M.data))return j(M.data)}function Ve(M){if(M>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return M|0}function Me(M){return+M!=M&&(M=0),I.alloc(+M)}I.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==I.prototype},I.compare=function(m,b){if(Ce(m,Uint8Array)&&(m=I.from(m,m.offset,m.byteLength)),Ce(b,Uint8Array)&&(b=I.from(b,b.offset,b.byteLength)),!I.isBuffer(m)||!I.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===b)return 0;let V=m.length,te=b.length;for(let ce=0,le=Math.min(V,te);ce<le;++ce)if(m[ce]!==b[ce]){V=m[ce],te=b[ce];break}return V<te?-1:te<V?1:0},I.isEncoding=function(m){switch(String(m).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}},I.concat=function(m,b){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return I.alloc(0);let V;if(b===void 0)for(b=0,V=0;V<m.length;++V)b+=m[V].length;const te=I.allocUnsafe(b);let ce=0;for(V=0;V<m.length;++V){let le=m[V];if(Ce(le,Uint8Array))ce+le.length>te.length?(I.isBuffer(le)||(le=I.from(le)),le.copy(te,ce)):Uint8Array.prototype.set.call(te,le,ce);else if(I.isBuffer(le))le.copy(te,ce);else throw new TypeError('"list" argument must be an Array of Buffers');ce+=le.length}return te};function et(M,m){if(I.isBuffer(M))return M.length;if(ArrayBuffer.isView(M)||Ce(M,ArrayBuffer))return M.byteLength;if(typeof M!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof M);const b=M.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&b===0)return 0;let te=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Q(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return z(M).length;default:if(te)return V?-1:Q(M).length;m=(""+m).toLowerCase(),te=!0}}I.byteLength=et;function rt(M,m,b){let V=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,m>>>=0,b<=m))return"";for(M||(M="utf8");;)switch(M){case"hex":return W(this,m,b);case"utf8":case"utf-8":return q(this,m,b);case"ascii":return fe(this,m,b);case"latin1":case"binary":return he(this,m,b);case"base64":return S(this,m,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,m,b);default:if(V)throw new TypeError("Unknown encoding: "+M);M=(M+"").toLowerCase(),V=!0}}I.prototype._isBuffer=!0;function ke(M,m,b){const V=M[m];M[m]=M[b],M[b]=V}I.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<m;b+=2)ke(this,b,b+1);return this},I.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<m;b+=4)ke(this,b,b+3),ke(this,b+1,b+2);return this},I.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<m;b+=8)ke(this,b,b+7),ke(this,b+1,b+6),ke(this,b+2,b+5),ke(this,b+3,b+4);return this},I.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?q(this,0,m):rt.apply(this,arguments)},I.prototype.toLocaleString=I.prototype.toString,I.prototype.equals=function(m){if(!I.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:I.compare(this,m)===0},I.prototype.inspect=function(){let m="";const b=a.INSPECT_MAX_BYTES;return m=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(m+=" ... "),"<Buffer "+m+">"},u&&(I.prototype[u]=I.prototype.inspect),I.prototype.compare=function(m,b,V,te,ce){if(Ce(m,Uint8Array)&&(m=I.from(m,m.offset,m.byteLength)),!I.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(b===void 0&&(b=0),V===void 0&&(V=m?m.length:0),te===void 0&&(te=0),ce===void 0&&(ce=this.length),b<0||V>m.length||te<0||ce>this.length)throw new RangeError("out of range index");if(te>=ce&&b>=V)return 0;if(te>=ce)return-1;if(b>=V)return 1;if(b>>>=0,V>>>=0,te>>>=0,ce>>>=0,this===m)return 0;let le=ce-te,At=V-b;const Mt=Math.min(le,At),gt=this.slice(te,ce),ot=m.slice(b,V);for(let qt=0;qt<Mt;++qt)if(gt[qt]!==ot[qt]){le=gt[qt],At=ot[qt];break}return le<At?-1:At<le?1:0};function Fe(M,m,b,V,te){if(M.length===0)return-1;if(typeof b=="string"?(V=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,ze(b)&&(b=te?0:M.length-1),b<0&&(b=M.length+b),b>=M.length){if(te)return-1;b=M.length-1}else if(b<0)if(te)b=0;else return-1;if(typeof m=="string"&&(m=I.from(m,V)),I.isBuffer(m))return m.length===0?-1:Je(M,m,b,V,te);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(M,m,b):Uint8Array.prototype.lastIndexOf.call(M,m,b):Je(M,[m],b,V,te);throw new TypeError("val must be string, number or Buffer")}function Je(M,m,b,V,te){let ce=1,le=M.length,At=m.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(M.length<2||m.length<2)return-1;ce=2,le/=2,At/=2,b/=2}function Mt(ot,qt){return ce===1?ot[qt]:ot.readUInt16BE(qt*ce)}let gt;if(te){let ot=-1;for(gt=b;gt<le;gt++)if(Mt(M,gt)===Mt(m,ot===-1?0:gt-ot)){if(ot===-1&&(ot=gt),gt-ot+1===At)return ot*ce}else ot!==-1&&(gt-=gt-ot),ot=-1}else for(b+At>le&&(b=le-At),gt=b;gt>=0;gt--){let ot=!0;for(let qt=0;qt<At;qt++)if(Mt(M,gt+qt)!==Mt(m,qt)){ot=!1;break}if(ot)return gt}return-1}I.prototype.includes=function(m,b,V){return this.indexOf(m,b,V)!==-1},I.prototype.indexOf=function(m,b,V){return Fe(this,m,b,V,!0)},I.prototype.lastIndexOf=function(m,b,V){return Fe(this,m,b,V,!1)};function Qt(M,m,b,V){b=Number(b)||0;const te=M.length-b;V?(V=Number(V),V>te&&(V=te)):V=te;const ce=m.length;V>ce/2&&(V=ce/2);let le;for(le=0;le<V;++le){const At=parseInt(m.substr(le*2,2),16);if(ze(At))return le;M[b+le]=At}return le}function st(M,m,b,V){return ae(Q(m,M.length-b),M,b,V)}function $e(M,m,b,V){return ae(v(m),M,b,V)}function Ae(M,m,b,V){return ae(z(m),M,b,V)}function C(M,m,b,V){return ae(_(m,M.length-b),M,b,V)}I.prototype.write=function(m,b,V,te){if(b===void 0)te="utf8",V=this.length,b=0;else if(V===void 0&&typeof b=="string")te=b,V=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(V)?(V=V>>>0,te===void 0&&(te="utf8")):(te=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ce=this.length-b;if((V===void 0||V>ce)&&(V=ce),m.length>0&&(V<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let le=!1;for(;;)switch(te){case"hex":return Qt(this,m,b,V);case"utf8":case"utf-8":return st(this,m,b,V);case"ascii":case"latin1":case"binary":return $e(this,m,b,V);case"base64":return Ae(this,m,b,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,m,b,V);default:if(le)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),le=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(M,m,b){return m===0&&b===M.length?t.fromByteArray(M):t.fromByteArray(M.slice(m,b))}function q(M,m,b){b=Math.min(M.length,b);const V=[];let te=m;for(;te<b;){const ce=M[te];let le=null,At=ce>239?4:ce>223?3:ce>191?2:1;if(te+At<=b){let Mt,gt,ot,qt;switch(At){case 1:ce<128&&(le=ce);break;case 2:Mt=M[te+1],(Mt&192)===128&&(qt=(ce&31)<<6|Mt&63,qt>127&&(le=qt));break;case 3:Mt=M[te+1],gt=M[te+2],(Mt&192)===128&&(gt&192)===128&&(qt=(ce&15)<<12|(Mt&63)<<6|gt&63,qt>2047&&(qt<55296||qt>57343)&&(le=qt));break;case 4:Mt=M[te+1],gt=M[te+2],ot=M[te+3],(Mt&192)===128&&(gt&192)===128&&(ot&192)===128&&(qt=(ce&15)<<18|(Mt&63)<<12|(gt&63)<<6|ot&63,qt>65535&&qt<1114112&&(le=qt))}}le===null?(le=65533,At=1):le>65535&&(le-=65536,V.push(le>>>10&1023|55296),le=56320|le&1023),V.push(le),te+=At}return ee(V)}const J=4096;function ee(M){const m=M.length;if(m<=J)return String.fromCharCode.apply(String,M);let b="",V=0;for(;V<m;)b+=String.fromCharCode.apply(String,M.slice(V,V+=J));return b}function fe(M,m,b){let V="";b=Math.min(M.length,b);for(let te=m;te<b;++te)V+=String.fromCharCode(M[te]&127);return V}function he(M,m,b){let V="";b=Math.min(M.length,b);for(let te=m;te<b;++te)V+=String.fromCharCode(M[te]);return V}function W(M,m,b){const V=M.length;(!m||m<0)&&(m=0),(!b||b<0||b>V)&&(b=V);let te="";for(let ce=m;ce<b;++ce)te+=We[M[ce]];return te}function x(M,m,b){const V=M.slice(m,b);let te="";for(let ce=0;ce<V.length-1;ce+=2)te+=String.fromCharCode(V[ce]+V[ce+1]*256);return te}I.prototype.slice=function(m,b){const V=this.length;m=~~m,b=b===void 0?V:~~b,m<0?(m+=V,m<0&&(m=0)):m>V&&(m=V),b<0?(b+=V,b<0&&(b=0)):b>V&&(b=V),b<m&&(b=m);const te=this.subarray(m,b);return Object.setPrototypeOf(te,I.prototype),te};function Z(M,m,b){if(M%1!==0||M<0)throw new RangeError("offset is not uint");if(M+m>b)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(m,b,V){m=m>>>0,b=b>>>0,V||Z(m,b,this.length);let te=this[m],ce=1,le=0;for(;++le<b&&(ce*=256);)te+=this[m+le]*ce;return te},I.prototype.readUintBE=I.prototype.readUIntBE=function(m,b,V){m=m>>>0,b=b>>>0,V||Z(m,b,this.length);let te=this[m+--b],ce=1;for(;b>0&&(ce*=256);)te+=this[m+--b]*ce;return te},I.prototype.readUint8=I.prototype.readUInt8=function(m,b){return m=m>>>0,b||Z(m,1,this.length),this[m]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(m,b){return m=m>>>0,b||Z(m,2,this.length),this[m]|this[m+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(m,b){return m=m>>>0,b||Z(m,2,this.length),this[m]<<8|this[m+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},I.prototype.readUint32BE=I.prototype.readUInt32BE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},I.prototype.readBigUInt64LE=lt(function(m){m=m>>>0,Ee(m,"offset");const b=this[m],V=this[m+7];(b===void 0||V===void 0)&&Be(m,this.length-8);const te=b+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,ce=this[++m]+this[++m]*2**8+this[++m]*2**16+V*2**24;return BigInt(te)+(BigInt(ce)<<BigInt(32))}),I.prototype.readBigUInt64BE=lt(function(m){m=m>>>0,Ee(m,"offset");const b=this[m],V=this[m+7];(b===void 0||V===void 0)&&Be(m,this.length-8);const te=b*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],ce=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+V;return(BigInt(te)<<BigInt(32))+BigInt(ce)}),I.prototype.readIntLE=function(m,b,V){m=m>>>0,b=b>>>0,V||Z(m,b,this.length);let te=this[m],ce=1,le=0;for(;++le<b&&(ce*=256);)te+=this[m+le]*ce;return ce*=128,te>=ce&&(te-=Math.pow(2,8*b)),te},I.prototype.readIntBE=function(m,b,V){m=m>>>0,b=b>>>0,V||Z(m,b,this.length);let te=b,ce=1,le=this[m+--te];for(;te>0&&(ce*=256);)le+=this[m+--te]*ce;return ce*=128,le>=ce&&(le-=Math.pow(2,8*b)),le},I.prototype.readInt8=function(m,b){return m=m>>>0,b||Z(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},I.prototype.readInt16LE=function(m,b){m=m>>>0,b||Z(m,2,this.length);const V=this[m]|this[m+1]<<8;return V&32768?V|4294901760:V},I.prototype.readInt16BE=function(m,b){m=m>>>0,b||Z(m,2,this.length);const V=this[m+1]|this[m]<<8;return V&32768?V|4294901760:V},I.prototype.readInt32LE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},I.prototype.readInt32BE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},I.prototype.readBigInt64LE=lt(function(m){m=m>>>0,Ee(m,"offset");const b=this[m],V=this[m+7];(b===void 0||V===void 0)&&Be(m,this.length-8);const te=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(V<<24);return(BigInt(te)<<BigInt(32))+BigInt(b+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),I.prototype.readBigInt64BE=lt(function(m){m=m>>>0,Ee(m,"offset");const b=this[m],V=this[m+7];(b===void 0||V===void 0)&&Be(m,this.length-8);const te=(b<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(te)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+V)}),I.prototype.readFloatLE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),n.read(this,m,!0,23,4)},I.prototype.readFloatBE=function(m,b){return m=m>>>0,b||Z(m,4,this.length),n.read(this,m,!1,23,4)},I.prototype.readDoubleLE=function(m,b){return m=m>>>0,b||Z(m,8,this.length),n.read(this,m,!0,52,8)},I.prototype.readDoubleBE=function(m,b){return m=m>>>0,b||Z(m,8,this.length),n.read(this,m,!1,52,8)};function He(M,m,b,V,te,ce){if(!I.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>te||m<ce)throw new RangeError('"value" argument is out of bounds');if(b+V>M.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(m,b,V,te){if(m=+m,b=b>>>0,V=V>>>0,!te){const At=Math.pow(2,8*V)-1;He(this,m,b,V,At,0)}let ce=1,le=0;for(this[b]=m&255;++le<V&&(ce*=256);)this[b+le]=m/ce&255;return b+V},I.prototype.writeUintBE=I.prototype.writeUIntBE=function(m,b,V,te){if(m=+m,b=b>>>0,V=V>>>0,!te){const At=Math.pow(2,8*V)-1;He(this,m,b,V,At,0)}let ce=V-1,le=1;for(this[b+ce]=m&255;--ce>=0&&(le*=256);)this[b+ce]=m/le&255;return b+V},I.prototype.writeUint8=I.prototype.writeUInt8=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,1,255,0),this[b]=m&255,b+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,2,65535,0),this[b]=m&255,this[b+1]=m>>>8,b+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,2,65535,0),this[b]=m>>>8,this[b+1]=m&255,b+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,4,4294967295,0),this[b+3]=m>>>24,this[b+2]=m>>>16,this[b+1]=m>>>8,this[b]=m&255,b+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,4,4294967295,0),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=m&255,b+4};function ct(M,m,b,V,te){ie(m,V,te,M,b,7);let ce=Number(m&BigInt(4294967295));M[b++]=ce,ce=ce>>8,M[b++]=ce,ce=ce>>8,M[b++]=ce,ce=ce>>8,M[b++]=ce;let le=Number(m>>BigInt(32)&BigInt(4294967295));return M[b++]=le,le=le>>8,M[b++]=le,le=le>>8,M[b++]=le,le=le>>8,M[b++]=le,b}function Y(M,m,b,V,te){ie(m,V,te,M,b,7);let ce=Number(m&BigInt(4294967295));M[b+7]=ce,ce=ce>>8,M[b+6]=ce,ce=ce>>8,M[b+5]=ce,ce=ce>>8,M[b+4]=ce;let le=Number(m>>BigInt(32)&BigInt(4294967295));return M[b+3]=le,le=le>>8,M[b+2]=le,le=le>>8,M[b+1]=le,le=le>>8,M[b]=le,b+8}I.prototype.writeBigUInt64LE=lt(function(m,b=0){return ct(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),I.prototype.writeBigUInt64BE=lt(function(m,b=0){return Y(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),I.prototype.writeIntLE=function(m,b,V,te){if(m=+m,b=b>>>0,!te){const Mt=Math.pow(2,8*V-1);He(this,m,b,V,Mt-1,-Mt)}let ce=0,le=1,At=0;for(this[b]=m&255;++ce<V&&(le*=256);)m<0&&At===0&&this[b+ce-1]!==0&&(At=1),this[b+ce]=(m/le>>0)-At&255;return b+V},I.prototype.writeIntBE=function(m,b,V,te){if(m=+m,b=b>>>0,!te){const Mt=Math.pow(2,8*V-1);He(this,m,b,V,Mt-1,-Mt)}let ce=V-1,le=1,At=0;for(this[b+ce]=m&255;--ce>=0&&(le*=256);)m<0&&At===0&&this[b+ce+1]!==0&&(At=1),this[b+ce]=(m/le>>0)-At&255;return b+V},I.prototype.writeInt8=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,1,127,-128),m<0&&(m=255+m+1),this[b]=m&255,b+1},I.prototype.writeInt16LE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,2,32767,-32768),this[b]=m&255,this[b+1]=m>>>8,b+2},I.prototype.writeInt16BE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,2,32767,-32768),this[b]=m>>>8,this[b+1]=m&255,b+2},I.prototype.writeInt32LE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,4,2147483647,-2147483648),this[b]=m&255,this[b+1]=m>>>8,this[b+2]=m>>>16,this[b+3]=m>>>24,b+4},I.prototype.writeInt32BE=function(m,b,V){return m=+m,b=b>>>0,V||He(this,m,b,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=m&255,b+4},I.prototype.writeBigInt64LE=lt(function(m,b=0){return ct(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),I.prototype.writeBigInt64BE=lt(function(m,b=0){return Y(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function tt(M,m,b,V,te,ce){if(b+V>M.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Dt(M,m,b,V,te){return m=+m,b=b>>>0,te||tt(M,m,b,4),n.write(M,m,b,V,23,4),b+4}I.prototype.writeFloatLE=function(m,b,V){return Dt(this,m,b,!0,V)},I.prototype.writeFloatBE=function(m,b,V){return Dt(this,m,b,!1,V)};function jt(M,m,b,V,te){return m=+m,b=b>>>0,te||tt(M,m,b,8),n.write(M,m,b,V,52,8),b+8}I.prototype.writeDoubleLE=function(m,b,V){return jt(this,m,b,!0,V)},I.prototype.writeDoubleBE=function(m,b,V){return jt(this,m,b,!1,V)},I.prototype.copy=function(m,b,V,te){if(!I.isBuffer(m))throw new TypeError("argument should be a Buffer");if(V||(V=0),!te&&te!==0&&(te=this.length),b>=m.length&&(b=m.length),b||(b=0),te>0&&te<V&&(te=V),te===V||m.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),m.length-b<te-V&&(te=m.length-b+V);const ce=te-V;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,V,te):Uint8Array.prototype.set.call(m,this.subarray(V,te),b),ce},I.prototype.fill=function(m,b,V,te){if(typeof m=="string"){if(typeof b=="string"?(te=b,b=0,V=this.length):typeof V=="string"&&(te=V,V=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!I.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(m.length===1){const le=m.charCodeAt(0);(te==="utf8"&&le<128||te==="latin1")&&(m=le)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(b<0||this.length<b||this.length<V)throw new RangeError("Out of range index");if(V<=b)return this;b=b>>>0,V=V===void 0?this.length:V>>>0,m||(m=0);let ce;if(typeof m=="number")for(ce=b;ce<V;++ce)this[ce]=m;else{const le=I.isBuffer(m)?m:I.from(m,te),At=le.length;if(At===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(ce=0;ce<V-b;++ce)this[ce+b]=le[ce%At]}return this};const at={};function je(M,m,b){at[M]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${M}]`,this.stack,delete this.name}get code(){return M}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${M}]: ${this.message}`}}}je("ERR_BUFFER_OUT_OF_BOUNDS",function(M){return M?`${M} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),je("ERR_INVALID_ARG_TYPE",function(M,m){return`The "${M}" argument must be of type number. Received type ${typeof m}`},TypeError),je("ERR_OUT_OF_RANGE",function(M,m,b){let V=`The value of "${M}" is out of range.`,te=b;return Number.isInteger(b)&&Math.abs(b)>2**32?te=O(String(b)):typeof b=="bigint"&&(te=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(te=O(te)),te+="n"),V+=` It must be ${m}. Received ${te}`,V},RangeError);function O(M){let m="",b=M.length;const V=M[0]==="-"?1:0;for(;b>=V+4;b-=3)m=`_${M.slice(b-3,b)}${m}`;return`${M.slice(0,b)}${m}`}function X(M,m,b){Ee(m,"offset"),(M[m]===void 0||M[m+b]===void 0)&&Be(m,M.length-(b+1))}function ie(M,m,b,V,te,ce){if(M>b||M<m){const le=typeof m=="bigint"?"n":"";let At;throw ce>3?m===0||m===BigInt(0)?At=`>= 0${le} and < 2${le} ** ${(ce+1)*8}${le}`:At=`>= -(2${le} ** ${(ce+1)*8-1}${le}) and < 2 ** ${(ce+1)*8-1}${le}`:At=`>= ${m}${le} and <= ${b}${le}`,new at.ERR_OUT_OF_RANGE("value",At,M)}X(V,te,ce)}function Ee(M,m){if(typeof M!="number")throw new at.ERR_INVALID_ARG_TYPE(m,"number",M)}function Be(M,m,b){throw Math.floor(M)!==M?(Ee(M,b),new at.ERR_OUT_OF_RANGE(b||"offset","an integer",M)):m<0?new at.ERR_BUFFER_OUT_OF_BOUNDS:new at.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${m}`,M)}const Ie=/[^+/0-9A-Za-z-_]/g;function G(M){if(M=M.split("=")[0],M=M.trim().replace(Ie,""),M.length<2)return"";for(;M.length%4!==0;)M=M+"=";return M}function Q(M,m){m=m||1/0;let b;const V=M.length;let te=null;const ce=[];for(let le=0;le<V;++le){if(b=M.charCodeAt(le),b>55295&&b<57344){if(!te){if(b>56319){(m-=3)>-1&&ce.push(239,191,189);continue}else if(le+1===V){(m-=3)>-1&&ce.push(239,191,189);continue}te=b;continue}if(b<56320){(m-=3)>-1&&ce.push(239,191,189),te=b;continue}b=(te-55296<<10|b-56320)+65536}else te&&(m-=3)>-1&&ce.push(239,191,189);if(te=null,b<128){if((m-=1)<0)break;ce.push(b)}else if(b<2048){if((m-=2)<0)break;ce.push(b>>6|192,b&63|128)}else if(b<65536){if((m-=3)<0)break;ce.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((m-=4)<0)break;ce.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return ce}function v(M){const m=[];for(let b=0;b<M.length;++b)m.push(M.charCodeAt(b)&255);return m}function _(M,m){let b,V,te;const ce=[];for(let le=0;le<M.length&&!((m-=2)<0);++le)b=M.charCodeAt(le),V=b>>8,te=b%256,ce.push(te),ce.push(V);return ce}function z(M){return t.toByteArray(G(M))}function ae(M,m,b,V){let te;for(te=0;te<V&&!(te+b>=m.length||te>=M.length);++te)m[te+b]=M[te];return te}function Ce(M,m){return M instanceof m||M!=null&&M.constructor!=null&&M.constructor.name!=null&&M.constructor.name===m.name}function ze(M){return M!==M}const We=function(){const M="0123456789abcdef",m=new Array(256);for(let b=0;b<16;++b){const V=b*16;for(let te=0;te<16;++te)m[V+te]=M[b]+M[te]}return m}();function lt(M){return typeof BigInt=="undefined"?Rt:M}function Rt(){throw new Error("BigInt not supported")}})(buffer$1);window.global=window;window.Buffer=buffer$1.Buffer;var react={exports:{}},react_development={};/* object-assign (c) Sindre Sorhus @license MIT */var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function shouldUseNative(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var u=Object.getOwnPropertyNames(t).map(function(d){return t[d]});if(u.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(d){g[d]=d}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var objectAssign=shouldUseNative()?Object.assign:function(a,t){for(var n,u=toObject(a),g,d=1;d<arguments.length;d++){n=Object(arguments[d]);for(var B in n)hasOwnProperty.call(n,B)&&(u[B]=n[B]);if(getOwnPropertySymbols){g=getOwnPropertySymbols(n);for(var I=0;I<g.length;I++)propIsEnumerable.call(n,g[I])&&(u[g[I]]=n[g[I]])}}return u};/** @license React v17.0.2 * react.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(a){(function(){var t=objectAssign,n="17.0.2",u=60103,g=60106;a.Fragment=60107,a.StrictMode=60108,a.Profiler=60114;var d=60109,B=60110,I=60112;a.Suspense=60113;var k=60120,F=60115,P=60116,L=60121,se=60122,j=60117,pe=60129,Se=60131;if(typeof Symbol=="function"&&Symbol.for){var Ye=Symbol.for;u=Ye("react.element"),g=Ye("react.portal"),a.Fragment=Ye("react.fragment"),a.StrictMode=Ye("react.strict_mode"),a.Profiler=Ye("react.profiler"),d=Ye("react.provider"),B=Ye("react.context"),I=Ye("react.forward_ref"),a.Suspense=Ye("react.suspense"),k=Ye("react.suspense_list"),F=Ye("react.memo"),P=Ye("react.lazy"),L=Ye("react.block"),se=Ye("react.server.block"),j=Ye("react.fundamental"),Ye("react.scope"),Ye("react.opaque.id"),pe=Ye("react.debug_trace_mode"),Ye("react.offscreen"),Se=Ye("react.legacy_hidden")}var Ve=typeof Symbol=="function"&&Symbol.iterator,Me="@@iterator";function et(U){if(U===null||typeof U!="object")return null;var Qe=Ve&&U[Ve]||U[Me];return typeof Qe=="function"?Qe:null}var rt={current:null},ke={transition:0},Fe={current:null},Je={},Qt=null;function st(U){Qt=U}Je.setExtraStackFrame=function(U){Qt=U},Je.getCurrentStack=null,Je.getStackAddendum=function(){var U="";Qt&&(U+=Qt);var Qe=Je.getCurrentStack;return Qe&&(U+=Qe()||""),U};var $e={current:!1},Ae={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:ke,ReactCurrentOwner:Fe,IsSomeRendererActing:$e,assign:t};Ae.ReactDebugCurrentFrame=Je;function C(U){{for(var Qe=arguments.length,Re=new Array(Qe>1?Qe-1:0),Oe=1;Oe<Qe;Oe++)Re[Oe-1]=arguments[Oe];q("warn",U,Re)}}function S(U){{for(var Qe=arguments.length,Re=new Array(Qe>1?Qe-1:0),Oe=1;Oe<Qe;Oe++)Re[Oe-1]=arguments[Oe];q("error",U,Re)}}function q(U,Qe,Re){{var Oe=Ae.ReactDebugCurrentFrame,mt=Oe.getStackAddendum();mt!==""&&(Qe+="%s",Re=Re.concat([mt]));var zt=Re.map(function($t){return""+$t});zt.unshift("Warning: "+Qe),Function.prototype.apply.call(console[U],console,zt)}}var J={};function ee(U,Qe){{var Re=U.constructor,Oe=Re&&(Re.displayName||Re.name)||"ReactClass",mt=Oe+"."+Qe;if(J[mt])return;S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Qe,Oe),J[mt]=!0}}var fe={isMounted:function(U){return!1},enqueueForceUpdate:function(U,Qe,Re){ee(U,"forceUpdate")},enqueueReplaceState:function(U,Qe,Re,Oe){ee(U,"replaceState")},enqueueSetState:function(U,Qe,Re,Oe){ee(U,"setState")}},he={};Object.freeze(he);function W(U,Qe,Re){this.props=U,this.context=Qe,this.refs=he,this.updater=Re||fe}W.prototype.isReactComponent={},W.prototype.setState=function(U,Qe){if(!(typeof U=="object"||typeof U=="function"||U==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,Qe,"setState")},W.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};{var x={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Z=function(U,Qe){Object.defineProperty(W.prototype,U,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",Qe[0],Qe[1])}})};for(var He in x)x.hasOwnProperty(He)&&Z(He,x[He])}function ct(){}ct.prototype=W.prototype;function Y(U,Qe,Re){this.props=U,this.context=Qe,this.refs=he,this.updater=Re||fe}var tt=Y.prototype=new ct;tt.constructor=Y,t(tt,W.prototype),tt.isPureReactComponent=!0;function Dt(){var U={current:null};return Object.seal(U),U}function jt(U,Qe,Re){var Oe=Qe.displayName||Qe.name||"";return U.displayName||(Oe!==""?Re+"("+Oe+")":Re)}function at(U){return U.displayName||"Context"}function je(U){if(U==null)return null;if(typeof U.tag=="number"&&S("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof U=="function")return U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case a.Fragment:return"Fragment";case g:return"Portal";case a.Profiler:return"Profiler";case a.StrictMode:return"StrictMode";case a.Suspense:return"Suspense";case k:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case B:var Qe=U;return at(Qe)+".Consumer";case d:var Re=U;return at(Re._context)+".Provider";case I:return jt(U,U.render,"ForwardRef");case F:return je(U.type);case L:return je(U._render);case P:{var Oe=U,mt=Oe._payload,zt=Oe._init;try{return je(zt(mt))}catch{return null}}}return null}var O=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0},ie,Ee,Be;Be={};function Ie(U){if(O.call(U,"ref")){var Qe=Object.getOwnPropertyDescriptor(U,"ref").get;if(Qe&&Qe.isReactWarning)return!1}return U.ref!==void 0}function G(U){if(O.call(U,"key")){var Qe=Object.getOwnPropertyDescriptor(U,"key").get;if(Qe&&Qe.isReactWarning)return!1}return U.key!==void 0}function Q(U,Qe){var Re=function(){ie||(ie=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Qe))};Re.isReactWarning=!0,Object.defineProperty(U,"key",{get:Re,configurable:!0})}function v(U,Qe){var Re=function(){Ee||(Ee=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Qe))};Re.isReactWarning=!0,Object.defineProperty(U,"ref",{get:Re,configurable:!0})}function _(U){if(typeof U.ref=="string"&&Fe.current&&U.__self&&Fe.current.stateNode!==U.__self){var Qe=je(Fe.current.type);Be[Qe]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Qe,U.ref),Be[Qe]=!0)}}var z=function(U,Qe,Re,Oe,mt,zt,$t){var Jt={$$typeof:u,type:U,key:Qe,ref:Re,props:$t,_owner:zt};return Jt._store={},Object.defineProperty(Jt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Jt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.defineProperty(Jt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:mt}),Object.freeze&&(Object.freeze(Jt.props),Object.freeze(Jt)),Jt};function ae(U,Qe,Re){var Oe,mt={},zt=null,$t=null,Jt=null,IA=null;if(Qe!=null){Ie(Qe)&&($t=Qe.ref,_(Qe)),G(Qe)&&(zt=""+Qe.key),Jt=Qe.__self===void 0?null:Qe.__self,IA=Qe.__source===void 0?null:Qe.__source;for(Oe in Qe)O.call(Qe,Oe)&&!X.hasOwnProperty(Oe)&&(mt[Oe]=Qe[Oe])}var xA=arguments.length-2;if(xA===1)mt.children=Re;else if(xA>1){for(var kA=Array(xA),qA=0;qA<xA;qA++)kA[qA]=arguments[qA+2];Object.freeze&&Object.freeze(kA),mt.children=kA}if(U&&U.defaultProps){var ir=U.defaultProps;for(Oe in ir)mt[Oe]===void 0&&(mt[Oe]=ir[Oe])}if(zt||$t){var ar=typeof U=="function"?U.displayName||U.name||"Unknown":U;zt&&Q(mt,ar),$t&&v(mt,ar)}return z(U,zt,$t,Jt,IA,Fe.current,mt)}function Ce(U,Qe){var Re=z(U.type,Qe,U.ref,U._self,U._source,U._owner,U.props);return Re}function ze(U,Qe,Re){if(U==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+U+".");var Oe,mt=t({},U.props),zt=U.key,$t=U.ref,Jt=U._self,IA=U._source,xA=U._owner;if(Qe!=null){Ie(Qe)&&($t=Qe.ref,xA=Fe.current),G(Qe)&&(zt=""+Qe.key);var kA;U.type&&U.type.defaultProps&&(kA=U.type.defaultProps);for(Oe in Qe)O.call(Qe,Oe)&&!X.hasOwnProperty(Oe)&&(Qe[Oe]===void 0&&kA!==void 0?mt[Oe]=kA[Oe]:mt[Oe]=Qe[Oe])}var qA=arguments.length-2;if(qA===1)mt.children=Re;else if(qA>1){for(var ir=Array(qA),ar=0;ar<qA;ar++)ir[ar]=arguments[ar+2];mt.children=ir}return z(U.type,zt,$t,Jt,IA,xA,mt)}function We(U){return typeof U=="object"&&U!==null&&U.$$typeof===u}var lt=".",Rt=":";function M(U){var Qe=/[=:]/g,Re={"=":"=0",":":"=2"},Oe=U.replace(Qe,function(mt){return Re[mt]});return"$"+Oe}var m=!1,b=/\/+/g;function V(U){return U.replace(b,"$&/")}function te(U,Qe){return typeof U=="object"&&U!==null&&U.key!=null?M(""+U.key):Qe.toString(36)}function ce(U,Qe,Re,Oe,mt){var zt=typeof U;(zt==="undefined"||zt==="boolean")&&(U=null);var $t=!1;if(U===null)$t=!0;else switch(zt){case"string":case"number":$t=!0;break;case"object":switch(U.$$typeof){case u:case g:$t=!0}}if($t){var Jt=U,IA=mt(Jt),xA=Oe===""?lt+te(Jt,0):Oe;if(Array.isArray(IA)){var kA="";xA!=null&&(kA=V(xA)+"/"),ce(IA,Qe,kA,"",function(aa){return aa})}else IA!=null&&(We(IA)&&(IA=Ce(IA,Re+(IA.key&&(!Jt||Jt.key!==IA.key)?V(""+IA.key)+"/":"")+xA)),Qe.push(IA));return 1}var qA,ir,ar=0,Ir=Oe===""?lt:Oe+Rt;if(Array.isArray(U))for(var Qn=0;Qn<U.length;Qn++)qA=U[Qn],ir=Ir+te(qA,Qn),ar+=ce(qA,Qe,Re,ir,mt);else{var hi=et(U);if(typeof hi=="function"){var na=U;hi===na.entries&&(m||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),m=!0);for(var Eu=hi.call(na),ia,Iu=0;!(ia=Eu.next()).done;)qA=ia.value,ir=Ir+te(qA,Iu++),ar+=ce(qA,Qe,Re,ir,mt)}else if(zt==="object"){var di=""+U;throw Error("Objects are not valid as a React child (found: "+(di==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":di)+"). If you meant to render a collection of children, use an array instead.")}}return ar}function le(U,Qe,Re){if(U==null)return U;var Oe=[],mt=0;return ce(U,Oe,"","",function(zt){return Qe.call(Re,zt,mt++)}),Oe}function At(U){var Qe=0;return le(U,function(){Qe++}),Qe}function Mt(U,Qe,Re){le(U,function(){Qe.apply(this,arguments)},Re)}function gt(U){return le(U,function(Qe){return Qe})||[]}function ot(U){if(!We(U))throw Error("React.Children.only expected to receive a single React element child.");return U}function qt(U,Qe){Qe===void 0?Qe=null:Qe!==null&&typeof Qe!="function"&&S("createContext: Expected the optional second argument to be a function. Instead received: %s",Qe);var Re={$$typeof:B,_calculateChangedBits:Qe,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null};Re.Provider={$$typeof:d,_context:Re};var Oe=!1,mt=!1,zt=!1;{var $t={$$typeof:B,_context:Re,_calculateChangedBits:Re._calculateChangedBits};Object.defineProperties($t,{Provider:{get:function(){return mt||(mt=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Re.Provider},set:function(Jt){Re.Provider=Jt}},_currentValue:{get:function(){return Re._currentValue},set:function(Jt){Re._currentValue=Jt}},_currentValue2:{get:function(){return Re._currentValue2},set:function(Jt){Re._currentValue2=Jt}},_threadCount:{get:function(){return Re._threadCount},set:function(Jt){Re._threadCount=Jt}},Consumer:{get:function(){return Oe||(Oe=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Re.Consumer}},displayName:{get:function(){return Re.displayName},set:function(Jt){zt||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Jt),zt=!0)}}}),Re.Consumer=$t}return Re._currentRenderer=null,Re._currentRenderer2=null,Re}var Ct=-1,aA=0,Er=1,hA=2;function BA(U){if(U._status===Ct){var Qe=U._result,Re=Qe(),Oe=U;Oe._status=aA,Oe._result=Re,Re.then(function(mt){if(U._status===aA){var zt=mt.default;zt===void 0&&S(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`,mt);var $t=U;$t._status=Er,$t._result=zt}},function(mt){if(U._status===aA){var zt=U;zt._status=hA,zt._result=mt}})}if(U._status===Er)return U._result;throw U._result}function PA(U){var Qe={_status:-1,_result:U},Re={$$typeof:P,_payload:Qe,_init:BA};{var Oe,mt;Object.defineProperties(Re,{defaultProps:{configurable:!0,get:function(){return Oe},set:function(zt){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Oe=zt,Object.defineProperty(Re,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return mt},set:function(zt){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),mt=zt,Object.defineProperty(Re,"propTypes",{enumerable:!0})}}})}return Re}function Xt(U){U!=null&&U.$$typeof===F?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof U!="function"?S("forwardRef requires a render function but was given %s.",U===null?"null":typeof U):U.length!==0&&U.length!==2&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",U.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),U!=null&&(U.defaultProps!=null||U.propTypes!=null)&&S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var Qe={$$typeof:I,render:U};{var Re;Object.defineProperty(Qe,"displayName",{enumerable:!1,configurable:!0,get:function(){return Re},set:function(Oe){Re=Oe,U.displayName==null&&(U.displayName=Oe)}})}return Qe}var sA=!1;function rr(U){return!!(typeof U=="string"||typeof U=="function"||U===a.Fragment||U===a.Profiler||U===pe||U===a.StrictMode||U===a.Suspense||U===k||U===Se||sA||typeof U=="object"&&U!==null&&(U.$$typeof===P||U.$$typeof===F||U.$$typeof===d||U.$$typeof===B||U.$$typeof===I||U.$$typeof===j||U.$$typeof===L||U[0]===se))}function cA(U,Qe){rr(U)||S("memo: The first argument must be a component. Instead received: %s",U===null?"null":typeof U);var Re={$$typeof:F,type:U,compare:Qe===void 0?null:Qe};{var Oe;Object.defineProperty(Re,"displayName",{enumerable:!1,configurable:!0,get:function(){return Oe},set:function(mt){Oe=mt,U.displayName==null&&(U.displayName=mt)}})}return Re}function eA(){var U=rt.current;if(U===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return U}function pA(U,Qe){var Re=eA();if(Qe!==void 0&&S("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Qe,typeof Qe=="number"&&Array.isArray(arguments[2])?` Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks`:""),U._context!==void 0){var Oe=U._context;Oe.Consumer===U?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):Oe.Provider===U&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Re.useContext(U,Qe)}function iA(U){var Qe=eA();return Qe.useState(U)}function EA(U,Qe,Re){var Oe=eA();return Oe.useReducer(U,Qe,Re)}function R(U){var Qe=eA();return Qe.useRef(U)}function H(U,Qe){var Re=eA();return Re.useEffect(U,Qe)}function T(U,Qe){var Re=eA();return Re.useLayoutEffect(U,Qe)}function y(U,Qe){var Re=eA();return Re.useCallback(U,Qe)}function $(U,Qe){var Re=eA();return Re.useMemo(U,Qe)}function ge(U,Qe,Re){var Oe=eA();return Oe.useImperativeHandle(U,Qe,Re)}function ye(U,Qe){{var Re=eA();return Re.useDebugValue(U,Qe)}}var Ge=0,Ue,wt,dt,tA,pt,Ut,Bt;function Lt(){}Lt.__reactDisabledLog=!0;function _t(){{if(Ge===0){Ue=console.log,wt=console.info,dt=console.warn,tA=console.error,pt=console.group,Ut=console.groupCollapsed,Bt=console.groupEnd;var U={configurable:!0,enumerable:!0,value:Lt,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}Ge++}}function ne(){{if(Ge--,Ge===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:t({},U,{value:Ue}),info:t({},U,{value:wt}),warn:t({},U,{value:dt}),error:t({},U,{value:tA}),group:t({},U,{value:pt}),groupCollapsed:t({},U,{value:Ut}),groupEnd:t({},U,{value:Bt})})}Ge<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ut=Ae.ReactCurrentDispatcher,ft;function Ne(U,Qe,Re){{if(ft===void 0)try{throw Error()}catch(mt){var Oe=mt.stack.trim().match(/\n( *(at )?)/);ft=Oe&&Oe[1]||""}return` `+ft+U}}var vt=!1,ht;{var bt=typeof WeakMap=="function"?WeakMap:Map;ht=new bt}function xt(U,Qe){if(!U||vt)return"";{var Re=ht.get(U);if(Re!==void 0)return Re}var Oe;vt=!0;var mt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var zt;zt=ut.current,ut.current=null,_t();try{if(Qe){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(Ir){Oe=Ir}Reflect.construct(U,[],$t)}else{try{$t.call()}catch(Ir){Oe=Ir}U.call($t.prototype)}}else{try{throw Error()}catch(Ir){Oe=Ir}U()}}catch(Ir){if(Ir&&Oe&&typeof Ir.stack=="string"){for(var Jt=Ir.stack.split(` `),IA=Oe.stack.split(` `),xA=Jt.length-1,kA=IA.length-1;xA>=1&&kA>=0&&Jt[xA]!==IA[kA];)kA--;for(;xA>=1&&kA>=0;xA--,kA--)if(Jt[xA]!==IA[kA]){if(xA!==1||kA!==1)do if(xA--,kA--,kA<0||Jt[xA]!==IA[kA]){var qA=` `+Jt[xA].replace(" at new "," at ");return typeof U=="function"&&ht.set(U,qA),qA}while(xA>=1&&kA>=0);break}}}finally{vt=!1,ut.current=zt,ne(),Error.prepareStackTrace=mt}var ir=U?U.displayName||U.name:"",ar=ir?Ne(ir):"";return typeof U=="fu