@worldcoin/idkit 0.4.3 → 0.4.6

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/build/idkit-js.js CHANGED
@@ -1,20 +1,20 @@
1
- var IDKit=(()=>{var LL=Object.create;var Zl=Object.defineProperty,FL=Object.defineProperties,$L=Object.getOwnPropertyDescriptor,UL=Object.getOwnPropertyDescriptors,VL=Object.getOwnPropertyNames,bd=Object.getOwnPropertySymbols,BL=Object.getPrototypeOf,Zg=Object.prototype.hasOwnProperty,P2=Object.prototype.propertyIsEnumerable;var T2=(e,t,r)=>t in e?Zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H=(e,t)=>{for(var r in t||(t={}))Zg.call(t,r)&&T2(e,r,t[r]);if(bd)for(var r of bd(t))P2.call(t,r)&&T2(e,r,t[r]);return e},se=(e,t)=>FL(e,UL(t));var D2=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var de=(e,t)=>{var r={};for(var n in e)Zg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bd)for(var n of bd(e))t.indexOf(n)<0&&P2.call(e,n)&&(r[n]=e[n]);return r};var ba=(e,t)=>()=>(e&&(t=e(e=0)),t);var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fr=(e,t)=>{for(var r in t)Zl(e,r,{get:t[r],enumerable:!0})},Ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of VL(t))!Zg.call(e,i)&&i!==r&&Zl(e,i,{get:()=>t[i],enumerable:!(n=$L(t,i))||n.enumerable});return e},Kt=(e,t,r)=>(Ed(e,t,"default"),r&&Ed(r,t,"default")),Y=(e,t,r)=>(r=e!=null?LL(BL(e)):{},Ed(t||!e||!e.__esModule?Zl(r,"default",{value:e,enumerable:!0}):r,e)),I2=e=>Ed(Zl({},"__esModule",{value:!0}),e);var jL,S,c=ba(()=>{jL="production",S={MODE:jL}});function M2(){ey=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)Hn[t]=e[t],ln[e.charCodeAt(t)]=t;ln["-".charCodeAt(0)]=62,ln["_".charCodeAt(0)]=63}function HL(e){ey||M2();var t,r,n,i,o,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new zL(a*3/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=ln[e.charCodeAt(t)]<<18|ln[e.charCodeAt(t+1)]<<12|ln[e.charCodeAt(t+2)]<<6|ln[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=i&255;return o===2?(i=ln[e.charCodeAt(t)]<<2|ln[e.charCodeAt(t+1)]>>4,s[u++]=i&255):o===1&&(i=ln[e.charCodeAt(t)]<<10|ln[e.charCodeAt(t+1)]<<4|ln[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=i&255),s}function KL(e){return Hn[e>>18&63]+Hn[e>>12&63]+Hn[e>>6&63]+Hn[e&63]}function qL(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(KL(n));return i.join("")}function A2(e){ey||M2();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(qL(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],i+=Hn[t>>2],i+=Hn[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=Hn[t>>10],i+=Hn[t>>4&63],i+=Hn[t<<2&63],i+="="),o.push(i),o.join("")}function _d(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ci(e,t){if(_d()<t)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=x.prototype):(e===null&&(e=new x(t)),e.length=t),e}function x(e,t,r){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return ty(this,e)}return k2(this,e,t,r)}function k2(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?YL(e,t,r,n):typeof t=="string"?GL(e,t,r):XL(e,t)}function L2(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function WL(e,t,r,n){return L2(t),t<=0?ci(e,t):r!==void 0?typeof n=="string"?ci(e,t).fill(r,n):ci(e,t).fill(r):ci(e,t)}function ty(e,t){if(L2(t),e=ci(e,t<0?0:ry(t)|0),!x.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function GL(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!x.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=F2(t,r)|0;e=ci(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Qg(e,t){var r=t.length<0?0:ry(t.length)|0;e=ci(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function YL(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),x.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=x.prototype):e=Qg(e,t),e}function XL(e,t){if(Kn(t)){var r=ry(t.length)|0;return e=ci(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||m9(t.length)?ci(e,0):Qg(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Qg(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ry(e){if(e>=_d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_d().toString(16)+" bytes");return e|0}function Kn(e){return!!(e!=null&&e._isBuffer)}function F2(e,t){if(Kn(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Sd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return H2(e).length;default:if(n)return Sd(e).length;t=(""+t).toLowerCase(),n=!0}}function JL(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return a9(this,t,r);case"utf8":case"utf-8":return V2(this,t,r);case"ascii":return o9(this,t,r);case"latin1":case"binary":return s9(this,t,r);case"base64":return n9(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u9(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ds(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function $2(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=x.from(t,n)),Kn(t))return t.length===0?-1:R2(e,t,r,n,i);if(typeof t=="number")return t=t&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):R2(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function R2(e,t,r,n,i){var o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function u(v,w){return o===1?v[w]:v.readUInt16BE(w*o)}var l;if(i){var p=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*o}else p!==-1&&(l-=l-p),p=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var h=!0,y=0;y<a;y++)if(u(e,l+y)!==u(t,y)){h=!1;break}if(h)return l}return-1}function ZL(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(s*2,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function QL(e,t,r,n){return Pd(Sd(t,e.length-r),e,r,n)}function U2(e,t,r,n){return Pd(h9(t),e,r,n)}function e9(e,t,r,n){return U2(e,t,r,n)}function t9(e,t,r,n){return Pd(H2(t),e,r,n)}function r9(e,t,r,n){return Pd(p9(t,e.length-r),e,r,n)}function n9(e,t,r){return t===0&&r===e.length?A2(e):A2(e.slice(t,r))}function V2(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,l,p,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],(u&192)===128&&(h=(o&31)<<6|u&63,h>127&&(s=h));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(h=(o&15)<<12|(u&63)<<6|l&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=e[i+1],l=e[i+2],p=e[i+3],(u&192)===128&&(l&192)===128&&(p&192)===128&&(h=(o&15)<<18|(u&63)<<12|(l&63)<<6|p&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return i9(n)}function i9(e){var t=e.length;if(t<=N2)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=N2));return r}function o9(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function s9(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function a9(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=d9(e[o]);return i}function u9(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function Jt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Nr(e,t,r,n,i,o){if(!Kn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Cd(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function Td(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function B2(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j2(e,t,r,n,i){return i||B2(e,t,r,4,34028234663852886e22,-34028234663852886e22),q2(e,t,r,n,23,4),r+4}function z2(e,t,r,n,i){return i||B2(e,t,r,8,17976931348623157e292,-17976931348623157e292),q2(e,t,r,n,52,8),r+8}function c9(e){if(e=f9(e).replace(l9,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function f9(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d9(e){return e<16?"0"+e.toString(16):e.toString(16)}function Sd(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function h9(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function p9(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function H2(e){return HL(c9(e))}function Pd(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function m9(e){return e!==e}function g9(e){return e!=null&&(!!e._isBuffer||K2(e)||y9(e))}function K2(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function y9(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&K2(e.slice(0,0))}function Dd(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,l=u>>1,p=-7,h=r?i-1:0,y=r?-1:1,v=e[t+h];for(h+=y,o=v&(1<<-p)-1,v>>=-p,p+=a;p>0;o=o*256+e[t+h],h+=y,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=y,p-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(v?-1:1)*s*Math.pow(2,o-n)}function q2(e,t,r,n,i,o){var s,a,u,l=o*8-i-1,p=(1<<l)-1,h=p>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,w=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=y/u:t+=y*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=p?(a=0,s=p):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+v]=a&255,v+=w,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+v]=s&255,v+=w,s/=256,l-=8);e[r+v-w]|=_*128}var Hn,ln,zL,ey,N2,l9,W2=ba(()=>{c();d();f();Hn=[],ln=[],zL=typeof Uint8Array<"u"?Uint8Array:Array,ey=!1;x.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;x.poolSize=8192;x._augment=function(e){return e.__proto__=x.prototype,e};x.from=function(e,t,r){return k2(null,e,t,r)};x.kMaxLength=_d();x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&x[Symbol.species]);x.alloc=function(e,t,r){return WL(null,e,t,r)};x.allocUnsafe=function(e){return ty(null,e)};x.allocUnsafeSlow=function(e){return ty(null,e)};x.isBuffer=g9;x.compare=function(t,r){if(!Kn(t)||!Kn(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};x.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return x.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=x.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!Kn(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};x.byteLength=F2;x.prototype._isBuffer=!0;x.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ds(this,r,r+1);return this};x.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ds(this,r,r+3),ds(this,r+1,r+2);return this};x.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ds(this,r,r+7),ds(this,r+1,r+6),ds(this,r+2,r+5),ds(this,r+3,r+4);return this};x.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?V2(this,0,t):JL.apply(this,arguments)};x.prototype.equals=function(t){if(!Kn(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:x.compare(this,t)===0};x.prototype.compare=function(t,r,n,i,o){if(!Kn(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,a=n-r,u=Math.min(s,a),l=this.slice(i,o),p=t.slice(r,n),h=0;h<u;++h)if(l[h]!==p[h]){s=l[h],a=p[h];break}return s<a?-1:a<s?1:0};x.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};x.prototype.indexOf=function(t,r,n){return $2(this,t,r,n,!0)};x.prototype.lastIndexOf=function(t,r,n){return $2(this,t,r,n,!1)};x.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return ZL(this,t,r,n);case"utf8":case"utf-8":return QL(this,t,r,n);case"ascii":return U2(this,t,r,n);case"latin1":case"binary":return e9(this,t,r,n);case"base64":return t9(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r9(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};N2=4096;x.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(x.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=x.prototype;else{var o=r-t;i=new x(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};x.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return i};x.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t+--r],o=1;r>0&&(o*=256);)i+=this[t+--r]*o;return i};x.prototype.readUInt8=function(t,r){return r||Jt(t,1,this.length),this[t]};x.prototype.readUInt16LE=function(t,r){return r||Jt(t,2,this.length),this[t]|this[t+1]<<8};x.prototype.readUInt16BE=function(t,r){return r||Jt(t,2,this.length),this[t]<<8|this[t+1]};x.prototype.readUInt32LE=function(t,r){return r||Jt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};x.prototype.readUInt32BE=function(t,r){return r||Jt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};x.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};x.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Jt(t,r,this.length);for(var i=r,o=1,s=this[t+--i];i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(t,r){return r||Jt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};x.prototype.readInt16LE=function(t,r){r||Jt(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(t,r){r||Jt(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(t,r){return r||Jt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};x.prototype.readInt32BE=function(t,r){return r||Jt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};x.prototype.readFloatLE=function(t,r){return r||Jt(t,4,this.length),Dd(this,t,!0,23,4)};x.prototype.readFloatBE=function(t,r){return r||Jt(t,4,this.length),Dd(this,t,!1,23,4)};x.prototype.readDoubleLE=function(t,r){return r||Jt(t,8,this.length),Dd(this,t,!0,52,8)};x.prototype.readDoubleBE=function(t,r){return r||Jt(t,8,this.length),Dd(this,t,!1,52,8)};x.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Nr(this,t,r,n,o,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};x.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Nr(this,t,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};x.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,1,255,0),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};x.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Cd(this,t,r,!0),r+2};x.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Cd(this,t,r,!1),r+2};x.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):Td(this,t,r,!0),r+4};x.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Td(this,t,r,!1),r+4};x.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Nr(this,t,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Nr(this,t,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,1,127,-128),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};x.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):Cd(this,t,r,!0),r+2};x.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):Cd(this,t,r,!1),r+2};x.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Td(this,t,r,!0),r+4};x.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Nr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):Td(this,t,r,!1),r+4};x.prototype.writeFloatLE=function(t,r,n){return j2(this,t,r,!0,n)};x.prototype.writeFloatBE=function(t,r,n){return j2(this,t,r,!1,n)};x.prototype.writeDoubleLE=function(t,r,n){return z2(this,t,r,!0,n)};x.prototype.writeDoubleBE=function(t,r,n){return z2(this,t,r,!1,n)};x.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var o=i-n,s;if(this===t&&n<r&&r<i)for(s=o-1;s>=0;--s)t[s+r]=this[s+n];else if(o<1e3||!x.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o};x.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!x.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var a=Kn(t)?t:Sd(new x(t,i).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};l9=/[^+\/0-9A-Za-z-_]/g});var f=ba(()=>{W2()});var i_=ee(xe=>{"use strict";c();d();f();var Ql=Symbol.for("react.element"),v9=Symbol.for("react.portal"),w9=Symbol.for("react.fragment"),x9=Symbol.for("react.strict_mode"),b9=Symbol.for("react.profiler"),E9=Symbol.for("react.provider"),_9=Symbol.for("react.context"),S9=Symbol.for("react.forward_ref"),C9=Symbol.for("react.suspense"),T9=Symbol.for("react.memo"),P9=Symbol.for("react.lazy"),G2=Symbol.iterator;function D9(e){return e===null||typeof e!="object"?null:(e=G2&&e[G2]||e["@@iterator"],typeof e=="function"?e:null)}var J2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z2=Object.assign,Q2={};function Ea(e,t,r){this.props=e,this.context=t,this.refs=Q2,this.updater=r||J2}Ea.prototype.isReactComponent={};Ea.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function e_(){}e_.prototype=Ea.prototype;function iy(e,t,r){this.props=e,this.context=t,this.refs=Q2,this.updater=r||J2}var oy=iy.prototype=new e_;oy.constructor=iy;Z2(oy,Ea.prototype);oy.isPureReactComponent=!0;var Y2=Array.isArray,t_=Object.prototype.hasOwnProperty,sy={current:null},r_={key:!0,ref:!0,__self:!0,__source:!0};function n_(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)t_.call(t,n)&&!r_.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Ql,type:e,key:o,ref:s,props:i,_owner:sy.current}}function I9(e,t){return{$$typeof:Ql,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ay(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ql}function O9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var X2=/\/+/g;function ny(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O9(""+e.key):t.toString(36)}function Od(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ql:case v9:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+ny(s,0):n,Y2(i)?(r="",e!=null&&(r=e.replace(X2,"$&/")+"/"),Od(i,t,r,"",function(l){return l})):i!=null&&(ay(i)&&(i=I9(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(X2,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",Y2(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+ny(o,a);s+=Od(o,t,r,u,i)}else if(u=D9(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+ny(o,a++),s+=Od(o,t,r,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Id(e,t,r){if(e==null)return e;var n=[],i=0;return Od(e,n,"","",function(o){return t.call(r,o,i++)}),n}function A9(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _r={current:null},Ad={transition:null},R9={ReactCurrentDispatcher:_r,ReactCurrentBatchConfig:Ad,ReactCurrentOwner:sy};xe.Children={map:Id,forEach:function(e,t,r){Id(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Id(e,function(){t++}),t},toArray:function(e){return Id(e,function(t){return t})||[]},only:function(e){if(!ay(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=Ea;xe.Fragment=w9;xe.Profiler=b9;xe.PureComponent=iy;xe.StrictMode=x9;xe.Suspense=C9;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R9;xe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Z2({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=sy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)t_.call(t,u)&&!r_.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:Ql,type:e.type,key:i,ref:o,props:n,_owner:s}};xe.createContext=function(e){return e={$$typeof:_9,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:E9,_context:e},e.Consumer=e};xe.createElement=n_;xe.createFactory=function(e){var t=n_.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:S9,render:e}};xe.isValidElement=ay;xe.lazy=function(e){return{$$typeof:P9,_payload:{_status:-1,_result:e},_init:A9}};xe.memo=function(e,t){return{$$typeof:T9,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=Ad.transition;Ad.transition={};try{e()}finally{Ad.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return _r.current.useCallback(e,t)};xe.useContext=function(e){return _r.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return _r.current.useDeferredValue(e)};xe.useEffect=function(e,t){return _r.current.useEffect(e,t)};xe.useId=function(){return _r.current.useId()};xe.useImperativeHandle=function(e,t,r){return _r.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return _r.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return _r.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return _r.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return _r.current.useReducer(e,t,r)};xe.useRef=function(e){return _r.current.useRef(e)};xe.useState=function(e){return _r.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return _r.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return _r.current.useTransition()};xe.version="18.2.0"});var ue=ee((Hee,o_)=>{"use strict";c();d();f();o_.exports=i_()});var g,d=ba(()=>{g=Y(ue(),1)});var l_=ee(u_=>{"use strict";c();d();f();var _a=ue();function N9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var M9=typeof Object.is=="function"?Object.is:N9,k9=_a.useState,L9=_a.useEffect,F9=_a.useLayoutEffect,$9=_a.useDebugValue;function U9(e,t){var r=t(),n=k9({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return F9(function(){i.value=r,i.getSnapshot=t,uy(i)&&o({inst:i})},[e,r,t]),L9(function(){return uy(i)&&o({inst:i}),e(function(){uy(i)&&o({inst:i})})},[e]),$9(r),r}function uy(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!M9(e,r)}catch(n){return!0}}function V9(e,t){return t()}var B9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?V9:U9;u_.useSyncExternalStore=_a.useSyncExternalStore!==void 0?_a.useSyncExternalStore:B9});var f_=ee((Gee,c_)=>{"use strict";c();d();f();c_.exports=l_()});var h_=ee(d_=>{"use strict";c();d();f();var Rd=ue(),j9=f_();function z9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var H9=typeof Object.is=="function"?Object.is:z9,K9=j9.useSyncExternalStore,q9=Rd.useRef,W9=Rd.useEffect,G9=Rd.useMemo,Y9=Rd.useDebugValue;d_.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=q9(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=G9(function(){function u(v){if(!l){if(l=!0,p=v,v=n(v),i!==void 0&&s.hasValue){var w=s.value;if(i(w,v))return h=w}return h=v}if(w=h,H9(p,v))return w;var _=n(v);return i!==void 0&&i(w,_)?w:(p=v,h=_)}var l=!1,p,h,y=r===void 0?null:r;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,r,n,i]);var a=K9(e,o[0],o[1]);return W9(function(){s.hasValue=!0,s.value=a},[a]),Y9(a),a}});var m_=ee((Xee,p_)=>{"use strict";c();d();f();p_.exports=h_()});var H_=ee(ke=>{"use strict";c();d();f();function py(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<kd(i,t))e[n]=t,e[r]=i,r=n;else break e}}function On(e){return e.length===0?null:e[0]}function Fd(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,a=e[s],u=s+1,l=e[u];if(0>kd(a,r))u<i&&0>kd(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<i&&0>kd(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function kd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(k_=performance,ke.unstable_now=function(){return k_.now()}):(fy=Date,L_=fy.now(),ke.unstable_now=function(){return fy.now()-L_});var k_,fy,L_,qn=[],Yi=[],gF=1,cn=null,dr=3,$d=!1,ms=!1,oc=!1,U_=typeof setTimeout=="function"?setTimeout:null,V_=typeof clearTimeout=="function"?clearTimeout:null,F_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function my(e){for(var t=On(Yi);t!==null;){if(t.callback===null)Fd(Yi);else if(t.startTime<=e)Fd(Yi),t.sortIndex=t.expirationTime,py(qn,t);else break;t=On(Yi)}}function gy(e){if(oc=!1,my(e),!ms)if(On(qn)!==null)ms=!0,vy(yy);else{var t=On(Yi);t!==null&&wy(gy,t.startTime-e)}}function yy(e,t){ms=!1,oc&&(oc=!1,V_(sc),sc=-1),$d=!0;var r=dr;try{for(my(t),cn=On(qn);cn!==null&&(!(cn.expirationTime>t)||e&&!z_());){var n=cn.callback;if(typeof n=="function"){cn.callback=null,dr=cn.priorityLevel;var i=n(cn.expirationTime<=t);t=ke.unstable_now(),typeof i=="function"?cn.callback=i:cn===On(qn)&&Fd(qn),my(t)}else Fd(qn);cn=On(qn)}if(cn!==null)var o=!0;else{var s=On(Yi);s!==null&&wy(gy,s.startTime-t),o=!1}return o}finally{cn=null,dr=r,$d=!1}}var Ud=!1,Ld=null,sc=-1,B_=5,j_=-1;function z_(){return!(ke.unstable_now()-j_<B_)}function dy(){if(Ld!==null){var e=ke.unstable_now();j_=e;var t=!0;try{t=Ld(!0,e)}finally{t?ic():(Ud=!1,Ld=null)}}else Ud=!1}var ic;typeof F_=="function"?ic=function(){F_(dy)}:typeof MessageChannel<"u"?(hy=new MessageChannel,$_=hy.port2,hy.port1.onmessage=dy,ic=function(){$_.postMessage(null)}):ic=function(){U_(dy,0)};var hy,$_;function vy(e){Ld=e,Ud||(Ud=!0,ic())}function wy(e,t){sc=U_(function(){e(ke.unstable_now())},t)}ke.unstable_IdlePriority=5;ke.unstable_ImmediatePriority=1;ke.unstable_LowPriority=4;ke.unstable_NormalPriority=3;ke.unstable_Profiling=null;ke.unstable_UserBlockingPriority=2;ke.unstable_cancelCallback=function(e){e.callback=null};ke.unstable_continueExecution=function(){ms||$d||(ms=!0,vy(yy))};ke.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B_=0<e?Math.floor(1e3/e):5};ke.unstable_getCurrentPriorityLevel=function(){return dr};ke.unstable_getFirstCallbackNode=function(){return On(qn)};ke.unstable_next=function(e){switch(dr){case 1:case 2:case 3:var t=3;break;default:t=dr}var r=dr;dr=t;try{return e()}finally{dr=r}};ke.unstable_pauseExecution=function(){};ke.unstable_requestPaint=function(){};ke.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dr;dr=e;try{return t()}finally{dr=r}};ke.unstable_scheduleCallback=function(e,t,r){var n=ke.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:gF++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,py(Yi,e),On(qn)===null&&e===On(Yi)&&(oc?(V_(sc),sc=-1):oc=!0,wy(gy,r-n))):(e.sortIndex=i,py(qn,e),ms||$d||(ms=!0,vy(yy))),e};ke.unstable_shouldYield=z_;ke.unstable_wrapCallback=function(e){var t=dr;return function(){var r=dr;dr=t;try{return e.apply(this,arguments)}finally{dr=r}}}});var q_=ee((cte,K_)=>{"use strict";c();d();f();K_.exports=H_()});var Z6=ee(tn=>{"use strict";c();d();f();var Q3=ue(),Qr=q_();function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var eS=new Set,Dc={};function Ds(e,t){Ha(e,t),Ha(e+"Capture",t)}function Ha(e,t){for(Dc[e]=t,e=0;e<t.length;e++)eS.add(t[e])}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jy=Object.prototype.hasOwnProperty,yF=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W_={},G_={};function vF(e){return jy.call(G_,e)?!0:jy.call(W_,e)?!1:yF.test(e)?G_[e]=!0:(W_[e]=!0,!1)}function wF(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xF(e,t,r,n){if(t===null||typeof t>"u"||wF(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Tr(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){or[e]=new Tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];or[t]=new Tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){or[e]=new Tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){or[e]=new Tr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){or[e]=new Tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){or[e]=new Tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){or[e]=new Tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){or[e]=new Tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){or[e]=new Tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var M1=/[\-:]([a-z])/g;function k1(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M1,k1);or[t]=new Tr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M1,k1);or[t]=new Tr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M1,k1);or[t]=new Tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){or[e]=new Tr(e,1,!1,e.toLowerCase(),null,!1,!1)});or.xlinkHref=new Tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){or[e]=new Tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function L1(e,t,r,n){var i=or.hasOwnProperty(t)?or[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xF(t,r,i,n)&&(r=null),n||i===null?vF(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var xi=Q3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vd=Symbol.for("react.element"),Ta=Symbol.for("react.portal"),Pa=Symbol.for("react.fragment"),F1=Symbol.for("react.strict_mode"),zy=Symbol.for("react.profiler"),tS=Symbol.for("react.provider"),rS=Symbol.for("react.context"),$1=Symbol.for("react.forward_ref"),Hy=Symbol.for("react.suspense"),Ky=Symbol.for("react.suspense_list"),U1=Symbol.for("react.memo"),Ji=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var nS=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Y_=Symbol.iterator;function ac(e){return e===null||typeof e!="object"?null:(e=Y_&&e[Y_]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,xy;function mc(e){if(xy===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xy=t&&t[1]||""}return`
2
- `+xy+e}var by=!1;function Ey(e,t){if(!e||by)return"";by=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
1
+ var IDKit=(()=>{var s7=Object.create;var Hl=Object.defineProperty,a7=Object.defineProperties,u7=Object.getOwnPropertyDescriptor,l7=Object.getOwnPropertyDescriptors,c7=Object.getOwnPropertyNames,hd=Object.getOwnPropertySymbols,f7=Object.getPrototypeOf,Hg=Object.prototype.hasOwnProperty,g_=Object.prototype.propertyIsEnumerable;var m_=(e,t,r)=>t in e?Hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))Hg.call(t,r)&&m_(e,r,t[r]);if(hd)for(var r of hd(t))g_.call(t,r)&&m_(e,r,t[r]);return e},ue=(e,t)=>a7(e,l7(t));var y_=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var de=(e,t)=>{var r={};for(var n in e)Hg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&hd)for(var n of hd(e))t.indexOf(n)<0&&g_.call(e,n)&&(r[n]=e[n]);return r};var pa=(e,t)=>()=>(e&&(t=e(e=0)),t);var ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ur=(e,t)=>{for(var r in t)Hl(e,r,{get:t[r],enumerable:!0})},pd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of c7(t))!Hg.call(e,i)&&i!==r&&Hl(e,i,{get:()=>t[i],enumerable:!(n=u7(t,i))||n.enumerable});return e},jt=(e,t,r)=>(pd(e,t,"default"),r&&pd(r,t,"default")),Y=(e,t,r)=>(r=e!=null?s7(f7(e)):{},pd(t||!e||!e.__esModule?Hl(r,"default",{value:e,enumerable:!0}):r,e)),v_=e=>pd(Hl({},"__esModule",{value:!0}),e);var d7,S,c=pa(()=>{d7="production",S={MODE:d7}});function __(){qg=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)$n[t]=e[t],rn[e.charCodeAt(t)]=t;rn["-".charCodeAt(0)]=62,rn["_".charCodeAt(0)]=63}function p7(e){qg||__();var t,r,n,i,o,s,a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[a-2]==="="?2:e[a-1]==="="?1:0,s=new h7(a*3/4-o),n=o>0?a-4:a;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=rn[e.charCodeAt(t)]<<18|rn[e.charCodeAt(t+1)]<<12|rn[e.charCodeAt(t+2)]<<6|rn[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=i&255;return o===2?(i=rn[e.charCodeAt(t)]<<2|rn[e.charCodeAt(t+1)]>>4,s[u++]=i&255):o===1&&(i=rn[e.charCodeAt(t)]<<10|rn[e.charCodeAt(t+1)]<<4|rn[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=i&255),s}function m7(e){return $n[e>>18&63]+$n[e>>12&63]+$n[e>>6&63]+$n[e&63]}function g7(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(m7(n));return i.join("")}function x_(e){qg||__();for(var t,r=e.length,n=r%3,i="",o=[],s=16383,a=0,u=r-n;a<u;a+=s)o.push(g7(e,a,a+s>u?u:a+s));return n===1?(t=e[r-1],i+=$n[t>>2],i+=$n[t<<4&63],i+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],i+=$n[t>>10],i+=$n[t>>4&63],i+=$n[t<<2&63],i+="="),o.push(i),o.join("")}function md(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function oi(e,t){if(md()<t)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=x.prototype):(e===null&&(e=new x(t)),e.length=t),e}function x(e,t,r){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(e,t,r);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Wg(this,e)}return S_(this,e,t,r)}function S_(e,t,r,n){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer?w7(e,t,r,n):typeof t=="string"?v7(e,t,r):x7(e,t)}function C_(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function y7(e,t,r,n){return C_(t),t<=0?oi(e,t):r!==void 0?typeof n=="string"?oi(e,t).fill(r,n):oi(e,t).fill(r):oi(e,t)}function Wg(e,t){if(C_(t),e=oi(e,t<0?0:Gg(t)|0),!x.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function v7(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!x.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=T_(t,r)|0;e=oi(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function Kg(e,t){var r=t.length<0?0:Gg(t.length)|0;e=oi(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function w7(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return r===void 0&&n===void 0?t=new Uint8Array(t):n===void 0?t=new Uint8Array(t,r):t=new Uint8Array(t,r,n),x.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=x.prototype):e=Kg(e,t),e}function x7(e,t){if(Un(t)){var r=Gg(t.length)|0;return e=oi(e,r),e.length===0||t.copy(e,0,0,r),e}if(t){if(typeof ArrayBuffer<"u"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||U7(t.length)?oi(e,0):Kg(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return Kg(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Gg(e){if(e>=md())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+md().toString(16)+" bytes");return e|0}function Un(e){return!!(e!=null&&e._isBuffer)}function T_(e,t){if(Un(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return gd(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return N_(e).length;default:if(n)return gd(e).length;t=(""+t).toLowerCase(),n=!0}}function b7(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return O7(this,t,r);case"utf8":case"utf-8":return I_(this,t,r);case"ascii":return I7(this,t,r);case"latin1":case"binary":return A7(this,t,r);case"base64":return P7(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R7(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ss(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function P_(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=x.from(t,n)),Un(t))return t.length===0?-1:b_(e,t,r,n,i);if(typeof t=="number")return t=t&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b_(e,t,r,n,i){var o=1,s=e.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,s/=2,a/=2,r/=2}function u(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var l;if(i){var p=-1;for(l=r;l<s;l++)if(u(e,l)===u(t,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===a)return p*o}else p!==-1&&(l-=l-p),p=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){for(var h=!0,g=0;g<a;g++)if(u(e,l+g)!==u(t,g)){h=!1;break}if(h)return l}return-1}function E7(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(s*2,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function _7(e,t,r,n){return wd(gd(t,e.length-r),e,r,n)}function D_(e,t,r,n){return wd(F7(t),e,r,n)}function S7(e,t,r,n){return D_(e,t,r,n)}function C7(e,t,r,n){return wd(N_(t),e,r,n)}function T7(e,t,r,n){return wd($7(t,e.length-r),e,r,n)}function P7(e,t,r){return t===0&&r===e.length?x_(e):x_(e.slice(t,r))}function I_(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,l,p,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],(u&192)===128&&(h=(o&31)<<6|u&63,h>127&&(s=h));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(h=(o&15)<<12|(u&63)<<6|l&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:u=e[i+1],l=e[i+2],p=e[i+3],(u&192)===128&&(l&192)===128&&(p&192)===128&&(h=(o&15)<<18|(u&63)<<12|(l&63)<<6|p&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=a}return D7(n)}function D7(e){var t=e.length;if(t<=E_)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=E_));return r}function I7(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function A7(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function O7(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=L7(e[o]);return i}function R7(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+n[o+1]*256);return i}function Gt(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Ar(e,t,r,n,i,o){if(!Un(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function yd(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function vd(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function A_(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O_(e,t,r,n,i){return i||A_(e,t,r,4,34028234663852886e22,-34028234663852886e22),k_(e,t,r,n,23,4),r+4}function R_(e,t,r,n,i){return i||A_(e,t,r,8,17976931348623157e292,-17976931348623157e292),k_(e,t,r,n,52,8),r+8}function M7(e){if(e=k7(e).replace(N7,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function k7(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function L7(e){return e<16?"0"+e.toString(16):e.toString(16)}function gd(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return o}function F7(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function $7(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function N_(e){return p7(M7(e))}function wd(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U7(e){return e!==e}function V7(e){return e!=null&&(!!e._isBuffer||M_(e)||B7(e))}function M_(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function B7(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&M_(e.slice(0,0))}function xd(e,t,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,l=u>>1,p=-7,h=r?i-1:0,g=r?-1:1,w=e[t+h];for(h+=g,o=w&(1<<-p)-1,w>>=-p,p+=a;p>0;o=o*256+e[t+h],h+=g,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+e[t+h],h+=g,p-=8);if(o===0)o=1-l;else{if(o===u)return s?NaN:(w?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(w?-1:1)*s*Math.pow(2,o-n)}function k_(e,t,r,n,i,o){var s,a,u,l=o*8-i-1,p=(1<<l)-1,h=p>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:o-1,v=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=g/u:t+=g*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=p?(a=0,s=p):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+w]=a&255,w+=v,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+w]=s&255,w+=v,s/=256,l-=8);e[r+w-v]|=_*128}var $n,rn,h7,qg,E_,N7,L_=pa(()=>{c();d();f();$n=[],rn=[],h7=typeof Uint8Array<"u"?Uint8Array:Array,qg=!1;x.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;x.poolSize=8192;x._augment=function(e){return e.__proto__=x.prototype,e};x.from=function(e,t,r){return S_(null,e,t,r)};x.kMaxLength=md();x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&x[Symbol.species]);x.alloc=function(e,t,r){return y7(null,e,t,r)};x.allocUnsafe=function(e){return Wg(null,e)};x.allocUnsafeSlow=function(e){return Wg(null,e)};x.isBuffer=V7;x.compare=function(t,r){if(!Un(t)||!Un(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(t[o]!==r[o]){n=t[o],i=r[o];break}return n<i?-1:i<n?1:0};x.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return x.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var i=x.allocUnsafe(r),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!Un(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,o),o+=s.length}return i};x.byteLength=T_;x.prototype._isBuffer=!0;x.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)ss(this,r,r+1);return this};x.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)ss(this,r,r+3),ss(this,r+1,r+2);return this};x.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)ss(this,r,r+7),ss(this,r+1,r+6),ss(this,r+2,r+5),ss(this,r+3,r+4);return this};x.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?I_(this,0,t):b7.apply(this,arguments)};x.prototype.equals=function(t){if(!Un(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:x.compare(this,t)===0};x.prototype.compare=function(t,r,n,i,o){if(!Un(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),r<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,a=n-r,u=Math.min(s,a),l=this.slice(i,o),p=t.slice(r,n),h=0;h<u;++h)if(l[h]!==p[h]){s=l[h],a=p[h];break}return s<a?-1:a<s?1:0};x.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};x.prototype.indexOf=function(t,r,n){return P_(this,t,r,n,!0)};x.prototype.lastIndexOf=function(t,r,n){return P_(this,t,r,n,!1)};x.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-r;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return E7(this,t,r,n);case"utf8":case"utf-8":return _7(this,t,r,n);case"ascii":return D_(this,t,r,n);case"latin1":case"binary":return S7(this,t,r,n);case"base64":return C7(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T7(this,t,r,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};E_=4096;x.prototype.slice=function(t,r){var n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);var i;if(x.TYPED_ARRAY_SUPPORT)i=this.subarray(t,r),i.__proto__=x.prototype;else{var o=r-t;i=new x(o,void 0);for(var s=0;s<o;++s)i[s]=this[s+t]}return i};x.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||Gt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return i};x.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||Gt(t,r,this.length);for(var i=this[t+--r],o=1;r>0&&(o*=256);)i+=this[t+--r]*o;return i};x.prototype.readUInt8=function(t,r){return r||Gt(t,1,this.length),this[t]};x.prototype.readUInt16LE=function(t,r){return r||Gt(t,2,this.length),this[t]|this[t+1]<<8};x.prototype.readUInt16BE=function(t,r){return r||Gt(t,2,this.length),this[t]<<8|this[t+1]};x.prototype.readUInt32LE=function(t,r){return r||Gt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};x.prototype.readUInt32BE=function(t,r){return r||Gt(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};x.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||Gt(t,r,this.length);for(var i=this[t],o=1,s=0;++s<r&&(o*=256);)i+=this[t+s]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i};x.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||Gt(t,r,this.length);for(var i=r,o=1,s=this[t+--i];i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(t,r){return r||Gt(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};x.prototype.readInt16LE=function(t,r){r||Gt(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(t,r){r||Gt(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(t,r){return r||Gt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};x.prototype.readInt32BE=function(t,r){return r||Gt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};x.prototype.readFloatLE=function(t,r){return r||Gt(t,4,this.length),xd(this,t,!0,23,4)};x.prototype.readFloatBE=function(t,r){return r||Gt(t,4,this.length),xd(this,t,!1,23,4)};x.prototype.readDoubleLE=function(t,r){return r||Gt(t,8,this.length),xd(this,t,!0,52,8)};x.prototype.readDoubleBE=function(t,r){return r||Gt(t,8,this.length),xd(this,t,!1,52,8)};x.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Ar(this,t,r,n,o,0)}var s=1,a=0;for(this[r]=t&255;++a<n&&(s*=256);)this[r+a]=t/s&255;return r+n};x.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r|0,n=n|0,!i){var o=Math.pow(2,8*n)-1;Ar(this,t,r,n,o,0)}var s=n-1,a=1;for(this[r+s]=t&255;--s>=0&&(a*=256);)this[r+s]=t/a&255;return r+n};x.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,1,255,0),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};x.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):yd(this,t,r,!0),r+2};x.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):yd(this,t,r,!1),r+2};x.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):vd(this,t,r,!0),r+4};x.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):vd(this,t,r,!1),r+4};x.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Ar(this,t,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=t&255;++s<n&&(a*=256);)t<0&&u===0&&this[r+s-1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r|0,!i){var o=Math.pow(2,8*n-1);Ar(this,t,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=t&255;--s>=0&&(a*=256);)t<0&&u===0&&this[r+s+1]!==0&&(u=1),this[r+s]=(t/a>>0)-u&255;return r+n};x.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,1,127,-128),x.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};x.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):yd(this,t,r,!0),r+2};x.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):yd(this,t,r,!1),r+2};x.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):vd(this,t,r,!0),r+4};x.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Ar(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),x.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):vd(this,t,r,!1),r+4};x.prototype.writeFloatLE=function(t,r,n){return O_(this,t,r,!0,n)};x.prototype.writeFloatBE=function(t,r,n){return O_(this,t,r,!1,n)};x.prototype.writeDoubleLE=function(t,r,n){return R_(this,t,r,!0,n)};x.prototype.writeDoubleBE=function(t,r,n){return R_(this,t,r,!1,n)};x.prototype.copy=function(t,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);var o=i-n,s;if(this===t&&n<r&&r<i)for(s=o-1;s>=0;--s)t[s+r]=this[s+n];else if(o<1e3||!x.TYPED_ARRAY_SUPPORT)for(s=0;s<o;++s)t[s+r]=this[s+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o};x.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!x.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=r;s<n;++s)this[s]=t;else{var a=Un(t)?t:gd(new x(t,i).toString()),u=a.length;for(s=0;s<n-r;++s)this[s+r]=a[s%u]}return this};N7=/[^+\/0-9A-Za-z-_]/g});var f=pa(()=>{L_()});var W_=ee(xe=>{"use strict";c();d();f();var Kl=Symbol.for("react.element"),j7=Symbol.for("react.portal"),z7=Symbol.for("react.fragment"),H7=Symbol.for("react.strict_mode"),K7=Symbol.for("react.profiler"),q7=Symbol.for("react.provider"),W7=Symbol.for("react.context"),G7=Symbol.for("react.forward_ref"),Y7=Symbol.for("react.suspense"),X7=Symbol.for("react.memo"),J7=Symbol.for("react.lazy"),F_=Symbol.iterator;function Q7(e){return e===null||typeof e!="object"?null:(e=F_&&e[F_]||e["@@iterator"],typeof e=="function"?e:null)}var V_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B_=Object.assign,j_={};function ma(e,t,r){this.props=e,this.context=t,this.refs=j_,this.updater=r||V_}ma.prototype.isReactComponent={};ma.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ma.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z_(){}z_.prototype=ma.prototype;function Xg(e,t,r){this.props=e,this.context=t,this.refs=j_,this.updater=r||V_}var Jg=Xg.prototype=new z_;Jg.constructor=Xg;B_(Jg,ma.prototype);Jg.isPureReactComponent=!0;var $_=Array.isArray,H_=Object.prototype.hasOwnProperty,Qg={current:null},K_={key:!0,ref:!0,__self:!0,__source:!0};function q_(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)H_.call(t,n)&&!K_.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var u=Array(a),l=0;l<a;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:Kl,type:e,key:o,ref:s,props:i,_owner:Qg.current}}function Z7(e,t){return{$$typeof:Kl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kl}function eF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var U_=/\/+/g;function Yg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eF(""+e.key):t.toString(36)}function Ed(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Kl:case j7:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+Yg(s,0):n,$_(i)?(r="",e!=null&&(r=e.replace(U_,"$&/")+"/"),Ed(i,t,r,"",function(l){return l})):i!=null&&(Zg(i)&&(i=Z7(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(U_,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",$_(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+Yg(o,a);s+=Ed(o,t,r,u,i)}else if(u=Q7(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+Yg(o,a++),s+=Ed(o,t,r,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function bd(e,t,r){if(e==null)return e;var n=[],i=0;return Ed(e,n,"","",function(o){return t.call(r,o,i++)}),n}function tF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xr={current:null},_d={transition:null},rF={ReactCurrentDispatcher:xr,ReactCurrentBatchConfig:_d,ReactCurrentOwner:Qg};xe.Children={map:bd,forEach:function(e,t,r){bd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return bd(e,function(){t++}),t},toArray:function(e){return bd(e,function(t){return t})||[]},only:function(e){if(!Zg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=ma;xe.Fragment=z7;xe.Profiler=K7;xe.PureComponent=Xg;xe.StrictMode=H7;xe.Suspense=Y7;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rF;xe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=B_({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Qg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)H_.call(t,u)&&!K_.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){a=Array(u);for(var l=0;l<u;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:Kl,type:e.type,key:i,ref:o,props:n,_owner:s}};xe.createContext=function(e){return e={$$typeof:W7,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:q7,_context:e},e.Consumer=e};xe.createElement=q_;xe.createFactory=function(e){var t=q_.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:G7,render:e}};xe.isValidElement=Zg;xe.lazy=function(e){return{$$typeof:J7,_payload:{_status:-1,_result:e},_init:tF}};xe.memo=function(e,t){return{$$typeof:X7,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=_d.transition;_d.transition={};try{e()}finally{_d.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return xr.current.useCallback(e,t)};xe.useContext=function(e){return xr.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return xr.current.useDeferredValue(e)};xe.useEffect=function(e,t){return xr.current.useEffect(e,t)};xe.useId=function(){return xr.current.useId()};xe.useImperativeHandle=function(e,t,r){return xr.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return xr.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return xr.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return xr.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return xr.current.useReducer(e,t,r)};xe.useRef=function(e){return xr.current.useRef(e)};xe.useState=function(e){return xr.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return xr.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return xr.current.useTransition()};xe.version="18.2.0"});var ae=ee((XZ,G_)=>{"use strict";c();d();f();G_.exports=W_()});var y,d=pa(()=>{y=Y(ae(),1)});var Q_=ee(J_=>{"use strict";c();d();f();var ga=ae();function nF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iF=typeof Object.is=="function"?Object.is:nF,oF=ga.useState,sF=ga.useEffect,aF=ga.useLayoutEffect,uF=ga.useDebugValue;function lF(e,t){var r=t(),n=oF({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return aF(function(){i.value=r,i.getSnapshot=t,ey(i)&&o({inst:i})},[e,r,t]),sF(function(){return ey(i)&&o({inst:i}),e(function(){ey(i)&&o({inst:i})})},[e]),uF(r),r}function ey(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!iF(e,r)}catch(n){return!0}}function cF(e,t){return t()}var fF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cF:lF;J_.useSyncExternalStore=ga.useSyncExternalStore!==void 0?ga.useSyncExternalStore:fF});var e2=ee((eee,Z_)=>{"use strict";c();d();f();Z_.exports=Q_()});var r2=ee(t2=>{"use strict";c();d();f();var Sd=ae(),dF=e2();function hF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pF=typeof Object.is=="function"?Object.is:hF,mF=dF.useSyncExternalStore,gF=Sd.useRef,yF=Sd.useEffect,vF=Sd.useMemo,wF=Sd.useDebugValue;t2.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=gF(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=vF(function(){function u(w){if(!l){if(l=!0,p=w,w=n(w),i!==void 0&&s.hasValue){var v=s.value;if(i(v,w))return h=v}return h=w}if(v=h,pF(p,w))return v;var _=n(w);return i!==void 0&&i(v,_)?v:(p=w,h=_)}var l=!1,p,h,g=r===void 0?null:r;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,r,n,i]);var a=mF(e,o[0],o[1]);return yF(function(){s.hasValue=!0,s.value=a},[a]),wF(a),a}});var i2=ee((ree,n2)=>{"use strict";c();d();f();n2.exports=r2()});var R2=ee(ke=>{"use strict";c();d();f();function sy(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<Dd(i,t))e[n]=t,e[r]=i,r=n;else break e}}function Cn(e){return e.length===0?null:e[0]}function Ad(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,a=e[s],u=s+1,l=e[u];if(0>Dd(a,r))u<i&&0>Dd(l,a)?(e[n]=l,e[u]=r,n=u):(e[n]=a,e[s]=r,n=s);else if(u<i&&0>Dd(l,r))e[n]=l,e[u]=r,n=u;else break e}}return t}function Dd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_2=performance,ke.unstable_now=function(){return _2.now()}):(ny=Date,S2=ny.now(),ke.unstable_now=function(){return ny.now()-S2});var _2,ny,S2,Vn=[],ji=[],UF=1,nn=null,lr=3,Od=!1,ls=!1,Jl=!1,P2=typeof setTimeout=="function"?setTimeout:null,D2=typeof clearTimeout=="function"?clearTimeout:null,C2=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ay(e){for(var t=Cn(ji);t!==null;){if(t.callback===null)Ad(ji);else if(t.startTime<=e)Ad(ji),t.sortIndex=t.expirationTime,sy(Vn,t);else break;t=Cn(ji)}}function uy(e){if(Jl=!1,ay(e),!ls)if(Cn(Vn)!==null)ls=!0,cy(ly);else{var t=Cn(ji);t!==null&&fy(uy,t.startTime-e)}}function ly(e,t){ls=!1,Jl&&(Jl=!1,D2(Ql),Ql=-1),Od=!0;var r=lr;try{for(ay(t),nn=Cn(Vn);nn!==null&&(!(nn.expirationTime>t)||e&&!O2());){var n=nn.callback;if(typeof n=="function"){nn.callback=null,lr=nn.priorityLevel;var i=n(nn.expirationTime<=t);t=ke.unstable_now(),typeof i=="function"?nn.callback=i:nn===Cn(Vn)&&Ad(Vn),ay(t)}else Ad(Vn);nn=Cn(Vn)}if(nn!==null)var o=!0;else{var s=Cn(ji);s!==null&&fy(uy,s.startTime-t),o=!1}return o}finally{nn=null,lr=r,Od=!1}}var Rd=!1,Id=null,Ql=-1,I2=5,A2=-1;function O2(){return!(ke.unstable_now()-A2<I2)}function iy(){if(Id!==null){var e=ke.unstable_now();A2=e;var t=!0;try{t=Id(!0,e)}finally{t?Xl():(Rd=!1,Id=null)}}else Rd=!1}var Xl;typeof C2=="function"?Xl=function(){C2(iy)}:typeof MessageChannel<"u"?(oy=new MessageChannel,T2=oy.port2,oy.port1.onmessage=iy,Xl=function(){T2.postMessage(null)}):Xl=function(){P2(iy,0)};var oy,T2;function cy(e){Id=e,Rd||(Rd=!0,Xl())}function fy(e,t){Ql=P2(function(){e(ke.unstable_now())},t)}ke.unstable_IdlePriority=5;ke.unstable_ImmediatePriority=1;ke.unstable_LowPriority=4;ke.unstable_NormalPriority=3;ke.unstable_Profiling=null;ke.unstable_UserBlockingPriority=2;ke.unstable_cancelCallback=function(e){e.callback=null};ke.unstable_continueExecution=function(){ls||Od||(ls=!0,cy(ly))};ke.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I2=0<e?Math.floor(1e3/e):5};ke.unstable_getCurrentPriorityLevel=function(){return lr};ke.unstable_getFirstCallbackNode=function(){return Cn(Vn)};ke.unstable_next=function(e){switch(lr){case 1:case 2:case 3:var t=3;break;default:t=lr}var r=lr;lr=t;try{return e()}finally{lr=r}};ke.unstable_pauseExecution=function(){};ke.unstable_requestPaint=function(){};ke.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=lr;lr=e;try{return t()}finally{lr=r}};ke.unstable_scheduleCallback=function(e,t,r){var n=ke.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:UF++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,sy(ji,e),Cn(Vn)===null&&e===Cn(ji)&&(Jl?(D2(Ql),Ql=-1):Jl=!0,fy(uy,r-n))):(e.sortIndex=i,sy(Vn,e),ls||Od||(ls=!0,cy(ly))),e};ke.unstable_shouldYield=O2;ke.unstable_wrapCallback=function(e){var t=lr;return function(){var r=lr;lr=t;try{return e.apply(this,arguments)}finally{lr=r}}}});var M2=ee((vee,N2)=>{"use strict";c();d();f();N2.exports=R2()});var V6=ee(Yr=>{"use strict";c();d();f();var B3=ae(),Wr=M2();function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var j3=new Set,xc={};function Es(e,t){$a(e,t),$a(e+"Capture",t)}function $a(e,t){for(xc[e]=t,e=0;e<t.length;e++)j3.add(t[e])}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),My=Object.prototype.hasOwnProperty,VF=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k2={},L2={};function BF(e){return My.call(L2,e)?!0:My.call(k2,e)?!1:VF.test(e)?L2[e]=!0:(k2[e]=!0,!1)}function jF(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zF(e,t,r,n){if(t===null||typeof t>"u"||jF(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _r(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var tr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tr[e]=new _r(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tr[t]=new _r(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tr[e]=new _r(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tr[e]=new _r(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tr[e]=new _r(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tr[e]=new _r(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tr[e]=new _r(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tr[e]=new _r(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tr[e]=new _r(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tv=/[\-:]([a-z])/g;function Pv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Tv,Pv);tr[t]=new _r(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Tv,Pv);tr[t]=new _r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Tv,Pv);tr[t]=new _r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tr[e]=new _r(e,1,!1,e.toLowerCase(),null,!1,!1)});tr.xlinkHref=new _r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tr[e]=new _r(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dv(e,t,r,n){var i=tr.hasOwnProperty(t)?tr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zF(t,r,i,n)&&(r=null),n||i===null?BF(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var mi=B3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nd=Symbol.for("react.element"),xa=Symbol.for("react.portal"),ba=Symbol.for("react.fragment"),Iv=Symbol.for("react.strict_mode"),ky=Symbol.for("react.profiler"),z3=Symbol.for("react.provider"),H3=Symbol.for("react.context"),Av=Symbol.for("react.forward_ref"),Ly=Symbol.for("react.suspense"),Fy=Symbol.for("react.suspense_list"),Ov=Symbol.for("react.memo"),Hi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var K3=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var F2=Symbol.iterator;function Zl(e){return e===null||typeof e!="object"?null:(e=F2&&e[F2]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,dy;function ac(e){if(dy===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);dy=t&&t[1]||""}return`
2
+ `+dy+e}var hy=!1;function py(e,t){if(!e||hy)return"";hy=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
3
3
  `),o=n.stack.split(`
4
4
  `),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var u=`
5
- `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{by=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?mc(e):""}function bF(e){switch(e.tag){case 5:return mc(e.type);case 16:return mc("Lazy");case 13:return mc("Suspense");case 19:return mc("SuspenseList");case 0:case 2:case 15:return e=Ey(e.type,!1),e;case 11:return e=Ey(e.type.render,!1),e;case 1:return e=Ey(e.type,!0),e;default:return""}}function qy(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pa:return"Fragment";case Ta:return"Portal";case zy:return"Profiler";case F1:return"StrictMode";case Hy:return"Suspense";case Ky:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rS:return(e.displayName||"Context")+".Consumer";case tS:return(e._context.displayName||"Context")+".Provider";case $1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U1:return t=e.displayName||null,t!==null?t:qy(e.type)||"Memo";case Ji:t=e._payload,e=e._init;try{return qy(e(t))}catch(r){}}return null}function EF(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qy(t);case 8:return t===F1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _F(e){var t=iS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bd(e){e._valueTracker||(e._valueTracker=_F(e))}function oS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=iS(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function mh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Wy(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function X_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=fo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sS(e,t){t=t.checked,t!=null&&L1(e,"checked",t,!1)}function Gy(e,t){sS(e,t);var r=fo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yy(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yy(e,t.type,fo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function J_(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Yy(e,t,r){(t!=="number"||mh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var gc=Array.isArray;function $a(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+fo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Z_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(oe(92));if(gc(r)){if(1<r.length)throw Error(oe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fo(r)}}function aS(e,t){var r=fo(t.value),n=fo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Q_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function uS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?uS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var jd,lS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(jd=jd||document.createElement("div"),jd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=jd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ic(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var wc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},SF=["Webkit","ms","Moz","O"];Object.keys(wc).forEach(function(e){SF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wc[t]=wc[e]})});function cS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||wc.hasOwnProperty(e)&&wc[e]?(""+t).trim():t+"px"}function fS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=cS(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var CF=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Zy(e,t){if(t){if(CF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function Qy(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e1=null;function V1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var t1=null,Ua=null,Va=null;function e3(e){if(e=Wc(e)){if(typeof t1!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=zh(t),t1(e.stateNode,e.type,t))}}function dS(e){Ua?Va?Va.push(e):Va=[e]:Ua=e}function hS(){if(Ua){var e=Ua,t=Va;if(Va=Ua=null,e3(e),t)for(e=0;e<t.length;e++)e3(t[e])}}function pS(e,t){return e(t)}function mS(){}var _y=!1;function gS(e,t,r){if(_y)return e(t,r);_y=!0;try{return pS(e,t,r)}finally{_y=!1,(Ua!==null||Va!==null)&&(mS(),hS())}}function Oc(e,t){var r=e.stateNode;if(r===null)return null;var n=zh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(oe(231,t,typeof r));return r}var r1=!1;if(gi)try{Sa={},Object.defineProperty(Sa,"passive",{get:function(){r1=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch(e){r1=!1}var Sa;function TF(e,t,r,n,i,o,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(p){this.onError(p)}}var xc=!1,gh=null,yh=!1,n1=null,PF={onError:function(e){xc=!0,gh=e}};function DF(e,t,r,n,i,o,s,a,u){xc=!1,gh=null,TF.apply(PF,arguments)}function IF(e,t,r,n,i,o,s,a,u){if(DF.apply(this,arguments),xc){if(xc){var l=gh;xc=!1,gh=null}else throw Error(oe(198));yh||(yh=!0,n1=l)}}function Is(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function yS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function t3(e){if(Is(e)!==e)throw Error(oe(188))}function OF(e){var t=e.alternate;if(!t){if(t=Is(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return t3(i),e;if(o===n)return t3(i),t;o=o.sibling}throw Error(oe(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(oe(189))}}if(r.alternate!==n)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?e:t}function vS(e){return e=OF(e),e!==null?wS(e):null}function wS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wS(e);if(t!==null)return t;e=e.sibling}return null}var xS=Qr.unstable_scheduleCallback,r3=Qr.unstable_cancelCallback,AF=Qr.unstable_shouldYield,RF=Qr.unstable_requestPaint,kt=Qr.unstable_now,NF=Qr.unstable_getCurrentPriorityLevel,B1=Qr.unstable_ImmediatePriority,bS=Qr.unstable_UserBlockingPriority,vh=Qr.unstable_NormalPriority,MF=Qr.unstable_LowPriority,ES=Qr.unstable_IdlePriority,Uh=null,Xn=null;function kF(e){if(Xn&&typeof Xn.onCommitFiberRoot=="function")try{Xn.onCommitFiberRoot(Uh,e,void 0,(e.current.flags&128)===128)}catch(t){}}var kn=Math.clz32?Math.clz32:$F,LF=Math.log,FF=Math.LN2;function $F(e){return e>>>=0,e===0?32:31-(LF(e)/FF|0)|0}var zd=64,Hd=4194304;function yc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function wh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=yc(a):(o&=s,o!==0&&(n=yc(o)))}else s=r&~i,s!==0?n=yc(s):o!==0&&(n=yc(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-kn(t),i=1<<r,n|=e[r],t&=~i;return n}function UF(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function VF(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-kn(o),a=1<<s,u=i[s];u===-1?((a&r)===0||(a&n)!==0)&&(i[s]=UF(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function i1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _S(){var e=zd;return zd<<=1,(zd&4194240)===0&&(zd=64),e}function Sy(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Kc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kn(t),e[t]=r}function BF(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-kn(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function j1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-kn(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Oe=0;function SS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var CS,z1,TS,PS,DS,o1=!1,Kd=[],no=null,io=null,oo=null,Ac=new Map,Rc=new Map,Qi=[],jF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function n3(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":oo=null;break;case"pointerover":case"pointerout":Ac.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rc.delete(t.pointerId)}}function uc(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Wc(t),t!==null&&z1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zF(e,t,r,n,i){switch(t){case"focusin":return no=uc(no,e,t,r,n,i),!0;case"dragenter":return io=uc(io,e,t,r,n,i),!0;case"mouseover":return oo=uc(oo,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Ac.set(o,uc(Ac.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Rc.set(o,uc(Rc.get(o)||null,e,t,r,n,i)),!0}return!1}function IS(e){var t=vs(e.target);if(t!==null){var r=Is(t);if(r!==null){if(t=r.tag,t===13){if(t=yS(r),t!==null){e.blockedOn=t,DS(e.priority,function(){TS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=s1(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);e1=n,r.target.dispatchEvent(n),e1=null}else return t=Wc(r),t!==null&&z1(t),e.blockedOn=r,!1;t.shift()}return!0}function i3(e,t,r){oh(e)&&r.delete(t)}function HF(){o1=!1,no!==null&&oh(no)&&(no=null),io!==null&&oh(io)&&(io=null),oo!==null&&oh(oo)&&(oo=null),Ac.forEach(i3),Rc.forEach(i3)}function lc(e,t){e.blockedOn===t&&(e.blockedOn=null,o1||(o1=!0,Qr.unstable_scheduleCallback(Qr.unstable_NormalPriority,HF)))}function Nc(e){function t(i){return lc(i,e)}if(0<Kd.length){lc(Kd[0],e);for(var r=1;r<Kd.length;r++){var n=Kd[r];n.blockedOn===e&&(n.blockedOn=null)}}for(no!==null&&lc(no,e),io!==null&&lc(io,e),oo!==null&&lc(oo,e),Ac.forEach(t),Rc.forEach(t),r=0;r<Qi.length;r++)n=Qi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Qi.length&&(r=Qi[0],r.blockedOn===null);)IS(r),r.blockedOn===null&&Qi.shift()}var Ba=xi.ReactCurrentBatchConfig,xh=!0;function KF(e,t,r,n){var i=Oe,o=Ba.transition;Ba.transition=null;try{Oe=1,H1(e,t,r,n)}finally{Oe=i,Ba.transition=o}}function qF(e,t,r,n){var i=Oe,o=Ba.transition;Ba.transition=null;try{Oe=4,H1(e,t,r,n)}finally{Oe=i,Ba.transition=o}}function H1(e,t,r,n){if(xh){var i=s1(e,t,r,n);if(i===null)Ay(e,t,n,bh,r),n3(e,n);else if(zF(i,e,t,r,n))n.stopPropagation();else if(n3(e,n),t&4&&-1<jF.indexOf(e)){for(;i!==null;){var o=Wc(i);if(o!==null&&CS(o),o=s1(e,t,r,n),o===null&&Ay(e,t,n,bh,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else Ay(e,t,n,null,r)}}var bh=null;function s1(e,t,r,n){if(bh=null,e=V1(n),e=vs(e),e!==null)if(t=Is(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return bh=e,null}function OS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(NF()){case B1:return 1;case bS:return 4;case vh:case MF:return 16;case ES:return 536870912;default:return 16}default:return 16}}var to=null,K1=null,sh=null;function AS(){if(sh)return sh;var e,t=K1,r=t.length,n,i="value"in to?to.value:to.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return sh=i.slice(e,1<n?1-n:void 0)}function ah(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qd(){return!0}function o3(){return!1}function en(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qd:o3,this.isPropagationStopped=o3,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=qd)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=qd)},persist:function(){},isPersistent:qd}),t}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},q1=en(Ja),qc=Dt({},Ja,{view:0,detail:0}),WF=en(qc),Cy,Ty,cc,Vh=Dt({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cc&&(cc&&e.type==="mousemove"?(Cy=e.screenX-cc.screenX,Ty=e.screenY-cc.screenY):Ty=Cy=0,cc=e),Cy)},movementY:function(e){return"movementY"in e?e.movementY:Ty}}),s3=en(Vh),GF=Dt({},Vh,{dataTransfer:0}),YF=en(GF),XF=Dt({},qc,{relatedTarget:0}),Py=en(XF),JF=Dt({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),ZF=en(JF),QF=Dt({},Ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e$=en(QF),t$=Dt({},Ja,{data:0}),a3=en(t$),r$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},i$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i$[e])?!!t[e]:!1}function W1(){return o$}var s$=Dt({},qc,{key:function(e){if(e.key){var t=r$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ah(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W1,charCode:function(e){return e.type==="keypress"?ah(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ah(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a$=en(s$),u$=Dt({},Vh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),u3=en(u$),l$=Dt({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W1}),c$=en(l$),f$=Dt({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),d$=en(f$),h$=Dt({},Vh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),p$=en(h$),m$=[9,13,27,32],G1=gi&&"CompositionEvent"in window,bc=null;gi&&"documentMode"in document&&(bc=document.documentMode);var g$=gi&&"TextEvent"in window&&!bc,RS=gi&&(!G1||bc&&8<bc&&11>=bc),l3=String.fromCharCode(32),c3=!1;function NS(e,t){switch(e){case"keyup":return m$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Da=!1;function y$(e,t){switch(e){case"compositionend":return MS(t);case"keypress":return t.which!==32?null:(c3=!0,l3);case"textInput":return e=t.data,e===l3&&c3?null:e;default:return null}}function v$(e,t){if(Da)return e==="compositionend"||!G1&&NS(e,t)?(e=AS(),sh=K1=to=null,Da=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return RS&&t.locale!=="ko"?null:t.data;default:return null}}var w$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function f3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w$[e.type]:t==="textarea"}function kS(e,t,r,n){dS(n),t=Eh(t,"onChange"),0<t.length&&(r=new q1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ec=null,Mc=null;function x$(e){qS(e,0)}function Bh(e){var t=Aa(e);if(oS(t))return e}function b$(e,t){if(e==="change")return t}var LS=!1;gi&&(gi?(Gd="oninput"in document,Gd||(Dy=document.createElement("div"),Dy.setAttribute("oninput","return;"),Gd=typeof Dy.oninput=="function"),Wd=Gd):Wd=!1,LS=Wd&&(!document.documentMode||9<document.documentMode));var Wd,Gd,Dy;function d3(){Ec&&(Ec.detachEvent("onpropertychange",FS),Mc=Ec=null)}function FS(e){if(e.propertyName==="value"&&Bh(Mc)){var t=[];kS(t,Mc,e,V1(e)),gS(x$,t)}}function E$(e,t,r){e==="focusin"?(d3(),Ec=t,Mc=r,Ec.attachEvent("onpropertychange",FS)):e==="focusout"&&d3()}function _$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bh(Mc)}function S$(e,t){if(e==="click")return Bh(t)}function C$(e,t){if(e==="input"||e==="change")return Bh(t)}function T$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fn=typeof Object.is=="function"?Object.is:T$;function kc(e,t){if(Fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!jy.call(t,i)||!Fn(e[i],t[i]))return!1}return!0}function h3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p3(e,t){var r=h3(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=h3(r)}}function $S(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$S(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function US(){for(var e=window,t=mh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=mh(e.document)}return t}function Y1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P$(e){var t=US(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&$S(r.ownerDocument.documentElement,r)){if(n!==null&&Y1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=p3(r,o);var s=p3(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var D$=gi&&"documentMode"in document&&11>=document.documentMode,Ia=null,a1=null,_c=null,u1=!1;function m3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;u1||Ia==null||Ia!==mh(n)||(n=Ia,"selectionStart"in n&&Y1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_c&&kc(_c,n)||(_c=n,n=Eh(a1,"onSelect"),0<n.length&&(t=new q1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ia)))}function Yd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Oa={animationend:Yd("Animation","AnimationEnd"),animationiteration:Yd("Animation","AnimationIteration"),animationstart:Yd("Animation","AnimationStart"),transitionend:Yd("Transition","TransitionEnd")},Iy={},VS={};gi&&(VS=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function jh(e){if(Iy[e])return Iy[e];if(!Oa[e])return e;var t=Oa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in VS)return Iy[e]=t[r];return e}var BS=jh("animationend"),jS=jh("animationiteration"),zS=jh("animationstart"),HS=jh("transitionend"),KS=new Map,g3="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function po(e,t){KS.set(e,t),Ds(t,[e])}for(Xd=0;Xd<g3.length;Xd++)Jd=g3[Xd],y3=Jd.toLowerCase(),v3=Jd[0].toUpperCase()+Jd.slice(1),po(y3,"on"+v3);var Jd,y3,v3,Xd;po(BS,"onAnimationEnd");po(jS,"onAnimationIteration");po(zS,"onAnimationStart");po("dblclick","onDoubleClick");po("focusin","onFocus");po("focusout","onBlur");po(HS,"onTransitionEnd");Ha("onMouseEnter",["mouseout","mouseover"]);Ha("onMouseLeave",["mouseout","mouseover"]);Ha("onPointerEnter",["pointerout","pointerover"]);Ha("onPointerLeave",["pointerout","pointerover"]);Ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),I$=new Set("cancel close invalid load scroll toggle".split(" ").concat(vc));function w3(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,IF(n,t,void 0,e),e.currentTarget=null}function qS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;w3(i,a,l),o=u}else for(s=0;s<n.length;s++){if(a=n[s],u=a.instance,l=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;w3(i,a,l),o=u}}}if(yh)throw e=n1,yh=!1,n1=null,e}function wt(e,t){var r=t[h1];r===void 0&&(r=t[h1]=new Set);var n=e+"__bubble";r.has(n)||(WS(t,e,2,!1),r.add(n))}function Oy(e,t,r){var n=0;t&&(n|=4),WS(r,e,n,t)}var Zd="_reactListening"+Math.random().toString(36).slice(2);function Lc(e){if(!e[Zd]){e[Zd]=!0,eS.forEach(function(r){r!=="selectionchange"&&(I$.has(r)||Oy(r,!1,e),Oy(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zd]||(t[Zd]=!0,Oy("selectionchange",!1,t))}}function WS(e,t,r,n){switch(OS(t)){case 1:var i=KF;break;case 4:i=qF;break;default:i=H1}r=i.bind(null,t,r,e),i=void 0,!r1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Ay(e,t,r,n,i){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;a!==null;){if(s=vs(a),s===null)return;if(u=s.tag,u===5||u===6){n=o=s;continue e}a=a.parentNode}}n=n.return}gS(function(){var l=o,p=V1(r),h=[];e:{var y=KS.get(e);if(y!==void 0){var v=q1,w=e;switch(e){case"keypress":if(ah(r)===0)break e;case"keydown":case"keyup":v=a$;break;case"focusin":w="focus",v=Py;break;case"focusout":w="blur",v=Py;break;case"beforeblur":case"afterblur":v=Py;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=s3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=YF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=c$;break;case BS:case jS:case zS:v=ZF;break;case HS:v=d$;break;case"scroll":v=WF;break;case"wheel":v=p$;break;case"copy":case"cut":case"paste":v=e$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=u3}var _=(t&4)!==0,D=!_&&e==="scroll",C=_?y!==null?y+"Capture":null:y;_=[];for(var I=l,P;I!==null;){P=I;var R=P.stateNode;if(P.tag===5&&R!==null&&(P=R,C!==null&&(R=Oc(I,C),R!=null&&_.push(Fc(I,R,P)))),D)break;I=I.return}0<_.length&&(y=new v(y,w,null,r,p),h.push({event:y,listeners:_}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",y&&r!==e1&&(w=r.relatedTarget||r.fromElement)&&(vs(w)||w[yi]))break e;if((v||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,v?(w=r.relatedTarget||r.toElement,v=l,w=w?vs(w):null,w!==null&&(D=Is(w),w!==D||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=l),v!==w)){if(_=s3,R="onMouseLeave",C="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(_=u3,R="onPointerLeave",C="onPointerEnter",I="pointer"),D=v==null?y:Aa(v),P=w==null?y:Aa(w),y=new _(R,I+"leave",v,r,p),y.target=D,y.relatedTarget=P,R=null,vs(p)===l&&(_=new _(C,I+"enter",w,r,p),_.target=P,_.relatedTarget=D,R=_),D=R,v&&w)t:{for(_=v,C=w,I=0,P=_;P;P=Ca(P))I++;for(P=0,R=C;R;R=Ca(R))P++;for(;0<I-P;)_=Ca(_),I--;for(;0<P-I;)C=Ca(C),P--;for(;I--;){if(_===C||C!==null&&_===C.alternate)break t;_=Ca(_),C=Ca(C)}_=null}else _=null;v!==null&&x3(h,y,v,_,!1),w!==null&&D!==null&&x3(h,D,w,_,!0)}}e:{if(y=l?Aa(l):window,v=y.nodeName&&y.nodeName.toLowerCase(),v==="select"||v==="input"&&y.type==="file")var U=b$;else if(f3(y))if(LS)U=C$;else{U=_$;var j=E$}else(v=y.nodeName)&&v.toLowerCase()==="input"&&(y.type==="checkbox"||y.type==="radio")&&(U=S$);if(U&&(U=U(e,l))){kS(h,U,r,p);break e}j&&j(e,y,l),e==="focusout"&&(j=y._wrapperState)&&j.controlled&&y.type==="number"&&Yy(y,"number",y.value)}switch(j=l?Aa(l):window,e){case"focusin":(f3(j)||j.contentEditable==="true")&&(Ia=j,a1=l,_c=null);break;case"focusout":_c=a1=Ia=null;break;case"mousedown":u1=!0;break;case"contextmenu":case"mouseup":case"dragend":u1=!1,m3(h,r,p);break;case"selectionchange":if(D$)break;case"keydown":case"keyup":m3(h,r,p)}var F;if(G1)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Da?NS(e,r)&&($="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&($="onCompositionStart");$&&(RS&&r.locale!=="ko"&&(Da||$!=="onCompositionStart"?$==="onCompositionEnd"&&Da&&(F=AS()):(to=p,K1="value"in to?to.value:to.textContent,Da=!0)),j=Eh(l,$),0<j.length&&($=new a3($,e,null,r,p),h.push({event:$,listeners:j}),F?$.data=F:(F=MS(r),F!==null&&($.data=F)))),(F=g$?y$(e,r):v$(e,r))&&(l=Eh(l,"onBeforeInput"),0<l.length&&(p=new a3("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=F))}qS(h,t)})}function Fc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Eh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Oc(e,r),o!=null&&n.unshift(Fc(e,o,i)),o=Oc(e,t),o!=null&&n.push(Fc(e,o,i))),e=e.return}return n}function Ca(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function x3(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=Oc(r,o),u!=null&&s.unshift(Fc(r,u,a))):i||(u=Oc(r,o),u!=null&&s.push(Fc(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var O$=/\r\n?/g,A$=/\u0000|\uFFFD/g;function b3(e){return(typeof e=="string"?e:""+e).replace(O$,`
6
- `).replace(A$,"")}function Qd(e,t,r){if(t=b3(t),b3(e)!==t&&r)throw Error(oe(425))}function _h(){}var l1=null,c1=null;function f1(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var d1=typeof setTimeout=="function"?setTimeout:void 0,R$=typeof clearTimeout=="function"?clearTimeout:void 0,E3=typeof Promise=="function"?Promise:void 0,N$=typeof queueMicrotask=="function"?queueMicrotask:typeof E3<"u"?function(e){return E3.resolve(null).then(e).catch(M$)}:d1;function M$(e){setTimeout(function(){throw e})}function Ry(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Nc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Nc(t)}function so(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Za=Math.random().toString(36).slice(2),Yn="__reactFiber$"+Za,$c="__reactProps$"+Za,yi="__reactContainer$"+Za,h1="__reactEvents$"+Za,k$="__reactListeners$"+Za,L$="__reactHandles$"+Za;function vs(e){var t=e[Yn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yi]||r[Yn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=_3(e);e!==null;){if(r=e[Yn])return r;e=_3(e)}return t}e=r,r=e.parentNode}return null}function Wc(e){return e=e[Yn]||e[yi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Aa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function zh(e){return e[$c]||null}var p1=[],Ra=-1;function mo(e){return{current:e}}function xt(e){0>Ra||(e.current=p1[Ra],p1[Ra]=null,Ra--)}function Le(e,t){Ra++,p1[Ra]=e.current,e.current=t}var ho={},gr=mo(ho),Lr=mo(!1),_s=ho;function Ka(e,t){var r=e.type.contextTypes;if(!r)return ho;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fr(e){return e=e.childContextTypes,e!=null}function Sh(){xt(Lr),xt(gr)}function S3(e,t,r){if(gr.current!==ho)throw Error(oe(168));Le(gr,t),Le(Lr,r)}function GS(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(oe(108,EF(e)||"Unknown",i));return Dt({},r,n)}function Ch(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,_s=gr.current,Le(gr,e),Le(Lr,Lr.current),!0}function C3(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=GS(e,t,_s),n.__reactInternalMemoizedMergedChildContext=e,xt(Lr),xt(gr),Le(gr,e)):xt(Lr),Le(Lr,r)}var di=null,Hh=!1,Ny=!1;function YS(e){di===null?di=[e]:di.push(e)}function F$(e){Hh=!0,YS(e)}function go(){if(!Ny&&di!==null){Ny=!0;var e=0,t=Oe;try{var r=di;for(Oe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}di=null,Hh=!1}catch(i){throw di!==null&&(di=di.slice(e+1)),xS(B1,go),i}finally{Oe=t,Ny=!1}}return null}var Na=[],Ma=0,Th=null,Ph=0,fn=[],dn=0,Ss=null,hi=1,pi="";function gs(e,t){Na[Ma++]=Ph,Na[Ma++]=Th,Th=e,Ph=t}function XS(e,t,r){fn[dn++]=hi,fn[dn++]=pi,fn[dn++]=Ss,Ss=e;var n=hi;e=pi;var i=32-kn(n)-1;n&=~(1<<i),r+=1;var o=32-kn(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,hi=1<<32-kn(t)+i|r<<i|n,pi=o+e}else hi=1<<o|r<<i|n,pi=e}function X1(e){e.return!==null&&(gs(e,1),XS(e,1,0))}function J1(e){for(;e===Th;)Th=Na[--Ma],Na[Ma]=null,Ph=Na[--Ma],Na[Ma]=null;for(;e===Ss;)Ss=fn[--dn],fn[dn]=null,pi=fn[--dn],fn[dn]=null,hi=fn[--dn],fn[dn]=null}var Zr=null,Jr=null,St=!1,Mn=null;function JS(e,t){var r=hn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function T3(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zr=e,Jr=so(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zr=e,Jr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ss!==null?{id:hi,overflow:pi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=hn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Zr=e,Jr=null,!0):!1;default:return!1}}function m1(e){return(e.mode&1)!==0&&(e.flags&128)===0}function g1(e){if(St){var t=Jr;if(t){var r=t;if(!T3(e,t)){if(m1(e))throw Error(oe(418));t=so(r.nextSibling);var n=Zr;t&&T3(e,t)?JS(n,r):(e.flags=e.flags&-4097|2,St=!1,Zr=e)}}else{if(m1(e))throw Error(oe(418));e.flags=e.flags&-4097|2,St=!1,Zr=e}}}function P3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Zr=e}function eh(e){if(e!==Zr)return!1;if(!St)return P3(e),St=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!f1(e.type,e.memoizedProps)),t&&(t=Jr)){if(m1(e))throw ZS(),Error(oe(418));for(;t;)JS(e,t),t=so(t.nextSibling)}if(P3(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Jr=so(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Jr=null}}else Jr=Zr?so(e.stateNode.nextSibling):null;return!0}function ZS(){for(var e=Jr;e;)e=so(e.nextSibling)}function qa(){Jr=Zr=null,St=!1}function Z1(e){Mn===null?Mn=[e]:Mn.push(e)}var $$=xi.ReactCurrentBatchConfig;function Rn(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Dh=mo(null),Ih=null,ka=null,Q1=null;function ev(){Q1=ka=Ih=null}function tv(e){var t=Dh.current;xt(Dh),e._currentValue=t}function y1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ja(e,t){Ih=e,Q1=ka=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(kr=!0),e.firstContext=null)}function mn(e){var t=e._currentValue;if(Q1!==e)if(e={context:e,memoizedValue:t,next:null},ka===null){if(Ih===null)throw Error(oe(308));ka=e,Ih.dependencies={lanes:0,firstContext:e}}else ka=ka.next=e;return t}var ws=null;function rv(e){ws===null?ws=[e]:ws.push(e)}function QS(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,rv(t)):(r.next=i.next,i.next=r),t.interleaved=r,vi(e,n)}function vi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zi=!1;function nv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e6(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,vi(e,r)}return i=n.interleaved,i===null?(t.next=t,rv(n)):(t.next=i.next,i.next=t),n.interleaved=t,vi(e,r)}function uh(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,j1(e,r)}}function D3(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Oh(e,t,r,n){var i=e.updateQueue;Zi=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?o=l:s.next=l,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,p=l=u=null,a=o;do{var y=a.lane,v=a.eventTime;if((n&y)===y){p!==null&&(p=p.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,_=a;switch(y=t,v=r,_.tag){case 1:if(w=_.payload,typeof w=="function"){h=w.call(v,h,y);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,y=typeof w=="function"?w.call(v,h,y):w,y==null)break e;h=Dt({},h,y);break e;case 2:Zi=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else v={eventTime:v,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=v,u=h):p=p.next=v,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(1);if(p===null&&(u=h),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ts|=s,e.lanes=s,e.memoizedState=h}}function I3(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(oe(191,i));i.call(n)}}}var t6=new Q3.Component().refs;function v1(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Kh={isMounted:function(e){return(e=e._reactInternals)?Is(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=lo(e),o=mi(n,i);o.payload=t,r!=null&&(o.callback=r),t=ao(e,o,i),t!==null&&(Ln(t,e,i,n),uh(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=lo(e),o=mi(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=ao(e,o,i),t!==null&&(Ln(t,e,i,n),uh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Cr(),n=lo(e),i=mi(r,n);i.tag=2,t!=null&&(i.callback=t),t=ao(e,i,n),t!==null&&(Ln(t,e,n,r),uh(t,e,n))}};function O3(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!kc(r,n)||!kc(i,o):!0}function r6(e,t,r){var n=!1,i=ho,o=t.contextType;return typeof o=="object"&&o!==null?o=mn(o):(i=Fr(t)?_s:gr.current,n=t.contextTypes,o=(n=n!=null)?Ka(e,i):ho),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kh,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function A3(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Kh.enqueueReplaceState(t,t.state,null)}function w1(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=t6,nv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=mn(o):(o=Fr(t)?_s:gr.current,i.context=Ka(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(v1(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kh.enqueueReplaceState(i,i.state,null),Oh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(oe(309));var n=r.stateNode}if(!n)throw Error(oe(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===t6&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(oe(284));if(!r._owner)throw Error(oe(290,e))}return e}function th(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function R3(e){var t=e._init;return t(e._payload)}function n6(e){function t(C,I){if(e){var P=C.deletions;P===null?(C.deletions=[I],C.flags|=16):P.push(I)}}function r(C,I){if(!e)return null;for(;I!==null;)t(C,I),I=I.sibling;return null}function n(C,I){for(C=new Map;I!==null;)I.key!==null?C.set(I.key,I):C.set(I.index,I),I=I.sibling;return C}function i(C,I){return C=co(C,I),C.index=0,C.sibling=null,C}function o(C,I,P){return C.index=P,e?(P=C.alternate,P!==null?(P=P.index,P<I?(C.flags|=2,I):P):(C.flags|=2,I)):(C.flags|=1048576,I)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,I,P,R){return I===null||I.tag!==6?(I=Vy(P,C.mode,R),I.return=C,I):(I=i(I,P),I.return=C,I)}function u(C,I,P,R){var U=P.type;return U===Pa?p(C,I,P.props.children,R,P.key):I!==null&&(I.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Ji&&R3(U)===I.type)?(R=i(I,P.props),R.ref=fc(C,I,P),R.return=C,R):(R=ph(P.type,P.key,P.props,null,C.mode,R),R.ref=fc(C,I,P),R.return=C,R)}function l(C,I,P,R){return I===null||I.tag!==4||I.stateNode.containerInfo!==P.containerInfo||I.stateNode.implementation!==P.implementation?(I=By(P,C.mode,R),I.return=C,I):(I=i(I,P.children||[]),I.return=C,I)}function p(C,I,P,R,U){return I===null||I.tag!==7?(I=Es(P,C.mode,R,U),I.return=C,I):(I=i(I,P),I.return=C,I)}function h(C,I,P){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Vy(""+I,C.mode,P),I.return=C,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Vd:return P=ph(I.type,I.key,I.props,null,C.mode,P),P.ref=fc(C,null,I),P.return=C,P;case Ta:return I=By(I,C.mode,P),I.return=C,I;case Ji:var R=I._init;return h(C,R(I._payload),P)}if(gc(I)||ac(I))return I=Es(I,C.mode,P,null),I.return=C,I;th(C,I)}return null}function y(C,I,P,R){var U=I!==null?I.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return U!==null?null:a(C,I,""+P,R);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Vd:return P.key===U?u(C,I,P,R):null;case Ta:return P.key===U?l(C,I,P,R):null;case Ji:return U=P._init,y(C,I,U(P._payload),R)}if(gc(P)||ac(P))return U!==null?null:p(C,I,P,R,null);th(C,P)}return null}function v(C,I,P,R,U){if(typeof R=="string"&&R!==""||typeof R=="number")return C=C.get(P)||null,a(I,C,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Vd:return C=C.get(R.key===null?P:R.key)||null,u(I,C,R,U);case Ta:return C=C.get(R.key===null?P:R.key)||null,l(I,C,R,U);case Ji:var j=R._init;return v(C,I,P,j(R._payload),U)}if(gc(R)||ac(R))return C=C.get(P)||null,p(I,C,R,U,null);th(I,R)}return null}function w(C,I,P,R){for(var U=null,j=null,F=I,$=I=0,G=null;F!==null&&$<P.length;$++){F.index>$?(G=F,F=null):G=F.sibling;var X=y(C,F,P[$],R);if(X===null){F===null&&(F=G);break}e&&F&&X.alternate===null&&t(C,F),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X,F=G}if($===P.length)return r(C,F),St&&gs(C,$),U;if(F===null){for(;$<P.length;$++)F=h(C,P[$],R),F!==null&&(I=o(F,I,$),j===null?U=F:j.sibling=F,j=F);return St&&gs(C,$),U}for(F=n(C,F);$<P.length;$++)G=v(F,C,$,P[$],R),G!==null&&(e&&G.alternate!==null&&F.delete(G.key===null?$:G.key),I=o(G,I,$),j===null?U=G:j.sibling=G,j=G);return e&&F.forEach(function(W){return t(C,W)}),St&&gs(C,$),U}function _(C,I,P,R){var U=ac(P);if(typeof U!="function")throw Error(oe(150));if(P=U.call(P),P==null)throw Error(oe(151));for(var j=U=null,F=I,$=I=0,G=null,X=P.next();F!==null&&!X.done;$++,X=P.next()){F.index>$?(G=F,F=null):G=F.sibling;var W=y(C,F,X.value,R);if(W===null){F===null&&(F=G);break}e&&F&&W.alternate===null&&t(C,F),I=o(W,I,$),j===null?U=W:j.sibling=W,j=W,F=G}if(X.done)return r(C,F),St&&gs(C,$),U;if(F===null){for(;!X.done;$++,X=P.next())X=h(C,X.value,R),X!==null&&(I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return St&&gs(C,$),U}for(F=n(C,F);!X.done;$++,X=P.next())X=v(F,C,$,X.value,R),X!==null&&(e&&X.alternate!==null&&F.delete(X.key===null?$:X.key),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return e&&F.forEach(function(J){return t(C,J)}),St&&gs(C,$),U}function D(C,I,P,R){if(typeof P=="object"&&P!==null&&P.type===Pa&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Vd:e:{for(var U=P.key,j=I;j!==null;){if(j.key===U){if(U=P.type,U===Pa){if(j.tag===7){r(C,j.sibling),I=i(j,P.props.children),I.return=C,C=I;break e}}else if(j.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Ji&&R3(U)===j.type){r(C,j.sibling),I=i(j,P.props),I.ref=fc(C,j,P),I.return=C,C=I;break e}r(C,j);break}else t(C,j);j=j.sibling}P.type===Pa?(I=Es(P.props.children,C.mode,R,P.key),I.return=C,C=I):(R=ph(P.type,P.key,P.props,null,C.mode,R),R.ref=fc(C,I,P),R.return=C,C=R)}return s(C);case Ta:e:{for(j=P.key;I!==null;){if(I.key===j)if(I.tag===4&&I.stateNode.containerInfo===P.containerInfo&&I.stateNode.implementation===P.implementation){r(C,I.sibling),I=i(I,P.children||[]),I.return=C,C=I;break e}else{r(C,I);break}else t(C,I);I=I.sibling}I=By(P,C.mode,R),I.return=C,C=I}return s(C);case Ji:return j=P._init,D(C,I,j(P._payload),R)}if(gc(P))return w(C,I,P,R);if(ac(P))return _(C,I,P,R);th(C,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,I!==null&&I.tag===6?(r(C,I.sibling),I=i(I,P),I.return=C,C=I):(r(C,I),I=Vy(P,C.mode,R),I.return=C,C=I),s(C)):r(C,I)}return D}var Wa=n6(!0),i6=n6(!1),Gc={},Jn=mo(Gc),Uc=mo(Gc),Vc=mo(Gc);function xs(e){if(e===Gc)throw Error(oe(174));return e}function iv(e,t){switch(Le(Vc,t),Le(Uc,e),Le(Jn,Gc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jy(t,e)}xt(Jn),Le(Jn,t)}function Ga(){xt(Jn),xt(Uc),xt(Vc)}function o6(e){xs(Vc.current);var t=xs(Jn.current),r=Jy(t,e.type);t!==r&&(Le(Uc,e),Le(Jn,r))}function ov(e){Uc.current===e&&(xt(Jn),xt(Uc))}var Tt=mo(0);function Ah(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var My=[];function sv(){for(var e=0;e<My.length;e++)My[e]._workInProgressVersionPrimary=null;My.length=0}var lh=xi.ReactCurrentDispatcher,ky=xi.ReactCurrentBatchConfig,Cs=0,Pt=null,qt=null,Zt=null,Rh=!1,Sc=!1,Bc=0,U$=0;function hr(){throw Error(oe(321))}function av(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Fn(e[r],t[r]))return!1;return!0}function uv(e,t,r,n,i,o){if(Cs=o,Pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lh.current=e===null||e.memoizedState===null?z$:H$,e=r(n,i),Sc){o=0;do{if(Sc=!1,Bc=0,25<=o)throw Error(oe(301));o+=1,Zt=qt=null,t.updateQueue=null,lh.current=K$,e=r(n,i)}while(Sc)}if(lh.current=Nh,t=qt!==null&&qt.next!==null,Cs=0,Zt=qt=Pt=null,Rh=!1,t)throw Error(oe(300));return e}function lv(){var e=Bc!==0;return Bc=0,e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?Pt.memoizedState=Zt=e:Zt=Zt.next=e,Zt}function gn(){if(qt===null){var e=Pt.alternate;e=e!==null?e.memoizedState:null}else e=qt.next;var t=Zt===null?Pt.memoizedState:Zt.next;if(t!==null)Zt=t,qt=e;else{if(e===null)throw Error(oe(310));qt=e,e={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Zt===null?Pt.memoizedState=Zt=e:Zt=Zt.next=e}return Zt}function jc(e,t){return typeof t=="function"?t(e):t}function Ly(e){var t=gn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=qt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,u=null,l=o;do{var p=l.lane;if((Cs&p)===p)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var h={lane:p,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=h,s=n):u=u.next=h,Pt.lanes|=p,Ts|=p}l=l.next}while(l!==null&&l!==o);u===null?s=n:u.next=a,Fn(n,t.memoizedState)||(kr=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,Pt.lanes|=o,Ts|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Fy(e){var t=gn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Fn(o,t.memoizedState)||(kr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function s6(){}function a6(e,t){var r=Pt,n=gn(),i=t(),o=!Fn(n.memoizedState,i);if(o&&(n.memoizedState=i,kr=!0),n=n.queue,cv(c6.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Zt!==null&&Zt.memoizedState.tag&1){if(r.flags|=2048,zc(9,l6.bind(null,r,n,i,t),void 0,null),Qt===null)throw Error(oe(349));(Cs&30)!==0||u6(r,t,i)}return i}function u6(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function l6(e,t,r,n){t.value=r,t.getSnapshot=n,f6(t)&&d6(e)}function c6(e,t,r){return r(function(){f6(t)&&d6(e)})}function f6(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Fn(e,r)}catch(n){return!0}}function d6(e){var t=vi(e,1);t!==null&&Ln(t,e,1,-1)}function N3(e){var t=Gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jc,lastRenderedState:e},t.queue=e,e=e.dispatch=j$.bind(null,Pt,e),[t.memoizedState,e]}function zc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function h6(){return gn().memoizedState}function ch(e,t,r,n){var i=Gn();Pt.flags|=e,i.memoizedState=zc(1|t,r,void 0,n===void 0?null:n)}function qh(e,t,r,n){var i=gn();n=n===void 0?null:n;var o=void 0;if(qt!==null){var s=qt.memoizedState;if(o=s.destroy,n!==null&&av(n,s.deps)){i.memoizedState=zc(t,r,o,n);return}}Pt.flags|=e,i.memoizedState=zc(1|t,r,o,n)}function M3(e,t){return ch(8390656,8,e,t)}function cv(e,t){return qh(2048,8,e,t)}function p6(e,t){return qh(4,2,e,t)}function m6(e,t){return qh(4,4,e,t)}function g6(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function y6(e,t,r){return r=r!=null?r.concat([e]):null,qh(4,4,g6.bind(null,t,e),r)}function fv(){}function v6(e,t){var r=gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&av(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function w6(e,t){var r=gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&av(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function x6(e,t,r){return(Cs&21)===0?(e.baseState&&(e.baseState=!1,kr=!0),e.memoizedState=r):(Fn(r,t)||(r=_S(),Pt.lanes|=r,Ts|=r,e.baseState=!0),t)}function V$(e,t){var r=Oe;Oe=r!==0&&4>r?r:4,e(!0);var n=ky.transition;ky.transition={};try{e(!1),t()}finally{Oe=r,ky.transition=n}}function b6(){return gn().memoizedState}function B$(e,t,r){var n=lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},E6(e))_6(t,r);else if(r=QS(e,t,r,n),r!==null){var i=Cr();Ln(r,e,n,i),S6(r,t,n)}}function j$(e,t,r){var n=lo(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(E6(e))_6(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,Fn(a,s)){var u=t.interleaved;u===null?(i.next=i,rv(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch(l){}finally{}r=QS(e,t,i,n),r!==null&&(i=Cr(),Ln(r,e,n,i),S6(r,t,n))}}function E6(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function _6(e,t){Sc=Rh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function S6(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,j1(e,r)}}var Nh={readContext:mn,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},z$={readContext:mn,useCallback:function(e,t){return Gn().memoizedState=[e,t===void 0?null:t],e},useContext:mn,useEffect:M3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ch(4194308,4,g6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var r=Gn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Gn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=B$.bind(null,Pt,e),[n.memoizedState,e]},useRef:function(e){var t=Gn();return e={current:e},t.memoizedState=e},useState:N3,useDebugValue:fv,useDeferredValue:function(e){return Gn().memoizedState=e},useTransition:function(){var e=N3(!1),t=e[0];return e=V$.bind(null,e[1]),Gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pt,i=Gn();if(St){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Qt===null)throw Error(oe(349));(Cs&30)!==0||u6(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,M3(c6.bind(null,n,o,e),[e]),n.flags|=2048,zc(9,l6.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Gn(),t=Qt.identifierPrefix;if(St){var r=pi,n=hi;r=(n&~(1<<32-kn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Bc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=U$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},H$={readContext:mn,useCallback:v6,useContext:mn,useEffect:cv,useImperativeHandle:y6,useInsertionEffect:p6,useLayoutEffect:m6,useMemo:w6,useReducer:Ly,useRef:h6,useState:function(){return Ly(jc)},useDebugValue:fv,useDeferredValue:function(e){var t=gn();return x6(t,qt.memoizedState,e)},useTransition:function(){var e=Ly(jc)[0],t=gn().memoizedState;return[e,t]},useMutableSource:s6,useSyncExternalStore:a6,useId:b6,unstable_isNewReconciler:!1},K$={readContext:mn,useCallback:v6,useContext:mn,useEffect:cv,useImperativeHandle:y6,useInsertionEffect:p6,useLayoutEffect:m6,useMemo:w6,useReducer:Fy,useRef:h6,useState:function(){return Fy(jc)},useDebugValue:fv,useDeferredValue:function(e){var t=gn();return qt===null?t.memoizedState=e:x6(t,qt.memoizedState,e)},useTransition:function(){var e=Fy(jc)[0],t=gn().memoizedState;return[e,t]},useMutableSource:s6,useSyncExternalStore:a6,useId:b6,unstable_isNewReconciler:!1};function Ya(e,t){try{var r="",n=t;do r+=bF(n),n=n.return;while(n);var i=r}catch(o){i=`
5
+ `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{hy=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ac(e):""}function HF(e){switch(e.tag){case 5:return ac(e.type);case 16:return ac("Lazy");case 13:return ac("Suspense");case 19:return ac("SuspenseList");case 0:case 2:case 15:return e=py(e.type,!1),e;case 11:return e=py(e.type.render,!1),e;case 1:return e=py(e.type,!0),e;default:return""}}function $y(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ba:return"Fragment";case xa:return"Portal";case ky:return"Profiler";case Iv:return"StrictMode";case Ly:return"Suspense";case Fy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case H3:return(e.displayName||"Context")+".Consumer";case z3:return(e._context.displayName||"Context")+".Provider";case Av:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ov:return t=e.displayName||null,t!==null?t:$y(e.type)||"Memo";case Hi:t=e._payload,e=e._init;try{return $y(e(t))}catch(r){}}return null}function KF(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $y(t);case 8:return t===Iv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qF(e){var t=q3(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Md(e){e._valueTracker||(e._valueTracker=qF(e))}function W3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=q3(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function uh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Uy(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function $2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=io(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function G3(e,t){t=t.checked,t!=null&&Dv(e,"checked",t,!1)}function Vy(e,t){G3(e,t);var r=io(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?By(e,t.type,r):t.hasOwnProperty("defaultValue")&&By(e,t.type,io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function U2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function By(e,t,r){(t!=="number"||uh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var uc=Array.isArray;function Ra(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+io(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(oe(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function V2(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(oe(92));if(uc(r)){if(1<r.length)throw Error(oe(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:io(r)}}function Y3(e,t){var r=io(t.value),n=io(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function B2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function X3(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?X3(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var kd,J3=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(kd=kd||document.createElement("div"),kd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WF=["Webkit","ms","Moz","O"];Object.keys(fc).forEach(function(e){WF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fc[t]=fc[e]})});function Q3(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fc.hasOwnProperty(e)&&fc[e]?(""+t).trim():t+"px"}function Z3(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Q3(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var GF=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hy(e,t){if(t){if(GF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function Ky(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qy=null;function Rv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wy=null,Na=null,Ma=null;function j2(e){if(e=Uc(e)){if(typeof Wy!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=Lh(t),Wy(e.stateNode,e.type,t))}}function eS(e){Na?Ma?Ma.push(e):Ma=[e]:Na=e}function tS(){if(Na){var e=Na,t=Ma;if(Ma=Na=null,j2(e),t)for(e=0;e<t.length;e++)j2(t[e])}}function rS(e,t){return e(t)}function nS(){}var my=!1;function iS(e,t,r){if(my)return e(t,r);my=!0;try{return rS(e,t,r)}finally{my=!1,(Na!==null||Ma!==null)&&(nS(),tS())}}function Ec(e,t){var r=e.stateNode;if(r===null)return null;var n=Lh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(oe(231,t,typeof r));return r}var Gy=!1;if(fi)try{va={},Object.defineProperty(va,"passive",{get:function(){Gy=!0}}),window.addEventListener("test",va,va),window.removeEventListener("test",va,va)}catch(e){Gy=!1}var va;function YF(e,t,r,n,i,o,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(p){this.onError(p)}}var dc=!1,lh=null,ch=!1,Yy=null,XF={onError:function(e){dc=!0,lh=e}};function JF(e,t,r,n,i,o,s,a,u){dc=!1,lh=null,YF.apply(XF,arguments)}function QF(e,t,r,n,i,o,s,a,u){if(JF.apply(this,arguments),dc){if(dc){var l=lh;dc=!1,lh=null}else throw Error(oe(198));ch||(ch=!0,Yy=l)}}function _s(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function oS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function z2(e){if(_s(e)!==e)throw Error(oe(188))}function ZF(e){var t=e.alternate;if(!t){if(t=_s(e),t===null)throw Error(oe(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return z2(i),e;if(o===n)return z2(i),t;o=o.sibling}throw Error(oe(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,n=o;break}if(a===n){s=!0,n=i,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,n=i;break}if(a===n){s=!0,n=o,r=i;break}a=a.sibling}if(!s)throw Error(oe(189))}}if(r.alternate!==n)throw Error(oe(190))}if(r.tag!==3)throw Error(oe(188));return r.stateNode.current===r?e:t}function sS(e){return e=ZF(e),e!==null?aS(e):null}function aS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aS(e);if(t!==null)return t;e=e.sibling}return null}var uS=Wr.unstable_scheduleCallback,H2=Wr.unstable_cancelCallback,e$=Wr.unstable_shouldYield,t$=Wr.unstable_requestPaint,kt=Wr.unstable_now,r$=Wr.unstable_getCurrentPriorityLevel,Nv=Wr.unstable_ImmediatePriority,lS=Wr.unstable_UserBlockingPriority,fh=Wr.unstable_NormalPriority,n$=Wr.unstable_LowPriority,cS=Wr.unstable_IdlePriority,Rh=null,Hn=null;function i$(e){if(Hn&&typeof Hn.onCommitFiberRoot=="function")try{Hn.onCommitFiberRoot(Rh,e,void 0,(e.current.flags&128)===128)}catch(t){}}var An=Math.clz32?Math.clz32:a$,o$=Math.log,s$=Math.LN2;function a$(e){return e>>>=0,e===0?32:31-(o$(e)/s$|0)|0}var Ld=64,Fd=4194304;function lc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dh(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~i;a!==0?n=lc(a):(o&=s,o!==0&&(n=lc(o)))}else s=r&~i,s!==0?n=lc(s):o!==0&&(n=lc(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&i)===0&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-An(t),i=1<<r,n|=e[r],t&=~i;return n}function u$(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function l$(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-An(o),a=1<<s,u=i[s];u===-1?((a&r)===0||(a&n)!==0)&&(i[s]=u$(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Xy(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fS(){var e=Ld;return Ld<<=1,(Ld&4194240)===0&&(Ld=64),e}function gy(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Fc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-An(t),e[t]=r}function c$(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-An(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function Mv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-An(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Ae=0;function dS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var hS,kv,pS,mS,gS,Jy=!1,$d=[],Xi=null,Ji=null,Qi=null,_c=new Map,Sc=new Map,qi=[],f$="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function K2(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":_c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sc.delete(t.pointerId)}}function ec(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Uc(t),t!==null&&kv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function d$(e,t,r,n,i){switch(t){case"focusin":return Xi=ec(Xi,e,t,r,n,i),!0;case"dragenter":return Ji=ec(Ji,e,t,r,n,i),!0;case"mouseover":return Qi=ec(Qi,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return _c.set(o,ec(_c.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Sc.set(o,ec(Sc.get(o)||null,e,t,r,n,i)),!0}return!1}function yS(e){var t=ds(e.target);if(t!==null){var r=_s(t);if(r!==null){if(t=r.tag,t===13){if(t=oS(r),t!==null){e.blockedOn=t,gS(e.priority,function(){pS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Qy(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);qy=n,r.target.dispatchEvent(n),qy=null}else return t=Uc(r),t!==null&&kv(t),e.blockedOn=r,!1;t.shift()}return!0}function q2(e,t,r){Qd(e)&&r.delete(t)}function h$(){Jy=!1,Xi!==null&&Qd(Xi)&&(Xi=null),Ji!==null&&Qd(Ji)&&(Ji=null),Qi!==null&&Qd(Qi)&&(Qi=null),_c.forEach(q2),Sc.forEach(q2)}function tc(e,t){e.blockedOn===t&&(e.blockedOn=null,Jy||(Jy=!0,Wr.unstable_scheduleCallback(Wr.unstable_NormalPriority,h$)))}function Cc(e){function t(i){return tc(i,e)}if(0<$d.length){tc($d[0],e);for(var r=1;r<$d.length;r++){var n=$d[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xi!==null&&tc(Xi,e),Ji!==null&&tc(Ji,e),Qi!==null&&tc(Qi,e),_c.forEach(t),Sc.forEach(t),r=0;r<qi.length;r++)n=qi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<qi.length&&(r=qi[0],r.blockedOn===null);)yS(r),r.blockedOn===null&&qi.shift()}var ka=mi.ReactCurrentBatchConfig,hh=!0;function p$(e,t,r,n){var i=Ae,o=ka.transition;ka.transition=null;try{Ae=1,Lv(e,t,r,n)}finally{Ae=i,ka.transition=o}}function m$(e,t,r,n){var i=Ae,o=ka.transition;ka.transition=null;try{Ae=4,Lv(e,t,r,n)}finally{Ae=i,ka.transition=o}}function Lv(e,t,r,n){if(hh){var i=Qy(e,t,r,n);if(i===null)_y(e,t,n,ph,r),K2(e,n);else if(d$(i,e,t,r,n))n.stopPropagation();else if(K2(e,n),t&4&&-1<f$.indexOf(e)){for(;i!==null;){var o=Uc(i);if(o!==null&&hS(o),o=Qy(e,t,r,n),o===null&&_y(e,t,n,ph,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else _y(e,t,n,null,r)}}var ph=null;function Qy(e,t,r,n){if(ph=null,e=Rv(n),e=ds(e),e!==null)if(t=_s(e),t===null)e=null;else if(r=t.tag,r===13){if(e=oS(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ph=e,null}function vS(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(r$()){case Nv:return 1;case lS:return 4;case fh:case n$:return 16;case cS:return 536870912;default:return 16}default:return 16}}var Gi=null,Fv=null,Zd=null;function wS(){if(Zd)return Zd;var e,t=Fv,r=t.length,n,i="value"in Gi?Gi.value:Gi.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return Zd=i.slice(e,1<n?1-n:void 0)}function eh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ud(){return!0}function W2(){return!1}function Gr(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ud:W2,this.isPropagationStopped=W2,this}return Dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ud)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ud)},persist:function(){},isPersistent:Ud}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$v=Gr(Ka),$c=Dt({},Ka,{view:0,detail:0}),g$=Gr($c),yy,vy,rc,Nh=Dt({},$c,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rc&&(rc&&e.type==="mousemove"?(yy=e.screenX-rc.screenX,vy=e.screenY-rc.screenY):vy=yy=0,rc=e),yy)},movementY:function(e){return"movementY"in e?e.movementY:vy}}),G2=Gr(Nh),y$=Dt({},Nh,{dataTransfer:0}),v$=Gr(y$),w$=Dt({},$c,{relatedTarget:0}),wy=Gr(w$),x$=Dt({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),b$=Gr(x$),E$=Dt({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_$=Gr(E$),S$=Dt({},Ka,{data:0}),Y2=Gr(S$),C$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},P$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=P$[e])?!!t[e]:!1}function Uv(){return D$}var I$=Dt({},$c,{key:function(e){if(e.key){var t=C$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?T$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uv,charCode:function(e){return e.type==="keypress"?eh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A$=Gr(I$),O$=Dt({},Nh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X2=Gr(O$),R$=Dt({},$c,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uv}),N$=Gr(R$),M$=Dt({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),k$=Gr(M$),L$=Dt({},Nh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),F$=Gr(L$),$$=[9,13,27,32],Vv=fi&&"CompositionEvent"in window,hc=null;fi&&"documentMode"in document&&(hc=document.documentMode);var U$=fi&&"TextEvent"in window&&!hc,xS=fi&&(!Vv||hc&&8<hc&&11>=hc),J2=String.fromCharCode(32),Q2=!1;function bS(e,t){switch(e){case"keyup":return $$.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ES(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ea=!1;function V$(e,t){switch(e){case"compositionend":return ES(t);case"keypress":return t.which!==32?null:(Q2=!0,J2);case"textInput":return e=t.data,e===J2&&Q2?null:e;default:return null}}function B$(e,t){if(Ea)return e==="compositionend"||!Vv&&bS(e,t)?(e=wS(),Zd=Fv=Gi=null,Ea=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xS&&t.locale!=="ko"?null:t.data;default:return null}}var j$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Z2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j$[e.type]:t==="textarea"}function _S(e,t,r,n){eS(n),t=mh(t,"onChange"),0<t.length&&(r=new $v("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var pc=null,Tc=null;function z$(e){MS(e,0)}function Mh(e){var t=Ca(e);if(W3(t))return e}function H$(e,t){if(e==="change")return t}var SS=!1;fi&&(fi?(Bd="oninput"in document,Bd||(xy=document.createElement("div"),xy.setAttribute("oninput","return;"),Bd=typeof xy.oninput=="function"),Vd=Bd):Vd=!1,SS=Vd&&(!document.documentMode||9<document.documentMode));var Vd,Bd,xy;function e3(){pc&&(pc.detachEvent("onpropertychange",CS),Tc=pc=null)}function CS(e){if(e.propertyName==="value"&&Mh(Tc)){var t=[];_S(t,Tc,e,Rv(e)),iS(z$,t)}}function K$(e,t,r){e==="focusin"?(e3(),pc=t,Tc=r,pc.attachEvent("onpropertychange",CS)):e==="focusout"&&e3()}function q$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mh(Tc)}function W$(e,t){if(e==="click")return Mh(t)}function G$(e,t){if(e==="input"||e==="change")return Mh(t)}function Y$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:Y$;function Pc(e,t){if(Rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!My.call(t,i)||!Rn(e[i],t[i]))return!1}return!0}function t3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r3(e,t){var r=t3(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=t3(r)}}function TS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?TS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PS(){for(var e=window,t=uh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=uh(e.document)}return t}function Bv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function X$(e){var t=PS(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&TS(r.ownerDocument.documentElement,r)){if(n!==null&&Bv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=r3(r,o);var s=r3(r,n);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var J$=fi&&"documentMode"in document&&11>=document.documentMode,_a=null,Zy=null,mc=null,ev=!1;function n3(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ev||_a==null||_a!==uh(n)||(n=_a,"selectionStart"in n&&Bv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),mc&&Pc(mc,n)||(mc=n,n=mh(Zy,"onSelect"),0<n.length&&(t=new $v("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=_a)))}function jd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sa={animationend:jd("Animation","AnimationEnd"),animationiteration:jd("Animation","AnimationIteration"),animationstart:jd("Animation","AnimationStart"),transitionend:jd("Transition","TransitionEnd")},by={},DS={};fi&&(DS=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function kh(e){if(by[e])return by[e];if(!Sa[e])return e;var t=Sa[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in DS)return by[e]=t[r];return e}var IS=kh("animationend"),AS=kh("animationiteration"),OS=kh("animationstart"),RS=kh("transitionend"),NS=new Map,i3="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function so(e,t){NS.set(e,t),Es(t,[e])}for(zd=0;zd<i3.length;zd++)Hd=i3[zd],o3=Hd.toLowerCase(),s3=Hd[0].toUpperCase()+Hd.slice(1),so(o3,"on"+s3);var Hd,o3,s3,zd;so(IS,"onAnimationEnd");so(AS,"onAnimationIteration");so(OS,"onAnimationStart");so("dblclick","onDoubleClick");so("focusin","onFocus");so("focusout","onBlur");so(RS,"onTransitionEnd");$a("onMouseEnter",["mouseout","mouseover"]);$a("onMouseLeave",["mouseout","mouseover"]);$a("onPointerEnter",["pointerout","pointerover"]);$a("onPointerLeave",["pointerout","pointerover"]);Es("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Es("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Es("onBeforeInput",["compositionend","keypress","textInput","paste"]);Es("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Es("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Q$=new Set("cancel close invalid load scroll toggle".split(" ").concat(cc));function a3(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,QF(n,t,void 0,e),e.currentTarget=null}function MS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var a=n[s],u=a.instance,l=a.currentTarget;if(a=a.listener,u!==o&&i.isPropagationStopped())break e;a3(i,a,l),o=u}else for(s=0;s<n.length;s++){if(a=n[s],u=a.instance,l=a.currentTarget,a=a.listener,u!==o&&i.isPropagationStopped())break e;a3(i,a,l),o=u}}}if(ch)throw e=Yy,ch=!1,Yy=null,e}function wt(e,t){var r=t[ov];r===void 0&&(r=t[ov]=new Set);var n=e+"__bubble";r.has(n)||(kS(t,e,2,!1),r.add(n))}function Ey(e,t,r){var n=0;t&&(n|=4),kS(r,e,n,t)}var Kd="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[Kd]){e[Kd]=!0,j3.forEach(function(r){r!=="selectionchange"&&(Q$.has(r)||Ey(r,!1,e),Ey(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kd]||(t[Kd]=!0,Ey("selectionchange",!1,t))}}function kS(e,t,r,n){switch(vS(t)){case 1:var i=p$;break;case 4:i=m$;break;default:i=Lv}r=i.bind(null,t,r,e),i=void 0,!Gy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function _y(e,t,r,n,i){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ds(a),s===null)return;if(u=s.tag,u===5||u===6){n=o=s;continue e}a=a.parentNode}}n=n.return}iS(function(){var l=o,p=Rv(r),h=[];e:{var g=NS.get(e);if(g!==void 0){var w=$v,v=e;switch(e){case"keypress":if(eh(r)===0)break e;case"keydown":case"keyup":w=A$;break;case"focusin":v="focus",w=wy;break;case"focusout":v="blur",w=wy;break;case"beforeblur":case"afterblur":w=wy;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=G2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=v$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=N$;break;case IS:case AS:case OS:w=b$;break;case RS:w=k$;break;case"scroll":w=g$;break;case"wheel":w=F$;break;case"copy":case"cut":case"paste":w=_$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=X2}var _=(t&4)!==0,D=!_&&e==="scroll",C=_?g!==null?g+"Capture":null:g;_=[];for(var I=l,P;I!==null;){P=I;var R=P.stateNode;if(P.tag===5&&R!==null&&(P=R,C!==null&&(R=Ec(I,C),R!=null&&_.push(Ic(I,R,P)))),D)break;I=I.return}0<_.length&&(g=new w(g,v,null,r,p),h.push({event:g,listeners:_}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",g&&r!==qy&&(v=r.relatedTarget||r.fromElement)&&(ds(v)||v[di]))break e;if((w||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,w?(v=r.relatedTarget||r.toElement,w=l,v=v?ds(v):null,v!==null&&(D=_s(v),v!==D||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=l),w!==v)){if(_=G2,R="onMouseLeave",C="onMouseEnter",I="mouse",(e==="pointerout"||e==="pointerover")&&(_=X2,R="onPointerLeave",C="onPointerEnter",I="pointer"),D=w==null?g:Ca(w),P=v==null?g:Ca(v),g=new _(R,I+"leave",w,r,p),g.target=D,g.relatedTarget=P,R=null,ds(p)===l&&(_=new _(C,I+"enter",v,r,p),_.target=P,_.relatedTarget=D,R=_),D=R,w&&v)t:{for(_=w,C=v,I=0,P=_;P;P=wa(P))I++;for(P=0,R=C;R;R=wa(R))P++;for(;0<I-P;)_=wa(_),I--;for(;0<P-I;)C=wa(C),P--;for(;I--;){if(_===C||C!==null&&_===C.alternate)break t;_=wa(_),C=wa(C)}_=null}else _=null;w!==null&&u3(h,g,w,_,!1),v!==null&&D!==null&&u3(h,D,v,_,!0)}}e:{if(g=l?Ca(l):window,w=g.nodeName&&g.nodeName.toLowerCase(),w==="select"||w==="input"&&g.type==="file")var U=H$;else if(Z2(g))if(SS)U=G$;else{U=q$;var j=K$}else(w=g.nodeName)&&w.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(U=W$);if(U&&(U=U(e,l))){_S(h,U,r,p);break e}j&&j(e,g,l),e==="focusout"&&(j=g._wrapperState)&&j.controlled&&g.type==="number"&&By(g,"number",g.value)}switch(j=l?Ca(l):window,e){case"focusin":(Z2(j)||j.contentEditable==="true")&&(_a=j,Zy=l,mc=null);break;case"focusout":mc=Zy=_a=null;break;case"mousedown":ev=!0;break;case"contextmenu":case"mouseup":case"dragend":ev=!1,n3(h,r,p);break;case"selectionchange":if(J$)break;case"keydown":case"keyup":n3(h,r,p)}var F;if(Vv)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Ea?bS(e,r)&&($="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&($="onCompositionStart");$&&(xS&&r.locale!=="ko"&&(Ea||$!=="onCompositionStart"?$==="onCompositionEnd"&&Ea&&(F=wS()):(Gi=p,Fv="value"in Gi?Gi.value:Gi.textContent,Ea=!0)),j=mh(l,$),0<j.length&&($=new Y2($,e,null,r,p),h.push({event:$,listeners:j}),F?$.data=F:(F=ES(r),F!==null&&($.data=F)))),(F=U$?V$(e,r):B$(e,r))&&(l=mh(l,"onBeforeInput"),0<l.length&&(p=new Y2("onBeforeInput","beforeinput",null,r,p),h.push({event:p,listeners:l}),p.data=F))}MS(h,t)})}function Ic(e,t,r){return{instance:e,listener:t,currentTarget:r}}function mh(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ec(e,r),o!=null&&n.unshift(Ic(e,o,i)),o=Ec(e,t),o!=null&&n.push(Ic(e,o,i))),e=e.return}return n}function wa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function u3(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var a=r,u=a.alternate,l=a.stateNode;if(u!==null&&u===n)break;a.tag===5&&l!==null&&(a=l,i?(u=Ec(r,o),u!=null&&s.unshift(Ic(r,u,a))):i||(u=Ec(r,o),u!=null&&s.push(Ic(r,u,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var Z$=/\r\n?/g,eU=/\u0000|\uFFFD/g;function l3(e){return(typeof e=="string"?e:""+e).replace(Z$,`
6
+ `).replace(eU,"")}function qd(e,t,r){if(t=l3(t),l3(e)!==t&&r)throw Error(oe(425))}function gh(){}var tv=null,rv=null;function nv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var iv=typeof setTimeout=="function"?setTimeout:void 0,tU=typeof clearTimeout=="function"?clearTimeout:void 0,c3=typeof Promise=="function"?Promise:void 0,rU=typeof queueMicrotask=="function"?queueMicrotask:typeof c3<"u"?function(e){return c3.resolve(null).then(e).catch(nU)}:iv;function nU(e){setTimeout(function(){throw e})}function Sy(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Cc(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Cc(t)}function Zi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function f3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qa=Math.random().toString(36).slice(2),zn="__reactFiber$"+qa,Ac="__reactProps$"+qa,di="__reactContainer$"+qa,ov="__reactEvents$"+qa,iU="__reactListeners$"+qa,oU="__reactHandles$"+qa;function ds(e){var t=e[zn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[di]||r[zn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=f3(e);e!==null;){if(r=e[zn])return r;e=f3(e)}return t}e=r,r=e.parentNode}return null}function Uc(e){return e=e[zn]||e[di],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ca(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function Lh(e){return e[Ac]||null}var sv=[],Ta=-1;function ao(e){return{current:e}}function xt(e){0>Ta||(e.current=sv[Ta],sv[Ta]=null,Ta--)}function Le(e,t){Ta++,sv[Ta]=e.current,e.current=t}var oo={},hr=ao(oo),Nr=ao(!1),ys=oo;function Ua(e,t){var r=e.type.contextTypes;if(!r)return oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mr(e){return e=e.childContextTypes,e!=null}function yh(){xt(Nr),xt(hr)}function d3(e,t,r){if(hr.current!==oo)throw Error(oe(168));Le(hr,t),Le(Nr,r)}function LS(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(oe(108,KF(e)||"Unknown",i));return Dt({},r,n)}function vh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oo,ys=hr.current,Le(hr,e),Le(Nr,Nr.current),!0}function h3(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=LS(e,t,ys),n.__reactInternalMemoizedMergedChildContext=e,xt(Nr),xt(hr),Le(hr,e)):xt(Nr),Le(Nr,r)}var ai=null,Fh=!1,Cy=!1;function FS(e){ai===null?ai=[e]:ai.push(e)}function sU(e){Fh=!0,FS(e)}function uo(){if(!Cy&&ai!==null){Cy=!0;var e=0,t=Ae;try{var r=ai;for(Ae=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}ai=null,Fh=!1}catch(i){throw ai!==null&&(ai=ai.slice(e+1)),uS(Nv,uo),i}finally{Ae=t,Cy=!1}}return null}var Pa=[],Da=0,wh=null,xh=0,on=[],sn=0,vs=null,ui=1,li="";function cs(e,t){Pa[Da++]=xh,Pa[Da++]=wh,wh=e,xh=t}function $S(e,t,r){on[sn++]=ui,on[sn++]=li,on[sn++]=vs,vs=e;var n=ui;e=li;var i=32-An(n)-1;n&=~(1<<i),r+=1;var o=32-An(t)+i;if(30<o){var s=i-i%5;o=(n&(1<<s)-1).toString(32),n>>=s,i-=s,ui=1<<32-An(t)+i|r<<i|n,li=o+e}else ui=1<<o|r<<i|n,li=e}function jv(e){e.return!==null&&(cs(e,1),$S(e,1,0))}function zv(e){for(;e===wh;)wh=Pa[--Da],Pa[Da]=null,xh=Pa[--Da],Pa[Da]=null;for(;e===vs;)vs=on[--sn],on[sn]=null,li=on[--sn],on[sn]=null,ui=on[--sn],on[sn]=null}var qr=null,Kr=null,St=!1,In=null;function US(e,t){var r=an(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function p3(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,qr=e,Kr=Zi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,qr=e,Kr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vs!==null?{id:ui,overflow:li}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=an(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,qr=e,Kr=null,!0):!1;default:return!1}}function av(e){return(e.mode&1)!==0&&(e.flags&128)===0}function uv(e){if(St){var t=Kr;if(t){var r=t;if(!p3(e,t)){if(av(e))throw Error(oe(418));t=Zi(r.nextSibling);var n=qr;t&&p3(e,t)?US(n,r):(e.flags=e.flags&-4097|2,St=!1,qr=e)}}else{if(av(e))throw Error(oe(418));e.flags=e.flags&-4097|2,St=!1,qr=e}}}function m3(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;qr=e}function Wd(e){if(e!==qr)return!1;if(!St)return m3(e),St=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nv(e.type,e.memoizedProps)),t&&(t=Kr)){if(av(e))throw VS(),Error(oe(418));for(;t;)US(e,t),t=Zi(t.nextSibling)}if(m3(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Kr=Zi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Kr=null}}else Kr=qr?Zi(e.stateNode.nextSibling):null;return!0}function VS(){for(var e=Kr;e;)e=Zi(e.nextSibling)}function Va(){Kr=qr=null,St=!1}function Hv(e){In===null?In=[e]:In.push(e)}var aU=mi.ReactCurrentBatchConfig;function Pn(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var bh=ao(null),Eh=null,Ia=null,Kv=null;function qv(){Kv=Ia=Eh=null}function Wv(e){var t=bh.current;xt(bh),e._currentValue=t}function lv(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function La(e,t){Eh=e,Kv=Ia=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rr=!0),e.firstContext=null)}function ln(e){var t=e._currentValue;if(Kv!==e)if(e={context:e,memoizedValue:t,next:null},Ia===null){if(Eh===null)throw Error(oe(308));Ia=e,Eh.dependencies={lanes:0,firstContext:e}}else Ia=Ia.next=e;return t}var hs=null;function Gv(e){hs===null?hs=[e]:hs.push(e)}function BS(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Gv(t)):(r.next=i.next,i.next=r),t.interleaved=r,hi(e,n)}function hi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Ki=!1;function Yv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Se&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,hi(e,r)}return i=n.interleaved,i===null?(t.next=t,Gv(n)):(t.next=i.next,i.next=t),n.interleaved=t,hi(e,r)}function th(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Mv(e,r)}}function g3(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function _h(e,t,r,n){var i=e.updateQueue;Ki=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,l=u.next;u.next=null,s===null?o=l:s.next=l,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,p=l=u=null,a=o;do{var g=a.lane,w=a.eventTime;if((n&g)===g){p!==null&&(p=p.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,_=a;switch(g=t,w=r,_.tag){case 1:if(v=_.payload,typeof v=="function"){h=v.call(w,h,g);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=_.payload,g=typeof v=="function"?v.call(w,h,g):v,g==null)break e;h=Dt({},h,g);break e;case 2:Ki=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[a]:g.push(a))}else w={eventTime:w,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(l=p=w,u=h):p=p.next=w,s|=g;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;g=a,a=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(1);if(p===null&&(u=h),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);xs|=s,e.lanes=s,e.memoizedState=h}}function y3(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(oe(191,i));i.call(n)}}}var zS=new B3.Component().refs;function cv(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var $h={isMounted:function(e){return(e=e._reactInternals)?_s(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Er(),i=ro(e),o=ci(n,i);o.payload=t,r!=null&&(o.callback=r),t=eo(e,o,i),t!==null&&(On(t,e,i,n),th(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Er(),i=ro(e),o=ci(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=eo(e,o,i),t!==null&&(On(t,e,i,n),th(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Er(),n=ro(e),i=ci(r,n);i.tag=2,t!=null&&(i.callback=t),t=eo(e,i,n),t!==null&&(On(t,e,n,r),th(t,e,n))}};function v3(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!Pc(r,n)||!Pc(i,o):!0}function HS(e,t,r){var n=!1,i=oo,o=t.contextType;return typeof o=="object"&&o!==null?o=ln(o):(i=Mr(t)?ys:hr.current,n=t.contextTypes,o=(n=n!=null)?Ua(e,i):oo),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$h,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function w3(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&$h.enqueueReplaceState(t,t.state,null)}function fv(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=zS,Yv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ln(o):(o=Mr(t)?ys:hr.current,i.context=Ua(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(cv(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&$h.enqueueReplaceState(i,i.state,null),_h(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function nc(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(oe(309));var n=r.stateNode}if(!n)throw Error(oe(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===zS&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(oe(284));if(!r._owner)throw Error(oe(290,e))}return e}function Gd(e,t){throw e=Object.prototype.toString.call(t),Error(oe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function x3(e){var t=e._init;return t(e._payload)}function KS(e){function t(C,I){if(e){var P=C.deletions;P===null?(C.deletions=[I],C.flags|=16):P.push(I)}}function r(C,I){if(!e)return null;for(;I!==null;)t(C,I),I=I.sibling;return null}function n(C,I){for(C=new Map;I!==null;)I.key!==null?C.set(I.key,I):C.set(I.index,I),I=I.sibling;return C}function i(C,I){return C=no(C,I),C.index=0,C.sibling=null,C}function o(C,I,P){return C.index=P,e?(P=C.alternate,P!==null?(P=P.index,P<I?(C.flags|=2,I):P):(C.flags|=2,I)):(C.flags|=1048576,I)}function s(C){return e&&C.alternate===null&&(C.flags|=2),C}function a(C,I,P,R){return I===null||I.tag!==6?(I=Ry(P,C.mode,R),I.return=C,I):(I=i(I,P),I.return=C,I)}function u(C,I,P,R){var U=P.type;return U===ba?p(C,I,P.props.children,R,P.key):I!==null&&(I.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Hi&&x3(U)===I.type)?(R=i(I,P.props),R.ref=nc(C,I,P),R.return=C,R):(R=ah(P.type,P.key,P.props,null,C.mode,R),R.ref=nc(C,I,P),R.return=C,R)}function l(C,I,P,R){return I===null||I.tag!==4||I.stateNode.containerInfo!==P.containerInfo||I.stateNode.implementation!==P.implementation?(I=Ny(P,C.mode,R),I.return=C,I):(I=i(I,P.children||[]),I.return=C,I)}function p(C,I,P,R,U){return I===null||I.tag!==7?(I=gs(P,C.mode,R,U),I.return=C,I):(I=i(I,P),I.return=C,I)}function h(C,I,P){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Ry(""+I,C.mode,P),I.return=C,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Nd:return P=ah(I.type,I.key,I.props,null,C.mode,P),P.ref=nc(C,null,I),P.return=C,P;case xa:return I=Ny(I,C.mode,P),I.return=C,I;case Hi:var R=I._init;return h(C,R(I._payload),P)}if(uc(I)||Zl(I))return I=gs(I,C.mode,P,null),I.return=C,I;Gd(C,I)}return null}function g(C,I,P,R){var U=I!==null?I.key:null;if(typeof P=="string"&&P!==""||typeof P=="number")return U!==null?null:a(C,I,""+P,R);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Nd:return P.key===U?u(C,I,P,R):null;case xa:return P.key===U?l(C,I,P,R):null;case Hi:return U=P._init,g(C,I,U(P._payload),R)}if(uc(P)||Zl(P))return U!==null?null:p(C,I,P,R,null);Gd(C,P)}return null}function w(C,I,P,R,U){if(typeof R=="string"&&R!==""||typeof R=="number")return C=C.get(P)||null,a(I,C,""+R,U);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Nd:return C=C.get(R.key===null?P:R.key)||null,u(I,C,R,U);case xa:return C=C.get(R.key===null?P:R.key)||null,l(I,C,R,U);case Hi:var j=R._init;return w(C,I,P,j(R._payload),U)}if(uc(R)||Zl(R))return C=C.get(P)||null,p(I,C,R,U,null);Gd(I,R)}return null}function v(C,I,P,R){for(var U=null,j=null,F=I,$=I=0,G=null;F!==null&&$<P.length;$++){F.index>$?(G=F,F=null):G=F.sibling;var X=g(C,F,P[$],R);if(X===null){F===null&&(F=G);break}e&&F&&X.alternate===null&&t(C,F),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X,F=G}if($===P.length)return r(C,F),St&&cs(C,$),U;if(F===null){for(;$<P.length;$++)F=h(C,P[$],R),F!==null&&(I=o(F,I,$),j===null?U=F:j.sibling=F,j=F);return St&&cs(C,$),U}for(F=n(C,F);$<P.length;$++)G=w(F,C,$,P[$],R),G!==null&&(e&&G.alternate!==null&&F.delete(G.key===null?$:G.key),I=o(G,I,$),j===null?U=G:j.sibling=G,j=G);return e&&F.forEach(function(W){return t(C,W)}),St&&cs(C,$),U}function _(C,I,P,R){var U=Zl(P);if(typeof U!="function")throw Error(oe(150));if(P=U.call(P),P==null)throw Error(oe(151));for(var j=U=null,F=I,$=I=0,G=null,X=P.next();F!==null&&!X.done;$++,X=P.next()){F.index>$?(G=F,F=null):G=F.sibling;var W=g(C,F,X.value,R);if(W===null){F===null&&(F=G);break}e&&F&&W.alternate===null&&t(C,F),I=o(W,I,$),j===null?U=W:j.sibling=W,j=W,F=G}if(X.done)return r(C,F),St&&cs(C,$),U;if(F===null){for(;!X.done;$++,X=P.next())X=h(C,X.value,R),X!==null&&(I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return St&&cs(C,$),U}for(F=n(C,F);!X.done;$++,X=P.next())X=w(F,C,$,X.value,R),X!==null&&(e&&X.alternate!==null&&F.delete(X.key===null?$:X.key),I=o(X,I,$),j===null?U=X:j.sibling=X,j=X);return e&&F.forEach(function(J){return t(C,J)}),St&&cs(C,$),U}function D(C,I,P,R){if(typeof P=="object"&&P!==null&&P.type===ba&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Nd:e:{for(var U=P.key,j=I;j!==null;){if(j.key===U){if(U=P.type,U===ba){if(j.tag===7){r(C,j.sibling),I=i(j,P.props.children),I.return=C,C=I;break e}}else if(j.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===Hi&&x3(U)===j.type){r(C,j.sibling),I=i(j,P.props),I.ref=nc(C,j,P),I.return=C,C=I;break e}r(C,j);break}else t(C,j);j=j.sibling}P.type===ba?(I=gs(P.props.children,C.mode,R,P.key),I.return=C,C=I):(R=ah(P.type,P.key,P.props,null,C.mode,R),R.ref=nc(C,I,P),R.return=C,C=R)}return s(C);case xa:e:{for(j=P.key;I!==null;){if(I.key===j)if(I.tag===4&&I.stateNode.containerInfo===P.containerInfo&&I.stateNode.implementation===P.implementation){r(C,I.sibling),I=i(I,P.children||[]),I.return=C,C=I;break e}else{r(C,I);break}else t(C,I);I=I.sibling}I=Ny(P,C.mode,R),I.return=C,C=I}return s(C);case Hi:return j=P._init,D(C,I,j(P._payload),R)}if(uc(P))return v(C,I,P,R);if(Zl(P))return _(C,I,P,R);Gd(C,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,I!==null&&I.tag===6?(r(C,I.sibling),I=i(I,P),I.return=C,C=I):(r(C,I),I=Ry(P,C.mode,R),I.return=C,C=I),s(C)):r(C,I)}return D}var Ba=KS(!0),qS=KS(!1),Vc={},Kn=ao(Vc),Oc=ao(Vc),Rc=ao(Vc);function ps(e){if(e===Vc)throw Error(oe(174));return e}function Xv(e,t){switch(Le(Rc,t),Le(Oc,e),Le(Kn,Vc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zy(t,e)}xt(Kn),Le(Kn,t)}function ja(){xt(Kn),xt(Oc),xt(Rc)}function WS(e){ps(Rc.current);var t=ps(Kn.current),r=zy(t,e.type);t!==r&&(Le(Oc,e),Le(Kn,r))}function Jv(e){Oc.current===e&&(xt(Kn),xt(Oc))}var Tt=ao(0);function Sh(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ty=[];function Qv(){for(var e=0;e<Ty.length;e++)Ty[e]._workInProgressVersionPrimary=null;Ty.length=0}var rh=mi.ReactCurrentDispatcher,Py=mi.ReactCurrentBatchConfig,ws=0,Pt=null,zt=null,Yt=null,Ch=!1,gc=!1,Nc=0,uU=0;function cr(){throw Error(oe(321))}function Zv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Rn(e[r],t[r]))return!1;return!0}function e1(e,t,r,n,i,o){if(ws=o,Pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,rh.current=e===null||e.memoizedState===null?dU:hU,e=r(n,i),gc){o=0;do{if(gc=!1,Nc=0,25<=o)throw Error(oe(301));o+=1,Yt=zt=null,t.updateQueue=null,rh.current=pU,e=r(n,i)}while(gc)}if(rh.current=Th,t=zt!==null&&zt.next!==null,ws=0,Yt=zt=Pt=null,Ch=!1,t)throw Error(oe(300));return e}function t1(){var e=Nc!==0;return Nc=0,e}function jn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Pt.memoizedState=Yt=e:Yt=Yt.next=e,Yt}function cn(){if(zt===null){var e=Pt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Yt===null?Pt.memoizedState:Yt.next;if(t!==null)Yt=t,zt=e;else{if(e===null)throw Error(oe(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Yt===null?Pt.memoizedState=Yt=e:Yt=Yt.next=e}return Yt}function Mc(e,t){return typeof t=="function"?t(e):t}function Dy(e){var t=cn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=zt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var a=s=null,u=null,l=o;do{var p=l.lane;if((ws&p)===p)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var h={lane:p,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(a=u=h,s=n):u=u.next=h,Pt.lanes|=p,xs|=p}l=l.next}while(l!==null&&l!==o);u===null?s=n:u.next=a,Rn(n,t.memoizedState)||(Rr=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,Pt.lanes|=o,xs|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Iy(e){var t=cn(),r=t.queue;if(r===null)throw Error(oe(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Rn(o,t.memoizedState)||(Rr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function GS(){}function YS(e,t){var r=Pt,n=cn(),i=t(),o=!Rn(n.memoizedState,i);if(o&&(n.memoizedState=i,Rr=!0),n=n.queue,r1(QS.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Yt!==null&&Yt.memoizedState.tag&1){if(r.flags|=2048,kc(9,JS.bind(null,r,n,i,t),void 0,null),Xt===null)throw Error(oe(349));(ws&30)!==0||XS(r,t,i)}return i}function XS(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function JS(e,t,r,n){t.value=r,t.getSnapshot=n,ZS(t)&&e6(e)}function QS(e,t,r){return r(function(){ZS(t)&&e6(e)})}function ZS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Rn(e,r)}catch(n){return!0}}function e6(e){var t=hi(e,1);t!==null&&On(t,e,1,-1)}function b3(e){var t=jn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mc,lastRenderedState:e},t.queue=e,e=e.dispatch=fU.bind(null,Pt,e),[t.memoizedState,e]}function kc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pt.updateQueue,t===null?(t={lastEffect:null,stores:null},Pt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function t6(){return cn().memoizedState}function nh(e,t,r,n){var i=jn();Pt.flags|=e,i.memoizedState=kc(1|t,r,void 0,n===void 0?null:n)}function Uh(e,t,r,n){var i=cn();n=n===void 0?null:n;var o=void 0;if(zt!==null){var s=zt.memoizedState;if(o=s.destroy,n!==null&&Zv(n,s.deps)){i.memoizedState=kc(t,r,o,n);return}}Pt.flags|=e,i.memoizedState=kc(1|t,r,o,n)}function E3(e,t){return nh(8390656,8,e,t)}function r1(e,t){return Uh(2048,8,e,t)}function r6(e,t){return Uh(4,2,e,t)}function n6(e,t){return Uh(4,4,e,t)}function i6(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function o6(e,t,r){return r=r!=null?r.concat([e]):null,Uh(4,4,i6.bind(null,t,e),r)}function n1(){}function s6(e,t){var r=cn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Zv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function a6(e,t){var r=cn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Zv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function u6(e,t,r){return(ws&21)===0?(e.baseState&&(e.baseState=!1,Rr=!0),e.memoizedState=r):(Rn(r,t)||(r=fS(),Pt.lanes|=r,xs|=r,e.baseState=!0),t)}function lU(e,t){var r=Ae;Ae=r!==0&&4>r?r:4,e(!0);var n=Py.transition;Py.transition={};try{e(!1),t()}finally{Ae=r,Py.transition=n}}function l6(){return cn().memoizedState}function cU(e,t,r){var n=ro(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},c6(e))f6(t,r);else if(r=BS(e,t,r,n),r!==null){var i=Er();On(r,e,n,i),d6(r,t,n)}}function fU(e,t,r){var n=ro(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(c6(e))f6(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(i.hasEagerState=!0,i.eagerState=a,Rn(a,s)){var u=t.interleaved;u===null?(i.next=i,Gv(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch(l){}finally{}r=BS(e,t,i,n),r!==null&&(i=Er(),On(r,e,n,i),d6(r,t,n))}}function c6(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function f6(e,t){gc=Ch=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function d6(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Mv(e,r)}}var Th={readContext:ln,useCallback:cr,useContext:cr,useEffect:cr,useImperativeHandle:cr,useInsertionEffect:cr,useLayoutEffect:cr,useMemo:cr,useReducer:cr,useRef:cr,useState:cr,useDebugValue:cr,useDeferredValue:cr,useTransition:cr,useMutableSource:cr,useSyncExternalStore:cr,useId:cr,unstable_isNewReconciler:!1},dU={readContext:ln,useCallback:function(e,t){return jn().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:E3,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,nh(4194308,4,i6.bind(null,t,e),r)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){return nh(4,2,e,t)},useMemo:function(e,t){var r=jn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=jn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=cU.bind(null,Pt,e),[n.memoizedState,e]},useRef:function(e){var t=jn();return e={current:e},t.memoizedState=e},useState:b3,useDebugValue:n1,useDeferredValue:function(e){return jn().memoizedState=e},useTransition:function(){var e=b3(!1),t=e[0];return e=lU.bind(null,e[1]),jn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pt,i=jn();if(St){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),Xt===null)throw Error(oe(349));(ws&30)!==0||XS(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,E3(QS.bind(null,n,o,e),[e]),n.flags|=2048,kc(9,JS.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=jn(),t=Xt.identifierPrefix;if(St){var r=li,n=ui;r=(n&~(1<<32-An(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Nc++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=uU++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hU={readContext:ln,useCallback:s6,useContext:ln,useEffect:r1,useImperativeHandle:o6,useInsertionEffect:r6,useLayoutEffect:n6,useMemo:a6,useReducer:Dy,useRef:t6,useState:function(){return Dy(Mc)},useDebugValue:n1,useDeferredValue:function(e){var t=cn();return u6(t,zt.memoizedState,e)},useTransition:function(){var e=Dy(Mc)[0],t=cn().memoizedState;return[e,t]},useMutableSource:GS,useSyncExternalStore:YS,useId:l6,unstable_isNewReconciler:!1},pU={readContext:ln,useCallback:s6,useContext:ln,useEffect:r1,useImperativeHandle:o6,useInsertionEffect:r6,useLayoutEffect:n6,useMemo:a6,useReducer:Iy,useRef:t6,useState:function(){return Iy(Mc)},useDebugValue:n1,useDeferredValue:function(e){var t=cn();return zt===null?t.memoizedState=e:u6(t,zt.memoizedState,e)},useTransition:function(){var e=Iy(Mc)[0],t=cn().memoizedState;return[e,t]},useMutableSource:GS,useSyncExternalStore:YS,useId:l6,unstable_isNewReconciler:!1};function za(e,t){try{var r="",n=t;do r+=HF(n),n=n.return;while(n);var i=r}catch(o){i=`
7
7
  Error generating stack: `+o.message+`
8
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function $y(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function x1(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var q$=typeof WeakMap=="function"?WeakMap:Map;function C6(e,t,r){r=mi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){kh||(kh=!0,O1=n),x1(e,t)},r}function T6(e,t,r){r=mi(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){x1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){x1(e,t),typeof n!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function k3(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new q$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=sU.bind(null,e,t,r),t.then(e,e))}function L3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function F3(e,t,r,n,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=mi(-1,1),t.tag=2,ao(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var W$=xi.ReactCurrentOwner,kr=!1;function Sr(e,t,r,n){t.child=e===null?i6(t,null,r,n):Wa(t,e.child,r,n)}function $3(e,t,r,n,i){r=r.render;var o=t.ref;return ja(t,i),n=uv(e,t,r,n,o,i),r=lv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wi(e,t,i)):(St&&r&&X1(t),t.flags|=1,Sr(e,t,n,i),t.child)}function U3(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!wv(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,P6(e,t,o,n,i)):(e=ph(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:kc,r(s,n)&&e.ref===t.ref)return wi(e,t,i)}return t.flags|=1,e=co(o,n),e.ref=t.ref,e.return=t,t.child=e}function P6(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(kc(o,n)&&e.ref===t.ref)if(kr=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(kr=!0);else return t.lanes=e.lanes,wi(e,t,i)}return b1(e,t,r,n,i)}function D6(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Fa,Xr),Xr|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(Fa,Xr),Xr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Le(Fa,Xr),Xr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Le(Fa,Xr),Xr|=n;return Sr(e,t,i,r),t.child}function I6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function b1(e,t,r,n,i){var o=Fr(r)?_s:gr.current;return o=Ka(t,o),ja(t,i),r=uv(e,t,r,n,o,i),n=lv(),e!==null&&!kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wi(e,t,i)):(St&&n&&X1(t),t.flags|=1,Sr(e,t,r,i),t.child)}function V3(e,t,r,n,i){if(Fr(r)){var o=!0;Ch(t)}else o=!1;if(ja(t,i),t.stateNode===null)fh(e,t),r6(t,r,n),w1(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=mn(l):(l=Fr(r)?_s:gr.current,l=Ka(t,l));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&A3(t,s,n,l),Zi=!1;var y=t.memoizedState;s.state=y,Oh(t,n,s,i),u=t.memoizedState,a!==n||y!==u||Lr.current||Zi?(typeof p=="function"&&(v1(t,r,p,n),u=t.memoizedState),(a=Zi||O3(t,r,a,n,y,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,e6(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Rn(t.type,a),s.props=l,h=t.pendingProps,y=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=mn(u):(u=Fr(r)?_s:gr.current,u=Ka(t,u));var v=r.getDerivedStateFromProps;(p=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||y!==u)&&A3(t,s,n,u),Zi=!1,y=t.memoizedState,s.state=y,Oh(t,n,s,i);var w=t.memoizedState;a!==h||y!==w||Lr.current||Zi?(typeof v=="function"&&(v1(t,r,v,n),w=t.memoizedState),(l=Zi||O3(t,r,l,n,y,w,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),s.props=n,s.state=w,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),n=!1)}return E1(e,t,r,n,o,i)}function E1(e,t,r,n,i,o){I6(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&C3(t,r,!1),wi(e,t,o);n=t.stateNode,W$.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Wa(t,e.child,null,o),t.child=Wa(t,null,a,o)):Sr(e,t,a,o),t.memoizedState=n.state,i&&C3(t,r,!0),t.child}function O6(e){var t=e.stateNode;t.pendingContext?S3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&S3(e,t.context,!1),iv(e,t.containerInfo)}function B3(e,t,r,n,i){return qa(),Z1(i),t.flags|=256,Sr(e,t,r,n),t.child}var _1={dehydrated:null,treeContext:null,retryLane:0};function S1(e){return{baseLanes:e,cachePool:null,transitions:null}}function A6(e,t,r){var n=t.pendingProps,i=Tt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(Tt,i&1),e===null)return g1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Yh(s,n,0,null),e=Es(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=S1(r),t.memoizedState=_1,e):dv(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return G$(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=co(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=co(a,o):(o=Es(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?S1(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=_1,n}return o=e.child,e=o.sibling,n=co(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function dv(e,t){return t=Yh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function rh(e,t,r,n){return n!==null&&Z1(n),Wa(t,e.child,null,r),e=dv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function G$(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=$y(Error(oe(422))),rh(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Yh({mode:"visible",children:n.children},i,0,null),o=Es(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Wa(t,e.child,null,s),t.child.memoizedState=S1(s),t.memoizedState=_1,o);if((t.mode&1)===0)return rh(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(oe(419)),n=$y(o,n,void 0),rh(e,t,s,n)}if(a=(s&e.childLanes)!==0,kr||a){if(n=Qt,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(n.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,vi(e,i),Ln(n,e,i,-1))}return vv(),n=$y(Error(oe(421))),rh(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=aU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Jr=so(i.nextSibling),Zr=t,St=!0,Mn=null,e!==null&&(fn[dn++]=hi,fn[dn++]=pi,fn[dn++]=Ss,hi=e.id,pi=e.overflow,Ss=t),t=dv(t,n.children),t.flags|=4096,t)}function j3(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),y1(e.return,t,r)}function Uy(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function R6(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Sr(e,t,n.children,r),n=Tt.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&j3(e,r,t);else if(e.tag===19)j3(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Le(Tt,n),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Ah(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Uy(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ah(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Uy(t,!0,r,null,o);break;case"together":Uy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fh(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ts|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=co(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=co(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Y$(e,t,r){switch(t.tag){case 3:O6(t),qa();break;case 5:o6(t);break;case 1:Fr(t.type)&&Ch(t);break;case 4:iv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Le(Dh,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Le(Tt,Tt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?A6(e,t,r):(Le(Tt,Tt.current&1),e=wi(e,t,r),e!==null?e.sibling:null);Le(Tt,Tt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return R6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(Tt,Tt.current),n)break;return null;case 22:case 23:return t.lanes=0,D6(e,t,r)}return wi(e,t,r)}var N6,C1,M6,k6;N6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};C1=function(){};M6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,xs(Jn.current);var o=null;switch(r){case"input":i=Wy(e,i),n=Wy(e,n),o=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),o=[];break;case"textarea":i=Xy(e,i),n=Xy(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=_h)}Zy(r,n);var s;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Dc.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(a=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Dc.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&wt("scroll",e),o||a===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};k6=function(e,t,r,n){r!==n&&(t.flags|=4)};function dc(e,t){if(!St)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function X$(e,t,r){var n=t.pendingProps;switch(J1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pr(t),null;case 1:return Fr(t.type)&&Sh(),pr(t),null;case 3:return n=t.stateNode,Ga(),xt(Lr),xt(gr),sv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(eh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mn!==null&&(N1(Mn),Mn=null))),C1(e,t),pr(t),null;case 5:ov(t);var i=xs(Vc.current);if(r=t.type,e!==null&&t.stateNode!=null)M6(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return pr(t),null}if(e=xs(Jn.current),eh(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Yn]=t,n[$c]=o,e=(t.mode&1)!==0,r){case"dialog":wt("cancel",n),wt("close",n);break;case"iframe":case"object":case"embed":wt("load",n);break;case"video":case"audio":for(i=0;i<vc.length;i++)wt(vc[i],n);break;case"source":wt("error",n);break;case"img":case"image":case"link":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"input":X_(n,o),wt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},wt("invalid",n);break;case"textarea":Z_(n,o),wt("invalid",n)}Zy(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&Qd(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Qd(n.textContent,a,e),i=["children",""+a]):Dc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&wt("scroll",n)}switch(r){case"input":Bd(n),J_(n,o,!0);break;case"textarea":Bd(n),Q_(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=_h)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Yn]=t,e[$c]=n,N6(e,t,!1,!1),t.stateNode=e;e:{switch(s=Qy(r,n),r){case"dialog":wt("cancel",e),wt("close",e),i=n;break;case"iframe":case"object":case"embed":wt("load",e),i=n;break;case"video":case"audio":for(i=0;i<vc.length;i++)wt(vc[i],e);i=n;break;case"source":wt("error",e),i=n;break;case"img":case"image":case"link":wt("error",e),wt("load",e),i=n;break;case"details":wt("toggle",e),i=n;break;case"input":X_(e,n),i=Wy(e,n),wt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dt({},n,{value:void 0}),wt("invalid",e);break;case"textarea":Z_(e,n),i=Xy(e,n),wt("invalid",e);break;default:i=n}Zy(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?fS(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&lS(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Ic(e,u):typeof u=="number"&&Ic(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Dc.hasOwnProperty(o)?u!=null&&o==="onScroll"&&wt("scroll",e):u!=null&&L1(e,o,u,s))}switch(r){case"input":Bd(e),J_(e,n,!1);break;case"textarea":Bd(e),Q_(e);break;case"option":n.value!=null&&e.setAttribute("value",""+fo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?$a(e,!!n.multiple,o,!1):n.defaultValue!=null&&$a(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_h)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pr(t),null;case 6:if(e&&t.stateNode!=null)k6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=xs(Vc.current),xs(Jn.current),eh(t)){if(n=t.stateNode,r=t.memoizedProps,n[Yn]=t,(o=n.nodeValue!==r)&&(e=Zr,e!==null))switch(e.tag){case 3:Qd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qd(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Yn]=t,t.stateNode=n}return pr(t),null;case 13:if(xt(Tt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(St&&Jr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ZS(),qa(),t.flags|=98560,o=!1;else if(o=eh(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[Yn]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pr(t),o=!1}else Mn!==null&&(N1(Mn),Mn=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Tt.current&1)!==0?Wt===0&&(Wt=3):vv())),t.updateQueue!==null&&(t.flags|=4),pr(t),null);case 4:return Ga(),C1(e,t),e===null&&Lc(t.stateNode.containerInfo),pr(t),null;case 10:return tv(t.type._context),pr(t),null;case 17:return Fr(t.type)&&Sh(),pr(t),null;case 19:if(xt(Tt),o=t.memoizedState,o===null)return pr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)dc(o,!1);else{if(Wt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ah(e),s!==null){for(t.flags|=128,dc(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(Tt,Tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&kt()>Xa&&(t.flags|=128,n=!0,dc(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ah(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),dc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!St)return pr(t),null}else 2*kt()-o.renderingStartTime>Xa&&r!==1073741824&&(t.flags|=128,n=!0,dc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=kt(),t.sibling=null,r=Tt.current,Le(Tt,n?r&1|2:r&1),t):(pr(t),null);case 22:case 23:return yv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Xr&1073741824)!==0&&(pr(t),t.subtreeFlags&6&&(t.flags|=8192)):pr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function J$(e,t){switch(J1(t),t.tag){case 1:return Fr(t.type)&&Sh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ga(),xt(Lr),xt(gr),sv(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ov(t),null;case 13:if(xt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(Tt),null;case 4:return Ga(),null;case 10:return tv(t.type._context),null;case 22:case 23:return yv(),null;case 24:return null;default:return null}}var nh=!1,mr=!1,Z$=typeof WeakSet=="function"?WeakSet:Set,ce=null;function La(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){At(e,t,n)}else r.current=null}function T1(e,t,r){try{r()}catch(n){At(e,t,n)}}var z3=!1;function Q$(e,t){if(l1=xh,e=US(),Y1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(R){r=null;break e}var s=0,a=-1,u=-1,l=0,p=0,h=e,y=null;t:for(;;){for(var v;h!==r||i!==0&&h.nodeType!==3||(a=s+i),h!==o||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)y=h,h=v;for(;;){if(h===e)break t;if(y===r&&++l===i&&(a=s),y===o&&++p===n&&(u=s),(v=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=v}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(c1={focusedElem:e,selectionRange:r},xh=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,D=w.memoizedState,C=t.stateNode,I=C.getSnapshotBeforeUpdate(t.elementType===t.type?_:Rn(t.type,_),D);C.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(R){At(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return w=z3,z3=!1,w}function Cc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&T1(t,r,o)}i=i.next}while(i!==n)}}function Wh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function P1(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function L6(e){var t=e.alternate;t!==null&&(e.alternate=null,L6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yn],delete t[$c],delete t[h1],delete t[k$],delete t[L$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function F6(e){return e.tag===5||e.tag===3||e.tag===4}function H3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function D1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=_h));else if(n!==4&&(e=e.child,e!==null))for(D1(e,t,r),e=e.sibling;e!==null;)D1(e,t,r),e=e.sibling}function I1(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(I1(e,t,r),e=e.sibling;e!==null;)I1(e,t,r),e=e.sibling}var nr=null,Nn=!1;function Xi(e,t,r){for(r=r.child;r!==null;)$6(e,t,r),r=r.sibling}function $6(e,t,r){if(Xn&&typeof Xn.onCommitFiberUnmount=="function")try{Xn.onCommitFiberUnmount(Uh,r)}catch(a){}switch(r.tag){case 5:mr||La(r,t);case 6:var n=nr,i=Nn;nr=null,Xi(e,t,r),nr=n,Nn=i,nr!==null&&(Nn?(e=nr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nr.removeChild(r.stateNode));break;case 18:nr!==null&&(Nn?(e=nr,r=r.stateNode,e.nodeType===8?Ry(e.parentNode,r):e.nodeType===1&&Ry(e,r),Nc(e)):Ry(nr,r.stateNode));break;case 4:n=nr,i=Nn,nr=r.stateNode.containerInfo,Nn=!0,Xi(e,t,r),nr=n,Nn=i;break;case 0:case 11:case 14:case 15:if(!mr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&T1(r,t,s),i=i.next}while(i!==n)}Xi(e,t,r);break;case 1:if(!mr&&(La(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){At(r,t,a)}Xi(e,t,r);break;case 21:Xi(e,t,r);break;case 22:r.mode&1?(mr=(n=mr)||r.memoizedState!==null,Xi(e,t,r),mr=n):Xi(e,t,r);break;default:Xi(e,t,r)}}function K3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Z$),t.forEach(function(n){var i=uU.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function An(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:nr=a.stateNode,Nn=!1;break e;case 3:nr=a.stateNode.containerInfo,Nn=!0;break e;case 4:nr=a.stateNode.containerInfo,Nn=!0;break e}a=a.return}if(nr===null)throw Error(oe(160));$6(o,s,i),nr=null,Nn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){At(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)U6(t,e),t=t.sibling}function U6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(An(t,e),Wn(e),n&4){try{Cc(3,e,e.return),Wh(3,e)}catch(_){At(e,e.return,_)}try{Cc(5,e,e.return)}catch(_){At(e,e.return,_)}}break;case 1:An(t,e),Wn(e),n&512&&r!==null&&La(r,r.return);break;case 5:if(An(t,e),Wn(e),n&512&&r!==null&&La(r,r.return),e.flags&32){var i=e.stateNode;try{Ic(i,"")}catch(_){At(e,e.return,_)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&sS(i,o),Qy(a,s);var l=Qy(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?fS(i,h):p==="dangerouslySetInnerHTML"?lS(i,h):p==="children"?Ic(i,h):L1(i,p,h,l)}switch(a){case"input":Gy(i,o);break;case"textarea":aS(i,o);break;case"select":var y=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?$a(i,!!o.multiple,v,!1):y!==!!o.multiple&&(o.defaultValue!=null?$a(i,!!o.multiple,o.defaultValue,!0):$a(i,!!o.multiple,o.multiple?[]:"",!1))}i[$c]=o}catch(_){At(e,e.return,_)}}break;case 6:if(An(t,e),Wn(e),n&4){if(e.stateNode===null)throw Error(oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){At(e,e.return,_)}}break;case 3:if(An(t,e),Wn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Nc(t.containerInfo)}catch(_){At(e,e.return,_)}break;case 4:An(t,e),Wn(e);break;case 13:An(t,e),Wn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(mv=kt())),n&4&&K3(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(mr=(l=mr)||p,An(t,e),mr=l):An(t,e),Wn(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!p&&(e.mode&1)!==0)for(ce=e,p=e.child;p!==null;){for(h=ce=p;ce!==null;){switch(y=ce,v=y.child,y.tag){case 0:case 11:case 14:case 15:Cc(4,y,y.return);break;case 1:La(y,y.return);var w=y.stateNode;if(typeof w.componentWillUnmount=="function"){n=y,r=y.return;try{t=n,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(_){At(n,r,_)}}break;case 5:La(y,y.return);break;case 22:if(y.memoizedState!==null){W3(h);continue}}v!==null?(v.return=y,ce=v):W3(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=cS("display",s))}catch(_){At(e,e.return,_)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(_){At(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:An(t,e),Wn(e),n&4&&K3(e);break;case 21:break;default:An(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(F6(r)){var n=r;break e}r=r.return}throw Error(oe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ic(i,""),n.flags&=-33);var o=H3(e);I1(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=H3(e);D1(e,a,s);break;default:throw Error(oe(161))}}catch(u){At(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eU(e,t,r){ce=e,V6(e,t,r)}function V6(e,t,r){for(var n=(e.mode&1)!==0;ce!==null;){var i=ce,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||nh;if(!s){var a=i.alternate,u=a!==null&&a.memoizedState!==null||mr;a=nh;var l=mr;if(nh=s,(mr=u)&&!l)for(ce=i;ce!==null;)s=ce,u=s.child,s.tag===22&&s.memoizedState!==null?G3(i):u!==null?(u.return=s,ce=u):G3(i);for(;o!==null;)ce=o,V6(o,t,r),o=o.sibling;ce=i,nh=a,mr=l}q3(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,ce=o):q3(e,t,r)}}function q3(e){for(;ce!==null;){var t=ce;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mr||Wh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!mr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Rn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&I3(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}I3(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Nc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}mr||t.flags&512&&P1(t)}catch(y){At(t,t.return,y)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function W3(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ce=r;break}ce=t.return}}function G3(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Wh(4,t)}catch(u){At(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){At(t,i,u)}}var o=t.return;try{P1(t)}catch(u){At(t,o,u)}break;case 5:var s=t.return;try{P1(t)}catch(u){At(t,s,u)}}}catch(u){At(t,t.return,u)}if(t===e){ce=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ce=a;break}ce=t.return}}var tU=Math.ceil,Mh=xi.ReactCurrentDispatcher,hv=xi.ReactCurrentOwner,pn=xi.ReactCurrentBatchConfig,Ce=0,Qt=null,Vt=null,ir=0,Xr=0,Fa=mo(0),Wt=0,Hc=null,Ts=0,Gh=0,pv=0,Tc=null,Mr=null,mv=0,Xa=1/0,fi=null,kh=!1,O1=null,uo=null,ih=!1,ro=null,Lh=0,Pc=0,A1=null,dh=-1,hh=0;function Cr(){return(Ce&6)!==0?kt():dh!==-1?dh:dh=kt()}function lo(e){return(e.mode&1)===0?1:(Ce&2)!==0&&ir!==0?ir&-ir:$$.transition!==null?(hh===0&&(hh=_S()),hh):(e=Oe,e!==0||(e=window.event,e=e===void 0?16:OS(e.type)),e)}function Ln(e,t,r,n){if(50<Pc)throw Pc=0,A1=null,Error(oe(185));Kc(e,r,n),((Ce&2)===0||e!==Qt)&&(e===Qt&&((Ce&2)===0&&(Gh|=r),Wt===4&&eo(e,ir)),$r(e,n),r===1&&Ce===0&&(t.mode&1)===0&&(Xa=kt()+500,Hh&&go()))}function $r(e,t){var r=e.callbackNode;VF(e,t);var n=wh(e,e===Qt?ir:0);if(n===0)r!==null&&r3(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&r3(r),t===1)e.tag===0?F$(Y3.bind(null,e)):YS(Y3.bind(null,e)),N$(function(){(Ce&6)===0&&go()}),r=null;else{switch(SS(n)){case 1:r=B1;break;case 4:r=bS;break;case 16:r=vh;break;case 536870912:r=ES;break;default:r=vh}r=G6(r,B6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function B6(e,t){if(dh=-1,hh=0,(Ce&6)!==0)throw Error(oe(327));var r=e.callbackNode;if(za()&&e.callbackNode!==r)return null;var n=wh(e,e===Qt?ir:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Fh(e,n);else{t=n;var i=Ce;Ce|=2;var o=z6();(Qt!==e||ir!==t)&&(fi=null,Xa=kt()+500,bs(e,t));do try{iU();break}catch(a){j6(e,a)}while(1);ev(),Mh.current=o,Ce=i,Vt!==null?t=0:(Qt=null,ir=0,t=Wt)}if(t!==0){if(t===2&&(i=i1(e),i!==0&&(n=i,t=R1(e,i))),t===1)throw r=Hc,bs(e,0),eo(e,n),$r(e,kt()),r;if(t===6)eo(e,n);else{if(i=e.current.alternate,(n&30)===0&&!rU(i)&&(t=Fh(e,n),t===2&&(o=i1(e),o!==0&&(n=o,t=R1(e,o))),t===1))throw r=Hc,bs(e,0),eo(e,n),$r(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(oe(345));case 2:ys(e,Mr,fi);break;case 3:if(eo(e,n),(n&130023424)===n&&(t=mv+500-kt(),10<t)){if(wh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Cr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=d1(ys.bind(null,e,Mr,fi),t);break}ys(e,Mr,fi);break;case 4:if(eo(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-kn(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tU(n/1960))-n,10<n){e.timeoutHandle=d1(ys.bind(null,e,Mr,fi),n);break}ys(e,Mr,fi);break;case 5:ys(e,Mr,fi);break;default:throw Error(oe(329))}}}return $r(e,kt()),e.callbackNode===r?B6.bind(null,e):null}function R1(e,t){var r=Tc;return e.current.memoizedState.isDehydrated&&(bs(e,t).flags|=256),e=Fh(e,t),e!==2&&(t=Mr,Mr=r,t!==null&&N1(t)),e}function N1(e){Mr===null?Mr=e:Mr.push.apply(Mr,e)}function rU(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Fn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eo(e,t){for(t&=~pv,t&=~Gh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-kn(t),n=1<<r;e[r]=-1,t&=~n}}function Y3(e){if((Ce&6)!==0)throw Error(oe(327));za();var t=wh(e,0);if((t&1)===0)return $r(e,kt()),null;var r=Fh(e,t);if(e.tag!==0&&r===2){var n=i1(e);n!==0&&(t=n,r=R1(e,n))}if(r===1)throw r=Hc,bs(e,0),eo(e,t),$r(e,kt()),r;if(r===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ys(e,Mr,fi),$r(e,kt()),null}function gv(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(Xa=kt()+500,Hh&&go())}}function Ps(e){ro!==null&&ro.tag===0&&(Ce&6)===0&&za();var t=Ce;Ce|=1;var r=pn.transition,n=Oe;try{if(pn.transition=null,Oe=1,e)return e()}finally{Oe=n,pn.transition=r,Ce=t,(Ce&6)===0&&go()}}function yv(){Xr=Fa.current,xt(Fa)}function bs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,R$(r)),Vt!==null)for(r=Vt.return;r!==null;){var n=r;switch(J1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Sh();break;case 3:Ga(),xt(Lr),xt(gr),sv();break;case 5:ov(n);break;case 4:Ga();break;case 13:xt(Tt);break;case 19:xt(Tt);break;case 10:tv(n.type._context);break;case 22:case 23:yv()}r=r.return}if(Qt=e,Vt=e=co(e.current,null),ir=Xr=t,Wt=0,Hc=null,pv=Gh=Ts=0,Mr=Tc=null,ws!==null){for(t=0;t<ws.length;t++)if(r=ws[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}ws=null}return e}function j6(e,t){do{var r=Vt;try{if(ev(),lh.current=Nh,Rh){for(var n=Pt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Rh=!1}if(Cs=0,Zt=qt=Pt=null,Sc=!1,Bc=0,hv.current=null,r===null||r.return===null){Wt=1,Hc=t,Vt=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=ir,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,p=a,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var y=p.alternate;y?(p.updateQueue=y.updateQueue,p.memoizedState=y.memoizedState,p.lanes=y.lanes):(p.updateQueue=null,p.memoizedState=null)}var v=L3(s);if(v!==null){v.flags&=-257,F3(v,s,a,o,t),v.mode&1&&k3(o,l,t),t=v,u=l;var w=t.updateQueue;if(w===null){var _=new Set;_.add(u),t.updateQueue=_}else w.add(u);break e}else{if((t&1)===0){k3(o,l,t),vv();break e}u=Error(oe(426))}}else if(St&&a.mode&1){var D=L3(s);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),F3(D,s,a,o,t),Z1(Ya(u,a));break e}}o=u=Ya(u,a),Wt!==4&&(Wt=2),Tc===null?Tc=[o]:Tc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=C6(o,u,t);D3(o,C);break e;case 1:a=u;var I=o.type,P=o.stateNode;if((o.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(uo===null||!uo.has(P)))){o.flags|=65536,t&=-t,o.lanes|=t;var R=T6(o,a,t);D3(o,R);break e}}o=o.return}while(o!==null)}K6(r)}catch(U){t=U,Vt===r&&r!==null&&(Vt=r=r.return);continue}break}while(1)}function z6(){var e=Mh.current;return Mh.current=Nh,e===null?Nh:e}function vv(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),Qt===null||(Ts&268435455)===0&&(Gh&268435455)===0||eo(Qt,ir)}function Fh(e,t){var r=Ce;Ce|=2;var n=z6();(Qt!==e||ir!==t)&&(fi=null,bs(e,t));do try{nU();break}catch(i){j6(e,i)}while(1);if(ev(),Ce=r,Mh.current=n,Vt!==null)throw Error(oe(261));return Qt=null,ir=0,Wt}function nU(){for(;Vt!==null;)H6(Vt)}function iU(){for(;Vt!==null&&!AF();)H6(Vt)}function H6(e){var t=W6(e.alternate,e,Xr);e.memoizedProps=e.pendingProps,t===null?K6(e):Vt=t,hv.current=null}function K6(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=X$(r,t,Xr),r!==null){Vt=r;return}}else{if(r=J$(r,t),r!==null){r.flags&=32767,Vt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Wt=6,Vt=null;return}}if(t=t.sibling,t!==null){Vt=t;return}Vt=t=e}while(t!==null);Wt===0&&(Wt=5)}function ys(e,t,r){var n=Oe,i=pn.transition;try{pn.transition=null,Oe=1,oU(e,t,r,n)}finally{pn.transition=i,Oe=n}return null}function oU(e,t,r,n){do za();while(ro!==null);if((Ce&6)!==0)throw Error(oe(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(oe(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(BF(e,o),e===Qt&&(Vt=Qt=null,ir=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||ih||(ih=!0,G6(vh,function(){return za(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=pn.transition,pn.transition=null;var s=Oe;Oe=1;var a=Ce;Ce|=4,hv.current=null,Q$(e,r),U6(r,e),P$(c1),xh=!!l1,c1=l1=null,e.current=r,eU(r,e,i),RF(),Ce=a,Oe=s,pn.transition=o}else e.current=r;if(ih&&(ih=!1,ro=e,Lh=i),o=e.pendingLanes,o===0&&(uo=null),kF(r.stateNode,n),$r(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(kh)throw kh=!1,e=O1,O1=null,e;return(Lh&1)!==0&&e.tag!==0&&za(),o=e.pendingLanes,(o&1)!==0?e===A1?Pc++:(Pc=0,A1=e):Pc=0,go(),null}function za(){if(ro!==null){var e=SS(Lh),t=pn.transition,r=Oe;try{if(pn.transition=null,Oe=16>e?16:e,ro===null)var n=!1;else{if(e=ro,ro=null,Lh=0,(Ce&6)!==0)throw Error(oe(331));var i=Ce;for(Ce|=4,ce=e.current;ce!==null;){var o=ce,s=o.child;if((ce.flags&16)!==0){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(ce=l;ce!==null;){var p=ce;switch(p.tag){case 0:case 11:case 15:Cc(8,p,o)}var h=p.child;if(h!==null)h.return=p,ce=h;else for(;ce!==null;){p=ce;var y=p.sibling,v=p.return;if(L6(p),p===l){ce=null;break}if(y!==null){y.return=v,ce=y;break}ce=v}}}var w=o.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var D=_.sibling;_.sibling=null,_=D}while(_!==null)}}ce=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,ce=s;else e:for(;ce!==null;){if(o=ce,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Cc(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,ce=C;break e}ce=o.return}}var I=e.current;for(ce=I;ce!==null;){s=ce;var P=s.child;if((s.subtreeFlags&2064)!==0&&P!==null)P.return=s,ce=P;else e:for(s=I;ce!==null;){if(a=ce,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Wh(9,a)}}catch(U){At(a,a.return,U)}if(a===s){ce=null;break e}var R=a.sibling;if(R!==null){R.return=a.return,ce=R;break e}ce=a.return}}if(Ce=i,go(),Xn&&typeof Xn.onPostCommitFiberRoot=="function")try{Xn.onPostCommitFiberRoot(Uh,e)}catch(U){}n=!0}return n}finally{Oe=r,pn.transition=t}}return!1}function X3(e,t,r){t=Ya(r,t),t=C6(e,t,1),e=ao(e,t,1),t=Cr(),e!==null&&(Kc(e,1,t),$r(e,t))}function At(e,t,r){if(e.tag===3)X3(e,e,r);else for(;t!==null;){if(t.tag===3){X3(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(uo===null||!uo.has(n))){e=Ya(r,e),e=T6(t,e,1),t=ao(t,e,1),e=Cr(),t!==null&&(Kc(t,1,e),$r(t,e));break}}t=t.return}}function sU(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Cr(),e.pingedLanes|=e.suspendedLanes&r,Qt===e&&(ir&r)===r&&(Wt===4||Wt===3&&(ir&130023424)===ir&&500>kt()-mv?bs(e,0):pv|=r),$r(e,t)}function q6(e,t){t===0&&((e.mode&1)===0?t=1:(t=Hd,Hd<<=1,(Hd&130023424)===0&&(Hd=4194304)));var r=Cr();e=vi(e,t),e!==null&&(Kc(e,t,r),$r(e,r))}function aU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),q6(e,r)}function uU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),q6(e,r)}var W6;W6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lr.current)kr=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return kr=!1,Y$(e,t,r);kr=(e.flags&131072)!==0}else kr=!1,St&&(t.flags&1048576)!==0&&XS(t,Ph,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;fh(e,t),e=t.pendingProps;var i=Ka(t,gr.current);ja(t,r),i=uv(null,t,n,e,i,r);var o=lv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fr(n)?(o=!0,Ch(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nv(t),i.updater=Kh,t.stateNode=i,i._reactInternals=t,w1(t,n,e,r),t=E1(null,t,n,!0,o,r)):(t.tag=0,St&&o&&X1(t),Sr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(fh(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=cU(n),e=Rn(n,e),i){case 0:t=b1(null,t,n,e,r);break e;case 1:t=V3(null,t,n,e,r);break e;case 11:t=$3(null,t,n,e,r);break e;case 14:t=U3(null,t,n,Rn(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),b1(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),V3(e,t,n,i,r);case 3:e:{if(O6(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,e6(e,t),Oh(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ya(Error(oe(423)),t),t=B3(e,t,n,r,i);break e}else if(n!==i){i=Ya(Error(oe(424)),t),t=B3(e,t,n,r,i);break e}else for(Jr=so(t.stateNode.containerInfo.firstChild),Zr=t,St=!0,Mn=null,r=i6(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qa(),n===i){t=wi(e,t,r);break e}Sr(e,t,n,r)}t=t.child}return t;case 5:return o6(t),e===null&&g1(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,f1(n,i)?s=null:o!==null&&f1(n,o)&&(t.flags|=32),I6(e,t),Sr(e,t,s,r),t.child;case 6:return e===null&&g1(t),null;case 13:return A6(e,t,r);case 4:return iv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Wa(t,null,n,r):Sr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),$3(e,t,n,i,r);case 7:return Sr(e,t,t.pendingProps,r),t.child;case 8:return Sr(e,t,t.pendingProps.children,r),t.child;case 12:return Sr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Le(Dh,n._currentValue),n._currentValue=s,o!==null)if(Fn(o.value,s)){if(o.children===i.children&&!Lr.current){t=wi(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=mi(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),y1(o.return,r,t),a.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(oe(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),y1(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Sr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ja(t,r),i=mn(i),n=n(i),t.flags|=1,Sr(e,t,n,r),t.child;case 14:return n=t.type,i=Rn(n,t.pendingProps),i=Rn(n.type,i),U3(e,t,n,i,r);case 15:return P6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Rn(n,i),fh(e,t),t.tag=1,Fr(n)?(e=!0,Ch(t)):e=!1,ja(t,r),r6(t,n,i),w1(t,n,i,r),E1(null,t,n,!0,e,r);case 19:return R6(e,t,r);case 22:return D6(e,t,r)}throw Error(oe(156,t.tag))};function G6(e,t){return xS(e,t)}function lU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(e,t,r,n){return new lU(e,t,r,n)}function wv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cU(e){if(typeof e=="function")return wv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$1)return 11;if(e===U1)return 14}return 2}function co(e,t){var r=e.alternate;return r===null?(r=hn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ph(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")wv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Pa:return Es(r.children,i,o,t);case F1:s=8,i|=8;break;case zy:return e=hn(12,r,t,i|2),e.elementType=zy,e.lanes=o,e;case Hy:return e=hn(13,r,t,i),e.elementType=Hy,e.lanes=o,e;case Ky:return e=hn(19,r,t,i),e.elementType=Ky,e.lanes=o,e;case nS:return Yh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tS:s=10;break e;case rS:s=9;break e;case $1:s=11;break e;case U1:s=14;break e;case Ji:s=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=hn(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Es(e,t,r,n){return e=hn(7,e,n,t),e.lanes=r,e}function Yh(e,t,r,n){return e=hn(22,e,n,t),e.elementType=nS,e.lanes=r,e.stateNode={isHidden:!1},e}function Vy(e,t,r){return e=hn(6,e,null,t),e.lanes=r,e}function By(e,t,r){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fU(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sy(0),this.expirationTimes=Sy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sy(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xv(e,t,r,n,i,o,s,a,u){return e=new fU(e,t,r,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nv(o),e}function dU(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ta,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Y6(e){if(!e)return ho;e=e._reactInternals;e:{if(Is(e)!==e||e.tag!==1)throw Error(oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(oe(171))}if(e.tag===1){var r=e.type;if(Fr(r))return GS(e,r,t)}return t}function X6(e,t,r,n,i,o,s,a,u){return e=xv(r,n,!0,e,i,o,s,a,u),e.context=Y6(null),r=e.current,n=Cr(),i=lo(r),o=mi(n,i),o.callback=t!=null?t:null,ao(r,o,i),e.current.lanes=i,Kc(e,i,n),$r(e,n),e}function Xh(e,t,r,n){var i=t.current,o=Cr(),s=lo(i);return r=Y6(r),t.context===null?t.context=r:t.pendingContext=r,t=mi(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ao(i,t,s),e!==null&&(Ln(e,i,s,o),uh(e,i,s)),s}function $h(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function J3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function bv(e,t){J3(e,t),(e=e.alternate)&&J3(e,t)}function hU(){return null}var J6=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ev(e){this._internalRoot=e}Jh.prototype.render=Ev.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));Xh(e,t,null,null)};Jh.prototype.unmount=Ev.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ps(function(){Xh(null,e,null,null)}),t[yi]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=PS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Qi.length&&t!==0&&t<Qi[r].priority;r++);Qi.splice(r,0,e),r===0&&IS(e)}};function _v(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Z3(){}function pU(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=$h(s);o.call(l)}}var s=X6(t,n,e,0,null,!1,!1,"",Z3);return e._reactRootContainer=s,e[yi]=s.current,Lc(e.nodeType===8?e.parentNode:e),Ps(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=$h(u);a.call(l)}}var u=xv(e,0,!1,null,null,!1,!1,"",Z3);return e._reactRootContainer=u,e[yi]=u.current,Lc(e.nodeType===8?e.parentNode:e),Ps(function(){Xh(t,u,r,n)}),u}function Qh(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var u=$h(s);a.call(u)}}Xh(t,s,e,i)}else s=pU(r,t,e,i,n);return $h(s)}CS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=yc(t.pendingLanes);r!==0&&(j1(t,r|1),$r(t,kt()),(Ce&6)===0&&(Xa=kt()+500,go()))}break;case 13:Ps(function(){var n=vi(e,1);if(n!==null){var i=Cr();Ln(n,e,1,i)}}),bv(e,1)}};z1=function(e){if(e.tag===13){var t=vi(e,134217728);if(t!==null){var r=Cr();Ln(t,e,134217728,r)}bv(e,134217728)}};TS=function(e){if(e.tag===13){var t=lo(e),r=vi(e,t);if(r!==null){var n=Cr();Ln(r,e,t,n)}bv(e,t)}};PS=function(){return Oe};DS=function(e,t){var r=Oe;try{return Oe=e,t()}finally{Oe=r}};t1=function(e,t,r){switch(t){case"input":if(Gy(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=zh(n);if(!i)throw Error(oe(90));oS(n),Gy(n,i)}}}break;case"textarea":aS(e,r);break;case"select":t=r.value,t!=null&&$a(e,!!r.multiple,t,!1)}};pS=gv;mS=Ps;var mU={usingClientEntryPoint:!1,Events:[Wc,Aa,zh,dS,hS,gv]},hc={findFiberByHostInstance:vs,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},gU={bundleType:hc.bundleType,version:hc.version,rendererPackageName:hc.rendererPackageName,rendererConfig:hc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vS(e),e===null?null:e.stateNode},findFiberByHostInstance:hc.findFiberByHostInstance||hU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(pc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!pc.isDisabled&&pc.supportsFiber))try{Uh=pc.inject(gU),Xn=pc}catch(e){}var pc;tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mU;tn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_v(t))throw Error(oe(200));return dU(e,t,null,r)};tn.createRoot=function(e,t){if(!_v(e))throw Error(oe(299));var r=!1,n="",i=J6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=xv(e,1,!1,null,null,r,!1,n,i),e[yi]=t.current,Lc(e.nodeType===8?e.parentNode:e),new Ev(t)};tn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=vS(t),e=e===null?null:e.stateNode,e};tn.flushSync=function(e){return Ps(e)};tn.hydrate=function(e,t,r){if(!Zh(t))throw Error(oe(200));return Qh(null,e,t,!0,r)};tn.hydrateRoot=function(e,t,r){if(!_v(e))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=J6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=X6(t,null,e,1,r!=null?r:null,i,!1,o,s),e[yi]=t.current,Lc(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jh(t)};tn.render=function(e,t,r){if(!Zh(t))throw Error(oe(200));return Qh(null,e,t,!1,r)};tn.unmountComponentAtNode=function(e){if(!Zh(e))throw Error(oe(40));return e._reactRootContainer?(Ps(function(){Qh(null,null,e,!1,function(){e._reactRootContainer=null,e[yi]=null})}),!0):!1};tn.unstable_batchedUpdates=gv;tn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zh(r))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return Qh(e,t,r,!1,n)};tn.version="18.2.0-next-9e3b772b8-20220608"});var Os=ee((dte,e5)=>{"use strict";c();d();f();function Q6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q6)}catch(e){console.error(e)}}Q6(),e5.exports=Z6()});var r5=ee(Sv=>{"use strict";c();d();f();var t5=Os();Sv.createRoot=t5.createRoot,Sv.hydrateRoot=t5.hydrateRoot;var hte});var i5=ee((mte,n5)=>{"use strict";c();d();f();var yU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n5.exports=yU});var u5=ee((gte,a5)=>{"use strict";c();d();f();var vU=i5();function o5(){}function s5(){}s5.resetWarningCache=o5;a5.exports=function(){function e(n,i,o,s,a,u){if(u!==vU){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s5,resetWarningCache:o5};return r.PropTypes=r,r}});var c5=ee((wte,l5)=>{c();d();f();l5.exports=u5()();var yte,vte});var H5=ee(Av=>{"use strict";c();d();f();Object.defineProperty(Av,"__esModule",{value:!0});function GU(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}Av.default=GU});var K5=ee(Rv=>{"use strict";c();d();f();Object.defineProperty(Rv,"__esModule",{value:!0});function YU(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var XU=YU(H5()),JU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ZU=XU(function(e){return JU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});Rv.default=ZU});var hT=ee((Ihe,rm)=>{c();d();f();var j4,z4,H4,K4,q4,W4,G4,Y4,X4,J4,Z4,Q4,eT,em,Dw,tT,rT,nT,ju,iT,oT,sT,aT,uT,lT,cT,fT,dT,tm;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof rm=="object"&&typeof rm.exports=="object"?e(r(t,r(rm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])};j4=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},z4=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},H4=function(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o},K4=function(n,i,o,s){var a=arguments.length,u=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,i,o,s);else for(var p=n.length-1;p>=0;p--)(l=n[p])&&(u=(a<3?l(u):a>3?l(i,o,u):l(i,o))||u);return a>3&&u&&Object.defineProperty(i,o,u),u},q4=function(n,i){return function(o,s){i(o,s,n)}},W4=function(n,i,o,s,a,u){function l(R){if(R!==void 0&&typeof R!="function")throw new TypeError("Function expected");return R}for(var p=s.kind,h=p==="getter"?"get":p==="setter"?"set":"value",y=!i&&n?s.static?n:n.prototype:null,v=i||(y?Object.getOwnPropertyDescriptor(y,s.name):{}),w,_=!1,D=o.length-1;D>=0;D--){var C={};for(var I in s)C[I]=I==="access"?{}:s[I];for(var I in s.access)C.access[I]=s.access[I];C.addInitializer=function(R){if(_)throw new TypeError("Cannot add initializers after decoration has completed");u.push(l(R||null))};var P=(0,o[D])(p==="accessor"?{get:v.get,set:v.set}:v[h],C);if(p==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(w=l(P.get))&&(v.get=w),(w=l(P.set))&&(v.set=w),(w=l(P.init))&&a.push(w)}else(w=l(P))&&(p==="field"?a.push(w):v[h]=w)}y&&Object.defineProperty(y,s.name,v),_=!0},G4=function(n,i,o){for(var s=arguments.length>2,a=0;a<i.length;a++)o=s?i[a].call(n,o):i[a].call(n);return s?o:void 0},Y4=function(n){return typeof n=="symbol"?n:"".concat(n)},X4=function(n,i,o){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:o?"".concat(o," ",i):i})},J4=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},Z4=function(n,i,o,s){function a(u){return u instanceof o?u:new o(function(l){l(u)})}return new(o||(o=Promise))(function(u,l){function p(v){try{y(s.next(v))}catch(w){l(w)}}function h(v){try{y(s.throw(v))}catch(w){l(w)}}function y(v){v.done?u(v.value):a(v.value).then(p,h)}y((s=s.apply(n,i||[])).next())})},Q4=function(n,i){var o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(y){return function(v){return h([y,v])}}function h(y){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,y[0]&&(o=0)),o;)try{if(s=1,a&&(u=y[0]&2?a.return:y[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,y[1])).done)return u;switch(a=0,u&&(y=[y[0]&2,u.value]),y[0]){case 0:case 1:u=y;break;case 4:return o.label++,{value:y[1],done:!1};case 5:o.label++,a=y[1],y=[0];continue;case 7:y=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(y[0]===6||y[0]===2)){o=0;continue}if(y[0]===3&&(!u||y[1]>u[0]&&y[1]<u[3])){o.label=y[1];break}if(y[0]===6&&o.label<u[1]){o.label=u[1],u=y;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(y);break}u[2]&&o.ops.pop(),o.trys.pop();continue}y=i.call(n,o)}catch(v){y=[6,v],a=0}finally{s=u=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}},eT=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&tm(i,n,o)},tm=Object.create?function(n,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,a)}:function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]},em=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],s=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Dw=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,u=[],l;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(p){l={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(l)throw l.error}}return u},tT=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Dw(arguments[i]));return n},rT=function(){for(var n=0,i=0,o=arguments.length;i<o;i++)n+=arguments[i].length;for(var s=Array(n),a=0,i=0;i<o;i++)for(var u=arguments[i],l=0,p=u.length;l<p;l++,a++)s[a]=u[l];return s},nT=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))},ju=function(n){return this instanceof ju?(this.v=n,this):new ju(n)},iT=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,u=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(_){s[_]&&(a[_]=function(D){return new Promise(function(C,I){u.push([_,D,C,I])>1||p(_,D)})})}function p(_,D){try{h(s[_](D))}catch(C){w(u[0][3],C)}}function h(_){_.value instanceof ju?Promise.resolve(_.value.v).then(y,v):w(u[0][2],_)}function y(_){p("next",_)}function v(_){p("throw",_)}function w(_,D){_(D),u.shift(),u.length&&p(u[0][0],u[0][1])}},oT=function(n){var i,o;return i={},s("next"),s("throw",function(a){throw a}),s("return"),i[Symbol.iterator]=function(){return this},i;function s(a,u){i[a]=n[a]?function(l){return(o=!o)?{value:ju(n[a](l)),done:!1}:u?u(l):l}:u}},sT=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],o;return i?i.call(n):(n=typeof em=="function"?em(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(u){o[u]=n[u]&&function(l){return new Promise(function(p,h){l=n[u](l),a(p,h,l.done,l.value)})}}function a(u,l,p,h){Promise.resolve(h).then(function(y){u({value:y,done:p})},l)}},aT=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};uT=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var o in n)o!=="default"&&Object.prototype.hasOwnProperty.call(n,o)&&tm(i,n,o);return r(i,n),i},lT=function(n){return n&&n.__esModule?n:{default:n}},cT=function(n,i,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(n):s?s.value:i.get(n)},fT=function(n,i,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,o):a?a.value=o:i.set(n,o),o},dT=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",j4),e("__assign",z4),e("__rest",H4),e("__decorate",K4),e("__param",q4),e("__esDecorate",W4),e("__runInitializers",G4),e("__propKey",Y4),e("__setFunctionName",X4),e("__metadata",J4),e("__awaiter",Z4),e("__generator",Q4),e("__exportStar",eT),e("__createBinding",tm),e("__values",em),e("__read",Dw),e("__spread",tT),e("__spreadArrays",rT),e("__spreadArray",nT),e("__await",ju),e("__asyncGenerator",iT),e("__asyncDelegator",oT),e("__asyncValues",sT),e("__makeTemplateObject",aT),e("__importStar",uT),e("__importDefault",lT),e("__classPrivateFieldGet",cT),e("__classPrivateFieldSet",fT),e("__classPrivateFieldIn",dT)})});var ZT=ee((Tme,JT)=>{c();d();f();JT.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}});var tP=ee((Pme,eP)=>{"use strict";c();d();f();var nz=ZT(),QT={"text/plain":"Text","text/html":"Url",default:"Text"},iz="Copy to clipboard: #{key}, Enter";function oz(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function sz(e,t){var r,n,i,o,s,a,u=!1;t||(t={}),r=t.debug||!1;try{i=nz(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=QT[t.format]||QT.default;window.clipboardData.setData(h,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(h){r&&console.error("unable to copy using clipboardData: ",h),r&&console.error("falling back to prompt"),n=oz("message"in t?t.message:iz),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return u}eP.exports=sz});var nP=ee((Dme,rP)=>{c();d();f();rP.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Ao=ee(Ws=>{c();d();f();var $w,az=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ws.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ws.getSymbolTotalCodewords=function(t){return az[t]};Ws.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ws.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');$w=t};Ws.isKanjiModeEnabled=function(){return typeof $w<"u"};Ws.toSJIS=function(t){return $w(t)}});var dm=ee(_n=>{c();d();f();_n.L={bit:1};_n.M={bit:0};_n.Q={bit:3};_n.H={bit:2};function uz(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return _n.L;case"m":case"medium":return _n.M;case"q":case"quartile":return _n.Q;case"h":case"high":return _n.H;default:throw new Error("Unknown EC Level: "+e)}}_n.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};_n.from=function(t,r){if(_n.isValid(t))return t;try{return uz(t)}catch(n){return r}}});var sP=ee((Ame,oP)=>{c();d();f();function iP(){this.buffer=[],this.length=0}iP.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};oP.exports=iP});var uP=ee((Rme,aP)=>{c();d();f();function xf(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}xf.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};xf.prototype.get=function(e,t){return this.data[e*this.size+t]};xf.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};xf.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};aP.exports=xf});var lP=ee(hm=>{c();d();f();var lz=Ao().getSymbolSize;hm.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=lz(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};hm.getPositions=function(t){let r=[],n=hm.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var dP=ee(fP=>{c();d();f();var cz=Ao().getSymbolSize,cP=7;fP.getPositions=function(t){let r=cz(t);return[[0,0],[r-cP,0],[0,r-cP]]}});var hP=ee($e=>{c();d();f();$e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Gs={N1:3,N2:3,N3:40,N4:10};$e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};$e.from=function(t){return $e.isValid(t)?parseInt(t,10):void 0};$e.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let u=0;u<r;u++){i=o=0,s=a=null;for(let l=0;l<r;l++){let p=t.get(u,l);p===s?i++:(i>=5&&(n+=Gs.N1+(i-5)),s=p,i=1),p=t.get(l,u),p===a?o++:(o>=5&&(n+=Gs.N1+(o-5)),a=p,o=1)}i>=5&&(n+=Gs.N1+(i-5)),o>=5&&(n+=Gs.N1+(o-5))}return n};$e.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*Gs.N2};$e.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*Gs.N3};$e.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*Gs.N4};function fz(e,t,r){switch(e){case $e.Patterns.PATTERN000:return(t+r)%2===0;case $e.Patterns.PATTERN001:return t%2===0;case $e.Patterns.PATTERN010:return r%3===0;case $e.Patterns.PATTERN011:return(t+r)%3===0;case $e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case $e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case $e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case $e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}$e.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,fz(t,o,i))};$e.getBestMask=function(t,r){let n=Object.keys($e.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),$e.applyMask(s,t);let a=$e.getPenaltyN1(t)+$e.getPenaltyN2(t)+$e.getPenaltyN3(t)+$e.getPenaltyN4(t);$e.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var Vw=ee(Uw=>{c();d();f();var Ro=dm(),pm=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],mm=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Uw.getBlocksCount=function(t,r){switch(r){case Ro.L:return pm[(t-1)*4+0];case Ro.M:return pm[(t-1)*4+1];case Ro.Q:return pm[(t-1)*4+2];case Ro.H:return pm[(t-1)*4+3];default:return}};Uw.getTotalCodewordsCount=function(t,r){switch(r){case Ro.L:return mm[(t-1)*4+0];case Ro.M:return mm[(t-1)*4+1];case Ro.Q:return mm[(t-1)*4+2];case Ro.H:return mm[(t-1)*4+3];default:return}}});var pP=ee(ym=>{c();d();f();var bf=new Uint8Array(512),gm=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)bf[r]=t,gm[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)bf[r]=bf[r-255]})();ym.log=function(t){if(t<1)throw new Error("log("+t+")");return gm[t]};ym.exp=function(t){return bf[t]};ym.mul=function(t,r){return t===0||r===0?0:bf[gm[t]+gm[r]]}});var mP=ee(Ef=>{c();d();f();var Bw=pP();Ef.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=Bw.mul(t[i],r[o]);return n};Ef.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=Bw.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};Ef.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=Ef.mul(r,new Uint8Array([1,Bw.exp(n)]));return r}});var vP=ee((Ume,yP)=>{c();d();f();var gP=mP();function jw(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}jw.prototype.initialize=function(t){this.degree=t,this.genPoly=gP.generateECPolynomial(this.degree)};jw.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=gP.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};yP.exports=jw});var zw=ee(wP=>{c();d();f();wP.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Hw=ee(Ii=>{c();d();f();var xP="[0-9]+",dz="[A-Z $%*+\\-./:]+",_f="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_f=_f.replace(/u/g,"\\u");var hz="(?:(?![A-Z0-9 $%*+\\-./:]|"+_f+`)(?:.|[\r
9
- ]))+`;Ii.KANJI=new RegExp(_f,"g");Ii.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Ii.BYTE=new RegExp(hz,"g");Ii.NUMERIC=new RegExp(xP,"g");Ii.ALPHANUMERIC=new RegExp(dz,"g");var pz=new RegExp("^"+_f+"$"),mz=new RegExp("^"+xP+"$"),gz=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ii.testKanji=function(t){return pz.test(t)};Ii.testNumeric=function(t){return mz.test(t)};Ii.testAlphanumeric=function(t){return gz.test(t)}});var No=ee(Ht=>{c();d();f();var yz=zw(),Kw=Hw();Ht.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};Ht.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};Ht.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};Ht.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};Ht.MIXED={bit:-1};Ht.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!yz.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Ht.getBestModeForData=function(t){return Kw.testNumeric(t)?Ht.NUMERIC:Kw.testAlphanumeric(t)?Ht.ALPHANUMERIC:Kw.testKanji(t)?Ht.KANJI:Ht.BYTE};Ht.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ht.isValid=function(t){return t&&t.bit&&t.ccBits};function vz(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ht.NUMERIC;case"alphanumeric":return Ht.ALPHANUMERIC;case"kanji":return Ht.KANJI;case"byte":return Ht.BYTE;default:throw new Error("Unknown mode: "+e)}}Ht.from=function(t,r){if(Ht.isValid(t))return t;try{return vz(t)}catch(n){return r}}});var CP=ee(Ys=>{c();d();f();var vm=Ao(),wz=Vw(),bP=dm(),Mo=No(),qw=zw(),_P=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,EP=vm.getBCHDigit(_P);function xz(e,t,r){for(let n=1;n<=40;n++)if(t<=Ys.getCapacity(n,r,e))return n}function SP(e,t){return Mo.getCharCountIndicator(e,t)+4}function bz(e,t){let r=0;return e.forEach(function(n){r+=SP(n.mode,t)+n.getBitsLength()}),r}function Ez(e,t){for(let r=1;r<=40;r++)if(bz(e,r)<=Ys.getCapacity(r,t,Mo.MIXED))return r}Ys.from=function(t,r){return qw.isValid(t)?parseInt(t,10):r};Ys.getCapacity=function(t,r,n){if(!qw.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Mo.BYTE);let i=vm.getSymbolTotalCodewords(t),o=wz.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===Mo.MIXED)return s;let a=s-SP(n,t);switch(n){case Mo.NUMERIC:return Math.floor(a/10*3);case Mo.ALPHANUMERIC:return Math.floor(a/11*2);case Mo.KANJI:return Math.floor(a/13);case Mo.BYTE:default:return Math.floor(a/8)}};Ys.getBestVersionForData=function(t,r){let n,i=bP.from(r,bP.M);if(Array.isArray(t)){if(t.length>1)return Ez(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return xz(n.mode,n.getLength(),i)};Ys.getEncodedBits=function(t){if(!qw.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;vm.getBCHDigit(r)-EP>=0;)r^=_P<<vm.getBCHDigit(r)-EP;return t<<12|r}});var IP=ee(DP=>{c();d();f();var Ww=Ao(),PP=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,_z=1<<14|1<<12|1<<10|1<<4|1<<1,TP=Ww.getBCHDigit(PP);DP.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;Ww.getBCHDigit(i)-TP>=0;)i^=PP<<Ww.getBCHDigit(i)-TP;return(n<<10|i)^_z}});var AP=ee((Kme,OP)=>{c();d();f();var Sz=No();function Gu(e){this.mode=Sz.NUMERIC,this.data=e.toString()}Gu.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Gu.prototype.getLength=function(){return this.data.length};Gu.prototype.getBitsLength=function(){return Gu.getBitsLength(this.data.length)};Gu.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};OP.exports=Gu});var NP=ee((qme,RP)=>{c();d();f();var Cz=No(),Gw=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Yu(e){this.mode=Cz.ALPHANUMERIC,this.data=e}Yu.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Yu.prototype.getLength=function(){return this.data.length};Yu.prototype.getBitsLength=function(){return Yu.getBitsLength(this.data.length)};Yu.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Gw.indexOf(this.data[r])*45;n+=Gw.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Gw.indexOf(this.data[r]),6)};RP.exports=Yu});var kP=ee((Wme,MP)=>{"use strict";c();d();f();MP.exports=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var o=t.charCodeAt(i);if(o>=55296&&o<=56319&&n>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,i+=1)}if(o<128){r.push(o);continue}if(o<2048){r.push(o>>6|192),r.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128);continue}if(o>=65536&&o<=1114111){r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var FP=ee((Gme,LP)=>{c();d();f();var Tz=kP(),Pz=No();function Xu(e){this.mode=Pz.BYTE,typeof e=="string"&&(e=Tz(e)),this.data=new Uint8Array(e)}Xu.getBitsLength=function(t){return t*8};Xu.prototype.getLength=function(){return this.data.length};Xu.prototype.getBitsLength=function(){return Xu.getBitsLength(this.data.length)};Xu.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};LP.exports=Xu});var UP=ee((Yme,$P)=>{c();d();f();var Dz=No(),Iz=Ao();function Ju(e){this.mode=Dz.KANJI,this.data=e}Ju.getBitsLength=function(t){return t*13};Ju.prototype.getLength=function(){return this.data.length};Ju.prototype.getBitsLength=function(){return Ju.getBitsLength(this.data.length)};Ju.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=Iz.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
10
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};$P.exports=Ju});var VP=ee((Xme,Yw)=>{"use strict";c();d();f();var Sf={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=Sf.PriorityQueue.make();o.push(t,0);for(var s,a,u,l,p,h,y,v,w;!o.empty();){s=o.pop(),a=s.value,l=s.cost,p=e[a]||{};for(u in p)p.hasOwnProperty(u)&&(h=p[u],y=l+h,v=i[u],w=typeof i[u]>"u",(w||v>y)&&(i[u]=y,o.push(u,y),n[u]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var _=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(_)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=Sf.single_source_shortest_paths(e,t,r);return Sf.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=Sf.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Yw<"u"&&(Yw.exports=Sf)});var GP=ee(Zu=>{c();d();f();var De=No(),zP=AP(),HP=NP(),KP=FP(),qP=UP(),Cf=Hw(),wm=Ao(),Oz=VP();function BP(e){return unescape(encodeURIComponent(e)).length}function Tf(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function WP(e){let t=Tf(Cf.NUMERIC,De.NUMERIC,e),r=Tf(Cf.ALPHANUMERIC,De.ALPHANUMERIC,e),n,i;return wm.isKanjiModeEnabled()?(n=Tf(Cf.BYTE,De.BYTE,e),i=Tf(Cf.KANJI,De.KANJI,e)):(n=Tf(Cf.BYTE_KANJI,De.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Xw(e,t){switch(t){case De.NUMERIC:return zP.getBitsLength(e);case De.ALPHANUMERIC:return HP.getBitsLength(e);case De.KANJI:return qP.getBitsLength(e);case De.BYTE:return KP.getBitsLength(e)}}function Az(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function Rz(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case De.NUMERIC:t.push([n,{data:n.data,mode:De.ALPHANUMERIC,length:n.length},{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.ALPHANUMERIC:t.push([n,{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.KANJI:t.push([n,{data:n.data,mode:De.BYTE,length:BP(n.data)}]);break;case De.BYTE:t.push([{data:n.data,mode:De.BYTE,length:BP(n.data)}])}}return t}function Nz(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let u=0;u<s.length;u++){let l=s[u],p=""+o+u;a.push(p),r[p]={node:l,lastCount:0},n[p]={};for(let h=0;h<i.length;h++){let y=i[h];r[y]&&r[y].node.mode===l.mode?(n[y][p]=Xw(r[y].lastCount+l.length,l.mode)-Xw(r[y].lastCount,l.mode),r[y].lastCount+=l.length):(r[y]&&(r[y].lastCount=l.length),n[y][p]=Xw(l.length,l.mode)+4+De.getCharCountIndicator(l.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function jP(e,t){let r,n=De.getBestModeForData(e);if(r=De.from(t,n),r!==De.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+De.toString(r)+`.
11
- Suggested mode is: `+De.toString(n));switch(r===De.KANJI&&!wm.isKanjiModeEnabled()&&(r=De.BYTE),r){case De.NUMERIC:return new zP(e);case De.ALPHANUMERIC:return new HP(e);case De.KANJI:return new qP(e);case De.BYTE:return new KP(e)}}Zu.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(jP(n,null)):n.data&&r.push(jP(n.data,n.mode)),r},[])};Zu.fromString=function(t,r){let n=WP(t,wm.isKanjiModeEnabled()),i=Rz(n),o=Nz(i,r),s=Oz.find_path(o.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(o.table[s[u]].node);return Zu.fromArray(Az(a))};Zu.rawSplit=function(t){return Zu.fromArray(WP(t,wm.isKanjiModeEnabled()))}});var XP=ee(YP=>{c();d();f();var bm=Ao(),Jw=dm(),Mz=sP(),kz=uP(),Lz=lP(),Fz=dP(),ex=hP(),tx=Vw(),$z=vP(),xm=CP(),Uz=IP(),Vz=No(),Zw=GP();function Bz(e,t){let r=e.size,n=Fz.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?e.set(o+a,s+u,!0,!0):e.set(o+a,s+u,!1,!0))}}function jz(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function zz(e,t){let r=Lz.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function Hz(e,t){let r=e.size,n=xm.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Qw(e,t,r){let n=e.size,i=Uz.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function Kz(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,a-u)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-u,l),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function qz(e,t,r){let n=new Mz;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),Vz.getCharCountIndicator(u.mode,e)),u.write(n)});let i=bm.getSymbolTotalCodewords(e),o=tx.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let u=0;u<a;u++)n.put(u%2?17:236,8);return Wz(n,e,t)}function Wz(e,t,r){let n=bm.getSymbolTotalCodewords(t),i=tx.getTotalCodewordsCount(t,r),o=n-i,s=tx.getBlocksCount(t,r),a=n%s,u=s-a,l=Math.floor(n/s),p=Math.floor(o/s),h=p+1,y=l-p,v=new $z(y),w=0,_=new Array(s),D=new Array(s),C=0,I=new Uint8Array(e.buffer);for(let F=0;F<s;F++){let $=F<u?p:h;_[F]=I.slice(w,w+$),D[F]=v.encode(_[F]),w+=$,C=Math.max(C,$)}let P=new Uint8Array(n),R=0,U,j;for(U=0;U<C;U++)for(j=0;j<s;j++)U<_[j].length&&(P[R++]=_[j][U]);for(U=0;U<y;U++)for(j=0;j<s;j++)P[R++]=D[j][U];return P}function Gz(e,t,r,n){let i;if(Array.isArray(e))i=Zw.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){let p=Zw.rawSplit(e);l=xm.getBestVersionForData(p,r)}i=Zw.fromString(e,l||40)}else throw new Error("Invalid data");let o=xm.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
8
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ay(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function dv(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var mU=typeof WeakMap=="function"?WeakMap:Map;function h6(e,t,r){r=ci(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Dh||(Dh=!0,Ev=n),dv(e,t)},r}function p6(e,t,r){r=ci(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){dv(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){dv(e,t),typeof n!="function"&&(to===null?to=new Set([this]):to.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function _3(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new mU;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=IU.bind(null,e,t,r),t.then(e,e))}function S3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function C3(e,t,r,n,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ci(-1,1),t.tag=2,eo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var gU=mi.ReactCurrentOwner,Rr=!1;function br(e,t,r,n){t.child=e===null?qS(t,null,r,n):Ba(t,e.child,r,n)}function T3(e,t,r,n,i){r=r.render;var o=t.ref;return La(t,i),n=e1(e,t,r,n,o,i),r=t1(),e!==null&&!Rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pi(e,t,i)):(St&&r&&jv(t),t.flags|=1,br(e,t,n,i),t.child)}function P3(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!f1(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,m6(e,t,o,n,i)):(e=ah(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Pc,r(s,n)&&e.ref===t.ref)return pi(e,t,i)}return t.flags|=1,e=no(o,n),e.ref=t.ref,e.return=t,t.child=e}function m6(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Pc(o,n)&&e.ref===t.ref)if(Rr=!1,t.pendingProps=n=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Rr=!0);else return t.lanes=e.lanes,pi(e,t,i)}return hv(e,t,r,n,i)}function g6(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Oa,Hr),Hr|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Le(Oa,Hr),Hr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Le(Oa,Hr),Hr|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Le(Oa,Hr),Hr|=n;return br(e,t,i,r),t.child}function y6(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function hv(e,t,r,n,i){var o=Mr(r)?ys:hr.current;return o=Ua(t,o),La(t,i),r=e1(e,t,r,n,o,i),n=t1(),e!==null&&!Rr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pi(e,t,i)):(St&&n&&jv(t),t.flags|=1,br(e,t,r,i),t.child)}function D3(e,t,r,n,i){if(Mr(r)){var o=!0;vh(t)}else o=!1;if(La(t,i),t.stateNode===null)ih(e,t),HS(t,r,n),fv(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=r.contextType;typeof l=="object"&&l!==null?l=ln(l):(l=Mr(r)?ys:hr.current,l=Ua(t,l));var p=r.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||u!==l)&&w3(t,s,n,l),Ki=!1;var g=t.memoizedState;s.state=g,_h(t,n,s,i),u=t.memoizedState,a!==n||g!==u||Nr.current||Ki?(typeof p=="function"&&(cv(t,r,p,n),u=t.memoizedState),(a=Ki||v3(t,r,a,n,g,u,l))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),s.props=n,s.state=u,s.context=l,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,jS(e,t),a=t.memoizedProps,l=t.type===t.elementType?a:Pn(t.type,a),s.props=l,h=t.pendingProps,g=s.context,u=r.contextType,typeof u=="object"&&u!==null?u=ln(u):(u=Mr(r)?ys:hr.current,u=Ua(t,u));var w=r.getDerivedStateFromProps;(p=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||g!==u)&&w3(t,s,n,u),Ki=!1,g=t.memoizedState,s.state=g,_h(t,n,s,i);var v=t.memoizedState;a!==h||g!==v||Nr.current||Ki?(typeof w=="function"&&(cv(t,r,w,n),v=t.memoizedState),(l=Ki||v3(t,r,l,n,g,v,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,v,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,v,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),s.props=n,s.state=v,s.context=u,n=l):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return pv(e,t,r,n,o,i)}function pv(e,t,r,n,i,o){y6(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return i&&h3(t,r,!1),pi(e,t,o);n=t.stateNode,gU.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ba(t,e.child,null,o),t.child=Ba(t,null,a,o)):br(e,t,a,o),t.memoizedState=n.state,i&&h3(t,r,!0),t.child}function v6(e){var t=e.stateNode;t.pendingContext?d3(e,t.pendingContext,t.pendingContext!==t.context):t.context&&d3(e,t.context,!1),Xv(e,t.containerInfo)}function I3(e,t,r,n,i){return Va(),Hv(i),t.flags|=256,br(e,t,r,n),t.child}var mv={dehydrated:null,treeContext:null,retryLane:0};function gv(e){return{baseLanes:e,cachePool:null,transitions:null}}function w6(e,t,r){var n=t.pendingProps,i=Tt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Le(Tt,i&1),e===null)return uv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=jh(s,n,0,null),e=gs(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=gv(r),t.memoizedState=mv,e):i1(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return yU(e,t,s,n,a,i,r);if(o){o=n.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=no(i,u),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=no(a,o):(o=gs(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?gv(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=mv,n}return o=e.child,e=o.sibling,n=no(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function i1(e,t){return t=jh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yd(e,t,r,n){return n!==null&&Hv(n),Ba(t,e.child,null,r),e=i1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yU(e,t,r,n,i,o,s){if(r)return t.flags&256?(t.flags&=-257,n=Ay(Error(oe(422))),Yd(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=jh({mode:"visible",children:n.children},i,0,null),o=gs(o,i,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Ba(t,e.child,null,s),t.child.memoizedState=gv(s),t.memoizedState=mv,o);if((t.mode&1)===0)return Yd(e,t,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,o=Error(oe(419)),n=Ay(o,n,void 0),Yd(e,t,s,n)}if(a=(s&e.childLanes)!==0,Rr||a){if(n=Xt,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(n.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,hi(e,i),On(n,e,i,-1))}return c1(),n=Ay(Error(oe(421))),Yd(e,t,s,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=AU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Kr=Zi(i.nextSibling),qr=t,St=!0,In=null,e!==null&&(on[sn++]=ui,on[sn++]=li,on[sn++]=vs,ui=e.id,li=e.overflow,vs=t),t=i1(t,n.children),t.flags|=4096,t)}function A3(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),lv(e.return,t,r)}function Oy(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function x6(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(br(e,t,n.children,r),n=Tt.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&A3(e,r,t);else if(e.tag===19)A3(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Le(Tt,n),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Sh(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Oy(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sh(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Oy(t,!0,r,null,o);break;case"together":Oy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ih(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),xs|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,r=no(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=no(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function vU(e,t,r){switch(t.tag){case 3:v6(t),Va();break;case 5:WS(t);break;case 1:Mr(t.type)&&vh(t);break;case 4:Xv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Le(bh,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Le(Tt,Tt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?w6(e,t,r):(Le(Tt,Tt.current&1),e=pi(e,t,r),e!==null?e.sibling:null);Le(Tt,Tt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return x6(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Le(Tt,Tt.current),n)break;return null;case 22:case 23:return t.lanes=0,g6(e,t,r)}return pi(e,t,r)}var b6,yv,E6,_6;b6=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};yv=function(){};E6=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ps(Kn.current);var o=null;switch(r){case"input":i=Uy(e,i),n=Uy(e,n),o=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),o=[];break;case"textarea":i=jy(e,i),n=jy(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=gh)}Hy(r,n);var s;r=null;for(l in i)if(!n.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var a=i[l];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(xc.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in n){var u=n[l];if(a=i!=null?i[l]:void 0,n.hasOwnProperty(l)&&u!==a&&(u!=null||a!=null))if(l==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(r||(r={}),r[s]=u[s])}else r||(o||(o=[]),o.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(xc.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&wt("scroll",e),o||a===u||(o=[])):(o=o||[]).push(l,u))}r&&(o=o||[]).push("style",r);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};_6=function(e,t,r,n){r!==n&&(t.flags|=4)};function ic(e,t){if(!St)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function fr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function wU(e,t,r){var n=t.pendingProps;switch(zv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(t),null;case 1:return Mr(t.type)&&yh(),fr(t),null;case 3:return n=t.stateNode,ja(),xt(Nr),xt(hr),Qv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,In!==null&&(Cv(In),In=null))),yv(e,t),fr(t),null;case 5:Jv(t);var i=ps(Rc.current);if(r=t.type,e!==null&&t.stateNode!=null)E6(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(oe(166));return fr(t),null}if(e=ps(Kn.current),Wd(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[zn]=t,n[Ac]=o,e=(t.mode&1)!==0,r){case"dialog":wt("cancel",n),wt("close",n);break;case"iframe":case"object":case"embed":wt("load",n);break;case"video":case"audio":for(i=0;i<cc.length;i++)wt(cc[i],n);break;case"source":wt("error",n);break;case"img":case"image":case"link":wt("error",n),wt("load",n);break;case"details":wt("toggle",n);break;case"input":$2(n,o),wt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},wt("invalid",n);break;case"textarea":V2(n,o),wt("invalid",n)}Hy(r,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?n.textContent!==a&&(o.suppressHydrationWarning!==!0&&qd(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&qd(n.textContent,a,e),i=["children",""+a]):xc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&wt("scroll",n)}switch(r){case"input":Md(n),U2(n,o,!0);break;case"textarea":Md(n),B2(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=gh)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=X3(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[zn]=t,e[Ac]=n,b6(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ky(r,n),r){case"dialog":wt("cancel",e),wt("close",e),i=n;break;case"iframe":case"object":case"embed":wt("load",e),i=n;break;case"video":case"audio":for(i=0;i<cc.length;i++)wt(cc[i],e);i=n;break;case"source":wt("error",e),i=n;break;case"img":case"image":case"link":wt("error",e),wt("load",e),i=n;break;case"details":wt("toggle",e),i=n;break;case"input":$2(e,n),i=Uy(e,n),wt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dt({},n,{value:void 0}),wt("invalid",e);break;case"textarea":V2(e,n),i=jy(e,n),wt("invalid",e);break;default:i=n}Hy(r,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Z3(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&J3(e,u)):o==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&bc(e,u):typeof u=="number"&&bc(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xc.hasOwnProperty(o)?u!=null&&o==="onScroll"&&wt("scroll",e):u!=null&&Dv(e,o,u,s))}switch(r){case"input":Md(e),U2(e,n,!1);break;case"textarea":Md(e),B2(e);break;case"option":n.value!=null&&e.setAttribute("value",""+io(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ra(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ra(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=gh)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fr(t),null;case 6:if(e&&t.stateNode!=null)_6(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(oe(166));if(r=ps(Rc.current),ps(Kn.current),Wd(t)){if(n=t.stateNode,r=t.memoizedProps,n[zn]=t,(o=n.nodeValue!==r)&&(e=qr,e!==null))switch(e.tag){case 3:qd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qd(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[zn]=t,t.stateNode=n}return fr(t),null;case 13:if(xt(Tt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(St&&Kr!==null&&(t.mode&1)!==0&&(t.flags&128)===0)VS(),Va(),t.flags|=98560,o=!1;else if(o=Wd(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(oe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(oe(317));o[zn]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;fr(t),o=!1}else In!==null&&(Cv(In),In=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Tt.current&1)!==0?Ht===0&&(Ht=3):c1())),t.updateQueue!==null&&(t.flags|=4),fr(t),null);case 4:return ja(),yv(e,t),e===null&&Dc(t.stateNode.containerInfo),fr(t),null;case 10:return Wv(t.type._context),fr(t),null;case 17:return Mr(t.type)&&yh(),fr(t),null;case 19:if(xt(Tt),o=t.memoizedState,o===null)return fr(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)ic(o,!1);else{if(Ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Sh(e),s!==null){for(t.flags|=128,ic(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Le(Tt,Tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&kt()>Ha&&(t.flags|=128,n=!0,ic(o,!1),t.lanes=4194304)}else{if(!n)if(e=Sh(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ic(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!St)return fr(t),null}else 2*kt()-o.renderingStartTime>Ha&&r!==1073741824&&(t.flags|=128,n=!0,ic(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=kt(),t.sibling=null,r=Tt.current,Le(Tt,n?r&1|2:r&1),t):(fr(t),null);case 22:case 23:return l1(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Hr&1073741824)!==0&&(fr(t),t.subtreeFlags&6&&(t.flags|=8192)):fr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function xU(e,t){switch(zv(t),t.tag){case 1:return Mr(t.type)&&yh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja(),xt(Nr),xt(hr),Qv(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Jv(t),null;case 13:if(xt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xt(Tt),null;case 4:return ja(),null;case 10:return Wv(t.type._context),null;case 22:case 23:return l1(),null;case 24:return null;default:return null}}var Xd=!1,dr=!1,bU=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Aa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ot(e,t,n)}else r.current=null}function vv(e,t,r){try{r()}catch(n){Ot(e,t,n)}}var O3=!1;function EU(e,t){if(tv=hh,e=PS(),Bv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(R){r=null;break e}var s=0,a=-1,u=-1,l=0,p=0,h=e,g=null;t:for(;;){for(var w;h!==r||i!==0&&h.nodeType!==3||(a=s+i),h!==o||n!==0&&h.nodeType!==3||(u=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(w=h.firstChild)!==null;)g=h,h=w;for(;;){if(h===e)break t;if(g===r&&++l===i&&(a=s),g===o&&++p===n&&(u=s),(w=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=w}r=a===-1||u===-1?null:{start:a,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(rv={focusedElem:e,selectionRange:r},hh=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var v=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var _=v.memoizedProps,D=v.memoizedState,C=t.stateNode,I=C.getSnapshotBeforeUpdate(t.elementType===t.type?_:Pn(t.type,_),D);C.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var P=t.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(R){Ot(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return v=O3,O3=!1,v}function yc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vv(t,r,o)}i=i.next}while(i!==n)}}function Vh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function wv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function S6(e){var t=e.alternate;t!==null&&(e.alternate=null,S6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zn],delete t[Ac],delete t[ov],delete t[iU],delete t[oU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C6(e){return e.tag===5||e.tag===3||e.tag===4}function R3(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=gh));else if(n!==4&&(e=e.child,e!==null))for(xv(e,t,r),e=e.sibling;e!==null;)xv(e,t,r),e=e.sibling}function bv(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(bv(e,t,r),e=e.sibling;e!==null;)bv(e,t,r),e=e.sibling}var Zt=null,Dn=!1;function zi(e,t,r){for(r=r.child;r!==null;)T6(e,t,r),r=r.sibling}function T6(e,t,r){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(Rh,r)}catch(a){}switch(r.tag){case 5:dr||Aa(r,t);case 6:var n=Zt,i=Dn;Zt=null,zi(e,t,r),Zt=n,Dn=i,Zt!==null&&(Dn?(e=Zt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Zt.removeChild(r.stateNode));break;case 18:Zt!==null&&(Dn?(e=Zt,r=r.stateNode,e.nodeType===8?Sy(e.parentNode,r):e.nodeType===1&&Sy(e,r),Cc(e)):Sy(Zt,r.stateNode));break;case 4:n=Zt,i=Dn,Zt=r.stateNode.containerInfo,Dn=!0,zi(e,t,r),Zt=n,Dn=i;break;case 0:case 11:case 14:case 15:if(!dr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&vv(r,t,s),i=i.next}while(i!==n)}zi(e,t,r);break;case 1:if(!dr&&(Aa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ot(r,t,a)}zi(e,t,r);break;case 21:zi(e,t,r);break;case 22:r.mode&1?(dr=(n=dr)||r.memoizedState!==null,zi(e,t,r),dr=n):zi(e,t,r);break;default:zi(e,t,r)}}function N3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new bU),t.forEach(function(n){var i=OU.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Tn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Zt=a.stateNode,Dn=!1;break e;case 3:Zt=a.stateNode.containerInfo,Dn=!0;break e;case 4:Zt=a.stateNode.containerInfo,Dn=!0;break e}a=a.return}if(Zt===null)throw Error(oe(160));T6(o,s,i),Zt=null,Dn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Ot(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)P6(t,e),t=t.sibling}function P6(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tn(t,e),Bn(e),n&4){try{yc(3,e,e.return),Vh(3,e)}catch(_){Ot(e,e.return,_)}try{yc(5,e,e.return)}catch(_){Ot(e,e.return,_)}}break;case 1:Tn(t,e),Bn(e),n&512&&r!==null&&Aa(r,r.return);break;case 5:if(Tn(t,e),Bn(e),n&512&&r!==null&&Aa(r,r.return),e.flags&32){var i=e.stateNode;try{bc(i,"")}catch(_){Ot(e,e.return,_)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&G3(i,o),Ky(a,s);var l=Ky(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?Z3(i,h):p==="dangerouslySetInnerHTML"?J3(i,h):p==="children"?bc(i,h):Dv(i,p,h,l)}switch(a){case"input":Vy(i,o);break;case"textarea":Y3(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Ra(i,!!o.multiple,w,!1):g!==!!o.multiple&&(o.defaultValue!=null?Ra(i,!!o.multiple,o.defaultValue,!0):Ra(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ac]=o}catch(_){Ot(e,e.return,_)}}break;case 6:if(Tn(t,e),Bn(e),n&4){if(e.stateNode===null)throw Error(oe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Ot(e,e.return,_)}}break;case 3:if(Tn(t,e),Bn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Cc(t.containerInfo)}catch(_){Ot(e,e.return,_)}break;case 4:Tn(t,e),Bn(e);break;case 13:Tn(t,e),Bn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(a1=kt())),n&4&&N3(e);break;case 22:if(p=r!==null&&r.memoizedState!==null,e.mode&1?(dr=(l=dr)||p,Tn(t,e),dr=l):Tn(t,e),Bn(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!p&&(e.mode&1)!==0)for(ce=e,p=e.child;p!==null;){for(h=ce=p;ce!==null;){switch(g=ce,w=g.child,g.tag){case 0:case 11:case 14:case 15:yc(4,g,g.return);break;case 1:Aa(g,g.return);var v=g.stateNode;if(typeof v.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(_){Ot(n,r,_)}}break;case 5:Aa(g,g.return);break;case 22:if(g.memoizedState!==null){k3(h);continue}}w!==null?(w.return=g,ce=w):k3(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{i=h.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Q3("display",s))}catch(_){Ot(e,e.return,_)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(_){Ot(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Tn(t,e),Bn(e),n&4&&N3(e);break;case 21:break;default:Tn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(C6(r)){var n=r;break e}r=r.return}throw Error(oe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(bc(i,""),n.flags&=-33);var o=R3(e);bv(e,o,i);break;case 3:case 4:var s=n.stateNode.containerInfo,a=R3(e);xv(e,a,s);break;default:throw Error(oe(161))}}catch(u){Ot(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _U(e,t,r){ce=e,D6(e,t,r)}function D6(e,t,r){for(var n=(e.mode&1)!==0;ce!==null;){var i=ce,o=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||Xd;if(!s){var a=i.alternate,u=a!==null&&a.memoizedState!==null||dr;a=Xd;var l=dr;if(Xd=s,(dr=u)&&!l)for(ce=i;ce!==null;)s=ce,u=s.child,s.tag===22&&s.memoizedState!==null?L3(i):u!==null?(u.return=s,ce=u):L3(i);for(;o!==null;)ce=o,D6(o,t,r),o=o.sibling;ce=i,Xd=a,dr=l}M3(e,t,r)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,ce=o):M3(e,t,r)}}function M3(e){for(;ce!==null;){var t=ce;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:dr||Vh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!dr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Pn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&y3(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}y3(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&Cc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(oe(163))}dr||t.flags&512&&wv(t)}catch(g){Ot(t,t.return,g)}}if(t===e){ce=null;break}if(r=t.sibling,r!==null){r.return=t.return,ce=r;break}ce=t.return}}function k3(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ce=r;break}ce=t.return}}function L3(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vh(4,t)}catch(u){Ot(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){Ot(t,i,u)}}var o=t.return;try{wv(t)}catch(u){Ot(t,o,u)}break;case 5:var s=t.return;try{wv(t)}catch(u){Ot(t,s,u)}}}catch(u){Ot(t,t.return,u)}if(t===e){ce=null;break}var a=t.sibling;if(a!==null){a.return=t.return,ce=a;break}ce=t.return}}var SU=Math.ceil,Ph=mi.ReactCurrentDispatcher,o1=mi.ReactCurrentOwner,un=mi.ReactCurrentBatchConfig,Se=0,Xt=null,$t=null,er=0,Hr=0,Oa=ao(0),Ht=0,Lc=null,xs=0,Bh=0,s1=0,vc=null,Or=null,a1=0,Ha=1/0,si=null,Dh=!1,Ev=null,to=null,Jd=!1,Yi=null,Ih=0,wc=0,_v=null,oh=-1,sh=0;function Er(){return(Se&6)!==0?kt():oh!==-1?oh:oh=kt()}function ro(e){return(e.mode&1)===0?1:(Se&2)!==0&&er!==0?er&-er:aU.transition!==null?(sh===0&&(sh=fS()),sh):(e=Ae,e!==0||(e=window.event,e=e===void 0?16:vS(e.type)),e)}function On(e,t,r,n){if(50<wc)throw wc=0,_v=null,Error(oe(185));Fc(e,r,n),((Se&2)===0||e!==Xt)&&(e===Xt&&((Se&2)===0&&(Bh|=r),Ht===4&&Wi(e,er)),kr(e,n),r===1&&Se===0&&(t.mode&1)===0&&(Ha=kt()+500,Fh&&uo()))}function kr(e,t){var r=e.callbackNode;l$(e,t);var n=dh(e,e===Xt?er:0);if(n===0)r!==null&&H2(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&H2(r),t===1)e.tag===0?sU(F3.bind(null,e)):FS(F3.bind(null,e)),rU(function(){(Se&6)===0&&uo()}),r=null;else{switch(dS(n)){case 1:r=Nv;break;case 4:r=lS;break;case 16:r=fh;break;case 536870912:r=cS;break;default:r=fh}r=L6(r,I6.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function I6(e,t){if(oh=-1,sh=0,(Se&6)!==0)throw Error(oe(327));var r=e.callbackNode;if(Fa()&&e.callbackNode!==r)return null;var n=dh(e,e===Xt?er:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Ah(e,n);else{t=n;var i=Se;Se|=2;var o=O6();(Xt!==e||er!==t)&&(si=null,Ha=kt()+500,ms(e,t));do try{PU();break}catch(a){A6(e,a)}while(1);qv(),Ph.current=o,Se=i,$t!==null?t=0:(Xt=null,er=0,t=Ht)}if(t!==0){if(t===2&&(i=Xy(e),i!==0&&(n=i,t=Sv(e,i))),t===1)throw r=Lc,ms(e,0),Wi(e,n),kr(e,kt()),r;if(t===6)Wi(e,n);else{if(i=e.current.alternate,(n&30)===0&&!CU(i)&&(t=Ah(e,n),t===2&&(o=Xy(e),o!==0&&(n=o,t=Sv(e,o))),t===1))throw r=Lc,ms(e,0),Wi(e,n),kr(e,kt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(oe(345));case 2:fs(e,Or,si);break;case 3:if(Wi(e,n),(n&130023424)===n&&(t=a1+500-kt(),10<t)){if(dh(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Er(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=iv(fs.bind(null,e,Or,si),t);break}fs(e,Or,si);break;case 4:if(Wi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-An(n);o=1<<s,s=t[s],s>i&&(i=s),n&=~o}if(n=i,n=kt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*SU(n/1960))-n,10<n){e.timeoutHandle=iv(fs.bind(null,e,Or,si),n);break}fs(e,Or,si);break;case 5:fs(e,Or,si);break;default:throw Error(oe(329))}}}return kr(e,kt()),e.callbackNode===r?I6.bind(null,e):null}function Sv(e,t){var r=vc;return e.current.memoizedState.isDehydrated&&(ms(e,t).flags|=256),e=Ah(e,t),e!==2&&(t=Or,Or=r,t!==null&&Cv(t)),e}function Cv(e){Or===null?Or=e:Or.push.apply(Or,e)}function CU(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!Rn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wi(e,t){for(t&=~s1,t&=~Bh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-An(t),n=1<<r;e[r]=-1,t&=~n}}function F3(e){if((Se&6)!==0)throw Error(oe(327));Fa();var t=dh(e,0);if((t&1)===0)return kr(e,kt()),null;var r=Ah(e,t);if(e.tag!==0&&r===2){var n=Xy(e);n!==0&&(t=n,r=Sv(e,n))}if(r===1)throw r=Lc,ms(e,0),Wi(e,t),kr(e,kt()),r;if(r===6)throw Error(oe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,fs(e,Or,si),kr(e,kt()),null}function u1(e,t){var r=Se;Se|=1;try{return e(t)}finally{Se=r,Se===0&&(Ha=kt()+500,Fh&&uo())}}function bs(e){Yi!==null&&Yi.tag===0&&(Se&6)===0&&Fa();var t=Se;Se|=1;var r=un.transition,n=Ae;try{if(un.transition=null,Ae=1,e)return e()}finally{Ae=n,un.transition=r,Se=t,(Se&6)===0&&uo()}}function l1(){Hr=Oa.current,xt(Oa)}function ms(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,tU(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(zv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&yh();break;case 3:ja(),xt(Nr),xt(hr),Qv();break;case 5:Jv(n);break;case 4:ja();break;case 13:xt(Tt);break;case 19:xt(Tt);break;case 10:Wv(n.type._context);break;case 22:case 23:l1()}r=r.return}if(Xt=e,$t=e=no(e.current,null),er=Hr=t,Ht=0,Lc=null,s1=Bh=xs=0,Or=vc=null,hs!==null){for(t=0;t<hs.length;t++)if(r=hs[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=i,n.next=s}r.pending=n}hs=null}return e}function A6(e,t){do{var r=$t;try{if(qv(),rh.current=Th,Ch){for(var n=Pt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ch=!1}if(ws=0,Yt=zt=Pt=null,gc=!1,Nc=0,o1.current=null,r===null||r.return===null){Ht=1,Lc=t,$t=null;break}e:{var o=e,s=r.return,a=r,u=t;if(t=er,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,p=a,h=p.tag;if((p.mode&1)===0&&(h===0||h===11||h===15)){var g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var w=S3(s);if(w!==null){w.flags&=-257,C3(w,s,a,o,t),w.mode&1&&_3(o,l,t),t=w,u=l;var v=t.updateQueue;if(v===null){var _=new Set;_.add(u),t.updateQueue=_}else v.add(u);break e}else{if((t&1)===0){_3(o,l,t),c1();break e}u=Error(oe(426))}}else if(St&&a.mode&1){var D=S3(s);if(D!==null){(D.flags&65536)===0&&(D.flags|=256),C3(D,s,a,o,t),Hv(za(u,a));break e}}o=u=za(u,a),Ht!==4&&(Ht=2),vc===null?vc=[o]:vc.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=h6(o,u,t);g3(o,C);break e;case 1:a=u;var I=o.type,P=o.stateNode;if((o.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||P!==null&&typeof P.componentDidCatch=="function"&&(to===null||!to.has(P)))){o.flags|=65536,t&=-t,o.lanes|=t;var R=p6(o,a,t);g3(o,R);break e}}o=o.return}while(o!==null)}N6(r)}catch(U){t=U,$t===r&&r!==null&&($t=r=r.return);continue}break}while(1)}function O6(){var e=Ph.current;return Ph.current=Th,e===null?Th:e}function c1(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),Xt===null||(xs&268435455)===0&&(Bh&268435455)===0||Wi(Xt,er)}function Ah(e,t){var r=Se;Se|=2;var n=O6();(Xt!==e||er!==t)&&(si=null,ms(e,t));do try{TU();break}catch(i){A6(e,i)}while(1);if(qv(),Se=r,Ph.current=n,$t!==null)throw Error(oe(261));return Xt=null,er=0,Ht}function TU(){for(;$t!==null;)R6($t)}function PU(){for(;$t!==null&&!e$();)R6($t)}function R6(e){var t=k6(e.alternate,e,Hr);e.memoizedProps=e.pendingProps,t===null?N6(e):$t=t,o1.current=null}function N6(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=wU(r,t,Hr),r!==null){$t=r;return}}else{if(r=xU(r,t),r!==null){r.flags&=32767,$t=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ht=6,$t=null;return}}if(t=t.sibling,t!==null){$t=t;return}$t=t=e}while(t!==null);Ht===0&&(Ht=5)}function fs(e,t,r){var n=Ae,i=un.transition;try{un.transition=null,Ae=1,DU(e,t,r,n)}finally{un.transition=i,Ae=n}return null}function DU(e,t,r,n){do Fa();while(Yi!==null);if((Se&6)!==0)throw Error(oe(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(oe(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(c$(e,o),e===Xt&&($t=Xt=null,er=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Jd||(Jd=!0,L6(fh,function(){return Fa(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=un.transition,un.transition=null;var s=Ae;Ae=1;var a=Se;Se|=4,o1.current=null,EU(e,r),P6(r,e),X$(rv),hh=!!tv,rv=tv=null,e.current=r,_U(r,e,i),t$(),Se=a,Ae=s,un.transition=o}else e.current=r;if(Jd&&(Jd=!1,Yi=e,Ih=i),o=e.pendingLanes,o===0&&(to=null),i$(r.stateNode,n),kr(e,kt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Dh)throw Dh=!1,e=Ev,Ev=null,e;return(Ih&1)!==0&&e.tag!==0&&Fa(),o=e.pendingLanes,(o&1)!==0?e===_v?wc++:(wc=0,_v=e):wc=0,uo(),null}function Fa(){if(Yi!==null){var e=dS(Ih),t=un.transition,r=Ae;try{if(un.transition=null,Ae=16>e?16:e,Yi===null)var n=!1;else{if(e=Yi,Yi=null,Ih=0,(Se&6)!==0)throw Error(oe(331));var i=Se;for(Se|=4,ce=e.current;ce!==null;){var o=ce,s=o.child;if((ce.flags&16)!==0){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var l=a[u];for(ce=l;ce!==null;){var p=ce;switch(p.tag){case 0:case 11:case 15:yc(8,p,o)}var h=p.child;if(h!==null)h.return=p,ce=h;else for(;ce!==null;){p=ce;var g=p.sibling,w=p.return;if(S6(p),p===l){ce=null;break}if(g!==null){g.return=w,ce=g;break}ce=w}}}var v=o.alternate;if(v!==null){var _=v.child;if(_!==null){v.child=null;do{var D=_.sibling;_.sibling=null,_=D}while(_!==null)}}ce=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,ce=s;else e:for(;ce!==null;){if(o=ce,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:yc(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,ce=C;break e}ce=o.return}}var I=e.current;for(ce=I;ce!==null;){s=ce;var P=s.child;if((s.subtreeFlags&2064)!==0&&P!==null)P.return=s,ce=P;else e:for(s=I;ce!==null;){if(a=ce,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:Vh(9,a)}}catch(U){Ot(a,a.return,U)}if(a===s){ce=null;break e}var R=a.sibling;if(R!==null){R.return=a.return,ce=R;break e}ce=a.return}}if(Se=i,uo(),Hn&&typeof Hn.onPostCommitFiberRoot=="function")try{Hn.onPostCommitFiberRoot(Rh,e)}catch(U){}n=!0}return n}finally{Ae=r,un.transition=t}}return!1}function $3(e,t,r){t=za(r,t),t=h6(e,t,1),e=eo(e,t,1),t=Er(),e!==null&&(Fc(e,1,t),kr(e,t))}function Ot(e,t,r){if(e.tag===3)$3(e,e,r);else for(;t!==null;){if(t.tag===3){$3(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(to===null||!to.has(n))){e=za(r,e),e=p6(t,e,1),t=eo(t,e,1),e=Er(),t!==null&&(Fc(t,1,e),kr(t,e));break}}t=t.return}}function IU(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Er(),e.pingedLanes|=e.suspendedLanes&r,Xt===e&&(er&r)===r&&(Ht===4||Ht===3&&(er&130023424)===er&&500>kt()-a1?ms(e,0):s1|=r),kr(e,t)}function M6(e,t){t===0&&((e.mode&1)===0?t=1:(t=Fd,Fd<<=1,(Fd&130023424)===0&&(Fd=4194304)));var r=Er();e=hi(e,t),e!==null&&(Fc(e,t,r),kr(e,r))}function AU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),M6(e,r)}function OU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),M6(e,r)}var k6;k6=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nr.current)Rr=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Rr=!1,vU(e,t,r);Rr=(e.flags&131072)!==0}else Rr=!1,St&&(t.flags&1048576)!==0&&$S(t,xh,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ih(e,t),e=t.pendingProps;var i=Ua(t,hr.current);La(t,r),i=e1(null,t,n,e,i,r);var o=t1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mr(n)?(o=!0,vh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yv(t),i.updater=$h,t.stateNode=i,i._reactInternals=t,fv(t,n,e,r),t=pv(null,t,n,!0,o,r)):(t.tag=0,St&&o&&jv(t),br(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ih(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=NU(n),e=Pn(n,e),i){case 0:t=hv(null,t,n,e,r);break e;case 1:t=D3(null,t,n,e,r);break e;case 11:t=T3(null,t,n,e,r);break e;case 14:t=P3(null,t,n,Pn(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),hv(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),D3(e,t,n,i,r);case 3:e:{if(v6(t),e===null)throw Error(oe(387));n=t.pendingProps,o=t.memoizedState,i=o.element,jS(e,t),_h(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=za(Error(oe(423)),t),t=I3(e,t,n,r,i);break e}else if(n!==i){i=za(Error(oe(424)),t),t=I3(e,t,n,r,i);break e}else for(Kr=Zi(t.stateNode.containerInfo.firstChild),qr=t,St=!0,In=null,r=qS(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Va(),n===i){t=pi(e,t,r);break e}br(e,t,n,r)}t=t.child}return t;case 5:return WS(t),e===null&&uv(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,nv(n,i)?s=null:o!==null&&nv(n,o)&&(t.flags|=32),y6(e,t),br(e,t,s,r),t.child;case 6:return e===null&&uv(t),null;case 13:return w6(e,t,r);case 4:return Xv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ba(t,null,n,r):br(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),T3(e,t,n,i,r);case 7:return br(e,t,t.pendingProps,r),t.child;case 8:return br(e,t,t.pendingProps.children,r),t.child;case 12:return br(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Le(bh,n._currentValue),n._currentValue=s,o!==null)if(Rn(o.value,s)){if(o.children===i.children&&!Nr.current){t=pi(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===n){if(o.tag===1){u=ci(-1,r&-r),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}}o.lanes|=r,u=o.alternate,u!==null&&(u.lanes|=r),lv(o.return,r,t),a.lanes|=r;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(oe(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),lv(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}br(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,La(t,r),i=ln(i),n=n(i),t.flags|=1,br(e,t,n,r),t.child;case 14:return n=t.type,i=Pn(n,t.pendingProps),i=Pn(n.type,i),P3(e,t,n,i,r);case 15:return m6(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Pn(n,i),ih(e,t),t.tag=1,Mr(n)?(e=!0,vh(t)):e=!1,La(t,r),HS(t,n,i),fv(t,n,i,r),pv(null,t,n,!0,e,r);case 19:return x6(e,t,r);case 22:return g6(e,t,r)}throw Error(oe(156,t.tag))};function L6(e,t){return uS(e,t)}function RU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,r,n){return new RU(e,t,r,n)}function f1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function NU(e){if(typeof e=="function")return f1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Av)return 11;if(e===Ov)return 14}return 2}function no(e,t){var r=e.alternate;return r===null?(r=an(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ah(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")f1(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ba:return gs(r.children,i,o,t);case Iv:s=8,i|=8;break;case ky:return e=an(12,r,t,i|2),e.elementType=ky,e.lanes=o,e;case Ly:return e=an(13,r,t,i),e.elementType=Ly,e.lanes=o,e;case Fy:return e=an(19,r,t,i),e.elementType=Fy,e.lanes=o,e;case K3:return jh(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z3:s=10;break e;case H3:s=9;break e;case Av:s=11;break e;case Ov:s=14;break e;case Hi:s=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=an(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function gs(e,t,r,n){return e=an(7,e,n,t),e.lanes=r,e}function jh(e,t,r,n){return e=an(22,e,n,t),e.elementType=K3,e.lanes=r,e.stateNode={isHidden:!1},e}function Ry(e,t,r){return e=an(6,e,null,t),e.lanes=r,e}function Ny(e,t,r){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MU(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gy(0),this.expirationTimes=gy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gy(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function d1(e,t,r,n,i,o,s,a,u){return e=new MU(e,t,r,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=an(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yv(o),e}function kU(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xa,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function F6(e){if(!e)return oo;e=e._reactInternals;e:{if(_s(e)!==e||e.tag!==1)throw Error(oe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(oe(171))}if(e.tag===1){var r=e.type;if(Mr(r))return LS(e,r,t)}return t}function $6(e,t,r,n,i,o,s,a,u){return e=d1(r,n,!0,e,i,o,s,a,u),e.context=F6(null),r=e.current,n=Er(),i=ro(r),o=ci(n,i),o.callback=t!=null?t:null,eo(r,o,i),e.current.lanes=i,Fc(e,i,n),kr(e,n),e}function zh(e,t,r,n){var i=t.current,o=Er(),s=ro(i);return r=F6(r),t.context===null?t.context=r:t.pendingContext=r,t=ci(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=eo(i,t,s),e!==null&&(On(e,i,s,o),th(e,i,s)),s}function Oh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function U3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function h1(e,t){U3(e,t),(e=e.alternate)&&U3(e,t)}function LU(){return null}var U6=typeof reportError=="function"?reportError:function(e){console.error(e)};function p1(e){this._internalRoot=e}Hh.prototype.render=p1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(oe(409));zh(e,t,null,null)};Hh.prototype.unmount=p1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bs(function(){zh(null,e,null,null)}),t[di]=null}};function Hh(e){this._internalRoot=e}Hh.prototype.unstable_scheduleHydration=function(e){if(e){var t=mS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qi.length&&t!==0&&t<qi[r].priority;r++);qi.splice(r,0,e),r===0&&yS(e)}};function m1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function V3(){}function FU(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var l=Oh(s);o.call(l)}}var s=$6(t,n,e,0,null,!1,!1,"",V3);return e._reactRootContainer=s,e[di]=s.current,Dc(e.nodeType===8?e.parentNode:e),bs(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var l=Oh(u);a.call(l)}}var u=d1(e,0,!1,null,null,!1,!1,"",V3);return e._reactRootContainer=u,e[di]=u.current,Dc(e.nodeType===8?e.parentNode:e),bs(function(){zh(t,u,r,n)}),u}function qh(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var u=Oh(s);a.call(u)}}zh(t,s,e,i)}else s=FU(r,t,e,i,n);return Oh(s)}hS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=lc(t.pendingLanes);r!==0&&(Mv(t,r|1),kr(t,kt()),(Se&6)===0&&(Ha=kt()+500,uo()))}break;case 13:bs(function(){var n=hi(e,1);if(n!==null){var i=Er();On(n,e,1,i)}}),h1(e,1)}};kv=function(e){if(e.tag===13){var t=hi(e,134217728);if(t!==null){var r=Er();On(t,e,134217728,r)}h1(e,134217728)}};pS=function(e){if(e.tag===13){var t=ro(e),r=hi(e,t);if(r!==null){var n=Er();On(r,e,t,n)}h1(e,t)}};mS=function(){return Ae};gS=function(e,t){var r=Ae;try{return Ae=e,t()}finally{Ae=r}};Wy=function(e,t,r){switch(t){case"input":if(Vy(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Lh(n);if(!i)throw Error(oe(90));W3(n),Vy(n,i)}}}break;case"textarea":Y3(e,r);break;case"select":t=r.value,t!=null&&Ra(e,!!r.multiple,t,!1)}};rS=u1;nS=bs;var $U={usingClientEntryPoint:!1,Events:[Uc,Ca,Lh,eS,tS,u1]},oc={findFiberByHostInstance:ds,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UU={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sS(e),e===null?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||LU,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(sc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!sc.isDisabled&&sc.supportsFiber))try{Rh=sc.inject(UU),Hn=sc}catch(e){}var sc;Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$U;Yr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m1(t))throw Error(oe(200));return kU(e,t,null,r)};Yr.createRoot=function(e,t){if(!m1(e))throw Error(oe(299));var r=!1,n="",i=U6;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=d1(e,1,!1,null,null,r,!1,n,i),e[di]=t.current,Dc(e.nodeType===8?e.parentNode:e),new p1(t)};Yr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(oe(188)):(e=Object.keys(e).join(","),Error(oe(268,e)));return e=sS(t),e=e===null?null:e.stateNode,e};Yr.flushSync=function(e){return bs(e)};Yr.hydrate=function(e,t,r){if(!Kh(t))throw Error(oe(200));return qh(null,e,t,!0,r)};Yr.hydrateRoot=function(e,t,r){if(!m1(e))throw Error(oe(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",s=U6;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=$6(t,null,e,1,r!=null?r:null,i,!1,o,s),e[di]=t.current,Dc(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Hh(t)};Yr.render=function(e,t,r){if(!Kh(t))throw Error(oe(200));return qh(null,e,t,!1,r)};Yr.unmountComponentAtNode=function(e){if(!Kh(e))throw Error(oe(40));return e._reactRootContainer?(bs(function(){qh(null,null,e,!1,function(){e._reactRootContainer=null,e[di]=null})}),!0):!1};Yr.unstable_batchedUpdates=u1;Yr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Kh(r))throw Error(oe(200));if(e==null||e._reactInternals===void 0)throw Error(oe(38));return qh(e,t,r,!1,n)};Yr.version="18.2.0-next-9e3b772b8-20220608"});var Ss=ee((xee,j6)=>{"use strict";c();d();f();function B6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B6)}catch(e){console.error(e)}}B6(),j6.exports=V6()});var H6=ee(g1=>{"use strict";c();d();f();var z6=Ss();g1.createRoot=z6.createRoot,g1.hydrateRoot=z6.hydrateRoot;var bee});var q6=ee((_ee,K6)=>{"use strict";c();d();f();var VU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";K6.exports=VU});var X6=ee((See,Y6)=>{"use strict";c();d();f();var BU=q6();function W6(){}function G6(){}G6.resetWarningCache=W6;Y6.exports=function(){function e(n,i,o,s,a,u){if(u!==BU){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:G6,resetWarningCache:W6};return r.PropTypes=r,r}});var Q6=ee((Pee,J6)=>{c();d();f();J6.exports=X6()();var Cee,Tee});var V5=ee((Kte,U5)=>{c();d();f();U5.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}});var z5=ee((qte,j5)=>{"use strict";c();d();f();var Q9=V5(),B5={"text/plain":"Text","text/html":"Url",default:"Text"},Z9="Copy to clipboard: #{key}, Enter";function eV(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function tV(e,t){var r,n,i,o,s,a,u=!1;t||(t={}),r=t.debug||!1;try{i=Q9(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=B5[t.format]||B5.default;window.clipboardData.setData(h,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");u=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(h){r&&console.error("unable to copy using clipboardData: ",h),r&&console.error("falling back to prompt"),n=eV("message"in t?t.message:Z9),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return u}j5.exports=tV});var K5=ee((Wte,H5)=>{c();d();f();H5.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ho=ee(Ts=>{c();d();f();var D1,rV=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ts.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Ts.getSymbolTotalCodewords=function(t){return rV[t]};Ts.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Ts.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');D1=t};Ts.isKanjiModeEnabled=function(){return typeof D1<"u"};Ts.toSJIS=function(t){return D1(t)}});var np=ee(fn=>{c();d();f();fn.L={bit:1};fn.M={bit:0};fn.Q={bit:3};fn.H={bit:2};function nV(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return fn.L;case"m":case"medium":return fn.M;case"q":case"quartile":return fn.Q;case"h":case"high":return fn.H;default:throw new Error("Unknown EC Level: "+e)}}fn.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};fn.from=function(t,r){if(fn.isValid(t))return t;try{return nV(t)}catch(n){return r}}});var G5=ee((Xte,W5)=>{c();d();f();function q5(){this.buffer=[],this.length=0}q5.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};W5.exports=q5});var X5=ee((Jte,Y5)=>{c();d();f();function jc(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}jc.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};jc.prototype.get=function(e,t){return this.data[e*this.size+t]};jc.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};jc.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};Y5.exports=jc});var J5=ee(ip=>{c();d();f();var iV=ho().getSymbolSize;ip.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=iV(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};ip.getPositions=function(t){let r=[],n=ip.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var eC=ee(Z5=>{c();d();f();var oV=ho().getSymbolSize,Q5=7;Z5.getPositions=function(t){let r=oV(t);return[[0,0],[r-Q5,0],[0,r-Q5]]}});var tC=ee($e=>{c();d();f();$e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Ps={N1:3,N2:3,N3:40,N4:10};$e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};$e.from=function(t){return $e.isValid(t)?parseInt(t,10):void 0};$e.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let u=0;u<r;u++){i=o=0,s=a=null;for(let l=0;l<r;l++){let p=t.get(u,l);p===s?i++:(i>=5&&(n+=Ps.N1+(i-5)),s=p,i=1),p=t.get(l,u),p===a?o++:(o>=5&&(n+=Ps.N1+(o-5)),a=p,o=1)}i>=5&&(n+=Ps.N1+(i-5)),o>=5&&(n+=Ps.N1+(o-5))}return n};$e.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*Ps.N2};$e.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*Ps.N3};$e.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*Ps.N4};function sV(e,t,r){switch(e){case $e.Patterns.PATTERN000:return(t+r)%2===0;case $e.Patterns.PATTERN001:return t%2===0;case $e.Patterns.PATTERN010:return r%3===0;case $e.Patterns.PATTERN011:return(t+r)%3===0;case $e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case $e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case $e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case $e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}$e.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,sV(t,o,i))};$e.getBestMask=function(t,r){let n=Object.keys($e.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),$e.applyMask(s,t);let a=$e.getPenaltyN1(t)+$e.getPenaltyN2(t)+$e.getPenaltyN3(t)+$e.getPenaltyN4(t);$e.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var A1=ee(I1=>{c();d();f();var po=np(),op=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],sp=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];I1.getBlocksCount=function(t,r){switch(r){case po.L:return op[(t-1)*4+0];case po.M:return op[(t-1)*4+1];case po.Q:return op[(t-1)*4+2];case po.H:return op[(t-1)*4+3];default:return}};I1.getTotalCodewordsCount=function(t,r){switch(r){case po.L:return sp[(t-1)*4+0];case po.M:return sp[(t-1)*4+1];case po.Q:return sp[(t-1)*4+2];case po.H:return sp[(t-1)*4+3];default:return}}});var rC=ee(up=>{c();d();f();var zc=new Uint8Array(512),ap=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)zc[r]=t,ap[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)zc[r]=zc[r-255]})();up.log=function(t){if(t<1)throw new Error("log("+t+")");return ap[t]};up.exp=function(t){return zc[t]};up.mul=function(t,r){return t===0||r===0?0:zc[ap[t]+ap[r]]}});var nC=ee(Hc=>{c();d();f();var O1=rC();Hc.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=O1.mul(t[i],r[o]);return n};Hc.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=O1.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};Hc.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=Hc.mul(r,new Uint8Array([1,O1.exp(n)]));return r}});var sC=ee((ire,oC)=>{c();d();f();var iC=nC();function R1(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}R1.prototype.initialize=function(t){this.degree=t,this.genPoly=iC.generateECPolynomial(this.degree)};R1.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=iC.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};oC.exports=R1});var N1=ee(aC=>{c();d();f();aC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var M1=ee(vi=>{c();d();f();var uC="[0-9]+",aV="[A-Z $%*+\\-./:]+",Kc="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Kc=Kc.replace(/u/g,"\\u");var uV="(?:(?![A-Z0-9 $%*+\\-./:]|"+Kc+`)(?:.|[\r
9
+ ]))+`;vi.KANJI=new RegExp(Kc,"g");vi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");vi.BYTE=new RegExp(uV,"g");vi.NUMERIC=new RegExp(uC,"g");vi.ALPHANUMERIC=new RegExp(aV,"g");var lV=new RegExp("^"+Kc+"$"),cV=new RegExp("^"+uC+"$"),fV=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");vi.testKanji=function(t){return lV.test(t)};vi.testNumeric=function(t){return cV.test(t)};vi.testAlphanumeric=function(t){return fV.test(t)}});var mo=ee(Vt=>{c();d();f();var dV=N1(),k1=M1();Vt.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};Vt.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};Vt.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};Vt.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};Vt.MIXED={bit:-1};Vt.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!dV.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Vt.getBestModeForData=function(t){return k1.testNumeric(t)?Vt.NUMERIC:k1.testAlphanumeric(t)?Vt.ALPHANUMERIC:k1.testKanji(t)?Vt.KANJI:Vt.BYTE};Vt.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Vt.isValid=function(t){return t&&t.bit&&t.ccBits};function hV(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Vt.NUMERIC;case"alphanumeric":return Vt.ALPHANUMERIC;case"kanji":return Vt.KANJI;case"byte":return Vt.BYTE;default:throw new Error("Unknown mode: "+e)}}Vt.from=function(t,r){if(Vt.isValid(t))return t;try{return hV(t)}catch(n){return r}}});var hC=ee(Ds=>{c();d();f();var lp=ho(),pV=A1(),lC=np(),go=mo(),L1=N1(),fC=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,cC=lp.getBCHDigit(fC);function mV(e,t,r){for(let n=1;n<=40;n++)if(t<=Ds.getCapacity(n,r,e))return n}function dC(e,t){return go.getCharCountIndicator(e,t)+4}function gV(e,t){let r=0;return e.forEach(function(n){r+=dC(n.mode,t)+n.getBitsLength()}),r}function yV(e,t){for(let r=1;r<=40;r++)if(gV(e,r)<=Ds.getCapacity(r,t,go.MIXED))return r}Ds.from=function(t,r){return L1.isValid(t)?parseInt(t,10):r};Ds.getCapacity=function(t,r,n){if(!L1.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=go.BYTE);let i=lp.getSymbolTotalCodewords(t),o=pV.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===go.MIXED)return s;let a=s-dC(n,t);switch(n){case go.NUMERIC:return Math.floor(a/10*3);case go.ALPHANUMERIC:return Math.floor(a/11*2);case go.KANJI:return Math.floor(a/13);case go.BYTE:default:return Math.floor(a/8)}};Ds.getBestVersionForData=function(t,r){let n,i=lC.from(r,lC.M);if(Array.isArray(t)){if(t.length>1)return yV(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return mV(n.mode,n.getLength(),i)};Ds.getEncodedBits=function(t){if(!L1.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;lp.getBCHDigit(r)-cC>=0;)r^=fC<<lp.getBCHDigit(r)-cC;return t<<12|r}});var yC=ee(gC=>{c();d();f();var F1=ho(),mC=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,vV=1<<14|1<<12|1<<10|1<<4|1<<1,pC=F1.getBCHDigit(mC);gC.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;F1.getBCHDigit(i)-pC>=0;)i^=mC<<F1.getBCHDigit(i)-pC;return(n<<10|i)^vV}});var wC=ee((cre,vC)=>{c();d();f();var wV=mo();function Qa(e){this.mode=wV.NUMERIC,this.data=e.toString()}Qa.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Qa.prototype.getLength=function(){return this.data.length};Qa.prototype.getBitsLength=function(){return Qa.getBitsLength(this.data.length)};Qa.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};vC.exports=Qa});var bC=ee((fre,xC)=>{c();d();f();var xV=mo(),$1=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Za(e){this.mode=xV.ALPHANUMERIC,this.data=e}Za.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Za.prototype.getLength=function(){return this.data.length};Za.prototype.getBitsLength=function(){return Za.getBitsLength(this.data.length)};Za.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=$1.indexOf(this.data[r])*45;n+=$1.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put($1.indexOf(this.data[r]),6)};xC.exports=Za});var _C=ee((dre,EC)=>{"use strict";c();d();f();EC.exports=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var o=t.charCodeAt(i);if(o>=55296&&o<=56319&&n>i+1){var s=t.charCodeAt(i+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,i+=1)}if(o<128){r.push(o);continue}if(o<2048){r.push(o>>6|192),r.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128);continue}if(o>=65536&&o<=1114111){r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var CC=ee((hre,SC)=>{c();d();f();var bV=_C(),EV=mo();function eu(e){this.mode=EV.BYTE,typeof e=="string"&&(e=bV(e)),this.data=new Uint8Array(e)}eu.getBitsLength=function(t){return t*8};eu.prototype.getLength=function(){return this.data.length};eu.prototype.getBitsLength=function(){return eu.getBitsLength(this.data.length)};eu.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};SC.exports=eu});var PC=ee((pre,TC)=>{c();d();f();var _V=mo(),SV=ho();function tu(e){this.mode=_V.KANJI,this.data=e}tu.getBitsLength=function(t){return t*13};tu.prototype.getLength=function(){return this.data.length};tu.prototype.getBitsLength=function(){return tu.getBitsLength(this.data.length)};tu.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=SV.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
10
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};TC.exports=tu});var DC=ee((mre,U1)=>{"use strict";c();d();f();var qc={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=qc.PriorityQueue.make();o.push(t,0);for(var s,a,u,l,p,h,g,w,v;!o.empty();){s=o.pop(),a=s.value,l=s.cost,p=e[a]||{};for(u in p)p.hasOwnProperty(u)&&(h=p[u],g=l+h,w=i[u],v=typeof i[u]>"u",(v||w>g)&&(i[u]=g,o.push(u,g),n[u]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var _=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(_)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=qc.single_source_shortest_paths(e,t,r);return qc.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=qc.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof U1<"u"&&(U1.exports=qc)});var LC=ee(ru=>{c();d();f();var De=mo(),OC=wC(),RC=bC(),NC=CC(),MC=PC(),Wc=M1(),cp=ho(),CV=DC();function IC(e){return unescape(encodeURIComponent(e)).length}function Gc(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function kC(e){let t=Gc(Wc.NUMERIC,De.NUMERIC,e),r=Gc(Wc.ALPHANUMERIC,De.ALPHANUMERIC,e),n,i;return cp.isKanjiModeEnabled()?(n=Gc(Wc.BYTE,De.BYTE,e),i=Gc(Wc.KANJI,De.KANJI,e)):(n=Gc(Wc.BYTE_KANJI,De.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function V1(e,t){switch(t){case De.NUMERIC:return OC.getBitsLength(e);case De.ALPHANUMERIC:return RC.getBitsLength(e);case De.KANJI:return MC.getBitsLength(e);case De.BYTE:return NC.getBitsLength(e)}}function TV(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function PV(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case De.NUMERIC:t.push([n,{data:n.data,mode:De.ALPHANUMERIC,length:n.length},{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.ALPHANUMERIC:t.push([n,{data:n.data,mode:De.BYTE,length:n.length}]);break;case De.KANJI:t.push([n,{data:n.data,mode:De.BYTE,length:IC(n.data)}]);break;case De.BYTE:t.push([{data:n.data,mode:De.BYTE,length:IC(n.data)}])}}return t}function DV(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let u=0;u<s.length;u++){let l=s[u],p=""+o+u;a.push(p),r[p]={node:l,lastCount:0},n[p]={};for(let h=0;h<i.length;h++){let g=i[h];r[g]&&r[g].node.mode===l.mode?(n[g][p]=V1(r[g].lastCount+l.length,l.mode)-V1(r[g].lastCount,l.mode),r[g].lastCount+=l.length):(r[g]&&(r[g].lastCount=l.length),n[g][p]=V1(l.length,l.mode)+4+De.getCharCountIndicator(l.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function AC(e,t){let r,n=De.getBestModeForData(e);if(r=De.from(t,n),r!==De.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+De.toString(r)+`.
11
+ Suggested mode is: `+De.toString(n));switch(r===De.KANJI&&!cp.isKanjiModeEnabled()&&(r=De.BYTE),r){case De.NUMERIC:return new OC(e);case De.ALPHANUMERIC:return new RC(e);case De.KANJI:return new MC(e);case De.BYTE:return new NC(e)}}ru.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(AC(n,null)):n.data&&r.push(AC(n.data,n.mode)),r},[])};ru.fromString=function(t,r){let n=kC(t,cp.isKanjiModeEnabled()),i=PV(n),o=DV(i,r),s=CV.find_path(o.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(o.table[s[u]].node);return ru.fromArray(TV(a))};ru.rawSplit=function(t){return ru.fromArray(kC(t,cp.isKanjiModeEnabled()))}});var $C=ee(FC=>{c();d();f();var dp=ho(),B1=np(),IV=G5(),AV=X5(),OV=J5(),RV=eC(),H1=tC(),K1=A1(),NV=sC(),fp=hC(),MV=yC(),kV=mo(),j1=LC();function LV(e,t){let r=e.size,n=RV.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?e.set(o+a,s+u,!0,!0):e.set(o+a,s+u,!1,!0))}}function FV(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function $V(e,t){let r=OV.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function UV(e,t){let r=e.size,n=fp.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function z1(e,t,r){let n=e.size,i=MV.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function VV(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,a-u)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),e.set(i,a-u,l),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function BV(e,t,r){let n=new IV;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),kV.getCharCountIndicator(u.mode,e)),u.write(n)});let i=dp.getSymbolTotalCodewords(e),o=K1.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let u=0;u<a;u++)n.put(u%2?17:236,8);return jV(n,e,t)}function jV(e,t,r){let n=dp.getSymbolTotalCodewords(t),i=K1.getTotalCodewordsCount(t,r),o=n-i,s=K1.getBlocksCount(t,r),a=n%s,u=s-a,l=Math.floor(n/s),p=Math.floor(o/s),h=p+1,g=l-p,w=new NV(g),v=0,_=new Array(s),D=new Array(s),C=0,I=new Uint8Array(e.buffer);for(let F=0;F<s;F++){let $=F<u?p:h;_[F]=I.slice(v,v+$),D[F]=w.encode(_[F]),v+=$,C=Math.max(C,$)}let P=new Uint8Array(n),R=0,U,j;for(U=0;U<C;U++)for(j=0;j<s;j++)U<_[j].length&&(P[R++]=_[j][U]);for(U=0;U<g;U++)for(j=0;j<s;j++)P[R++]=D[j][U];return P}function zV(e,t,r,n){let i;if(Array.isArray(e))i=j1.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){let p=j1.rawSplit(e);l=fp.getBestVersionForData(p,r)}i=j1.fromString(e,l||40)}else throw new Error("Invalid data");let o=fp.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
12
12
  The chosen QR Code version cannot contain this amount of data.
13
13
  Minimum version required to store current data is: `+o+`.
14
- `);let s=qz(t,r,i),a=bm.getSymbolSize(t),u=new kz(a);return Bz(u,t),jz(u),zz(u,t),Qw(u,r,0),t>=7&&Hz(u,t),Kz(u,s),isNaN(n)&&(n=ex.getBestMask(u,Qw.bind(null,u,r))),ex.applyMask(n,u),Qw(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}YP.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Jw.M,i,o;return typeof r<"u"&&(n=Jw.from(r.errorCorrectionLevel,Jw.M),i=xm.from(r.version),o=ex.from(r.maskPattern),r.toSJISFunc&&bm.setToSJISFunction(r.toSJISFunc)),Gz(t,i,n,o)}});var rx=ee(Xs=>{c();d();f();function JP(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Xs.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:JP(t.color.dark||"#000000ff"),light:JP(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Xs.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Xs.getImageWidth=function(t,r){let n=Xs.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Xs.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=Xs.getScale(i,n),a=Math.floor((i+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let p=0;p<a;p++)for(let h=0;h<a;h++){let y=(p*a+h)*4,v=n.color.light;if(p>=u&&h>=u&&p<a-u&&h<a-u){let w=Math.floor((p-u)/s),_=Math.floor((h-u)/s);v=l[o[w*i+_]?1:0]}t[y++]=v.r,t[y++]=v.g,t[y++]=v.b,t[y]=v.a}}});var ZP=ee(Em=>{c();d();f();var nx=rx();function Yz(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function Xz(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}Em.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=Xz()),i=nx.getOptions(i);let s=nx.getImageWidth(t.modules.size,i),a=o.getContext("2d"),u=a.createImageData(s,s);return nx.qrToImageData(u.data,t,i),Yz(a,o,s),a.putImageData(u,0,0),o};Em.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=Em.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var tD=ee(eD=>{c();d();f();var Jz=rx();function QP(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function ix(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function Zz(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(n+=o?ix("M",u+r,.5+l+r):ix("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(n+=ix("h",s),s=0)):i++}return n}eD.render=function(t,r,n){let i=Jz.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,u=i.color.light.a?"<path "+QP(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+QP(i.color.dark,"stroke")+' d="'+Zz(s,o,i.margin)+'"/>',p='viewBox="0 0 '+a+" "+a+'"',h=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",y='<svg xmlns="http://www.w3.org/2000/svg" '+h+p+' shape-rendering="crispEdges">'+u+l+`</svg>
15
- `;return typeof n=="function"&&n(null,y),y}});var nD=ee(Pf=>{c();d();f();var Qz=nP(),ox=XP(),rD=ZP(),eH=tD();function sx(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!Qz())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let p=ox.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=ox.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Pf.create=ox.create;Pf.toCanvas=sx.bind(null,rD.render);Pf.toDataURL=sx.bind(null,rD.renderToDataURL);Pf.toString=sx.bind(null,function(e,t,r){return eH.render(e,r)})});var vD=ee((_0e,yD)=>{"use strict";c();d();f();function lH(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}yD.exports=cH;function cH(e,t,r){var n=r&&r.stringify||lH,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,y=e&&e.length||0,v=0;v<y;){if(e.charCodeAt(v)===37&&v+1<y){switch(h=h>-1?h:0,e.charCodeAt(v+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Number(t[p]),h=v+2,v++;break;case 105:if(p>=u||t[p]==null)break;h<v&&(l+=e.slice(h,v)),l+=Math.floor(Number(t[p])),h=v+2,v++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<v&&(l+=e.slice(h,v));var w=typeof t[p];if(w==="string"){l+="'"+t[p]+"'",h=v+2,v++;break}if(w==="function"){l+=t[p].name||"<anonymous>",h=v+2,v++;break}l+=n(t[p]),h=v+2,v++;break;case 115:if(p>=u)break;h<v&&(l+=e.slice(h,v)),l+=String(t[p]),h=v+2,v++;break;case 37:h<v&&(l+=e.slice(h,v)),l+="%",h=v+2,v++,p--;break}++p}++v}return h===-1?e:(h<y&&(l+=e.slice(h)),l)}});var Tm=ee((S0e,ED)=>{"use strict";c();d();f();var wD=vD();ED.exports=ni;var Df=xH().console||{},fH={mapHttpRequest:Sm,mapHttpResponse:Sm,wrapRequestSerializer:lx,wrapResponseSerializer:lx,wrapErrorSerializer:lx,req:Sm,res:Sm,err:gH};function dH(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function ni(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||Df;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=dH(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=If),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:y});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:yH(e)};u.levels=ni.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=If,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=v,t&&(u._logEvent=cx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function y(w){if(w!=="silent"&&!this.levels.values[w])throw Error("unknown level "+w);this._level=w,Qu(l,u,"error","log"),Qu(l,u,"fatal","error"),Qu(l,u,"warn","error"),Qu(l,u,"info","log"),Qu(l,u,"debug","log"),Qu(l,u,"trace","log")}function v(w,_){if(!w)throw new Error("missing bindings for child Pino");_=_||{},i&&w.serializers&&(_.serializers=w.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete w.serializers,Cm([w],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=el(R,w,"error"),this.fatal=el(R,w,"fatal"),this.warn=el(R,w,"warn"),this.info=el(R,w,"info"),this.debug=el(R,w,"debug"),this.trace=el(R,w,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=cx([].concat(R._logEvent.bindings,w)))}return P.prototype=this,new P(this)}return u}ni.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};ni.stdSerializers=fH;ni.stdTimeFunctions=Object.assign({},{nullTime:xD,epochTime:bD,unixTime:vH,isoTime:wH});function Qu(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?If:i[r]?i[r]:Df[r]||Df[n]||If,hH(e,t,r)}function hH(e,t,r){!e.transmit&&t[r]===If||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Df?Df:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&Cm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,pH(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=ni.levels.values[l],h=ni.levels.values[r];if(h<p)return;mH(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:ni.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function pH(e,t,r,n){e._serialize&&Cm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=ni.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?wD(i.shift(),i):void 0}else typeof o=="string"&&(o=wD(i.shift(),i));return o!==void 0&&(s.msg=o),s}function Cm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=ni.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function el(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function mH(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;Cm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=cx(u)}function cx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function gH(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function yH(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?xD:bD}function Sm(){return{}}function lx(e){return e}function If(){}function xD(){return!1}function bD(){return Date.now()}function vH(){return Math.round(Date.now()/1e3)}function wH(){return new Date(Date.now()).toISOString()}function xH(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var ko=ee((C0e,fx)=>{"use strict";c();d();f();var tl=typeof Reflect=="object"?Reflect:null,_D=tl&&typeof tl.apply=="function"?tl.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},Pm;tl&&typeof tl.ownKeys=="function"?Pm=tl.ownKeys:Object.getOwnPropertySymbols?Pm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Pm=function(t){return Object.getOwnPropertyNames(t)};function bH(e){console&&console.warn&&console.warn(e)}var CD=Number.isNaN||function(t){return t!==t};function Ae(){Ae.init.call(this)}fx.exports=Ae;fx.exports.once=CH;Ae.EventEmitter=Ae;Ae.prototype._events=void 0;Ae.prototype._eventsCount=0;Ae.prototype._maxListeners=void 0;var SD=10;function Dm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ae,"defaultMaxListeners",{enumerable:!0,get:function(){return SD},set:function(e){if(typeof e!="number"||e<0||CD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");SD=e}});Ae.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ae.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||CD(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function TD(e){return e._maxListeners===void 0?Ae.defaultMaxListeners:e._maxListeners}Ae.prototype.getMaxListeners=function(){return TD(this)};Ae.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")_D(u,this,r);else for(var l=u.length,p=AD(u,l),n=0;n<l;++n)_D(p[n],this,r);return!0};function PD(e,t,r,n){var i,o,s;if(Dm(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=TD(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,bH(a)}return e}Ae.prototype.addListener=function(t,r){return PD(this,t,r,!1)};Ae.prototype.on=Ae.prototype.addListener;Ae.prototype.prependListener=function(t,r){return PD(this,t,r,!0)};function EH(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function DD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=EH.bind(n);return i.listener=r,n.wrapFn=i,i}Ae.prototype.once=function(t,r){return Dm(r),this.on(t,DD(this,t,r)),this};Ae.prototype.prependOnceListener=function(t,r){return Dm(r),this.prependListener(t,DD(this,t,r)),this};Ae.prototype.removeListener=function(t,r){var n,i,o,s,a;if(Dm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():_H(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Ae.prototype.off=Ae.prototype.removeListener;Ae.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function ID(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?SH(i):AD(i,i.length)}Ae.prototype.listeners=function(t){return ID(this,t,!0)};Ae.prototype.rawListeners=function(t){return ID(this,t,!1)};Ae.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):OD.call(e,t)};Ae.prototype.listenerCount=OD;function OD(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Ae.prototype.eventNames=function(){return this._eventsCount>0?Pm(this._events):[]};function AD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function _H(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function SH(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function CH(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}RD(e,t,o,{once:!0}),t!=="error"&&TH(e,i,{once:!0})})}function TH(e,t,r){typeof e.on=="function"&&RD(e,"error",t,r)}function RD(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var hx=ee((T0e,Om)=>{c();d();f();var ND,MD,kD,LD,FD,$D,UD,VD,BD,Im,dx,jD,zD,rl,HD,KD,qD,WD,GD,YD,XD,JD,ZD;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Om=="object"&&typeof Om.exports=="object"?e(r(t,r(Om.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};ND=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},MD=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},kD=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},LD=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},FD=function(r,n){return function(i,o){n(i,o,r)}},$D=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},UD=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},VD=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ZD=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},BD=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Im=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},dx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},jD=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(dx(arguments[n]));return r},zD=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},rl=function(r){return this instanceof rl?(this.v=r,this):new rl(r)},HD=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},KD=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},qD=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Im=="function"?Im(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},WD=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},GD=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},YD=function(r){return r&&r.__esModule?r:{default:r}},XD=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},JD=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",ND),e("__assign",MD),e("__rest",kD),e("__decorate",LD),e("__param",FD),e("__metadata",$D),e("__awaiter",UD),e("__generator",VD),e("__exportStar",BD),e("__createBinding",ZD),e("__values",Im),e("__read",dx),e("__spread",jD),e("__spreadArrays",zD),e("__await",rl),e("__asyncGenerator",HD),e("__asyncDelegator",KD),e("__asyncValues",qD),e("__makeTemplateObject",WD),e("__importStar",GD),e("__importDefault",YD),e("__classPrivateFieldGet",XD),e("__classPrivateFieldSet",JD)})});var px=ee(Am=>{"use strict";c();d();f();Object.defineProperty(Am,"__esModule",{value:!0});function PH(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}Am.safeJsonParse=PH;function DH(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Am.safeJsonStringify=DH});var QD=ee((D0e,Rm)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?Rm.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Rm.exports=window.localStorage:Rm.exports=new t})()});var eI=ee(Nm=>{"use strict";c();d();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.IKeyValueStorage=void 0;var mx=class{};Nm.IKeyValueStorage=mx});var tI=ee(Mm=>{"use strict";c();d();f();Object.defineProperty(Mm,"__esModule",{value:!0});Mm.parseEntry=void 0;var IH=px();function OH(e){var t;return[e[0],IH.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Mm.parseEntry=OH});var nI=ee(km=>{"use strict";c();d();f();Object.defineProperty(km,"__esModule",{value:!0});var rI=hx();rI.__exportStar(eI(),km);rI.__exportStar(tI(),km)});var oI=ee(Of=>{"use strict";c();d();f();Object.defineProperty(Of,"__esModule",{value:!0});Of.KeyValueStorage=void 0;var nl=hx(),iI=px(),AH=nl.__importDefault(QD()),RH=nI(),Lm=class{constructor(){this.localStorage=AH.default}getKeys(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return nl.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(RH.parseEntry)})}getItem(t){return nl.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return iI.safeJsonParse(r)})}setItem(t,r){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,iI.safeJsonStringify(r))})}removeItem(t){return nl.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Of.KeyValueStorage=Lm;Of.default=Lm});var Af=ee((N0e,$m)=>{c();d();f();var sI,aI,uI,lI,cI,fI,dI,hI,pI,Fm,gx,mI,gI,il,yI,vI,wI,xI,bI,EI,_I,SI,CI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof $m=="object"&&typeof $m.exports=="object"?e(r(t,r($m.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};sI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},aI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},uI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},lI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},cI=function(r,n){return function(i,o){n(i,o,r)}},fI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},dI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},hI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},CI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},pI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Fm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},gx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},mI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(gx(arguments[n]));return r},gI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},il=function(r){return this instanceof il?(this.v=r,this):new il(r)},yI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof il?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},vI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:il(r[s](u)),done:s==="return"}:a?a(u):u}:a}},wI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Fm=="function"?Fm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},xI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},bI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},EI=function(r){return r&&r.__esModule?r:{default:r}},_I=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},SI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",sI),e("__assign",aI),e("__rest",uI),e("__decorate",lI),e("__param",cI),e("__metadata",fI),e("__awaiter",dI),e("__generator",hI),e("__exportStar",pI),e("__createBinding",CI),e("__values",Fm),e("__read",gx),e("__spread",mI),e("__spreadArrays",gI),e("__await",il),e("__asyncGenerator",yI),e("__asyncDelegator",vI),e("__asyncValues",wI),e("__makeTemplateObject",xI),e("__importStar",bI),e("__importDefault",EI),e("__classPrivateFieldGet",_I),e("__classPrivateFieldSet",SI)})});var Rf=ee((M0e,Vm)=>{c();d();f();var TI,PI,DI,II,OI,AI,RI,NI,MI,Um,yx,kI,LI,ol,FI,$I,UI,VI,BI,jI,zI,HI,KI;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Vm=="object"&&typeof Vm.exports=="object"?e(r(t,r(Vm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};TI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},PI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},DI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},II=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},OI=function(r,n){return function(i,o){n(i,o,r)}},AI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},RI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},NI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},KI=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},MI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Um=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},yx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},kI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(yx(arguments[n]));return r},LI=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},ol=function(r){return this instanceof ol?(this.v=r,this):new ol(r)},FI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof ol?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},$I=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:ol(r[s](u)),done:s==="return"}:a?a(u):u}:a}},UI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Um=="function"?Um(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},VI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},BI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},jI=function(r){return r&&r.__esModule?r:{default:r}},zI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},HI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",TI),e("__assign",PI),e("__rest",DI),e("__decorate",II),e("__param",OI),e("__metadata",AI),e("__awaiter",RI),e("__generator",NI),e("__exportStar",MI),e("__createBinding",KI),e("__values",Um),e("__read",yx),e("__spread",kI),e("__spreadArrays",LI),e("__await",ol),e("__asyncGenerator",FI),e("__asyncDelegator",$I),e("__asyncValues",UI),e("__makeTemplateObject",VI),e("__importStar",BI),e("__importDefault",jI),e("__classPrivateFieldGet",zI),e("__classPrivateFieldSet",HI)})});var qI=ee(Bm=>{"use strict";c();d();f();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.delay=void 0;function NH(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Bm.delay=NH});var WI=ee(sl=>{"use strict";c();d();f();Object.defineProperty(sl,"__esModule",{value:!0});sl.ONE_THOUSAND=sl.ONE_HUNDRED=void 0;sl.ONE_HUNDRED=100;sl.ONE_THOUSAND=1e3});var GI=ee(le=>{"use strict";c();d();f();Object.defineProperty(le,"__esModule",{value:!0});le.ONE_YEAR=le.FOUR_WEEKS=le.THREE_WEEKS=le.TWO_WEEKS=le.ONE_WEEK=le.THIRTY_DAYS=le.SEVEN_DAYS=le.FIVE_DAYS=le.THREE_DAYS=le.ONE_DAY=le.TWENTY_FOUR_HOURS=le.TWELVE_HOURS=le.SIX_HOURS=le.THREE_HOURS=le.ONE_HOUR=le.SIXTY_MINUTES=le.THIRTY_MINUTES=le.TEN_MINUTES=le.FIVE_MINUTES=le.ONE_MINUTE=le.SIXTY_SECONDS=le.THIRTY_SECONDS=le.TEN_SECONDS=le.FIVE_SECONDS=le.ONE_SECOND=void 0;le.ONE_SECOND=1;le.FIVE_SECONDS=5;le.TEN_SECONDS=10;le.THIRTY_SECONDS=30;le.SIXTY_SECONDS=60;le.ONE_MINUTE=le.SIXTY_SECONDS;le.FIVE_MINUTES=le.ONE_MINUTE*5;le.TEN_MINUTES=le.ONE_MINUTE*10;le.THIRTY_MINUTES=le.ONE_MINUTE*30;le.SIXTY_MINUTES=le.ONE_MINUTE*60;le.ONE_HOUR=le.SIXTY_MINUTES;le.THREE_HOURS=le.ONE_HOUR*3;le.SIX_HOURS=le.ONE_HOUR*6;le.TWELVE_HOURS=le.ONE_HOUR*12;le.TWENTY_FOUR_HOURS=le.ONE_HOUR*24;le.ONE_DAY=le.TWENTY_FOUR_HOURS;le.THREE_DAYS=le.ONE_DAY*3;le.FIVE_DAYS=le.ONE_DAY*5;le.SEVEN_DAYS=le.ONE_DAY*7;le.THIRTY_DAYS=le.ONE_DAY*30;le.ONE_WEEK=le.SEVEN_DAYS;le.TWO_WEEKS=le.ONE_WEEK*2;le.THREE_WEEKS=le.ONE_WEEK*3;le.FOUR_WEEKS=le.ONE_WEEK*4;le.ONE_YEAR=le.ONE_DAY*365});var vx=ee(jm=>{"use strict";c();d();f();Object.defineProperty(jm,"__esModule",{value:!0});var YI=Rf();YI.__exportStar(WI(),jm);YI.__exportStar(GI(),jm)});var JI=ee(al=>{"use strict";c();d();f();Object.defineProperty(al,"__esModule",{value:!0});al.fromMiliseconds=al.toMiliseconds=void 0;var XI=vx();function MH(e){return e*XI.ONE_THOUSAND}al.toMiliseconds=MH;function kH(e){return Math.floor(e/XI.ONE_THOUSAND)}al.fromMiliseconds=kH});var QI=ee(zm=>{"use strict";c();d();f();Object.defineProperty(zm,"__esModule",{value:!0});var ZI=Rf();ZI.__exportStar(qI(),zm);ZI.__exportStar(JI(),zm)});var eO=ee(Nf=>{"use strict";c();d();f();Object.defineProperty(Nf,"__esModule",{value:!0});Nf.Watch=void 0;var Hm=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};Nf.Watch=Hm;Nf.default=Hm});var tO=ee(Km=>{"use strict";c();d();f();Object.defineProperty(Km,"__esModule",{value:!0});Km.IWatch=void 0;var wx=class{};Km.IWatch=wx});var rO=ee(xx=>{"use strict";c();d();f();Object.defineProperty(xx,"__esModule",{value:!0});var LH=Rf();LH.__exportStar(tO(),xx)});var Oi=ee(ul=>{"use strict";c();d();f();Object.defineProperty(ul,"__esModule",{value:!0});var qm=Rf();qm.__exportStar(QI(),ul);qm.__exportStar(eO(),ul);qm.__exportStar(rO(),ul);qm.__exportStar(vx(),ul)});var jn,nO=ba(()=>{c();d();f();jn=class{}});var iO={};fr(iO,{IEvents:()=>jn});var Wm=ba(()=>{c();d();f();nO()});var oO=ee(Gm=>{"use strict";c();d();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.IHeartBeat=void 0;var FH=(Wm(),I2(iO)),bx=class extends FH.IEvents{constructor(t){super()}};Gm.IHeartBeat=bx});var _x=ee(Ex=>{"use strict";c();d();f();Object.defineProperty(Ex,"__esModule",{value:!0});var $H=Af();$H.__exportStar(oO(),Ex)});var sO=ee(ll=>{"use strict";c();d();f();Object.defineProperty(ll,"__esModule",{value:!0});ll.HEARTBEAT_EVENTS=ll.HEARTBEAT_INTERVAL=void 0;var UH=Oi();ll.HEARTBEAT_INTERVAL=UH.FIVE_SECONDS;ll.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Cx=ee(Sx=>{"use strict";c();d();f();Object.defineProperty(Sx,"__esModule",{value:!0});var VH=Af();VH.__exportStar(sO(),Sx)});var aO=ee(Ym=>{"use strict";c();d();f();Object.defineProperty(Ym,"__esModule",{value:!0});Ym.HeartBeat=void 0;var Tx=Af(),BH=ko(),jH=Oi(),zH=_x(),Px=Cx(),Mf=class extends zH.IHeartBeat{constructor(t){super(t),this.events=new BH.EventEmitter,this.interval=Px.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||Px.HEARTBEAT_INTERVAL}static init(t){return Tx.__awaiter(this,void 0,void 0,function*(){let r=new Mf(t);return yield r.init(),r})}init(){return Tx.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return Tx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),jH.toMiliseconds(this.interval))})}pulse(){this.events.emit(Px.HEARTBEAT_EVENTS.pulse)}};Ym.HeartBeat=Mf});var uO=ee(kf=>{"use strict";c();d();f();Object.defineProperty(kf,"__esModule",{value:!0});var Dx=Af();Dx.__exportStar(aO(),kf);Dx.__exportStar(_x(),kf);Dx.__exportStar(Cx(),kf)});var IO=ee((Q0e,Jm)=>{c();d();f();var lO,cO,fO,dO,hO,pO,mO,gO,yO,Xm,Ix,vO,wO,cl,xO,bO,EO,_O,SO,CO,TO,PO,DO;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Jm=="object"&&typeof Jm.exports=="object"?e(r(t,r(Jm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};lO=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},cO=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},fO=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},dO=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},hO=function(r,n){return function(i,o){n(i,o,r)}},pO=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},mO=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},gO=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},DO=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},yO=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Xm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Ix=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},vO=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Ix(arguments[n]));return r},wO=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},cl=function(r){return this instanceof cl?(this.v=r,this):new cl(r)},xO=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof cl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},bO=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:cl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},EO=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Xm=="function"?Xm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},_O=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},SO=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},CO=function(r){return r&&r.__esModule?r:{default:r}},TO=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},PO=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",lO),e("__assign",cO),e("__rest",fO),e("__decorate",dO),e("__param",hO),e("__metadata",pO),e("__awaiter",mO),e("__generator",gO),e("__exportStar",yO),e("__createBinding",DO),e("__values",Xm),e("__read",Ix),e("__spread",vO),e("__spreadArrays",wO),e("__await",cl),e("__asyncGenerator",xO),e("__asyncDelegator",bO),e("__asyncValues",EO),e("__makeTemplateObject",_O),e("__importStar",SO),e("__importDefault",CO),e("__classPrivateFieldGet",TO),e("__classPrivateFieldSet",PO)})});var Ox=ee(fl=>{"use strict";c();d();f();Object.defineProperty(fl,"__esModule",{value:!0});fl.PINO_CUSTOM_CONTEXT_KEY=fl.PINO_LOGGER_DEFAULTS=void 0;fl.PINO_LOGGER_DEFAULTS={level:"info"};fl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var MO=ee(Br=>{"use strict";c();d();f();Object.defineProperty(Br,"__esModule",{value:!0});Br.generateChildLogger=Br.formatChildLoggerContext=Br.getLoggerContext=Br.setBrowserLoggerContext=Br.getBrowserLoggerContext=Br.getDefaultLoggerOptions=void 0;var dl=Ox();function HH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||dl.PINO_LOGGER_DEFAULTS.level})}Br.getDefaultLoggerOptions=HH;function OO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}Br.getBrowserLoggerContext=OO;function AO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}Br.setBrowserLoggerContext=AO;function RO(e,t=dl.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=OO(e,t):r=e.bindings().context||"",r}Br.getLoggerContext=RO;function NO(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=RO(e,r);return n.trim()?`${n}/${t}`:t}Br.formatChildLoggerContext=NO;function KH(e,t,r=dl.PINO_CUSTOM_CONTEXT_KEY){let n=NO(e,t,r),i=e.child({context:n});return AO(i,n,r)}Br.generateChildLogger=KH});var Rx=ee(hl=>{"use strict";c();d();f();Object.defineProperty(hl,"__esModule",{value:!0});hl.pino=void 0;var Ax=IO(),qH=Ax.__importDefault(Tm());Object.defineProperty(hl,"pino",{enumerable:!0,get:function(){return qH.default}});Ax.__exportStar(Ox(),hl);Ax.__exportStar(MO(),hl)});var FO=ee(s0=>{"use strict";c();d();f();Object.defineProperty(s0,"__esModule",{value:!0});s0.BrowserRandomSource=void 0;var LO=65536,Nx=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=LO)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,LO)));return r}};s0.BrowserRandomSource=Nx});var Sn=ee(Mx=>{"use strict";c();d();f();Object.defineProperty(Mx,"__esModule",{value:!0});function WH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Mx.wipe=WH});var $O=ee(()=>{c();d();f()});var UO=ee(a0=>{"use strict";c();d();f();Object.defineProperty(a0,"__esModule",{value:!0});a0.NodeRandomSource=void 0;var GH=Sn(),kx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof D2<"u"){let t=$O();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,GH.wipe)(r),n}};a0.NodeRandomSource=kx});var VO=ee(u0=>{"use strict";c();d();f();Object.defineProperty(u0,"__esModule",{value:!0});u0.SystemRandomSource=void 0;var YH=FO(),XH=UO(),Lx=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new YH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new XH.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};u0.SystemRandomSource=Lx});var BO=ee(on=>{"use strict";c();d();f();Object.defineProperty(on,"__esModule",{value:!0});function JH(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}on.mul=Math.imul||JH;function ZH(e,t){return e+t|0}on.add=ZH;function QH(e,t){return e-t|0}on.sub=QH;function eK(e,t){return e<<t|e>>>32-t}on.rotl=eK;function tK(e,t){return e<<32-t|e>>>t}on.rotr=tK;function rK(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}on.isInteger=Number.isInteger||rK;on.MAX_SAFE_INTEGER=9007199254740991;on.isSafeInteger=function(e){return on.isInteger(e)&&e>=-on.MAX_SAFE_INTEGER&&e<=on.MAX_SAFE_INTEGER}});var ml=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var jO=BO();function nK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=nK;function iK(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=iK;function oK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=oK;function sK(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=sK;function zO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}we.writeUint16BE=zO;we.writeInt16BE=zO;function HO(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}we.writeUint16LE=HO;we.writeInt16LE=HO;function Fx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Fx;function $x(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}we.readUint32BE=$x;function Ux(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=Ux;function Vx(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}we.readUint32LE=Vx;function l0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}we.writeUint32BE=l0;we.writeInt32BE=l0;function c0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}we.writeUint32LE=c0;we.writeInt32LE=c0;function aK(e,t){t===void 0&&(t=0);var r=Fx(e,t),n=Fx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=aK;function uK(e,t){t===void 0&&(t=0);var r=$x(e,t),n=$x(e,t+4);return r*4294967296+n}we.readUint64BE=uK;function lK(e,t){t===void 0&&(t=0);var r=Ux(e,t),n=Ux(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=lK;function cK(e,t){t===void 0&&(t=0);var r=Vx(e,t),n=Vx(e,t+4);return n*4294967296+r}we.readUint64LE=cK;function KO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),l0(e/4294967296>>>0,t,r),l0(e>>>0,t,r+4),t}we.writeUint64BE=KO;we.writeInt64BE=KO;function qO(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),c0(e>>>0,t,r),c0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=qO;we.writeInt64LE=qO;function fK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}we.readUintBE=fK;function dK(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}we.readUintLE=dK;function hK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!jO.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}we.writeUintBE=hK;function pK(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!jO.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}we.writeUintLE=pK;function mK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=mK;function gK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=gK;function yK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=yK;function vK(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=vK;function wK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}we.writeFloat32BE=wK;function xK(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}we.writeFloat32LE=xK;function bK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}we.writeFloat64BE=bK;function EK(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}we.writeFloat64LE=EK});var Js=ee(xr=>{"use strict";c();d();f();Object.defineProperty(xr,"__esModule",{value:!0});xr.randomStringForEntropy=xr.randomString=xr.randomUint32=xr.randomBytes=xr.defaultRandomSource=void 0;var _K=VO(),SK=ml(),WO=Sn();xr.defaultRandomSource=new _K.SystemRandomSource;function Bx(e,t=xr.defaultRandomSource){return t.randomBytes(e)}xr.randomBytes=Bx;function CK(e=xr.defaultRandomSource){let t=Bx(4,e),r=(0,SK.readUint32LE)(t);return(0,WO.wipe)(t),r}xr.randomUint32=CK;var GO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function YO(e,t=GO,r=xr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=Bx(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,WO.wipe)(s)}return n}xr.randomString=YO;function TK(e,t=GO,r=xr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return YO(n,t,r)}xr.randomStringForEntropy=TK});var ZO=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var yl=ml(),gl=Sn();Ai.DIGEST_LENGTH=64;Ai.BLOCK_SIZE=128;var JO=function(){function e(){this.digestLength=Ai.DIGEST_LENGTH,this.blockSize=Ai.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){gl.wipe(this._buffer),gl.wipe(this._tempHi),gl.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<Ai.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;yl.writeUint32BE(i,this._buffer,s-8),yl.writeUint32BE(o,this._buffer,s-4),jx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)yl.writeUint32BE(this._stateHi[a],t,a*8),yl.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){gl.wipe(t.stateHi),gl.wipe(t.stateLo),t.buffer&&gl.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Ai.SHA512=JO;var XO=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function jx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],y=r[5],v=r[6],w=r[7],_=n[0],D=n[1],C=n[2],I=n[3],P=n[4],R=n[5],U=n[6],j=n[7],F,$,G,X,W,J,N,m;s>=128;){for(var E=0;E<16;E++){var O=8*E+o;e[E]=yl.readUint32BE(i,O),t[E]=yl.readUint32BE(i,O+4)}for(var E=0;E<80;E++){var A=a,M=u,V=l,B=p,k=h,b=y,L=v,Z=w,T=_,z=D,K=C,q=I,Q=P,ie=R,re=U,te=j;if(F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(h>>>14|P<<32-14)^(h>>>18|P<<32-18)^(P>>>41-32|h<<32-(41-32)),$=(P>>>14|h<<32-14)^(P>>>18|h<<32-18)^(h>>>41-32|P<<32-(41-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=h&y^~h&v,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=XO[E*2],$=XO[E*2+1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=e[E%16],$=t[E%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,G=N&65535|m<<16,X=W&65535|J<<16,F=G,$=X,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),$=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=a&u^a&l^u&l,$=_&D^_&C^D&C,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,Z=N&65535|m<<16,te=W&65535|J<<16,F=B,$=q,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=G,$=X,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,B=N&65535|m<<16,q=W&65535|J<<16,u=A,l=M,p=V,h=B,y=k,v=b,w=L,a=Z,D=T,C=z,I=K,P=q,R=Q,U=ie,j=re,_=te,E%16===15)for(var O=0;O<16;O++)F=e[O],$=t[O],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(O+9)%16],$=t[(O+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+1)%16],X=t[(O+1)%16],F=(G>>>1|X<<32-1)^(G>>>8|X<<32-8)^G>>>7,$=(X>>>1|G<<32-1)^(X>>>8|G<<32-8)^(X>>>7|G<<32-7),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(O+14)%16],X=t[(O+14)%16],F=(G>>>19|X<<32-19)^(X>>>61-32|G<<32-(61-32))^G>>>6,$=(X>>>19|G<<32-19)^(G>>>61-32|X<<32-(61-32))^(X>>>6|G<<32-6),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,e[O]=N&65535|m<<16,t[O]=W&65535|J<<16}F=a,$=_,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[0],$=n[0],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[0]=a=N&65535|m<<16,n[0]=_=W&65535|J<<16,F=u,$=D,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[1],$=n[1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[1]=u=N&65535|m<<16,n[1]=D=W&65535|J<<16,F=l,$=C,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[2],$=n[2],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[2]=l=N&65535|m<<16,n[2]=C=W&65535|J<<16,F=p,$=I,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[3],$=n[3],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[3]=p=N&65535|m<<16,n[3]=I=W&65535|J<<16,F=h,$=P,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[4],$=n[4],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[4]=h=N&65535|m<<16,n[4]=P=W&65535|J<<16,F=y,$=R,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[5],$=n[5],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[5]=y=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=v,$=U,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[6],$=n[6],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[6]=v=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=w,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[7],$=n[7],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[7]=w=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function PK(e){var t=new JO;t.update(e);var r=t.digest();return t.clean(),r}Ai.hash=PK});var dA=ee(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertSecretKeyToX25519=Ie.convertPublicKeyToX25519=Ie.verify=Ie.sign=Ie.extractPublicKeyFromSecretKey=Ie.generateKeyPair=Ie.generateKeyPairFromSeed=Ie.SEED_LENGTH=Ie.SECRET_KEY_LENGTH=Ie.PUBLIC_KEY_LENGTH=Ie.SIGNATURE_LENGTH=void 0;var DK=Js(),Ff=ZO(),nA=Sn();Ie.SIGNATURE_LENGTH=64;Ie.PUBLIC_KEY_LENGTH=32;Ie.SECRET_KEY_LENGTH=64;Ie.SEED_LENGTH=32;function me(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var IK=new Uint8Array(32);IK[0]=9;var Kx=me(),vl=me([1]),OK=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),AK=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),QO=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),eA=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),RK=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lo(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function zx(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function iA(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function $f(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];zx(n),zx(n),zx(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,iA(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function oA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function tA(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return $f(r,e),$f(n,t),oA(r,n)}function sA(e){let t=new Uint8Array(32);return $f(t,e),t[0]&1}function NK(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Zs(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function ea(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Re(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Qs(e,t){Re(e,t,t)}function aA(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)Qs(r,r),n!==2&&n!==4&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function MK(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)Qs(r,r),n!==1&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function qx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();ea(r,e[1],e[0]),ea(p,t[1],t[0]),Re(r,r,p),Zs(n,e[0],e[1]),Zs(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,AK),Re(o,e[2],t[2]),Zs(o,o,o),ea(s,n,r),ea(a,o,i),Zs(u,o,i),Zs(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function rA(e,t,r){for(let n=0;n<4;n++)iA(e[n],t[n],r)}function Gx(e,t){let r=me(),n=me(),i=me();aA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),$f(e,n),e[31]^=sA(r)<<7}function uA(e,t,r){Lo(e[0],Kx),Lo(e[1],vl),Lo(e[2],vl),Lo(e[3],Kx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;rA(e,t,i),qx(t,e),qx(e,e),rA(e,t,i)}}function Yx(e,t){let r=[me(),me(),me(),me()];Lo(r[0],QO),Lo(r[1],eA),Lo(r[2],vl),Re(r[3],QO,eA),uA(e,r,t)}function lA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,Ff.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Yx(n,t),Gx(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=lA;function kK(e){let t=(0,DK.randomBytes)(32,e),r=lA(t);return(0,nA.wipe)(t),r}Ie.generateKeyPair=kK;function LK(e){if(e.length!==Ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Ie.extractPublicKeyFromSecretKey=LK;var Hx=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function cA(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*Hx[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*Hx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*Hx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function Wx(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;cA(e,t)}function FK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,Ff.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new Ff.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),Wx(a),Yx(n,a),Gx(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();Wx(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return cA(o.subarray(32),r),o}Ie.sign=FK;function fA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Lo(e[2],vl),NK(e[1],t),Qs(i,e[1]),Re(o,i,OK),ea(i,i,e[2]),Zs(o,e[2],o),Qs(s,o),Qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),MK(r,r),Re(r,r,i),Re(r,r,o),Re(r,r,o),Re(e[0],r,o),Qs(n,e[0]),Re(n,n,o),tA(n,i)&&Re(e[0],e[0],RK),Qs(n,e[0]),Re(n,n,o),tA(n,i)?-1:(sA(e[0])===t[31]>>7&&ea(e[0],Kx,e[0]),Re(e[3],e[0],e[1]),0)}function $K(e,t,r){let n=new Uint8Array(32),i=[me(),me(),me(),me()],o=[me(),me(),me(),me()];if(r.length!==Ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Ie.SIGNATURE_LENGTH} bytes`);if(fA(o,e))return!1;let s=new Ff.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return Wx(a),uA(i,o,a),Yx(o,r.subarray(32)),qx(i,o),Gx(n,i),!oA(r,n)}Ie.verify=$K;function UK(e){let t=[me(),me(),me(),me()];if(fA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Zs(r,vl,i),ea(n,vl,i),aA(n,n),Re(r,r,n);let o=new Uint8Array(32);return $f(o,r),o}Ie.convertPublicKeyToX25519=UK;function VK(e){let t=(0,Ff.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,nA.wipe)(t),r}Ie.convertSecretKeyToX25519=VK});var YA=ee(x0=>{"use strict";c();d();f();Object.defineProperty(x0,"__esModule",{value:!0});var br=ml(),xb=Sn(),eW=20;function tW(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],y=r[23]<<24|r[22]<<16|r[21]<<8|r[20],v=r[27]<<24|r[26]<<16|r[25]<<8|r[24],w=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],D=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],I=t[15]<<24|t[14]<<16|t[13]<<8|t[12],P=n,R=i,U=o,j=s,F=a,$=u,G=l,X=p,W=h,J=y,N=v,m=w,E=_,O=D,A=C,M=I,V=0;V<eW;V+=2)P=P+F|0,E^=P,E=E>>>32-16|E<<16,W=W+E|0,F^=W,F=F>>>32-12|F<<12,R=R+$|0,O^=R,O=O>>>32-16|O<<16,J=J+O|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,A^=U,A=A>>>32-16|A<<16,N=N+A|0,G^=N,G=G>>>32-12|G<<12,j=j+X|0,M^=j,M=M>>>32-16|M<<16,m=m+M|0,X^=m,X=X>>>32-12|X<<12,U=U+G|0,A^=U,A=A>>>32-8|A<<8,N=N+A|0,G^=N,G=G>>>32-7|G<<7,j=j+X|0,M^=j,M=M>>>32-8|M<<8,m=m+M|0,X^=m,X=X>>>32-7|X<<7,R=R+$|0,O^=R,O=O>>>32-8|O<<8,J=J+O|0,$^=J,$=$>>>32-7|$<<7,P=P+F|0,E^=P,E=E>>>32-8|E<<8,W=W+E|0,F^=W,F=F>>>32-7|F<<7,P=P+$|0,M^=P,M=M>>>32-16|M<<16,N=N+M|0,$^=N,$=$>>>32-12|$<<12,R=R+G|0,E^=R,E=E>>>32-16|E<<16,m=m+E|0,G^=m,G=G>>>32-12|G<<12,U=U+X|0,O^=U,O=O>>>32-16|O<<16,W=W+O|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,A^=j,A=A>>>32-16|A<<16,J=J+A|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,O^=U,O=O>>>32-8|O<<8,W=W+O|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,A^=j,A=A>>>32-8|A<<8,J=J+A|0,F^=J,F=F>>>32-7|F<<7,R=R+G|0,E^=R,E=E>>>32-8|E<<8,m=m+E|0,G^=m,G=G>>>32-7|G<<7,P=P+$|0,M^=P,M=M>>>32-8|M<<8,N=N+M|0,$^=N,$=$>>>32-7|$<<7;br.writeUint32LE(P+n|0,e,0),br.writeUint32LE(R+i|0,e,4),br.writeUint32LE(U+o|0,e,8),br.writeUint32LE(j+s|0,e,12),br.writeUint32LE(F+a|0,e,16),br.writeUint32LE($+u|0,e,20),br.writeUint32LE(G+l|0,e,24),br.writeUint32LE(X+p|0,e,28),br.writeUint32LE(W+h|0,e,32),br.writeUint32LE(J+y|0,e,36),br.writeUint32LE(N+v|0,e,40),br.writeUint32LE(m+w|0,e,44),br.writeUint32LE(E+_|0,e,48),br.writeUint32LE(O+D|0,e,52),br.writeUint32LE(A+C|0,e,56),br.writeUint32LE(M+I|0,e,60)}function GA(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){tW(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];nW(o,0,s)}return xb.wipe(a),i===0&&xb.wipe(o),n}x0.streamXOR=GA;function rW(e,t,r,n){return n===void 0&&(n=0),xb.wipe(r),GA(e,t,r,r,n)}x0.stream=rW;function nW(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var b0=ee(Tl=>{"use strict";c();d();f();Object.defineProperty(Tl,"__esModule",{value:!0});function iW(e,t,r){return~(e-1)&t|e-1&r}Tl.select=iW;function oW(e,t){return(e|0)-(t|0)-1>>>31&1}Tl.lessOrEqual=oW;function XA(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Tl.compare=XA;function sW(e,t){return e.length===0||t.length===0?!1:XA(e,t)!==0}Tl.equal=sW});var ZA=ee(Ni=>{"use strict";c();d();f();Object.defineProperty(Ni,"__esModule",{value:!0});var aW=b0(),E0=Sn();Ni.DIGEST_LENGTH=16;var JA=function(){function e(t){this.digestLength=Ni.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],y=this._h[7],v=this._h[8],w=this._h[9],_=this._r[0],D=this._r[1],C=this._r[2],I=this._r[3],P=this._r[4],R=this._r[5],U=this._r[6],j=this._r[7],F=this._r[8],$=this._r[9];n>=16;){var G=t[r+0]|t[r+1]<<8;o+=G&8191;var X=t[r+2]|t[r+3]<<8;s+=(G>>>13|X<<3)&8191;var W=t[r+4]|t[r+5]<<8;a+=(X>>>10|W<<6)&8191;var J=t[r+6]|t[r+7]<<8;u+=(W>>>7|J<<9)&8191;var N=t[r+8]|t[r+9]<<8;l+=(J>>>4|N<<12)&8191,p+=N>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(N>>>14|m<<2)&8191;var E=t[r+12]|t[r+13]<<8;y+=(m>>>11|E<<5)&8191;var O=t[r+14]|t[r+15]<<8;v+=(E>>>8|O<<8)&8191,w+=O>>>5|i;var A=0,M=A;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),A=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=y*(5*I),M+=v*(5*C),M+=w*(5*D),A+=M>>>13,M&=8191;var V=A;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),A=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=y*(5*P),V+=v*(5*I),V+=w*(5*C),A+=V>>>13,V&=8191;var B=A;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),A=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=y*(5*R),B+=v*(5*P),B+=w*(5*I),A+=B>>>13,B&=8191;var k=A;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),A=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=y*(5*U),k+=v*(5*R),k+=w*(5*P),A+=k>>>13,k&=8191;var b=A;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,A=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=y*(5*j),b+=v*(5*U),b+=w*(5*R),A+=b>>>13,b&=8191;var L=A;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,A=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=y*(5*F),L+=v*(5*j),L+=w*(5*U),A+=L>>>13,L&=8191;var Z=A;Z+=o*U,Z+=s*R,Z+=a*P,Z+=u*I,Z+=l*C,A=Z>>>13,Z&=8191,Z+=p*D,Z+=h*_,Z+=y*(5*$),Z+=v*(5*F),Z+=w*(5*j),A+=Z>>>13,Z&=8191;var T=A;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,A=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=y*_,T+=v*(5*$),T+=w*(5*F),A+=T>>>13,T&=8191;var z=A;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,A=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=y*D,z+=v*_,z+=w*(5*$),A+=z>>>13,z&=8191;var K=A;K+=o*$,K+=s*F,K+=a*j,K+=u*U,K+=l*R,A=K>>>13,K&=8191,K+=p*P,K+=h*I,K+=y*C,K+=v*D,K+=w*_,A+=K>>>13,K&=8191,A=(A<<2)+A|0,A=A+M|0,M=A&8191,A=A>>>13,V+=A,o=M,s=V,a=B,u=k,l=b,p=L,h=Z,y=T,v=z,w=K,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=y,this._h[8]=v,this._h[9]=w},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return E0.wipe(this._buffer),E0.wipe(this._r),E0.wipe(this._h),E0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ni.Poly1305=JA;function uW(e,t){var r=new JA(e);r.update(t);var n=r.digest();return r.clean(),n}Ni.oneTimeAuth=uW;function lW(e,t){return e.length!==Ni.DIGEST_LENGTH||t.length!==Ni.DIGEST_LENGTH?!1:aW.equal(e,t)}Ni.equal=lW});var S0=ee(Mi=>{"use strict";c();d();f();Object.defineProperty(Mi,"__esModule",{value:!0});var _0=YA(),cW=ZA(),Hf=Sn(),QA=ml(),fW=b0();Mi.KEY_LENGTH=32;Mi.NONCE_LENGTH=12;Mi.TAG_LENGTH=16;var eR=new Uint8Array(16),dW=function(){function e(t){if(this.nonceLength=Mi.NONCE_LENGTH,this.tagLength=Mi.TAG_LENGTH,t.length!==Mi.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return _0.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),Hf.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);_0.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!fW.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return _0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),Hf.wipe(o),l},e.prototype.clean=function(){return Hf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new cW.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(eR.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(eR.subarray(n.length%16));var s=new Uint8Array(8);i&&QA.writeUint64LE(i.length,s),o.update(s),QA.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),Hf.wipe(a),Hf.wipe(s)},e}();Mi.ChaCha20Poly1305=dW});var tR=ee(bb=>{"use strict";c();d();f();Object.defineProperty(bb,"__esModule",{value:!0});function hW(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}bb.isSerializableHash=hW});var nR=ee(Kf=>{"use strict";c();d();f();Object.defineProperty(Kf,"__esModule",{value:!0});var oi=tR(),pW=b0(),mW=Sn(),rR=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),oi.isSerializableHash(this._inner)&&oi.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),mW.wipe(n)}return e.prototype.reset=function(){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){oi.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),oi.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!oi.isSerializableHash(this._inner)||!oi.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!oi.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Kf.HMAC=rR;function gW(e,t,r){var n=new rR(e,t);n.update(r);var i=n.digest();return n.clean(),i}Kf.hmac=gW;Kf.equal=pW.equal});var C0=ee(Eb=>{"use strict";c();d();f();Object.defineProperty(Eb,"__esModule",{value:!0});var iR=nR(),oR=Sn(),yW=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=iR.hmac(this._hash,n,r);this._hmac=new iR.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),oR.wipe(this._buffer),oR.wipe(this._counter),this._bufpos=0},e}();Eb.HKDF=yW});var D0=ee($o=>{"use strict";c();d();f();Object.defineProperty($o,"__esModule",{value:!0});var P0=ml(),T0=Sn();$o.DIGEST_LENGTH=32;$o.BLOCK_SIZE=64;var sR=function(){function e(){this.digestLength=$o.DIGEST_LENGTH,this.blockSize=$o.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){T0.wipe(this._buffer),T0.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(_b(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=_b(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;P0.writeUint32BE(i,this._buffer,s-8),P0.writeUint32BE(o,this._buffer,s-4),_b(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)P0.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){T0.wipe(t.state),t.buffer&&T0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();$o.SHA256=sR;var vW=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function _b(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],y=t[7],v=0;v<16;v++){var w=n+v*4;e[v]=P0.readUint32BE(r,w)}for(var v=16;v<64;v++){var _=e[v-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[v-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[v]=(D+e[v-7]|0)+(C+e[v-16]|0)}for(var v=0;v<64;v++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(y+(vW[v]+e[v]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;y=h,h=p,p=l,l=u+D|0,u=a,a=s,s=o,o=D+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=y,n+=64,i-=64}return n}function wW(e){var t=new sR;t.update(e);var r=t.digest();return t.clean(),r}$o.hash=wW});var A0=ee(Nt=>{"use strict";c();d();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.sharedKey=Nt.generateKeyPair=Nt.generateKeyPairFromSeed=Nt.scalarMultBase=Nt.scalarMult=Nt.SHARED_KEY_LENGTH=Nt.SECRET_KEY_LENGTH=Nt.PUBLIC_KEY_LENGTH=void 0;var xW=Js(),bW=Sn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function si(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var aR=new Uint8Array(32);aR[0]=9;var EW=si([56129,1]);function Sb(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function qf(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function _W(e,t){let r=si(),n=si();for(let i=0;i<16;i++)n[i]=t[i];Sb(n),Sb(n),Sb(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,qf(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function SW(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function I0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function O0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function ki(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,y=0,v=0,w=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,O=0,A=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Z=r[4],T=r[5],z=r[6],K=r[7],q=r[8],Q=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],ae=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Z,p+=n*T,h+=n*z,y+=n*K,v+=n*q,w+=n*Q,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*ae,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Z,h+=n*T,y+=n*z,v+=n*K,w+=n*q,_+=n*Q,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*ae,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Z,y+=n*T,v+=n*z,w+=n*K,_+=n*q,D+=n*Q,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*ae,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,y+=n*Z,v+=n*T,w+=n*z,_+=n*K,D+=n*q,C+=n*Q,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*ae,n=t[4],l+=n*B,p+=n*k,h+=n*b,y+=n*L,v+=n*Z,w+=n*T,_+=n*z,D+=n*K,C+=n*q,I+=n*Q,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*ae,n=t[5],p+=n*B,h+=n*k,y+=n*b,v+=n*L,w+=n*Z,_+=n*T,D+=n*z,C+=n*K,I+=n*q,P+=n*Q,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*ae,n=t[6],h+=n*B,y+=n*k,v+=n*b,w+=n*L,_+=n*Z,D+=n*T,C+=n*z,I+=n*K,P+=n*q,R+=n*Q,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*ae,n=t[7],y+=n*B,v+=n*k,w+=n*b,_+=n*L,D+=n*Z,C+=n*T,I+=n*z,P+=n*K,R+=n*q,U+=n*Q,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*ae,n=t[8],v+=n*B,w+=n*k,_+=n*b,D+=n*L,C+=n*Z,I+=n*T,P+=n*z,R+=n*K,U+=n*q,j+=n*Q,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*ae,n=t[9],w+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Z,P+=n*T,R+=n*z,U+=n*K,j+=n*q,F+=n*Q,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*ae,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Z,R+=n*T,U+=n*z,j+=n*K,F+=n*q,$+=n*Q,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*ae,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Z,U+=n*T,j+=n*z,F+=n*K,$+=n*q,G+=n*Q,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*ae,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Z,j+=n*T,F+=n*z,$+=n*K,G+=n*q,X+=n*Q,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,O+=n*ae,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Z,F+=n*T,$+=n*z,G+=n*K,X+=n*q,W+=n*Q,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,O+=n*ne,A+=n*ae,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Z,$+=n*T,G+=n*z,X+=n*K,W+=n*q,J+=n*Q,N+=n*ie,m+=n*re,E+=n*te,O+=n*he,A+=n*ne,M+=n*ae,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Z,G+=n*T,X+=n*z,W+=n*K,J+=n*q,N+=n*Q,m+=n*ie,E+=n*re,O+=n*te,A+=n*he,M+=n*ne,V+=n*ae,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,y+=38*J,v+=38*N,w+=38*m,_+=38*E,D+=38*O,C+=38*A,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=y,e[8]=v,e[9]=w,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Wf(e,t){ki(e,t,t)}function CW(e,t){let r=si();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Wf(r,r),n!==2&&n!==4&&ki(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function Cb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=si(),o=si(),s=si(),a=si(),u=si(),l=si();for(let v=0;v<31;v++)r[v]=e[v];r[31]=e[31]&127|64,r[0]&=248,SW(n,t);for(let v=0;v<16;v++)o[v]=n[v];i[0]=a[0]=1;for(let v=254;v>=0;--v){let w=r[v>>>3]>>>(v&7)&1;qf(i,o,w),qf(s,a,w),I0(u,i,s),O0(i,i,s),I0(s,o,a),O0(o,o,a),Wf(a,u),Wf(l,i),ki(i,s,i),ki(s,o,u),I0(u,i,s),O0(i,i,s),Wf(o,i),O0(s,a,l),ki(i,s,EW),I0(i,i,a),ki(s,s,i),ki(i,a,l),ki(a,o,n),Wf(o,u),qf(i,o,w),qf(s,a,w)}for(let v=0;v<16;v++)n[v+16]=i[v],n[v+32]=s[v],n[v+48]=o[v],n[v+64]=a[v];let p=n.subarray(32),h=n.subarray(16);CW(p,p),ki(h,h,p);let y=new Uint8Array(32);return _W(y,h),y}Nt.scalarMult=Cb;function uR(e){return Cb(e,aR)}Nt.scalarMultBase=uR;function lR(e){if(e.length!==Nt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Nt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:uR(t),secretKey:t}}Nt.generateKeyPairFromSeed=lR;function TW(e){let t=(0,xW.randomBytes)(32,e),r=lR(t);return(0,bW.wipe)(t),r}Nt.generateKeyPair=TW;function PW(e,t,r=!1){if(e.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Cb(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Nt.sharedKey=PW});var na=ee(Ue=>{"use strict";c();d();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getLocalStorage=Ue.getLocalStorageOrThrow=Ue.getCrypto=Ue.getCryptoOrThrow=Ue.getLocation=Ue.getLocationOrThrow=Ue.getNavigator=Ue.getNavigatorOrThrow=Ue.getDocument=Ue.getDocumentOrThrow=Ue.getFromWindowOrThrow=Ue.getFromWindow=void 0;function ra(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=ra;function Dl(e){let t=ra(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=Dl;function BW(){return Dl("document")}Ue.getDocumentOrThrow=BW;function jW(){return ra("document")}Ue.getDocument=jW;function zW(){return Dl("navigator")}Ue.getNavigatorOrThrow=zW;function HW(){return ra("navigator")}Ue.getNavigator=HW;function KW(){return Dl("location")}Ue.getLocationOrThrow=KW;function qW(){return ra("location")}Ue.getLocation=qW;function WW(){return Dl("crypto")}Ue.getCryptoOrThrow=WW;function GW(){return ra("crypto")}Ue.getCrypto=GW;function YW(){return Dl("localStorage")}Ue.getLocalStorageOrThrow=YW;function XW(){return ra("localStorage")}Ue.getLocalStorage=XW});var vR=ee(N0=>{"use strict";c();d();f();Object.defineProperty(N0,"__esModule",{value:!0});N0.getWindowMetadata=void 0;var yR=na();function JW(){let e,t;try{e=yR.getDocumentOrThrow(),t=yR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}N0.getWindowMetadata=JW});var M0=ee((l1e,wR)=>{"use strict";c();d();f();wR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var k0=ee((c1e,_R)=>{"use strict";c();d();f();var ER="%[a-f0-9]{2}",xR=new RegExp("("+ER+")|([^%]+?)","gi"),bR=new RegExp("("+ER+")+","gi");function Pb(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],Pb(r),Pb(n))}function ZW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(xR)||[],r=1;r<t.length;r++)e=Pb(t,r).join(""),t=e.match(xR)||[];return e}}function QW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=bR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=ZW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=bR.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}_R.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return QW(e)}}});var L0=ee((f1e,SR)=>{"use strict";c();d();f();SR.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var F0=ee((d1e,CR)=>{"use strict";c();d();f();CR.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var NR=ee(jr=>{"use strict";c();d();f();var eG=M0(),tG=k0(),PR=L0(),rG=F0(),nG=e=>e==null,Db=Symbol("encodeFragmentIdentifier");function iG(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[",i,"]"].join("")]:[...r,[Lt(t,e),"[",Lt(i,e),"]=",Lt(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[]"].join("")]:[...r,[Lt(t,e),"[]=",Lt(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),":list="].join("")]:[...r,[Lt(t,e),":list=",Lt(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Lt(r,e),t,Lt(i,e)].join("")]:[[n,Lt(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Lt(t,e)]:[...r,[Lt(t,e),"=",Lt(n,e)].join("")]}}function oG(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Li(n,e).includes(e.arrayFormatSeparator);n=s?Li(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Li(u,e)):n===null?n:Li(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Li(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Li(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function DR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?eG(e):encodeURIComponent(e):e}function Li(e,t){return t.decode?tG(e):e}function IR(e){return Array.isArray(e)?e.sort():typeof e=="object"?IR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function OR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function sG(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function AR(e){e=OR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function TR(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function RR(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),DR(t.arrayFormatSeparator);let r=oG(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=PR(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Li(s,t),r(Li(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=TR(o[s],t);else n[i]=TR(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=IR(s):i[o]=s,i},Object.create(null))}jr.extract=AR;jr.parse=RR;jr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),DR(t.arrayFormatSeparator);let r=s=>t.skipNull&&nG(e[s])||t.skipEmptyString&&e[s]==="",n=iG(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Lt(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Lt(s,t)+"[]":a.reduce(n(s),[]).join("&"):Lt(s,t)+"="+Lt(a,t)}).filter(s=>s.length>0).join("&")};jr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=PR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:RR(AR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Li(n,t)}:{})};jr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[Db]:!0},t);let r=OR(e.url).split("?")[0]||"",n=jr.extract(e.url),i=jr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=jr.stringify(o,t);s&&(s=`?${s}`);let a=sG(e.url);return e.fragmentIdentifier&&(a=`#${t[Db]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};jr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[Db]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=jr.parseUrl(e,r);return jr.stringifyUrl({url:n,query:rG(i,t),fragmentIdentifier:o},r)};jr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return jr.pick(e,n,r)}});var RN=ee((H1e,Q0)=>{c();d();f();var dN,hN,pN,mN,gN,yN,vN,wN,xN,Z0,Hb,bN,EN,Rl,_N,SN,CN,TN,PN,DN,IN,ON,AN;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Q0=="object"&&typeof Q0.exports=="object"?e(r(t,r(Q0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};dN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},hN=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},pN=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},mN=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},gN=function(r,n){return function(i,o){n(i,o,r)}},yN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},vN=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(y){try{h(o.next(y))}catch(v){u(v)}}function p(y){try{h(o.throw(y))}catch(v){u(v)}}function h(y){y.done?a(y.value):s(y.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},wN=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(y){return p([h,y])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(y){h=[6,y],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},AN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},xN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Z0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Hb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},bN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Hb(arguments[n]));return r},EN=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Rl=function(r){return this instanceof Rl?(this.v=r,this):new Rl(r)},_N=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(w){o[w]&&(s[w]=function(_){return new Promise(function(D,C){a.push([w,_,D,C])>1||l(w,_)})})}function l(w,_){try{p(o[w](_))}catch(D){v(a[0][3],D)}}function p(w){w.value instanceof Rl?Promise.resolve(w.value.v).then(h,y):v(a[0][2],w)}function h(w){l("next",w)}function y(w){l("throw",w)}function v(w,_){w(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},SN=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},CN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Z0=="function"?Z0(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},TN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},PN=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},DN=function(r){return r&&r.__esModule?r:{default:r}},IN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},ON=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",dN),e("__assign",hN),e("__rest",pN),e("__decorate",mN),e("__param",gN),e("__metadata",yN),e("__awaiter",vN),e("__generator",wN),e("__exportStar",xN),e("__createBinding",AN),e("__values",Z0),e("__read",Hb),e("__spread",bN),e("__spreadArrays",EN),e("__await",Rl),e("__asyncGenerator",_N),e("__asyncDelegator",SN),e("__asyncValues",CN),e("__makeTemplateObject",TN),e("__importStar",PN),e("__importDefault",DN),e("__classPrivateFieldGet",IN),e("__classPrivateFieldSet",ON)})});var MN=ee(Bo=>{"use strict";c();d();f();Object.defineProperty(Bo,"__esModule",{value:!0});Bo.isBrowserCryptoAvailable=Bo.getSubtleCrypto=Bo.getBrowerCrypto=void 0;function Kb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Bo.getBrowerCrypto=Kb;function NN(){let e=Kb();return e.subtle||e.webkitSubtle}Bo.getSubtleCrypto=NN;function MG(){return!!Kb()&&!!NN()}Bo.isBrowserCryptoAvailable=MG});var FN=ee(jo=>{"use strict";c();d();f();Object.defineProperty(jo,"__esModule",{value:!0});jo.isBrowser=jo.isNode=jo.isReactNative=void 0;function kN(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}jo.isReactNative=kN;function LN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}jo.isNode=LN;function kG(){return!kN()&&!LN()}jo.isBrowser=kG});var qb=ee(eg=>{"use strict";c();d();f();Object.defineProperty(eg,"__esModule",{value:!0});var $N=RN();$N.__exportStar(MN(),eg);$N.__exportStar(FN(),eg)});var qN=ee((Cve,KN)=>{"use strict";c();d();f();KN.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var AM=ee((rd,Fl)=>{c();d();f();var WG=200,aE="__lodash_hash_undefined__",hg=1,uM=2,lM=9007199254740991,sg="[object Arguments]",eE="[object Array]",GG="[object AsyncFunction]",cM="[object Boolean]",fM="[object Date]",dM="[object Error]",hM="[object Function]",YG="[object GeneratorFunction]",ag="[object Map]",pM="[object Number]",XG="[object Null]",Ll="[object Object]",JN="[object Promise]",JG="[object Proxy]",mM="[object RegExp]",ug="[object Set]",gM="[object String]",ZG="[object Symbol]",QG="[object Undefined]",tE="[object WeakMap]",yM="[object ArrayBuffer]",lg="[object DataView]",eY="[object Float32Array]",tY="[object Float64Array]",rY="[object Int8Array]",nY="[object Int16Array]",iY="[object Int32Array]",oY="[object Uint8Array]",sY="[object Uint8ClampedArray]",aY="[object Uint16Array]",uY="[object Uint32Array]",lY=/[\\^$.*+?()[\]{}|]/g,cY=/^\[object .+?Constructor\]$/,fY=/^(?:0|[1-9]\d*)$/,bt={};bt[eY]=bt[tY]=bt[rY]=bt[nY]=bt[iY]=bt[oY]=bt[sY]=bt[aY]=bt[uY]=!0;bt[sg]=bt[eE]=bt[yM]=bt[cM]=bt[lg]=bt[fM]=bt[dM]=bt[hM]=bt[ag]=bt[pM]=bt[Ll]=bt[mM]=bt[ug]=bt[gM]=bt[tE]=!1;var vM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,dY=typeof self=="object"&&self&&self.Object===Object&&self,Fi=vM||dY||Function("return this")(),wM=typeof rd=="object"&&rd&&!rd.nodeType&&rd,ZN=wM&&typeof Fl=="object"&&Fl&&!Fl.nodeType&&Fl,xM=ZN&&ZN.exports===wM,Jb=xM&&vM.process,QN=function(){try{return Jb&&Jb.binding&&Jb.binding("util")}catch(e){}}(),eM=QN&&QN.isTypedArray;function hY(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function pY(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function mY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function gY(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function yY(e){return function(t){return e(t)}}function vY(e,t){return e.has(t)}function wY(e,t){return e==null?void 0:e[t]}function xY(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function bY(e,t){return function(r){return e(t(r))}}function EY(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var _Y=Array.prototype,SY=Function.prototype,pg=Object.prototype,Zb=Fi["__core-js_shared__"],bM=SY.toString,ai=pg.hasOwnProperty,tM=function(){var e=/[^.]+$/.exec(Zb&&Zb.keys&&Zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),EM=pg.toString,CY=RegExp("^"+bM.call(ai).replace(lY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rM=xM?Fi.Buffer:void 0,cg=Fi.Symbol,nM=Fi.Uint8Array,_M=pg.propertyIsEnumerable,TY=_Y.splice,ua=cg?cg.toStringTag:void 0,iM=Object.getOwnPropertySymbols,PY=rM?rM.isBuffer:void 0,DY=bY(Object.keys,Object),rE=$l(Fi,"DataView"),nd=$l(Fi,"Map"),nE=$l(Fi,"Promise"),iE=$l(Fi,"Set"),oE=$l(Fi,"WeakMap"),id=$l(Object,"create"),IY=fa(rE),OY=fa(nd),AY=fa(nE),RY=fa(iE),NY=fa(oE),oM=cg?cg.prototype:void 0,Qb=oM?oM.valueOf:void 0;function la(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function MY(){this.__data__=id?id(null):{},this.size=0}function kY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function LY(e){var t=this.__data__;if(id){var r=t[e];return r===aE?void 0:r}return ai.call(t,e)?t[e]:void 0}function FY(e){var t=this.__data__;return id?t[e]!==void 0:ai.call(t,e)}function $Y(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=id&&t===void 0?aE:t,this}la.prototype.clear=MY;la.prototype.delete=kY;la.prototype.get=LY;la.prototype.has=FY;la.prototype.set=$Y;function $i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function UY(){this.__data__=[],this.size=0}function VY(e){var t=this.__data__,r=mg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():TY.call(t,r,1),--this.size,!0}function BY(e){var t=this.__data__,r=mg(t,e);return r<0?void 0:t[r][1]}function jY(e){return mg(this.__data__,e)>-1}function zY(e,t){var r=this.__data__,n=mg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}$i.prototype.clear=UY;$i.prototype.delete=VY;$i.prototype.get=BY;$i.prototype.has=jY;$i.prototype.set=zY;function ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function HY(){this.size=0,this.__data__={hash:new la,map:new(nd||$i),string:new la}}function KY(e){var t=gg(this,e).delete(e);return this.size-=t?1:0,t}function qY(e){return gg(this,e).get(e)}function WY(e){return gg(this,e).has(e)}function GY(e,t){var r=gg(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ca.prototype.clear=HY;ca.prototype.delete=KY;ca.prototype.get=qY;ca.prototype.has=WY;ca.prototype.set=GY;function fg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ca;++t<r;)this.add(e[t])}function YY(e){return this.__data__.set(e,aE),this}function XY(e){return this.__data__.has(e)}fg.prototype.add=fg.prototype.push=YY;fg.prototype.has=XY;function Ko(e){var t=this.__data__=new $i(e);this.size=t.size}function JY(){this.__data__=new $i,this.size=0}function ZY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function QY(e){return this.__data__.get(e)}function eX(e){return this.__data__.has(e)}function tX(e,t){var r=this.__data__;if(r instanceof $i){var n=r.__data__;if(!nd||n.length<WG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ca(n)}return r.set(e,t),this.size=r.size,this}Ko.prototype.clear=JY;Ko.prototype.delete=ZY;Ko.prototype.get=QY;Ko.prototype.has=eX;Ko.prototype.set=tX;function rX(e,t){var r=dg(e),n=!r&&yX(e),i=!r&&!n&&sE(e),o=!r&&!n&&!i&&OM(e),s=r||n||i||o,a=s?gY(e.length,String):[],u=a.length;for(var l in e)(t||ai.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||dX(l,u)))&&a.push(l);return a}function mg(e,t){for(var r=e.length;r--;)if(TM(e[r][0],t))return r;return-1}function nX(e,t,r){var n=t(e);return dg(e)?n:pY(n,r(e))}function sd(e){return e==null?e===void 0?QG:XG:ua&&ua in Object(e)?cX(e):gX(e)}function sM(e){return od(e)&&sd(e)==sg}function SM(e,t,r,n,i){return e===t?!0:e==null||t==null||!od(e)&&!od(t)?e!==e&&t!==t:iX(e,t,r,n,SM,i)}function iX(e,t,r,n,i,o){var s=dg(e),a=dg(t),u=s?eE:Ho(e),l=a?eE:Ho(t);u=u==sg?Ll:u,l=l==sg?Ll:l;var p=u==Ll,h=l==Ll,y=u==l;if(y&&sE(e)){if(!sE(t))return!1;s=!0,p=!1}if(y&&!p)return o||(o=new Ko),s||OM(e)?CM(e,t,r,n,i,o):uX(e,t,u,r,n,i,o);if(!(r&hg)){var v=p&&ai.call(e,"__wrapped__"),w=h&&ai.call(t,"__wrapped__");if(v||w){var _=v?e.value():e,D=w?t.value():t;return o||(o=new Ko),i(_,D,r,n,o)}}return y?(o||(o=new Ko),lX(e,t,r,n,i,o)):!1}function oX(e){if(!IM(e)||pX(e))return!1;var t=PM(e)?CY:cY;return t.test(fa(e))}function sX(e){return od(e)&&DM(e.length)&&!!bt[sd(e)]}function aX(e){if(!mX(e))return DY(e);var t=[];for(var r in Object(e))ai.call(e,r)&&r!="constructor"&&t.push(r);return t}function CM(e,t,r,n,i,o){var s=r&hg,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,y=r&uM?new fg:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var v=e[p],w=t[p];if(n)var _=s?n(w,v,p,t,e,o):n(v,w,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(y){if(!mY(t,function(D,C){if(!vY(y,C)&&(v===D||i(v,D,r,n,o)))return y.push(C)})){h=!1;break}}else if(!(v===w||i(v,w,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function uX(e,t,r,n,i,o,s){switch(r){case lg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yM:return!(e.byteLength!=t.byteLength||!o(new nM(e),new nM(t)));case cM:case fM:case pM:return TM(+e,+t);case dM:return e.name==t.name&&e.message==t.message;case mM:case gM:return e==t+"";case ag:var a=xY;case ug:var u=n&hg;if(a||(a=EY),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=uM,s.set(e,t);var p=CM(a(e),a(t),n,i,o,s);return s.delete(e),p;case ZG:if(Qb)return Qb.call(e)==Qb.call(t)}return!1}function lX(e,t,r,n,i,o){var s=r&hg,a=aM(e),u=a.length,l=aM(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var y=a[h];if(!(s?y in t:ai.call(t,y)))return!1}var v=o.get(e);if(v&&o.get(t))return v==t;var w=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){y=a[h];var D=e[y],C=t[y];if(n)var I=s?n(C,D,y,t,e,o):n(D,C,y,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){w=!1;break}_||(_=y=="constructor")}if(w&&!_){var P=e.constructor,R=t.constructor;P!=R&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(w=!1)}return o.delete(e),o.delete(t),w}function aM(e){return nX(e,xX,fX)}function gg(e,t){var r=e.__data__;return hX(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $l(e,t){var r=wY(e,t);return oX(r)?r:void 0}function cX(e){var t=ai.call(e,ua),r=e[ua];try{e[ua]=void 0;var n=!0}catch(o){}var i=EM.call(e);return n&&(t?e[ua]=r:delete e[ua]),i}var fX=iM?function(e){return e==null?[]:(e=Object(e),hY(iM(e),function(t){return _M.call(e,t)}))}:bX,Ho=sd;(rE&&Ho(new rE(new ArrayBuffer(1)))!=lg||nd&&Ho(new nd)!=ag||nE&&Ho(nE.resolve())!=JN||iE&&Ho(new iE)!=ug||oE&&Ho(new oE)!=tE)&&(Ho=function(e){var t=sd(e),r=t==Ll?e.constructor:void 0,n=r?fa(r):"";if(n)switch(n){case IY:return lg;case OY:return ag;case AY:return JN;case RY:return ug;case NY:return tE}return t});function dX(e,t){return t=t==null?lM:t,!!t&&(typeof e=="number"||fY.test(e))&&e>-1&&e%1==0&&e<t}function hX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pX(e){return!!tM&&tM in e}function mX(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pg;return e===r}function gX(e){return EM.call(e)}function fa(e){if(e!=null){try{return bM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function TM(e,t){return e===t||e!==e&&t!==t}var yX=sM(function(){return arguments}())?sM:function(e){return od(e)&&ai.call(e,"callee")&&!_M.call(e,"callee")},dg=Array.isArray;function vX(e){return e!=null&&DM(e.length)&&!PM(e)}var sE=PY||EX;function wX(e,t){return SM(e,t)}function PM(e){if(!IM(e))return!1;var t=sd(e);return t==hM||t==YG||t==GG||t==JG}function DM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lM}function IM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function od(e){return e!=null&&typeof e=="object"}var OM=eM?yY(eM):sX;function xX(e){return vX(e)?rX(e):aX(e)}function bX(){return[]}function EX(){return!1}Fl.exports=wX});var d7=ee(Eg=>{"use strict";c();d();f();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getWindowMetadata=void 0;var f7=na();function DZ(){let e,t;try{e=f7.getDocumentOrThrow(),t=f7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Eg.getWindowMetadata=DZ});var x7=ee(Hr=>{"use strict";c();d();f();var IZ=M0(),OZ=k0(),p7=L0(),AZ=F0(),RZ=e=>e==null,AE=Symbol("encodeFragmentIdentifier");function NZ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[",i,"]"].join("")]:[...r,[$t(t,e),"[",$t(i,e),"]=",$t(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),"[]"].join("")]:[...r,[$t(t,e),"[]=",$t(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[$t(t,e),":list="].join("")]:[...r,[$t(t,e),":list=",$t(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[$t(r,e),t,$t(i,e)].join("")]:[[n,$t(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,$t(t,e)]:[...r,[$t(t,e),"=",$t(n,e)].join("")]}}function MZ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Vi(n,e).includes(e.arrayFormatSeparator);n=s?Vi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Vi(u,e)):n===null?n:Vi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Vi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Vi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function m7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $t(e,t){return t.encode?t.strict?IZ(e):encodeURIComponent(e):e}function Vi(e,t){return t.decode?OZ(e):e}function g7(e){return Array.isArray(e)?e.sort():typeof e=="object"?g7(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function y7(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function kZ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function v7(e){e=y7(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function h7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function w7(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),m7(t.arrayFormatSeparator);let r=MZ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=p7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Vi(s,t),r(Vi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=h7(o[s],t);else n[i]=h7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=g7(s):i[o]=s,i},Object.create(null))}Hr.extract=v7;Hr.parse=w7;Hr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),m7(t.arrayFormatSeparator);let r=s=>t.skipNull&&RZ(e[s])||t.skipEmptyString&&e[s]==="",n=NZ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?$t(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?$t(s,t)+"[]":a.reduce(n(s),[]).join("&"):$t(s,t)+"="+$t(a,t)}).filter(s=>s.length>0).join("&")};Hr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=p7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:w7(v7(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Vi(n,t)}:{})};Hr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[AE]:!0},t);let r=y7(e.url).split("?")[0]||"",n=Hr.extract(e.url),i=Hr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Hr.stringify(o,t);s&&(s=`?${s}`);let a=kZ(e.url);return e.fragmentIdentifier&&(a=`#${t[AE]?$t(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Hr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[AE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Hr.parseUrl(e,r);return Hr.stringifyUrl({url:n,query:AZ(i,t),fragmentIdentifier:o},r)};Hr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Hr.pick(e,n,r)}});var X7=ee(Pg=>{"use strict";c();d();f();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.getWindowMetadata=void 0;var Y7=na();function oQ(){let e,t;try{e=Y7.getDocumentOrThrow(),t=Y7.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),y=[];for(let v=0;v<h.length;v++){let w=h[v],_=w.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=w.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}y.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;y.push(C)}else y.push(D)}}return y}function n(...h){let y=e.getElementsByTagName("meta");for(let v=0;v<y.length;v++){let w=y[v],_=["itemprop","property","name"].map(D=>w.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=w.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}Pg.getWindowMetadata=oQ});var ik=ee(qr=>{"use strict";c();d();f();var sQ=M0(),aQ=k0(),Z7=L0(),uQ=F0(),lQ=e=>e==null,qE=Symbol("encodeFragmentIdentifier");function cQ(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[",i,"]"].join("")]:[...r,[Ut(t,e),"[",Ut(i,e),"]=",Ut(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),"[]"].join("")]:[...r,[Ut(t,e),"[]=",Ut(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Ut(t,e),":list="].join("")]:[...r,[Ut(t,e),":list=",Ut(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Ut(r,e),t,Ut(i,e)].join("")]:[[n,Ut(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Ut(t,e)]:[...r,[Ut(t,e),"=",Ut(n,e)].join("")]}}function fQ(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Bi(n,e).includes(e.arrayFormatSeparator);n=s?Bi(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Bi(u,e)):n===null?n:Bi(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Bi(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Bi(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function Q7(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ut(e,t){return t.encode?t.strict?sQ(e):encodeURIComponent(e):e}function Bi(e,t){return t.decode?aQ(e):e}function ek(e){return Array.isArray(e)?e.sort():typeof e=="object"?ek(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function tk(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function dQ(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function rk(e){e=tk(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function J7(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function nk(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),Q7(t.arrayFormatSeparator);let r=fQ(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=Z7(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Bi(s,t),r(Bi(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=J7(o[s],t);else n[i]=J7(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=ek(s):i[o]=s,i},Object.create(null))}qr.extract=rk;qr.parse=nk;qr.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Q7(t.arrayFormatSeparator);let r=s=>t.skipNull&&lQ(e[s])||t.skipEmptyString&&e[s]==="",n=cQ(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Ut(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Ut(s,t)+"[]":a.reduce(n(s),[]).join("&"):Ut(s,t)+"="+Ut(a,t)}).filter(s=>s.length>0).join("&")};qr.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Z7(e,"#");return Object.assign({url:r.split("?")[0]||"",query:nk(rk(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Bi(n,t)}:{})};qr.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[qE]:!0},t);let r=tk(e.url).split("?")[0]||"",n=qr.extract(e.url),i=qr.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=qr.stringify(o,t);s&&(s=`?${s}`);let a=dQ(e.url);return e.fragmentIdentifier&&(a=`#${t[qE]?Ut(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};qr.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[qE]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=qr.parseUrl(e,r);return qr.stringifyUrl({url:n,query:uQ(i,t),fragmentIdentifier:o},r)};qr.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return qr.pick(e,n,r)}});var lk=ee((rwe,Dg)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Dg=="object"&&Dg.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],y=[1,256,65536,16777216],v=[6,1536,393216,100663296],w=[0,8,16,24],_=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],D=[224,256,384,512],C=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],P={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var R=function(T,z,K){return function(q){return new b(T,z,T).update(q)[K]()}},U=function(T,z,K){return function(q,Q){return new b(T,z,Q).update(q)[K]()}},j=function(T,z,K){return function(q,Q,ie,re){return m["cshake"+T].update(q,Q,ie,re)[K]()}},F=function(T,z,K){return function(q,Q,ie,re){return m["kmac"+T].update(q,Q,ie,re)[K]()}},$=function(T,z,K,q){for(var Q=0;Q<I.length;++Q){var ie=I[Q];T[ie]=z(K,q,ie)}return T},G=function(T,z){var K=R(T,z,"hex");return K.create=function(){return new b(T,z,T)},K.update=function(q){return K.create().update(q)},$(K,R,T,z)},X=function(T,z){var K=U(T,z,"hex");return K.create=function(q){return new b(T,z,q)},K.update=function(q,Q){return K.create(Q).update(q)},$(K,U,T,z)},W=function(T,z){var K=P[T],q=j(T,z,"hex");return q.create=function(Q,ie,re){return!ie&&!re?m["shake"+T].create(Q):new b(T,z,Q).bytepad([ie,re],K)},q.update=function(Q,ie,re,te){return q.create(ie,re,te).update(Q)},$(q,j,T,z)},J=function(T,z){var K=P[T],q=F(T,z,"hex");return q.create=function(Q,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],K).bytepad([Q],K)},q.update=function(Q,ie,re,te){return q.create(Q,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:y,bits:D,createMethod:G},{name:"sha3",padding:v,bits:D,createMethod:G},{name:"shake",padding:p,bits:C,createMethod:X},{name:"cshake",padding:h,bits:C,createMethod:W},{name:"kmac",padding:h,bits:C,createMethod:J}],m={},E=[],O=0;O<N.length;++O)for(var A=N[O],M=A.bits,V=0;V<M.length;++V){var B=A.name+"_"+M[V];if(E.push(B),m[B]=A.createMethod(M[V],A.padding),A.name!=="sha3"){var k=A.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,K){this.blocks=[],this.s=[],this.padding=z,this.outputBits=K,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=K>>5,this.extraBytes=(K&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}for(var q=this.blocks,Q=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,ae;te<ie;){if(this.reset)for(this.reset=!1,q[0]=this.block,ne=1;ne<re+1;++ne)q[ne]=0;if(z)for(ne=this.start;te<ie&&ne<Q;++te)q[ne>>2]|=T[te]<<w[ne++&3];else for(ne=this.start;te<ie&&ne<Q;++te)ae=T.charCodeAt(te),ae<128?q[ne>>2]|=ae<<w[ne++&3]:ae<2048?(q[ne>>2]|=(192|ae>>6)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):ae<55296||ae>=57344?(q[ne>>2]|=(224|ae>>12)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]):(ae=65536+((ae&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|ae>>18)<<w[ne++&3],q[ne>>2]|=(128|ae>>12&63)<<w[ne++&3],q[ne>>2]|=(128|ae>>6&63)<<w[ne++&3],q[ne>>2]|=(128|ae&63)<<w[ne++&3]);if(this.lastByteIndex=ne,ne>=Q){for(this.start=ne-Q,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Z(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var K=T&255,q=1,Q=[K];for(T=T>>8,K=T&255;K>0;)Q.unshift(K),T=T>>8,K=T&255,++q;return z?Q.push(q):Q.unshift(q),this.update(Q),Q.length},b.prototype.encodeString=function(T){var z,K=typeof T;if(K!=="string"){if(K==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}var q=0,Q=T.length;if(z)q=Q;else for(var ie=0;ie<T.length;++ie){var re=T.charCodeAt(ie);re<128?q+=1:re<2048?q+=2:re<55296||re>=57344?q+=3:(re=65536+((re&1023)<<10|T.charCodeAt(++ie)&1023),q+=4)}return q+=this.encode(q*8),this.update(T),q},b.prototype.bytepad=function(T,z){for(var K=this.encode(z),q=0;q<T.length;++q)K+=this.encodeString(T[q]);var Q=z-K%z,ie=[];return ie.length=Q,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,K=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[K],z=1;z<K+1;++z)T[z]=0;for(T[K-1]|=2147483648,z=0;z<K;++z)q[z]^=T[z];Z(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re="",te;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=z[Q],re+=l[te>>4&15]+l[te&15]+l[te>>12&15]+l[te>>8&15]+l[te>>20&15]+l[te>>16&15]+l[te>>28&15]+l[te>>24&15];ie%T===0&&(Z(z),Q=0)}return q&&(te=z[Q],re+=l[te>>4&15]+l[te&15],q>1&&(re+=l[te>>12&15]+l[te>>8&15]),q>2&&(re+=l[te>>20&15]+l[te>>16&15])),re},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(K+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)he[ie]=z[Q];ie%T===0&&Z(z)}return q&&(he[Q]=z[Q],te=te.slice(0,re)),te},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,K=this.outputBlocks,q=this.extraBytes,Q=0,ie=0,re=[],te,he;ie<K;){for(Q=0;Q<T&&ie<K;++Q,++ie)te=ie<<2,he=z[Q],re[te]=he&255,re[te+1]=he>>8&255,re[te+2]=he>>16&255,re[te+3]=he>>24&255;ie%T===0&&Z(z)}return q&&(te=ie<<2,he=z[Q],re[te]=he&255,q>1&&(re[te+1]=he>>8&255),q>2&&(re[te+2]=he>>16&255)),re};function L(T,z,K){b.call(this,T,z,K)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Z=function(T){var z,K,q,Q,ie,re,te,he,ne,ae,Xo,Be,je,Jo,ze,He,Zo,Ke,qe,Qo,We,Ge,es,Ye,Xe,ts,Je,Ze,rs,Qe,et,ns,tt,rt,is,nt,it,os,ot,st,ss,at,ut,as,lt,ct,us,ft,dt,ls,ht,pt,cs,mt,gt,fs,yt,vt,Hi,Ki,qi,Wi,Gi;for(q=0;q<48;q+=2)Q=T[0]^T[10]^T[20]^T[30]^T[40],ie=T[1]^T[11]^T[21]^T[31]^T[41],re=T[2]^T[12]^T[22]^T[32]^T[42],te=T[3]^T[13]^T[23]^T[33]^T[43],he=T[4]^T[14]^T[24]^T[34]^T[44],ne=T[5]^T[15]^T[25]^T[35]^T[45],ae=T[6]^T[16]^T[26]^T[36]^T[46],Xo=T[7]^T[17]^T[27]^T[37]^T[47],Be=T[8]^T[18]^T[28]^T[38]^T[48],je=T[9]^T[19]^T[29]^T[39]^T[49],z=Be^(re<<1|te>>>31),K=je^(te<<1|re>>>31),T[0]^=z,T[1]^=K,T[10]^=z,T[11]^=K,T[20]^=z,T[21]^=K,T[30]^=z,T[31]^=K,T[40]^=z,T[41]^=K,z=Q^(he<<1|ne>>>31),K=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=K,T[12]^=z,T[13]^=K,T[22]^=z,T[23]^=K,T[32]^=z,T[33]^=K,T[42]^=z,T[43]^=K,z=re^(ae<<1|Xo>>>31),K=te^(Xo<<1|ae>>>31),T[4]^=z,T[5]^=K,T[14]^=z,T[15]^=K,T[24]^=z,T[25]^=K,T[34]^=z,T[35]^=K,T[44]^=z,T[45]^=K,z=he^(Be<<1|je>>>31),K=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=K,T[16]^=z,T[17]^=K,T[26]^=z,T[27]^=K,T[36]^=z,T[37]^=K,T[46]^=z,T[47]^=K,z=ae^(Q<<1|ie>>>31),K=Xo^(ie<<1|Q>>>31),T[8]^=z,T[9]^=K,T[18]^=z,T[19]^=K,T[28]^=z,T[29]^=K,T[38]^=z,T[39]^=K,T[48]^=z,T[49]^=K,Jo=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,us=T[10]<<4|T[11]>>>28,Ze=T[20]<<3|T[21]>>>29,rs=T[21]<<3|T[20]>>>29,Ki=T[31]<<9|T[30]>>>23,qi=T[30]<<9|T[31]>>>23,at=T[40]<<18|T[41]>>>14,ut=T[41]<<18|T[40]>>>14,rt=T[2]<<1|T[3]>>>31,is=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,Zo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Qe=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Wi=T[42]<<2|T[43]>>>30,Gi=T[43]<<2|T[42]>>>30,mt=T[5]<<30|T[4]>>>2,gt=T[4]<<30|T[5]>>>2,nt=T[14]<<6|T[15]>>>26,it=T[15]<<6|T[14]>>>26,Ke=T[25]<<11|T[24]>>>21,qe=T[24]<<11|T[25]>>>21,ls=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,ns=T[45]<<29|T[44]>>>3,tt=T[44]<<29|T[45]>>>3,Ye=T[6]<<28|T[7]>>>4,Xe=T[7]<<28|T[6]>>>4,fs=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,os=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Qo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,cs=T[46]<<24|T[47]>>>8,as=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,ts=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Hi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,ss=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,es=T[49]<<14|T[48]>>>18,T[0]=Jo^~He&Ke,T[1]=ze^~Zo&qe,T[10]=Ye^~ts&Ze,T[11]=Xe^~Je&rs,T[20]=rt^~nt&os,T[21]=is^~it&ot,T[30]=as^~ct&ft,T[31]=lt^~us&dt,T[40]=mt^~fs&vt,T[41]=gt^~yt&Hi,T[2]=He^~Ke&Qo,T[3]=Zo^~qe&We,T[12]=ts^~Ze&Qe,T[13]=Je^~rs&et,T[22]=nt^~os&st,T[23]=it^~ot&ss,T[32]=ct^~ft&ls,T[33]=us^~dt&ht,T[42]=fs^~vt&Ki,T[43]=yt^~Hi&qi,T[4]=Ke^~Qo&Ge,T[5]=qe^~We&es,T[14]=Ze^~Qe&ns,T[15]=rs^~et&tt,T[24]=os^~st&at,T[25]=ot^~ss&ut,T[34]=ft^~ls&pt,T[35]=dt^~ht&cs,T[44]=vt^~Ki&Wi,T[45]=Hi^~qi&Gi,T[6]=Qo^~Ge&Jo,T[7]=We^~es&ze,T[16]=Qe^~ns&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=ss^~ut&is,T[36]=ls^~pt&as,T[37]=ht^~cs&lt,T[46]=Ki^~Wi&mt,T[47]=qi^~Gi&gt,T[8]=Ge^~Jo&He,T[9]=es^~ze&Zo,T[18]=ns^~Ye&ts,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~is&it,T[38]=pt^~as&ct,T[39]=cs^~lt&us,T[48]=Wi^~mt&fs,T[49]=Gi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)Dg.exports=m;else{for(O=0;O<E.length;++O)n[E[O]]=m[E[O]];a&&define(function(){return m})}})()});var ck=ee(()=>{c();d();f()});var dk=ee((fk,YE)=>{c();d();f();(function(e,t){"use strict";function r(N,m){if(!N)throw new Error(m||"Assertion failed")}function n(N,m){N.super_=m;var E=function(){};E.prototype=m.prototype,N.prototype=new E,N.prototype.constructor=N}function i(N,m,E){if(i.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(N||0,m||10,E||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=ck().Buffer}catch(N){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,E){return m.cmp(E)>0?m:E},i.min=function(m,E){return m.cmp(E)<0?m:E},i.prototype._init=function(m,E,O){if(typeof m=="number")return this._initNumber(m,E,O);if(typeof m=="object")return this._initArray(m,E,O);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var A=0;m[0]==="-"&&(A++,this.negative=1),A<m.length&&(E===16?this._parseHex(m,A,O):(this._parseBase(m,E,A),O==="le"&&this._initArray(this.toArray(),E,O)))},i.prototype._initNumber=function(m,E,O){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),O==="le"&&this._initArray(this.toArray(),E,O)},i.prototype._initArray=function(m,E,O){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M,V,B=0;if(O==="be")for(A=m.length-1,M=0;A>=0;A-=3)V=m[A]|m[A-1]<<8|m[A-2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);else if(O==="le")for(A=0,M=0;A<m.length;A+=3)V=m[A]|m[A+1]<<8|m[A+2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);return this._strip()};function s(N,m){var E=N.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+N)}function a(N,m,E){var O=s(N,E);return E-1>=m&&(O|=s(N,E-1)<<4),O}i.prototype._parseHex=function(m,E,O){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var M=0,V=0,B;if(O==="be")for(A=m.length-1;A>=E;A-=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8;else{var k=m.length-E;for(A=k%2===0?E+1:E;A<m.length;A+=2)B=a(m,E,A)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8}this._strip()};function u(N,m,E,O){for(var A=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;A*=O,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<O,"Invalid character"),A+=M}return A}i.prototype._parseBase=function(m,E,O){this.words=[0],this.length=1;for(var A=0,M=1;M<=67108863;M*=E)A++;A--,M=M/E|0;for(var V=m.length-O,B=V%A,k=Math.min(V,V-B)+O,b=0,L=O;L<k;L+=A)b=u(m,L,L+A,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Z=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Z*=E;this.imuln(Z),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(N,m){N.words=m.words,N.length=m.length,N.negative=m.negative,N.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(N){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,E){m=m||10,E=E|0||1;var O;if(m===16||m==="hex"){O="";for(var A=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<A|M)&16777215).toString(16);M=B>>>24-A&16777215,A+=2,A>=26&&(A-=26,V--),M!==0||V!==this.length-1?O=h[6-k.length]+k+O:O=k+O}for(M!==0&&(O=M.toString(16)+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(m===(m|0)&&m>=2&&m<=36){var b=y[m],L=v[m];O="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var T=Z.modrn(L).toString(m);Z=Z.idivn(L),Z.isZero()?O=T+O:O=h[b-T.length]+T+O}for(this.isZero()&&(O="0"+O);O.length%E!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),i.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var w=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,O){this._strip();var A=this.byteLength(),M=O||Math.max(1,A);r(A<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=w(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,A),V},i.prototype._toArrayLikeLE=function(m,E){for(var O=0,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O++]=B&255,O<m.length&&(m[O++]=B>>8&255),O<m.length&&(m[O++]=B>>16&255),V===6?(O<m.length&&(m[O++]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O<m.length)for(m[O++]=A;O<m.length;)m[O++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var O=m.length-1,A=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|A;m[O--]=B&255,O>=0&&(m[O--]=B>>8&255),O>=0&&(m[O--]=B>>16&255),V===6?(O>=0&&(m[O--]=B>>24&255),A=0,V=0):(A=B>>>24,V+=2)}if(O>=0)for(m[O--]=A;O>=0;)m[O--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,O=0;return E>=4096&&(O+=13,E>>>=13),E>=64&&(O+=7,E>>>=7),E>=8&&(O+=4,E>>>=4),E>=2&&(O+=2,E>>>=2),O+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,O=0;return(E&8191)===0&&(O+=13,E>>>=13),(E&127)===0&&(O+=7,E>>>=7),(E&15)===0&&(O+=4,E>>>=4),(E&3)===0&&(O+=2,E>>>=2),(E&1)===0&&O++,O},i.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function _(N){for(var m=new Array(N.bitLength()),E=0;E<m.length;E++){var O=E/26|0,A=E%26;m[E]=N.words[O]>>>A&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var O=this._zeroBits(this.words[E]);if(m+=O,O!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var O=0;O<E.length;O++)this.words[O]=this.words[O]&m.words[O];return this.length=E.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var E,O;this.length>m.length?(E=this,O=m):(E=m,O=this);for(var A=0;A<O.length;A++)this.words[A]=E.words[A]^O.words[A];if(this!==E)for(;A<E.length;A++)this.words[A]=E.words[A];return this.length=E.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,O=m%26;this._expand(E),O>0&&E--;for(var A=0;A<E;A++)this.words[A]=~this.words[A]&67108863;return O>0&&(this.words[A]=~this.words[A]&67108863>>26-O),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var O=m/26|0,A=m%26;return this._expand(O+1),E?this.words[O]=this.words[O]|1<<A:this.words[O]=this.words[O]&~(1<<A),this._strip()},i.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var O,A;this.length>m.length?(O=this,A=m):(O=m,A=this);for(var M=0,V=0;V<A.length;V++)E=(O.words[V]|0)+(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<O.length;V++)E=(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=O.length,M!==0)this.words[this.length]=M,this.length++;else if(O!==this)for(;V<O.length;V++)this.words[V]=O.words[V];return this},i.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var O=this.cmp(m);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,M;O>0?(A=this,M=m):(A=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(A.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<A.length;B++)E=(A.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<A.length&&A!==this)for(;B<A.length;B++)this.words[B]=A.words[B];return this.length=Math.max(this.length,B),A!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function D(N,m,E){E.negative=m.negative^N.negative;var O=N.length+m.length|0;E.length=O,O=O-1|0;var A=N.words[0]|0,M=m.words[0]|0,V=A*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<O;b++){for(var L=k>>>26,Z=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var K=b-z|0;A=N.words[K]|0,M=m.words[z]|0,V=A*M+Z,L+=V/67108864|0,Z=V&67108863}E.words[b]=Z|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,O){var A=m.words,M=E.words,V=O.words,B=0,k,b,L,Z=A[0]|0,T=Z&8191,z=Z>>>13,K=A[1]|0,q=K&8191,Q=K>>>13,ie=A[2]|0,re=ie&8191,te=ie>>>13,he=A[3]|0,ne=he&8191,ae=he>>>13,Xo=A[4]|0,Be=Xo&8191,je=Xo>>>13,Jo=A[5]|0,ze=Jo&8191,He=Jo>>>13,Zo=A[6]|0,Ke=Zo&8191,qe=Zo>>>13,Qo=A[7]|0,We=Qo&8191,Ge=Qo>>>13,es=A[8]|0,Ye=es&8191,Xe=es>>>13,ts=A[9]|0,Je=ts&8191,Ze=ts>>>13,rs=M[0]|0,Qe=rs&8191,et=rs>>>13,ns=M[1]|0,tt=ns&8191,rt=ns>>>13,is=M[2]|0,nt=is&8191,it=is>>>13,os=M[3]|0,ot=os&8191,st=os>>>13,ss=M[4]|0,at=ss&8191,ut=ss>>>13,as=M[5]|0,lt=as&8191,ct=as>>>13,us=M[6]|0,ft=us&8191,dt=us>>>13,ls=M[7]|0,ht=ls&8191,pt=ls>>>13,cs=M[8]|0,mt=cs&8191,gt=cs>>>13,fs=M[9]|0,yt=fs&8191,vt=fs>>>13;O.negative=m.negative^E.negative,O.length=19,k=Math.imul(T,Qe),b=Math.imul(T,et),b=b+Math.imul(z,Qe)|0,L=Math.imul(z,et);var Hi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,k=Math.imul(q,Qe),b=Math.imul(q,et),b=b+Math.imul(Q,Qe)|0,L=Math.imul(Q,et),k=k+Math.imul(T,tt)|0,b=b+Math.imul(T,rt)|0,b=b+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var Ki=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,k=Math.imul(re,Qe),b=Math.imul(re,et),b=b+Math.imul(te,Qe)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Q,tt)|0,L=L+Math.imul(Q,rt)|0,k=k+Math.imul(T,nt)|0,b=b+Math.imul(T,it)|0,b=b+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var qi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qi>>>26)|0,qi&=67108863,k=Math.imul(ne,Qe),b=Math.imul(ne,et),b=b+Math.imul(ae,Qe)|0,L=Math.imul(ae,et),k=k+Math.imul(re,tt)|0,b=b+Math.imul(re,rt)|0,b=b+Math.imul(te,tt)|0,L=L+Math.imul(te,rt)|0,k=k+Math.imul(q,nt)|0,b=b+Math.imul(q,it)|0,b=b+Math.imul(Q,nt)|0,L=L+Math.imul(Q,it)|0,k=k+Math.imul(T,ot)|0,b=b+Math.imul(T,st)|0,b=b+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Wi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,k=Math.imul(Be,Qe),b=Math.imul(Be,et),b=b+Math.imul(je,Qe)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(ae,tt)|0,L=L+Math.imul(ae,rt)|0,k=k+Math.imul(re,nt)|0,b=b+Math.imul(re,it)|0,b=b+Math.imul(te,nt)|0,L=L+Math.imul(te,it)|0,k=k+Math.imul(q,ot)|0,b=b+Math.imul(q,st)|0,b=b+Math.imul(Q,ot)|0,L=L+Math.imul(Q,st)|0,k=k+Math.imul(T,at)|0,b=b+Math.imul(T,ut)|0,b=b+Math.imul(z,at)|0,L=L+Math.imul(z,ut)|0;var Gi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,k=Math.imul(ze,Qe),b=Math.imul(ze,et),b=b+Math.imul(He,Qe)|0,L=Math.imul(He,et),k=k+Math.imul(Be,tt)|0,b=b+Math.imul(Be,rt)|0,b=b+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(ne,nt)|0,b=b+Math.imul(ne,it)|0,b=b+Math.imul(ae,nt)|0,L=L+Math.imul(ae,it)|0,k=k+Math.imul(re,ot)|0,b=b+Math.imul(re,st)|0,b=b+Math.imul(te,ot)|0,L=L+Math.imul(te,st)|0,k=k+Math.imul(q,at)|0,b=b+Math.imul(q,ut)|0,b=b+Math.imul(Q,at)|0,L=L+Math.imul(Q,ut)|0,k=k+Math.imul(T,lt)|0,b=b+Math.imul(T,ct)|0,b=b+Math.imul(z,lt)|0,L=L+Math.imul(z,ct)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(Ke,Qe),b=Math.imul(Ke,et),b=b+Math.imul(qe,Qe)|0,L=Math.imul(qe,et),k=k+Math.imul(ze,tt)|0,b=b+Math.imul(ze,rt)|0,b=b+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,b=b+Math.imul(Be,it)|0,b=b+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(ne,ot)|0,b=b+Math.imul(ne,st)|0,b=b+Math.imul(ae,ot)|0,L=L+Math.imul(ae,st)|0,k=k+Math.imul(re,at)|0,b=b+Math.imul(re,ut)|0,b=b+Math.imul(te,at)|0,L=L+Math.imul(te,ut)|0,k=k+Math.imul(q,lt)|0,b=b+Math.imul(q,ct)|0,b=b+Math.imul(Q,lt)|0,L=L+Math.imul(Q,ct)|0,k=k+Math.imul(T,ft)|0,b=b+Math.imul(T,dt)|0,b=b+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(We,Qe),b=Math.imul(We,et),b=b+Math.imul(Ge,Qe)|0,L=Math.imul(Ge,et),k=k+Math.imul(Ke,tt)|0,b=b+Math.imul(Ke,rt)|0,b=b+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,b=b+Math.imul(ze,it)|0,b=b+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,b=b+Math.imul(Be,st)|0,b=b+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(ne,at)|0,b=b+Math.imul(ne,ut)|0,b=b+Math.imul(ae,at)|0,L=L+Math.imul(ae,ut)|0,k=k+Math.imul(re,lt)|0,b=b+Math.imul(re,ct)|0,b=b+Math.imul(te,lt)|0,L=L+Math.imul(te,ct)|0,k=k+Math.imul(q,ft)|0,b=b+Math.imul(q,dt)|0,b=b+Math.imul(Q,ft)|0,L=L+Math.imul(Q,dt)|0,k=k+Math.imul(T,ht)|0,b=b+Math.imul(T,pt)|0,b=b+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Ye,Qe),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Qe)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,b=b+Math.imul(We,rt)|0,b=b+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,b=b+Math.imul(Ke,it)|0,b=b+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,b=b+Math.imul(ze,st)|0,b=b+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,b=b+Math.imul(Be,ut)|0,b=b+Math.imul(je,at)|0,L=L+Math.imul(je,ut)|0,k=k+Math.imul(ne,lt)|0,b=b+Math.imul(ne,ct)|0,b=b+Math.imul(ae,lt)|0,L=L+Math.imul(ae,ct)|0,k=k+Math.imul(re,ft)|0,b=b+Math.imul(re,dt)|0,b=b+Math.imul(te,ft)|0,L=L+Math.imul(te,dt)|0,k=k+Math.imul(q,ht)|0,b=b+Math.imul(q,pt)|0,b=b+Math.imul(Q,ht)|0,L=L+Math.imul(Q,pt)|0,k=k+Math.imul(T,mt)|0,b=b+Math.imul(T,gt)|0,b=b+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,Qe),b=Math.imul(Je,et),b=b+Math.imul(Ze,Qe)|0,L=Math.imul(Ze,et),k=k+Math.imul(Ye,tt)|0,b=b+Math.imul(Ye,rt)|0,b=b+Math.imul(Xe,tt)|0,L=L+Math.imul(Xe,rt)|0,k=k+Math.imul(We,nt)|0,b=b+Math.imul(We,it)|0,b=b+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,b=b+Math.imul(Ke,st)|0,b=b+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,b=b+Math.imul(ze,ut)|0,b=b+Math.imul(He,at)|0,L=L+Math.imul(He,ut)|0,k=k+Math.imul(Be,lt)|0,b=b+Math.imul(Be,ct)|0,b=b+Math.imul(je,lt)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(ne,ft)|0,b=b+Math.imul(ne,dt)|0,b=b+Math.imul(ae,ft)|0,L=L+Math.imul(ae,dt)|0,k=k+Math.imul(re,ht)|0,b=b+Math.imul(re,pt)|0,b=b+Math.imul(te,ht)|0,L=L+Math.imul(te,pt)|0,k=k+Math.imul(q,mt)|0,b=b+Math.imul(q,gt)|0,b=b+Math.imul(Q,mt)|0,L=L+Math.imul(Q,gt)|0,k=k+Math.imul(T,yt)|0,b=b+Math.imul(T,vt)|0,b=b+Math.imul(z,yt)|0,L=L+Math.imul(z,vt)|0;var jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Ze,tt)|0,L=Math.imul(Ze,rt),k=k+Math.imul(Ye,nt)|0,b=b+Math.imul(Ye,it)|0,b=b+Math.imul(Xe,nt)|0,L=L+Math.imul(Xe,it)|0,k=k+Math.imul(We,ot)|0,b=b+Math.imul(We,st)|0,b=b+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,b=b+Math.imul(Ke,ut)|0,b=b+Math.imul(qe,at)|0,L=L+Math.imul(qe,ut)|0,k=k+Math.imul(ze,lt)|0,b=b+Math.imul(ze,ct)|0,b=b+Math.imul(He,lt)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,b=b+Math.imul(Be,dt)|0,b=b+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(ne,ht)|0,b=b+Math.imul(ne,pt)|0,b=b+Math.imul(ae,ht)|0,L=L+Math.imul(ae,pt)|0,k=k+Math.imul(re,mt)|0,b=b+Math.imul(re,gt)|0,b=b+Math.imul(te,mt)|0,L=L+Math.imul(te,gt)|0,k=k+Math.imul(q,yt)|0,b=b+Math.imul(q,vt)|0,b=b+Math.imul(Q,yt)|0,L=L+Math.imul(Q,vt)|0;var zg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Ze,nt)|0,L=Math.imul(Ze,it),k=k+Math.imul(Ye,ot)|0,b=b+Math.imul(Ye,st)|0,b=b+Math.imul(Xe,ot)|0,L=L+Math.imul(Xe,st)|0,k=k+Math.imul(We,at)|0,b=b+Math.imul(We,ut)|0,b=b+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,ut)|0,k=k+Math.imul(Ke,lt)|0,b=b+Math.imul(Ke,ct)|0,b=b+Math.imul(qe,lt)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,b=b+Math.imul(ze,dt)|0,b=b+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,b=b+Math.imul(Be,pt)|0,b=b+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(ne,mt)|0,b=b+Math.imul(ne,gt)|0,b=b+Math.imul(ae,mt)|0,L=L+Math.imul(ae,gt)|0,k=k+Math.imul(re,yt)|0,b=b+Math.imul(re,vt)|0,b=b+Math.imul(te,yt)|0,L=L+Math.imul(te,vt)|0;var Hg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Hg>>>26)|0,Hg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Ze,ot)|0,L=Math.imul(Ze,st),k=k+Math.imul(Ye,at)|0,b=b+Math.imul(Ye,ut)|0,b=b+Math.imul(Xe,at)|0,L=L+Math.imul(Xe,ut)|0,k=k+Math.imul(We,lt)|0,b=b+Math.imul(We,ct)|0,b=b+Math.imul(Ge,lt)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,b=b+Math.imul(Ke,dt)|0,b=b+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,b=b+Math.imul(ze,pt)|0,b=b+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,b=b+Math.imul(Be,gt)|0,b=b+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0,k=k+Math.imul(ne,yt)|0,b=b+Math.imul(ne,vt)|0,b=b+Math.imul(ae,yt)|0,L=L+Math.imul(ae,vt)|0;var Kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Ze,at)|0,L=Math.imul(Ze,ut),k=k+Math.imul(Ye,lt)|0,b=b+Math.imul(Ye,ct)|0,b=b+Math.imul(Xe,lt)|0,L=L+Math.imul(Xe,ct)|0,k=k+Math.imul(We,ft)|0,b=b+Math.imul(We,dt)|0,b=b+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,b=b+Math.imul(Ke,pt)|0,b=b+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,b=b+Math.imul(ze,gt)|0,b=b+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0,k=k+Math.imul(Be,yt)|0,b=b+Math.imul(Be,vt)|0,b=b+Math.imul(je,yt)|0,L=L+Math.imul(je,vt)|0;var qg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(qg>>>26)|0,qg&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Ze,lt)|0,L=Math.imul(Ze,ct),k=k+Math.imul(Ye,ft)|0,b=b+Math.imul(Ye,dt)|0,b=b+Math.imul(Xe,ft)|0,L=L+Math.imul(Xe,dt)|0,k=k+Math.imul(We,ht)|0,b=b+Math.imul(We,pt)|0,b=b+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,b=b+Math.imul(Ke,gt)|0,b=b+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0,k=k+Math.imul(ze,yt)|0,b=b+Math.imul(ze,vt)|0,b=b+Math.imul(He,yt)|0,L=L+Math.imul(He,vt)|0;var Wg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Wg>>>26)|0,Wg&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Ze,ft)|0,L=Math.imul(Ze,dt),k=k+Math.imul(Ye,ht)|0,b=b+Math.imul(Ye,pt)|0,b=b+Math.imul(Xe,ht)|0,L=L+Math.imul(Xe,pt)|0,k=k+Math.imul(We,mt)|0,b=b+Math.imul(We,gt)|0,b=b+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0,k=k+Math.imul(Ke,yt)|0,b=b+Math.imul(Ke,vt)|0,b=b+Math.imul(qe,yt)|0,L=L+Math.imul(qe,vt)|0;var Gg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Ze,ht)|0,L=Math.imul(Ze,pt),k=k+Math.imul(Ye,mt)|0,b=b+Math.imul(Ye,gt)|0,b=b+Math.imul(Xe,mt)|0,L=L+Math.imul(Xe,gt)|0,k=k+Math.imul(We,yt)|0,b=b+Math.imul(We,vt)|0,b=b+Math.imul(Ge,yt)|0,L=L+Math.imul(Ge,vt)|0;var Yg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Yg>>>26)|0,Yg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Ze,mt)|0,L=Math.imul(Ze,gt),k=k+Math.imul(Ye,yt)|0,b=b+Math.imul(Ye,vt)|0,b=b+Math.imul(Xe,yt)|0,L=L+Math.imul(Xe,vt)|0;var Xg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Xg>>>26)|0,Xg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Ze,yt)|0,L=Math.imul(Ze,vt);var Jg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(Jg>>>26)|0,Jg&=67108863,V[0]=Hi,V[1]=Ki,V[2]=qi,V[3]=Wi,V[4]=Gi,V[5]=$g,V[6]=Ug,V[7]=Vg,V[8]=Bg,V[9]=jg,V[10]=zg,V[11]=Hg,V[12]=Kg,V[13]=qg,V[14]=Wg,V[15]=Gg,V[16]=Yg,V[17]=Xg,V[18]=Jg,B!==0&&(V[19]=B,O.length++),O};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var O=0,A=0,M=0;M<E.length-1;M++){var V=A;A=0;for(var B=O&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Z=N.words[L]|0,T=m.words[b]|0,z=Z*T,K=z&67108863;V=V+(z/67108864|0)|0,K=K+B|0,B=K&67108863,V=V+(K>>>26)|0,A+=V>>>26,V&=67108863}E.words[M]=B,O=V,V=A}return O!==0?E.words[M]=O:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var O,A=this.length+m.length;return this.length===10&&m.length===10?O=C(this,m,E):A<63?O=D(this,m,E):A<1024?O=I(this,m,E):O=P(this,m,E),O};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),O=i.prototype._countBits(m)-1,A=0;A<m;A++)E[A]=this.revBin(A,O,m);return E},R.prototype.revBin=function(m,E,O){if(m===0||m===O-1)return m;for(var A=0,M=0;M<E;M++)A|=(m&1)<<E-M-1,m>>=1;return A},R.prototype.permute=function(m,E,O,A,M,V){for(var B=0;B<V;B++)A[B]=E[m[B]],M[B]=O[m[B]]},R.prototype.transform=function(m,E,O,A,M,V){this.permute(V,m,E,O,A,M);for(var B=1;B<M;B<<=1)for(var k=B<<1,b=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),Z=0;Z<M;Z+=k)for(var T=b,z=L,K=0;K<B;K++){var q=O[Z+K],Q=A[Z+K],ie=O[Z+K+B],re=A[Z+K+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,O[Z+K]=q+ie,A[Z+K]=Q+re,O[Z+K+B]=q-ie,A[Z+K+B]=Q-re,K!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var O=Math.max(E,m)|1,A=O&1,M=0;for(O=O/2|0;O;O=O>>>1)M++;return 1<<M+1+A},R.prototype.conjugate=function(m,E,O){if(!(O<=1))for(var A=0;A<O/2;A++){var M=m[A];m[A]=m[O-A-1],m[O-A-1]=M,M=E[A],E[A]=-E[O-A-1],E[O-A-1]=-M}},R.prototype.normalize13b=function(m,E){for(var O=0,A=0;A<E/2;A++){var M=Math.round(m[2*A+1]/E)*8192+Math.round(m[2*A]/E)+O;m[A]=M&67108863,M<67108864?O=0:O=M/67108864|0}return m},R.prototype.convert13b=function(m,E,O,A){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),O[2*V]=M&8191,M=M>>>13,O[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<A;++V)O[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),O=0;O<m;O++)E[O]=0;return E},R.prototype.mulp=function(m,E,O){var A=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(A),V=this.stub(A),B=new Array(A),k=new Array(A),b=new Array(A),L=new Array(A),Z=new Array(A),T=new Array(A),z=O.words;z.length=A,this.convert13b(m.words,m.length,B,A),this.convert13b(E.words,E.length,L,A),this.transform(B,V,k,b,A,M),this.transform(L,V,Z,T,A,M);for(var K=0;K<A;K++){var q=k[K]*Z[K]-b[K]*T[K];b[K]=k[K]*T[K]+b[K]*Z[K],k[K]=q}return this.conjugate(k,b,A),this.transform(k,b,z,V,A,M),this.conjugate(z,V,A),this.normalize13b(z,A),O.negative=m.negative^E.negative,O.length=m.length+E.length,O._strip()},i.prototype.mul=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},i.prototype.mulf=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),P(this,m,E)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var O=0,A=0;A<this.length;A++){var M=(this.words[A]|0)*m,V=(M&67108863)+(O&67108863);O>>=26,O+=M/67108864|0,O+=V>>>26,this.words[A]=V&67108863}return O!==0&&(this.words[A]=O,this.length++),E?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var E=_(m);if(E.length===0)return new i(1);for(var O=this,A=0;A<E.length&&E[A]===0;A++,O=O.sqr());if(++A<E.length)for(var M=O.sqr();A<E.length;A++,M=M.sqr())E[A]!==0&&(O=O.mul(M));return O},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&A,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(O!==0){for(M=this.length-1;M>=0;M--)this.words[M+O]=this.words[M];for(M=0;M<O;M++)this.words[M]=0;this.length+=O}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,O){r(typeof m=="number"&&m>=0);var A;E?A=(E-E%26)/26:A=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=O;if(A-=V,A=Math.max(0,A),k){for(var b=0;b<V;b++)k.words[b]=this.words[b];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var L=0;for(b=this.length-1;b>=0&&(L!==0||b>=A);b--){var Z=this.words[b]|0;this.words[b]=L<<26-M|Z>>>M,L=Z&B}return k&&L!==0&&(k.words[k.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,E,O){return r(this.negative===0),this.iushrn(m,E,O)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return!1;var M=this.words[O];return!!(M&A)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,O=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(E!==0&&O++,this.length=Math.min(O,this.length),E!==0){var A=67108863^67108863>>>E<<E;this.words[this.length-1]&=A}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,E,O){var A=m.length+O,M;this._expand(A);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+O]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+O]=V&67108863}for(;M<this.length-O;M++)V=(this.words[M+O]|0)+B,B=V>>26,this.words[M+O]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,M=0;M<this.length;M++)V=-(this.words[M]|0)+B,B=V>>26,this.words[M]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,E){var O=this.length-m.length,A=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);O=26-B,O!==0&&(M=M.ushln(O),A.iushln(O),V=M.words[M.length-1]|0);var k=A.length-M.length,b;if(E!=="mod"){b=new i(null),b.length=k+1,b.words=new Array(b.length);for(var L=0;L<b.length;L++)b.words[L]=0}var Z=A.clone()._ishlnsubmul(M,1,k);Z.negative===0&&(A=Z,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(A.words[M.length+T]|0)*67108864+(A.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),A._ishlnsubmul(M,z,T);A.negative!==0;)z--,A.negative=0,A._ishlnsubmul(M,1,T),A.isZero()||(A.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),A._strip(),E!=="div"&&O!==0&&A.iushrn(O),{div:b||null,mod:A}},i.prototype.divmod=function(m,E,O){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var A,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(A=V.div.neg()),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.iadd(m)),{div:A,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(A=V.div.neg()),{div:A,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),O&&M.negative!==0&&M.isub(m)),{div:V.div,mod:M}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,E)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var O=E.div.negative!==0?E.mod.isub(m):E.mod,A=m.ushrn(1),M=m.andln(1),V=O.cmp(A);return V<0||M===1&&V===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=(1<<26)%m,A=0,M=this.length-1;M>=0;M--)A=(O*A+(this.words[M]|0))%m;return E?-A:A},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var O=0,A=this.length-1;A>=0;A--){var M=(this.words[A]|0)+O*67108864;this.words[A]=M/m|0,O=M%m}return this._strip(),E?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&O.isEven();)E.iushrn(1),O.iushrn(1),++k;for(var b=O.clone(),L=E.clone();!E.isZero();){for(var Z=0,T=1;(E.words[0]&T)===0&&Z<26;++Z,T<<=1);if(Z>0)for(E.iushrn(Z);Z-- >0;)(A.isOdd()||M.isOdd())&&(A.iadd(b),M.isub(L)),A.iushrn(1),M.iushrn(1);for(var z=0,K=1;(O.words[0]&K)===0&&z<26;++z,K<<=1);if(z>0)for(O.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(V),M.isub(B)):(O.isub(E),V.isub(A),B.isub(M))}return{a:V,b:B,gcd:O.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,O=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var A=new i(1),M=new i(0),V=O.clone();E.cmpn(1)>0&&O.cmpn(1)>0;){for(var B=0,k=1;(E.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(E.iushrn(B);B-- >0;)A.isOdd()&&A.iadd(V),A.iushrn(1);for(var b=0,L=1;(O.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(O.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(O)>=0?(E.isub(O),A.isub(M)):(O.isub(E),M.isub(A))}var Z;return E.cmpn(1)===0?Z=A:Z=M,Z.cmpn(0)<0&&Z.iadd(m),Z},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),O=m.clone();E.negative=0,O.negative=0;for(var A=0;E.isEven()&&O.isEven();A++)E.iushrn(1),O.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;O.isEven();)O.iushrn(1);var M=E.cmp(O);if(M<0){var V=E;E=O,O=V}else if(M===0||O.cmpn(1)===0)break;E.isub(O)}while(!0);return O.iushln(A)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,O=(m-E)/26,A=1<<E;if(this.length<=O)return this._expand(O+1),this.words[O]|=A,this;for(var M=A,V=O;M!==0&&V<this.length;V++){var B=this.words[V]|0;B+=M,M=B>>>26,B&=67108863,this.words[V]=B}return M!==0&&(this.words[V]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var O;if(this.length>1)O=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var A=this.words[0]|0;O=A===m?0:A<m?-1:1}return this.negative!==0?-O|0:O},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,O=this.length-1;O>=0;O--){var A=this.words[O]|0,M=m.words[O]|0;if(A!==M){A<M?E=-1:A>M&&(E=1);break}}return E},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new W(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var U={k256:null,p224:null,p192:null,p25519:null};function j(N,m){this.name=N,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},j.prototype.ireduce=function(m){var E=m,O;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),O=E.bitLength();while(O>this.n);var A=O<this.n?-1:E.ucmp(this.p);return A===0?(E.words[0]=0,E.length=1):A>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},j.prototype.split=function(m,E){m.iushrn(this.n,0,E)},j.prototype.imulK=function(m){return m.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(m,E){for(var O=4194303,A=Math.min(m.length,9),M=0;M<A;M++)E.words[M]=m.words[M];if(E.length=A,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&O,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&O)<<4|V>>>22,V=B}V>>>=22,m.words[M-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},F.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,O=0;O<m.length;O++){var A=m.words[O]|0;E+=A*977,m.words[O]=E&67108863,E=A*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function $(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n($,j);function G(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(m){for(var E=0,O=0;O<m.length;O++){var A=(m.words[O]|0)*19+E,M=A&67108863;A>>>=26,m.words[O]=M,E=A}return E!==0&&(m.words[m.length++]=E),m},i._prime=function(m){if(U[m])return U[m];var E;if(m==="k256")E=new F;else if(m==="p224")E=new $;else if(m==="p192")E=new G;else if(m==="p25519")E=new X;else throw new Error("Unknown prime "+m);return U[m]=E,E};function W(N){if(typeof N=="string"){var m=i._prime(N);this.m=m.p,this.prime=m}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}W.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},W.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},W.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},W.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},W.prototype.add=function(m,E){this._verify2(m,E);var O=m.add(E);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var O=m.iadd(E);return O.cmp(this.m)>=0&&O.isub(this.m),O},W.prototype.sub=function(m,E){this._verify2(m,E);var O=m.sub(E);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var O=m.isub(E);return O.cmpn(0)<0&&O.iadd(this.m),O},W.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},W.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},W.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},W.prototype.isqr=function(m){return this.imul(m,m.clone())},W.prototype.sqr=function(m){return this.mul(m,m)},W.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var O=this.m.add(new i(1)).iushrn(2);return this.pow(m,O)}for(var A=this.m.subn(1),M=0;!A.isZero()&&A.andln(1)===0;)M++,A.iushrn(1);r(!A.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,k).cmp(B)!==0;)b.redIAdd(B);for(var L=this.pow(b,A),Z=this.pow(m,A.addn(1).iushrn(1)),T=this.pow(m,A),z=M;T.cmp(V)!==0;){for(var K=T,q=0;K.cmp(V)!==0;q++)K=K.redSqr();r(q<z);var Q=this.pow(L,new i(1).iushln(z-q-1));Z=Z.redMul(Q),L=Q.redSqr(),T=T.redMul(L),z=q}return Z},W.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},W.prototype.pow=function(m,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var O=4,A=new Array(1<<O);A[0]=new i(1).toRed(this),A[1]=m;for(var M=2;M<A.length;M++)A[M]=this.mul(A[M-1],m);var V=A[0],B=0,k=0,b=E.bitLength()%26;for(b===0&&(b=26),M=E.length-1;M>=0;M--){for(var L=E.words[M],Z=b-1;Z>=0;Z--){var T=L>>Z&1;if(V!==A[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==O&&(M!==0||Z!==0))&&(V=this.mul(V,A[B]),k=0,B=0)}b=26}return V},W.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},W.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},i.mont=function(m){return new J(m)};function J(N){W.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(J,W),J.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},J.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var O=m.imul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new i(0)._forceRed(this);var O=m.mul(E),A=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=O.isub(A).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof YE>"u"||YE,fk)});var Fee={};fr(Fee,{init:()=>Nee,open:()=>kee,reset:()=>Lee,update:()=>Mee});c();d();f();c();d();f();c();d();f();c();d();f();var s_=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(y=>y(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{var u;((u=S)==null?void 0:u.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,a),a},a_=e=>e?s_(e):s_;var y_=Y(ue(),1),v_=Y(m_(),1),{useSyncExternalStoreWithSelector:X9}=v_.default;function J9(e,t=e.getState,r){let n=X9(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,y_.useDebugValue)(n),n}var g_=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?a_(e):e,n=(i,o)=>J9(r,i,o);return Object.assign(n,r),n},Nd=e=>e?g_(e):g_;c();d();f();c();d();f();c();d();f();var cy=function(e,t){return cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},cy(e,t)};function Z9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cy(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Se=function(){return Se=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Se.apply(this,arguments)};function hs(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function ps(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Q9(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var ve;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(ve||(ve={}));function eF(e,t){if(!e)throw new Error(t)}function tF(e){return e==null?void 0:e.replace(/\/+$/,"")}function rF(e,t){return t===void 0&&(t={}),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return ps(this,function(y){switch(y.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,y.label=1;case 1:if(!(l<n+1))return[3,8];y.label=2;case 2:return y.trys.push([2,4,,5]),[4,e()];case 3:return p=y.sent(),[2,p];case 4:if(h=y.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(v){return setTimeout(v,o)})];case 6:y.sent(),y.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function w_(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function C_(){return new Date().getTime()}function x_(){return new Date().toISOString()}function b_(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var ec=String.fromCharCode,E_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Md={};function nF(e,t){if(!Md[e]){Md[e]={};for(var r=0;r<e.length;r++)Md[e][e.charAt(r)]=r}return Md[e][t]}var nc={compressToBase64:function(e){if(e==null)return"";var t=nc._compress(e,6,function(r){return E_.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32,function(t){return nF(E_,e.charAt(t))})},compress:function(e){return nc._compress(e,16,function(t){return ec(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,y=3,v=2,w=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=y++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++),n[l]=y++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<v;s++)w=w<<1,_==t-1?(_=0,o.push(r(w)),w=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}else{for(a=1,s=0;s<v;s++)w=w<<1|a,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,v),v++),delete i[p]}else for(a=n[p],s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,v),v++)}for(a=2,s=0;s<v;s++)w=w<<1|a&1,_==t-1?(_=0,o.push(r(w)),w=0):_++,a=a>>1;for(;;)if(w=w<<1,_==t-1){o.push(r(w));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:nc._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,y,v,w,_,D;for(p=0;p<3;p+=1)n[p]=p;for(y=0,w=Math.pow(2,2),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;D=ec(y);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(y=0,w=Math.pow(2,u),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;switch(D=y){case 0:for(y=0,w=Math.pow(2,8),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 1:for(y=0,w=Math.pow(2,16),_=1;_!=w;)v=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),y|=(v>0?1:0)*_,_<<=1;n[a++]=ec(y),D=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[D])l=n[D];else if(D===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},iF=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),oF=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new iF,eF(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=tF((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&b_(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return Se({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(ve.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(ve.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(ve.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(ve.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(ve.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(ve.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=Q9([ve.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(ve);n<i.length;n++){var o=i[n];r.includes(ve[o])||this.setPersistedProperty(ve[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:Se(Se(Se(Se({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(ve.SessionId),r=this.getPersistedProperty(ve.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=w_(globalThis),this.setPersistedProperty(ve.SessionId,t)),this.setPersistedProperty(ve.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(ve.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(ve.AnonymousId);return t||(t=w_(globalThis),this.setPersistedProperty(ve.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(ve.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=Se(Se({},this.props),t),this.setPersistedProperty(ve.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(ve.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=Se(Se({},this.buildPayload({distinct_id:t,event:"$identify",properties:Se(Se({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(ve.AnonymousId,n),this.setPersistedProperty(ve.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:Se(Se({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:Se(Se({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:Se({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(ve.PersonProperties)||{};return this.setPersistedProperty(ve.PersonProperties,Se(Se({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(ve.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=Se(Se({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,Se(Se({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return ps(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(ve.PersonProperties)||{},s=this.getPersistedProperty(ve.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(ve.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(ve.FeatureFlags),r=this.getPersistedProperty(ve.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),hs(this,void 0,void 0,function(){return ps(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return hs(r,void 0,void 0,function(){var n;return ps(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return hs(n,void 0,void 0,function(){var i;return ps(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(ve.OverrideFeatureFlags,null):this.setPersistedProperty(ve.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=Se(Se({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:x_()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(ve.Queue)||[];o.push({message:i}),this.setPersistedProperty(ve.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=b_(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(ve.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(ve.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:x_()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(C_(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(nc.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var y=new Error(h.response.statusText);return a(y)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return hs(this,void 0,void 0,function(){var s=this;return ps(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,rF(function(){return s.fetch(t,Se({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return hs(this,void 0,void 0,function(){return ps(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),T_="2.0.0";function sF(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=Se(Se({},t),{$os:uF(e),$browser:P_(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:cF(e.document.referrer),$device:lF(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:aF(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=Se(Se({},t),{$lib:"js",$lib_version:T_,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:C_()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function P_(e,t,r){return t=t||"",r||Mt(e," OPR/")?Mt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Mt(e,"IEMobile")||Mt(e,"WPDesktop")?"Internet Explorer Mobile":Mt(e,"SamsungBrowser/")?"Samsung Internet":Mt(e,"Edge")||Mt(e,"Edg/")?"Microsoft Edge":Mt(e,"FBIOS")?"Facebook Mobile":Mt(e,"Chrome")?"Chrome":Mt(e,"CriOS")?"Chrome iOS":Mt(e,"UCWEB")||Mt(e,"UCBrowser")?"UC Browser":Mt(e,"FxiOS")?"Firefox iOS":Mt(t,"Apple")?Mt(e,"Mobile")?"Mobile Safari":"Safari":Mt(e,"Android")?"Android Mobile":Mt(e,"Konqueror")?"Konqueror":Mt(e,"Firefox")?"Firefox":Mt(e,"MSIE")||Mt(e,"Trident/")?"Internet Explorer":Mt(e,"Gecko")?"Mozilla":""}function aF(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=P_(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function uF(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function lF(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function cF(e){var t=e.split("/");return t.length>=3?t[2]:""}var D_={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{D_.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},__=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},S_=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},ly=void 0,tc=void 0,rc=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},fF=function(e,t){if(t){if(!localStorage){var r=__(t.localStorage);ly=S_(r)?r:void 0}if(!tc){var n=__(t.sessionStorage);tc=S_(n)?n:void 0}}switch(e){case"cookie":return D_||ly||tc||rc();case"localStorage":return ly||tc||rc();case"sessionStorage":return tc||rc();case"memory":return rc();default:return rc()}},I_=function(e){Z9(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=fF((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return T_},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return Se(Se({},e.prototype.getCommonEventProperties.call(this)),sF(window))},t}(oF);function dF(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function hF(e,t){try{return await fetch(e,t)}catch(r){throw dF(r)}}var In=null;typeof globalThis.window<"u"&&(In=new I_("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),In.fetch=hF);var O_={version:"0.4.2",package:"idkit-js"};var A_=e=>{e?In==null||In.capture("idkit loaded",O_):In==null||In.optOut()},R_=()=>{In==null||In.capture("idkit opened",O_)};var mF=Nd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,action_description:a,walletConnectProjectId:u,autoClose:l,copy:p,theme:h},y)=>{e(v=>({theme:h,signal:i,action:o,app_id:s,autoClose:l,action_description:a,walletConnectProjectId:u,copy:H(H({},v.copy),p)})),n&&t().addSuccessCallback(n,y),r&&t().addVerificationCallback(r,y)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:i}})})},onOpenChange:r=>{if(r)return R_(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result,i=t().successCallbacks;n&&requestAnimationFrame(()=>Object.values(i).forEach(o=>void(o==null?void 0:o(n))))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:"WORLD_ID"})}})),Yr=mF;c();d();f();var M_={title:"World ID",heading:"Verify your identity",subheading:"Unlock additional benefits by verifying you're a unique human doing this action once.",success:"Your phone number has been verified"};var kL=Y(r5(),1);c();d();f();var NL=Y(ue(),1);c();d();f();c();d();f();var Bt=Y(ue()),d5=Y(Os()),bi=Y(c5()),wU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function h5(e,t){return e(t={exports:{}},t.exports),t.exports}var xU=h5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||y(C)||a(C))return C;var P,R=0,U=0;if(l(C))for(P=[],U=C.length;R<U;R++)P.push(r(D,C[R],I));else for(var j in P={},C)Object.prototype.hasOwnProperty.call(C,j)&&(P[D(j,I)]=r(D,C[j],I));return P},n=function(D){return v(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(C,I){return I?I.toUpperCase():""})).substr(0,1).toLowerCase()+D.substr(1)},i=function(D){var C=n(D);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(D,C){return function(I,P){var R=(P=P||{}).separator||"_",U=P.split||/(?=[A-Z])/;return I.split(U).join(R)}(D,C).toLowerCase()},s=Object.prototype.toString,a=function(D){return typeof D=="function"},u=function(D){return D===Object(D)},l=function(D){return s.call(D)=="[object Array]"},p=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},y=function(D){return s.call(D)=="[object Boolean]"},v=function(D){return(D-=0)==D},w=function(D,C){var I=C&&"process"in C?C.process:C;return typeof I!="function"?D:function(P,R){return I(P,D,R)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,C){return r(w(n,C),D)},decamelizeKeys:function(D,C){return r(w(o,C),D,C)},pascalizeKeys:function(D,C){return r(w(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(wU)}).decamelize,bU=h5(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),EU=function(e){if(Array.isArray(e))return e},_U=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},f5=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},SU=function(e,t){if(e){if(typeof e=="string")return f5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f5(e,t):void 0}},CU=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},TU=function(e,t){return EU(e)||_U(e,t)||SU(e,t)||CU()},PU=function(e,t){if(e==null)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},DU=function(e,t){if(e==null)return{};var r,n,i=PU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},IU=(0,Bt.createContext)(null);function Tv(e){var t=e.root,r=e.children;return(0,d5.createPortal)(r,t)}function OU(e){var t=(0,Bt.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=DU(r,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(o=(0,Bt.useRef)((i=n)&&i.current),(0,Bt.useEffect)(function(){i&&(i.current=o.current)},[i]),o),v=(0,Bt.useState)(null),w=TU(v,2),_=w[0],D=w[1],C="node_".concat(s).concat(a);return(0,Bt.useLayoutEffect)(function(){if(y.current)try{if(typeof n=="function"&&n(y.current),l){var I=y.current.shadowRoot;return void D(I)}var P=y.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(P.adoptedStyleSheets=u),D(P)}catch(R){(function(U){var j=U.error,F=U.styleSheets,$=U.root;switch(j.name){case"NotSupportedError":F.length>0&&($.adoptedStyleSheets=F);break;default:throw j}})({error:R,styleSheets:u,root:_})}},[n,y,u]),Bt.default.createElement(Bt.default.Fragment,null,Bt.default.createElement(e.tag,bU({key:C,ref:y},h),(_||l)&&Bt.default.createElement(IU.Provider,{value:_},l?Bt.default.createElement("template",{shadowroot:"open"},e.render({root:_,ssr:l,children:p})):Bt.default.createElement(Tv,{root:_},e.render({root:_,ssr:l,children:p})))))});return t.propTypes={mode:bi.default.oneOf(["open","closed"]),delegatesFocus:bi.default.bool,styleSheets:bi.default.arrayOf(bi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:bi.default.bool,children:bi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Tv.propTypes={root:bi.default.object.isRequired,children:bi.default.node},Tv.defaultProps={children:null};var Cv=new Map;function AU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var o=xU(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Cv.has(s)||Cv.set(s,OU({tag:o,render:r})),Cv.get(s)}})}var RU=AU(),p5=RU;c();d();f();var NU=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
17
- /*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-px{bottom:1px;left:1px;right:1px;top:1px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\[2px\\]{margin-top:2px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[300px\\]{height:300px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[72px\\]{width:72px}.w-full{width:100%}.w-max{width:-webkit-max-content;width:max-content}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.scale-x-\\[2\\.0\\]{--tw-scale-x:2.0}.scale-x-\\[2\\.0\\],.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-none{border-style:none}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-conic{background-image:conic-gradient(var(--tw-gradient-stops))}.from-black{--tw-gradient-from:#000;--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-f2f5f9{--tw-gradient-from:#f2f5f9;--tw-gradient-to:rgba(242,245,249,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-gray-200{--tw-gradient-to:rgba(229,231,235,0);--tw-gradient-stops:var(--tw-gradient-from),#e5e7eb,var(--tw-gradient-to)}.via-white\\/30{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.3),var(--tw-gradient-to)}.to-black{--tw-gradient-to:#000}.to-gray-200{--tw-gradient-to:#e5e7eb}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-24{padding-left:6rem;padding-right:6rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.blur{--tw-blur:blur(8px)}.blur,.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.dark .dark\\:border{border-width:1px}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:hidden{display:none}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}`,m5=()=>g.createElement("style",null,NU);c();d();f();var ep=Y(ue(),1),MU=()=>{let[e,t]=(0,ep.useState)("desktop");return(0,ep.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=i=>t(i.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Qa=MU;c();d();f();function eu(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}c();d();f();var kU=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),tp=kU;c();d();f();c();d();f();c();d();f();c();d();f();var Pv=Y(ue(),1),Ns=Y(ue(),1);c();d();f();var g5=Y(ue(),1),tu=(0,g5.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var rp=Y(ue(),1),As=(0,rp.createContext)({});function y5(){return(0,rp.useContext)(As).visualElement}c();d();f();var ru=Y(ue(),1);c();d();f();var v5=Y(ue(),1),Zn=(0,v5.createContext)(null);c();d();f();var np=Y(ue(),1);c();d();f();var yn=typeof document<"u";var yo=yn?np.useLayoutEffect:np.useEffect;c();d();f();var w5=Y(ue(),1),ip=(0,w5.createContext)({strict:!1});function x5(e,t,r,n){let i=y5(),o=(0,ru.useContext)(ip),s=(0,ru.useContext)(Zn),a=(0,ru.useContext)(tu).reducedMotion,u=(0,ru.useRef)();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return yo(()=>{l&&l.render()}),yo(()=>{l&&l.animationState&&l.animationState.animateChanges()}),yo(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var b5=Y(ue(),1);c();d();f();function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E5(e,t,r){return(0,b5.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ei(r)&&(r.current=n))},[t])}c();d();f();var sp=Y(ue(),1);c();d();f();c();d();f();function _i(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function vo(e){return typeof e=="object"&&typeof e.start=="function"}var LU=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Rs(e){return vo(e.animate)||LU.some(t=>_i(e[t]))}function op(e){return Boolean(Rs(e)||e.variants)}function _5(e,t){if(Rs(e)){let{initial:r,animate:n}=e;return{initial:r===!1||_i(r)?r:void 0,animate:_i(n)?n:void 0}}return e.inherit!==!1?t:{}}function C5(e){let{initial:t,animate:r}=_5(e,(0,sp.useContext)(As));return(0,sp.useMemo)(()=>({initial:t,animate:r}),[S5(t),S5(r)])}function S5(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var Si=e=>({isEnabled:t=>e.some(r=>!!t[r])}),wo={measureLayout:Si(["layout","layoutId","drag"]),animation:Si(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Si(["exit"]),drag:Si(["drag","dragControls"]),focus:Si(["whileFocus"]),hover:Si(["whileHover","onHoverStart","onHoverEnd"]),tap:Si(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Si(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Si(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function T5(e){for(let t in e)t==="projectionNodeConstructor"?wo.projectionNodeConstructor=e[t]:wo[t].Component=e[t]}c();d();f();c();d();f();var P5=Y(ue(),1);function xo(e){let t=(0,P5.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var FU=1;function D5(){return xo(()=>{if(bo.hasEverUpdated)return FU++})}c();d();f();var I5=Y(ue(),1),nu=(0,I5.createContext)({});c();d();f();var O5=Y(ue(),1),ap=class extends O5.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};c();d();f();var A5=Y(ue(),1),up=(0,A5.createContext)({});c();d();f();var R5=Symbol.for("motionComponentSymbol");function N5({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&T5(e);function s(u,l){let p=se(H(H({},(0,Ns.useContext)(tu)),u),{layoutId:$U(u)}),{isStatic:h}=p,y=null,v=C5(u),w=h?void 0:D5(),_=i(u,h);if(!h&&yn){v.visualElement=x5(o,_,p,t);let D=(0,Ns.useContext)(ip).strict,C=(0,Ns.useContext)(up);v.visualElement&&(y=v.visualElement.loadFeatures(p,D,e,w,r||wo.projectionNodeConstructor,C))}return Pv.createElement(ap,{visualElement:v.visualElement,props:p},y,Pv.createElement(As.Provider,{value:v},n(o,u,w,E5(_,v.visualElement,l),_,h,v.visualElement)))}let a=(0,Ns.forwardRef)(s);return a[R5]=o,a}function $U({layoutId:e}){let t=(0,Ns.useContext)(nu).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function M5(e){function t(n,i={}){return N5(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}c();d();f();c();d();f();c();d();f();var k5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iu(e){return typeof e!="string"||e.includes("-")?!1:!!(k5.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var Q5=Y(ue(),1);c();d();f();var j5=Y(ue(),1);c();d();f();c();d();f();var ou={};function L5(e){Object.assign(ou,e)}c();d();f();var su=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(su);function lp(e,{layout:t,layoutId:r}){return Ur.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ou[e]||e==="opacity")}c();d();f();var er=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var UU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VU=(e,t)=>su.indexOf(e)-su.indexOf(t);function F5({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(VU);for(let a of t)s+=`${UU[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,i?"":s):n&&i&&(s="none"),s}c();d();f();function cp(e){return e.startsWith("--")}c();d();f();var $5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var $n=(e,t,r)=>Math.min(Math.max(r,e),t);var vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo=se(H({},vn),{transform:e=>$n(0,1,e)}),Yc=se(H({},vn),{default:1});c();d();f();c();d();f();var _o=e=>Math.round(e*1e5)/1e5,So=/(-)?([\d]*\.?[\d])+/g,fp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,U5=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ci(e){return typeof e=="string"}var Xc=e=>({test:t=>Ci(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qn=Xc("deg"),Pr=Xc("%"),pe=Xc("px"),V5=Xc("vh"),B5=Xc("vw"),Dv=se(H({},Pr),{parse:e=>Pr.parse(e)/100,transform:e=>Pr.transform(e*100)});c();d();f();var Iv=se(H({},vn),{transform:Math.round});var dp={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,size:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,rotate:Qn,rotateX:Qn,rotateY:Qn,rotateZ:Qn,scale:Yc,scaleX:Yc,scaleY:Yc,scaleZ:Yc,skew:Qn,skewX:Qn,skewY:Qn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Eo,originX:Dv,originY:Dv,originZ:pe,zIndex:Iv,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Iv};function au(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let y in t){let v=t[y];if(cp(y)){o[y]=v;continue}let w=dp[y],_=$5(v,w);if(Ur.has(y)){if(l=!0,s[y]=_,a.push(y),!h)continue;v!==(w.default||0)&&(h=!1)}else y.startsWith("origin")?(p=!0,u[y]=_):i[y]=_}if(t.transform||(l||n?i.transform=F5(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:y="50%",originY:v="50%",originZ:w=0}=u;i.transformOrigin=`${y} ${v} ${w}`}}c();d();f();var uu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Ov(e,t,r){for(let n in t)!er(t[n])&&!lp(n,r)&&(e[n]=t[n])}function BU({transformTemplate:e},t,r){return(0,j5.useMemo)(()=>{let n=uu();return au(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function jU(e,t,r){let n=e.style||{},i={};return Ov(i,n,e),Object.assign(i,BU(e,t,r)),e.transformValues?e.transformValues(i):i}function z5(e,t,r){let n={},i=jU(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=i,n}c();d();f();c();d();f();var zU=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],HU=["whileTap","onTap","onTapStart","onTapCancel"],KU=["onPan","onPanStart","onPanSessionStart","onPanEnd"],qU=["whileInView","onViewportEnter","onViewportLeave","viewport"],WU=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...qU,...HU,...zU,...KU]);function Jc(e){return WU.has(e)}var q5=e=>!Jc(e);function QU(e){!e||(q5=t=>t.startsWith("on")?!Jc(t):e(t))}try{QU(K5().default)}catch(e){}function W5(e,t,r){let n={};for(let i in e)(q5(i)||r===!0&&Jc(i)||!t&&!Jc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var J5=Y(ue(),1);c();d();f();c();d();f();function G5(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function Y5(e,t,r){let n=G5(t,e.x,e.width),i=G5(r,e.y,e.height);return`${n} ${i}`}c();d();f();var eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},tV={offset:"strokeDashoffset",array:"strokeDasharray"};function X5(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?eV:tV;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function lu(e,y,l,p,h){var v=y,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=v,u=de(v,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(au(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:w,style:_,dimensions:D}=e;w.transform&&(D&&(_.transform=w.transform),delete w.transform),D&&(n!==void 0||i!==void 0||_.transform)&&(_.transformOrigin=Y5(D,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(w.x=t),r!==void 0&&(w.y=r),o!==void 0&&X5(w,o,s,a,!1)}c();d();f();var hp=()=>se(H({},uu()),{attrs:{}});c();d();f();var cu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Z5(e,t,r,n){let i=(0,J5.useMemo)(()=>{let o=hp();return lu(o,t,{enableHardwareAcceleration:!1},cu(n),e.transformTemplate),se(H({},o.attrs),{style:H({},o.style)})},[t]);if(e.style){let o={};Ov(o,e.style,e),i.style=H(H({},o),i.style)}return i}function eC(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(iu(r)?Z5:z5)(n,s,a,r),p=W5(n,typeof r=="string",e),h=se(H(H({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,Q5.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var fu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function pp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}c();d();f();var mp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gp(e,t,r,n){pp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(mp.has(i)?i:fu(i),t.attrs[i])}c();d();f();c();d();f();function du(e){let{style:t}=e,r={};for(let n in t)(er(t[n])||lp(n,e))&&(r[n]=t[n]);return r}function yp(e){let t=du(e);for(let r in e)if(er(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var Nv=Y(ue(),1);c();d();f();function hu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}c();d();f();c();d();f();c();d();f();var Ms=e=>Array.isArray(e);var tC=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),rC=e=>Ms(e)?e[e.length-1]||0:e;function pu(e){let t=er(e)?e.get():e;return tC(t)?t.toValue():t}function rV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:nV(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var vp=e=>(t,r)=>{let n=(0,Nv.useContext)(As),i=(0,Nv.useContext)(Zn),o=()=>rV(e,t,n,i);return r?o():xo(o)};function nV(e,t,r,n){let i={},o=n(e);for(let y in o)i[y]=pu(o[y]);let{initial:s,animate:a}=e,u=Rs(e),l=op(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!vo(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{let w=hu(e,v);if(!w)return;let I=w,{transitionEnd:_,transition:D}=I,C=de(I,["transitionEnd","transition"]);for(let P in C){let R=C[P];if(Array.isArray(R)){let U=p?R.length-1:0;R=R[U]}R!==null&&(i[P]=R)}for(let P in _)i[P]=_[P]}),i}var nC={useVisualState:vp({scrapeMotionValuesFromProps:yp,createRenderState:hp,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}lu(r,n,{enableHardwareAcceleration:!1},cu(t.tagName),e.transformTemplate),gp(t,r)}})};c();d();f();var iC={useVisualState:vp({scrapeMotionValuesFromProps:du,createRenderState:uu})};function oC(e,{forwardMotionProps:t=!1},r,n,i){let o=iu(e)?nC:iC;return se(H({},o),{preloadedFeatures:r,useRender:eC(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var Te;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Te||(Te={}));c();d();f();var sC=Y(ue(),1);function ks(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zc(e,t,r,n){(0,sC.useEffect)(()=>{let i=e.current;if(r&&i)return ks(i,t,r,n)},[e,t,r,n])}function aC({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(Te.Focus,!0)},i=()=>{r&&r.setActive(Te.Focus,!1)};Zc(t,"focus",e?n:void 0),Zc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function wp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function xp(e){return!!e.touches}c();d();f();c();d();f();function iV(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var oV={pageX:0,pageY:0};function sV(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||oV;return{x:n[t+"X"],y:n[t+"Y"]}}function aV(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function Qc(e,t="page"){return{point:xp(e)?sV(e,t):aV(e,t)}}var Mv=(e,t=!1)=>{let r=n=>e(n,Qc(n));return t?iV(r):r};c();d();f();var uC=()=>yn&&window.onpointerdown===null,lC=()=>yn&&window.ontouchstart===null,cC=()=>yn&&window.onmousedown===null;var uV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},lV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fC(e){return uC()?e:lC()?lV[e]:cC()?uV[e]:e}function Ti(e,t,r,n){return ks(e,fC(t),Mv(r,t==="pointerdown"),n)}function Ls(e,t,r,n){return Zc(e,fC(t),r&&Mv(r,t==="pointerdown"),n)}c();d();f();function pC(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var dC=pC("dragHorizontal"),hC=pC("dragVertical");function kv(e){let t=!1;if(e==="y")t=hC();else if(e==="x")t=dC();else{let r=dC(),n=hC();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function bp(){let e=kv(!0);return e?(e(),!1):!0}function mC(e,t,r){return(n,i)=>{!wp(n)||bp()||(e.animationState&&e.animationState.setActive(Te.Hover,t),r&&r(n,i))}}function gC({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Ls(n,"pointerenter",e||r?mC(n,!0,e):void 0,{passive:!e}),Ls(n,"pointerleave",t||r?mC(n,!1,t):void 0,{passive:!t})}c();d();f();var Fv=Y(ue(),1);c();d();f();var Lv=(e,t)=>t?e===t?!0:Lv(e,t.parentElement):!1;c();d();f();var yC=Y(ue(),1);function mu(e){return(0,yC.useEffect)(()=>()=>e(),[])}c();d();f();var cV=(e,t)=>r=>t(e(r)),Co=(...e)=>e.reduce(cV);function vC({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,Fv.useRef)(!1),a=(0,Fv.useRef)(null),u={passive:!(t||e||r||v)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(Te.Tap,!1),!bp()}function h(w,_){!p()||(Lv(i.current,w.target)?e&&e(w,_):r&&r(w,_))}function y(w,_){!p()||r&&r(w,_)}function v(w,_){l(),!s.current&&(s.current=!0,a.current=Co(Ti(window,"pointerup",h,u),Ti(window,"pointercancel",y,u)),i.animationState&&i.animationState.setActive(Te.Tap,!0),t&&t(w,_))}Ls(i,"pointerdown",o?v:void 0,u),mu(l)}c();d();f();c();d();f();var fV="production",gu=typeof process>"u"||process.env===void 0?fV:"production";var ef=Y(ue(),1);c();d();f();var wC=new Set;function Ep(e,t,r){e||wC.has(t)||(console.warn(t),r&&console.warn(r),wC.add(t))}c();d();f();var Uv=new WeakMap,$v=new WeakMap,dV=e=>{let t=Uv.get(e.target);t&&t(e)},hV=e=>{e.forEach(dV)};function pV(r){var n=r,{root:e}=n,t=de(n,["root"]);let i=e||document;$v.has(i)||$v.set(i,{});let o=$v.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(hV,H({root:e},t))),o[s]}function xC(e,t,r){let n=pV(t);return Uv.set(e,r),n.observe(e),()=>{Uv.delete(e),n.unobserve(e)}}function bC({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,ef.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?yV:gV)(s,o.current,e,i)}var mV={some:0,all:1};function gV(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,ef.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:mV[o]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(Te.InView,p);let h=r.getProps(),y=p?h.onViewportEnter:h.onViewportLeave;y&&y(l)};return xC(r.current,a,u)},[e,n,i,o])}function yV(e,t,r,{fallback:n=!0}){(0,ef.useEffect)(()=>{!e||!n||(gu!=="production"&&Ep(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(Te.InView,!0)}))},[e])}c();d();f();var Un=e=>t=>(e(t),null);var EC={inView:Un(bC),tap:Un(vC),focus:Un(aC),hover:Un(gC)};c();d();f();var hf=Y(ue(),1);c();d();f();var yu=Y(ue(),1);function _p(){let e=(0,yu.useContext)(Zn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,yu.useId)();return(0,yu.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function Vv(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}c();d();f();c();d();f();c();d();f();var _C=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var SC=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var rn={delta:0,timestamp:0};c();d();f();c();d();f();var Bv=16.666666666666668,vV=typeof performance<"u"?()=>performance.now():()=>Date.now(),jv=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(vV()),Bv);c();d();f();function CC(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,y=h?t:r;return l&&s.add(u),y.indexOf(u)===-1&&(y.push(u),h&&i&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}i=!1,o&&(o=!1,a.process(u))}};return a}var wV=40,zv=!0,tf=!1,Hv=!1,rf=["read","update","preRender","render","postRender"],Sp=rf.reduce((e,t)=>(e[t]=CC(()=>tf=!0),e),{}),Ct=rf.reduce((e,t)=>{let r=Sp[t];return e[t]=(n,i=!1,o=!1)=>(tf||bV(),r.schedule(n,i,o)),e},{}),nn=rf.reduce((e,t)=>(e[t]=Sp[t].cancel,e),{}),Cp=rf.reduce((e,t)=>(e[t]=()=>Sp[t].process(rn),e),{}),xV=e=>Sp[e].process(rn),TC=e=>{tf=!1,rn.delta=zv?Bv:Math.max(Math.min(e-rn.timestamp,wV),1),rn.timestamp=e,Hv=!0,rf.forEach(xV),Hv=!1,tf&&(zv=!1,jv(TC))},bV=()=>{tf=!0,zv=!0,Hv||jv(TC)};c();d();f();c();d();f();function vu(e,t){e.indexOf(t)===-1&&e.push(t)}function wu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var To=class{constructor(){this.subscriptions=[]}add(t){return vu(this.subscriptions,t),()=>wu(this.subscriptions,t)}notify(t,r,n){let i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){let s=this.subscriptions[o];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function xu(e,t){return t?e*(1e3/t):0}var EV=e=>!isNaN(parseFloat(e)),Kv=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;let{delta:o,timestamp:s}=rn;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EV(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?xu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}};function ei(e,t){return new Kv(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var bu=(e,t)=>r=>Boolean(Ci(r)&&U5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Tp=(e,t,r)=>n=>{if(!Ci(n))return n;let[i,o,s,a]=n.match(So);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var _V=e=>$n(0,255,e),qv=se(H({},vn),{transform:e=>Math.round(_V(e))}),ti={test:bu("rgb","red"),parse:Tp("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+qv.transform(e)+", "+qv.transform(t)+", "+qv.transform(r)+", "+_o(Eo.transform(n))+")"};function SV(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var nf={test:bu("#"),parse:SV,transform:ti.transform};c();d();f();var Po={test:bu("hsl","hue"),parse:Tp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Pr.transform(_o(t))+", "+Pr.transform(_o(r))+", "+_o(Eo.transform(n))+")"};var jt={test:e=>ti.test(e)||nf.test(e)||Po.test(e),parse:e=>ti.test(e)?ti.parse(e):Po.test(e)?Po.parse(e):nf.parse(e),transform:e=>Ci(e)?e:e.hasOwnProperty("red")?ti.transform(e):Po.transform(e)};var PC="${c}",DC="${n}";function CV(e){var t,r;return isNaN(e)&&Ci(e)&&(((t=e.match(So))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(fp))===null||r===void 0?void 0:r.length)||0)>0}function of(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(fp);i&&(r=i.length,e=e.replace(fp,PC),t.push(...i.map(jt.parse)));let o=e.match(So);return o&&(n=o.length,e=e.replace(So,DC),t.push(...o.map(vn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function IC(e){return of(e).values}function OC(e){let{values:t,numColors:r,tokenised:n}=of(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?PC:DC,a<r?jt.transform(o[a]):_o(o[a]));return s}}var TV=e=>typeof e=="number"?0:e;function PV(e){let t=IC(e);return OC(e)(t.map(TV))}var Dr={test:CV,parse:IC,createTransformer:OC,getAnimatableNone:PV};c();d();f();c();d();f();var DV=new Set(["brightness","contrast","saturate","opacity"]);function IV(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(So)||[];if(!n)return e;let i=r.replace(n,""),o=DV.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var OV=/([a-z-]*)\(.*?\)/g,sf=se(H({},Dr),{getAnimatableNone:e=>{let t=e.match(OV);return t?t.map(IV).join(" "):e}});c();d();f();var AV=se(H({},dp),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:sf,WebkitFilter:sf}),Eu=e=>AV[e];function _u(e,t){var r;let n=Eu(e);return n!==sf&&(n=Dr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Pp=e=>t=>t.test(e);c();d();f();var AC={test:e=>e==="auto",parse:e=>e};var Wv=[vn,pe,Pr,Qn,B5,V5,AC],Su=e=>Wv.find(Pp(e));var RV=[...Wv,jt,Dr],RC=e=>RV.find(Pp(e));c();d();f();function NV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function MV(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Fs(e,t,r){let n=e.getProps();return hu(n,t,r!==void 0?r:n.custom,NV(e),MV(e))}function kV(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ei(r))}function NC(e,t){let r=Fs(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=de(s,["transitionEnd","transition"]);o=H(H({},o),n);for(let a in o){let u=rC(o[a]);kV(e,a,u)}}function MC(e,t,r){var n,i;let o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(!!s)for(let a=0;a<s;a++){let u=o[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(_C(p)||SC(p))?p=parseFloat(p):!RC(p)&&Dr.test(l)&&(p=_u(u,l)),e.addValue(u,ei(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function LV(e,t){return t?(t[e]||t.default||t).from:void 0}function kC(e,t,r){var n;let i={};for(let o in e){let s=LV(o,t);i[o]=s!==void 0?s:(n=r.getValue(o))===null||n===void 0?void 0:n.get()}return i}c();d();f();function $s(e){return Boolean(er(e)&&e.add)}c();d();f();c();d();f();var LC=(e,t)=>`${e}: ${t}`;function FC(e,t){let{MotionAppearAnimations:r}=window,n=LC(e,Ur.has(t)?"transform":t),i=r&&r.get(n);return i?(Ct.render(()=>{try{i.cancel(),r.delete(n)}catch(o){}}),i.currentTime||0):0}c();d();f();var FV="framerAppearId",$C="data-"+fu(FV);c();d();f();c();d();f();var Cu=function(){},sr=function(){};c();d();f();var Tu=e=>e*1e3;c();d();f();var UC={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Pu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Du=e=>t=>1-e(1-t);var Dp=e=>e*e,VC=Du(Dp),af=Pu(Dp);c();d();f();c();d();f();var Pe=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function Gv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function BC({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,u=2*r-a;i=Gv(u,a,e+1/3),o=Gv(u,a,e),s=Gv(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var Yv=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},$V=[nf,ti,Po],UV=e=>$V.find(t=>t.test(e));function jC(e){let t=UV(e);sr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=BC(r)),r}var Ip=(e,t)=>{let r=jC(e),n=jC(t),i=H({},r);return o=>(i.red=Yv(r.red,n.red,o),i.green=Yv(r.green,n.green,o),i.blue=Yv(r.blue,n.blue,o),i.alpha=Pe(r.alpha,n.alpha,o),ti.transform(i))};c();d();f();function zC(e,t){return typeof e=="number"?r=>Pe(e,t,r):jt.test(e)?Ip(e,t):Jv(e,t)}var Xv=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>zC(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},HC=(e,t)=>{let r=H(H({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=zC(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},Jv=(e,t)=>{let r=Dr.createTransformer(t),n=of(e),i=of(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Co(Xv(n.values,i.values),r):(Cu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};c();d();f();var Us=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var KC=(e,t)=>r=>Pe(e,t,r);function VV(e){return typeof e=="number"?KC:typeof e=="string"?jt.test(e)?Ip:Jv:Array.isArray(e)?Xv:typeof e=="object"?HC:KC}function BV(e,t,r){let n=[],i=r||VV(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=Co(u,a)}n.push(a)}return n}function Op(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;sr(o===t.length,"Both input and output ranges must be the same length"),sr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=BV(t,n,i),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=Us(e[p],e[p+1],l);return s[p](h)};return r?l=>u($n(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Iu=e=>e;var qC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,jV=1e-7,zV=12;function HV(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=qC(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>jV&&++a<zV);return s}function Ap(e,t,r,n){if(e===t&&r===n)return Iu;let i=o=>HV(o,0,1,e,r);return o=>o===0||o===1?o:qC(i(o),t,n)}c();d();f();var Zv=e=>1-Math.sin(Math.acos(e)),uf=Du(Zv),WC=Pu(uf);c();d();f();var Qv=Ap(.33,1.53,.69,.99),lf=Du(Qv),GC=Pu(lf);c();d();f();var YC=e=>(e*=2)<1?.5*lf(e):.5*(2-Math.pow(2,-10*(e-1)));var XC={linear:Iu,easeIn:Dp,easeInOut:af,easeOut:VC,circIn:Zv,circInOut:WC,circOut:uf,backIn:lf,backInOut:GC,backOut:Qv,anticipate:YC},ew=e=>{if(Array.isArray(e)){sr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Ap(t,r,n,i)}else if(typeof e=="string")return sr(XC[e]!==void 0,`Invalid easing type '${e}'`),XC[e];return e},JC=e=>Array.isArray(e)&&typeof e[0]!="number";function KV(e,t){return e.map(()=>t||af).splice(0,e.length-1)}function qV(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function WV(e,t){return e.map(r=>r*t)}function cf({keyframes:e,ease:t=af,times:r,duration:n=300}){e=[...e];let i=cf[0],o=JC(t)?t.map(ew):ew(t),s={done:!1,value:i},a=WV(r&&r.length===cf.length?r:qV(e),n);function u(){return Op(a,e,{ease:Array.isArray(o)?o:KV(e,o)})}let l=u();return{next:p=>(s.value=l(p),s.done=p>=n,s),flipTarget:()=>{e.reverse(),l=u()}}}c();d();f();c();d();f();var tw=.001,GV=.01,ZC=10,YV=.05,XV=1;function QC({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Cu(e<=ZC*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=$n(YV,XV,s),e=$n(GV,ZC,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,y=p-r,v=Rp(l,s),w=Math.exp(-h);return tw-y/v*w},o=l=>{let h=l*s*e,y=h*r+r,v=Math.pow(s,2)*Math.pow(l,2)*e,w=Math.exp(-h),_=Rp(Math.pow(l,2),s);return(-i(l)+tw>0?-1:1)*((y-v)*w)/_}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-tw+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=ZV(i,o,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var JV=12;function ZV(e,t,r){let n=r;for(let i=1;i<JV;i++)n=n-e(n)/t(n);return n}function Rp(e,t){return e*Math.sqrt(1-t*t)}var QV=["duration","bounce"],eB=["stiffness","damping","mass"];function e8(e,t){return t.some(r=>e[r]!==void 0)}function tB(e){let t=H({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!e8(e,eB)&&e8(e,QV)){let r=QC(e);t=se(H(H({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var rB=5;function rw(i){var o=i,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=o,n=de(o,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],u={done:!1,value:s},{stiffness:l,damping:p,mass:h,velocity:y,duration:v,isResolvedFromDuration:w}=tB(n),_=nB,D=y?-(y/1e3):0,C=p/(2*Math.sqrt(l*h));function I(){let P=a-s,R=Math.sqrt(l/h)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),C<1){let U=Rp(R,C);_=j=>{let F=Math.exp(-C*R*j);return a-F*((D+C*R*P)/U*Math.sin(U*j)+P*Math.cos(U*j))}}else if(C===1)_=U=>a-Math.exp(-R*U)*(P+(D+R*P)*U);else{let U=R*Math.sqrt(C*C-1);_=j=>{let F=Math.exp(-C*R*j),$=Math.min(U*j,300);return a-F*((D+C*R*P)*Math.sinh($)+U*P*Math.cosh($))/U}}}return I(),{next:P=>{let R=_(P);if(w)u.done=P>=v;else{let U=D;if(P!==0)if(C<1){let $=Math.max(0,P-rB);U=xu(R-_($),P-$)}else U=0;let j=Math.abs(U)<=t,F=Math.abs(a-R)<=r;u.done=j&&F}return u.value=u.done?a:R,u},flipTarget:()=>{D=-D,[s,a]=[a,s],I()}}}rw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var nB=e=>0;c();d();f();function t8({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s=e[0],a={done:!1,value:s},u=r*t,l=s+u,p=o===void 0?l:o(l);return p!==l&&(u=p-s),{next:h=>{let y=-u*Math.exp(-h/n);return a.done=!(y>i||y<-i),a.value=a.done?p:p+y,a},flipTarget:()=>{}}}var iB={decay:t8,keyframes:cf,tween:cf,spring:rw};function r8(e,t,r=0){return e-t-r}function oB(e,t=0,r=0,n=!0){return n?r8(t+-e,t,r):t-(e-t)+r}function sB(e,t,r,n){return n?e>=t+r:e<=-r}var aB=e=>{let t=({delta:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>nn.update(t)}};function Vs(_){var D=_,{duration:e,driver:t=aB,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:l,onComplete:p,onRepeat:h,onUpdate:y,type:v="keyframes"}=D,w=de(D,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var C,I;let P,R=0,U=e,j,F=!1,$=!0,G,X=iB[s.length>2?"keyframes":v],W=s[0],J=s[s.length-1];!((I=(C=X).needsInterpolation)===null||I===void 0)&&I.call(C,W,J)&&(G=Op([0,100],[W,J],{clamp:!1}),s=[0,100]);let N=X(se(H({},w),{duration:e,keyframes:s}));function m(){R++,i==="reverse"?($=R%2===0,r=oB(r,U,o,$)):(r=r8(r,U,o),i==="mirror"&&N.flipTarget()),F=!1,h&&h()}function E(){P.stop(),p&&p()}function O(M){if($||(M=-M),r+=M,!F){let V=N.next(Math.max(0,r));j=V.value,G&&(j=G(j)),F=$?V.done:r<=0}y&&y(j),F&&(R===0&&(U=U!==void 0?U:r),R<n?sB(r,U,o,$)&&m():E())}function A(){u&&u(),P=t(O),P.start()}return a&&A(),{stop:()=>{l&&l(),P.stop()},sample:M=>N.next(Math.max(0,M))}}c();d();f();c();d();f();function n8(e){return!e||Array.isArray(e)||typeof e=="string"&&i8[e]}var ff=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,i8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ff([0,.65,.55,1]),circOut:ff([.55,0,1,.45]),backIn:ff([.31,.01,.66,-.59]),backOut:ff([.33,1.53,.69,.99])};function o8(e){if(!!e)return Array.isArray(e)?ff(e):i8[e]}function s8(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){return e.animate({[t]:r,offset:u},{delay:n,duration:i,easing:o8(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var Np=10;function a8(e,t,o){var s=o,{onUpdate:r,onComplete:n}=s,i=de(s,["onUpdate","onComplete"]);let{keyframes:a,duration:u=.3,elapsed:l=0,ease:p}=i;if(i.type==="spring"||!n8(i.ease)){let y=Vs(i),v={done:!1,value:a[0]},w=[],_=0;for(;!v.done;)v=y.sample(_),w.push(v.value),_+=Np;a=w,u=_-Np,p="linear"}let h=s8(e.owner.current,t,a,se(H({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:y}=h;if(y){let v=Vs(i);e.setWithVelocity(v.sample(y-Np).value,v.sample(y).value,Np)}Ct.update(()=>h.cancel())}}c();d();f();c();d();f();function Mp(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(nn.read(n),e(o-t))};return Ct.read(n,!0),()=>nn.read(n)}function u8({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?Mp(i,-t):i()}c();d();f();function l8({keyframes:e,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:y,onStop:v}){let w=e[0],_;function D(R){return r!==void 0&&R<r||n!==void 0&&R>n}function C(R){return r===void 0?n:n===void 0||Math.abs(r-R)<Math.abs(n-R)?r:n}function I(R){_==null||_.stop(),_=Vs(se(H({keyframes:[0,1],velocity:0},R),{driver:p,onUpdate:U=>{var j;h==null||h(U),(j=R.onUpdate)===null||j===void 0||j.call(R,U)},onComplete:y,onStop:v}))}function P(R){I(H({type:"spring",stiffness:s,damping:a,restDelta:u},R))}if(D(w))P({velocity:t,keyframes:[w,C(w)]});else{let R=i*t+w;typeof l<"u"&&(R=l(R));let U=C(R),j=U===r?-1:1,F,$,G=X=>{F=$,$=X,t=xu(X-F,rn.delta),(j===1&&X>U||j===-1&&X<U)&&P({keyframes:[X,U],velocity:t})};I({type:"decay",keyframes:[w,0],velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:D(R)?G:void 0})}return{stop:()=>_==null?void 0:_.stop()}}c();d();f();var Bs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),kp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nw=()=>({type:"keyframes",ease:"linear",duration:.3}),uB={type:"keyframes",duration:.8},c8={x:Bs,y:Bs,z:Bs,rotate:Bs,rotateX:Bs,rotateY:Bs,rotateZ:Bs,scaleX:kp,scaleY:kp,scale:kp,opacity:nw,backgroundColor:nw,color:nw,default:kp},f8=(e,{keyframes:t})=>t.length>2?uB:(c8[e]||c8.default)(t[1]);c();d();f();var df=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Dr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function d8(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u}=h,l=de(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}function iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function ow(e){return typeof e=="number"?0:_u("",e)}function Lp(e,t){return e[t]||e.default||e}function h8(e,t,r,n){let i=df(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=_u(t,r):iw(o)&&typeof r=="string"?o=ow(r):!Array.isArray(r)&&iw(r)&&typeof o=="string"&&(r=ow(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var p8={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},sw={},aw={};for(let e in p8)aw[e]=()=>(sw[e]===void 0&&(sw[e]=p8[e]()),sw[e]);var lB=new Set(["opacity"]),Ou=(e,t,r,n={})=>i=>{let o=Lp(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Tu(s);let u=h8(t,e,r,o),l=u[0],p=u[u.length-1],h=df(e,l),y=df(e,p);Cu(h===y,`You are trying to animate ${e} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let v=se(H({keyframes:u,velocity:t.getVelocity()},o),{elapsed:a,onUpdate:C=>{t.set(C),o.onUpdate&&o.onUpdate(C)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}});if(!h||!y||UC.current||o.type===!1)return u8(v);if(o.type==="inertia"){let C=l8(v);return()=>C.stop()}d8(o)||(v=H(H({},v),f8(e,v))),v.duration&&(v.duration=Tu(v.duration)),v.repeatDelay&&(v.repeatDelay=Tu(v.repeatDelay));let w=t.owner,_=w&&w.current;if(aw.waapi()&&lB.has(e)&&!v.repeatDelay&&v.repeatType!=="mirror"&&v.damping!==0&&w&&_ instanceof HTMLElement&&!w.getProps().onUpdate)return a8(t,e,v);{let C=Vs(v);return()=>C.stop()}};function m8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>uw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=uw(e,t,r);else{let i=typeof t=="function"?Fs(e,t,r.custom):t;n=g8(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function uw(e,t,r={}){var n;let i=Fs(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>g8(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:y}=o;return cB(e,t,p+l,h,y,r)}:()=>Promise.resolve(),{when:u}=o;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function g8(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let y=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=y,u=de(y,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let v in u){let w=e.getValue(v),_=u[v];if(!w||_===void 0||h&&dB(h,v))continue;let D=H({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&Ur.has(v)&&(D=se(H({},D),{type:!1,delay:0})),!w.hasAnimated){let I=e.getProps()[$C];I&&(D.elapsed=FC(I,v))}let C=w.start(Ou(v,w,_,D));$s(l)&&(l.add(v),C=C.then(()=>l.remove(v))),p.push(C)}return Promise.all(p).then(()=>{a&&NC(e,a)})}function cB(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(fB).forEach((l,p)=>{s.push(uw(l,t,se(H({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function fB(e,t){return e.sortNodePosition(t)}function dB({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Fp=[Te.Animate,Te.InView,Te.Focus,Te.Hover,Te.Tap,Te.Drag,Te.Exit],hB=[...Fp].reverse(),pB=Fp.length;function mB(e){return t=>Promise.all(t.map(({animation:r,options:n})=>m8(e,r,n)))}function y8(e){let t=mB(e),r=yB(),n=!0,i=(u,l)=>{let p=Fs(e,l);if(p){let h=p,{transition:y,transitionEnd:v}=h,w=de(h,["transition","transitionEnd"]);u=H(H(H({},u),w),v)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},y=[],v=new Set,w={},_=1/0;for(let C=0;C<pB;C++){let I=hB[C],P=r[I],R=p[I]!==void 0?p[I]:h[I],U=_i(R),j=I===l?P.isActive:null;j===!1&&(_=C);let F=R===h[I]&&R!==p[I]&&U;if(F&&n&&e.manuallyAnimateOnMount&&(F=!1),P.protectedKeys=H({},w),!P.isActive&&j===null||!R&&!P.prevProp||vo(R)||typeof R=="boolean")continue;let $=gB(P.prevProp,R),G=$||I===l&&P.isActive&&!F&&U||C>_&&U,X=Array.isArray(R)?R:[R],W=X.reduce(i,{});j===!1&&(W={});let{prevResolvedValues:J={}}=P,N=H(H({},J),W),m=E=>{G=!0,v.delete(E),P.needsAnimating[E]=!0};for(let E in N){let O=W[E],A=J[E];w.hasOwnProperty(E)||(O!==A?Ms(O)&&Ms(A)?!Vv(O,A)||$?m(E):P.protectedKeys[E]=!0:O!==void 0?m(E):v.add(E):O!==void 0&&v.has(E)?m(E):P.protectedKeys[E]=!0)}P.prevProp=R,P.prevResolvedValues=W,P.isActive&&(w=H(H({},w),W)),n&&e.blockInitialAnimation&&(G=!1),G&&!F&&y.push(...X.map(E=>({animation:E,options:H({type:I},u)})))}if(v.size){let C={};v.forEach(I=>{let P=e.getBaseTarget(I);P!==void 0&&(C[I]=P)}),y.push({animation:C})}let D=Boolean(y.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),n=!1,D?t(y):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var w;return(w=v.animationState)===null||w===void 0?void 0:w.setActive(u,l)}),r[u].isActive=l;let y=s(p,u);for(let v in r)r[v].protectedKeys={};return y}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function gB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Vv(t,e):!1}function js(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yB(){return{[Te.Animate]:js(!0),[Te.InView]:js(),[Te.Hover]:js(),[Te.Tap]:js(),[Te.Drag]:js(),[Te.Focus]:js(),[Te.Exit]:js()}}var v8={animation:Un(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=y8(e)),vo(t)&&(0,hf.useEffect)(()=>t.subscribe(e),[t])}),exit:Un(e=>{let{custom:t,visualElement:r}=e,[n,i]=_p(),o=(0,hf.useContext)(Zn);(0,hf.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(Te.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var gw=Y(ue(),1);c();d();f();c();d();f();c();d();f();var w8=(e,t)=>Math.abs(e-t);function x8(e,t){let r=w8(e.x,t.x),n=w8(e.y,t.y);return Math.sqrt(r**2+n**2)}var Au=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=cw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=x8(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:y}=l,{timestamp:v}=rn;this.history.push(se(H({},y),{timestamp:v}));let{onStart:w,onMove:_}=this.handlers;p||(w&&w(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=lw(p,this.transformPagePoint),wp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Ct.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:y}=this.handlers,v=cw(lw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,v),y&&y(l,v)},xp(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=Qc(t),o=lw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=rn;this.history=[se(H({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,cw(o,this.history)),this.removeListeners=Co(Ti(window,"pointermove",this.handlePointerMove),Ti(window,"pointerup",this.handlePointerUp),Ti(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nn.update(this.updatePoint)}};function lw(e,t){return t?{point:t(e.point)}:e}function b8(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cw({point:e},t){return{point:e,delta:b8(e,E8(t)),offset:b8(e,vB(t)),velocity:wB(t,.1)}}function vB(e){return e[0]}function E8(e){return e[e.length-1]}function wB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=E8(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Tu(t)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function ar(e){return e.max-e.min}function $p(e,t=0,r=.01){return Math.abs(e-t)<=r}function _8(e,t,r,n=.5){e.origin=n,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ar(r)/ar(t),($p(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(r.min,r.max,e.origin)-e.originPoint,($p(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ru(e,t,r,n){_8(e.x,t.x,r.x,n==null?void 0:n.originX),_8(e.y,t.y,r.y,n==null?void 0:n.originY)}function S8(e,t,r){e.min=r.min+t.min,e.max=e.min+ar(t)}function T8(e,t,r){S8(e.x,t.x,r.x),S8(e.y,t.y,r.y)}function C8(e,t,r){e.min=t.min-r.min,e.max=e.min+ar(t)}function Nu(e,t,r){C8(e.x,t.x,r.x),C8(e.y,t.y,r.y)}function A8(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Pe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Pe(r,e,n.max):Math.min(e,r)),e}function P8(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function R8(e,{top:t,left:r,bottom:n,right:i}){return{x:P8(e.x,r,i),y:P8(e.y,t,n)}}function D8(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function N8(e,t){return{x:D8(e.x,t.x),y:D8(e.y,t.y)}}function M8(e,t){let r=.5,n=ar(e),i=ar(t);return i>n?r=Us(t.min,t.max-n,e.min):n>i&&(r=Us(e.min,e.max-i,t.min)),$n(0,1,r)}function k8(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Up=.35;function L8(e=Up){return e===!1?e=0:e===!0&&(e=Up),{x:I8(e,"left","right"),y:I8(e,"top","bottom")}}function I8(e,t,r){return{min:O8(e,t),max:O8(e,r)}}function O8(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var F8=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mu=()=>({x:F8(),y:F8()}),$8=()=>({min:0,max:0}),It=()=>({x:$8(),y:$8()});c();d();f();function wn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function Vp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function U8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function V8(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}c();d();f();c();d();f();function fw(e){return e===void 0||e===1}function Bp({scale:e,scaleX:t,scaleY:r}){return!fw(e)||!fw(t)||!fw(r)}function Pi(e){return Bp(e)||dw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function dw(e){return B8(e.x)||B8(e.y)}function B8(e){return e&&e!=="0%"}function pf(e,t,r){let n=e-r,i=t*n;return r+i}function j8(e,t,r,n,i){return i!==void 0&&(e=pf(e,i,n)),pf(e,r,n)+t}function hw(e,t=0,r=1,n,i){e.min=j8(e.min,t,r,n,i),e.max=j8(e.max,t,r,n,i)}function pw(e,{x:t,y:r}){hw(e.x,t.translate,t.scale,t.originPoint),hw(e.y,r.translate,r.scale,r.originPoint)}function K8(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&zs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,pw(e,u)),n&&Pi(a.latestValues)&&zs(e,a.latestValues));t.x=z8(t.x),t.y=z8(t.y)}function z8(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ri(e,t){e.min=e.min+t,e.max=e.max+t}function H8(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,o);hw(e,t[r],t[n],s,t.scale)}var xB=["x","scaleX","originX"],bB=["y","scaleY","originY"];function zs(e,t){H8(e.x,t,xB),H8(e.y,t,bB)}function mw(e,t){return Vp(V8(e.getBoundingClientRect(),t))}function q8(e,t,r){let n=mw(e,r),{scroll:i}=t;return i&&(ri(n.x,i.offset.x),ri(n.y,i.offset.y)),n}var EB=new WeakMap,zp=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=It(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(Qc(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kv(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),wn(v=>{var w,_;let D=this.getAxisMotionValue(v).get()||0;if(Pr.test(D)){let C=(_=(w=this.visualElement.projection)===null||w===void 0?void 0:w.layout)===null||_===void 0?void 0:_.layoutBox[v];C&&(D=ar(C)*(parseFloat(D)/100))}this.originPoint[v]=D}),y==null||y(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(Te.Drag,!0))},o=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:v}=u;if(p&&this.currentDirection===null){this.currentDirection=_B(v),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),y==null||y(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Au(t,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o==null||o(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Te.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!jp(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=A8(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=R8(n.layoutBox,t):this.constraints=!1,this.elastic=L8(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&wn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=k8(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ei(t))return!1;let n=t.current;sr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=q8(n,i.root,this.visualElement.getTransformPagePoint()),s=N8(i.layout.layoutBox,o);if(r){let a=r(U8(s));this.hasMutatedConstraints=!!a,a&&(s=Vp(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=wn(p=>{if(!jp(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let y=i?200:1e6,v=i?40:1e7,w=H(H({type:"inertia",velocity:n?t[p]:0,bounceStiffness:y,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,w)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Ou(t,n,0,r))}stopAnimation(){wn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){wn(r=>{let{drag:n}=this.getProps();if(!jp(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){let{min:s,max:a}=i.layout.layoutBox[r];o.set(t[r]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ei(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};wn(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=M8({min:l,max:l},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),wn(a=>{if(!jp(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(Pe(l,p,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;EB.set(this.visualElement,this);let r=this.visualElement.current,n=Ti(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();Ei(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();let a=ks(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(wn(h=>{let y=this.getAxisMotionValue(h);!y||(this.originPoint[h]+=l[h].translate,y.set(y.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Up,dragMomentum:a=!0}=t;return se(H({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function jp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function _B(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function W8(e){let{dragControls:t,visualElement:r}=e,n=xo(()=>new zp(r));(0,gw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,gw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var ku=Y(ue(),1);function G8({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,ku.useRef)(null),{transformPagePoint:a}=(0,ku.useContext)(tu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,ku.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Au(p,u,{transformPagePoint:a})}Ls(i,"pointerdown",o&&l),mu(()=>s.current&&s.current.end())}var Y8={pan:Un(G8),drag:Un(W8)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function yw(e){return typeof e=="string"&&e.startsWith("var(--")}var ww=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function SB(e){let t=ww.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var CB=4;function vw(e,t,r=1){sr(r<=CB,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=SB(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():yw(i)?vw(i,t,r+1):i}function X8(e,n,r){var t=de(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=H({},r)),e.values.forEach(o=>{let s=o.get();if(!yw(s))return;let a=vw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!yw(s))continue;let a=vw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var TB=new Set(["width","height","top","left","right","bottom","x","y"]),t4=e=>TB.has(e),PB=e=>Object.keys(e).some(t4),r4=(e,t)=>{e.set(t,!1),e.set(t)},Hp=e=>e===vn||e===pe,J8;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(J8||(J8={}));var Z8=(e,t)=>parseFloat(e.split(", ")[t]),Q8=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return Z8(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?Z8(o[1],e):0}},DB=new Set(["x","y","z"]),IB=su.filter(e=>!DB.has(e));function OB(e){let t=[];return IB.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var e4={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Q8(4,13),y:Q8(5,14)},AB=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{a[l]=e4[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);r4(p,a[l]),e[l]=e4[l](u,o)}),e},RB=(e,t,r={},n={})=>{t=H({},t),n=H({},n);let i=Object.keys(t).filter(t4),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Su(p),y=t[u],v;if(Ms(y)){let w=y.length,_=y[0]===null?1:0;p=y[_],h=Su(p);for(let D=_;D<w;D++)v?sr(Su(y[D])===v,"All keyframes must be of the same type"):(v=Su(y[D]),sr(v===h||Hp(h)&&Hp(v),"Keyframes must be of the same dimension as the current value"))}else v=Su(y);if(h!==v)if(Hp(h)&&Hp(v)){let w=l.get();typeof w=="string"&&l.set(parseFloat(w)),typeof y=="string"?t[u]=parseFloat(y):Array.isArray(y)&&v===pe&&(t[u]=y.map(parseFloat))}else(h==null?void 0:h.transform)&&(v==null?void 0:v.transform)&&(p===0||y===0)?p===0?l.set(v.transform(p)):t[u]=h.transform(y):(s||(o=OB(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],r4(l,y))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=AB(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),yn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function n4(e,t,r,n){return PB(t)?RB(e,t,r,n):{target:t,transitionEnd:n}}var i4=(e,t,r,n)=>{let i=X8(e,t,n);return t=i.target,n=i.transitionEnd,n4(e,t,r,n)};c();d();f();var u4=Y(ue(),1);c();d();f();c();d();f();var mf={current:null},Kp={current:!1};function o4(){if(Kp.current=!0,!!yn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}c();d();f();function s4(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(er(o))e.addValue(i,o),$s(n)&&n.add(i);else if(er(s))e.addValue(i,ei(o,{owner:e})),$s(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,ei(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var l4=Object.keys(wo),NB=l4.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qp=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=H({},s),this.initialValues=r.initial?H({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Rs(r),this.isVariantNode=op(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=de(p,["willChange"]);for(let h in l){let y=l[h];s[h]!==void 0&&er(y)&&(y.set(s[h],!1),$s(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),Kp.current||o4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),nn.update(this.notifyUpdate),nn.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,r){let n=Ur.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,i,o,s){let a=[];gu!=="production"&&n&&r&&sr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<NB;u++){let l=l4[u],{isEnabled:p,Component:h}=wo[l];p(t)&&h&&a.push((0,u4.createElement)(h,se(H({key:l},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:y}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&Ei(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:y})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<a4.length;r++){let n=a4[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=s4(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let o=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let i={};for(let o=0;o<MB;o++){let s=c4[o],a=this.props[s];(_i(a)||a===!1)&&(i[s]=a)}return i}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ei(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=hu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!er(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},c4=["initial",...Fp],MB=c4.length;var Lu=class extends qp{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:i},o){var a=s,{transition:t,transitionEnd:r}=a,n=de(a,["transition","transitionEnd"]);let u=kC(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){MC(this,n,u);let l=i4(this,n,u,r);r=l.transitionEnd,n=l.target}return H({transition:t,transitionEnd:r},n)}};function kB(e){return window.getComputedStyle(e)}var Wp=class extends Lu{readValueFromInstance(t,r){if(Ur.has(r)){let n=Eu(r);return n&&n.default||0}else{let n=kB(t),i=(cp(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return mw(t,r)}build(t,r,n,i){au(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return du(t)}renderInstance(t,r,n,i){pp(t,r,n,i)}};c();d();f();var Gp=class extends Lu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Ur.has(r)?((n=Eu(r))===null||n===void 0?void 0:n.default)||0:(r=mp.has(r)?r:fu(r),t.getAttribute(r))}measureInstanceViewportBox(){return It()}scrapeMotionValuesFromProps(t){return yp(t)}build(t,r,n,i){lu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){gp(t,r,n,i)}mount(t){this.isSVGTag=cu(t.tagName),super.mount(t)}};var f4=(e,t)=>iu(e)?new Gp(t,{enableHardwareAcceleration:!1}):new Wp(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var $u=Y(ue(),1);c();d();f();function d4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Fu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=d4(e,t.target.x),n=d4(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var h4="_$css",p4={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(ww,v=>(o.push(v),h4)));let s=Dr.parse(e);if(s.length>5)return n;let a=Dr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=Pe(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let y=a(s);if(i){let v=0;y=y.replace(h4,()=>{let w=o[v];return v++,w})}return y}};var xw=class extends $u.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;L5(LB),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(se(H({},o.options),{onExitComplete:()=>this.safeToRemove()}))),bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Ct.postRender(()=>{var a;!((a=s.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function m4(e){let[t,r]=_p(),n=(0,$u.useContext)(nu);return $u.default.createElement(xw,se(H({},e),{layoutGroup:n,switchLayoutGroup:(0,$u.useContext)(up),isPresent:t,safeToRemove:r}))}var LB={borderRadius:se(H({},Fu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Fu,borderTopRightRadius:Fu,borderBottomLeftRadius:Fu,borderBottomRightRadius:Fu,boxShadow:p4};var g4={measureLayout:m4};c();d();f();c();d();f();c();d();f();function y4(e,t,r={}){let n=er(e)?e:ei(e);return n.start(Ou("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var b4=["TopLeft","TopRight","BottomLeft","BottomRight"],FB=b4.length,v4=e=>typeof e=="string"?parseFloat(e):e,w4=e=>typeof e=="number"||pe.test(e);function E4(e,t,r,n,i,o){i?(e.opacity=Pe(0,r.opacity!==void 0?r.opacity:1,$B(n)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,UB(n))):o&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<FB;s++){let a=`border${b4[s]}Radius`,u=x4(t,a),l=x4(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||w4(u)===w4(l)?(e[a]=Math.max(Pe(v4(u),v4(l),n),0),(Pr.test(l)||Pr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Pe(t.rotate||0,r.rotate||0,n))}function x4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var $B=_4(0,.5,uf),UB=_4(.5,.95,Iu);function _4(e,t,r){return n=>n<e?0:n>t?1:r(Us(e,t,n))}c();d();f();function S4(e,t){e.min=t.min,e.max=t.max}function xn(e,t){S4(e.x,t.x),S4(e.y,t.y)}c();d();f();function C4(e,t,r,n,i){return e-=t,e=pf(e,1/r,n),i!==void 0&&(e=pf(e,1/i,n)),e}function VB(e,t=0,r=1,n=.5,i,o=e,s=e){if(Pr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,n);e===o&&(a-=t),e.min=C4(e.min,t,r,a,i),e.max=C4(e.max,t,r,a,i)}function T4(e,t,[r,n,i],o,s){VB(e,t[r],t[n],t[i],t.scale,o,s)}var BB=["x","scaleX","originX"],jB=["y","scaleY","originY"];function bw(e,t,r,n){T4(e.x,t,BB,r==null?void 0:r.x,n==null?void 0:n.x),T4(e.y,t,jB,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function P4(e){return e.translate===0&&e.scale===1}function Ew(e){return P4(e.x)&&P4(e.y)}function _w(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Sw(e){return ar(e.x)/ar(e.y)}c();d();f();var Yp=class{constructor(){this.members=[]}add(t){vu(this.members,t),t.scheduleRender()}remove(t){if(wu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){let o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();d();f();function Cw(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var D4=(e,t)=>e.depth-t.depth;var Xp=class{constructor(){this.children=[],this.isDirty=!1}add(t){vu(this.children,t),this.isDirty=!0}remove(t){wu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D4),this.isDirty=!1,this.children.forEach(t)}};var I4=["","X","Y","Z"],O4=1e3,zB=0;function Jp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=zB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(qB),this.nodes.forEach(YB),this.nodes.forEach(XB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new To),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let y,v=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=Mp(v,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEach(R4))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeTargetChanged:w,layout:_})=>{var D,C,I,P,R;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let U=(C=(D=this.options.transition)!==null&&D!==void 0?D:h.getDefaultTransition())!==null&&C!==void 0?C:tj,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=h.getProps(),$=!this.targetLayout||!_w(this.targetLayout,_)||w,G=!v&&w;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||G||v&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,G);let X=se(H({},Lp(U,"layout")),{onPlay:j,onComplete:F});h.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!v&&this.animationProgress===0&&R4(this),this.isLead()&&((R=(P=this.options).onExitComplete)===null||R===void 0||R.call(P));this.targetLayout=_})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,nn.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(JB),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){let w=this.path[v];w.shouldResetTransform=!0,w.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(A4);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(rj),this.potentialNodes.clear()),this.nodes.forEach(GB),this.nodes.forEach(HB),this.nodes.forEach(KB),this.clearAllSnapshots(),Cp.update(),Cp.preRender(),Cp.render())}clearAllSnapshots(){this.nodes.forEach(WB),this.sharedNodes.forEach(ZB)}scheduleUpdateProjection(){Ct.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(s=this.options.visualElement)===null||s===void 0||s.notify("LayoutMeasure",this.layout.layoutBox,a==null?void 0:a.layoutBox)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!Ew(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||Pi(this.latestValues)||h)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),nj(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return It();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(ri(a.x,u.offset.x),ri(a.y,u.offset.y)),a}removeElementScroll(s){let a=It();xn(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){xn(a,s);let{scroll:y}=this.root;y&&(ri(a.x,-y.offset.x),ri(a.y,-y.offset.y))}ri(a.x,p.offset.x),ri(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&zs(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Pi(p.latestValues)&&zs(u,p.latestValues)}return Pi(this.latestValues)&&zs(u,this.latestValues),u}removeTransform(s){var a;let u=It();xn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Pi(p.latestValues))continue;Bp(p.latestValues)&&p.updateSnapshot();let h=It(),y=p.measurePageBox();xn(h,y),bw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Pi(this.latestValues)&&bw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=se(H(H({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Nu(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?T8(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):xn(this.target,this.layout.layoutBox),pw(this.target,this.targetDelta)):xn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=It(),this.relativeTargetOrigin=It(),Nu(this.relativeTargetOrigin,this.target,p.target),xn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Bp(this.parent.latestValues)||dw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:y,layoutId:v}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||v))return;xn(this.layoutCorrected,this.layout.layoutBox),K8(this.layoutCorrected,this.treeScale,this.path,p);let{target:w}=l;if(!w)return;this.projectionDelta||(this.projectionDelta=Mu(),this.projectionDeltaWithTransform=Mu());let _=this.treeScale.x,D=this.treeScale.y,C=this.projectionTransform;Ru(this.projectionDelta,this.layoutCorrected,w,this.latestValues),this.projectionTransform=Cw(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==_||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},y=H({},this.latestValues),v=Mu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let w=It(),_=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),D=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,C=Boolean(_&&!D&&this.options.crossfade===!0&&!this.path.some(ej));this.animationProgress=0,this.mixTargetDelta=I=>{var P;let R=I/1e3;N4(v.x,s.x,R),N4(v.y,s.y,R),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(Nu(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),QB(this.relativeTarget,this.relativeTargetOrigin,w,R)),_&&(this.animationValues=y,E4(y,h,this.latestValues,R,C,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(nn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{bo.hasAnimatedSinceResize=!0,this.currentAnimation=y4(0,O4,se(H({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,O4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&L4(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||It();let h=ar(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let y=ar(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+y}xn(a,u),zs(a,p),Ru(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Yp),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<I4.length;p++){let h="rotate"+I4[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=pu(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){let D={};return this.options.layoutId&&(D.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,D.pointerEvents=pu(s.pointerEvents)||""),this.hasProjected&&!Pi(this.latestValues)&&(D.transform=h?h({},""):"none",this.hasProjected=!1),D}let v=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=Cw(this.projectionDeltaWithTransform,this.treeScale,v),h&&(p.transform=h(v,p.transform));let{x:w,y:_}=this.projectionDelta;p.transformOrigin=`${w.origin*100}% ${_.origin*100}% 0`,y.animationValues?p.opacity=y===this?(l=(u=v.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:p.opacity=y===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(let D in ou){if(v[D]===void 0)continue;let{correct:C,applyTo:I}=ou[D],P=C(v[D],y);if(I){let R=I.length;for(let U=0;U<R;U++)p[I[U]]=P}else p[D]=P}return this.options.layoutId&&(p.pointerEvents=y===this?pu(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(A4),this.root.sharedNodes.clear()}}}function HB(e){e.updateLayout()}function KB(e){var t,r,n;let i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=i.source!==e.layout.source;a==="size"?wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(w);w.min=o[v].min,w.max=w.min+_}):L4(a,i.layoutBox,o)&&wn(v=>{let w=u?i.measuredBox[v]:i.layoutBox[v],_=ar(o[v]);w.max=w.min+_});let l=Mu();Ru(l,o,i.layoutBox);let p=Mu();u?Ru(p,e.applyTransform(s,!0),i.measuredBox):Ru(p,o,i.layoutBox);let h=!Ew(l),y=!1;if(!e.resumeFrom){let v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){let{snapshot:w,layout:_}=v;if(w&&_){let D=It();Nu(D,i.layoutBox,w.layoutBox);let C=It();Nu(C,o,_.layoutBox),_w(D,C)||(y=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:y})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function qB(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function WB(e){e.clearSnapshot()}function A4(e){e.clearMeasurements()}function GB(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function R4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function YB(e){e.resolveTargetDelta()}function XB(e){e.calcProjection()}function JB(e){e.resetRotation()}function ZB(e){e.removeLeadSnapshot()}function N4(e,t,r){e.translate=Pe(t.translate,0,r),e.scale=Pe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function M4(e,t,r,n){e.min=Pe(t.min,r.min,n),e.max=Pe(t.max,r.max,n)}function QB(e,t,r,n){M4(e.x,t.x,r.x,n),M4(e.y,t.y,r.y,n)}function ej(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var tj={duration:.45,ease:[.4,0,.1,1]};function rj(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}let i=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function k4(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function nj(e){k4(e.x),k4(e.y)}function L4(e,t,r){return e==="position"||e==="preserve-aspect"&&!$p(Sw(t),Sw(r),.2)}c();d();f();var F4=Jp({attachResizeListener:(e,t)=>ks(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Tw={current:void 0},$4=Jp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tw.current){let e=new F4(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Tw.current=e}return Tw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var ij=H(H(H(H({},v8),EC),Y8),g4),zt=M5((e,t)=>oC(e,t,ij,f4,$4));c();d();f();var Di=Y(ue(),1),bn=Y(ue(),1);c();d();f();var gf=Y(ue(),1);c();d();f();var U4=Y(ue(),1);function Zp(){let e=(0,U4.useRef)(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function V4(){let e=Zp(),[t,r]=(0,gf.useState)(0),n=(0,gf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,gf.useCallback)(()=>Ct.postRender(n),[n]),t]}c();d();f();var yf=Y(ue(),1),vf=Y(ue(),1);c();d();f();var Uu=Y(ue(),1),Hs=Y(ue(),1),Pw=class extends Uu.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function B4({children:e,isPresent:t}){let r=(0,Hs.useId)(),n=(0,Hs.useRef)(null),i=(0,Hs.useRef)({width:0,height:0,top:0,left:0});return(0,Hs.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:u}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
14
+ `);let s=BV(t,r,i),a=dp.getSymbolSize(t),u=new AV(a);return LV(u,t),FV(u),$V(u,t),z1(u,r,0),t>=7&&UV(u,t),VV(u,s),isNaN(n)&&(n=H1.getBestMask(u,z1.bind(null,u,r))),H1.applyMask(n,u),z1(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}FC.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=B1.M,i,o;return typeof r<"u"&&(n=B1.from(r.errorCorrectionLevel,B1.M),i=fp.from(r.version),o=H1.from(r.maskPattern),r.toSJISFunc&&dp.setToSJISFunction(r.toSJISFunc)),zV(t,i,n,o)}});var q1=ee(Is=>{c();d();f();function UC(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Is.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:UC(t.color.dark||"#000000ff"),light:UC(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Is.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};Is.getImageWidth=function(t,r){let n=Is.getScale(t,r);return Math.floor((t+r.margin*2)*n)};Is.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=Is.getScale(i,n),a=Math.floor((i+n.margin*2)*s),u=n.margin*s,l=[n.color.light,n.color.dark];for(let p=0;p<a;p++)for(let h=0;h<a;h++){let g=(p*a+h)*4,w=n.color.light;if(p>=u&&h>=u&&p<a-u&&h<a-u){let v=Math.floor((p-u)/s),_=Math.floor((h-u)/s);w=l[o[v*i+_]?1:0]}t[g++]=w.r,t[g++]=w.g,t[g++]=w.b,t[g]=w.a}}});var VC=ee(hp=>{c();d();f();var W1=q1();function HV(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function KV(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}hp.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=KV()),i=W1.getOptions(i);let s=W1.getImageWidth(t.modules.size,i),a=o.getContext("2d"),u=a.createImageData(s,s);return W1.qrToImageData(u.data,t,i),HV(a,o,s),a.putImageData(u,0,0),o};hp.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=hp.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var zC=ee(jC=>{c();d();f();var qV=q1();function BC(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function G1(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function WV(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let u=Math.floor(a%t),l=Math.floor(a/t);!u&&!o&&(o=!0),e[a]?(s++,a>0&&u>0&&e[a-1]||(n+=o?G1("M",u+r,.5+l+r):G1("m",i,0),i=0,o=!1),u+1<t&&e[a+1]||(n+=G1("h",s),s=0)):i++}return n}jC.render=function(t,r,n){let i=qV.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,u=i.color.light.a?"<path "+BC(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+BC(i.color.dark,"stroke")+' d="'+WV(s,o,i.margin)+'"/>',p='viewBox="0 0 '+a+" "+a+'"',h=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",g='<svg xmlns="http://www.w3.org/2000/svg" '+h+p+' shape-rendering="crispEdges">'+u+l+`</svg>
15
+ `;return typeof n=="function"&&n(null,g),g}});var KC=ee(Yc=>{c();d();f();var GV=K5(),Y1=$C(),HC=VC(),YV=zC();function X1(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!GV())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let p=Y1.create(r,n);u(e(p,t,n))}catch(p){l(p)}})}try{let u=Y1.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Yc.create=Y1.create;Yc.toCanvas=X1.bind(null,HC.render);Yc.toDataURL=X1.bind(null,HC.renderToDataURL);Yc.toString=X1.bind(null,function(e,t,r){return YV.render(e,r)})});var ET=ee(tw=>{"use strict";c();d();f();Object.defineProperty(tw,"__esModule",{value:!0});function cB(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}tw.default=cB});var _T=ee(rw=>{"use strict";c();d();f();Object.defineProperty(rw,"__esModule",{value:!0});function fB(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var dB=fB(ET()),hB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pB=dB(function(e){return hB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});rw.default=pB});var K8=ee((Ppe,mm)=>{c();d();f();var x8,b8,E8,_8,S8,C8,T8,P8,D8,I8,A8,O8,R8,hm,Qw,N8,M8,k8,Hu,L8,F8,$8,U8,V8,B8,j8,z8,H8,pm;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof mm=="object"&&typeof mm.exports=="object"?e(r(t,r(mm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])};x8=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},b8=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},E8=function(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o},_8=function(n,i,o,s){var a=arguments.length,u=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(n,i,o,s);else for(var p=n.length-1;p>=0;p--)(l=n[p])&&(u=(a<3?l(u):a>3?l(i,o,u):l(i,o))||u);return a>3&&u&&Object.defineProperty(i,o,u),u},S8=function(n,i){return function(o,s){i(o,s,n)}},C8=function(n,i,o,s,a,u){function l(R){if(R!==void 0&&typeof R!="function")throw new TypeError("Function expected");return R}for(var p=s.kind,h=p==="getter"?"get":p==="setter"?"set":"value",g=!i&&n?s.static?n:n.prototype:null,w=i||(g?Object.getOwnPropertyDescriptor(g,s.name):{}),v,_=!1,D=o.length-1;D>=0;D--){var C={};for(var I in s)C[I]=I==="access"?{}:s[I];for(var I in s.access)C.access[I]=s.access[I];C.addInitializer=function(R){if(_)throw new TypeError("Cannot add initializers after decoration has completed");u.push(l(R||null))};var P=(0,o[D])(p==="accessor"?{get:w.get,set:w.set}:w[h],C);if(p==="accessor"){if(P===void 0)continue;if(P===null||typeof P!="object")throw new TypeError("Object expected");(v=l(P.get))&&(w.get=v),(v=l(P.set))&&(w.set=v),(v=l(P.init))&&a.push(v)}else(v=l(P))&&(p==="field"?a.push(v):w[h]=v)}g&&Object.defineProperty(g,s.name,w),_=!0},T8=function(n,i,o){for(var s=arguments.length>2,a=0;a<i.length;a++)o=s?i[a].call(n,o):i[a].call(n);return s?o:void 0},P8=function(n){return typeof n=="symbol"?n:"".concat(n)},D8=function(n,i,o){return typeof i=="symbol"&&(i=i.description?"[".concat(i.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:o?"".concat(o," ",i):i})},I8=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},A8=function(n,i,o,s){function a(u){return u instanceof o?u:new o(function(l){l(u)})}return new(o||(o=Promise))(function(u,l){function p(w){try{g(s.next(w))}catch(v){l(v)}}function h(w){try{g(s.throw(w))}catch(v){l(v)}}function g(w){w.done?u(w.value):a(w.value).then(p,h)}g((s=s.apply(n,i||[])).next())})},O8=function(n,i){var o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},s,a,u,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(g){return function(w){return h([g,w])}}function h(g){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,g[0]&&(o=0)),o;)try{if(s=1,a&&(u=g[0]&2?a.return:g[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,g[1])).done)return u;switch(a=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,a=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){o.label=g[1];break}if(g[0]===6&&o.label<u[1]){o.label=u[1],u=g;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(g);break}u[2]&&o.ops.pop(),o.trys.pop();continue}g=i.call(n,o)}catch(w){g=[6,w],a=0}finally{s=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},R8=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&pm(i,n,o)},pm=Object.create?function(n,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,a)}:function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]},hm=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],s=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Qw=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,u=[],l;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)u.push(a.value)}catch(p){l={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(l)throw l.error}}return u},N8=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Qw(arguments[i]));return n},M8=function(){for(var n=0,i=0,o=arguments.length;i<o;i++)n+=arguments[i].length;for(var s=Array(n),a=0,i=0;i<o;i++)for(var u=arguments[i],l=0,p=u.length;l<p;l++,a++)s[a]=u[l];return s},k8=function(n,i,o){if(o||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))},Hu=function(n){return this instanceof Hu?(this.v=n,this):new Hu(n)},L8=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,u=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(_){s[_]&&(a[_]=function(D){return new Promise(function(C,I){u.push([_,D,C,I])>1||p(_,D)})})}function p(_,D){try{h(s[_](D))}catch(C){v(u[0][3],C)}}function h(_){_.value instanceof Hu?Promise.resolve(_.value.v).then(g,w):v(u[0][2],_)}function g(_){p("next",_)}function w(_){p("throw",_)}function v(_,D){_(D),u.shift(),u.length&&p(u[0][0],u[0][1])}},F8=function(n){var i,o;return i={},s("next"),s("throw",function(a){throw a}),s("return"),i[Symbol.iterator]=function(){return this},i;function s(a,u){i[a]=n[a]?function(l){return(o=!o)?{value:Hu(n[a](l)),done:!1}:u?u(l):l}:u}},$8=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],o;return i?i.call(n):(n=typeof hm=="function"?hm(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(u){o[u]=n[u]&&function(l){return new Promise(function(p,h){l=n[u](l),a(p,h,l.done,l.value)})}}function a(u,l,p,h){Promise.resolve(h).then(function(g){u({value:g,done:p})},l)}},U8=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};V8=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var o in n)o!=="default"&&Object.prototype.hasOwnProperty.call(n,o)&&pm(i,n,o);return r(i,n),i},B8=function(n){return n&&n.__esModule?n:{default:n}},j8=function(n,i,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(n):s?s.value:i.get(n)},z8=function(n,i,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,o):a?a.value=o:i.set(n,o),o},H8=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",x8),e("__assign",b8),e("__rest",E8),e("__decorate",_8),e("__param",S8),e("__esDecorate",C8),e("__runInitializers",T8),e("__propKey",P8),e("__setFunctionName",D8),e("__metadata",I8),e("__awaiter",A8),e("__generator",O8),e("__exportStar",R8),e("__createBinding",pm),e("__values",hm),e("__read",Qw),e("__spread",N8),e("__spreadArrays",M8),e("__spreadArray",k8),e("__await",Hu),e("__asyncGenerator",L8),e("__asyncDelegator",F8),e("__asyncValues",$8),e("__makeTemplateObject",U8),e("__importStar",V8),e("__importDefault",B8),e("__classPrivateFieldGet",j8),e("__classPrivateFieldSet",z8),e("__classPrivateFieldIn",H8)})});var iI=ee((bme,nI)=>{"use strict";c();d();f();function Iz(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}nI.exports=Az;function Az(e,t,r){var n=r&&r.stringify||Iz,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++)s[a]=n(t[a]);return s.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",p=1-i,h=-1,g=e&&e.length||0,w=0;w<g;){if(e.charCodeAt(w)===37&&w+1<g){switch(h=h>-1?h:0,e.charCodeAt(w+1)){case 100:case 102:if(p>=u||t[p]==null)break;h<w&&(l+=e.slice(h,w)),l+=Number(t[p]),h=w+2,w++;break;case 105:if(p>=u||t[p]==null)break;h<w&&(l+=e.slice(h,w)),l+=Math.floor(Number(t[p])),h=w+2,w++;break;case 79:case 111:case 106:if(p>=u||t[p]===void 0)break;h<w&&(l+=e.slice(h,w));var v=typeof t[p];if(v==="string"){l+="'"+t[p]+"'",h=w+2,w++;break}if(v==="function"){l+=t[p].name||"<anonymous>",h=w+2,w++;break}l+=n(t[p]),h=w+2,w++;break;case 115:if(p>=u)break;h<w&&(l+=e.slice(h,w)),l+=String(t[p]),h=w+2,w++;break;case 37:h<w&&(l+=e.slice(h,w)),l+="%",h=w+2,w++,p--;break}++p}++w}return h===-1?e:(h<g&&(l+=e.slice(h)),l)}});var xm=ee((Eme,uI)=>{"use strict";c();d();f();var oI=iI();uI.exports=Qn;var xf=Vz().console||{},Oz={mapHttpRequest:vm,mapHttpResponse:vm,wrapRequestSerializer:ex,wrapResponseSerializer:ex,wrapErrorSerializer:ex,req:vm,res:vm,err:Lz};function Rz(e,t){return Array.isArray(e)?e.filter(function(n){return n!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function Qn(e){e=e||{},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");let r=e.browser.write||xf;e.browser.write&&(e.browser.asObject=!0);let n=e.serializers||{},i=Rz(e.browser.serialize,n),o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);let s=["error","fatal","warn","info","debug","trace"];typeof r=="function"&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),e.enabled===!1&&(e.level="silent");let a=e.level||"info",u=Object.create(r);u.log||(u.log=bf),Object.defineProperty(u,"levelVal",{get:p}),Object.defineProperty(u,"level",{get:h,set:g});let l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:s,timestamp:Fz(e)};u.levels=Qn.levels,u.level=a,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=bf,u.serializers=n,u._serialize=i,u._stdErrSerialize=o,u.child=w,t&&(u._logEvent=tx());function p(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function g(v){if(v!=="silent"&&!this.levels.values[v])throw Error("unknown level "+v);this._level=v,Ku(l,u,"error","log"),Ku(l,u,"fatal","error"),Ku(l,u,"warn","error"),Ku(l,u,"info","log"),Ku(l,u,"debug","log"),Ku(l,u,"trace","log")}function w(v,_){if(!v)throw new Error("missing bindings for child Pino");_=_||{},i&&v.serializers&&(_.serializers=v.serializers);let D=_.serializers;if(i&&D){var C=Object.assign({},n,D),I=e.browser.serialize===!0?Object.keys(C):i;delete v.serializers,wm([v],I,C,this._stdErrSerialize)}function P(R){this._childLevel=(R._childLevel|0)+1,this.error=qu(R,v,"error"),this.fatal=qu(R,v,"fatal"),this.warn=qu(R,v,"warn"),this.info=qu(R,v,"info"),this.debug=qu(R,v,"debug"),this.trace=qu(R,v,"trace"),C&&(this.serializers=C,this._serialize=I),t&&(this._logEvent=tx([].concat(R._logEvent.bindings,v)))}return P.prototype=this,new P(this)}return u}Qn.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};Qn.stdSerializers=Oz;Qn.stdTimeFunctions=Object.assign({},{nullTime:sI,epochTime:aI,unixTime:$z,isoTime:Uz});function Ku(e,t,r,n){let i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?bf:i[r]?i[r]:xf[r]||xf[n]||bf,Nz(e,t,r)}function Nz(e,t,r){!e.transmit&&t[r]===bf||(t[r]=function(n){return function(){let o=e.timestamp(),s=new Array(arguments.length),a=Object.getPrototypeOf&&Object.getPrototypeOf(this)===xf?xf:this;for(var u=0;u<s.length;u++)s[u]=arguments[u];if(e.serialize&&!e.asObject&&wm(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?n.call(a,Mz(this,r,s,o)):n.apply(a,s),e.transmit){let l=e.transmit.level||t.level,p=Qn.levels.values[l],h=Qn.levels.values[r];if(h<p)return;kz(this,{ts:o,methodLevel:r,methodValue:h,transmitLevel:l,transmitValue:Qn.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function Mz(e,t,r,n){e._serialize&&wm(r,e._serialize,e.serializers,e._stdErrSerialize);let i=r.slice(),o=i[0],s={};n&&(s.time=n),s.level=Qn.levels.values[t];let a=(e._childLevel|0)+1;if(a<1&&(a=1),o!==null&&typeof o=="object"){for(;a--&&typeof i[0]=="object";)Object.assign(s,i.shift());o=i.length?oI(i.shift(),i):void 0}else typeof o=="string"&&(o=oI(i.shift(),i));return o!==void 0&&(s.msg=o),s}function wm(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=Qn.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(let o in e[i])t&&t.indexOf(o)>-1&&o in r&&(e[i][o]=r[o](e[i][o]))}function qu(e,t,r){return function(){let n=new Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function kz(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,u=e._logEvent.bindings;wm(r,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=s,n(o,e._logEvent,a),e._logEvent=tx(u)}function tx(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function Lz(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)t[r]===void 0&&(t[r]=e[r]);return t}function Fz(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?sI:aI}function vm(){return{}}function ex(e){return e}function bf(){}function sI(){return!1}function aI(){return Date.now()}function $z(){return Math.round(Date.now()/1e3)}function Uz(){return new Date(Date.now()).toISOString()}function Vz(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}});var Do=ee((_me,rx)=>{"use strict";c();d();f();var Wu=typeof Reflect=="object"?Reflect:null,lI=Wu&&typeof Wu.apply=="function"?Wu.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},bm;Wu&&typeof Wu.ownKeys=="function"?bm=Wu.ownKeys:Object.getOwnPropertySymbols?bm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:bm=function(t){return Object.getOwnPropertyNames(t)};function Bz(e){console&&console.warn&&console.warn(e)}var fI=Number.isNaN||function(t){return t!==t};function Oe(){Oe.init.call(this)}rx.exports=Oe;rx.exports.once=Kz;Oe.EventEmitter=Oe;Oe.prototype._events=void 0;Oe.prototype._eventsCount=0;Oe.prototype._maxListeners=void 0;var cI=10;function Em(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Oe,"defaultMaxListeners",{enumerable:!0,get:function(){return cI},set:function(e){if(typeof e!="number"||e<0||fI(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");cI=e}});Oe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Oe.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||fI(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function dI(e){return e._maxListeners===void 0?Oe.defaultMaxListeners:e._maxListeners}Oe.prototype.getMaxListeners=function(){return dI(this)};Oe.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")lI(u,this,r);else for(var l=u.length,p=yI(u,l),n=0;n<l;++n)lI(p[n],this,r);return!0};function hI(e,t,r,n){var i,o,s;if(Em(r),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),s===void 0)s=o[t]=r,++e._eventsCount;else if(typeof s=="function"?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=dI(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,Bz(a)}return e}Oe.prototype.addListener=function(t,r){return hI(this,t,r,!1)};Oe.prototype.on=Oe.prototype.addListener;Oe.prototype.prependListener=function(t,r){return hI(this,t,r,!0)};function jz(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pI(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=jz.bind(n);return i.listener=r,n.wrapFn=i,i}Oe.prototype.once=function(t,r){return Em(r),this.on(t,pI(this,t,r)),this};Oe.prototype.prependOnceListener=function(t,r){return Em(r),this.prependListener(t,pI(this,t,r)),this};Oe.prototype.removeListener=function(t,r){var n,i,o,s,a;if(Em(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;o===0?n.shift():zz(n,o),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,a||r)}return this};Oe.prototype.off=Oe.prototype.removeListener;Oe.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function mI(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Hz(i):yI(i,i.length)}Oe.prototype.listeners=function(t){return mI(this,t,!0)};Oe.prototype.rawListeners=function(t){return mI(this,t,!1)};Oe.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):gI.call(e,t)};Oe.prototype.listenerCount=gI;function gI(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Oe.prototype.eventNames=function(){return this._eventsCount>0?bm(this._events):[]};function yI(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function zz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Hz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Kz(e,t){return new Promise(function(r,n){function i(s){e.removeListener(t,o),n(s)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}vI(e,t,o,{once:!0}),t!=="error"&&qz(e,i,{once:!0})})}function qz(e,t,r){typeof e.on=="function"&&vI(e,"error",t,r)}function vI(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var ix=ee((Sme,Sm)=>{c();d();f();var wI,xI,bI,EI,_I,SI,CI,TI,PI,_m,nx,DI,II,Gu,AI,OI,RI,NI,MI,kI,LI,FI,$I;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Sm=="object"&&typeof Sm.exports=="object"?e(r(t,r(Sm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};wI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},xI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},bI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},EI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},_I=function(r,n){return function(i,o){n(i,o,r)}},SI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},CI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},TI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},$I=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},PI=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},_m=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},nx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},DI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(nx(arguments[n]));return r},II=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Gu=function(r){return this instanceof Gu?(this.v=r,this):new Gu(r)},AI=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Gu?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},OI=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Gu(r[s](u)),done:s==="return"}:a?a(u):u}:a}},RI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof _m=="function"?_m(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},NI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},MI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},kI=function(r){return r&&r.__esModule?r:{default:r}},LI=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},FI=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",wI),e("__assign",xI),e("__rest",bI),e("__decorate",EI),e("__param",_I),e("__metadata",SI),e("__awaiter",CI),e("__generator",TI),e("__exportStar",PI),e("__createBinding",$I),e("__values",_m),e("__read",nx),e("__spread",DI),e("__spreadArrays",II),e("__await",Gu),e("__asyncGenerator",AI),e("__asyncDelegator",OI),e("__asyncValues",RI),e("__makeTemplateObject",NI),e("__importStar",MI),e("__importDefault",kI),e("__classPrivateFieldGet",LI),e("__classPrivateFieldSet",FI)})});var ox=ee(Cm=>{"use strict";c();d();f();Object.defineProperty(Cm,"__esModule",{value:!0});function Wz(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}Cm.safeJsonParse=Wz;function Gz(e){return typeof e=="string"?e:JSON.stringify(e,(t,r)=>typeof r>"u"?null:r)}Cm.safeJsonStringify=Gz});var UI=ee((Tme,Tm)=>{"use strict";c();d();f();(function(){"use strict";let e;function t(){}e=t,e.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},e.prototype.setItem=function(r,n){this[r]=String(n)},e.prototype.removeItem=function(r){delete this[r]},e.prototype.clear=function(){let r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},e.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof globalThis<"u"&&globalThis.localStorage?Tm.exports=globalThis.localStorage:typeof window<"u"&&window.localStorage?Tm.exports=window.localStorage:Tm.exports=new t})()});var VI=ee(Pm=>{"use strict";c();d();f();Object.defineProperty(Pm,"__esModule",{value:!0});Pm.IKeyValueStorage=void 0;var sx=class{};Pm.IKeyValueStorage=sx});var BI=ee(Dm=>{"use strict";c();d();f();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.parseEntry=void 0;var Yz=ox();function Xz(e){var t;return[e[0],Yz.safeJsonParse((t=e[1])!==null&&t!==void 0?t:"")]}Dm.parseEntry=Xz});var zI=ee(Im=>{"use strict";c();d();f();Object.defineProperty(Im,"__esModule",{value:!0});var jI=ix();jI.__exportStar(VI(),Im);jI.__exportStar(BI(),Im)});var KI=ee(Ef=>{"use strict";c();d();f();Object.defineProperty(Ef,"__esModule",{value:!0});Ef.KeyValueStorage=void 0;var Yu=ix(),HI=ox(),Jz=Yu.__importDefault(UI()),Qz=zI(),Am=class{constructor(){this.localStorage=Jz.default}getKeys(){return Yu.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return Yu.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(Qz.parseEntry)})}getItem(t){return Yu.__awaiter(this,void 0,void 0,function*(){let r=this.localStorage.getItem(t);if(r!==null)return HI.safeJsonParse(r)})}setItem(t,r){return Yu.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(t,HI.safeJsonStringify(r))})}removeItem(t){return Yu.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}};Ef.KeyValueStorage=Am;Ef.default=Am});var _f=ee((Ome,Rm)=>{c();d();f();var qI,WI,GI,YI,XI,JI,QI,ZI,e4,Om,ax,t4,r4,Xu,n4,i4,o4,s4,a4,u4,l4,c4,f4;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Rm=="object"&&typeof Rm.exports=="object"?e(r(t,r(Rm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};qI=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},WI=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},GI=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},YI=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},XI=function(r,n){return function(i,o){n(i,o,r)}},JI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},QI=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},ZI=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},f4=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},e4=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Om=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},ax=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},t4=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ax(arguments[n]));return r},r4=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Xu=function(r){return this instanceof Xu?(this.v=r,this):new Xu(r)},n4=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Xu?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},i4=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Xu(r[s](u)),done:s==="return"}:a?a(u):u}:a}},o4=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Om=="function"?Om(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},s4=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},a4=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},u4=function(r){return r&&r.__esModule?r:{default:r}},l4=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},c4=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",qI),e("__assign",WI),e("__rest",GI),e("__decorate",YI),e("__param",XI),e("__metadata",JI),e("__awaiter",QI),e("__generator",ZI),e("__exportStar",e4),e("__createBinding",f4),e("__values",Om),e("__read",ax),e("__spread",t4),e("__spreadArrays",r4),e("__await",Xu),e("__asyncGenerator",n4),e("__asyncDelegator",i4),e("__asyncValues",o4),e("__makeTemplateObject",s4),e("__importStar",a4),e("__importDefault",u4),e("__classPrivateFieldGet",l4),e("__classPrivateFieldSet",c4)})});var Sf=ee((Rme,Mm)=>{c();d();f();var d4,h4,p4,m4,g4,y4,v4,w4,x4,Nm,ux,b4,E4,Ju,_4,S4,C4,T4,P4,D4,I4,A4,O4;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Mm=="object"&&typeof Mm.exports=="object"?e(r(t,r(Mm.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};d4=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},h4=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},p4=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},m4=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},g4=function(r,n){return function(i,o){n(i,o,r)}},y4=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},v4=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},w4=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},O4=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},x4=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Nm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},ux=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},b4=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(ux(arguments[n]));return r},E4=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Ju=function(r){return this instanceof Ju?(this.v=r,this):new Ju(r)},_4=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Ju?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},S4=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Ju(r[s](u)),done:s==="return"}:a?a(u):u}:a}},C4=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Nm=="function"?Nm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},T4=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},P4=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},D4=function(r){return r&&r.__esModule?r:{default:r}},I4=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},A4=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",d4),e("__assign",h4),e("__rest",p4),e("__decorate",m4),e("__param",g4),e("__metadata",y4),e("__awaiter",v4),e("__generator",w4),e("__exportStar",x4),e("__createBinding",O4),e("__values",Nm),e("__read",ux),e("__spread",b4),e("__spreadArrays",E4),e("__await",Ju),e("__asyncGenerator",_4),e("__asyncDelegator",S4),e("__asyncValues",C4),e("__makeTemplateObject",T4),e("__importStar",P4),e("__importDefault",D4),e("__classPrivateFieldGet",I4),e("__classPrivateFieldSet",A4)})});var R4=ee(km=>{"use strict";c();d();f();Object.defineProperty(km,"__esModule",{value:!0});km.delay=void 0;function Zz(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}km.delay=Zz});var N4=ee(Qu=>{"use strict";c();d();f();Object.defineProperty(Qu,"__esModule",{value:!0});Qu.ONE_THOUSAND=Qu.ONE_HUNDRED=void 0;Qu.ONE_HUNDRED=100;Qu.ONE_THOUSAND=1e3});var M4=ee(le=>{"use strict";c();d();f();Object.defineProperty(le,"__esModule",{value:!0});le.ONE_YEAR=le.FOUR_WEEKS=le.THREE_WEEKS=le.TWO_WEEKS=le.ONE_WEEK=le.THIRTY_DAYS=le.SEVEN_DAYS=le.FIVE_DAYS=le.THREE_DAYS=le.ONE_DAY=le.TWENTY_FOUR_HOURS=le.TWELVE_HOURS=le.SIX_HOURS=le.THREE_HOURS=le.ONE_HOUR=le.SIXTY_MINUTES=le.THIRTY_MINUTES=le.TEN_MINUTES=le.FIVE_MINUTES=le.ONE_MINUTE=le.SIXTY_SECONDS=le.THIRTY_SECONDS=le.TEN_SECONDS=le.FIVE_SECONDS=le.ONE_SECOND=void 0;le.ONE_SECOND=1;le.FIVE_SECONDS=5;le.TEN_SECONDS=10;le.THIRTY_SECONDS=30;le.SIXTY_SECONDS=60;le.ONE_MINUTE=le.SIXTY_SECONDS;le.FIVE_MINUTES=le.ONE_MINUTE*5;le.TEN_MINUTES=le.ONE_MINUTE*10;le.THIRTY_MINUTES=le.ONE_MINUTE*30;le.SIXTY_MINUTES=le.ONE_MINUTE*60;le.ONE_HOUR=le.SIXTY_MINUTES;le.THREE_HOURS=le.ONE_HOUR*3;le.SIX_HOURS=le.ONE_HOUR*6;le.TWELVE_HOURS=le.ONE_HOUR*12;le.TWENTY_FOUR_HOURS=le.ONE_HOUR*24;le.ONE_DAY=le.TWENTY_FOUR_HOURS;le.THREE_DAYS=le.ONE_DAY*3;le.FIVE_DAYS=le.ONE_DAY*5;le.SEVEN_DAYS=le.ONE_DAY*7;le.THIRTY_DAYS=le.ONE_DAY*30;le.ONE_WEEK=le.SEVEN_DAYS;le.TWO_WEEKS=le.ONE_WEEK*2;le.THREE_WEEKS=le.ONE_WEEK*3;le.FOUR_WEEKS=le.ONE_WEEK*4;le.ONE_YEAR=le.ONE_DAY*365});var lx=ee(Lm=>{"use strict";c();d();f();Object.defineProperty(Lm,"__esModule",{value:!0});var k4=Sf();k4.__exportStar(N4(),Lm);k4.__exportStar(M4(),Lm)});var F4=ee(Zu=>{"use strict";c();d();f();Object.defineProperty(Zu,"__esModule",{value:!0});Zu.fromMiliseconds=Zu.toMiliseconds=void 0;var L4=lx();function eH(e){return e*L4.ONE_THOUSAND}Zu.toMiliseconds=eH;function tH(e){return Math.floor(e/L4.ONE_THOUSAND)}Zu.fromMiliseconds=tH});var U4=ee(Fm=>{"use strict";c();d();f();Object.defineProperty(Fm,"__esModule",{value:!0});var $4=Sf();$4.__exportStar(R4(),Fm);$4.__exportStar(F4(),Fm)});var V4=ee(Cf=>{"use strict";c();d();f();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.Watch=void 0;var $m=class{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){let r=this.get(t);if(typeof r.elapsed<"u")throw new Error(`Watch already stopped for label: ${t}`);let n=Date.now()-r.started;this.timestamps.set(t,{started:r.started,elapsed:n})}get(t){let r=this.timestamps.get(t);if(typeof r>"u")throw new Error(`No timestamp found for label: ${t}`);return r}elapsed(t){let r=this.get(t);return r.elapsed||Date.now()-r.started}};Cf.Watch=$m;Cf.default=$m});var B4=ee(Um=>{"use strict";c();d();f();Object.defineProperty(Um,"__esModule",{value:!0});Um.IWatch=void 0;var cx=class{};Um.IWatch=cx});var j4=ee(fx=>{"use strict";c();d();f();Object.defineProperty(fx,"__esModule",{value:!0});var rH=Sf();rH.__exportStar(B4(),fx)});var Ti=ee(el=>{"use strict";c();d();f();Object.defineProperty(el,"__esModule",{value:!0});var Vm=Sf();Vm.__exportStar(U4(),el);Vm.__exportStar(V4(),el);Vm.__exportStar(j4(),el);Vm.__exportStar(lx(),el)});var Ln,z4=pa(()=>{c();d();f();Ln=class{}});var H4={};ur(H4,{IEvents:()=>Ln});var Bm=pa(()=>{c();d();f();z4()});var K4=ee(jm=>{"use strict";c();d();f();Object.defineProperty(jm,"__esModule",{value:!0});jm.IHeartBeat=void 0;var nH=(Bm(),v_(H4)),dx=class extends nH.IEvents{constructor(t){super()}};jm.IHeartBeat=dx});var px=ee(hx=>{"use strict";c();d();f();Object.defineProperty(hx,"__esModule",{value:!0});var iH=_f();iH.__exportStar(K4(),hx)});var q4=ee(tl=>{"use strict";c();d();f();Object.defineProperty(tl,"__esModule",{value:!0});tl.HEARTBEAT_EVENTS=tl.HEARTBEAT_INTERVAL=void 0;var oH=Ti();tl.HEARTBEAT_INTERVAL=oH.FIVE_SECONDS;tl.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var gx=ee(mx=>{"use strict";c();d();f();Object.defineProperty(mx,"__esModule",{value:!0});var sH=_f();sH.__exportStar(q4(),mx)});var W4=ee(zm=>{"use strict";c();d();f();Object.defineProperty(zm,"__esModule",{value:!0});zm.HeartBeat=void 0;var yx=_f(),aH=Do(),uH=Ti(),lH=px(),vx=gx(),Tf=class extends lH.IHeartBeat{constructor(t){super(t),this.events=new aH.EventEmitter,this.interval=vx.HEARTBEAT_INTERVAL,this.interval=(t==null?void 0:t.interval)||vx.HEARTBEAT_INTERVAL}static init(t){return yx.__awaiter(this,void 0,void 0,function*(){let r=new Tf(t);return yield r.init(),r})}init(){return yx.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}initialize(){return yx.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),uH.toMiliseconds(this.interval))})}pulse(){this.events.emit(vx.HEARTBEAT_EVENTS.pulse)}};zm.HeartBeat=Tf});var G4=ee(Pf=>{"use strict";c();d();f();Object.defineProperty(Pf,"__esModule",{value:!0});var wx=_f();wx.__exportStar(W4(),Pf);wx.__exportStar(px(),Pf);wx.__exportStar(gx(),Pf)});var mA=ee((Jme,Km)=>{c();d();f();var Y4,X4,J4,Q4,Z4,eA,tA,rA,nA,Hm,xx,iA,oA,rl,sA,aA,uA,lA,cA,fA,dA,hA,pA;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof Km=="object"&&typeof Km.exports=="object"?e(r(t,r(Km.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};Y4=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},X4=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},J4=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},Q4=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},Z4=function(r,n){return function(i,o){n(i,o,r)}},eA=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},tA=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},rA=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},pA=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},nA=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Hm=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},xx=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},iA=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(xx(arguments[n]));return r},oA=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},rl=function(r){return this instanceof rl?(this.v=r,this):new rl(r)},sA=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof rl?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},aA=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:rl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},uA=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Hm=="function"?Hm(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},lA=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},cA=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},fA=function(r){return r&&r.__esModule?r:{default:r}},dA=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},hA=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",Y4),e("__assign",X4),e("__rest",J4),e("__decorate",Q4),e("__param",Z4),e("__metadata",eA),e("__awaiter",tA),e("__generator",rA),e("__exportStar",nA),e("__createBinding",pA),e("__values",Hm),e("__read",xx),e("__spread",iA),e("__spreadArrays",oA),e("__await",rl),e("__asyncGenerator",sA),e("__asyncDelegator",aA),e("__asyncValues",uA),e("__makeTemplateObject",lA),e("__importStar",cA),e("__importDefault",fA),e("__classPrivateFieldGet",dA),e("__classPrivateFieldSet",hA)})});var bx=ee(nl=>{"use strict";c();d();f();Object.defineProperty(nl,"__esModule",{value:!0});nl.PINO_CUSTOM_CONTEXT_KEY=nl.PINO_LOGGER_DEFAULTS=void 0;nl.PINO_LOGGER_DEFAULTS={level:"info"};nl.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var xA=ee($r=>{"use strict";c();d();f();Object.defineProperty($r,"__esModule",{value:!0});$r.generateChildLogger=$r.formatChildLoggerContext=$r.getLoggerContext=$r.setBrowserLoggerContext=$r.getBrowserLoggerContext=$r.getDefaultLoggerOptions=void 0;var il=bx();function cH(e){return Object.assign(Object.assign({},e),{level:(e==null?void 0:e.level)||il.PINO_LOGGER_DEFAULTS.level})}$r.getDefaultLoggerOptions=cH;function gA(e,t=il.PINO_CUSTOM_CONTEXT_KEY){return e[t]||""}$r.getBrowserLoggerContext=gA;function yA(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){return e[r]=t,e}$r.setBrowserLoggerContext=yA;function vA(e,t=il.PINO_CUSTOM_CONTEXT_KEY){let r="";return typeof e.bindings>"u"?r=gA(e,t):r=e.bindings().context||"",r}$r.getLoggerContext=vA;function wA(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){let n=vA(e,r);return n.trim()?`${n}/${t}`:t}$r.formatChildLoggerContext=wA;function fH(e,t,r=il.PINO_CUSTOM_CONTEXT_KEY){let n=wA(e,t,r),i=e.child({context:n});return yA(i,n,r)}$r.generateChildLogger=fH});var _x=ee(ol=>{"use strict";c();d();f();Object.defineProperty(ol,"__esModule",{value:!0});ol.pino=void 0;var Ex=mA(),dH=Ex.__importDefault(xm());Object.defineProperty(ol,"pino",{enumerable:!0,get:function(){return dH.default}});Ex.__exportStar(bx(),ol);Ex.__exportStar(xA(),ol)});var _A=ee(e0=>{"use strict";c();d();f();Object.defineProperty(e0,"__esModule",{value:!0});e0.BrowserRandomSource=void 0;var EA=65536,Sx=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let t=typeof self<"u"?self.crypto||self.msCrypto:null;t&&t.getRandomValues!==void 0&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let r=new Uint8Array(t);for(let n=0;n<r.length;n+=EA)this._crypto.getRandomValues(r.subarray(n,n+Math.min(r.length-n,EA)));return r}};e0.BrowserRandomSource=Sx});var vn=ee(Cx=>{"use strict";c();d();f();Object.defineProperty(Cx,"__esModule",{value:!0});function hH(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Cx.wipe=hH});var SA=ee(()=>{c();d();f()});var CA=ee(t0=>{"use strict";c();d();f();Object.defineProperty(t0,"__esModule",{value:!0});t0.NodeRandomSource=void 0;var pH=vn(),Tx=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof y_<"u"){let t=SA();t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let r=this._crypto.randomBytes(t);if(r.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(t);for(let i=0;i<n.length;i++)n[i]=r[i];return(0,pH.wipe)(r),n}};t0.NodeRandomSource=Tx});var TA=ee(r0=>{"use strict";c();d();f();Object.defineProperty(r0,"__esModule",{value:!0});r0.SystemRandomSource=void 0;var mH=_A(),gH=CA(),Px=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new mH.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new gH.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}};r0.SystemRandomSource=Px});var PA=ee(Qr=>{"use strict";c();d();f();Object.defineProperty(Qr,"__esModule",{value:!0});function yH(e,t){var r=e>>>16&65535,n=e&65535,i=t>>>16&65535,o=t&65535;return n*o+(r*o+n*i<<16>>>0)|0}Qr.mul=Math.imul||yH;function vH(e,t){return e+t|0}Qr.add=vH;function wH(e,t){return e-t|0}Qr.sub=wH;function xH(e,t){return e<<t|e>>>32-t}Qr.rotl=xH;function bH(e,t){return e<<32-t|e>>>t}Qr.rotr=bH;function EH(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}Qr.isInteger=Number.isInteger||EH;Qr.MAX_SAFE_INTEGER=9007199254740991;Qr.isSafeInteger=function(e){return Qr.isInteger(e)&&e>=-Qr.MAX_SAFE_INTEGER&&e<=Qr.MAX_SAFE_INTEGER}});var al=ee(we=>{"use strict";c();d();f();Object.defineProperty(we,"__esModule",{value:!0});var DA=PA();function _H(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}we.readInt16BE=_H;function SH(e,t){return t===void 0&&(t=0),(e[t+0]<<8|e[t+1])>>>0}we.readUint16BE=SH;function CH(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])<<16>>16}we.readInt16LE=CH;function TH(e,t){return t===void 0&&(t=0),(e[t+1]<<8|e[t])>>>0}we.readUint16LE=TH;function IA(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}we.writeUint16BE=IA;we.writeInt16BE=IA;function AA(e,t,r){return t===void 0&&(t=new Uint8Array(2)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}we.writeUint16LE=AA;we.writeInt16LE=AA;function Dx(e,t){return t===void 0&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}we.readInt32BE=Dx;function Ix(e,t){return t===void 0&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}we.readUint32BE=Ix;function Ax(e,t){return t===void 0&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}we.readInt32LE=Ax;function Ox(e,t){return t===void 0&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}we.readUint32LE=Ox;function n0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}we.writeUint32BE=n0;we.writeInt32BE=n0;function i0(e,t,r){return t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}we.writeUint32LE=i0;we.writeInt32LE=i0;function PH(e,t){t===void 0&&(t=0);var r=Dx(e,t),n=Dx(e,t+4);return r*4294967296+n-(n>>31)*4294967296}we.readInt64BE=PH;function DH(e,t){t===void 0&&(t=0);var r=Ix(e,t),n=Ix(e,t+4);return r*4294967296+n}we.readUint64BE=DH;function IH(e,t){t===void 0&&(t=0);var r=Ax(e,t),n=Ax(e,t+4);return n*4294967296+r-(r>>31)*4294967296}we.readInt64LE=IH;function AH(e,t){t===void 0&&(t=0);var r=Ox(e,t),n=Ox(e,t+4);return n*4294967296+r}we.readUint64LE=AH;function OA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),n0(e/4294967296>>>0,t,r),n0(e>>>0,t,r+4),t}we.writeUint64BE=OA;we.writeInt64BE=OA;function RA(e,t,r){return t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0),i0(e>>>0,t,r),i0(e/4294967296>>>0,t,r+4),t}we.writeUint64LE=RA;we.writeInt64LE=RA;function OH(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n}we.readUintBE=OH;function RH(e,t,r){if(r===void 0&&(r=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n}we.readUintLE=RH;function NH(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!DA.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var i=1,o=e/8+n-1;o>=n;o--)r[o]=t/i&255,i*=256;return r}we.writeUintBE=NH;function MH(e,t,r,n){if(r===void 0&&(r=new Uint8Array(e/8)),n===void 0&&(n=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!DA.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=n;o<n+e/8;o++)r[o]=t/i&255,i*=256;return r}we.writeUintLE=MH;function kH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t)}we.readFloat32BE=kH;function LH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat32(t,!0)}we.readFloat32LE=LH;function FH(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t)}we.readFloat64BE=FH;function $H(e,t){t===void 0&&(t=0);var r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getFloat64(t,!0)}we.readFloat64LE=$H;function UH(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e),t}we.writeFloat32BE=UH;function VH(e,t,r){t===void 0&&(t=new Uint8Array(4)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat32(r,e,!0),t}we.writeFloat32LE=VH;function BH(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e),t}we.writeFloat64BE=BH;function jH(e,t,r){t===void 0&&(t=new Uint8Array(8)),r===void 0&&(r=0);var n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.setFloat64(r,e,!0),t}we.writeFloat64LE=jH});var Hs=ee(yr=>{"use strict";c();d();f();Object.defineProperty(yr,"__esModule",{value:!0});yr.randomStringForEntropy=yr.randomString=yr.randomUint32=yr.randomBytes=yr.defaultRandomSource=void 0;var zH=TA(),HH=al(),NA=vn();yr.defaultRandomSource=new zH.SystemRandomSource;function Rx(e,t=yr.defaultRandomSource){return t.randomBytes(e)}yr.randomBytes=Rx;function KH(e=yr.defaultRandomSource){let t=Rx(4,e),r=(0,HH.readUint32LE)(t);return(0,NA.wipe)(t),r}yr.randomUint32=KH;var MA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function kA(e,t=MA,r=yr.defaultRandomSource){if(t.length<2)throw new Error("randomString charset is too short");if(t.length>256)throw new Error("randomString charset is too long");let n="",i=t.length,o=256-256%i;for(;e>0;){let s=Rx(Math.ceil(e*256/o),r);for(let a=0;a<s.length&&e>0;a++){let u=s[a];u<o&&(n+=t.charAt(u%i),e--)}(0,NA.wipe)(s)}return n}yr.randomString=kA;function qH(e,t=MA,r=yr.defaultRandomSource){let n=Math.ceil(e/(Math.log(t.length)/Math.LN2));return kA(n,t,r)}yr.randomStringForEntropy=qH});var $A=ee(Pi=>{"use strict";c();d();f();Object.defineProperty(Pi,"__esModule",{value:!0});var ll=al(),ul=vn();Pi.DIGEST_LENGTH=64;Pi.BLOCK_SIZE=128;var FA=function(){function e(){this.digestLength=Pi.DIGEST_LENGTH,this.blockSize=Pi.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){ul.wipe(this._buffer),ul.wipe(this._tempHi),ul.wipe(this._tempLo),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<Pi.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(Nx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=Nx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%128<112?128:256;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;ll.writeUint32BE(i,this._buffer,s-8),ll.writeUint32BE(o,this._buffer,s-4),Nx(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/8;a++)ll.writeUint32BE(this._stateHi[a],t,a*8),ll.writeUint32BE(this._stateLo[a],t,a*8+4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){ul.wipe(t.stateHi),ul.wipe(t.stateLo),t.buffer&&ul.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Pi.SHA512=FA;var LA=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function Nx(e,t,r,n,i,o,s){for(var a=r[0],u=r[1],l=r[2],p=r[3],h=r[4],g=r[5],w=r[6],v=r[7],_=n[0],D=n[1],C=n[2],I=n[3],P=n[4],R=n[5],U=n[6],j=n[7],F,$,G,X,W,J,N,m;s>=128;){for(var E=0;E<16;E++){var A=8*E+o;e[E]=ll.readUint32BE(i,A),t[E]=ll.readUint32BE(i,A+4)}for(var E=0;E<80;E++){var O=a,M=u,V=l,B=p,k=h,b=g,L=w,Q=v,T=_,z=D,H=C,q=I,Z=P,ie=R,re=U,te=j;if(F=v,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(h>>>14|P<<32-14)^(h>>>18|P<<32-18)^(P>>>41-32|h<<32-(41-32)),$=(P>>>14|h<<32-14)^(P>>>18|h<<32-18)^(h>>>41-32|P<<32-(41-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=h&g^~h&w,$=P&R^~P&U,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=LA[E*2],$=LA[E*2+1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=e[E%16],$=t[E%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,G=N&65535|m<<16,X=W&65535|J<<16,F=G,$=X,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=(a>>>28|_<<32-28)^(_>>>34-32|a<<32-(34-32))^(_>>>39-32|a<<32-(39-32)),$=(_>>>28|a<<32-28)^(a>>>34-32|_<<32-(34-32))^(a>>>39-32|_<<32-(39-32)),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,F=a&u^a&l^u&l,$=_&D^_&C^D&C,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,Q=N&65535|m<<16,te=W&65535|J<<16,F=B,$=q,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=G,$=X,W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,B=N&65535|m<<16,q=W&65535|J<<16,u=O,l=M,p=V,h=B,g=k,w=b,v=L,a=Q,D=T,C=z,I=H,P=q,R=Z,U=ie,j=re,_=te,E%16===15)for(var A=0;A<16;A++)F=e[A],$=t[A],W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=e[(A+9)%16],$=t[(A+9)%16],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(A+1)%16],X=t[(A+1)%16],F=(G>>>1|X<<32-1)^(G>>>8|X<<32-8)^G>>>7,$=(X>>>1|G<<32-1)^(X>>>8|G<<32-8)^(X>>>7|G<<32-7),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,G=e[(A+14)%16],X=t[(A+14)%16],F=(G>>>19|X<<32-19)^(X>>>61-32|G<<32-(61-32))^G>>>6,$=(X>>>19|G<<32-19)^(G>>>61-32|X<<32-(61-32))^(X>>>6|G<<32-6),W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,e[A]=N&65535|m<<16,t[A]=W&65535|J<<16}F=a,$=_,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[0],$=n[0],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[0]=a=N&65535|m<<16,n[0]=_=W&65535|J<<16,F=u,$=D,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[1],$=n[1],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[1]=u=N&65535|m<<16,n[1]=D=W&65535|J<<16,F=l,$=C,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[2],$=n[2],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[2]=l=N&65535|m<<16,n[2]=C=W&65535|J<<16,F=p,$=I,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[3],$=n[3],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[3]=p=N&65535|m<<16,n[3]=I=W&65535|J<<16,F=h,$=P,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[4],$=n[4],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[4]=h=N&65535|m<<16,n[4]=P=W&65535|J<<16,F=g,$=R,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[5],$=n[5],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[5]=g=N&65535|m<<16,n[5]=R=W&65535|J<<16,F=w,$=U,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[6],$=n[6],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[6]=w=N&65535|m<<16,n[6]=U=W&65535|J<<16,F=v,$=j,W=$&65535,J=$>>>16,N=F&65535,m=F>>>16,F=r[7],$=n[7],W+=$&65535,J+=$>>>16,N+=F&65535,m+=F>>>16,J+=W>>>16,N+=J>>>16,m+=N>>>16,r[7]=v=N&65535|m<<16,n[7]=j=W&65535|J<<16,o+=128,s-=128}return o}function WH(e){var t=new FA;t.update(e);var r=t.digest();return t.clean(),r}Pi.hash=WH});var QA=ee(Ie=>{"use strict";c();d();f();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.convertSecretKeyToX25519=Ie.convertPublicKeyToX25519=Ie.verify=Ie.sign=Ie.extractPublicKeyFromSecretKey=Ie.generateKeyPair=Ie.generateKeyPairFromSeed=Ie.SEED_LENGTH=Ie.SECRET_KEY_LENGTH=Ie.PUBLIC_KEY_LENGTH=Ie.SIGNATURE_LENGTH=void 0;var GH=Hs(),If=$A(),zA=vn();Ie.SIGNATURE_LENGTH=64;Ie.PUBLIC_KEY_LENGTH=32;Ie.SECRET_KEY_LENGTH=64;Ie.SEED_LENGTH=32;function me(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var YH=new Uint8Array(32);YH[0]=9;var Lx=me(),cl=me([1]),XH=me([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),JH=me([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),UA=me([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),VA=me([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),QH=me([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Io(e,t){for(let r=0;r<16;r++)e[r]=t[r]|0}function Mx(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function HA(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function Af(e,t){let r=me(),n=me();for(let i=0;i<16;i++)n[i]=t[i];Mx(n),Mx(n),Mx(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,HA(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function KA(e,t){let r=0;for(let n=0;n<32;n++)r|=e[n]^t[n];return(1&r-1>>>8)-1}function BA(e,t){let r=new Uint8Array(32),n=new Uint8Array(32);return Af(r,e),Af(n,t),KA(r,n)}function qA(e){let t=new Uint8Array(32);return Af(t,e),t[0]&1}function ZH(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function Ks(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function Ws(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Re(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,g=0,w=0,v=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,A=0,O=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Q=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Z=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Q,p+=n*T,h+=n*z,g+=n*H,w+=n*q,v+=n*Z,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*se,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Q,h+=n*T,g+=n*z,w+=n*H,v+=n*q,_+=n*Z,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*se,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Q,g+=n*T,w+=n*z,v+=n*H,_+=n*q,D+=n*Z,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*se,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,g+=n*Q,w+=n*T,v+=n*z,_+=n*H,D+=n*q,C+=n*Z,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*se,n=t[4],l+=n*B,p+=n*k,h+=n*b,g+=n*L,w+=n*Q,v+=n*T,_+=n*z,D+=n*H,C+=n*q,I+=n*Z,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*se,n=t[5],p+=n*B,h+=n*k,g+=n*b,w+=n*L,v+=n*Q,_+=n*T,D+=n*z,C+=n*H,I+=n*q,P+=n*Z,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*se,n=t[6],h+=n*B,g+=n*k,w+=n*b,v+=n*L,_+=n*Q,D+=n*T,C+=n*z,I+=n*H,P+=n*q,R+=n*Z,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*se,n=t[7],g+=n*B,w+=n*k,v+=n*b,_+=n*L,D+=n*Q,C+=n*T,I+=n*z,P+=n*H,R+=n*q,U+=n*Z,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*se,n=t[8],w+=n*B,v+=n*k,_+=n*b,D+=n*L,C+=n*Q,I+=n*T,P+=n*z,R+=n*H,U+=n*q,j+=n*Z,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*se,n=t[9],v+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Q,P+=n*T,R+=n*z,U+=n*H,j+=n*q,F+=n*Z,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*se,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Q,R+=n*T,U+=n*z,j+=n*H,F+=n*q,$+=n*Z,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*se,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Q,U+=n*T,j+=n*z,F+=n*H,$+=n*q,G+=n*Z,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*se,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Q,j+=n*T,F+=n*z,$+=n*H,G+=n*q,X+=n*Z,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,A+=n*se,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Q,F+=n*T,$+=n*z,G+=n*H,X+=n*q,W+=n*Z,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,A+=n*ne,O+=n*se,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Q,$+=n*T,G+=n*z,X+=n*H,W+=n*q,J+=n*Z,N+=n*ie,m+=n*re,E+=n*te,A+=n*he,O+=n*ne,M+=n*se,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Q,G+=n*T,X+=n*z,W+=n*H,J+=n*q,N+=n*Z,m+=n*ie,E+=n*re,A+=n*te,O+=n*he,M+=n*ne,V+=n*se,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,g+=38*J,w+=38*N,v+=38*m,_+=38*E,D+=38*A,C+=38*O,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=g,e[8]=w,e[9]=v,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function qs(e,t){Re(e,t,t)}function WA(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)qs(r,r),n!==2&&n!==4&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function eK(e,t){let r=me(),n;for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)qs(r,r),n!==1&&Re(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function Fx(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me(),l=me(),p=me();Ws(r,e[1],e[0]),Ws(p,t[1],t[0]),Re(r,r,p),Ks(n,e[0],e[1]),Ks(p,t[0],t[1]),Re(n,n,p),Re(i,e[3],t[3]),Re(i,i,JH),Re(o,e[2],t[2]),Ks(o,o,o),Ws(s,n,r),Ws(a,o,i),Ks(u,o,i),Ks(l,n,r),Re(e[0],s,a),Re(e[1],l,u),Re(e[2],u,a),Re(e[3],s,l)}function jA(e,t,r){for(let n=0;n<4;n++)HA(e[n],t[n],r)}function Ux(e,t){let r=me(),n=me(),i=me();WA(i,t[2]),Re(r,t[0],i),Re(n,t[1],i),Af(e,n),e[31]^=qA(r)<<7}function GA(e,t,r){Io(e[0],Lx),Io(e[1],cl),Io(e[2],cl),Io(e[3],Lx);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(n&7)&1;jA(e,t,i),Fx(t,e),Fx(e,e),jA(e,t,i)}}function Vx(e,t){let r=[me(),me(),me(),me()];Io(r[0],UA),Io(r[1],VA),Io(r[2],cl),Re(r[3],UA,VA),GA(e,r,t)}function YA(e){if(e.length!==Ie.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Ie.SEED_LENGTH} bytes`);let t=(0,If.hash)(e);t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(32),n=[me(),me(),me(),me()];Vx(n,t),Ux(r,n);let i=new Uint8Array(64);return i.set(e),i.set(r,32),{publicKey:r,secretKey:i}}Ie.generateKeyPairFromSeed=YA;function tK(e){let t=(0,GH.randomBytes)(32,e),r=YA(t);return(0,zA.wipe)(t),r}Ie.generateKeyPair=tK;function rK(e){if(e.length!==Ie.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Ie.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(e.subarray(32))}Ie.extractPublicKeyFromSecretKey=rK;var kx=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function XA(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*kx[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=r*256;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*kx[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*kx[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=t[n]&255}function $x(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let r=0;r<64;r++)e[r]=0;XA(e,t)}function nK(e,t){let r=new Float64Array(64),n=[me(),me(),me(),me()],i=(0,If.hash)(e.subarray(0,32));i[0]&=248,i[31]&=127,i[31]|=64;let o=new Uint8Array(64);o.set(i.subarray(32),32);let s=new If.SHA512;s.update(o.subarray(32)),s.update(t);let a=s.digest();s.clean(),$x(a),Vx(n,a),Ux(o,n),s.reset(),s.update(o.subarray(0,32)),s.update(e.subarray(32)),s.update(t);let u=s.digest();$x(u);for(let l=0;l<32;l++)r[l]=a[l];for(let l=0;l<32;l++)for(let p=0;p<32;p++)r[l+p]+=u[l]*i[p];return XA(o.subarray(32),r),o}Ie.sign=nK;function JA(e,t){let r=me(),n=me(),i=me(),o=me(),s=me(),a=me(),u=me();return Io(e[2],cl),ZH(e[1],t),qs(i,e[1]),Re(o,i,XH),Ws(i,i,e[2]),Ks(o,e[2],o),qs(s,o),qs(a,s),Re(u,a,s),Re(r,u,i),Re(r,r,o),eK(r,r),Re(r,r,i),Re(r,r,o),Re(r,r,o),Re(e[0],r,o),qs(n,e[0]),Re(n,n,o),BA(n,i)&&Re(e[0],e[0],QH),qs(n,e[0]),Re(n,n,o),BA(n,i)?-1:(qA(e[0])===t[31]>>7&&Ws(e[0],Lx,e[0]),Re(e[3],e[0],e[1]),0)}function iK(e,t,r){let n=new Uint8Array(32),i=[me(),me(),me(),me()],o=[me(),me(),me(),me()];if(r.length!==Ie.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Ie.SIGNATURE_LENGTH} bytes`);if(JA(o,e))return!1;let s=new If.SHA512;s.update(r.subarray(0,32)),s.update(e),s.update(t);let a=s.digest();return $x(a),GA(i,o,a),Vx(o,r.subarray(32)),Fx(i,o),Ux(n,i),!KA(r,n)}Ie.verify=iK;function oK(e){let t=[me(),me(),me(),me()];if(JA(t,e))throw new Error("Ed25519: invalid public key");let r=me(),n=me(),i=t[1];Ks(r,cl,i),Ws(n,cl,i),WA(n,n),Re(r,r,n);let o=new Uint8Array(32);return Af(o,r),o}Ie.convertPublicKeyToX25519=oK;function sK(e){let t=(0,If.hash)(e.subarray(0,32));t[0]&=248,t[31]&=127,t[31]|=64;let r=new Uint8Array(t.subarray(0,32));return(0,zA.wipe)(t),r}Ie.convertSecretKeyToX25519=sK});var kO=ee(p0=>{"use strict";c();d();f();Object.defineProperty(p0,"__esModule",{value:!0});var vr=al(),fb=vn(),xq=20;function bq(e,t,r){for(var n=1634760805,i=857760878,o=2036477234,s=1797285236,a=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],l=r[11]<<24|r[10]<<16|r[9]<<8|r[8],p=r[15]<<24|r[14]<<16|r[13]<<8|r[12],h=r[19]<<24|r[18]<<16|r[17]<<8|r[16],g=r[23]<<24|r[22]<<16|r[21]<<8|r[20],w=r[27]<<24|r[26]<<16|r[25]<<8|r[24],v=r[31]<<24|r[30]<<16|r[29]<<8|r[28],_=t[3]<<24|t[2]<<16|t[1]<<8|t[0],D=t[7]<<24|t[6]<<16|t[5]<<8|t[4],C=t[11]<<24|t[10]<<16|t[9]<<8|t[8],I=t[15]<<24|t[14]<<16|t[13]<<8|t[12],P=n,R=i,U=o,j=s,F=a,$=u,G=l,X=p,W=h,J=g,N=w,m=v,E=_,A=D,O=C,M=I,V=0;V<xq;V+=2)P=P+F|0,E^=P,E=E>>>32-16|E<<16,W=W+E|0,F^=W,F=F>>>32-12|F<<12,R=R+$|0,A^=R,A=A>>>32-16|A<<16,J=J+A|0,$^=J,$=$>>>32-12|$<<12,U=U+G|0,O^=U,O=O>>>32-16|O<<16,N=N+O|0,G^=N,G=G>>>32-12|G<<12,j=j+X|0,M^=j,M=M>>>32-16|M<<16,m=m+M|0,X^=m,X=X>>>32-12|X<<12,U=U+G|0,O^=U,O=O>>>32-8|O<<8,N=N+O|0,G^=N,G=G>>>32-7|G<<7,j=j+X|0,M^=j,M=M>>>32-8|M<<8,m=m+M|0,X^=m,X=X>>>32-7|X<<7,R=R+$|0,A^=R,A=A>>>32-8|A<<8,J=J+A|0,$^=J,$=$>>>32-7|$<<7,P=P+F|0,E^=P,E=E>>>32-8|E<<8,W=W+E|0,F^=W,F=F>>>32-7|F<<7,P=P+$|0,M^=P,M=M>>>32-16|M<<16,N=N+M|0,$^=N,$=$>>>32-12|$<<12,R=R+G|0,E^=R,E=E>>>32-16|E<<16,m=m+E|0,G^=m,G=G>>>32-12|G<<12,U=U+X|0,A^=U,A=A>>>32-16|A<<16,W=W+A|0,X^=W,X=X>>>32-12|X<<12,j=j+F|0,O^=j,O=O>>>32-16|O<<16,J=J+O|0,F^=J,F=F>>>32-12|F<<12,U=U+X|0,A^=U,A=A>>>32-8|A<<8,W=W+A|0,X^=W,X=X>>>32-7|X<<7,j=j+F|0,O^=j,O=O>>>32-8|O<<8,J=J+O|0,F^=J,F=F>>>32-7|F<<7,R=R+G|0,E^=R,E=E>>>32-8|E<<8,m=m+E|0,G^=m,G=G>>>32-7|G<<7,P=P+$|0,M^=P,M=M>>>32-8|M<<8,N=N+M|0,$^=N,$=$>>>32-7|$<<7;vr.writeUint32LE(P+n|0,e,0),vr.writeUint32LE(R+i|0,e,4),vr.writeUint32LE(U+o|0,e,8),vr.writeUint32LE(j+s|0,e,12),vr.writeUint32LE(F+a|0,e,16),vr.writeUint32LE($+u|0,e,20),vr.writeUint32LE(G+l|0,e,24),vr.writeUint32LE(X+p|0,e,28),vr.writeUint32LE(W+h|0,e,32),vr.writeUint32LE(J+g|0,e,36),vr.writeUint32LE(N+w|0,e,40),vr.writeUint32LE(m+v|0,e,44),vr.writeUint32LE(E+_|0,e,48),vr.writeUint32LE(A+D|0,e,52),vr.writeUint32LE(O+C|0,e,56),vr.writeUint32LE(M+I|0,e,60)}function MO(e,t,r,n,i){if(i===void 0&&(i=0),e.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length<r.length)throw new Error("ChaCha: destination is shorter than source");var o,s;if(i===0){if(t.length!==8&&t.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");o=new Uint8Array(16),s=o.length-t.length,o.set(t,s)}else{if(t.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");o=t,s=i}for(var a=new Uint8Array(64),u=0;u<r.length;u+=64){bq(a,o,e);for(var l=u;l<u+64&&l<r.length;l++)n[l]=r[l]^a[l-u];_q(o,0,s)}return fb.wipe(a),i===0&&fb.wipe(o),n}p0.streamXOR=MO;function Eq(e,t,r,n){return n===void 0&&(n=0),fb.wipe(r),MO(e,t,r,r,n)}p0.stream=Eq;function _q(e,t,r){for(var n=1;r--;)n=n+(e[t]&255)|0,e[t]=n&255,n>>>=8,t++;if(n>0)throw new Error("ChaCha: counter overflow")}});var m0=ee(vl=>{"use strict";c();d();f();Object.defineProperty(vl,"__esModule",{value:!0});function Sq(e,t,r){return~(e-1)&t|e-1&r}vl.select=Sq;function Cq(e,t){return(e|0)-(t|0)-1>>>31&1}vl.lessOrEqual=Cq;function LO(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}vl.compare=LO;function Tq(e,t){return e.length===0||t.length===0?!1:LO(e,t)!==0}vl.equal=Tq});var $O=ee(Ii=>{"use strict";c();d();f();Object.defineProperty(Ii,"__esModule",{value:!0});var Pq=m0(),g0=vn();Ii.DIGEST_LENGTH=16;var FO=function(){function e(t){this.digestLength=Ii.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=r&8191;var n=t[2]|t[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=t[4]|t[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=t[6]|t[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var s=t[8]|t[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var u=t[12]|t[13]<<8;this._r[7]=(a>>>11|u<<5)&8065;var l=t[14]|t[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return e.prototype._blocks=function(t,r,n){for(var i=this._fin?0:2048,o=this._h[0],s=this._h[1],a=this._h[2],u=this._h[3],l=this._h[4],p=this._h[5],h=this._h[6],g=this._h[7],w=this._h[8],v=this._h[9],_=this._r[0],D=this._r[1],C=this._r[2],I=this._r[3],P=this._r[4],R=this._r[5],U=this._r[6],j=this._r[7],F=this._r[8],$=this._r[9];n>=16;){var G=t[r+0]|t[r+1]<<8;o+=G&8191;var X=t[r+2]|t[r+3]<<8;s+=(G>>>13|X<<3)&8191;var W=t[r+4]|t[r+5]<<8;a+=(X>>>10|W<<6)&8191;var J=t[r+6]|t[r+7]<<8;u+=(W>>>7|J<<9)&8191;var N=t[r+8]|t[r+9]<<8;l+=(J>>>4|N<<12)&8191,p+=N>>>1&8191;var m=t[r+10]|t[r+11]<<8;h+=(N>>>14|m<<2)&8191;var E=t[r+12]|t[r+13]<<8;g+=(m>>>11|E<<5)&8191;var A=t[r+14]|t[r+15]<<8;w+=(E>>>8|A<<8)&8191,v+=A>>>5|i;var O=0,M=O;M+=o*_,M+=s*(5*$),M+=a*(5*F),M+=u*(5*j),M+=l*(5*U),O=M>>>13,M&=8191,M+=p*(5*R),M+=h*(5*P),M+=g*(5*I),M+=w*(5*C),M+=v*(5*D),O+=M>>>13,M&=8191;var V=O;V+=o*D,V+=s*_,V+=a*(5*$),V+=u*(5*F),V+=l*(5*j),O=V>>>13,V&=8191,V+=p*(5*U),V+=h*(5*R),V+=g*(5*P),V+=w*(5*I),V+=v*(5*C),O+=V>>>13,V&=8191;var B=O;B+=o*C,B+=s*D,B+=a*_,B+=u*(5*$),B+=l*(5*F),O=B>>>13,B&=8191,B+=p*(5*j),B+=h*(5*U),B+=g*(5*R),B+=w*(5*P),B+=v*(5*I),O+=B>>>13,B&=8191;var k=O;k+=o*I,k+=s*C,k+=a*D,k+=u*_,k+=l*(5*$),O=k>>>13,k&=8191,k+=p*(5*F),k+=h*(5*j),k+=g*(5*U),k+=w*(5*R),k+=v*(5*P),O+=k>>>13,k&=8191;var b=O;b+=o*P,b+=s*I,b+=a*C,b+=u*D,b+=l*_,O=b>>>13,b&=8191,b+=p*(5*$),b+=h*(5*F),b+=g*(5*j),b+=w*(5*U),b+=v*(5*R),O+=b>>>13,b&=8191;var L=O;L+=o*R,L+=s*P,L+=a*I,L+=u*C,L+=l*D,O=L>>>13,L&=8191,L+=p*_,L+=h*(5*$),L+=g*(5*F),L+=w*(5*j),L+=v*(5*U),O+=L>>>13,L&=8191;var Q=O;Q+=o*U,Q+=s*R,Q+=a*P,Q+=u*I,Q+=l*C,O=Q>>>13,Q&=8191,Q+=p*D,Q+=h*_,Q+=g*(5*$),Q+=w*(5*F),Q+=v*(5*j),O+=Q>>>13,Q&=8191;var T=O;T+=o*j,T+=s*U,T+=a*R,T+=u*P,T+=l*I,O=T>>>13,T&=8191,T+=p*C,T+=h*D,T+=g*_,T+=w*(5*$),T+=v*(5*F),O+=T>>>13,T&=8191;var z=O;z+=o*F,z+=s*j,z+=a*U,z+=u*R,z+=l*P,O=z>>>13,z&=8191,z+=p*I,z+=h*C,z+=g*D,z+=w*_,z+=v*(5*$),O+=z>>>13,z&=8191;var H=O;H+=o*$,H+=s*F,H+=a*j,H+=u*U,H+=l*R,O=H>>>13,H&=8191,H+=p*P,H+=h*I,H+=g*C,H+=w*D,H+=v*_,O+=H>>>13,H&=8191,O=(O<<2)+O|0,O=O+M|0,M=O&8191,O=O>>>13,V+=O,o=M,s=V,a=B,u=k,l=b,p=L,h=Q,g=T,w=z,v=H,r+=16,n-=16}this._h[0]=o,this._h[1]=s,this._h[2]=a,this._h[3]=u,this._h[4]=l,this._h[5]=p,this._h[6]=h,this._h[7]=g,this._h[8]=w,this._h[9]=v},e.prototype.finish=function(t,r){r===void 0&&(r=0);var n=new Uint16Array(10),i,o,s,a;if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(i=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=i,i=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=i*5,i=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=i,i=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=i,n[0]=this._h[0]+5,i=n[0]>>>13,n[0]&=8191,a=1;a<10;a++)n[a]=this._h[a]+i,i=n[a]>>>13,n[a]&=8191;for(n[9]-=1<<13,o=(i^1)-1,a=0;a<10;a++)n[a]&=o;for(o=~o,a=0;a<10;a++)this._h[a]=this._h[a]&o|n[a];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=s&65535,a=1;a<8;a++)s=(this._h[a]+this._pad[a]|0)+(s>>>16)|0,this._h[a]=s&65535;return t[r+0]=this._h[0]>>>0,t[r+1]=this._h[0]>>>8,t[r+2]=this._h[1]>>>0,t[r+3]=this._h[1]>>>8,t[r+4]=this._h[2]>>>0,t[r+5]=this._h[2]>>>8,t[r+6]=this._h[3]>>>0,t[r+7]=this._h[3]>>>8,t[r+8]=this._h[4]>>>0,t[r+9]=this._h[4]>>>8,t[r+10]=this._h[5]>>>0,t[r+11]=this._h[5]>>>8,t[r+12]=this._h[6]>>>0,t[r+13]=this._h[6]>>>8,t[r+14]=this._h[7]>>>0,t[r+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(t){var r=0,n=t.length,i;if(this._leftover){i=16-this._leftover,i>n&&(i=n);for(var o=0;o<i;o++)this._buffer[this._leftover+o]=t[r+o];if(n-=i,r+=i,this._leftover+=i,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(i=n-n%16,this._blocks(t,r,i),r+=i,n-=i),n){for(var o=0;o<n;o++)this._buffer[this._leftover+o]=t[r+o];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var t=new Uint8Array(16);return this.finish(t),t},e.prototype.clean=function(){return g0.wipe(this._buffer),g0.wipe(this._r),g0.wipe(this._h),g0.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();Ii.Poly1305=FO;function Dq(e,t){var r=new FO(e);r.update(t);var n=r.digest();return r.clean(),n}Ii.oneTimeAuth=Dq;function Iq(e,t){return e.length!==Ii.DIGEST_LENGTH||t.length!==Ii.DIGEST_LENGTH?!1:Pq.equal(e,t)}Ii.equal=Iq});var v0=ee(Ai=>{"use strict";c();d();f();Object.defineProperty(Ai,"__esModule",{value:!0});var y0=kO(),Aq=$O(),Lf=vn(),UO=al(),Oq=m0();Ai.KEY_LENGTH=32;Ai.NONCE_LENGTH=12;Ai.TAG_LENGTH=16;var VO=new Uint8Array(16),Rq=function(){function e(t){if(this.nonceLength=Ai.NONCE_LENGTH,this.tagLength=Ai.TAG_LENGTH,t.length!==Ai.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return e.prototype.seal=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);y0.stream(this._key,o,s,4);var a=r.length+this.tagLength,u;if(i){if(i.length!==a)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(a);return y0.streamXOR(this._key,o,r,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),Lf.wipe(o),u},e.prototype.open=function(t,r,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(r.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(t,o.length-t.length);var s=new Uint8Array(32);y0.stream(this._key,o,s,4);var a=new Uint8Array(this.tagLength);if(this._authenticate(a,s,r.subarray(0,r.length-this.tagLength),n),!Oq.equal(a,r.subarray(r.length-this.tagLength,r.length)))return null;var u=r.length-this.tagLength,l;if(i){if(i.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(u);return y0.streamXOR(this._key,o,r.subarray(0,r.length-this.tagLength),l,4),Lf.wipe(o),l},e.prototype.clean=function(){return Lf.wipe(this._key),this},e.prototype._authenticate=function(t,r,n,i){var o=new Aq.Poly1305(r);i&&(o.update(i),i.length%16>0&&o.update(VO.subarray(i.length%16))),o.update(n),n.length%16>0&&o.update(VO.subarray(n.length%16));var s=new Uint8Array(8);i&&UO.writeUint64LE(i.length,s),o.update(s),UO.writeUint64LE(n.length,s),o.update(s);for(var a=o.digest(),u=0;u<a.length;u++)t[u]=a[u];o.clean(),Lf.wipe(a),Lf.wipe(s)},e}();Ai.ChaCha20Poly1305=Rq});var BO=ee(db=>{"use strict";c();d();f();Object.defineProperty(db,"__esModule",{value:!0});function Nq(e){return typeof e.saveState<"u"&&typeof e.restoreState<"u"&&typeof e.cleanSavedState<"u"}db.isSerializableHash=Nq});var zO=ee(Ff=>{"use strict";c();d();f();Object.defineProperty(Ff,"__esModule",{value:!0});var ei=BO(),Mq=m0(),kq=vn(),jO=function(){function e(t,r){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);r.length>this.blockSize?this._inner.update(r).finish(n).clean():n.set(r);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(var i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),ei.isSerializableHash(this._inner)&&ei.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),kq.wipe(n)}return e.prototype.reset=function(){if(!ei.isSerializableHash(this._inner)||!ei.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){ei.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),ei.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(t){return this._inner.update(t),this},e.prototype.finish=function(t){return this._finished?(this._outer.finish(t),this):(this._inner.finish(t),this._outer.update(t.subarray(0,this.digestLength)).finish(t),this._finished=!0,this)},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(!ei.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(t){if(!ei.isSerializableHash(this._inner)||!ei.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(t),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(t){if(!ei.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(t)},e}();Ff.HMAC=jO;function Lq(e,t,r){var n=new jO(e,t);n.update(r);var i=n.digest();return n.clean(),i}Ff.hmac=Lq;Ff.equal=Mq.equal});var w0=ee(hb=>{"use strict";c();d();f();Object.defineProperty(hb,"__esModule",{value:!0});var HO=zO(),KO=vn(),Fq=function(){function e(t,r,n,i){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=HO.hmac(this._hash,n,r);this._hmac=new HO.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(t===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(t){for(var r=new Uint8Array(t),n=0;n<r.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),r[n]=this._buffer[this._bufpos++];return r},e.prototype.clean=function(){this._hmac.clean(),KO.wipe(this._buffer),KO.wipe(this._counter),this._bufpos=0},e}();hb.HKDF=Fq});var E0=ee(Oo=>{"use strict";c();d();f();Object.defineProperty(Oo,"__esModule",{value:!0});var b0=al(),x0=vn();Oo.DIGEST_LENGTH=32;Oo.BLOCK_SIZE=64;var qO=function(){function e(){this.digestLength=Oo.DIGEST_LENGTH,this.blockSize=Oo.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){x0.wipe(this._buffer),x0.wipe(this._temp),this.reset()},e.prototype.update=function(t,r){if(r===void 0&&(r=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&r>0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(pb(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=pb(this._temp,this._state,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},e.prototype.finish=function(t){if(!this._finished){var r=this._bytesHashed,n=this._bufferLength,i=r/536870912|0,o=r<<3,s=r%64<56?64:128;this._buffer[n]=128;for(var a=n+1;a<s-8;a++)this._buffer[a]=0;b0.writeUint32BE(i,this._buffer,s-8),b0.writeUint32BE(o,this._buffer,s-4),pb(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)b0.writeUint32BE(this._state[a],t,a*4);return this},e.prototype.digest=function(){var t=new Uint8Array(this.digestLength);return this.finish(t),t},e.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(t){x0.wipe(t.state),t.buffer&&x0.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},e}();Oo.SHA256=qO;var $q=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function pb(e,t,r,n,i){for(;i>=64;){for(var o=t[0],s=t[1],a=t[2],u=t[3],l=t[4],p=t[5],h=t[6],g=t[7],w=0;w<16;w++){var v=n+w*4;e[w]=b0.readUint32BE(r,v)}for(var w=16;w<64;w++){var _=e[w-2],D=(_>>>17|_<<32-17)^(_>>>19|_<<32-19)^_>>>10;_=e[w-15];var C=(_>>>7|_<<32-7)^(_>>>18|_<<32-18)^_>>>3;e[w]=(D+e[w-7]|0)+(C+e[w-16]|0)}for(var w=0;w<64;w++){var D=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&p^~l&h)|0)+(g+($q[w]+e[w]|0)|0)|0,C=((o>>>2|o<<32-2)^(o>>>13|o<<32-13)^(o>>>22|o<<32-22))+(o&s^o&a^s&a)|0;g=h,h=p,p=l,l=u+D|0,u=a,a=s,s=o,o=D+C|0}t[0]+=o,t[1]+=s,t[2]+=a,t[3]+=u,t[4]+=l,t[5]+=p,t[6]+=h,t[7]+=g,n+=64,i-=64}return n}function Uq(e){var t=new qO;t.update(e);var r=t.digest();return t.clean(),r}Oo.hash=Uq});var C0=ee(Nt=>{"use strict";c();d();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.sharedKey=Nt.generateKeyPair=Nt.generateKeyPairFromSeed=Nt.scalarMultBase=Nt.scalarMult=Nt.SHARED_KEY_LENGTH=Nt.SECRET_KEY_LENGTH=Nt.PUBLIC_KEY_LENGTH=void 0;var Vq=Hs(),Bq=vn();Nt.PUBLIC_KEY_LENGTH=32;Nt.SECRET_KEY_LENGTH=32;Nt.SHARED_KEY_LENGTH=32;function ti(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}var WO=new Uint8Array(32);WO[0]=9;var jq=ti([56129,1]);function mb(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function $f(e,t,r){let n=~(r-1);for(let i=0;i<16;i++){let o=n&(e[i]^t[i]);e[i]^=o,t[i]^=o}}function zq(e,t){let r=ti(),n=ti();for(let i=0;i<16;i++)n[i]=t[i];mb(n),mb(n),mb(n);for(let i=0;i<2;i++){r[0]=n[0]-65517;for(let s=1;s<15;s++)r[s]=n[s]-65535-(r[s-1]>>16&1),r[s-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let o=r[15]>>16&1;r[14]&=65535,$f(n,r,1-o)}for(let i=0;i<16;i++)e[2*i]=n[i]&255,e[2*i+1]=n[i]>>8}function Hq(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function _0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function S0(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function Oi(e,t,r){let n,i,o=0,s=0,a=0,u=0,l=0,p=0,h=0,g=0,w=0,v=0,_=0,D=0,C=0,I=0,P=0,R=0,U=0,j=0,F=0,$=0,G=0,X=0,W=0,J=0,N=0,m=0,E=0,A=0,O=0,M=0,V=0,B=r[0],k=r[1],b=r[2],L=r[3],Q=r[4],T=r[5],z=r[6],H=r[7],q=r[8],Z=r[9],ie=r[10],re=r[11],te=r[12],he=r[13],ne=r[14],se=r[15];n=t[0],o+=n*B,s+=n*k,a+=n*b,u+=n*L,l+=n*Q,p+=n*T,h+=n*z,g+=n*H,w+=n*q,v+=n*Z,_+=n*ie,D+=n*re,C+=n*te,I+=n*he,P+=n*ne,R+=n*se,n=t[1],s+=n*B,a+=n*k,u+=n*b,l+=n*L,p+=n*Q,h+=n*T,g+=n*z,w+=n*H,v+=n*q,_+=n*Z,D+=n*ie,C+=n*re,I+=n*te,P+=n*he,R+=n*ne,U+=n*se,n=t[2],a+=n*B,u+=n*k,l+=n*b,p+=n*L,h+=n*Q,g+=n*T,w+=n*z,v+=n*H,_+=n*q,D+=n*Z,C+=n*ie,I+=n*re,P+=n*te,R+=n*he,U+=n*ne,j+=n*se,n=t[3],u+=n*B,l+=n*k,p+=n*b,h+=n*L,g+=n*Q,w+=n*T,v+=n*z,_+=n*H,D+=n*q,C+=n*Z,I+=n*ie,P+=n*re,R+=n*te,U+=n*he,j+=n*ne,F+=n*se,n=t[4],l+=n*B,p+=n*k,h+=n*b,g+=n*L,w+=n*Q,v+=n*T,_+=n*z,D+=n*H,C+=n*q,I+=n*Z,P+=n*ie,R+=n*re,U+=n*te,j+=n*he,F+=n*ne,$+=n*se,n=t[5],p+=n*B,h+=n*k,g+=n*b,w+=n*L,v+=n*Q,_+=n*T,D+=n*z,C+=n*H,I+=n*q,P+=n*Z,R+=n*ie,U+=n*re,j+=n*te,F+=n*he,$+=n*ne,G+=n*se,n=t[6],h+=n*B,g+=n*k,w+=n*b,v+=n*L,_+=n*Q,D+=n*T,C+=n*z,I+=n*H,P+=n*q,R+=n*Z,U+=n*ie,j+=n*re,F+=n*te,$+=n*he,G+=n*ne,X+=n*se,n=t[7],g+=n*B,w+=n*k,v+=n*b,_+=n*L,D+=n*Q,C+=n*T,I+=n*z,P+=n*H,R+=n*q,U+=n*Z,j+=n*ie,F+=n*re,$+=n*te,G+=n*he,X+=n*ne,W+=n*se,n=t[8],w+=n*B,v+=n*k,_+=n*b,D+=n*L,C+=n*Q,I+=n*T,P+=n*z,R+=n*H,U+=n*q,j+=n*Z,F+=n*ie,$+=n*re,G+=n*te,X+=n*he,W+=n*ne,J+=n*se,n=t[9],v+=n*B,_+=n*k,D+=n*b,C+=n*L,I+=n*Q,P+=n*T,R+=n*z,U+=n*H,j+=n*q,F+=n*Z,$+=n*ie,G+=n*re,X+=n*te,W+=n*he,J+=n*ne,N+=n*se,n=t[10],_+=n*B,D+=n*k,C+=n*b,I+=n*L,P+=n*Q,R+=n*T,U+=n*z,j+=n*H,F+=n*q,$+=n*Z,G+=n*ie,X+=n*re,W+=n*te,J+=n*he,N+=n*ne,m+=n*se,n=t[11],D+=n*B,C+=n*k,I+=n*b,P+=n*L,R+=n*Q,U+=n*T,j+=n*z,F+=n*H,$+=n*q,G+=n*Z,X+=n*ie,W+=n*re,J+=n*te,N+=n*he,m+=n*ne,E+=n*se,n=t[12],C+=n*B,I+=n*k,P+=n*b,R+=n*L,U+=n*Q,j+=n*T,F+=n*z,$+=n*H,G+=n*q,X+=n*Z,W+=n*ie,J+=n*re,N+=n*te,m+=n*he,E+=n*ne,A+=n*se,n=t[13],I+=n*B,P+=n*k,R+=n*b,U+=n*L,j+=n*Q,F+=n*T,$+=n*z,G+=n*H,X+=n*q,W+=n*Z,J+=n*ie,N+=n*re,m+=n*te,E+=n*he,A+=n*ne,O+=n*se,n=t[14],P+=n*B,R+=n*k,U+=n*b,j+=n*L,F+=n*Q,$+=n*T,G+=n*z,X+=n*H,W+=n*q,J+=n*Z,N+=n*ie,m+=n*re,E+=n*te,A+=n*he,O+=n*ne,M+=n*se,n=t[15],R+=n*B,U+=n*k,j+=n*b,F+=n*L,$+=n*Q,G+=n*T,X+=n*z,W+=n*H,J+=n*q,N+=n*Z,m+=n*ie,E+=n*re,A+=n*te,O+=n*he,M+=n*ne,V+=n*se,o+=38*U,s+=38*j,a+=38*F,u+=38*$,l+=38*G,p+=38*X,h+=38*W,g+=38*J,w+=38*N,v+=38*m,_+=38*E,D+=38*A,C+=38*O,I+=38*M,P+=38*V,i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),i=1,n=o+i+65535,i=Math.floor(n/65536),o=n-i*65536,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=h+i+65535,i=Math.floor(n/65536),h=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=_+i+65535,i=Math.floor(n/65536),_=n-i*65536,n=D+i+65535,i=Math.floor(n/65536),D=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,n=I+i+65535,i=Math.floor(n/65536),I=n-i*65536,n=P+i+65535,i=Math.floor(n/65536),P=n-i*65536,n=R+i+65535,i=Math.floor(n/65536),R=n-i*65536,o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=p,e[6]=h,e[7]=g,e[8]=w,e[9]=v,e[10]=_,e[11]=D,e[12]=C,e[13]=I,e[14]=P,e[15]=R}function Uf(e,t){Oi(e,t,t)}function Kq(e,t){let r=ti();for(let n=0;n<16;n++)r[n]=t[n];for(let n=253;n>=0;n--)Uf(r,r),n!==2&&n!==4&&Oi(r,r,t);for(let n=0;n<16;n++)e[n]=r[n]}function gb(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=ti(),o=ti(),s=ti(),a=ti(),u=ti(),l=ti();for(let w=0;w<31;w++)r[w]=e[w];r[31]=e[31]&127|64,r[0]&=248,Hq(n,t);for(let w=0;w<16;w++)o[w]=n[w];i[0]=a[0]=1;for(let w=254;w>=0;--w){let v=r[w>>>3]>>>(w&7)&1;$f(i,o,v),$f(s,a,v),_0(u,i,s),S0(i,i,s),_0(s,o,a),S0(o,o,a),Uf(a,u),Uf(l,i),Oi(i,s,i),Oi(s,o,u),_0(u,i,s),S0(i,i,s),Uf(o,i),S0(s,a,l),Oi(i,s,jq),_0(i,i,a),Oi(s,s,i),Oi(i,a,l),Oi(a,o,n),Uf(o,u),$f(i,o,v),$f(s,a,v)}for(let w=0;w<16;w++)n[w+16]=i[w],n[w+32]=s[w],n[w+48]=o[w],n[w+64]=a[w];let p=n.subarray(32),h=n.subarray(16);Kq(p,p),Oi(h,h,p);let g=new Uint8Array(32);return zq(g,h),g}Nt.scalarMult=gb;function GO(e){return gb(e,WO)}Nt.scalarMultBase=GO;function YO(e){if(e.length!==Nt.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${Nt.SECRET_KEY_LENGTH} bytes`);let t=new Uint8Array(e);return{publicKey:GO(t),secretKey:t}}Nt.generateKeyPairFromSeed=YO;function qq(e){let t=(0,Vq.randomBytes)(32,e),r=YO(t);return(0,Bq.wipe)(t),r}Nt.generateKeyPair=qq;function Wq(e,t,r=!1){if(e.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(t.length!==Nt.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=gb(e,t);if(r){let i=0;for(let o=0;o<n.length;o++)i|=n[o];if(i===0)throw new Error("X25519: invalid shared key")}return n}Nt.sharedKey=Wq});var Xs=ee(Ue=>{"use strict";c();d();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.getLocalStorage=Ue.getLocalStorageOrThrow=Ue.getCrypto=Ue.getCryptoOrThrow=Ue.getLocation=Ue.getLocationOrThrow=Ue.getNavigator=Ue.getNavigatorOrThrow=Ue.getDocument=Ue.getDocumentOrThrow=Ue.getFromWindowOrThrow=Ue.getFromWindow=void 0;function Ys(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Ue.getFromWindow=Ys;function xl(e){let t=Ys(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Ue.getFromWindowOrThrow=xl;function aW(){return xl("document")}Ue.getDocumentOrThrow=aW;function uW(){return Ys("document")}Ue.getDocument=uW;function lW(){return xl("navigator")}Ue.getNavigatorOrThrow=lW;function cW(){return Ys("navigator")}Ue.getNavigator=cW;function fW(){return xl("location")}Ue.getLocationOrThrow=fW;function dW(){return Ys("location")}Ue.getLocation=dW;function hW(){return xl("crypto")}Ue.getCryptoOrThrow=hW;function pW(){return Ys("crypto")}Ue.getCrypto=pW;function mW(){return xl("localStorage")}Ue.getLocalStorageOrThrow=mW;function gW(){return Ys("localStorage")}Ue.getLocalStorage=gW});var iR=ee(P0=>{"use strict";c();d();f();Object.defineProperty(P0,"__esModule",{value:!0});P0.getWindowMetadata=void 0;var nR=Xs();function yW(){let e,t;try{e=nR.getDocumentOrThrow(),t=nR.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}P0.getWindowMetadata=yW});var sR=ee((aye,oR)=>{"use strict";c();d();f();oR.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var fR=ee((uye,cR)=>{"use strict";c();d();f();var lR="%[a-f0-9]{2}",aR=new RegExp("("+lR+")|([^%]+?)","gi"),uR=new RegExp("("+lR+")+","gi");function vb(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],vb(r),vb(n))}function vW(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(aR)||[],r=1;r<t.length;r++)e=vb(t,r).join(""),t=e.match(aR)||[];return e}}function wW(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=uR.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(a){var n=vW(r[0]);n!==r[0]&&(t[r[0]]=n)}r=uR.exec(e)}t["%C2"]="\uFFFD";for(var i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}cR.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return wW(e)}}});var hR=ee((lye,dR)=>{"use strict";c();d();f();dR.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var mR=ee((cye,pR)=>{"use strict";c();d();f();pR.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var s=n[o],a=e[s];(i?t.indexOf(s)!==-1:t(s,a,e))&&(r[s]=a)}return r}});var D0=ee(Ur=>{"use strict";c();d();f();var xW=sR(),bW=fR(),yR=hR(),EW=mR(),_W=e=>e==null,wb=Symbol("encodeFragmentIdentifier");function SW(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[",i,"]"].join("")]:[...r,[Lt(t,e),"[",Lt(i,e),"]=",Lt(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),"[]"].join("")]:[...r,[Lt(t,e),"[]=",Lt(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Lt(t,e),":list="].join("")]:[...r,[Lt(t,e),":list=",Lt(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[Lt(r,e),t,Lt(i,e)].join("")]:[[n,Lt(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Lt(t,e)]:[...r,[Lt(t,e),"=",Lt(n,e)].join("")]}}function CW(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[].concat(i[r],n)};case"comma":case"separator":return(r,n,i)=>{let o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&Ri(n,e).includes(e.arrayFormatSeparator);n=s?Ri(n,e):n;let a=o||s?n.split(e.arrayFormatSeparator).map(u=>Ri(u,e)):n===null?n:Ri(n,e);i[r]=a};case"bracket-separator":return(r,n,i)=>{let o=/(\[\])$/.test(r);if(r=r.replace(/\[\]$/,""),!o){i[r]=n&&Ri(n,e);return}let s=n===null?[]:n.split(e.arrayFormatSeparator).map(a=>Ri(a,e));if(i[r]===void 0){i[r]=s;return}i[r]=[].concat(i[r],s)};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[].concat(i[r],n)}}}function vR(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Lt(e,t){return t.encode?t.strict?xW(e):encodeURIComponent(e):e}function Ri(e,t){return t.decode?bW(e):e}function wR(e){return Array.isArray(e)?e.sort():typeof e=="object"?wR(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function xR(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function TW(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function bR(e){e=xR(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function gR(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function ER(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),vR(t.arrayFormatSeparator);let r=CW(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let i of e.split("&")){if(i==="")continue;let[o,s]=yR(t.decode?i.replace(/\+/g," "):i,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:Ri(s,t),r(Ri(o,t),s,n)}for(let i of Object.keys(n)){let o=n[i];if(typeof o=="object"&&o!==null)for(let s of Object.keys(o))o[s]=gR(o[s],t);else n[i]=gR(o,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{let s=n[o];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?i[o]=wR(s):i[o]=s,i},Object.create(null))}Ur.extract=bR;Ur.parse=ER;Ur.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),vR(t.arrayFormatSeparator);let r=s=>t.skipNull&&_W(e[s])||t.skipEmptyString&&e[s]==="",n=SW(t),i={};for(let s of Object.keys(e))r(s)||(i[s]=e[s]);let o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{let a=e[s];return a===void 0?"":a===null?Lt(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?Lt(s,t)+"[]":a.reduce(n(s),[]).join("&"):Lt(s,t)+"="+Lt(a,t)}).filter(s=>s.length>0).join("&")};Ur.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=yR(e,"#");return Object.assign({url:r.split("?")[0]||"",query:ER(bR(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Ri(n,t)}:{})};Ur.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0,[wb]:!0},t);let r=xR(e.url).split("?")[0]||"",n=Ur.extract(e.url),i=Ur.parse(n,{sort:!1}),o=Object.assign(i,e.query),s=Ur.stringify(o,t);s&&(s=`?${s}`);let a=TW(e.url);return e.fragmentIdentifier&&(a=`#${t[wb]?Lt(e.fragmentIdentifier,t):e.fragmentIdentifier}`),`${r}${s}${a}`};Ur.pick=(e,t,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[wb]:!1},r);let{url:n,query:i,fragmentIdentifier:o}=Ur.parseUrl(e,r);return Ur.stringifyUrl({url:n,query:EW(i,t),fragmentIdentifier:o},r)};Ur.exclude=(e,t,r)=>{let n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return Ur.pick(e,n,r)}});var bN=ee((jye,H0)=>{c();d();f();var tN,rN,nN,iN,oN,sN,aN,uN,lN,z0,kb,cN,fN,Sl,dN,hN,pN,mN,gN,yN,vN,wN,xN;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof H0=="object"&&typeof H0.exports=="object"?e(r(t,r(H0.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};tN=function(r,n){t(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},rN=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},nN=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},iN=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var l=r.length-1;l>=0;l--)(u=r[l])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},oN=function(r,n){return function(i,o){n(i,o,r)}},sN=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},aN=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function l(g){try{h(o.next(g))}catch(w){u(w)}}function p(g){try{h(o.throw(g))}catch(w){u(w)}}function h(g){g.done?a(g.value):s(g.value).then(l,p)}h((o=o.apply(r,n||[])).next())})},uN=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(g){return p([h,g])}}function p(h){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=h[0]&2?s.return:h[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,h[1])).done)return a;switch(s=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,s=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){i.label=h[1];break}if(h[0]===6&&i.label<a[1]){i.label=a[1],a=h;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(h);break}a[2]&&i.ops.pop(),i.trys.pop();continue}h=n.call(r,i)}catch(g){h=[6,g],s=0}finally{o=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},xN=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},lN=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},z0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},kb=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(l){u={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},cN=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(kb(arguments[n]));return r},fN=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,l=a.length;u<l;u++,s++)o[s]=a[u];return o},Sl=function(r){return this instanceof Sl?(this.v=r,this):new Sl(r)},dN=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(v){o[v]&&(s[v]=function(_){return new Promise(function(D,C){a.push([v,_,D,C])>1||l(v,_)})})}function l(v,_){try{p(o[v](_))}catch(D){w(a[0][3],D)}}function p(v){v.value instanceof Sl?Promise.resolve(v.value.v).then(h,g):w(a[0][2],v)}function h(v){l("next",v)}function g(v){l("throw",v)}function w(v,_){v(_),a.shift(),a.length&&l(a[0][0],a[0][1])}},hN=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Sl(r[s](u)),done:s==="return"}:a?a(u):u}:a}},pN=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof z0=="function"?z0(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(l,p){u=r[a](u),s(l,p,u.done,u.value)})}}function s(a,u,l,p){Promise.resolve(p).then(function(h){a({value:h,done:l})},u)}},mN=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},gN=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},yN=function(r){return r&&r.__esModule?r:{default:r}},vN=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},wN=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},e("__extends",tN),e("__assign",rN),e("__rest",nN),e("__decorate",iN),e("__param",oN),e("__metadata",sN),e("__awaiter",aN),e("__generator",uN),e("__exportStar",lN),e("__createBinding",xN),e("__values",z0),e("__read",kb),e("__spread",cN),e("__spreadArrays",fN),e("__await",Sl),e("__asyncGenerator",dN),e("__asyncDelegator",hN),e("__asyncValues",pN),e("__makeTemplateObject",mN),e("__importStar",gN),e("__importDefault",yN),e("__classPrivateFieldGet",vN),e("__classPrivateFieldSet",wN)})});var _N=ee(Mo=>{"use strict";c();d();f();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.isBrowserCryptoAvailable=Mo.getSubtleCrypto=Mo.getBrowerCrypto=void 0;function Lb(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Mo.getBrowerCrypto=Lb;function EN(){let e=Lb();return e.subtle||e.webkitSubtle}Mo.getSubtleCrypto=EN;function eG(){return!!Lb()&&!!EN()}Mo.isBrowserCryptoAvailable=eG});var TN=ee(ko=>{"use strict";c();d();f();Object.defineProperty(ko,"__esModule",{value:!0});ko.isBrowser=ko.isNode=ko.isReactNative=void 0;function SN(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ko.isReactNative=SN;function CN(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ko.isNode=CN;function tG(){return!SN()&&!CN()}ko.isBrowser=tG});var Fb=ee(K0=>{"use strict";c();d();f();Object.defineProperty(K0,"__esModule",{value:!0});var PN=bN();PN.__exportStar(_N(),K0);PN.__exportStar(TN(),K0)});var kN=ee((_ve,MN)=>{"use strict";c();d();f();MN.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var xM=ee((Gf,Il)=>{c();d();f();var hG=200,Qb="__lodash_hash_undefined__",ig=1,JN=2,QN=9007199254740991,J0="[object Arguments]",Kb="[object Array]",pG="[object AsyncFunction]",ZN="[object Boolean]",eM="[object Date]",tM="[object Error]",rM="[object Function]",mG="[object GeneratorFunction]",Q0="[object Map]",nM="[object Number]",gG="[object Null]",Dl="[object Object]",VN="[object Promise]",yG="[object Proxy]",iM="[object RegExp]",Z0="[object Set]",oM="[object String]",vG="[object Symbol]",wG="[object Undefined]",qb="[object WeakMap]",sM="[object ArrayBuffer]",eg="[object DataView]",xG="[object Float32Array]",bG="[object Float64Array]",EG="[object Int8Array]",_G="[object Int16Array]",SG="[object Int32Array]",CG="[object Uint8Array]",TG="[object Uint8ClampedArray]",PG="[object Uint16Array]",DG="[object Uint32Array]",IG=/[\\^$.*+?()[\]{}|]/g,AG=/^\[object .+?Constructor\]$/,OG=/^(?:0|[1-9]\d*)$/,bt={};bt[xG]=bt[bG]=bt[EG]=bt[_G]=bt[SG]=bt[CG]=bt[TG]=bt[PG]=bt[DG]=!0;bt[J0]=bt[Kb]=bt[sM]=bt[ZN]=bt[eg]=bt[eM]=bt[tM]=bt[rM]=bt[Q0]=bt[nM]=bt[Dl]=bt[iM]=bt[Z0]=bt[oM]=bt[qb]=!1;var aM=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,RG=typeof self=="object"&&self&&self.Object===Object&&self,Ni=aM||RG||Function("return this")(),uM=typeof Gf=="object"&&Gf&&!Gf.nodeType&&Gf,BN=uM&&typeof Il=="object"&&Il&&!Il.nodeType&&Il,lM=BN&&BN.exports===uM,jb=lM&&aM.process,jN=function(){try{return jb&&jb.binding&&jb.binding("util")}catch(e){}}(),zN=jN&&jN.isTypedArray;function NG(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}function MG(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function kG(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function LG(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function FG(e){return function(t){return e(t)}}function $G(e,t){return e.has(t)}function UG(e,t){return e==null?void 0:e[t]}function VG(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function BG(e,t){return function(r){return e(t(r))}}function jG(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var zG=Array.prototype,HG=Function.prototype,og=Object.prototype,zb=Ni["__core-js_shared__"],cM=HG.toString,ri=og.hasOwnProperty,HN=function(){var e=/[^.]+$/.exec(zb&&zb.keys&&zb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fM=og.toString,KG=RegExp("^"+cM.call(ri).replace(IG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),KN=lM?Ni.Buffer:void 0,tg=Ni.Symbol,qN=Ni.Uint8Array,dM=og.propertyIsEnumerable,qG=zG.splice,ta=tg?tg.toStringTag:void 0,WN=Object.getOwnPropertySymbols,WG=KN?KN.isBuffer:void 0,GG=BG(Object.keys,Object),Wb=Al(Ni,"DataView"),Yf=Al(Ni,"Map"),Gb=Al(Ni,"Promise"),Yb=Al(Ni,"Set"),Xb=Al(Ni,"WeakMap"),Xf=Al(Object,"create"),YG=ia(Wb),XG=ia(Yf),JG=ia(Gb),QG=ia(Yb),ZG=ia(Xb),GN=tg?tg.prototype:void 0,Hb=GN?GN.valueOf:void 0;function ra(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eY(){this.__data__=Xf?Xf(null):{},this.size=0}function tY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function rY(e){var t=this.__data__;if(Xf){var r=t[e];return r===Qb?void 0:r}return ri.call(t,e)?t[e]:void 0}function nY(e){var t=this.__data__;return Xf?t[e]!==void 0:ri.call(t,e)}function iY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Xf&&t===void 0?Qb:t,this}ra.prototype.clear=eY;ra.prototype.delete=tY;ra.prototype.get=rY;ra.prototype.has=nY;ra.prototype.set=iY;function Mi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oY(){this.__data__=[],this.size=0}function sY(e){var t=this.__data__,r=sg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():qG.call(t,r,1),--this.size,!0}function aY(e){var t=this.__data__,r=sg(t,e);return r<0?void 0:t[r][1]}function uY(e){return sg(this.__data__,e)>-1}function lY(e,t){var r=this.__data__,n=sg(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Mi.prototype.clear=oY;Mi.prototype.delete=sY;Mi.prototype.get=aY;Mi.prototype.has=uY;Mi.prototype.set=lY;function na(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function cY(){this.size=0,this.__data__={hash:new ra,map:new(Yf||Mi),string:new ra}}function fY(e){var t=ag(this,e).delete(e);return this.size-=t?1:0,t}function dY(e){return ag(this,e).get(e)}function hY(e){return ag(this,e).has(e)}function pY(e,t){var r=ag(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}na.prototype.clear=cY;na.prototype.delete=fY;na.prototype.get=dY;na.prototype.has=hY;na.prototype.set=pY;function rg(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new na;++t<r;)this.add(e[t])}function mY(e){return this.__data__.set(e,Qb),this}function gY(e){return this.__data__.has(e)}rg.prototype.add=rg.prototype.push=mY;rg.prototype.has=gY;function $o(e){var t=this.__data__=new Mi(e);this.size=t.size}function yY(){this.__data__=new Mi,this.size=0}function vY(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function wY(e){return this.__data__.get(e)}function xY(e){return this.__data__.has(e)}function bY(e,t){var r=this.__data__;if(r instanceof Mi){var n=r.__data__;if(!Yf||n.length<hG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new na(n)}return r.set(e,t),this.size=r.size,this}$o.prototype.clear=yY;$o.prototype.delete=vY;$o.prototype.get=wY;$o.prototype.has=xY;$o.prototype.set=bY;function EY(e,t){var r=ng(e),n=!r&&FY(e),i=!r&&!n&&Jb(e),o=!r&&!n&&!i&&wM(e),s=r||n||i||o,a=s?LG(e.length,String):[],u=a.length;for(var l in e)(t||ri.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||RY(l,u)))&&a.push(l);return a}function sg(e,t){for(var r=e.length;r--;)if(mM(e[r][0],t))return r;return-1}function _Y(e,t,r){var n=t(e);return ng(e)?n:MG(n,r(e))}function Qf(e){return e==null?e===void 0?wG:gG:ta&&ta in Object(e)?AY(e):LY(e)}function YN(e){return Jf(e)&&Qf(e)==J0}function hM(e,t,r,n,i){return e===t?!0:e==null||t==null||!Jf(e)&&!Jf(t)?e!==e&&t!==t:SY(e,t,r,n,hM,i)}function SY(e,t,r,n,i,o){var s=ng(e),a=ng(t),u=s?Kb:Fo(e),l=a?Kb:Fo(t);u=u==J0?Dl:u,l=l==J0?Dl:l;var p=u==Dl,h=l==Dl,g=u==l;if(g&&Jb(e)){if(!Jb(t))return!1;s=!0,p=!1}if(g&&!p)return o||(o=new $o),s||wM(e)?pM(e,t,r,n,i,o):DY(e,t,u,r,n,i,o);if(!(r&ig)){var w=p&&ri.call(e,"__wrapped__"),v=h&&ri.call(t,"__wrapped__");if(w||v){var _=w?e.value():e,D=v?t.value():t;return o||(o=new $o),i(_,D,r,n,o)}}return g?(o||(o=new $o),IY(e,t,r,n,i,o)):!1}function CY(e){if(!vM(e)||MY(e))return!1;var t=gM(e)?KG:AG;return t.test(ia(e))}function TY(e){return Jf(e)&&yM(e.length)&&!!bt[Qf(e)]}function PY(e){if(!kY(e))return GG(e);var t=[];for(var r in Object(e))ri.call(e,r)&&r!="constructor"&&t.push(r);return t}function pM(e,t,r,n,i,o){var s=r&ig,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var p=-1,h=!0,g=r&JN?new rg:void 0;for(o.set(e,t),o.set(t,e);++p<a;){var w=e[p],v=t[p];if(n)var _=s?n(v,w,p,t,e,o):n(w,v,p,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(g){if(!kG(t,function(D,C){if(!$G(g,C)&&(w===D||i(w,D,r,n,o)))return g.push(C)})){h=!1;break}}else if(!(w===v||i(w,v,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function DY(e,t,r,n,i,o,s){switch(r){case eg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sM:return!(e.byteLength!=t.byteLength||!o(new qN(e),new qN(t)));case ZN:case eM:case nM:return mM(+e,+t);case tM:return e.name==t.name&&e.message==t.message;case iM:case oM:return e==t+"";case Q0:var a=VG;case Z0:var u=n&ig;if(a||(a=jG),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;n|=JN,s.set(e,t);var p=pM(a(e),a(t),n,i,o,s);return s.delete(e),p;case vG:if(Hb)return Hb.call(e)==Hb.call(t)}return!1}function IY(e,t,r,n,i,o){var s=r&ig,a=XN(e),u=a.length,l=XN(t),p=l.length;if(u!=p&&!s)return!1;for(var h=u;h--;){var g=a[h];if(!(s?g in t:ri.call(t,g)))return!1}var w=o.get(e);if(w&&o.get(t))return w==t;var v=!0;o.set(e,t),o.set(t,e);for(var _=s;++h<u;){g=a[h];var D=e[g],C=t[g];if(n)var I=s?n(C,D,g,t,e,o):n(D,C,g,e,t,o);if(!(I===void 0?D===C||i(D,C,r,n,o):I)){v=!1;break}_||(_=g=="constructor")}if(v&&!_){var P=e.constructor,R=t.constructor;P!=R&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof R=="function"&&R instanceof R)&&(v=!1)}return o.delete(e),o.delete(t),v}function XN(e){return _Y(e,VY,OY)}function ag(e,t){var r=e.__data__;return NY(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Al(e,t){var r=UG(e,t);return CY(r)?r:void 0}function AY(e){var t=ri.call(e,ta),r=e[ta];try{e[ta]=void 0;var n=!0}catch(o){}var i=fM.call(e);return n&&(t?e[ta]=r:delete e[ta]),i}var OY=WN?function(e){return e==null?[]:(e=Object(e),NG(WN(e),function(t){return dM.call(e,t)}))}:BY,Fo=Qf;(Wb&&Fo(new Wb(new ArrayBuffer(1)))!=eg||Yf&&Fo(new Yf)!=Q0||Gb&&Fo(Gb.resolve())!=VN||Yb&&Fo(new Yb)!=Z0||Xb&&Fo(new Xb)!=qb)&&(Fo=function(e){var t=Qf(e),r=t==Dl?e.constructor:void 0,n=r?ia(r):"";if(n)switch(n){case YG:return eg;case XG:return Q0;case JG:return VN;case QG:return Z0;case ZG:return qb}return t});function RY(e,t){return t=t==null?QN:t,!!t&&(typeof e=="number"||OG.test(e))&&e>-1&&e%1==0&&e<t}function NY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function MY(e){return!!HN&&HN in e}function kY(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||og;return e===r}function LY(e){return fM.call(e)}function ia(e){if(e!=null){try{return cM.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function mM(e,t){return e===t||e!==e&&t!==t}var FY=YN(function(){return arguments}())?YN:function(e){return Jf(e)&&ri.call(e,"callee")&&!dM.call(e,"callee")},ng=Array.isArray;function $Y(e){return e!=null&&yM(e.length)&&!gM(e)}var Jb=WG||jY;function UY(e,t){return hM(e,t)}function gM(e){if(!vM(e))return!1;var t=Qf(e);return t==rM||t==mG||t==pG||t==yG}function yM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=QN}function vM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Jf(e){return e!=null&&typeof e=="object"}var wM=zN?FG(zN):TY;function VY(e){return $Y(e)?EY(e):PY(e)}function BY(){return[]}function jY(){return!1}Il.exports=UY});var tk=ee(hg=>{"use strict";c();d();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.getWindowMetadata=void 0;var ek=Xs();function GJ(){let e,t;try{e=ek.getDocumentOrThrow(),t=ek.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}hg.getWindowMetadata=GJ});var Ok=ee(vg=>{"use strict";c();d();f();Object.defineProperty(vg,"__esModule",{value:!0});vg.getWindowMetadata=void 0;var Ak=Xs();function vQ(){let e,t;try{e=Ak.getDocumentOrThrow(),t=Ak.getLocationOrThrow()}catch(h){return null}function r(){let h=e.getElementsByTagName("link"),g=[];for(let w=0;w<h.length;w++){let v=h[w],_=v.getAttribute("rel");if(_&&_.toLowerCase().indexOf("icon")>-1){let D=v.getAttribute("href");if(D)if(D.toLowerCase().indexOf("https:")===-1&&D.toLowerCase().indexOf("http:")===-1&&D.indexOf("//")!==0){let C=t.protocol+"//"+t.host;if(D.indexOf("/")===0)C+=D;else{let I=t.pathname.split("/");I.pop(),C+=I.join("/")+"/"+D}g.push(C)}else if(D.indexOf("//")===0){let C=t.protocol+D;g.push(C)}else g.push(D)}}return g}function n(...h){let g=e.getElementsByTagName("meta");for(let w=0;w<g.length;w++){let v=g[w],_=["itemprop","property","name"].map(D=>v.getAttribute(D)).filter(D=>D?h.includes(D):!1);if(_.length&&_){let D=v.getAttribute("content");if(D)return D}}return""}function i(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=e.title),h}function o(){return n("description","og:description","twitter:description","keywords")}let s=i(),a=o(),u=t.origin,l=r();return{description:a,url:u,icons:l,name:s}}vg.getWindowMetadata=vQ});var Lk=ee((Qve,wg)=>{c();d();f();(function(){"use strict";var e="input is invalid type",t="finalize already called",r=typeof window=="object",n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&typeof self=="object",o=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?n=globalThis:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof wg=="object"&&wg.exports,a=typeof define=="function"&&define.amd,u=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],g=[1,256,65536,16777216],w=[6,1536,393216,100663296],v=[0,8,16,24],_=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],D=[224,256,384,512],C=[128,256],I=["hex","buffer","arrayBuffer","array","digest"],P={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(T){return Object.prototype.toString.call(T)==="[object Array]"}),u&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(T){return typeof T=="object"&&T.buffer&&T.buffer.constructor===ArrayBuffer});for(var R=function(T,z,H){return function(q){return new b(T,z,T).update(q)[H]()}},U=function(T,z,H){return function(q,Z){return new b(T,z,Z).update(q)[H]()}},j=function(T,z,H){return function(q,Z,ie,re){return m["cshake"+T].update(q,Z,ie,re)[H]()}},F=function(T,z,H){return function(q,Z,ie,re){return m["kmac"+T].update(q,Z,ie,re)[H]()}},$=function(T,z,H,q){for(var Z=0;Z<I.length;++Z){var ie=I[Z];T[ie]=z(H,q,ie)}return T},G=function(T,z){var H=R(T,z,"hex");return H.create=function(){return new b(T,z,T)},H.update=function(q){return H.create().update(q)},$(H,R,T,z)},X=function(T,z){var H=U(T,z,"hex");return H.create=function(q){return new b(T,z,q)},H.update=function(q,Z){return H.create(Z).update(q)},$(H,U,T,z)},W=function(T,z){var H=P[T],q=j(T,z,"hex");return q.create=function(Z,ie,re){return!ie&&!re?m["shake"+T].create(Z):new b(T,z,Z).bytepad([ie,re],H)},q.update=function(Z,ie,re,te){return q.create(ie,re,te).update(Z)},$(q,j,T,z)},J=function(T,z){var H=P[T],q=F(T,z,"hex");return q.create=function(Z,ie,re){return new L(T,z,ie).bytepad(["KMAC",re],H).bytepad([Z],H)},q.update=function(Z,ie,re,te){return q.create(Z,re,te).update(ie)},$(q,F,T,z)},N=[{name:"keccak",padding:g,bits:D,createMethod:G},{name:"sha3",padding:w,bits:D,createMethod:G},{name:"shake",padding:p,bits:C,createMethod:X},{name:"cshake",padding:h,bits:C,createMethod:W},{name:"kmac",padding:h,bits:C,createMethod:J}],m={},E=[],A=0;A<N.length;++A)for(var O=N[A],M=O.bits,V=0;V<M.length;++V){var B=O.name+"_"+M[V];if(E.push(B),m[B]=O.createMethod(M[V],O.padding),O.name!=="sha3"){var k=O.name+M[V];E.push(k),m[k]=m[B]}}function b(T,z,H){this.blocks=[],this.s=[],this.padding=z,this.outputBits=H,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(T<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=H>>5,this.extraBytes=(H&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}b.prototype.update=function(T){if(this.finalized)throw new Error(t);var z,H=typeof T;if(H!=="string"){if(H==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}for(var q=this.blocks,Z=this.byteCount,ie=T.length,re=this.blockCount,te=0,he=this.s,ne,se;te<ie;){if(this.reset)for(this.reset=!1,q[0]=this.block,ne=1;ne<re+1;++ne)q[ne]=0;if(z)for(ne=this.start;te<ie&&ne<Z;++te)q[ne>>2]|=T[te]<<v[ne++&3];else for(ne=this.start;te<ie&&ne<Z;++te)se=T.charCodeAt(te),se<128?q[ne>>2]|=se<<v[ne++&3]:se<2048?(q[ne>>2]|=(192|se>>6)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]):se<55296||se>=57344?(q[ne>>2]|=(224|se>>12)<<v[ne++&3],q[ne>>2]|=(128|se>>6&63)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]):(se=65536+((se&1023)<<10|T.charCodeAt(++te)&1023),q[ne>>2]|=(240|se>>18)<<v[ne++&3],q[ne>>2]|=(128|se>>12&63)<<v[ne++&3],q[ne>>2]|=(128|se>>6&63)<<v[ne++&3],q[ne>>2]|=(128|se&63)<<v[ne++&3]);if(this.lastByteIndex=ne,ne>=Z){for(this.start=ne-Z,this.block=q[re],ne=0;ne<re;++ne)he[ne]^=q[ne];Q(he),this.reset=!0}else this.start=ne}return this},b.prototype.encode=function(T,z){var H=T&255,q=1,Z=[H];for(T=T>>8,H=T&255;H>0;)Z.unshift(H),T=T>>8,H=T&255,++q;return z?Z.push(q):Z.unshift(q),this.update(Z),Z.length},b.prototype.encodeString=function(T){var z,H=typeof T;if(H!=="string"){if(H==="object"){if(T===null)throw new Error(e);if(u&&T.constructor===ArrayBuffer)T=new Uint8Array(T);else if(!Array.isArray(T)&&(!u||!ArrayBuffer.isView(T)))throw new Error(e)}else throw new Error(e);z=!0}var q=0,Z=T.length;if(z)q=Z;else for(var ie=0;ie<T.length;++ie){var re=T.charCodeAt(ie);re<128?q+=1:re<2048?q+=2:re<55296||re>=57344?q+=3:(re=65536+((re&1023)<<10|T.charCodeAt(++ie)&1023),q+=4)}return q+=this.encode(q*8),this.update(T),q},b.prototype.bytepad=function(T,z){for(var H=this.encode(z),q=0;q<T.length;++q)H+=this.encodeString(T[q]);var Z=z-H%z,ie=[];return ie.length=Z,this.update(ie),this},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var T=this.blocks,z=this.lastByteIndex,H=this.blockCount,q=this.s;if(T[z>>2]|=this.padding[z&3],this.lastByteIndex===this.byteCount)for(T[0]=T[H],z=1;z<H+1;++z)T[z]=0;for(T[H-1]|=2147483648,z=0;z<H;++z)q[z]^=T[z];Q(q)}},b.prototype.toString=b.prototype.hex=function(){this.finalize();for(var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re="",te;ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)te=z[Z],re+=l[te>>4&15]+l[te&15]+l[te>>12&15]+l[te>>8&15]+l[te>>20&15]+l[te>>16&15]+l[te>>28&15]+l[te>>24&15];ie%T===0&&(Q(z),Z=0)}return q&&(te=z[Z],re+=l[te>>4&15]+l[te&15],q>1&&(re+=l[te>>12&15]+l[te>>8&15]),q>2&&(re+=l[te>>20&15]+l[te>>16&15])),re},b.prototype.arrayBuffer=function(){this.finalize();var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re=this.outputBits>>3,te;q?te=new ArrayBuffer(H+1<<2):te=new ArrayBuffer(re);for(var he=new Uint32Array(te);ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)he[ie]=z[Z];ie%T===0&&Q(z)}return q&&(he[Z]=z[Z],te=te.slice(0,re)),te},b.prototype.buffer=b.prototype.arrayBuffer,b.prototype.digest=b.prototype.array=function(){this.finalize();for(var T=this.blockCount,z=this.s,H=this.outputBlocks,q=this.extraBytes,Z=0,ie=0,re=[],te,he;ie<H;){for(Z=0;Z<T&&ie<H;++Z,++ie)te=ie<<2,he=z[Z],re[te]=he&255,re[te+1]=he>>8&255,re[te+2]=he>>16&255,re[te+3]=he>>24&255;ie%T===0&&Q(z)}return q&&(te=ie<<2,he=z[Z],re[te]=he&255,q>1&&(re[te+1]=he>>8&255),q>2&&(re[te+2]=he>>16&255)),re};function L(T,z,H){b.call(this,T,z,H)}L.prototype=new b,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),b.prototype.finalize.call(this)};var Q=function(T){var z,H,q,Z,ie,re,te,he,ne,se,Ho,Be,je,Ko,ze,He,qo,Ke,qe,Wo,We,Ge,Go,Ye,Xe,Yo,Je,Qe,Xo,Ze,et,Jo,tt,rt,Qo,nt,it,Zo,ot,st,es,at,ut,ts,lt,ct,rs,ft,dt,ns,ht,pt,is,mt,gt,os,yt,vt,Fi,$i,Ui,Vi,Bi;for(q=0;q<48;q+=2)Z=T[0]^T[10]^T[20]^T[30]^T[40],ie=T[1]^T[11]^T[21]^T[31]^T[41],re=T[2]^T[12]^T[22]^T[32]^T[42],te=T[3]^T[13]^T[23]^T[33]^T[43],he=T[4]^T[14]^T[24]^T[34]^T[44],ne=T[5]^T[15]^T[25]^T[35]^T[45],se=T[6]^T[16]^T[26]^T[36]^T[46],Ho=T[7]^T[17]^T[27]^T[37]^T[47],Be=T[8]^T[18]^T[28]^T[38]^T[48],je=T[9]^T[19]^T[29]^T[39]^T[49],z=Be^(re<<1|te>>>31),H=je^(te<<1|re>>>31),T[0]^=z,T[1]^=H,T[10]^=z,T[11]^=H,T[20]^=z,T[21]^=H,T[30]^=z,T[31]^=H,T[40]^=z,T[41]^=H,z=Z^(he<<1|ne>>>31),H=ie^(ne<<1|he>>>31),T[2]^=z,T[3]^=H,T[12]^=z,T[13]^=H,T[22]^=z,T[23]^=H,T[32]^=z,T[33]^=H,T[42]^=z,T[43]^=H,z=re^(se<<1|Ho>>>31),H=te^(Ho<<1|se>>>31),T[4]^=z,T[5]^=H,T[14]^=z,T[15]^=H,T[24]^=z,T[25]^=H,T[34]^=z,T[35]^=H,T[44]^=z,T[45]^=H,z=he^(Be<<1|je>>>31),H=ne^(je<<1|Be>>>31),T[6]^=z,T[7]^=H,T[16]^=z,T[17]^=H,T[26]^=z,T[27]^=H,T[36]^=z,T[37]^=H,T[46]^=z,T[47]^=H,z=se^(Z<<1|ie>>>31),H=Ho^(ie<<1|Z>>>31),T[8]^=z,T[9]^=H,T[18]^=z,T[19]^=H,T[28]^=z,T[29]^=H,T[38]^=z,T[39]^=H,T[48]^=z,T[49]^=H,Ko=T[0],ze=T[1],ct=T[11]<<4|T[10]>>>28,rs=T[10]<<4|T[11]>>>28,Qe=T[20]<<3|T[21]>>>29,Xo=T[21]<<3|T[20]>>>29,$i=T[31]<<9|T[30]>>>23,Ui=T[30]<<9|T[31]>>>23,at=T[40]<<18|T[41]>>>14,ut=T[41]<<18|T[40]>>>14,rt=T[2]<<1|T[3]>>>31,Qo=T[3]<<1|T[2]>>>31,He=T[13]<<12|T[12]>>>20,qo=T[12]<<12|T[13]>>>20,ft=T[22]<<10|T[23]>>>22,dt=T[23]<<10|T[22]>>>22,Ze=T[33]<<13|T[32]>>>19,et=T[32]<<13|T[33]>>>19,Vi=T[42]<<2|T[43]>>>30,Bi=T[43]<<2|T[42]>>>30,mt=T[5]<<30|T[4]>>>2,gt=T[4]<<30|T[5]>>>2,nt=T[14]<<6|T[15]>>>26,it=T[15]<<6|T[14]>>>26,Ke=T[25]<<11|T[24]>>>21,qe=T[24]<<11|T[25]>>>21,ns=T[34]<<15|T[35]>>>17,ht=T[35]<<15|T[34]>>>17,Jo=T[45]<<29|T[44]>>>3,tt=T[44]<<29|T[45]>>>3,Ye=T[6]<<28|T[7]>>>4,Xe=T[7]<<28|T[6]>>>4,os=T[17]<<23|T[16]>>>9,yt=T[16]<<23|T[17]>>>9,Zo=T[26]<<25|T[27]>>>7,ot=T[27]<<25|T[26]>>>7,Wo=T[36]<<21|T[37]>>>11,We=T[37]<<21|T[36]>>>11,pt=T[47]<<24|T[46]>>>8,is=T[46]<<24|T[47]>>>8,ts=T[8]<<27|T[9]>>>5,lt=T[9]<<27|T[8]>>>5,Yo=T[18]<<20|T[19]>>>12,Je=T[19]<<20|T[18]>>>12,vt=T[29]<<7|T[28]>>>25,Fi=T[28]<<7|T[29]>>>25,st=T[38]<<8|T[39]>>>24,es=T[39]<<8|T[38]>>>24,Ge=T[48]<<14|T[49]>>>18,Go=T[49]<<14|T[48]>>>18,T[0]=Ko^~He&Ke,T[1]=ze^~qo&qe,T[10]=Ye^~Yo&Qe,T[11]=Xe^~Je&Xo,T[20]=rt^~nt&Zo,T[21]=Qo^~it&ot,T[30]=ts^~ct&ft,T[31]=lt^~rs&dt,T[40]=mt^~os&vt,T[41]=gt^~yt&Fi,T[2]=He^~Ke&Wo,T[3]=qo^~qe&We,T[12]=Yo^~Qe&Ze,T[13]=Je^~Xo&et,T[22]=nt^~Zo&st,T[23]=it^~ot&es,T[32]=ct^~ft&ns,T[33]=rs^~dt&ht,T[42]=os^~vt&$i,T[43]=yt^~Fi&Ui,T[4]=Ke^~Wo&Ge,T[5]=qe^~We&Go,T[14]=Qe^~Ze&Jo,T[15]=Xo^~et&tt,T[24]=Zo^~st&at,T[25]=ot^~es&ut,T[34]=ft^~ns&pt,T[35]=dt^~ht&is,T[44]=vt^~$i&Vi,T[45]=Fi^~Ui&Bi,T[6]=Wo^~Ge&Ko,T[7]=We^~Go&ze,T[16]=Ze^~Jo&Ye,T[17]=et^~tt&Xe,T[26]=st^~at&rt,T[27]=es^~ut&Qo,T[36]=ns^~pt&ts,T[37]=ht^~is&lt,T[46]=$i^~Vi&mt,T[47]=Ui^~Bi&gt,T[8]=Ge^~Ko&He,T[9]=Go^~ze&qo,T[18]=Jo^~Ye&Yo,T[19]=tt^~Xe&Je,T[28]=at^~rt&nt,T[29]=ut^~Qo&it,T[38]=pt^~ts&ct,T[39]=is^~lt&rs,T[48]=Vi^~mt&os,T[49]=Bi^~gt&yt,T[0]^=_[q],T[1]^=_[q+1]};if(s)wg.exports=m;else{for(A=0;A<E.length;++A)n[E[A]]=m[E[A]];a&&define(function(){return m})}})()});var Fk=ee(()=>{c();d();f()});var Uk=ee(($k,$E)=>{c();d();f();(function(e,t){"use strict";function r(N,m){if(!N)throw new Error(m||"Assertion failed")}function n(N,m){N.super_=m;var E=function(){};E.prototype=m.prototype,N.prototype=new E,N.prototype.constructor=N}function i(N,m,E){if(i.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((m==="le"||m==="be")&&(E=m,m=10),this._init(N||0,m||10,E||"be"))}typeof e=="object"?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=Fk().Buffer}catch(N){}i.isBN=function(m){return m instanceof i?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===i.wordSize&&Array.isArray(m.words)},i.max=function(m,E){return m.cmp(E)>0?m:E},i.min=function(m,E){return m.cmp(E)<0?m:E},i.prototype._init=function(m,E,A){if(typeof m=="number")return this._initNumber(m,E,A);if(typeof m=="object")return this._initArray(m,E,A);E==="hex"&&(E=16),r(E===(E|0)&&E>=2&&E<=36),m=m.toString().replace(/\s+/g,"");var O=0;m[0]==="-"&&(O++,this.negative=1),O<m.length&&(E===16?this._parseHex(m,O,A):(this._parseBase(m,E,O),A==="le"&&this._initArray(this.toArray(),E,A)))},i.prototype._initNumber=function(m,E,A){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(r(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),A==="le"&&this._initArray(this.toArray(),E,A)},i.prototype._initArray=function(m,E,A){if(r(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var M,V,B=0;if(A==="be")for(O=m.length-1,M=0;O>=0;O-=3)V=m[O]|m[O-1]<<8|m[O-2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);else if(A==="le")for(O=0,M=0;O<m.length;O+=3)V=m[O]|m[O+1]<<8|m[O+2]<<16,this.words[M]|=V<<B&67108863,this.words[M+1]=V>>>26-B&67108863,B+=24,B>=26&&(B-=26,M++);return this._strip()};function s(N,m){var E=N.charCodeAt(m);if(E>=48&&E<=57)return E-48;if(E>=65&&E<=70)return E-55;if(E>=97&&E<=102)return E-87;r(!1,"Invalid character in "+N)}function a(N,m,E){var A=s(N,E);return E-1>=m&&(A|=s(N,E-1)<<4),A}i.prototype._parseHex=function(m,E,A){this.length=Math.ceil((m.length-E)/6),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var M=0,V=0,B;if(A==="be")for(O=m.length-1;O>=E;O-=2)B=a(m,E,O)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8;else{var k=m.length-E;for(O=k%2===0?E+1:E;O<m.length;O+=2)B=a(m,E,O)<<M,this.words[V]|=B&67108863,M>=18?(M-=18,V+=1,this.words[V]|=B>>>26):M+=8}this._strip()};function u(N,m,E,A){for(var O=0,M=0,V=Math.min(N.length,E),B=m;B<V;B++){var k=N.charCodeAt(B)-48;O*=A,k>=49?M=k-49+10:k>=17?M=k-17+10:M=k,r(k>=0&&M<A,"Invalid character"),O+=M}return O}i.prototype._parseBase=function(m,E,A){this.words=[0],this.length=1;for(var O=0,M=1;M<=67108863;M*=E)O++;O--,M=M/E|0;for(var V=m.length-A,B=V%O,k=Math.min(V,V-B)+A,b=0,L=A;L<k;L+=O)b=u(m,L,L+O,E),this.imuln(M),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b);if(B!==0){var Q=1;for(b=u(m,L,m.length,E),L=0;L<B;L++)Q*=E;this.imuln(Q),this.words[0]+b<67108864?this.words[0]+=b:this._iaddn(b)}this._strip()},i.prototype.copy=function(m){m.words=new Array(this.length);for(var E=0;E<this.length;E++)m.words[E]=this.words[E];m.length=this.length,m.negative=this.negative,m.red=this.red};function l(N,m){N.words=m.words,N.length=m.length,N.negative=m.negative,N.red=m.red}if(i.prototype._move=function(m){l(m,this)},i.prototype.clone=function(){var m=new i(null);return this.copy(m),m},i.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(N){i.prototype.inspect=p}else i.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(m,E){m=m||10,E=E|0||1;var A;if(m===16||m==="hex"){A="";for(var O=0,M=0,V=0;V<this.length;V++){var B=this.words[V],k=((B<<O|M)&16777215).toString(16);M=B>>>24-O&16777215,O+=2,O>=26&&(O-=26,V--),M!==0||V!==this.length-1?A=h[6-k.length]+k+A:A=k+A}for(M!==0&&(A=M.toString(16)+A);A.length%E!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(m===(m|0)&&m>=2&&m<=36){var b=g[m],L=w[m];A="";var Q=this.clone();for(Q.negative=0;!Q.isZero();){var T=Q.modrn(L).toString(m);Q=Q.idivn(L),Q.isZero()?A=T+A:A=h[b-T.length]+T+A}for(this.isZero()&&(A="0"+A);A.length%E!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(m,E){return this.toArrayLike(o,m,E)}),i.prototype.toArray=function(m,E){return this.toArrayLike(Array,m,E)};var v=function(m,E){return m.allocUnsafe?m.allocUnsafe(E):new m(E)};i.prototype.toArrayLike=function(m,E,A){this._strip();var O=this.byteLength(),M=A||Math.max(1,O);r(O<=M,"byte array longer than desired length"),r(M>0,"Requested array length <= 0");var V=v(m,M),B=E==="le"?"LE":"BE";return this["_toArrayLike"+B](V,O),V},i.prototype._toArrayLikeLE=function(m,E){for(var A=0,O=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|O;m[A++]=B&255,A<m.length&&(m[A++]=B>>8&255),A<m.length&&(m[A++]=B>>16&255),V===6?(A<m.length&&(m[A++]=B>>24&255),O=0,V=0):(O=B>>>24,V+=2)}if(A<m.length)for(m[A++]=O;A<m.length;)m[A++]=0},i.prototype._toArrayLikeBE=function(m,E){for(var A=m.length-1,O=0,M=0,V=0;M<this.length;M++){var B=this.words[M]<<V|O;m[A--]=B&255,A>=0&&(m[A--]=B>>8&255),A>=0&&(m[A--]=B>>16&255),V===6?(A>=0&&(m[A--]=B>>24&255),O=0,V=0):(O=B>>>24,V+=2)}if(A>=0)for(m[A--]=O;A>=0;)m[A--]=0},Math.clz32?i.prototype._countBits=function(m){return 32-Math.clz32(m)}:i.prototype._countBits=function(m){var E=m,A=0;return E>=4096&&(A+=13,E>>>=13),E>=64&&(A+=7,E>>>=7),E>=8&&(A+=4,E>>>=4),E>=2&&(A+=2,E>>>=2),A+E},i.prototype._zeroBits=function(m){if(m===0)return 26;var E=m,A=0;return(E&8191)===0&&(A+=13,E>>>=13),(E&127)===0&&(A+=7,E>>>=7),(E&15)===0&&(A+=4,E>>>=4),(E&3)===0&&(A+=2,E>>>=2),(E&1)===0&&A++,A},i.prototype.bitLength=function(){var m=this.words[this.length-1],E=this._countBits(m);return(this.length-1)*26+E};function _(N){for(var m=new Array(N.bitLength()),E=0;E<m.length;E++){var A=E/26|0,O=E%26;m[E]=N.words[A]>>>O&1}return m}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,E=0;E<this.length;E++){var A=this._zeroBits(this.words[E]);if(m+=A,A!==26)break}return m},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},i.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var E=0;E<m.length;E++)this.words[E]=this.words[E]|m.words[E];return this._strip()},i.prototype.ior=function(m){return r((this.negative|m.negative)===0),this.iuor(m)},i.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},i.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},i.prototype.iuand=function(m){var E;this.length>m.length?E=m:E=this;for(var A=0;A<E.length;A++)this.words[A]=this.words[A]&m.words[A];return this.length=E.length,this._strip()},i.prototype.iand=function(m){return r((this.negative|m.negative)===0),this.iuand(m)},i.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},i.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},i.prototype.iuxor=function(m){var E,A;this.length>m.length?(E=this,A=m):(E=m,A=this);for(var O=0;O<A.length;O++)this.words[O]=E.words[O]^A.words[O];if(this!==E)for(;O<E.length;O++)this.words[O]=E.words[O];return this.length=E.length,this._strip()},i.prototype.ixor=function(m){return r((this.negative|m.negative)===0),this.iuxor(m)},i.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},i.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},i.prototype.inotn=function(m){r(typeof m=="number"&&m>=0);var E=Math.ceil(m/26)|0,A=m%26;this._expand(E),A>0&&E--;for(var O=0;O<E;O++)this.words[O]=~this.words[O]&67108863;return A>0&&(this.words[O]=~this.words[O]&67108863>>26-A),this._strip()},i.prototype.notn=function(m){return this.clone().inotn(m)},i.prototype.setn=function(m,E){r(typeof m=="number"&&m>=0);var A=m/26|0,O=m%26;return this._expand(A+1),E?this.words[A]=this.words[A]|1<<O:this.words[A]=this.words[A]&~(1<<O),this._strip()},i.prototype.iadd=function(m){var E;if(this.negative!==0&&m.negative===0)return this.negative=0,E=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,E=this.isub(m),m.negative=1,E._normSign();var A,O;this.length>m.length?(A=this,O=m):(A=m,O=this);for(var M=0,V=0;V<O.length;V++)E=(A.words[V]|0)+(O.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;for(;M!==0&&V<A.length;V++)E=(A.words[V]|0)+M,this.words[V]=E&67108863,M=E>>>26;if(this.length=A.length,M!==0)this.words[this.length]=M,this.length++;else if(A!==this)for(;V<A.length;V++)this.words[V]=A.words[V];return this},i.prototype.add=function(m){var E;return m.negative!==0&&this.negative===0?(m.negative=0,E=this.sub(m),m.negative^=1,E):m.negative===0&&this.negative!==0?(this.negative=0,E=m.sub(this),this.negative=1,E):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},i.prototype.isub=function(m){if(m.negative!==0){m.negative=0;var E=this.iadd(m);return m.negative=1,E._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var A=this.cmp(m);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,M;A>0?(O=this,M=m):(O=m,M=this);for(var V=0,B=0;B<M.length;B++)E=(O.words[B]|0)-(M.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;for(;V!==0&&B<O.length;B++)E=(O.words[B]|0)+V,V=E>>26,this.words[B]=E&67108863;if(V===0&&B<O.length&&O!==this)for(;B<O.length;B++)this.words[B]=O.words[B];return this.length=Math.max(this.length,B),O!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(m){return this.clone().isub(m)};function D(N,m,E){E.negative=m.negative^N.negative;var A=N.length+m.length|0;E.length=A,A=A-1|0;var O=N.words[0]|0,M=m.words[0]|0,V=O*M,B=V&67108863,k=V/67108864|0;E.words[0]=B;for(var b=1;b<A;b++){for(var L=k>>>26,Q=k&67108863,T=Math.min(b,m.length-1),z=Math.max(0,b-N.length+1);z<=T;z++){var H=b-z|0;O=N.words[H]|0,M=m.words[z]|0,V=O*M+Q,L+=V/67108864|0,Q=V&67108863}E.words[b]=Q|0,k=L|0}return k!==0?E.words[b]=k|0:E.length--,E._strip()}var C=function(m,E,A){var O=m.words,M=E.words,V=A.words,B=0,k,b,L,Q=O[0]|0,T=Q&8191,z=Q>>>13,H=O[1]|0,q=H&8191,Z=H>>>13,ie=O[2]|0,re=ie&8191,te=ie>>>13,he=O[3]|0,ne=he&8191,se=he>>>13,Ho=O[4]|0,Be=Ho&8191,je=Ho>>>13,Ko=O[5]|0,ze=Ko&8191,He=Ko>>>13,qo=O[6]|0,Ke=qo&8191,qe=qo>>>13,Wo=O[7]|0,We=Wo&8191,Ge=Wo>>>13,Go=O[8]|0,Ye=Go&8191,Xe=Go>>>13,Yo=O[9]|0,Je=Yo&8191,Qe=Yo>>>13,Xo=M[0]|0,Ze=Xo&8191,et=Xo>>>13,Jo=M[1]|0,tt=Jo&8191,rt=Jo>>>13,Qo=M[2]|0,nt=Qo&8191,it=Qo>>>13,Zo=M[3]|0,ot=Zo&8191,st=Zo>>>13,es=M[4]|0,at=es&8191,ut=es>>>13,ts=M[5]|0,lt=ts&8191,ct=ts>>>13,rs=M[6]|0,ft=rs&8191,dt=rs>>>13,ns=M[7]|0,ht=ns&8191,pt=ns>>>13,is=M[8]|0,mt=is&8191,gt=is>>>13,os=M[9]|0,yt=os&8191,vt=os>>>13;A.negative=m.negative^E.negative,A.length=19,k=Math.imul(T,Ze),b=Math.imul(T,et),b=b+Math.imul(z,Ze)|0,L=Math.imul(z,et);var Fi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,k=Math.imul(q,Ze),b=Math.imul(q,et),b=b+Math.imul(Z,Ze)|0,L=Math.imul(Z,et),k=k+Math.imul(T,tt)|0,b=b+Math.imul(T,rt)|0,b=b+Math.imul(z,tt)|0,L=L+Math.imul(z,rt)|0;var $i=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($i>>>26)|0,$i&=67108863,k=Math.imul(re,Ze),b=Math.imul(re,et),b=b+Math.imul(te,Ze)|0,L=Math.imul(te,et),k=k+Math.imul(q,tt)|0,b=b+Math.imul(q,rt)|0,b=b+Math.imul(Z,tt)|0,L=L+Math.imul(Z,rt)|0,k=k+Math.imul(T,nt)|0,b=b+Math.imul(T,it)|0,b=b+Math.imul(z,nt)|0,L=L+Math.imul(z,it)|0;var Ui=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,k=Math.imul(ne,Ze),b=Math.imul(ne,et),b=b+Math.imul(se,Ze)|0,L=Math.imul(se,et),k=k+Math.imul(re,tt)|0,b=b+Math.imul(re,rt)|0,b=b+Math.imul(te,tt)|0,L=L+Math.imul(te,rt)|0,k=k+Math.imul(q,nt)|0,b=b+Math.imul(q,it)|0,b=b+Math.imul(Z,nt)|0,L=L+Math.imul(Z,it)|0,k=k+Math.imul(T,ot)|0,b=b+Math.imul(T,st)|0,b=b+Math.imul(z,ot)|0,L=L+Math.imul(z,st)|0;var Vi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,k=Math.imul(Be,Ze),b=Math.imul(Be,et),b=b+Math.imul(je,Ze)|0,L=Math.imul(je,et),k=k+Math.imul(ne,tt)|0,b=b+Math.imul(ne,rt)|0,b=b+Math.imul(se,tt)|0,L=L+Math.imul(se,rt)|0,k=k+Math.imul(re,nt)|0,b=b+Math.imul(re,it)|0,b=b+Math.imul(te,nt)|0,L=L+Math.imul(te,it)|0,k=k+Math.imul(q,ot)|0,b=b+Math.imul(q,st)|0,b=b+Math.imul(Z,ot)|0,L=L+Math.imul(Z,st)|0,k=k+Math.imul(T,at)|0,b=b+Math.imul(T,ut)|0,b=b+Math.imul(z,at)|0,L=L+Math.imul(z,ut)|0;var Bi=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,k=Math.imul(ze,Ze),b=Math.imul(ze,et),b=b+Math.imul(He,Ze)|0,L=Math.imul(He,et),k=k+Math.imul(Be,tt)|0,b=b+Math.imul(Be,rt)|0,b=b+Math.imul(je,tt)|0,L=L+Math.imul(je,rt)|0,k=k+Math.imul(ne,nt)|0,b=b+Math.imul(ne,it)|0,b=b+Math.imul(se,nt)|0,L=L+Math.imul(se,it)|0,k=k+Math.imul(re,ot)|0,b=b+Math.imul(re,st)|0,b=b+Math.imul(te,ot)|0,L=L+Math.imul(te,st)|0,k=k+Math.imul(q,at)|0,b=b+Math.imul(q,ut)|0,b=b+Math.imul(Z,at)|0,L=L+Math.imul(Z,ut)|0,k=k+Math.imul(T,lt)|0,b=b+Math.imul(T,ct)|0,b=b+Math.imul(z,lt)|0,L=L+Math.imul(z,ct)|0;var Ag=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ag>>>26)|0,Ag&=67108863,k=Math.imul(Ke,Ze),b=Math.imul(Ke,et),b=b+Math.imul(qe,Ze)|0,L=Math.imul(qe,et),k=k+Math.imul(ze,tt)|0,b=b+Math.imul(ze,rt)|0,b=b+Math.imul(He,tt)|0,L=L+Math.imul(He,rt)|0,k=k+Math.imul(Be,nt)|0,b=b+Math.imul(Be,it)|0,b=b+Math.imul(je,nt)|0,L=L+Math.imul(je,it)|0,k=k+Math.imul(ne,ot)|0,b=b+Math.imul(ne,st)|0,b=b+Math.imul(se,ot)|0,L=L+Math.imul(se,st)|0,k=k+Math.imul(re,at)|0,b=b+Math.imul(re,ut)|0,b=b+Math.imul(te,at)|0,L=L+Math.imul(te,ut)|0,k=k+Math.imul(q,lt)|0,b=b+Math.imul(q,ct)|0,b=b+Math.imul(Z,lt)|0,L=L+Math.imul(Z,ct)|0,k=k+Math.imul(T,ft)|0,b=b+Math.imul(T,dt)|0,b=b+Math.imul(z,ft)|0,L=L+Math.imul(z,dt)|0;var Og=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Og>>>26)|0,Og&=67108863,k=Math.imul(We,Ze),b=Math.imul(We,et),b=b+Math.imul(Ge,Ze)|0,L=Math.imul(Ge,et),k=k+Math.imul(Ke,tt)|0,b=b+Math.imul(Ke,rt)|0,b=b+Math.imul(qe,tt)|0,L=L+Math.imul(qe,rt)|0,k=k+Math.imul(ze,nt)|0,b=b+Math.imul(ze,it)|0,b=b+Math.imul(He,nt)|0,L=L+Math.imul(He,it)|0,k=k+Math.imul(Be,ot)|0,b=b+Math.imul(Be,st)|0,b=b+Math.imul(je,ot)|0,L=L+Math.imul(je,st)|0,k=k+Math.imul(ne,at)|0,b=b+Math.imul(ne,ut)|0,b=b+Math.imul(se,at)|0,L=L+Math.imul(se,ut)|0,k=k+Math.imul(re,lt)|0,b=b+Math.imul(re,ct)|0,b=b+Math.imul(te,lt)|0,L=L+Math.imul(te,ct)|0,k=k+Math.imul(q,ft)|0,b=b+Math.imul(q,dt)|0,b=b+Math.imul(Z,ft)|0,L=L+Math.imul(Z,dt)|0,k=k+Math.imul(T,ht)|0,b=b+Math.imul(T,pt)|0,b=b+Math.imul(z,ht)|0,L=L+Math.imul(z,pt)|0;var Rg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Rg>>>26)|0,Rg&=67108863,k=Math.imul(Ye,Ze),b=Math.imul(Ye,et),b=b+Math.imul(Xe,Ze)|0,L=Math.imul(Xe,et),k=k+Math.imul(We,tt)|0,b=b+Math.imul(We,rt)|0,b=b+Math.imul(Ge,tt)|0,L=L+Math.imul(Ge,rt)|0,k=k+Math.imul(Ke,nt)|0,b=b+Math.imul(Ke,it)|0,b=b+Math.imul(qe,nt)|0,L=L+Math.imul(qe,it)|0,k=k+Math.imul(ze,ot)|0,b=b+Math.imul(ze,st)|0,b=b+Math.imul(He,ot)|0,L=L+Math.imul(He,st)|0,k=k+Math.imul(Be,at)|0,b=b+Math.imul(Be,ut)|0,b=b+Math.imul(je,at)|0,L=L+Math.imul(je,ut)|0,k=k+Math.imul(ne,lt)|0,b=b+Math.imul(ne,ct)|0,b=b+Math.imul(se,lt)|0,L=L+Math.imul(se,ct)|0,k=k+Math.imul(re,ft)|0,b=b+Math.imul(re,dt)|0,b=b+Math.imul(te,ft)|0,L=L+Math.imul(te,dt)|0,k=k+Math.imul(q,ht)|0,b=b+Math.imul(q,pt)|0,b=b+Math.imul(Z,ht)|0,L=L+Math.imul(Z,pt)|0,k=k+Math.imul(T,mt)|0,b=b+Math.imul(T,gt)|0,b=b+Math.imul(z,mt)|0,L=L+Math.imul(z,gt)|0;var Ng=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ng>>>26)|0,Ng&=67108863,k=Math.imul(Je,Ze),b=Math.imul(Je,et),b=b+Math.imul(Qe,Ze)|0,L=Math.imul(Qe,et),k=k+Math.imul(Ye,tt)|0,b=b+Math.imul(Ye,rt)|0,b=b+Math.imul(Xe,tt)|0,L=L+Math.imul(Xe,rt)|0,k=k+Math.imul(We,nt)|0,b=b+Math.imul(We,it)|0,b=b+Math.imul(Ge,nt)|0,L=L+Math.imul(Ge,it)|0,k=k+Math.imul(Ke,ot)|0,b=b+Math.imul(Ke,st)|0,b=b+Math.imul(qe,ot)|0,L=L+Math.imul(qe,st)|0,k=k+Math.imul(ze,at)|0,b=b+Math.imul(ze,ut)|0,b=b+Math.imul(He,at)|0,L=L+Math.imul(He,ut)|0,k=k+Math.imul(Be,lt)|0,b=b+Math.imul(Be,ct)|0,b=b+Math.imul(je,lt)|0,L=L+Math.imul(je,ct)|0,k=k+Math.imul(ne,ft)|0,b=b+Math.imul(ne,dt)|0,b=b+Math.imul(se,ft)|0,L=L+Math.imul(se,dt)|0,k=k+Math.imul(re,ht)|0,b=b+Math.imul(re,pt)|0,b=b+Math.imul(te,ht)|0,L=L+Math.imul(te,pt)|0,k=k+Math.imul(q,mt)|0,b=b+Math.imul(q,gt)|0,b=b+Math.imul(Z,mt)|0,L=L+Math.imul(Z,gt)|0,k=k+Math.imul(T,yt)|0,b=b+Math.imul(T,vt)|0,b=b+Math.imul(z,yt)|0,L=L+Math.imul(z,vt)|0;var Mg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Mg>>>26)|0,Mg&=67108863,k=Math.imul(Je,tt),b=Math.imul(Je,rt),b=b+Math.imul(Qe,tt)|0,L=Math.imul(Qe,rt),k=k+Math.imul(Ye,nt)|0,b=b+Math.imul(Ye,it)|0,b=b+Math.imul(Xe,nt)|0,L=L+Math.imul(Xe,it)|0,k=k+Math.imul(We,ot)|0,b=b+Math.imul(We,st)|0,b=b+Math.imul(Ge,ot)|0,L=L+Math.imul(Ge,st)|0,k=k+Math.imul(Ke,at)|0,b=b+Math.imul(Ke,ut)|0,b=b+Math.imul(qe,at)|0,L=L+Math.imul(qe,ut)|0,k=k+Math.imul(ze,lt)|0,b=b+Math.imul(ze,ct)|0,b=b+Math.imul(He,lt)|0,L=L+Math.imul(He,ct)|0,k=k+Math.imul(Be,ft)|0,b=b+Math.imul(Be,dt)|0,b=b+Math.imul(je,ft)|0,L=L+Math.imul(je,dt)|0,k=k+Math.imul(ne,ht)|0,b=b+Math.imul(ne,pt)|0,b=b+Math.imul(se,ht)|0,L=L+Math.imul(se,pt)|0,k=k+Math.imul(re,mt)|0,b=b+Math.imul(re,gt)|0,b=b+Math.imul(te,mt)|0,L=L+Math.imul(te,gt)|0,k=k+Math.imul(q,yt)|0,b=b+Math.imul(q,vt)|0,b=b+Math.imul(Z,yt)|0,L=L+Math.imul(Z,vt)|0;var kg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(kg>>>26)|0,kg&=67108863,k=Math.imul(Je,nt),b=Math.imul(Je,it),b=b+Math.imul(Qe,nt)|0,L=Math.imul(Qe,it),k=k+Math.imul(Ye,ot)|0,b=b+Math.imul(Ye,st)|0,b=b+Math.imul(Xe,ot)|0,L=L+Math.imul(Xe,st)|0,k=k+Math.imul(We,at)|0,b=b+Math.imul(We,ut)|0,b=b+Math.imul(Ge,at)|0,L=L+Math.imul(Ge,ut)|0,k=k+Math.imul(Ke,lt)|0,b=b+Math.imul(Ke,ct)|0,b=b+Math.imul(qe,lt)|0,L=L+Math.imul(qe,ct)|0,k=k+Math.imul(ze,ft)|0,b=b+Math.imul(ze,dt)|0,b=b+Math.imul(He,ft)|0,L=L+Math.imul(He,dt)|0,k=k+Math.imul(Be,ht)|0,b=b+Math.imul(Be,pt)|0,b=b+Math.imul(je,ht)|0,L=L+Math.imul(je,pt)|0,k=k+Math.imul(ne,mt)|0,b=b+Math.imul(ne,gt)|0,b=b+Math.imul(se,mt)|0,L=L+Math.imul(se,gt)|0,k=k+Math.imul(re,yt)|0,b=b+Math.imul(re,vt)|0,b=b+Math.imul(te,yt)|0,L=L+Math.imul(te,vt)|0;var Lg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Lg>>>26)|0,Lg&=67108863,k=Math.imul(Je,ot),b=Math.imul(Je,st),b=b+Math.imul(Qe,ot)|0,L=Math.imul(Qe,st),k=k+Math.imul(Ye,at)|0,b=b+Math.imul(Ye,ut)|0,b=b+Math.imul(Xe,at)|0,L=L+Math.imul(Xe,ut)|0,k=k+Math.imul(We,lt)|0,b=b+Math.imul(We,ct)|0,b=b+Math.imul(Ge,lt)|0,L=L+Math.imul(Ge,ct)|0,k=k+Math.imul(Ke,ft)|0,b=b+Math.imul(Ke,dt)|0,b=b+Math.imul(qe,ft)|0,L=L+Math.imul(qe,dt)|0,k=k+Math.imul(ze,ht)|0,b=b+Math.imul(ze,pt)|0,b=b+Math.imul(He,ht)|0,L=L+Math.imul(He,pt)|0,k=k+Math.imul(Be,mt)|0,b=b+Math.imul(Be,gt)|0,b=b+Math.imul(je,mt)|0,L=L+Math.imul(je,gt)|0,k=k+Math.imul(ne,yt)|0,b=b+Math.imul(ne,vt)|0,b=b+Math.imul(se,yt)|0,L=L+Math.imul(se,vt)|0;var Fg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Fg>>>26)|0,Fg&=67108863,k=Math.imul(Je,at),b=Math.imul(Je,ut),b=b+Math.imul(Qe,at)|0,L=Math.imul(Qe,ut),k=k+Math.imul(Ye,lt)|0,b=b+Math.imul(Ye,ct)|0,b=b+Math.imul(Xe,lt)|0,L=L+Math.imul(Xe,ct)|0,k=k+Math.imul(We,ft)|0,b=b+Math.imul(We,dt)|0,b=b+Math.imul(Ge,ft)|0,L=L+Math.imul(Ge,dt)|0,k=k+Math.imul(Ke,ht)|0,b=b+Math.imul(Ke,pt)|0,b=b+Math.imul(qe,ht)|0,L=L+Math.imul(qe,pt)|0,k=k+Math.imul(ze,mt)|0,b=b+Math.imul(ze,gt)|0,b=b+Math.imul(He,mt)|0,L=L+Math.imul(He,gt)|0,k=k+Math.imul(Be,yt)|0,b=b+Math.imul(Be,vt)|0,b=b+Math.imul(je,yt)|0,L=L+Math.imul(je,vt)|0;var $g=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+($g>>>26)|0,$g&=67108863,k=Math.imul(Je,lt),b=Math.imul(Je,ct),b=b+Math.imul(Qe,lt)|0,L=Math.imul(Qe,ct),k=k+Math.imul(Ye,ft)|0,b=b+Math.imul(Ye,dt)|0,b=b+Math.imul(Xe,ft)|0,L=L+Math.imul(Xe,dt)|0,k=k+Math.imul(We,ht)|0,b=b+Math.imul(We,pt)|0,b=b+Math.imul(Ge,ht)|0,L=L+Math.imul(Ge,pt)|0,k=k+Math.imul(Ke,mt)|0,b=b+Math.imul(Ke,gt)|0,b=b+Math.imul(qe,mt)|0,L=L+Math.imul(qe,gt)|0,k=k+Math.imul(ze,yt)|0,b=b+Math.imul(ze,vt)|0,b=b+Math.imul(He,yt)|0,L=L+Math.imul(He,vt)|0;var Ug=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Ug>>>26)|0,Ug&=67108863,k=Math.imul(Je,ft),b=Math.imul(Je,dt),b=b+Math.imul(Qe,ft)|0,L=Math.imul(Qe,dt),k=k+Math.imul(Ye,ht)|0,b=b+Math.imul(Ye,pt)|0,b=b+Math.imul(Xe,ht)|0,L=L+Math.imul(Xe,pt)|0,k=k+Math.imul(We,mt)|0,b=b+Math.imul(We,gt)|0,b=b+Math.imul(Ge,mt)|0,L=L+Math.imul(Ge,gt)|0,k=k+Math.imul(Ke,yt)|0,b=b+Math.imul(Ke,vt)|0,b=b+Math.imul(qe,yt)|0,L=L+Math.imul(qe,vt)|0;var Vg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Vg>>>26)|0,Vg&=67108863,k=Math.imul(Je,ht),b=Math.imul(Je,pt),b=b+Math.imul(Qe,ht)|0,L=Math.imul(Qe,pt),k=k+Math.imul(Ye,mt)|0,b=b+Math.imul(Ye,gt)|0,b=b+Math.imul(Xe,mt)|0,L=L+Math.imul(Xe,gt)|0,k=k+Math.imul(We,yt)|0,b=b+Math.imul(We,vt)|0,b=b+Math.imul(Ge,yt)|0,L=L+Math.imul(Ge,vt)|0;var Bg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(Bg>>>26)|0,Bg&=67108863,k=Math.imul(Je,mt),b=Math.imul(Je,gt),b=b+Math.imul(Qe,mt)|0,L=Math.imul(Qe,gt),k=k+Math.imul(Ye,yt)|0,b=b+Math.imul(Ye,vt)|0,b=b+Math.imul(Xe,yt)|0,L=L+Math.imul(Xe,vt)|0;var jg=(B+k|0)+((b&8191)<<13)|0;B=(L+(b>>>13)|0)+(jg>>>26)|0,jg&=67108863,k=Math.imul(Je,yt),b=Math.imul(Je,vt),b=b+Math.imul(Qe,yt)|0,L=Math.imul(Qe,vt);var zg=(B+k|0)+((b&8191)<<13)|0;return B=(L+(b>>>13)|0)+(zg>>>26)|0,zg&=67108863,V[0]=Fi,V[1]=$i,V[2]=Ui,V[3]=Vi,V[4]=Bi,V[5]=Ag,V[6]=Og,V[7]=Rg,V[8]=Ng,V[9]=Mg,V[10]=kg,V[11]=Lg,V[12]=Fg,V[13]=$g,V[14]=Ug,V[15]=Vg,V[16]=Bg,V[17]=jg,V[18]=zg,B!==0&&(V[19]=B,A.length++),A};Math.imul||(C=D);function I(N,m,E){E.negative=m.negative^N.negative,E.length=N.length+m.length;for(var A=0,O=0,M=0;M<E.length-1;M++){var V=O;O=0;for(var B=A&67108863,k=Math.min(M,m.length-1),b=Math.max(0,M-N.length+1);b<=k;b++){var L=M-b,Q=N.words[L]|0,T=m.words[b]|0,z=Q*T,H=z&67108863;V=V+(z/67108864|0)|0,H=H+B|0,B=H&67108863,V=V+(H>>>26)|0,O+=V>>>26,V&=67108863}E.words[M]=B,A=V,V=O}return A!==0?E.words[M]=A:E.length--,E._strip()}function P(N,m,E){return I(N,m,E)}i.prototype.mulTo=function(m,E){var A,O=this.length+m.length;return this.length===10&&m.length===10?A=C(this,m,E):O<63?A=D(this,m,E):O<1024?A=I(this,m,E):A=P(this,m,E),A};function R(N,m){this.x=N,this.y=m}R.prototype.makeRBT=function(m){for(var E=new Array(m),A=i.prototype._countBits(m)-1,O=0;O<m;O++)E[O]=this.revBin(O,A,m);return E},R.prototype.revBin=function(m,E,A){if(m===0||m===A-1)return m;for(var O=0,M=0;M<E;M++)O|=(m&1)<<E-M-1,m>>=1;return O},R.prototype.permute=function(m,E,A,O,M,V){for(var B=0;B<V;B++)O[B]=E[m[B]],M[B]=A[m[B]]},R.prototype.transform=function(m,E,A,O,M,V){this.permute(V,m,E,A,O,M);for(var B=1;B<M;B<<=1)for(var k=B<<1,b=Math.cos(2*Math.PI/k),L=Math.sin(2*Math.PI/k),Q=0;Q<M;Q+=k)for(var T=b,z=L,H=0;H<B;H++){var q=A[Q+H],Z=O[Q+H],ie=A[Q+H+B],re=O[Q+H+B],te=T*ie-z*re;re=T*re+z*ie,ie=te,A[Q+H]=q+ie,O[Q+H]=Z+re,A[Q+H+B]=q-ie,O[Q+H+B]=Z-re,H!==k&&(te=b*T-L*z,z=b*z+L*T,T=te)}},R.prototype.guessLen13b=function(m,E){var A=Math.max(E,m)|1,O=A&1,M=0;for(A=A/2|0;A;A=A>>>1)M++;return 1<<M+1+O},R.prototype.conjugate=function(m,E,A){if(!(A<=1))for(var O=0;O<A/2;O++){var M=m[O];m[O]=m[A-O-1],m[A-O-1]=M,M=E[O],E[O]=-E[A-O-1],E[A-O-1]=-M}},R.prototype.normalize13b=function(m,E){for(var A=0,O=0;O<E/2;O++){var M=Math.round(m[2*O+1]/E)*8192+Math.round(m[2*O]/E)+A;m[O]=M&67108863,M<67108864?A=0:A=M/67108864|0}return m},R.prototype.convert13b=function(m,E,A,O){for(var M=0,V=0;V<E;V++)M=M+(m[V]|0),A[2*V]=M&8191,M=M>>>13,A[2*V+1]=M&8191,M=M>>>13;for(V=2*E;V<O;++V)A[V]=0;r(M===0),r((M&-8192)===0)},R.prototype.stub=function(m){for(var E=new Array(m),A=0;A<m;A++)E[A]=0;return E},R.prototype.mulp=function(m,E,A){var O=2*this.guessLen13b(m.length,E.length),M=this.makeRBT(O),V=this.stub(O),B=new Array(O),k=new Array(O),b=new Array(O),L=new Array(O),Q=new Array(O),T=new Array(O),z=A.words;z.length=O,this.convert13b(m.words,m.length,B,O),this.convert13b(E.words,E.length,L,O),this.transform(B,V,k,b,O,M),this.transform(L,V,Q,T,O,M);for(var H=0;H<O;H++){var q=k[H]*Q[H]-b[H]*T[H];b[H]=k[H]*T[H]+b[H]*Q[H],k[H]=q}return this.conjugate(k,b,O),this.transform(k,b,z,V,O,M),this.conjugate(z,V,O),this.normalize13b(z,O),A.negative=m.negative^E.negative,A.length=m.length+E.length,A._strip()},i.prototype.mul=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),this.mulTo(m,E)},i.prototype.mulf=function(m){var E=new i(null);return E.words=new Array(this.length+m.length),P(this,m,E)},i.prototype.imul=function(m){return this.clone().mulTo(m,this)},i.prototype.imuln=function(m){var E=m<0;E&&(m=-m),r(typeof m=="number"),r(m<67108864);for(var A=0,O=0;O<this.length;O++){var M=(this.words[O]|0)*m,V=(M&67108863)+(A&67108863);A>>=26,A+=M/67108864|0,A+=V>>>26,this.words[O]=V&67108863}return A!==0&&(this.words[O]=A,this.length++),E?this.ineg():this},i.prototype.muln=function(m){return this.clone().imuln(m)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(m){var E=_(m);if(E.length===0)return new i(1);for(var A=this,O=0;O<E.length&&E[O]===0;O++,A=A.sqr());if(++O<E.length)for(var M=A.sqr();O<E.length;O++,M=M.sqr())E[O]!==0&&(A=A.mul(M));return A},i.prototype.iushln=function(m){r(typeof m=="number"&&m>=0);var E=m%26,A=(m-E)/26,O=67108863>>>26-E<<26-E,M;if(E!==0){var V=0;for(M=0;M<this.length;M++){var B=this.words[M]&O,k=(this.words[M]|0)-B<<E;this.words[M]=k|V,V=B>>>26-E}V&&(this.words[M]=V,this.length++)}if(A!==0){for(M=this.length-1;M>=0;M--)this.words[M+A]=this.words[M];for(M=0;M<A;M++)this.words[M]=0;this.length+=A}return this._strip()},i.prototype.ishln=function(m){return r(this.negative===0),this.iushln(m)},i.prototype.iushrn=function(m,E,A){r(typeof m=="number"&&m>=0);var O;E?O=(E-E%26)/26:O=0;var M=m%26,V=Math.min((m-M)/26,this.length),B=67108863^67108863>>>M<<M,k=A;if(O-=V,O=Math.max(0,O),k){for(var b=0;b<V;b++)k.words[b]=this.words[b];k.length=V}if(V!==0)if(this.length>V)for(this.length-=V,b=0;b<this.length;b++)this.words[b]=this.words[b+V];else this.words[0]=0,this.length=1;var L=0;for(b=this.length-1;b>=0&&(L!==0||b>=O);b--){var Q=this.words[b]|0;this.words[b]=L<<26-M|Q>>>M,L=Q&B}return k&&L!==0&&(k.words[k.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(m,E,A){return r(this.negative===0),this.iushrn(m,E,A)},i.prototype.shln=function(m){return this.clone().ishln(m)},i.prototype.ushln=function(m){return this.clone().iushln(m)},i.prototype.shrn=function(m){return this.clone().ishrn(m)},i.prototype.ushrn=function(m){return this.clone().iushrn(m)},i.prototype.testn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,A=(m-E)/26,O=1<<E;if(this.length<=A)return!1;var M=this.words[A];return!!(M&O)},i.prototype.imaskn=function(m){r(typeof m=="number"&&m>=0);var E=m%26,A=(m-E)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(E!==0&&A++,this.length=Math.min(A,this.length),E!==0){var O=67108863^67108863>>>E<<E;this.words[this.length-1]&=O}return this._strip()},i.prototype.maskn=function(m){return this.clone().imaskn(m)},i.prototype.iaddn=function(m){return r(typeof m=="number"),r(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<=m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},i.prototype._iaddn=function(m){this.words[0]+=m;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},i.prototype.isubn=function(m){if(r(typeof m=="number"),r(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this._strip()},i.prototype.addn=function(m){return this.clone().iaddn(m)},i.prototype.subn=function(m){return this.clone().isubn(m)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(m,E,A){var O=m.length+A,M;this._expand(O);var V,B=0;for(M=0;M<m.length;M++){V=(this.words[M+A]|0)+B;var k=(m.words[M]|0)*E;V-=k&67108863,B=(V>>26)-(k/67108864|0),this.words[M+A]=V&67108863}for(;M<this.length-A;M++)V=(this.words[M+A]|0)+B,B=V>>26,this.words[M+A]=V&67108863;if(B===0)return this._strip();for(r(B===-1),B=0,M=0;M<this.length;M++)V=-(this.words[M]|0)+B,B=V>>26,this.words[M]=V&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(m,E){var A=this.length-m.length,O=this.clone(),M=m,V=M.words[M.length-1]|0,B=this._countBits(V);A=26-B,A!==0&&(M=M.ushln(A),O.iushln(A),V=M.words[M.length-1]|0);var k=O.length-M.length,b;if(E!=="mod"){b=new i(null),b.length=k+1,b.words=new Array(b.length);for(var L=0;L<b.length;L++)b.words[L]=0}var Q=O.clone()._ishlnsubmul(M,1,k);Q.negative===0&&(O=Q,b&&(b.words[k]=1));for(var T=k-1;T>=0;T--){var z=(O.words[M.length+T]|0)*67108864+(O.words[M.length+T-1]|0);for(z=Math.min(z/V|0,67108863),O._ishlnsubmul(M,z,T);O.negative!==0;)z--,O.negative=0,O._ishlnsubmul(M,1,T),O.isZero()||(O.negative^=1);b&&(b.words[T]=z)}return b&&b._strip(),O._strip(),E!=="div"&&A!==0&&O.iushrn(A),{div:b||null,mod:O}},i.prototype.divmod=function(m,E,A){if(r(!m.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var O,M,V;return this.negative!==0&&m.negative===0?(V=this.neg().divmod(m,E),E!=="mod"&&(O=V.div.neg()),E!=="div"&&(M=V.mod.neg(),A&&M.negative!==0&&M.iadd(m)),{div:O,mod:M}):this.negative===0&&m.negative!==0?(V=this.divmod(m.neg(),E),E!=="mod"&&(O=V.div.neg()),{div:O,mod:V.mod}):(this.negative&m.negative)!==0?(V=this.neg().divmod(m.neg(),E),E!=="div"&&(M=V.mod.neg(),A&&M.negative!==0&&M.isub(m)),{div:V.div,mod:M}):m.length>this.length||this.cmp(m)<0?{div:new i(0),mod:this}:m.length===1?E==="div"?{div:this.divn(m.words[0]),mod:null}:E==="mod"?{div:null,mod:new i(this.modrn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new i(this.modrn(m.words[0]))}:this._wordDiv(m,E)},i.prototype.div=function(m){return this.divmod(m,"div",!1).div},i.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},i.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},i.prototype.divRound=function(m){var E=this.divmod(m);if(E.mod.isZero())return E.div;var A=E.div.negative!==0?E.mod.isub(m):E.mod,O=m.ushrn(1),M=m.andln(1),V=A.cmp(O);return V<0||M===1&&V===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},i.prototype.modrn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var A=(1<<26)%m,O=0,M=this.length-1;M>=0;M--)O=(A*O+(this.words[M]|0))%m;return E?-O:O},i.prototype.modn=function(m){return this.modrn(m)},i.prototype.idivn=function(m){var E=m<0;E&&(m=-m),r(m<=67108863);for(var A=0,O=this.length-1;O>=0;O--){var M=(this.words[O]|0)+A*67108864;this.words[O]=M/m|0,A=M%m}return this._strip(),E?this.ineg():this},i.prototype.divn=function(m){return this.clone().idivn(m)},i.prototype.egcd=function(m){r(m.negative===0),r(!m.isZero());var E=this,A=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var O=new i(1),M=new i(0),V=new i(0),B=new i(1),k=0;E.isEven()&&A.isEven();)E.iushrn(1),A.iushrn(1),++k;for(var b=A.clone(),L=E.clone();!E.isZero();){for(var Q=0,T=1;(E.words[0]&T)===0&&Q<26;++Q,T<<=1);if(Q>0)for(E.iushrn(Q);Q-- >0;)(O.isOdd()||M.isOdd())&&(O.iadd(b),M.isub(L)),O.iushrn(1),M.iushrn(1);for(var z=0,H=1;(A.words[0]&H)===0&&z<26;++z,H<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(V.isOdd()||B.isOdd())&&(V.iadd(b),B.isub(L)),V.iushrn(1),B.iushrn(1);E.cmp(A)>=0?(E.isub(A),O.isub(V),M.isub(B)):(A.isub(E),V.isub(O),B.isub(M))}return{a:V,b:B,gcd:A.iushln(k)}},i.prototype._invmp=function(m){r(m.negative===0),r(!m.isZero());var E=this,A=m.clone();E.negative!==0?E=E.umod(m):E=E.clone();for(var O=new i(1),M=new i(0),V=A.clone();E.cmpn(1)>0&&A.cmpn(1)>0;){for(var B=0,k=1;(E.words[0]&k)===0&&B<26;++B,k<<=1);if(B>0)for(E.iushrn(B);B-- >0;)O.isOdd()&&O.iadd(V),O.iushrn(1);for(var b=0,L=1;(A.words[0]&L)===0&&b<26;++b,L<<=1);if(b>0)for(A.iushrn(b);b-- >0;)M.isOdd()&&M.iadd(V),M.iushrn(1);E.cmp(A)>=0?(E.isub(A),O.isub(M)):(A.isub(E),M.isub(O))}var Q;return E.cmpn(1)===0?Q=O:Q=M,Q.cmpn(0)<0&&Q.iadd(m),Q},i.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var E=this.clone(),A=m.clone();E.negative=0,A.negative=0;for(var O=0;E.isEven()&&A.isEven();O++)E.iushrn(1),A.iushrn(1);do{for(;E.isEven();)E.iushrn(1);for(;A.isEven();)A.iushrn(1);var M=E.cmp(A);if(M<0){var V=E;E=A,A=V}else if(M===0||A.cmpn(1)===0)break;E.isub(A)}while(!0);return A.iushln(O)},i.prototype.invm=function(m){return this.egcd(m).a.umod(m)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(m){return this.words[0]&m},i.prototype.bincn=function(m){r(typeof m=="number");var E=m%26,A=(m-E)/26,O=1<<E;if(this.length<=A)return this._expand(A+1),this.words[A]|=O,this;for(var M=O,V=A;M!==0&&V<this.length;V++){var B=this.words[V]|0;B+=M,M=B>>>26,B&=67108863,this.words[V]=B}return M!==0&&(this.words[V]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(m){var E=m<0;if(this.negative!==0&&!E)return-1;if(this.negative===0&&E)return 1;this._strip();var A;if(this.length>1)A=1;else{E&&(m=-m),r(m<=67108863,"Number is too big");var O=this.words[0]|0;A=O===m?0:O<m?-1:1}return this.negative!==0?-A|0:A},i.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var E=this.ucmp(m);return this.negative!==0?-E|0:E},i.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var E=0,A=this.length-1;A>=0;A--){var O=this.words[A]|0,M=m.words[A]|0;if(O!==M){O<M?E=-1:O>M&&(E=1);break}}return E},i.prototype.gtn=function(m){return this.cmpn(m)===1},i.prototype.gt=function(m){return this.cmp(m)===1},i.prototype.gten=function(m){return this.cmpn(m)>=0},i.prototype.gte=function(m){return this.cmp(m)>=0},i.prototype.ltn=function(m){return this.cmpn(m)===-1},i.prototype.lt=function(m){return this.cmp(m)===-1},i.prototype.lten=function(m){return this.cmpn(m)<=0},i.prototype.lte=function(m){return this.cmp(m)<=0},i.prototype.eqn=function(m){return this.cmpn(m)===0},i.prototype.eq=function(m){return this.cmp(m)===0},i.red=function(m){return new W(m)},i.prototype.toRed=function(m){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(m){return this.red=m,this},i.prototype.forceRed=function(m){return r(!this.red,"Already a number in reduction context"),this._forceRed(m)},i.prototype.redAdd=function(m){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},i.prototype.redIAdd=function(m){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},i.prototype.redSub=function(m){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},i.prototype.redISub=function(m){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},i.prototype.redShl=function(m){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},i.prototype.redMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},i.prototype.redIMul=function(m){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(m){return r(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var U={k256:null,p224:null,p192:null,p25519:null};function j(N,m){this.name=N,this.p=new i(m,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var m=new i(null);return m.words=new Array(Math.ceil(this.n/13)),m},j.prototype.ireduce=function(m){var E=m,A;do this.split(E,this.tmp),E=this.imulK(E),E=E.iadd(this.tmp),A=E.bitLength();while(A>this.n);var O=A<this.n?-1:E.ucmp(this.p);return O===0?(E.words[0]=0,E.length=1):O>0?E.isub(this.p):E.strip!==void 0?E.strip():E._strip(),E},j.prototype.split=function(m,E){m.iushrn(this.n,0,E)},j.prototype.imulK=function(m){return m.imul(this.k)};function F(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,j),F.prototype.split=function(m,E){for(var A=4194303,O=Math.min(m.length,9),M=0;M<O;M++)E.words[M]=m.words[M];if(E.length=O,m.length<=9){m.words[0]=0,m.length=1;return}var V=m.words[9];for(E.words[E.length++]=V&A,M=10;M<m.length;M++){var B=m.words[M]|0;m.words[M-10]=(B&A)<<4|V>>>22,V=B}V>>>=22,m.words[M-10]=V,V===0&&m.length>10?m.length-=10:m.length-=9},F.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var E=0,A=0;A<m.length;A++){var O=m.words[A]|0;E+=O*977,m.words[A]=E&67108863,E=O*64+(E/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function $(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n($,j);function G(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,j);function X(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(X,j),X.prototype.imulK=function(m){for(var E=0,A=0;A<m.length;A++){var O=(m.words[A]|0)*19+E,M=O&67108863;O>>>=26,m.words[A]=M,E=O}return E!==0&&(m.words[m.length++]=E),m},i._prime=function(m){if(U[m])return U[m];var E;if(m==="k256")E=new F;else if(m==="p224")E=new $;else if(m==="p192")E=new G;else if(m==="p25519")E=new X;else throw new Error("Unknown prime "+m);return U[m]=E,E};function W(N){if(typeof N=="string"){var m=i._prime(N);this.m=m.p,this.prime=m}else r(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}W.prototype._verify1=function(m){r(m.negative===0,"red works only with positives"),r(m.red,"red works only with red numbers")},W.prototype._verify2=function(m,E){r((m.negative|E.negative)===0,"red works only with positives"),r(m.red&&m.red===E.red,"red works only with red numbers")},W.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):(l(m,m.umod(this.m)._forceRed(this)),m)},W.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},W.prototype.add=function(m,E){this._verify2(m,E);var A=m.add(E);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},W.prototype.iadd=function(m,E){this._verify2(m,E);var A=m.iadd(E);return A.cmp(this.m)>=0&&A.isub(this.m),A},W.prototype.sub=function(m,E){this._verify2(m,E);var A=m.sub(E);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},W.prototype.isub=function(m,E){this._verify2(m,E);var A=m.isub(E);return A.cmpn(0)<0&&A.iadd(this.m),A},W.prototype.shl=function(m,E){return this._verify1(m),this.imod(m.ushln(E))},W.prototype.imul=function(m,E){return this._verify2(m,E),this.imod(m.imul(E))},W.prototype.mul=function(m,E){return this._verify2(m,E),this.imod(m.mul(E))},W.prototype.isqr=function(m){return this.imul(m,m.clone())},W.prototype.sqr=function(m){return this.mul(m,m)},W.prototype.sqrt=function(m){if(m.isZero())return m.clone();var E=this.m.andln(3);if(r(E%2===1),E===3){var A=this.m.add(new i(1)).iushrn(2);return this.pow(m,A)}for(var O=this.m.subn(1),M=0;!O.isZero()&&O.andln(1)===0;)M++,O.iushrn(1);r(!O.isZero());var V=new i(1).toRed(this),B=V.redNeg(),k=this.m.subn(1).iushrn(1),b=this.m.bitLength();for(b=new i(2*b*b).toRed(this);this.pow(b,k).cmp(B)!==0;)b.redIAdd(B);for(var L=this.pow(b,O),Q=this.pow(m,O.addn(1).iushrn(1)),T=this.pow(m,O),z=M;T.cmp(V)!==0;){for(var H=T,q=0;H.cmp(V)!==0;q++)H=H.redSqr();r(q<z);var Z=this.pow(L,new i(1).iushln(z-q-1));Q=Q.redMul(Z),L=Z.redSqr(),T=T.redMul(L),z=q}return Q},W.prototype.invm=function(m){var E=m._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},W.prototype.pow=function(m,E){if(E.isZero())return new i(1).toRed(this);if(E.cmpn(1)===0)return m.clone();var A=4,O=new Array(1<<A);O[0]=new i(1).toRed(this),O[1]=m;for(var M=2;M<O.length;M++)O[M]=this.mul(O[M-1],m);var V=O[0],B=0,k=0,b=E.bitLength()%26;for(b===0&&(b=26),M=E.length-1;M>=0;M--){for(var L=E.words[M],Q=b-1;Q>=0;Q--){var T=L>>Q&1;if(V!==O[0]&&(V=this.sqr(V)),T===0&&B===0){k=0;continue}B<<=1,B|=T,k++,!(k!==A&&(M!==0||Q!==0))&&(V=this.mul(V,O[B]),k=0,B=0)}b=26}return V},W.prototype.convertTo=function(m){var E=m.umod(this.m);return E===m?E.clone():E},W.prototype.convertFrom=function(m){var E=m.clone();return E.red=null,E},i.mont=function(m){return new J(m)};function J(N){W.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(J,W),J.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},J.prototype.convertFrom=function(m){var E=this.imod(m.mul(this.rinv));return E.red=null,E},J.prototype.imul=function(m,E){if(m.isZero()||E.isZero())return m.words[0]=0,m.length=1,m;var A=m.imul(E),O=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=A.isub(O).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.mul=function(m,E){if(m.isZero()||E.isZero())return new i(0)._forceRed(this);var A=m.mul(E),O=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=A.isub(O).iushrn(this.shift),V=M;return M.cmp(this.m)>=0?V=M.isub(this.m):M.cmpn(0)<0&&(V=M.iadd(this.m)),V._forceRed(this)},J.prototype.invm=function(m){var E=this.imod(m._invmp(this.m).mul(this.r2));return E._forceRed(this)}})(typeof $E>"u"||$E,$k)});var zZ={};ur(zZ,{init:()=>UZ,open:()=>BZ,reset:()=>jZ,update:()=>VZ});c();d();f();c();d();f();c();d();f();c();d();f();var Y_=e=>{let t,r=new Set,n=(u,l)=>{let p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){let h=t;t=(l!=null?l:typeof p!="object")?p:Object.assign({},t,p),r.forEach(g=>g(t,h))}},i=()=>t,a={setState:n,getState:i,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{var u;((u=S)==null?void 0:u.MODE)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,a),a},X_=e=>e?Y_(e):Y_;var s2=Y(ae(),1),a2=Y(i2(),1),{useSyncExternalStoreWithSelector:xF}=a2.default;function bF(e,t=e.getState,r){let n=xF(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,s2.useDebugValue)(n),n}var o2=e=>{var t;((t=S)==null?void 0:t.MODE)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let r=typeof e=="function"?X_(e):e,n=(i,o)=>bF(r,i,o);return Object.assign(n,r),n},Cd=e=>e?o2(e):o2;c();d();f();var ya=(g=>(g.ConnectionFailed="connection_failed",g.VerificationRejected="verification_rejected",g.MaxVerificationsReached="max_verifications_reached",g.AlreadySigned="already_signed",g.CredentialUnavailable="credential_unavailable",g.MalformedRequest="malformed_request",g.InvalidNetwork="invalid_network",g.InclusionProofFailed="inclusion_proof_failed",g.InclusionProofPending="inclusion_proof_pending",g.UnexpectedResponse="unexpected_response",g.FailedByHostApp="failed_by_host_app",g.GenericError="generic_error",g))(ya||{});c();d();f();var Td=(r=>(r.Orb="orb",r.Phone="phone",r))(Td||{});c();d();f();c();d();f();var ry=function(e,t){return ry=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ry(e,t)};function EF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ry(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_e.apply(this,arguments)};function as(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(p){try{l(n.next(p))}catch(h){s(h)}}function u(p){try{l(n.throw(p))}catch(h){s(h)}}function l(p){p.done?o(p.value):i(p.value).then(a,u)}l((n=n.apply(e,t||[])).next())})}function us(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _F(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var ve;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(ve||(ve={}));function SF(e,t){if(!e)throw new Error(t)}function CF(e){return e==null?void 0:e.replace(/\/+$/,"")}function TF(e,t){return t===void 0&&(t={}),as(this,void 0,void 0,function(){var r,n,i,o,s,a,u,l,p,h;return us(this,function(g){switch(g.label){case 0:r=t.retryCount,n=r===void 0?3:r,i=t.retryDelay,o=i===void 0?5e3:i,s=t.retryCheck,a=s===void 0?function(){return!0}:s,u=null,l=0,g.label=1;case 1:if(!(l<n+1))return[3,8];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,e()];case 3:return p=g.sent(),[2,p];case 4:if(h=g.sent(),u=h,!a(h))throw h;return[3,5];case 5:return[4,new Promise(function(w){return setTimeout(w,o)})];case 6:g.sent(),g.label=7;case 7:return l++,[3,1];case 8:throw u}})})}function u2(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16;return t>0?(i=(t+i)%16|0,t=Math.floor(t/16)):(i=(r+i)%16|0,r=Math.floor(r/16)),(n==="x"?i:i&3|8).toString(16)})}function p2(){return new Date().getTime()}function l2(){return new Date().toISOString()}function c2(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var ql=String.fromCharCode,f2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pd={};function PF(e,t){if(!Pd[e]){Pd[e]={};for(var r=0;r<e.length;r++)Pd[e][e.charAt(r)]=r}return Pd[e][t]}var Yl={compressToBase64:function(e){if(e==null)return"";var t=Yl._compress(e,6,function(r){return f2.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:Yl._decompress(e.length,32,function(t){return PF(f2,e.charAt(t))})},compress:function(e){return Yl._compress(e,16,function(t){return ql(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},i={},o=[],s,a,u="",l="",p="",h=2,g=3,w=2,v=0,_=0,D;for(D=0;D<e.length;D+=1)if(u=e.charAt(D),Object.prototype.hasOwnProperty.call(n,u)||(n[u]=g++,i[u]=!0),l=p+u,Object.prototype.hasOwnProperty.call(n,l))p=l;else{if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<w;s++)v=v<<1,_==t-1?(_=0,o.push(r(v)),v=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,w),w++),delete i[p]}else for(a=n[p],s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,w),w++),n[l]=g++,p=String(u)}if(p!==""){if(Object.prototype.hasOwnProperty.call(i,p)){if(p.charCodeAt(0)<256){for(s=0;s<w;s++)v=v<<1,_==t-1?(_=0,o.push(r(v)),v=0):_++;for(a=p.charCodeAt(0),s=0;s<8;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}else{for(a=1,s=0;s<w;s++)v=v<<1|a,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=0;for(a=p.charCodeAt(0),s=0;s<16;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1}h--,h==0&&(h=Math.pow(2,w),w++),delete i[p]}else for(a=n[p],s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;h--,h==0&&(h=Math.pow(2,w),w++)}for(a=2,s=0;s<w;s++)v=v<<1|a&1,_==t-1?(_=0,o.push(r(v)),v=0):_++,a=a>>1;for(;;)if(v=v<<1,_==t-1){o.push(r(v));break}else _++;return o.join("")},decompress:function(e){return e==null?"":e==""?null:Yl._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],i=[],o={val:r(0),position:t,index:1},s=4,a=4,u=3,l="",p,h,g,w,v,_,D;for(p=0;p<3;p+=1)n[p]=p;for(g=0,v=Math.pow(2,2),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;switch(g){case 0:for(g=0,v=Math.pow(2,8),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;D=ql(g);break;case 1:for(g=0,v=Math.pow(2,16),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;D=ql(g);break;case 2:return""}for(n[3]=D,h=D,i.push(D);;){if(o.index>e)return"";for(g=0,v=Math.pow(2,u),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;switch(D=g){case 0:for(g=0,v=Math.pow(2,8),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;n[a++]=ql(g),D=a-1,s--;break;case 1:for(g=0,v=Math.pow(2,16),_=1;_!=v;)w=o.val&o.position,o.position>>=1,o.position==0&&(o.position=t,o.val=r(o.index++)),g|=(w>0?1:0)*_,_<<=1;n[a++]=ql(g),D=a-1,s--;break;case 2:return i.join("")}if(s==0&&(s=Math.pow(2,u),u++),n[D])l=n[D];else if(D===a)l=h+h.charAt(0);else return null;i.push(l),n[a++]=h+l.charAt(0),s--,h=l,s==0&&(s=Math.pow(2,u),u++)}}},DF=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(i){return i!==r})}},e.prototype.emit=function(t,r){for(var n=0,i=this.events[t]||[];n<i.length;n++){var o=i[n];o(r)}for(var s=0,a=this.events["*"]||[];s<a.length;s++){var o=a[s];o(t,r)}},e}(),IF=function(){function e(t,r){var n=this,i,o,s,a,u,l;this.flagCallReported={},this._events=new DF,SF(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=CF((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(i=r==null?void 0:r.flushInterval)!==null&&i!==void 0?i:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(o=r==null?void 0:r.sendFeatureFlagEvent)!==null&&o!==void 0?o:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(s=r==null?void 0:r.fetchRetryCount)!==null&&s!==void 0?s:3,retryDelay:(a=r==null?void 0:r.fetchRetryDelay)!==null&&a!==void 0?a:3e3},this.requestTimeout=(u=r==null?void 0:r.requestTimeout)!==null&&u!==void 0?u:1e4,this._sessionExpirationTimeSeconds=(l=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&l!==void 0?l:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&c2(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=i[n],s=o[0],a=o[1];r["$feature/".concat(s)]=a}return _e({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,i,o;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(ve.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(ve.AnonymousId,t.bootstrap.distinctId)),!((i=t==null?void 0:t.bootstrap)===null||i===void 0)&&i.featureFlags){var s=Object.keys(((o=t.bootstrap)===null||o===void 0?void 0:o.featureFlags)||{}).filter(function(a){var u,l;return!!(!((l=(u=t.bootstrap)===null||u===void 0?void 0:u.featureFlags)===null||l===void 0)&&l[a])}).reduce(function(a,u){var l,p;return a[u]=((p=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||p===void 0?void 0:p[u])||!1,a},{});this.setKnownFeatureFlags(s)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(ve.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(ve.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(ve.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(ve.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=_F([ve.Queue],t||[],!0);this.clearProps();for(var n=0,i=Object.keys(ve);n<i.length;n++){var o=i[n];r.includes(ve[o])||this.setPersistedProperty(ve[o],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,i){return console.log("PostHog Debug",n,i)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:_e(_e(_e(_e({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(ve.SessionId),r=this.getPersistedProperty(ve.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=u2(globalThis),this.setPersistedProperty(ve.SessionId,t)),this.setPersistedProperty(ve.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(ve.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(ve.AnonymousId);return t||(t=u2(globalThis),this.setPersistedProperty(ve.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(ve.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=_e(_e({},this.props),t),this.setPersistedProperty(ve.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(ve.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var i=_e(_e({},this.buildPayload({distinct_id:t,event:"$identify",properties:_e(_e({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(ve.AnonymousId,n),this.setPersistedProperty(ve.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",i),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var i=this.buildPayload({event:t,properties:r});this.enqueue("capture",i)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var i=this.buildPayload({event:"$autocapture",properties:_e(_e({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",i),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:_e(_e({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var i;return this.groups((i={},i[t]=r,i)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var i={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:_e({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",i),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(ve.PersonProperties)||{};return this.setPersistedProperty(ve.PersonProperties,_e(_e({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(ve.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=_e(_e({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(ve.GroupProperties,_e(_e({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),as(this,void 0,void 0,function(){var r,n,i,o,s,a,u=this;return us(this,function(l){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),i=this.props.$groups||{},o=this.getPersistedProperty(ve.PersonProperties)||{},s=this.getPersistedProperty(ve.GroupProperties)||{},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:i,person_properties:o,group_properties:s})},this._decideResponsePromise=this.fetchWithRetry(r,a).then(function(p){return p.json()}).then(function(p){return p.featureFlags&&u.setKnownFeatureFlags(p.featureFlags),p}).finally(function(){u._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(ve.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(ve.FeatureFlags),r=this.getPersistedProperty(ve.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),as(this,void 0,void 0,function(){return us(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return as(r,void 0,void 0,function(){var n;return us(this,function(i){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return as(n,void 0,void 0,function(){var i;return us(this,function(o){return i=this.getFeatureFlag(t),i!==void 0&&r(i),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(ve.OverrideFeatureFlags,null):this.setPersistedProperty(ve.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var i=n.buildPayload({event:t,properties:r});n.enqueue("capture",i)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var i=_e(_e({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:l2()});i.distinctId&&(i.distinct_id=i.distinctId,delete i.distinctId);var o=this.getPersistedProperty(ve.Queue)||[];o.push({message:i}),this.setPersistedProperty(ve.Queue,o),this._events.emit(t,i),o.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=c2(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(i,o){return i?n(i):r(o)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(ve.Queue)||[];if(!n.length)return t==null?void 0:t();var i=n.splice(0,this.flushAt);this.setPersistedProperty(ve.Queue,n);var o=i.map(function(h){return h.message}),s={api_key:this.apiKey,batch:o,sent_at:l2()},a=function(h){t==null||t(h,o),r._events.emit("flush",o)};this.getCustomUserAgent();var u=JSON.stringify(s),l=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(p2(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),p=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(Yl.compressToBase64(u)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:u};this.fetchWithRetry(l,p).then(function(){return a()}).catch(function(h){if(h.response){var g=new Error(h.response.statusText);return a(g)}a(h)})},e.prototype.fetchWithRetry=function(t,r,n){var i,o;return as(this,void 0,void 0,function(){var s=this;return us(this,function(a){return(i=(o=AbortSignal).timeout)!==null&&i!==void 0||(o.timeout=function(l){var p=new AbortController;return setTimeout(function(){return p.abort()},l),p.signal}),[2,TF(function(){return s.fetch(t,_e({signal:AbortSignal.timeout(s.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return as(this,void 0,void 0,function(){return us(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),m2="2.0.0";function AF(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=_e(_e({},t),{$os:RF(e),$browser:g2(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:MF(e.document.referrer),$device:NF(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:OF(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=_e(_e({},t),{$lib:"js",$lib_version:m2,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:p2()/1e3}),t}function Mt(e,t){return e.indexOf(t)>=0}function g2(e,t,r){return t=t||"",r||Mt(e," OPR/")?Mt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Mt(e,"IEMobile")||Mt(e,"WPDesktop")?"Internet Explorer Mobile":Mt(e,"SamsungBrowser/")?"Samsung Internet":Mt(e,"Edge")||Mt(e,"Edg/")?"Microsoft Edge":Mt(e,"FBIOS")?"Facebook Mobile":Mt(e,"Chrome")?"Chrome":Mt(e,"CriOS")?"Chrome iOS":Mt(e,"UCWEB")||Mt(e,"UCBrowser")?"UC Browser":Mt(e,"FxiOS")?"Firefox iOS":Mt(t,"Apple")?Mt(e,"Mobile")?"Mobile Safari":"Safari":Mt(e,"Android")?"Android Mobile":Mt(e,"Konqueror")?"Konqueror":Mt(e,"Firefox")?"Firefox":Mt(e,"MSIE")||Mt(e,"Trident/")?"Internet Explorer":Mt(e,"Gecko")?"Mozilla":""}function OF(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=g2(e,t,r),o=n[i]||void 0;if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null}function RF(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function NF(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function MF(e){var t=e.split("/");return t.length>=3?t[2]:""}var y2={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch(o){}return null},setItem:function(e,t){try{var r="",n="",i="",o=e+"="+encodeURIComponent(t)+n+"; path=/"+r+i;document.cookie=o}catch(s){return}},removeItem:function(e){try{y2.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},d2=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},h2=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},ty=void 0,Wl=void 0,Gl=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},kF=function(e,t){if(t){if(!localStorage){var r=d2(t.localStorage);ty=h2(r)?r:void 0}if(!Wl){var n=d2(t.sessionStorage);Wl=h2(n)?n:void 0}}switch(e){case"cookie":return y2||ty||Wl||Gl();case"localStorage":return ty||Wl||Gl();case"sessionStorage":return Wl||Gl();case"memory":return Gl();default:return Gl()}},v2=function(e){EF(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),i._storage=kF((n==null?void 0:n.persistence)||"localStorage",window),i.setupBootstrap(n),i}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return m2},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return _e(_e({},e.prototype.getCommonEventProperties.call(this)),AF(window))},t}(IF);function LF(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function FF(e,t){try{return await fetch(e,t)}catch(r){throw LF(r)}}var _n=null;typeof globalThis.window<"u"&&(_n=new v2("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),_n.fetch=FF);var w2={version:"0.4.6",package:"idkit-js"};var x2=e=>{e?_n==null||_n.capture("idkit loaded",w2):_n==null||_n.optOut()},b2=()=>{_n==null||_n.capture("idkit opened",w2)};var $F=Cd()((e,t)=>({app_id:"",signal:"",action:"",action_description:"",walletConnectProjectId:"",credential_types:[],open:!1,code:"",result:null,theme:"light",errorTitle:"",errorDetail:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stage:"WORLD_ID",copy:{},computed:{canGoBack:r=>{switch(r){case"PRIVACY":return!0;default:return!1}}},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>{e({stage:"WORLD_ID",errorState:null})},addSuccessCallback:(r,n)=>{e(i=>(i.successCallbacks[n]=r,i))},addVerificationCallback:(r,n)=>{e(i=>(i.verifyCallbacks[n]=r,i))},setOptions:({handleVerify:r,onSuccess:n,signal:i,action:o,app_id:s,credential_types:a,action_description:u,walletConnectProjectId:l,autoClose:p,copy:h,theme:g},w)=>{let v=a==null?void 0:a.filter(_=>Object.values(Td).includes(_));e(_=>({theme:g,signal:i,action:o,app_id:s,credential_types:v,autoClose:p,action_description:u,walletConnectProjectId:l,copy:K(K({},_.copy),h)})),n&&t().addSuccessCallback(n,w),r&&t().addVerificationCallback(r,w)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let i;n&&typeof n=="object"&&n.message&&(i=n.message),e({stage:"ERROR",errorState:{code:"failed_by_host_app",message:i}})})},onOpenChange:r=>{if(r)return b2(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result,i=t().successCallbacks;n&&requestAnimationFrame(()=>Object.values(i).forEach(o=>void(o==null?void 0:o(n))))}e({open:r,code:"",result:null,errorState:null,processing:!1,stage:"WORLD_ID"})}})),Sn=$F;c();d();f();var o7=Y(H6(),1);c();d();f();var n7=Y(ae(),1);c();d();f();c();d();f();var Ut=Y(ae()),e5=Y(Ss()),gi=Y(Q6()),jU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function t5(e,t){return e(t={exports:{}},t.exports),t.exports}var zU=t5(function(e){(function(t){var r=function(D,C,I){if(!u(C)||p(C)||h(C)||g(C)||a(C))return C;var P,R=0,U=0;if(l(C))for(P=[],U=C.length;R<U;R++)P.push(r(D,C[R],I));else for(var j in P={},C)Object.prototype.hasOwnProperty.call(C,j)&&(P[D(j,I)]=r(D,C[j],I));return P},n=function(D){return w(D)?D:(D=D.replace(/[\-_\s]+(.)?/g,function(C,I){return I?I.toUpperCase():""})).substr(0,1).toLowerCase()+D.substr(1)},i=function(D){var C=n(D);return C.substr(0,1).toUpperCase()+C.substr(1)},o=function(D,C){return function(I,P){var R=(P=P||{}).separator||"_",U=P.split||/(?=[A-Z])/;return I.split(U).join(R)}(D,C).toLowerCase()},s=Object.prototype.toString,a=function(D){return typeof D=="function"},u=function(D){return D===Object(D)},l=function(D){return s.call(D)=="[object Array]"},p=function(D){return s.call(D)=="[object Date]"},h=function(D){return s.call(D)=="[object RegExp]"},g=function(D){return s.call(D)=="[object Boolean]"},w=function(D){return(D-=0)==D},v=function(D,C){var I=C&&"process"in C?C.process:C;return typeof I!="function"?D:function(P,R){return I(P,D,R)}},_={camelize:n,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(D,C){return r(v(n,C),D)},decamelizeKeys:function(D,C){return r(v(o,C),D,C)},pascalizeKeys:function(D,C){return r(v(i,C),D)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=_:t.humps=_})(jU)}).decamelize,HU=t5(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},t.apply(this,arguments)}e.exports=t}),KU=function(e){if(Array.isArray(e))return e},qU=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||a.return==null||a.return()}finally{if(i)throw o}}return r}},Z6=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},WU=function(e,t){if(e){if(typeof e=="string")return Z6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z6(e,t):void 0}},GU=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},YU=function(e,t){return KU(e)||qU(e,t)||WU(e,t)||GU()},XU=function(e,t){if(e==null)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},JU=function(e,t){if(e==null)return{};var r,n,i=XU(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},QU=(0,Ut.createContext)(null);function v1(e){var t=e.root,r=e.children;return(0,e5.createPortal)(r,t)}function ZU(e){var t=(0,Ut.forwardRef)(function(r,n){var i,o,s=r.mode,a=r.delegatesFocus,u=r.styleSheets,l=r.ssr,p=r.children,h=JU(r,["mode","delegatesFocus","styleSheets","ssr","children"]),g=(o=(0,Ut.useRef)((i=n)&&i.current),(0,Ut.useEffect)(function(){i&&(i.current=o.current)},[i]),o),w=(0,Ut.useState)(null),v=YU(w,2),_=v[0],D=v[1],C="node_".concat(s).concat(a);return(0,Ut.useLayoutEffect)(function(){if(g.current)try{if(typeof n=="function"&&n(g.current),l){var I=g.current.shadowRoot;return void D(I)}var P=g.current.attachShadow({mode:s,delegatesFocus:a});u.length>0&&(P.adoptedStyleSheets=u),D(P)}catch(R){(function(U){var j=U.error,F=U.styleSheets,$=U.root;switch(j.name){case"NotSupportedError":F.length>0&&($.adoptedStyleSheets=F);break;default:throw j}})({error:R,styleSheets:u,root:_})}},[n,g,u]),Ut.default.createElement(Ut.default.Fragment,null,Ut.default.createElement(e.tag,HU({key:C,ref:g},h),(_||l)&&Ut.default.createElement(QU.Provider,{value:_},l?Ut.default.createElement("template",{shadowroot:"open"},e.render({root:_,ssr:l,children:p})):Ut.default.createElement(v1,{root:_},e.render({root:_,ssr:l,children:p})))))});return t.propTypes={mode:gi.default.oneOf(["open","closed"]),delegatesFocus:gi.default.bool,styleSheets:gi.default.arrayOf(gi.default.instanceOf(globalThis.CSSStyleSheet)),ssr:gi.default.bool,children:gi.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}v1.propTypes={root:gi.default.object.isRequired,children:gi.default.node},v1.defaultProps={children:null};var y1=new Map;function e9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,i){var o=zU(i,{separator:"-"}),s="".concat(t,"-").concat(o);return y1.has(s)||y1.set(s,ZU({tag:o,render:r})),y1.get(s)}})}var t9=e9(),r5=t9;c();d();f();var r9=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;700&family=Sora:wght@600&display=swap");
17
+ /*! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-px{bottom:1px;left:1px;right:1px;top:1px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.\\!-m-px{margin:-1px!important}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.-ml-4{margin-left:-1rem}.-mt-5{margin-top:-1.25rem}.-mt-6{margin-top:-1.5rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\\[2px\\]{margin-top:2px}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-px{height:1px!important}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[300px\\]{height:300px}.h-\\[72px\\]{height:72px}.min-h-full{min-height:100%}.\\!w-px{width:1px!important}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-\\[300px\\]{width:300px}.w-\\[34px\\]{width:34px}.w-\\[72px\\]{width:72px}.w-full{width:100%}.flex-1{flex:1 1 0%}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.scale-x-\\[2\\.0\\]{--tw-scale-x:2.0}.scale-x-\\[2\\.0\\],.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.\\!overflow-hidden{overflow:hidden!important}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.\\!whitespace-nowrap{white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-4{border-width:4px}.border-solid{border-style:solid}.border-none{border-style:none}.border-current{border-color:currentColor}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.border-r-transparent{border-right-color:transparent}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-conic{background-image:conic-gradient(var(--tw-gradient-stops))}.from-black{--tw-gradient-from:#000;--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-f2f5f9{--tw-gradient-from:#f2f5f9;--tw-gradient-to:rgba(242,245,249,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-gray-200{--tw-gradient-to:rgba(229,231,235,0);--tw-gradient-stops:var(--tw-gradient-from),#e5e7eb,var(--tw-gradient-to)}.via-white\\/30{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.3),var(--tw-gradient-to)}.to-black{--tw-gradient-to:#000}.to-gray-200{--tw-gradient-to:#e5e7eb}.\\!p-0{padding:0!important}.p-2{padding:.5rem}.p-5{padding:1.25rem}.px-12{padding-left:3rem;padding-right:3rem}.px-24{padding-left:6rem;padding-right:6rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-sora{font-family:Sora,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.blur{--tw-blur:blur(8px)}.blur,.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.\\!\\[clip\\:rect\\(0\\2c 0\\2c 0\\2c 0\\)\\]{clip:rect(0,0,0,0)!important}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}@media (prefers-reduced-motion:reduce){@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{-webkit-animation:spin 1.5s linear infinite;animation:spin 1.5s linear infinite}}.dark .dark\\:border{border-width:1px}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:hidden{display:none}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-2xl{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.md\\:p-4{padding:1rem}}`,n5=()=>y.createElement("style",null,r9);c();d();f();var Wh=Y(ae(),1),n9=()=>{let[e,t]=(0,Wh.useState)("desktop");return(0,Wh.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=i=>t(i.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Wa=n9;c();d();f();var yi=(...e)=>e.filter(Boolean).join(" "),i5=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);c();d();f();function Ga(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}c();d();f();var i9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.createElement("path",{strokeWidth:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m16.243 7.758-8.485 8.485m8.485 0L7.758 7.758"})),Gh=i9;c();d();f();var o9=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),o5={["failed_by_host_app"]:"Verification Declined",["generic_error"]:"Verification Failed"},s9={["connection_failed"]:"Connection to the World App or identity wallet failed. Please try again.",["verification_rejected"]:"Verification request rejected in the World App.",["max_verifications_reached"]:"You have already verified the maximum number of times for this action.",["already_signed"]:"You have already verified for this action.",["credential_unavailable"]:"It seems you do not have the credential required by this app.",["malformed_request"]:"There was a problem with this request. Please try again or contact the app owner.",["invalid_network"]:"This app is not available on the network you are connected to. Visit docs.worldcoin.org/test for details.",["inclusion_proof_failed"]:"There was an issue fetching your credential. Please try again.",["inclusion_proof_pending"]:"Your credential is still being registered. Please wait a few minutes and try again.",["failed_by_host_app"]:"Verification failed by the app. Please contact the app owner for details.",["unexpected_response"]:"Unexpected response from the World App or identity wallet. Please try again.",["generic_error"]:"Something unexpected went wrong. Please try again."},a9=()=>{var r;let{retryFlow:e,errorState:t}=Sn(o9,Ga);return y.createElement("div",{className:"space-y-8"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},y.createElement(Gh,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(t==null?void 0:t.code)&&o5[t.code]||o5["generic_error"]),y.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||s9[(r=t==null?void 0:t.code)!=null?r:"generic_error"])),y.createElement("div",{className:"flex justify-center"},y.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),y.createElement("div",null,y.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},s5=a9;c();d();f();var u9=({className:e=""})=>y.createElement("div",{className:"flex items-center justify-center"},y.createElement("div",{className:`inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ${e}`,role:"status"},y.createElement("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading..."))),lo=u9;c();d();f();c();d();f();function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}var fe=Y(ae()),C5=Y(Ss());c();d();f();function pr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}c();d();f();var a5=Y(ae());function l9(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function w1(...e){return t=>e.forEach(r=>l9(r,t))}function mr(...e){return(0,a5.useCallback)(w1(...e),e)}c();d();f();var Nn=Y(ae());c();d();f();var Sr=Y(ae());function u5(e,t){let r=(0,Sr.createContext)(t);function n(o){let l=o,{children:s}=l,a=de(l,["children"]),u=(0,Sr.useMemo)(()=>a,Object.values(a));return(0,Sr.createElement)(r.Provider,{value:u},s)}function i(o){let s=(0,Sr.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function Ya(e,t=[]){let r=[];function n(o,s){let a=(0,Sr.createContext)(s),u=r.length;r=[...r,s];function l(h){let C=h,{scope:g,children:w}=C,v=de(C,["scope","children"]),_=(g==null?void 0:g[e][u])||a,D=(0,Sr.useMemo)(()=>v,Object.values(v));return(0,Sr.createElement)(_.Provider,{value:D},w)}function p(h,g){let w=(g==null?void 0:g[e][u])||a,v=(0,Sr.useContext)(w);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,p]}let i=()=>{let o=r.map(s=>(0,Sr.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||o;return(0,Sr.useMemo)(()=>({[`__scope${e}`]:ue(K({},a),{[e]:u})}),[a,u])}};return i.scopeName=e,[n,c9(i,...t)]}function c9(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){let s=n.reduce((a,{useScope:u,scopeName:l})=>{let h=u(o)[`__scope${l}`];return K(K({},a),h)},{});return(0,Sr.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var It=Y(ae());var co=(0,It.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=de(s,["children"]),i=It.Children.toArray(r),o=i.find(d9);if(o){let a=o.props.children,u=i.map(l=>l===o?It.Children.count(a)>1?It.Children.only(null):(0,It.isValidElement)(a)?a.props.children:null:l);return(0,It.createElement)(x1,Ce({},n,{ref:t}),(0,It.isValidElement)(a)?(0,It.cloneElement)(a,void 0,u):null)}return(0,It.createElement)(x1,Ce({},n,{ref:t}),r)});co.displayName="Slot";var x1=(0,It.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=de(i,["children"]);return(0,It.isValidElement)(r)?(0,It.cloneElement)(r,ue(K({},h9(n,r.props)),{ref:w1(t,r.ref)})):It.Children.count(r)>1?It.Children.only(null):null});x1.displayName="SlotClone";var f9=({children:e})=>(0,It.createElement)(It.Fragment,null,e);function d9(e){return(0,It.isValidElement)(e)&&e.type===f9}function h9(e,t){let r=K({},t);for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{o(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]=K(K({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return K(K({},e),r)}function l5(e){let t=e+"CollectionProvider",[r,n]=Ya(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{let{scope:v,children:_}=w,D=Nn.default.useRef(null),C=Nn.default.useRef(new Map).current;return Nn.default.createElement(i,{scope:v,itemMap:C,collectionRef:D},_)},a=e+"CollectionSlot",u=Nn.default.forwardRef((w,v)=>{let{scope:_,children:D}=w,C=o(a,_),I=mr(v,C.collectionRef);return Nn.default.createElement(co,{ref:I},D)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=Nn.default.forwardRef((w,v)=>{let U=w,{scope:_,children:D}=U,C=de(U,["scope","children"]),I=Nn.default.useRef(null),P=mr(v,I),R=o(l,_);return Nn.default.useEffect(()=>(R.itemMap.set(I,K({ref:I},C)),()=>void R.itemMap.delete(I))),Nn.default.createElement(co,{[p]:"",ref:P},D)});function g(w){let v=o(e+"CollectionConsumer",w);return Nn.default.useCallback(()=>{let D=v.collectionRef.current;if(!D)return[];let C=Array.from(D.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((R,U)=>C.indexOf(R.ref.current)-C.indexOf(U.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},g,n]}c();d();f();var Fe=Y(ae());c();d();f();var Xa=Y(ae()),c5=Y(Ss());var p9=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],rr=p9.reduce((e,t)=>{let r=(0,Xa.forwardRef)((n,i)=>{let u=n,{asChild:o}=u,s=de(u,["asChild"]),a=o?co:t;return(0,Xa.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Xa.createElement)(a,Ce({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,ue(K({},e),{[t]:r})},{});function Yh(e,t){e&&(0,c5.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var Ja=Y(ae());function Lr(e){let t=(0,Ja.useRef)(e);return(0,Ja.useEffect)(()=>{t.current=e}),(0,Ja.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var f5=Y(ae());function d5(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(e);(0,f5.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var b1="dismissableLayer.update",m9="dismissableLayer.pointerDownOutside",g9="dismissableLayer.focusOutside",h5,m5=(0,Fe.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E1=(0,Fe.forwardRef)((e,t)=>{var r;let $=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:u}=$,l=de($,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),p=(0,Fe.useContext)(m5),[h,g]=(0,Fe.useState)(null),w=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=(0,Fe.useState)({}),_=mr(t,G=>g(G)),D=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(C),P=h?D.indexOf(h):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,U=P>=I,j=v9(G=>{let X=G.target,W=[...p.branches].some(J=>J.contains(X));!U||W||(o==null||o(G),a==null||a(G),G.defaultPrevented||u==null||u())},w),F=w9(G=>{let X=G.target;[...p.branches].some(J=>J.contains(X))||(s==null||s(G),a==null||a(G),G.defaultPrevented||u==null||u())},w);return d5(G=>{P===p.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&u&&(G.preventDefault(),u()))},w),(0,Fe.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(h5=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),p5(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=h5)}},[h,w,n,p]),(0,Fe.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),p5())},[h,p]),(0,Fe.useEffect)(()=>{let G=()=>v({});return document.addEventListener(b1,G),()=>document.removeEventListener(b1,G)},[]),(0,Fe.createElement)(rr.div,Ce({},l,{ref:_,style:K({pointerEvents:R?U?"auto":"none":void 0},e.style),onFocusCapture:pr(e.onFocusCapture,F.onFocusCapture),onBlurCapture:pr(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:pr(e.onPointerDownCapture,j.onPointerDownCapture)}))});var y9=(0,Fe.forwardRef)((e,t)=>{let r=(0,Fe.useContext)(m5),n=(0,Fe.useRef)(null),i=mr(t,n);return(0,Fe.useEffect)(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,Fe.createElement)(rr.div,Ce({},e,{ref:i}))});function v9(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(e),n=(0,Fe.useRef)(!1),i=(0,Fe.useRef)(()=>{});return(0,Fe.useEffect)(()=>{let o=a=>{if(a.target&&!n.current){let l=function(){g5(m9,r,u,{discrete:!0})},u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function w9(e,t=globalThis==null?void 0:globalThis.document){let r=Lr(e),n=(0,Fe.useRef)(!1);return(0,Fe.useEffect)(()=>{let i=o=>{o.target&&!n.current&&g5(g9,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function p5(){let e=new CustomEvent(b1);document.dispatchEvent(e)}function g5(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Yh(i,o):i.dispatchEvent(o)}var y5=E1,v5=y9;c();d();f();var Xh=Y(ae()),w5=Y(Ss());var Jh=(0,Xh.forwardRef)((e,t)=>{var r;let o=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=o,i=de(o,["container"]);return n?w5.default.createPortal((0,Xh.createElement)(rr.div,Ce({},i,{ref:t})),n):null});c();d();f();var gr=Y(ae()),b5=Y(Ss());c();d();f();var x5=Y(ae()),Cs=Boolean(globalThis==null?void 0:globalThis.document)?x5.useLayoutEffect:()=>{};function x9(e,t){return(0,gr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var Bc=e=>{let{present:t,children:r}=e,n=b9(t),i=typeof r=="function"?r({present:n.isPresent}):gr.Children.only(r),o=mr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,gr.cloneElement)(i,{ref:o}):null};Bc.displayName="Presence";function b9(e){let[t,r]=(0,gr.useState)(),n=(0,gr.useRef)({}),i=(0,gr.useRef)(e),o=(0,gr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=x9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,gr.useEffect)(()=>{let l=Qh(n.current);o.current=a==="mounted"?l:"none"},[a]),Cs(()=>{let l=n.current,p=i.current;if(p!==e){let g=o.current,w=Qh(l);e?u("MOUNT"):w==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&g!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Cs(()=>{if(t){let l=h=>{let w=Qh(n.current).includes(h.animationName);h.target===t&&w&&(0,b5.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(o.current=Qh(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,gr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function Qh(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var fo=Y(ae());function E5({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=E9({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=Lr(r),u=(0,fo.useCallback)(l=>{if(o){let h=typeof l=="function"?l(e):l;h!==e&&a(h)}else i(l)},[o,e,i,a]);return[s,u]}function E9({defaultProp:e,onChange:t}){let r=(0,fo.useState)(e),[n]=r,i=(0,fo.useRef)(n),o=Lr(t);return(0,fo.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var Zh=Y(ae());var _1=(0,Zh.forwardRef)((e,t)=>(0,Zh.createElement)(rr.span,Ce({},e,{ref:t,style:K({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)})));var T5="ToastProvider",[P1,_9,S9]=l5("Toast"),[P5,Nte]=Ya("Toast",[S9]),[C9,tp]=P5(T5),D5=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,u]=(0,fe.useState)(null),[l,p]=(0,fe.useState)(0),h=(0,fe.useRef)(!1),g=(0,fe.useRef)(!1);return(0,fe.createElement)(P1.Provider,{scope:t},(0,fe.createElement)(C9,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,fe.useCallback)(()=>p(w=>w+1),[]),onToastRemove:(0,fe.useCallback)(()=>p(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:g},s))};D5.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${T5}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var T9="ToastViewport",P9=["F8"],C1="toast.viewportPause",T1="toast.viewportResume",D9=(0,fe.forwardRef)((e,t)=>{let D=e,{__scopeToast:r,hotkey:n=P9,label:i="Notifications ({hotkey})"}=D,o=de(D,["__scopeToast","hotkey","label"]),s=tp(T9,r),a=_9(r),u=(0,fe.useRef)(null),l=(0,fe.useRef)(null),p=(0,fe.useRef)(null),h=(0,fe.useRef)(null),g=mr(t,h,s.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;(0,fe.useEffect)(()=>{let C=I=>{var P;n.every(U=>I[U]||I.code===U)&&((P=h.current)===null||P===void 0||P.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[n]),(0,fe.useEffect)(()=>{let C=u.current,I=h.current;if(v&&C&&I){let P=()=>{if(!s.isClosePausedRef.current){let F=new CustomEvent(C1);I.dispatchEvent(F),s.isClosePausedRef.current=!0}},R=()=>{if(s.isClosePausedRef.current){let F=new CustomEvent(T1);I.dispatchEvent(F),s.isClosePausedRef.current=!1}},U=F=>{!C.contains(F.relatedTarget)&&R()},j=()=>{C.contains(document.activeElement)||R()};return C.addEventListener("focusin",P),C.addEventListener("focusout",U),C.addEventListener("pointermove",P),C.addEventListener("pointerleave",j),window.addEventListener("blur",P),window.addEventListener("focus",R),()=>{C.removeEventListener("focusin",P),C.removeEventListener("focusout",U),C.removeEventListener("pointermove",P),C.removeEventListener("pointerleave",j),window.removeEventListener("blur",P),window.removeEventListener("focus",R)}}},[v,s.isClosePausedRef]);let _=(0,fe.useCallback)(({tabbingDirection:C})=>{let P=a().map(R=>{let U=R.ref.current,j=[U,...H9(U)];return C==="forwards"?j:j.reverse()});return(C==="forwards"?P.reverse():P).flat()},[a]);return(0,fe.useEffect)(()=>{let C=h.current;if(C){let I=P=>{let R=P.altKey||P.ctrlKey||P.metaKey;if(P.key==="Tab"&&!R){let G=document.activeElement,X=P.shiftKey;if(P.target===C&&X){var j;(j=l.current)===null||j===void 0||j.focus();return}let N=_({tabbingDirection:X?"backwards":"forwards"}),m=N.findIndex(E=>E===G);if(S1(N.slice(m+1)))P.preventDefault();else{var F,$;X?(F=l.current)===null||F===void 0||F.focus():($=p.current)===null||$===void 0||$.focus()}}};return C.addEventListener("keydown",I),()=>C.removeEventListener("keydown",I)}},[a,_]),(0,fe.createElement)(v5,{ref:u,role:"region","aria-label":i.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&(0,fe.createElement)(_5,{ref:l,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"forwards"});S1(C)}}),(0,fe.createElement)(P1.Slot,{scope:r},(0,fe.createElement)(rr.ol,Ce({tabIndex:-1},o,{ref:g}))),v&&(0,fe.createElement)(_5,{ref:p,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"backwards"});S1(C)}}))}),I9="ToastFocusProxy",_5=(0,fe.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=de(s,["__scopeToast","onFocusFromOutsideViewport"]),o=tp(I9,r);return(0,fe.createElement)(_1,Ce({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var u;let l=a.relatedTarget;!((u=o.viewport)!==null&&u!==void 0&&u.contains(l))&&n()}}))}),rp="Toast",A9="toast.swipeStart",O9="toast.swipeMove",R9="toast.swipeCancel",N9="toast.swipeEnd";var[M9,k9]=P5(rp,{onClose(){}}),L9=(0,fe.forwardRef)((e,t)=>{let m=e,{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:w}=m,v=de(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),_=tp(rp,r),[D,C]=(0,fe.useState)(null),I=mr(t,E=>C(E)),P=(0,fe.useRef)(null),R=(0,fe.useRef)(null),U=i||_.duration,j=(0,fe.useRef)(0),F=(0,fe.useRef)(U),$=(0,fe.useRef)(0),{onToastAdd:G,onToastRemove:X}=_,W=Lr(()=>{var E;(D==null?void 0:D.contains(document.activeElement))&&((E=_.viewport)===null||E===void 0||E.focus()),s()}),J=(0,fe.useCallback)(E=>{!E||E===1/0||(window.clearTimeout($.current),j.current=new Date().getTime(),$.current=window.setTimeout(W,E))},[W]);(0,fe.useEffect)(()=>{let E=_.viewport;if(E){let A=()=>{J(F.current),l==null||l()},O=()=>{let M=new Date().getTime()-j.current;F.current=F.current-M,window.clearTimeout($.current),u==null||u()};return E.addEventListener(C1,O),E.addEventListener(T1,A),()=>{E.removeEventListener(C1,O),E.removeEventListener(T1,A)}}},[_.viewport,U,u,l,J]),(0,fe.useEffect)(()=>{o&&!_.isClosePausedRef.current&&J(U)},[o,U,_.isClosePausedRef,J]),(0,fe.useEffect)(()=>(G(),()=>X()),[G,X]);let N=(0,fe.useMemo)(()=>D?A5(D):null,[D]);return _.viewport?(0,fe.createElement)(fe.Fragment,null,N&&(0,fe.createElement)(F9,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},N),(0,fe.createElement)(M9,{scope:r,onClose:W},(0,C5.createPortal)((0,fe.createElement)(P1.ItemSlot,{scope:r},(0,fe.createElement)(y5,{asChild:!0,onEscapeKeyDown:pr(a,()=>{_.isFocusedToastEscapeKeyDownRef.current||W(),_.isFocusedToastEscapeKeyDownRef.current=!1})},(0,fe.createElement)(rr.li,Ce({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":_.swipeDirection},v,{ref:I,style:K({userSelect:"none",touchAction:"none"},e.style),onKeyDown:pr(e.onKeyDown,E=>{E.key==="Escape"&&(a==null||a(E.nativeEvent),E.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:pr(e.onPointerDown,E=>{E.button===0&&(P.current={x:E.clientX,y:E.clientY})}),onPointerMove:pr(e.onPointerMove,E=>{if(!P.current)return;let A=E.clientX-P.current.x,O=E.clientY-P.current.y,M=Boolean(R.current),V=["left","right"].includes(_.swipeDirection),B=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,k=V?B(0,A):0,b=V?0:B(0,O),L=E.pointerType==="touch"?10:2,Q={x:k,y:b},T={originalEvent:E,delta:Q};M?(R.current=Q,ep(O9,h,T,{discrete:!1})):S5(Q,_.swipeDirection,L)?(R.current=Q,ep(A9,p,T,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(A)>L||Math.abs(O)>L)&&(P.current=null)}),onPointerUp:pr(e.onPointerUp,E=>{let A=R.current,O=E.target;if(O.hasPointerCapture(E.pointerId)&&O.releasePointerCapture(E.pointerId),R.current=null,P.current=null,A){let M=E.currentTarget,V={originalEvent:E,delta:A};S5(A,_.swipeDirection,_.swipeThreshold)?ep(N9,w,V,{discrete:!0}):ep(R9,g,V,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})))),_.viewport))):null});L9.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${rp}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var F9=e=>{let l=e,{__scopeToast:t,children:r}=l,n=de(l,["__scopeToast","children"]),i=tp(rp,t),[o,s]=(0,fe.useState)(!1),[a,u]=(0,fe.useState)(!1);return j9(()=>s(!0)),(0,fe.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,fe.createElement)(Jh,{asChild:!0},(0,fe.createElement)(_1,n,o&&(0,fe.createElement)(fe.Fragment,null,i.label," ",r)))};var $9="ToastAction",U9=(0,fe.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=de(i,["altText"]);return r?(0,fe.createElement)(I5,{altText:r,asChild:!0},(0,fe.createElement)(B9,Ce({},n,{ref:t}))):null});U9.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${$9}\``)}};var V9="ToastClose",B9=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=de(o,["__scopeToast"]),i=k9(V9,r);return(0,fe.createElement)(I5,{asChild:!0},(0,fe.createElement)(rr.button,Ce({type:"button"},n,{ref:t,onClick:pr(e.onClick,i.onClose)})))}),I5=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=de(o,["__scopeToast","altText"]);return(0,fe.createElement)(rr.div,Ce({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function A5(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),z9(n)){let i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){let s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...A5(n))}}),t}function ep(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Yh(i,o):i.dispatchEvent(o)}var S5=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function j9(e=()=>{}){let t=Lr(e);Cs(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function z9(e){return e.nodeType===e.ELEMENT_NODE}function H9(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function S1(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var O5=D5,R5=D9;c();d();f();c();d();f();var N5="data:image/webp;base64,UklGRlYhAABXRUJQVlA4TEkhAAAvX8AXEE0obNu2ge3s5P+H2yMi+j8BAKCFvQAkAB9JVPcjKfwuA2ZU4ABsJjfCcYfKJDsieO1eJDNz2T5c4wyX9OYZ65NJmll45kh68K7EhYNIkhQpj+vAv9p7fhFuHNt2k7FNjs5+ovpi/4uiQtQ5I4Vt2zb8/+GkQ0D/JwC/N57w/0IJN54cufsDwIgn2FB+4R//CVDJDBgjcOAMsHhWAjf4VZJfJ4iAnj8AuAFifRPpCcCBSFlEwAYoMO6JL/64sxK4gFmAmppEgnXECmBGCRczERLhAEBY0VIGJSUADARt2yYJf9bbfgoRMQH8q4dpLhaUgMlMqAQrsIJK4EewAEw1B1bJL7Zb245NknSc1/087xuOzEDaNsa2bdv8Nj8g1/wA27Y903aXXWk7MzKSwfd57vscZKVXf/YtSZIlSZJtIauZRWT0/d7//2n3+707s9zDTYU9SJKk2rZtW2aRrffJczPvXf+KMfPe58zRWxgl2rZNu1a/Jxdx8mzbtm3brtmq2irb+LZt23i2jZN7JsDTbdumbWvbPqFSa+tjzr0v27Zt21fQITtoX1fI1xXz9QN8XbEraNtXyDY3z1lr9N6qLNu200baT5aheYY9DSZXz5K7f5nBjqTnW5IkS5Ik20ISj6rq24f0U///71w/4Z4ZyhG+BUiSJEmSJEBEYvG4/v9Lr0wTYcLfCARt28bZ+VN+I0AM+ITyC7yPn3fnLCgBDODJ9+AeSD+bNnkU9DwHGs1AHdAEVrACkcEQSJv/ypyy/an2eq/x4atnzAafyq71XLzg+ZpMayMOCACTjApasgRYipFAUhiGb8/9nsesNT5WeHZs8KzbelttrRLbS3FAVMgUlGAgqhqoLebzkC0opJDEiMNOctbart7kQ+Vnw0rvqzScD6bBQsAADMJnntr8NtYe2HRosrf0uqXHm/T1TfrvG/6HS5/vXepnJz++eOmnXxz+4YOgAoFUUnZ09pq3DSWfAUmDQkNAYEAmiu/e//UL/ZvtV3SiHCpLNMzSC3opvr1J/3nR/8H/H/zdO3k+yeujxY/PDv3hg6/6+rS0AgQVs+HEng89n7a1PpYvXhsyywLQxhs/+fXlB79m30P145L2mD1zJDg9OltcrGaqPIlJfd+Gt1Z+fbP+/9j+H2x5PMWXD/zTh10f4wfW8UNLKxOoACgt9fxkJJ6qyn8TwRZJoNV3vu9/+Ib/afTxEI/3Fp7v/PPri2/XfZcWhjBrUmpkwdgd+7vjvx5z9ID66zWvf/n6Z5/7/HgfP3YuQUXtb6HcU5R9LAkLAgRf8MAXfkN9H+m+nJ93fvH67LePT57zBFEwIDVSEFIMYTK5ZVfRU/T0pZvN8/TO9R8f/HdBglBe9sx5anAXs80qsHyP/a+HZaPouN3xz+/Hh84xG4kgDLCoXJvVwkNYJGExS4q1zvKk+l64fV+j/1ft56fu/1cTlE1kj4pPSWLVQDFAwS4HJ7Tw5rve+zFm14AQRNCAFewazA7aLLEsGJAasWzjesWrpn89aPxXj9uex/9b2hVQoVR4K/80gFhmcUwEjRkDp8qbFt7w3AeuH5EgBpMpSGrkbEtgULGIlULAJNEmUGiKZ/jXzEP6Dv3PMbBjAalwqjwF2GpSLGQEuifKO6bfc+5CkQJBghABgLRsOAhDLSwEA5FpDyKZBUE2JY7OUzzg51H2MTEQGbGs3CdtLconryMmjHXFktx0LJ24fqyAAAMAWQBAABiSQEQgtSdngwgPhxVNI5AtBNztmHld/DpGby3bCQjosuZuVH6iNrlHGFtB5VommtSXlNud82XuQBAggEIgAAIETYGgsUDCcLEgANmwSDQCQgEELND8XNxRRasmgKBFiwXP5k/Oeu+rFfcgULnAIN1+fI/8Mcb/L8e3E5JsAZggBLUJAw1ECBM2YaCllIkKhsgC6Vz5pJBdN99gpCBSZcyQrdf76k/GIQTBccEJSIKNzac3lDm+/+L7H/GCkMLyCAklVkuGBghA4FAUJAMXSqmeIhRC6X+lv1YpI96n5LY5q0ABZYalOPHQvwke3xcg/meeI63ZZrzQ8uaHXxlzOON8+EWZBCEqhkyJQASylohigEmFJQTgioEpnGDKiVAWgz36bXVlzDDu+LpoRaQIW9Bo2p99fT/+cZ3xaNQ6U2E5YKz46k998mt4jzLjLePH04lCyBYxqxxSTEbDiZgwJhYhIxXGFkkOVQkAvrGNVhRs3107XzHDHQfoi6oqUaRQVRi7w7vaj2ONX2WFMwx33xDDJ3/iu75q9CE9dXUf/3QdJ4MgLCRCbKAqsXUthlkQ4sxN/3vE53vYt93sCFAUGZlzYURwQq4UjJGs69G/O2Y7mGNkjy+nfUYEYcB+LccfQvDI8IeKYHRiDFh751v+m1Xfbulxm3/mH1bef0ggCW0YCqWlGMNSEsoVxpLd56c3v/T6l73m1a9vf93H7v75Ax//9OD2JSASsnbimZkAAU1rgBl68n74Z5rZUsearW/eWnWPACOoOOpPvav+iGrWNQswRPu+w85vKz4Tzzy31ruuzItABJSQNLQMkFCmASKCQLpa+9zk/CjOI4/hzuTn4e1373jyl6dNvyE0pQE7XcgKUSFEYaBQgRT1ovcvvbEUoxht/TZWvQAkalSuYqVHEiomlTUErHhixTfxxM2N//g4Tl0KEABBAiGvrdymweYGYAQCxMR+czPVX6i/aroaOVGOiLi7Xv3zrduvd6kns5Rwuusd5QpUQGgkmUkBYIrgQvJScrdJG6te2fpEFkRMCZUfgV3FgkJisuwBP+CnTgQ/31ZaakIIFqCcEgUhJgrhWquOvvMbzvz8mD9E4AOyWFGhHUQd33o9/M23BGwOKuFU5piQIgYbO3aNtbjx5cfVM7Fuum7jCyEFErKNoocyf7Puitqlucqf8hMn345bC1hMsoSQYaYMjFiJ07lya3VyFGs7nXkHgZcQrWhCwyF9Hwx2HOPCPe51QBQT2xhd+OYULIpawkAj3T7H9Dv4cvP3Mv8WGYAR2XX6ISrXv4kPshjmI3+qvEbe6B0yFbYYoICazWnlSgGhFCRJlq6x6jc4d4UVImUZVAB0aeSKZnx9dGODOaYUnCItJz5+kdUYhC0MEiwkMx8oP0D+wbjx9tBKAXCp49+nHsiua4W3BAEX3+IXeEFbhYCakChkmLAVmnNXWqaUiISZQtqA36ruUoLFAkCjE3xPHlDYmO+lA4RSlGpLSsAUUalZKluUKxmDoEC8K3/v0n65XDuOSpII/72F8w8A7hhHRZYjP9K1N7Bx8J8Y2ulABkE5CAFaVjklgFfiQFSkgwIKHD/XjjUowqJRFhETCkZOZuZlMZcxSVBJK/GmruRa0KbbCBAtjlpqLQQZpG0nynW5dD4c7cgkCtezIP1OaG/BE9H5Lzn2wxWy7JGRe2QwGYpIhZ1VQAzArkSOVFmyo0tVZRTr1WscLLSWGkCNJlQUBnc8dx+7rT6HRqqzna64Wm4ZmRG7QA6TLSE9yNJCNxm7Dh+X0xnT1DGkpw0OvQM4k/iqJBnv+TV03CbudeDfK6gSkcGCbCHCUEDiwpVAwJEPCi5Liv6yt085x5YKUKPGpDteUjU9+S+XPb5qhWOuxFeVAyopS0uiMWJJtDqUICSMBAdX+iNW/mMrUXbLzklw9X6BtTCUvPeXx5kfItbtq/+aLJYiAgCQMCOCwYvB1zHCgBJZoUAKDG308/96+fE11mZQUcQdZ+iFq/BrOfZcX01aQbFIodw1iqnE0gZiYYtrSi0AY1EwAODz1pJ1eufwQCATVs6u+2U7TyFu+WIvm9Z65Pd3k//FbSoiC8+tVOLKSW1Q4ER7EiIqEtRALRiyWgiAJJ3iqz6PL3xgc6Wsc+f66Hv++hyGArZkKMhWFWVSABiUBGUAAgoEGQK0nPTQFBoZwEE7/3BPqj+3HPrS4ymo2Lh9m3af0cvycKyCRD+6lhde9SEhBTO9uMYJpA1YCCBdt+8l3/53n9Of1q8jH3rjPWfXy3SSxZQAMEGIBRIA/ZChB6IiCQQFgiwKWkmRYQg2w6e5rd/Y/rmOv+u3fvJw/oAgS0VbG2i92Awgq1xzIe8W8TN6+5I1GjGFM37Mf0v8v7mhX72MGw4mGwqKO/0RE8IKouUaOYBRhEHpld/+/6R/Ui71l12vsW9r7fl05/4/p8+86OWsNU2CQrYCIEGWIBMiAAoIDIYCy5aWFZ8in16ssQZXWGGF5FPu28/+///93I8/KFAbFsLHndC7YaVJTBx0av/OkL20M0dQq9wFn4f9P6WZQIq+ofDo9VxkKFg2TMSUZ7SslAQQPvbp543zk+mLcpqY6r02r4cdzacubfRSu52Zdb463jEVnI9uGyUyICGG0Y7VG8u31t5Y9cLe0dhEjboQrRtrcUTAAS1snxVkK0uQwMXXKy0rWLLJ8pr/ukv7pq6vcsgQFa8JAACMv/0lH7YySD51j+zybx2hwHAohmGaLMBUlRpbeN3PHnIeEQHQxBmQMwicscSKucVecYMt7mNhxlQvd3LkjKEeS4wu0GiWZmkvNjTRRF2ylBvH0rr5ioDoyiFZIhFyG/LZ0vpVOOFAu01SqXnPLBVfUnRJVDmdv8BPCwFg6vWxk0KGkh3G0h45x2sZywAskAaR+TBgKnYbWobdoHvTr69bdUQ0FAAAudKCM6IvMSvuxA3uwR5lHsoc2SXncFTWQBDN0l5saKCJZsmSpdx03LQHM26s8Qvff09ULFHA2VcvXM6+Ggw1wSzKnu8qk+HBcpHRU3DZ/2oBQLVoCRT6ZKNdD8dynFoCGyBYKkQiuVIilE69Igy37NZtd2g++/mw+R5DMwxEgA0kvMSsdC8NdA+95DlyL6VH9pAzvOQIIWASGwy0oYEadbVeXjluR76Xlz5y6lKhBJVhMe2FM9fqdOpZRzWyUrE4W1zb0NanbgVl6qoHANSrZoZ6YfN6ao/L8XMgQQwzNmTJyglSVUyCDKHBbrKPerkKq55r++vY9akNjpGKKLxEb9EVd+IWe7BHmYv3yL3kdSlrOPKSFzSh0GB2dGXfXtgvl+XF3BajRiqyCEwikyHq4OyOIMTBpw0VEKA3Co227SOMBI2pDgA25ZEMy/ZDvo4TP0CitNKCMjRSKIh5zmce4JM1lmlvuLvk7uodWNrmVgEBIsEQABADyBFVT67A92o/rv5YXIwMxAIEyikgNWCXvrwN1GLPUbbOetBg3f2mcRP0sRoAYlZJUf9gwqV9v1z6gKWUtZwQxtIGJEy5IndOQZJFmIiEeM34pqxPAQKEQIV68RoSiBFAdWbjF79+M9S0DbXiQeQmUazCiGJyjrbkNv7clwh0t9LG6p3hSlRQ4xCCT0ZWQo5osEffdeT34+qXGFwrQhKTuyTcVerudCq5bK4NQGBiymToUBupiwUKIkQgEAGMvEaiYohlQy08XMBj1aAatsz3aS8yu705aKZah2aJGcMbo4WgKPtfkbngRwEIDP1NXKKaWwtKop7E3nEijuCQYi0lSSFWkhbxwlCwFAK8QCEBJDggCQRQRUaBZeWKiTCnyKP0dF1LdpWc5a692Ixa74RW4HaGBt2dThGQmDHsRwEA0pWo4oqpWQoQKdk15bLKgTkkOPI1FUmaYCiehTAoqpwABI7UAAqUAIgqAMqGHZ6sHdYYQXeym3symRvvxdac7mcn1utE7YCWNNCkdBUB0T1/Sk/60yPzkSkf8NtyRyUAYA46ySGRaLSjnOsQUQtMEC1MRAnoagkgAQACCRlEAkCFopZKIC0LsGn3jOoSgdtKbXFaV5r14tFrPkvsW9xLgxwUMB9uwmMQogeSDPl4ST26hUXBlqGgXbkuNThVwtkCi8y0g1oYworgYhCYJCR0kAACBQRADIoLhsMAhmJhg0s6iUuw+cZ7Yq2Zaj+ltwIDhSalWIgShM6DIqDi6YC5ZPZ8s2SO1R2JEuUyqCvY9pzmvjxFSavOJ7CCsJuGlcAQVQvOkFB4SQ2khAxEAVAt5Rl2MbN7Jam0WxLXUTWxnkPbvLZdR28juJoGG0azxUIU1MOfACB9U2AhWexL5M04AUsgBAwhOzVttlOEqOodOZlTDkKeOUNn4sKVq5JhMiGAgAAQpAIXic6lb5rzjFJKTus1yWkkgIOQNJGVTAvLCbpiLOZYsIpOAUDod8hy6fxGeVk/gGRYZEkDKLEGETeZ2tRQyslucwXVVaKUw1UximFyYVCFOBAQAJXRFGvpKkek3WpidZGLUcg9ENCuFC3iWktKtnVgnDyULQV2fwkANT4MEBzOSvNyYJCoQEgEEG2Vg3PlbDFJS3Vr0QzlOhVQTzxy5ap0FCoGCYEGFAKCVBTjuVGedIybTQQj5UupR3FzT3ElWbQ0BANoc8TS8RN1VGWMrK8/AAA4B36Bjh8rZq2819LBtFIEMSGV6PT9RJo4AXTpSmViCqgkqsgVG65MNkwmVQJHAEFNabRUW9Vb8GFTVbGazloPjRaydkeHDtq0sb7ZHJHx1pKl2J/BJQAAEp9FTpxqBn17fcpWsCeQFAoQh1qTgk8qfWTs5i7N3akoSd/EYHLlypVBFVDWiMokqIBiRYlm2hJ09Rlbt1ZSaEtaQxFMmRNwX7SOdI57J05FhpTzEgAAQD+PJkaNfOhEbHzRK1G0IRuGIiROPudEa2rJpJgq1YRUVZn6gIELVwxcuCJwEBOTElOiRDg3zZGbA57nIqkJZk3FJHtghiSwyl2Vz1zQ0svraKyCNNj5/8Cf4CPoQ2/QjH1P3Ho8DLWWsAJc3TyBtwXEVeeDrF1jpiRE4ICGxmQyAYgzJIwEtaEoyYU14US4nqtQkmvN9ZQuHQxF1qSFbtH/v5PKOv7ArZUq8xq48v8AtFn06jsuBjF45r2Tsw6CZS0pdZjaFCopVIkr5bDFueldH5koTCYThQkAJDZIqEKC1OWypmq34ECSNjmRbSxIakGcgPD8BzBOwuVcqox57gfuu+jTB6H/Te/6AHN89QNLGkMrBihA0K2nGjsfASJJQMaEKbqijygoGClQwAwqR4DJEUBFVRUK7RRjJmmSJC2N22z7CaAWFSVRbtONx57y79HjX99GY2X8ttK/XgDhfcC9onUB//kFs1F36wufKFIkUUBAAKBbVEDTbMGEllLuSo06ooJCICICPgbvIUcQhcmBaemSGRPTTbKxnLZCF7+a7hxmBhnaZGHhsWdytxaevwRU7o0gBO5fmefQw/k13vs+ML7ukf6iMjKIimRQjkSWKYcywU0LtV0nc2x4CVBFRcXI1YeL91eMDICJytFkBafuIV3S0v/SS19XI+tJuylniVObZp3licdwf/+OGwv9vJZ9eRZ4R3A9c4fl774f07IZn/EKUkNAIsCk0yl3sgoopQI5MtMBagRU0REFgajA0YVrdCuAnAE4oloe/BaSGoOc850prx1ubMkNNb1hg0je8p50dPNex33wHRUt4CC4907AotkdDG8sfOyL6PFVD5mAipIhaa6zSqVE7ZRUKIJtzElaHlGpoJBBcDaak7mM0w6DAQCAkaC7tZ+2X6RJuplOCYFtSZW7h9CG1TzulLhvza6sFDyo/WsD8IDgH/imjHd/iXPs2lo66hpFLKIQh3NVgp1rVlZNGsfog3WREgACRCeKyIjk5RUIAkyGMdiMrv+311o9SDDk0hFtzdcgExa64XDHRt6ntgwV3wCXHwQodh/yypW7GdGHz32lEcCS6Kolk0/bDlcOk7sSWbsXU29yFAUdAhH01kJ/FMFRoqAwUQAbiDOchmNf5NTDfeceI7WrbW0ypx6G3e9C+f5W+nWtpg4OAw9cm/cCNwq8dg2Mfa/D0ogAAtWvqhNp7mV0F9NoCQ3LxtZNgVYUAHeDN90ayHA1uhMAABEwGjyzxOz3PQ3cvkvrjv1owKFy334swm7LHnsZ4RfVbgXX7pr3Hwwo9lAEb0V27AUooiKANKSNQD4oSiWr2WkNlZmjz3XTWKKECiC6EKR1NBBBlXG4ABAEqKvrD5YYwIkgqFuGr3k6nZPbb52lvyRRRQWGHFv3AF65kqjBm8BD9muh4bUMU79jsisFNpDYAHINSEqTmHKLwabpcHa73WDUSVhghgIFR6QvY76rioocEQABHJDcvrFEfCaFGW5oKUUap+1Im1KOaqqNgHU7XUEur9FHie88TOXVzjANNw2KPRGkBNrckWhmxy59LddykKyWbWijdMN8StThHlownVvqiaEA8gZZCEiURXC9YZkVNkXWbnv0HW63/2vQ3b42Od6ytJJkw4Tg6tLJIw0k/PQwI/6UpRA10dnIxgYrkipqLfWd1rvAkZj4zDRIEkTN1ORWbQHuoUDJDBwvGstUByljSqYCACBAbjGe3G6Ldu0Wlm3GfmVzF5g3m30SsgCmzTMcHT6Rg6KnyT/+eRgAfJ6CI4GjA1UDEURw6NppKLdRW+F6m08Wndgg4A1u2gQEUNFxtsiRqUpasETwNighEAC36YvZWbKzwsRXopb7oF2Qc9Pb//wUBCCbB8Dbl5IBvwMe2vghw6mIZhxGgxYUERs4XUpUcrTSZKVwEE5aTrrlEB1BVIqeg9ZKQZWjCNSJXp4QCLxAcOOxM5ltsbjSyqFw6B0btlNPmNbovyuSZZQ2DgjOHkMg/fxwxfncciLwUl+0hZAUDHDfjiUcnHxTXaMmRDEJbt5ct50pwD2AC9SXS5YsiiLIdJZ6RCQQyG45NlWyokXpocP2RvH0g9jbk9Ejg2D3jS7kjAtriQbw2sN102edaEaOJFifOgvKQnCNfIBaz8F1I1mb4qxi6ObjlF8miqDp6HJgCymQoixFemvcIAVkEJHdpg3EZEhgPz31Hhf2Xu1vk6U/W1IZQZ+1AZzMuhksWlPmg4cD//XsJejVyMEnUQQRRRAVmxsqDeeeuiZUhSF7y2LFfc8hZZL4Y+2oXcuTBSEue99dH0Emo7hHbxAEtrlygy2q7c7EJoE71SnXVFSsCva/JOuD5yoi/QZuPhyQcj6O4IXAyUS031AkgzCEICzrSY7E52vNbnISoBu1lB8MyL65aptegaywe+a3hRAE2c1zmwSEo9qr95/b0e7XO0G7UrR0VIiK7N4akwbedS1RmJ+AR9jJvq3omrwROPkqsgQ7sSQwAPXt1rou1NJB0NbIKIdwMPXn+stEipn2SlfxkftlnRAKYjJtY2Nx0bdFDQF7dw1KJpqUpk7I9L1PIK8fcQ6kwcuPYs6+bNzO9G9QDuyTXWRhaDgxmYS2XBKnQzEVpMm0by5HfjD4yjV/n4TS9KzNtXeFt3yfD5/dnoJQ7Hs1JLe0IU69cPgANZlFK25jsSh95tbODck/XZm1anNn1OvDRwEuRXw3osMZJwIvfH3x792QCU3poKFzRorUkmVltuKA9IWt999x64v/TH1vCR3cNFO0lSuFjc+t70PX9tnFBzafWScLQ00Mquxd/YiYIAzEQe1G9q2vxcLLF944IEg8Bs4/CkBxZ5Esf1M42XvkKO81m2xDQSg5Ka11PzPLIpnUttsPFge3bDfbUAyWTWuDciee3Ndnn1t9dw6LO/UdyqGClLgEk7hgTTUT87Snfz24I/nbUy0ENd72A48UfJgynxY54niOHNy+7+I+mLSWxWD8/9PKtelcCG1NW8nAbthRu+0MjgLroKHpDZnlYdMm7aHY7olym7XLFDVzcDDYNNzN88erL/9k6V1vevNAFxI/A589GkBxaR0V68/oBhy4V9uVe8NtGMvuC2kBkwKraErTgiiu8H30kS3QFSZ274QFSNMbTpoG0aYQE9O6d9PyNpmVJksRmPc8cuP8cUP+4FSBMOl5zgMe9YLXikyVsWNjBIA3LigCoEaK2A6Siy2OPmLZxp7UGs/U9BU6JZv9trc//c+U4suXmu2dBNb0Np1iimY3SFAbQA+OL2ll+XrZ2X8yZAVD7vnAI59zlRswHTuATGzVFdALWhFkqQ0pLkwbhGnLHpviTvcg70glt6Zbs23ybu1tum5tw73cQIDYzWoZoB/6yHJtQUkEW5tBaBwN+y5ltUcHDPrW2SrMUGBIAKqBykZrFRoCaEpLQVIhN/mlie/pVj/TWeqpbainnoMAT2bt1AZiaHkHlrXds3oiWlZIlBgMCWqUmDHNgce5aHsXQBINzwDoqKqRoiYRsMZcaYWkPq1tN9pjb5gaqqYVG2FrtP1qNh6bSaKRu+w7HF2rwHBRiRLBSmksQQ8qdAIe74DTGCgQcDuACPbeGB2du9oZn+W1Nhc7+jS3oYiGf+xN271HT7XjS23q+mPnsLBdH3E7JXTwQbtXHlpu7Z3QAcxHiYCABjWBx9x1FWtxRSQwXT/QRA4mRs1fX9yF/UUlWSN77Ik33ri1zf234zY+P4fVw622t6FyuDenWqwQts1NrmaPGpsUR01wOGohE9Jx8qZ8Lva4APwjT0olqB3FbXppKgAUrp7vf9P99UWSWBzcrjYy7K1J0uu9LzEGqVwP9gW3DtpesbB7k6MeNt6j+5xRnHeZykWABS3YxJBiwOP/MM6aNw3ZSsaZA6+duU171tXS7dvL7tzelXshkpP3wc3mtq3SOBHSbfqG2f/WJNfsDa49u5sNzz0873T9cT2ux+fdOY5AUECA8evH/eMm8CSCqINPzKJENS0YKza++BNf8kKqAOT8qROHjp44vnJroWs0lgkB6qgUI0vDMA5jVENNQab5lelgamn6wLy0QYGKGstGDa2sGm3a2HLnc++ssCJQMBt88Bp/cF0K9awWGlwOfQUBT2jiu9IvggytNLR68kVPHLy1ciABCArcXLgTNUGPJH0dg9BH/dBf0QEAVJAaSAItwszC7EIT9JZKk5Lh0ZCMbdQBK1Ew46LxyoV/eBtTUZGAgEp/hPsHEAFPLPil4u6M88EKSJBBsn6PL/jE+jsbRgQAAACQCaES0EHVi+4GcyDqq0YmfRMiNQJAIAEkAgIBcuHK4QvvunL6hKGxKjLUPNUxxz7qf98AT3S/v+6e8d2RaEEyTRvLUEMLgi4s25roGB2MFH0dJcnGzWSK7gVzXb2lnDFvKSgQ1FgD1dJRt2u4GB8Mb3UhVU1we60rC/cOXT1WDxIBSIaagj9kswv/3Aci4Ekf9bfkdd/pEppo08q2nilRK5JkZKghi6ACKAKoJ1XUWFmqKCAZhSyNlahIRVkEWQpkCAqopWv0JEvl/N+431h0Tg77++fgEfB0frEfVCj+v1/t2b54VVtkBVCxj1mtWKF4yfhP4apxvcqcy+6/O7n+x/8u9Ly7u+jz465fR/2+n5xHfquqlbtKNjVqW02mZLBYUZUGpYtNZujgUdGFjuvPbM9jv8C/3gWngKf9S/wj+AACEAKPdhIZACgCPgEEAA==";var W9=n=>{var i=n,{border:e,size:t="sm"}=i,r=de(i,["border","size"]);let o=t==="md"?36:24;return y.createElement(y.Fragment,null,e&&y.createElement("svg",{className:yi(e,"absolute left-1/2 top-1/2 w-[34px] -mt-[2px] transform -translate-x-1/2 -translate-y-1/2"),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 26 26"},y.createElement("path",{d:"M8.382 2.244a6.938 6.938 0 0 1 9.236 0l1.626 1.451c.346.308.722.581 1.122.815l1.882 1.098a6.937 6.937 0 0 1 2.854 8.784l-.877 1.995c-.187.424-.33.866-.428 1.319l-.463 2.129a6.938 6.938 0 0 1-7.473 5.429l-2.168-.218a6.934 6.934 0 0 0-1.386 0l-2.168.218a6.938 6.938 0 0 1-7.473-5.429l-.463-2.13a6.937 6.937 0 0 0-.428-1.318l-.877-1.995a6.938 6.938 0 0 1 2.854-8.784L5.634 4.51c.4-.234.776-.507 1.122-.815l1.626-1.45Z"})),y.createElement("img",ue(K({src:N5},r),{alt:"Verified",width:o,height:o})))},M5=W9;c();d();f();var G9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.665 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-6-3.334a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Zm-1.333 1.5a.5.5 0 0 0 0 1h.167v4.167a.5.5 0 1 0 1 0V6.665a.5.5 0 0 0-.5-.5h-.667Z",clipRule:"evenodd"})),k5=G9;var Y9=()=>y.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6 font-sans text-sm"},y.createElement(M5,{className:"h-12 w-12"}),y.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"Privacy preserving to the core."),y.createElement("ul",{className:"text-9eafc0 mb-6 list-disc space-y-3 px-12 dark:text-white"},y.createElement("li",{className:"text-left"},"World ID uses Zero-Knowledge Proofs to make it cryptographically impossible to track persons across applications."),y.createElement("li",{className:"text-left"},"Orb biometrics analyzed by the Orb are not stored."),y.createElement("li",{className:"text-left "},"Code and hardware are open source or source available on"," ",y.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0",rel:"noreferrer"},"GitHub"),".")),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 -ml-4 flex items-center space-x-3"},y.createElement(k5,{className:" h-4 w-4 "}),y.createElement("p",{className:"whitespace-nowrap text-sm font-medium"},"Biometrics are never shared."))),L5=Y9;c();d();f();c();d();f();var X9=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),y.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),F5=X9;var J9=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"-mt-5 flex items-center justify-center"},y.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},y.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},y.createElement(F5,{className:"w-8 text-white"})))),y.createElement("div",null,y.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),y.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},"World ID verification was successful"))),$5=J9;c();d();f();c();d();f();var G8=Y(ae(),1),Y8=Y(ae(),1),X8=Y(z5(),1);c();d();f();var qC=Y(KC(),1),pp=Y(ae(),1),XV=e=>{let t=qC.default.create(e,{errorCorrectionLevel:"M"}).modules.data,r=Math.sqrt(t.length);return t.reduce((n,i,o)=>(o%r===0?n.push([i]):n[n.length-1].push(i),n),[])},JV=({data:e,size:t=300})=>{let r=(0,pp.useMemo)(()=>{let n=[],i=XV(e),o=t/i.length;return[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:a,y:u})=>{let l=(i.length-7)*o*a,p=(i.length-7)*o*u;for(let h=0;h<3;h++)n.push(y.createElement("rect",{fill:"currentColor",x:l+o*h,y:p+o*h,key:`${h}-${a}-${u}`,width:o*(7-h*2),height:o*(7-h*2),rx:(h-2)*-5,ry:(h-2)*-5,className:h%2!==0?"text-white dark:text-black":"text-black dark:text-white"}))}),i.forEach((a,u)=>{a.forEach((l,p)=>{!i[u][p]||u<7&&p<7||u>i.length-8&&p<7||u<7&&p>i.length-8||n.push(y.createElement("circle",{fill:"currentColor",r:o/3,key:`circle-${u}-${p}`,cx:u*o+o/2,cy:p*o+o/2,className:"text-black dark:text-white"}))})}),n},[t,e]);return y.createElement("svg",{height:t,width:t},r)},WC=(0,pp.memo)(JV);c();d();f();c();d();f();c();d();f();var J1=Y(ae(),1),Rs=Y(ae(),1);c();d();f();var GC=Y(ae(),1),nu=(0,GC.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});c();d();f();var mp=Y(ae(),1),As=(0,mp.createContext)({});function YC(){return(0,mp.useContext)(As).visualElement}c();d();f();var iu=Y(ae(),1);c();d();f();var XC=Y(ae(),1),qn=(0,XC.createContext)(null);c();d();f();var gp=Y(ae(),1);c();d();f();var dn=typeof document<"u";var yo=dn?gp.useLayoutEffect:gp.useEffect;c();d();f();var JC=Y(ae(),1),yp=(0,JC.createContext)({strict:!1});function QC(e,t,r,n){let i=YC(),o=(0,iu.useContext)(yp),s=(0,iu.useContext)(qn),a=(0,iu.useContext)(nu).reducedMotion,u=(0,iu.useRef)();n=n||o.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:i,props:r,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let l=u.current;return yo(()=>{l&&l.render()}),yo(()=>{l&&l.animationState&&l.animationState.animateChanges()}),yo(()=>()=>l&&l.notify("Unmount"),[]),l}c();d();f();var ZC=Y(ae(),1);c();d();f();function wi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eT(e,t,r){return(0,ZC.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):wi(r)&&(r.current=n))},[t])}c();d();f();var wp=Y(ae(),1);c();d();f();c();d();f();function xi(e){return typeof e=="string"||Array.isArray(e)}c();d();f();c();d();f();function vo(e){return typeof e=="object"&&typeof e.start=="function"}var QV=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Os(e){return vo(e.animate)||QV.some(t=>xi(e[t]))}function vp(e){return Boolean(Os(e)||e.variants)}function tT(e,t){if(Os(e)){let{initial:r,animate:n}=e;return{initial:r===!1||xi(r)?r:void 0,animate:xi(n)?n:void 0}}return e.inherit!==!1?t:{}}function nT(e){let{initial:t,animate:r}=tT(e,(0,wp.useContext)(As));return(0,wp.useMemo)(()=>({initial:t,animate:r}),[rT(t),rT(r)])}function rT(e){return Array.isArray(e)?e.join(" "):e}c();d();f();var bi=e=>({isEnabled:t=>e.some(r=>!!t[r])}),wo={measureLayout:bi(["layout","layoutId","drag"]),animation:bi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:bi(["exit"]),drag:bi(["drag","dragControls"]),focus:bi(["whileFocus"]),hover:bi(["whileHover","onHoverStart","onHoverEnd"]),tap:bi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:bi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:bi(["whileInView","onViewportEnter","onViewportLeave"])};c();d();f();function iT(e){for(let t in e)t==="projectionNodeConstructor"?wo.projectionNodeConstructor=e[t]:wo[t].Component=e[t]}c();d();f();c();d();f();var oT=Y(ae(),1);function xo(e){let t=(0,oT.useRef)(null);return t.current===null&&(t.current=e()),t.current}c();d();f();var bo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ZV=1;function sT(){return xo(()=>{if(bo.hasEverUpdated)return ZV++})}c();d();f();var aT=Y(ae(),1),ou=(0,aT.createContext)({});c();d();f();var uT=Y(ae(),1),xp=class extends uT.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};c();d();f();var lT=Y(ae(),1),bp=(0,lT.createContext)({});c();d();f();var cT=Symbol.for("motionComponentSymbol");function fT({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:o}){e&&iT(e);function s(u,l){let p=ue(K(K({},(0,Rs.useContext)(nu)),u),{layoutId:eB(u)}),{isStatic:h}=p,g=null,w=nT(u),v=h?void 0:sT(),_=i(u,h);if(!h&&dn){w.visualElement=QC(o,_,p,t);let D=(0,Rs.useContext)(yp).strict,C=(0,Rs.useContext)(bp);w.visualElement&&(g=w.visualElement.loadFeatures(p,D,e,v,r||wo.projectionNodeConstructor,C))}return J1.createElement(xp,{visualElement:w.visualElement,props:p},g,J1.createElement(As.Provider,{value:w},n(o,u,v,eT(_,w.visualElement,l),_,h,w.visualElement)))}let a=(0,Rs.forwardRef)(s);return a[cT]=o,a}function eB({layoutId:e}){let t=(0,Rs.useContext)(ou).id;return t&&e!==void 0?t+"-"+e:e}c();d();f();function dT(e){function t(n,i={}){return fT(e(n,i))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}c();d();f();c();d();f();c();d();f();var hT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function su(e){return typeof e!="string"||e.includes("-")?!1:!!(hT.indexOf(e)>-1||/[A-Z]/.test(e))}c();d();f();var OT=Y(ae(),1);c();d();f();var xT=Y(ae(),1);c();d();f();c();d();f();var au={};function pT(e){Object.assign(au,e)}c();d();f();var uu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fr=new Set(uu);function Ep(e,{layout:t,layoutId:r}){return Fr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!au[e]||e==="opacity")}c();d();f();var Jt=e=>!!(e!=null&&e.getVelocity);c();d();f();c();d();f();var tB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rB=(e,t)=>uu.indexOf(e)-uu.indexOf(t);function mT({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,o){let s="";t.sort(rB);for(let a of t)s+=`${tB[a]||a}(${e[a]}) `;return r&&!e.z&&(s+="translateZ(0)"),s=s.trim(),o?s=o(e,i?"":s):n&&i&&(s="none"),s}c();d();f();function _p(e){return e.startsWith("--")}c();d();f();var gT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;c();d();f();c();d();f();c();d();f();var Mn=(e,t,r)=>Math.min(Math.max(r,e),t);var hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo=ue(K({},hn),{transform:e=>Mn(0,1,e)}),Xc=ue(K({},hn),{default:1});c();d();f();c();d();f();var _o=e=>Math.round(e*1e5)/1e5,So=/(-)?([\d]*\.?[\d])+/g,Sp=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,yT=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ei(e){return typeof e=="string"}var Jc=e=>({test:t=>Ei(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wn=Jc("deg"),Cr=Jc("%"),pe=Jc("px"),vT=Jc("vh"),wT=Jc("vw"),Q1=ue(K({},Cr),{parse:e=>Cr.parse(e)/100,transform:e=>Cr.transform(e*100)});c();d();f();var Z1=ue(K({},hn),{transform:Math.round});var Cp={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,size:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:Xc,scaleX:Xc,scaleY:Xc,scaleZ:Xc,skew:Wn,skewX:Wn,skewY:Wn,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Eo,originX:Q1,originY:Q1,originZ:pe,zIndex:Z1,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Z1};function lu(e,t,r,n){let{style:i,vars:o,transform:s,transformKeys:a,transformOrigin:u}=e;a.length=0;let l=!1,p=!1,h=!0;for(let g in t){let w=t[g];if(_p(g)){o[g]=w;continue}let v=Cp[g],_=gT(w,v);if(Fr.has(g)){if(l=!0,s[g]=_,a.push(g),!h)continue;w!==(v.default||0)&&(h=!1)}else g.startsWith("origin")?(p=!0,u[g]=_):i[g]=_}if(t.transform||(l||n?i.transform=mT(e,r,h,n):i.transform&&(i.transform="none")),p){let{originX:g="50%",originY:w="50%",originZ:v=0}=u;i.transformOrigin=`${g} ${w} ${v}`}}c();d();f();var cu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ew(e,t,r){for(let n in t)!Jt(t[n])&&!Ep(n,r)&&(e[n]=t[n])}function nB({transformTemplate:e},t,r){return(0,xT.useMemo)(()=>{let n=cu();return lu(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function iB(e,t,r){let n=e.style||{},i={};return ew(i,n,e),Object.assign(i,nB(e,t,r)),e.transformValues?e.transformValues(i):i}function bT(e,t,r){let n={},i=iB(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=i,n}c();d();f();c();d();f();var oB=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],sB=["whileTap","onTap","onTapStart","onTapCancel"],aB=["onPan","onPanStart","onPanSessionStart","onPanEnd"],uB=["whileInView","onViewportEnter","onViewportLeave","viewport"],lB=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...uB,...sB,...oB,...aB]);function Qc(e){return lB.has(e)}var ST=e=>!Qc(e);function mB(e){!e||(ST=t=>t.startsWith("on")?!Qc(t):e(t))}try{mB(_T().default)}catch(e){}function CT(e,t,r){let n={};for(let i in e)(ST(i)||r===!0&&Qc(i)||!t&&!Qc(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}c();d();f();var IT=Y(ae(),1);c();d();f();c();d();f();function TT(e,t,r){return typeof e=="string"?e:pe.transform(t+r*e)}function PT(e,t,r){let n=TT(t,e.x,e.width),i=TT(r,e.y,e.height);return`${n} ${i}`}c();d();f();var gB={offset:"stroke-dashoffset",array:"stroke-dasharray"},yB={offset:"strokeDashoffset",array:"strokeDasharray"};function DT(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?gB:yB;e[o.offset]=pe.transform(-n);let s=pe.transform(t),a=pe.transform(r);e[o.array]=`${s} ${a}`}function fu(e,g,l,p,h){var w=g,{attrX:t,attrY:r,originX:n,originY:i,pathLength:o,pathSpacing:s=1,pathOffset:a=0}=w,u=de(w,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(lu(e,u,l,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:_,dimensions:D}=e;v.transform&&(D&&(_.transform=v.transform),delete v.transform),D&&(n!==void 0||i!==void 0||_.transform)&&(_.transformOrigin=PT(D,n!==void 0?n:.5,i!==void 0?i:.5)),t!==void 0&&(v.x=t),r!==void 0&&(v.y=r),o!==void 0&&DT(v,o,s,a,!1)}c();d();f();var Tp=()=>ue(K({},cu()),{attrs:{}});c();d();f();var du=e=>typeof e=="string"&&e.toLowerCase()==="svg";function AT(e,t,r,n){let i=(0,IT.useMemo)(()=>{let o=Tp();return fu(o,t,{enableHardwareAcceleration:!1},du(n),e.transformTemplate),ue(K({},o.attrs),{style:K({},o.style)})},[t]);if(e.style){let o={};ew(o,e.style,e),i.style=K(K({},o),i.style)}return i}function RT(e=!1){return(r,n,i,o,{latestValues:s},a)=>{let l=(su(r)?AT:bT)(n,s,a,r),p=CT(n,typeof r=="string",e),h=ue(K(K({},p),l),{ref:o});return i&&(h["data-projection-id"]=i),(0,OT.createElement)(r,h)}}c();d();f();c();d();f();c();d();f();var hu=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();c();d();f();function Pp(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(let o in r)e.style.setProperty(o,r[o])}c();d();f();var Dp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ip(e,t,r,n){Pp(e,t,void 0,n);for(let i in t.attrs)e.setAttribute(Dp.has(i)?i:hu(i),t.attrs[i])}c();d();f();c();d();f();function pu(e){let{style:t}=e,r={};for(let n in t)(Jt(t[n])||Ep(n,e))&&(r[n]=t[n]);return r}function Ap(e){let t=pu(e);for(let r in e)if(Jt(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}c();d();f();var nw=Y(ae(),1);c();d();f();function mu(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}c();d();f();c();d();f();c();d();f();var Ns=e=>Array.isArray(e);var NT=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),MT=e=>Ns(e)?e[e.length-1]||0:e;function gu(e){let t=Jt(e)?e.get():e;return NT(t)?t.toValue():t}function vB({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:wB(n,i,o,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}var Op=e=>(t,r)=>{let n=(0,nw.useContext)(As),i=(0,nw.useContext)(qn),o=()=>vB(e,t,n,i);return r?o():xo(o)};function wB(e,t,r,n){let i={},o=n(e);for(let g in o)i[g]=gu(o[g]);let{initial:s,animate:a}=e,u=Os(e),l=vp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let h=p?a:s;return h&&typeof h!="boolean"&&!vo(h)&&(Array.isArray(h)?h:[h]).forEach(w=>{let v=mu(e,w);if(!v)return;let I=v,{transitionEnd:_,transition:D}=I,C=de(I,["transitionEnd","transition"]);for(let P in C){let R=C[P];if(Array.isArray(R)){let U=p?R.length-1:0;R=R[U]}R!==null&&(i[P]=R)}for(let P in _)i[P]=_[P]}),i}var kT={useVisualState:Op({scrapeMotionValuesFromProps:Ap,createRenderState:Tp,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(i){r.dimensions={x:0,y:0,width:0,height:0}}fu(r,n,{enableHardwareAcceleration:!1},du(t.tagName),e.transformTemplate),Ip(t,r)}})};c();d();f();var LT={useVisualState:Op({scrapeMotionValuesFromProps:pu,createRenderState:cu})};function FT(e,{forwardMotionProps:t=!1},r,n,i){let o=su(e)?kT:LT;return ue(K({},o),{preloadedFeatures:r,useRender:RT(t),createVisualElement:n,projectionNodeConstructor:i,Component:e})}c();d();f();c();d();f();c();d();f();var Te;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Te||(Te={}));c();d();f();var $T=Y(ae(),1);function Ms(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Zc(e,t,r,n){(0,$T.useEffect)(()=>{let i=e.current;if(r&&i)return Ms(i,t,r,n)},[e,t,r,n])}function UT({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(Te.Focus,!0)},i=()=>{r&&r.setActive(Te.Focus,!1)};Zc(t,"focus",e?n:void 0),Zc(t,"blur",e?i:void 0)}c();d();f();c();d();f();function Rp(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function Np(e){return!!e.touches}c();d();f();c();d();f();function xB(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var bB={pageX:0,pageY:0};function EB(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||bB;return{x:n[t+"X"],y:n[t+"Y"]}}function _B(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function ef(e,t="page"){return{point:Np(e)?EB(e,t):_B(e,t)}}var iw=(e,t=!1)=>{let r=n=>e(n,ef(n));return t?xB(r):r};c();d();f();var VT=()=>dn&&window.onpointerdown===null,BT=()=>dn&&window.ontouchstart===null,jT=()=>dn&&window.onmousedown===null;var SB={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},CB={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function zT(e){return VT()?e:BT()?CB[e]:jT()?SB[e]:e}function _i(e,t,r,n){return Ms(e,zT(t),iw(r,t==="pointerdown"),n)}function ks(e,t,r,n){return Zc(e,zT(t),r&&iw(r,t==="pointerdown"),n)}c();d();f();function qT(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var HT=qT("dragHorizontal"),KT=qT("dragVertical");function ow(e){let t=!1;if(e==="y")t=KT();else if(e==="x")t=HT();else{let r=HT(),n=KT();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Mp(){let e=ow(!0);return e?(e(),!1):!0}function WT(e,t,r){return(n,i)=>{!Rp(n)||Mp()||(e.animationState&&e.animationState.setActive(Te.Hover,t),r&&r(n,i))}}function GT({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){ks(n,"pointerenter",e||r?WT(n,!0,e):void 0,{passive:!e}),ks(n,"pointerleave",t||r?WT(n,!1,t):void 0,{passive:!t})}c();d();f();var aw=Y(ae(),1);c();d();f();var sw=(e,t)=>t?e===t?!0:sw(e,t.parentElement):!1;c();d();f();var YT=Y(ae(),1);function yu(e){return(0,YT.useEffect)(()=>()=>e(),[])}c();d();f();var TB=(e,t)=>r=>t(e(r)),Co=(...e)=>e.reduce(TB);function XT({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:i}){let o=e||t||r||n,s=(0,aw.useRef)(!1),a=(0,aw.useRef)(null),u={passive:!(t||e||r||w)};function l(){a.current&&a.current(),a.current=null}function p(){return l(),s.current=!1,i.animationState&&i.animationState.setActive(Te.Tap,!1),!Mp()}function h(v,_){!p()||(sw(i.current,v.target)?e&&e(v,_):r&&r(v,_))}function g(v,_){!p()||r&&r(v,_)}function w(v,_){l(),!s.current&&(s.current=!0,a.current=Co(_i(window,"pointerup",h,u),_i(window,"pointercancel",g,u)),i.animationState&&i.animationState.setActive(Te.Tap,!0),t&&t(v,_))}ks(i,"pointerdown",o?w:void 0,u),yu(l)}c();d();f();c();d();f();var PB="production",vu=typeof process>"u"||process.env===void 0?PB:"production";var tf=Y(ae(),1);c();d();f();var JT=new Set;function kp(e,t,r){e||JT.has(t)||(console.warn(t),r&&console.warn(r),JT.add(t))}c();d();f();var lw=new WeakMap,uw=new WeakMap,DB=e=>{let t=lw.get(e.target);t&&t(e)},IB=e=>{e.forEach(DB)};function AB(r){var n=r,{root:e}=n,t=de(n,["root"]);let i=e||document;uw.has(i)||uw.set(i,{});let o=uw.get(i),s=JSON.stringify(t);return o[s]||(o[s]=new IntersectionObserver(IB,K({root:e},t))),o[s]}function QT(e,t,r){let n=AB(t);return lw.set(e,r),n.observe(e),()=>{lw.delete(e),n.unobserve(e)}}function ZT({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){let o=(0,tf.useRef)({hasEnteredView:!1,isInView:!1}),s=Boolean(t||r||n);i.once&&o.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?NB:RB)(s,o.current,e,i)}var OB={some:0,all:1};function RB(e,t,r,{root:n,margin:i,amount:o="some",once:s}){(0,tf.useEffect)(()=>{if(!e||!r.current)return;let a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof o=="number"?o:OB[o]},u=l=>{let{isIntersecting:p}=l;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(Te.InView,p);let h=r.getProps(),g=p?h.onViewportEnter:h.onViewportLeave;g&&g(l)};return QT(r.current,a,u)},[e,n,i,o])}function NB(e,t,r,{fallback:n=!0}){(0,tf.useEffect)(()=>{!e||!n||(vu!=="production"&&kp(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(Te.InView,!0)}))},[e])}c();d();f();var kn=e=>t=>(e(t),null);var eP={inView:kn(ZT),tap:kn(XT),focus:kn(UT),hover:kn(GT)};c();d();f();var pf=Y(ae(),1);c();d();f();var wu=Y(ae(),1);function Lp(){let e=(0,wu.useContext)(qn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,wu.useId)();return(0,wu.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}c();d();f();c();d();f();function cw(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}c();d();f();c();d();f();c();d();f();var tP=e=>/^\-?\d*\.?\d+$/.test(e);c();d();f();var rP=e=>/^0[^.\s]+$/.test(e);c();d();f();c();d();f();var Xr={delta:0,timestamp:0};c();d();f();c();d();f();var fw=16.666666666666668,MB=typeof performance<"u"?()=>performance.now():()=>Date.now(),dw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(MB()),fw);c();d();f();function nP(e){let t=[],r=[],n=0,i=!1,o=!1,s=new WeakSet,a={schedule:(u,l=!1,p=!1)=>{let h=p&&i,g=h?t:r;return l&&s.add(u),g.indexOf(u)===-1&&(g.push(u),h&&i&&(n=t.length)),u},cancel:u=>{let l=r.indexOf(u);l!==-1&&r.splice(l,1),s.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){let p=t[l];p(u),s.has(p)&&(a.schedule(p),e())}i=!1,o&&(o=!1,a.process(u))}};return a}var kB=40,hw=!0,rf=!1,pw=!1,nf=["read","update","preRender","render","postRender"],Fp=nf.reduce((e,t)=>(e[t]=nP(()=>rf=!0),e),{}),Ct=nf.reduce((e,t)=>{let r=Fp[t];return e[t]=(n,i=!1,o=!1)=>(rf||FB(),r.schedule(n,i,o)),e},{}),Jr=nf.reduce((e,t)=>(e[t]=Fp[t].cancel,e),{}),$p=nf.reduce((e,t)=>(e[t]=()=>Fp[t].process(Xr),e),{}),LB=e=>Fp[e].process(Xr),iP=e=>{rf=!1,Xr.delta=hw?fw:Math.max(Math.min(e-Xr.timestamp,kB),1),Xr.timestamp=e,pw=!0,nf.forEach(LB),pw=!1,rf&&(hw=!1,dw(iP))},FB=()=>{rf=!0,hw=!0,pw||dw(iP)};c();d();f();c();d();f();function xu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var To=class{constructor(){this.subscriptions=[]}add(t){return xu(this.subscriptions,t),()=>bu(this.subscriptions,t)}notify(t,r,n){let i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,r,n);else for(let o=0;o<i;o++){let s=this.subscriptions[o];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};c();d();f();function Eu(e,t){return t?e*(1e3/t):0}var $B=e=>!isNaN(parseFloat(e)),mw=class{constructor(t,r={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;let{delta:o,timestamp:s}=Xr;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=$B(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Eu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}};function Gn(e,t){return new mw(e,t)}c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var _u=(e,t)=>r=>Boolean(Ei(r)&&yT.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Up=(e,t,r)=>n=>{if(!Ei(n))return n;let[i,o,s,a]=n.match(So);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}};var UB=e=>Mn(0,255,e),gw=ue(K({},hn),{transform:e=>Math.round(UB(e))}),Yn={test:_u("rgb","red"),parse:Up("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+gw.transform(e)+", "+gw.transform(t)+", "+gw.transform(r)+", "+_o(Eo.transform(n))+")"};function VB(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var of={test:_u("#"),parse:VB,transform:Yn.transform};c();d();f();var Po={test:_u("hsl","hue"),parse:Up("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Cr.transform(_o(t))+", "+Cr.transform(_o(r))+", "+_o(Eo.transform(n))+")"};var Bt={test:e=>Yn.test(e)||of.test(e)||Po.test(e),parse:e=>Yn.test(e)?Yn.parse(e):Po.test(e)?Po.parse(e):of.parse(e),transform:e=>Ei(e)?e:e.hasOwnProperty("red")?Yn.transform(e):Po.transform(e)};var oP="${c}",sP="${n}";function BB(e){var t,r;return isNaN(e)&&Ei(e)&&(((t=e.match(So))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Sp))===null||r===void 0?void 0:r.length)||0)>0}function sf(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=0,i=e.match(Sp);i&&(r=i.length,e=e.replace(Sp,oP),t.push(...i.map(Bt.parse)));let o=e.match(So);return o&&(n=o.length,e=e.replace(So,sP),t.push(...o.map(hn.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function aP(e){return sf(e).values}function uP(e){let{values:t,numColors:r,tokenised:n}=sf(e),i=t.length;return o=>{let s=n;for(let a=0;a<i;a++)s=s.replace(a<r?oP:sP,a<r?Bt.transform(o[a]):_o(o[a]));return s}}var jB=e=>typeof e=="number"?0:e;function zB(e){let t=aP(e);return uP(e)(t.map(jB))}var Tr={test:BB,parse:aP,createTransformer:uP,getAnimatableNone:zB};c();d();f();c();d();f();var HB=new Set(["brightness","contrast","saturate","opacity"]);function KB(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(So)||[];if(!n)return e;let i=r.replace(n,""),o=HB.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}var qB=/([a-z-]*)\(.*?\)/g,af=ue(K({},Tr),{getAnimatableNone:e=>{let t=e.match(qB);return t?t.map(KB).join(" "):e}});c();d();f();var WB=ue(K({},Cp),{color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:af,WebkitFilter:af}),Su=e=>WB[e];function Cu(e,t){var r;let n=Su(e);return n!==af&&(n=Tr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}c();d();f();c();d();f();c();d();f();var Vp=e=>t=>t.test(e);c();d();f();var lP={test:e=>e==="auto",parse:e=>e};var yw=[hn,pe,Cr,Wn,wT,vT,lP],Tu=e=>yw.find(Vp(e));var GB=[...yw,Bt,Tr],cP=e=>GB.find(Vp(e));c();d();f();function YB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function XB(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ls(e,t,r){let n=e.getProps();return mu(n,t,r!==void 0?r:n.custom,YB(e),XB(e))}function JB(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Gn(r))}function fP(e,t){let r=Ls(e,t),s=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:i={}}=s,o=de(s,["transitionEnd","transition"]);o=K(K({},o),n);for(let a in o){let u=MT(o[a]);JB(e,a,u)}}function dP(e,t,r){var n,i;let o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(!!s)for(let a=0;a<s;a++){let u=o[a],l=t[u],p=null;Array.isArray(l)&&(p=l[0]),p===null&&(p=(i=(n=r[u])!==null&&n!==void 0?n:e.readValue(u))!==null&&i!==void 0?i:t[u]),p!=null&&(typeof p=="string"&&(tP(p)||rP(p))?p=parseFloat(p):!cP(p)&&Tr.test(l)&&(p=Cu(u,l)),e.addValue(u,Gn(p,{owner:e})),r[u]===void 0&&(r[u]=p),p!==null&&e.setBaseTarget(u,p))}}function QB(e,t){return t?(t[e]||t.default||t).from:void 0}function hP(e,t,r){var n;let i={};for(let o in e){let s=QB(o,t);i[o]=s!==void 0?s:(n=r.getValue(o))===null||n===void 0?void 0:n.get()}return i}c();d();f();function Fs(e){return Boolean(Jt(e)&&e.add)}c();d();f();c();d();f();var pP=(e,t)=>`${e}: ${t}`;function mP(e,t){let{MotionAppearAnimations:r}=window,n=pP(e,Fr.has(t)?"transform":t),i=r&&r.get(n);return i?(Ct.render(()=>{try{i.cancel(),r.delete(n)}catch(o){}}),i.currentTime||0):0}c();d();f();var ZB="framerAppearId",gP="data-"+hu(ZB);c();d();f();c();d();f();var Pu=function(){},nr=function(){};c();d();f();var Du=e=>e*1e3;c();d();f();var yP={current:!1};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var Iu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;c();d();f();var Au=e=>t=>1-e(1-t);var Bp=e=>e*e,vP=Au(Bp),uf=Iu(Bp);c();d();f();c();d();f();var Pe=(e,t,r)=>-r*e+r*t+e;c();d();f();c();d();f();function vw(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function wP({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,s=0;if(!t)i=o=s=r;else{let a=r<.5?r*(1+t):r+t-r*t,u=2*r-a;i=vw(u,a,e+1/3),o=vw(u,a,e),s=vw(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}var ww=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},ej=[of,Yn,Po],tj=e=>ej.find(t=>t.test(e));function xP(e){let t=tj(e);nr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Po&&(r=wP(r)),r}var jp=(e,t)=>{let r=xP(e),n=xP(t),i=K({},r);return o=>(i.red=ww(r.red,n.red,o),i.green=ww(r.green,n.green,o),i.blue=ww(r.blue,n.blue,o),i.alpha=Pe(r.alpha,n.alpha,o),Yn.transform(i))};c();d();f();function bP(e,t){return typeof e=="number"?r=>Pe(e,t,r):Bt.test(e)?jp(e,t):bw(e,t)}var xw=(e,t)=>{let r=[...e],n=r.length,i=e.map((o,s)=>bP(o,t[s]));return o=>{for(let s=0;s<n;s++)r[s]=i[s](o);return r}},EP=(e,t)=>{let r=K(K({},e),t),n={};for(let i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=bP(e[i],t[i]));return i=>{for(let o in n)r[o]=n[o](i);return r}},bw=(e,t)=>{let r=Tr.createTransformer(t),n=sf(e),i=sf(t);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Co(xw(n.values,i.values),r):(Pu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)};c();d();f();var $s=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var _P=(e,t)=>r=>Pe(e,t,r);function rj(e){return typeof e=="number"?_P:typeof e=="string"?Bt.test(e)?jp:bw:Array.isArray(e)?xw:typeof e=="object"?EP:_P}function nj(e,t,r){let n=[],i=r||rj(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let u=Array.isArray(t)?t[s]:t;a=Co(u,a)}n.push(a)}return n}function zp(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;nr(o===t.length,"Both input and output ranges must be the same length"),nr(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=nj(t,n,i),a=s.length,u=l=>{let p=0;if(a>1)for(;p<e.length-2&&!(l<e[p+1]);p++);let h=$s(e[p],e[p+1],l);return s[p](h)};return r?l=>u(Mn(e[0],e[o-1],l)):u}c();d();f();c();d();f();c();d();f();var Ou=e=>e;var SP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,ij=1e-7,oj=12;function sj(e,t,r,n,i){let o,s,a=0;do s=t+(r-t)/2,o=SP(s,n,i)-e,o>0?r=s:t=s;while(Math.abs(o)>ij&&++a<oj);return s}function Hp(e,t,r,n){if(e===t&&r===n)return Ou;let i=o=>sj(o,0,1,e,r);return o=>o===0||o===1?o:SP(i(o),t,n)}c();d();f();var Ew=e=>1-Math.sin(Math.acos(e)),lf=Au(Ew),CP=Iu(lf);c();d();f();var _w=Hp(.33,1.53,.69,.99),cf=Au(_w),TP=Iu(cf);c();d();f();var PP=e=>(e*=2)<1?.5*cf(e):.5*(2-Math.pow(2,-10*(e-1)));var DP={linear:Ou,easeIn:Bp,easeInOut:uf,easeOut:vP,circIn:Ew,circInOut:CP,circOut:lf,backIn:cf,backInOut:TP,backOut:_w,anticipate:PP},Sw=e=>{if(Array.isArray(e)){nr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return Hp(t,r,n,i)}else if(typeof e=="string")return nr(DP[e]!==void 0,`Invalid easing type '${e}'`),DP[e];return e},IP=e=>Array.isArray(e)&&typeof e[0]!="number";function aj(e,t){return e.map(()=>t||uf).splice(0,e.length-1)}function uj(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function lj(e,t){return e.map(r=>r*t)}function ff({keyframes:e,ease:t=uf,times:r,duration:n=300}){e=[...e];let i=ff[0],o=IP(t)?t.map(Sw):Sw(t),s={done:!1,value:i},a=lj(r&&r.length===ff.length?r:uj(e),n);function u(){return zp(a,e,{ease:Array.isArray(o)?o:aj(e,o)})}let l=u();return{next:p=>(s.value=l(p),s.done=p>=n,s),flipTarget:()=>{e.reverse(),l=u()}}}c();d();f();c();d();f();var Cw=.001,cj=.01,AP=10,fj=.05,dj=1;function OP({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;Pu(e<=AP*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=Mn(fj,dj,s),e=Mn(cj,AP,e/1e3),s<1?(i=l=>{let p=l*s,h=p*e,g=p-r,w=Kp(l,s),v=Math.exp(-h);return Cw-g/w*v},o=l=>{let h=l*s*e,g=h*r+r,w=Math.pow(s,2)*Math.pow(l,2)*e,v=Math.exp(-h),_=Kp(Math.pow(l,2),s);return(-i(l)+Cw>0?-1:1)*((g-w)*v)/_}):(i=l=>{let p=Math.exp(-l*e),h=(l-r)*e+1;return-Cw+p*h},o=l=>{let p=Math.exp(-l*e),h=(r-l)*(e*e);return p*h});let a=5/e,u=pj(i,o,a);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let l=Math.pow(u,2)*n;return{stiffness:l,damping:s*2*Math.sqrt(n*l),duration:e}}}var hj=12;function pj(e,t,r){let n=r;for(let i=1;i<hj;i++)n=n-e(n)/t(n);return n}function Kp(e,t){return e*Math.sqrt(1-t*t)}var mj=["duration","bounce"],gj=["stiffness","damping","mass"];function RP(e,t){return t.some(r=>e[r]!==void 0)}function yj(e){let t=K({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!RP(e,gj)&&RP(e,mj)){let r=OP(e);t=ue(K(K({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}var vj=5;function Tw(i){var o=i,{keyframes:e,restSpeed:t=2,restDelta:r=.01}=o,n=de(o,["keyframes","restSpeed","restDelta"]);let s=e[0],a=e[e.length-1],u={done:!1,value:s},{stiffness:l,damping:p,mass:h,velocity:g,duration:w,isResolvedFromDuration:v}=yj(n),_=wj,D=g?-(g/1e3):0,C=p/(2*Math.sqrt(l*h));function I(){let P=a-s,R=Math.sqrt(l/h)/1e3;if(r===void 0&&(r=Math.min(Math.abs(a-s)/100,.4)),C<1){let U=Kp(R,C);_=j=>{let F=Math.exp(-C*R*j);return a-F*((D+C*R*P)/U*Math.sin(U*j)+P*Math.cos(U*j))}}else if(C===1)_=U=>a-Math.exp(-R*U)*(P+(D+R*P)*U);else{let U=R*Math.sqrt(C*C-1);_=j=>{let F=Math.exp(-C*R*j),$=Math.min(U*j,300);return a-F*((D+C*R*P)*Math.sinh($)+U*P*Math.cosh($))/U}}}return I(),{next:P=>{let R=_(P);if(v)u.done=P>=w;else{let U=D;if(P!==0)if(C<1){let $=Math.max(0,P-vj);U=Eu(R-_($),P-$)}else U=0;let j=Math.abs(U)<=t,F=Math.abs(a-R)<=r;u.done=j&&F}return u.value=u.done?a:R,u},flipTarget:()=>{D=-D,[s,a]=[a,s],I()}}}Tw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var wj=e=>0;c();d();f();function NP({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let s=e[0],a={done:!1,value:s},u=r*t,l=s+u,p=o===void 0?l:o(l);return p!==l&&(u=p-s),{next:h=>{let g=-u*Math.exp(-h/n);return a.done=!(g>i||g<-i),a.value=a.done?p:p+g,a},flipTarget:()=>{}}}var xj={decay:NP,keyframes:ff,tween:ff,spring:Tw};function MP(e,t,r=0){return e-t-r}function bj(e,t=0,r=0,n=!0){return n?MP(t+-e,t,r):t-(e-t)+r}function Ej(e,t,r,n){return n?e>=t+r:e<=-r}var _j=e=>{let t=({delta:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>Jr.update(t)}};function Us(_){var D=_,{duration:e,driver:t=_j,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:o=0,keyframes:s,autoplay:a=!0,onPlay:u,onStop:l,onComplete:p,onRepeat:h,onUpdate:g,type:w="keyframes"}=D,v=de(D,["duration","driver","elapsed","repeat","repeatType","repeatDelay","keyframes","autoplay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var C,I;let P,R=0,U=e,j,F=!1,$=!0,G,X=xj[s.length>2?"keyframes":w],W=s[0],J=s[s.length-1];!((I=(C=X).needsInterpolation)===null||I===void 0)&&I.call(C,W,J)&&(G=zp([0,100],[W,J],{clamp:!1}),s=[0,100]);let N=X(ue(K({},v),{duration:e,keyframes:s}));function m(){R++,i==="reverse"?($=R%2===0,r=bj(r,U,o,$)):(r=MP(r,U,o),i==="mirror"&&N.flipTarget()),F=!1,h&&h()}function E(){P.stop(),p&&p()}function A(M){if($||(M=-M),r+=M,!F){let V=N.next(Math.max(0,r));j=V.value,G&&(j=G(j)),F=$?V.done:r<=0}g&&g(j),F&&(R===0&&(U=U!==void 0?U:r),R<n?Ej(r,U,o,$)&&m():E())}function O(){u&&u(),P=t(A),P.start()}return a&&O(),{stop:()=>{l&&l(),P.stop()},sample:M=>N.next(Math.max(0,M))}}c();d();f();c();d();f();function kP(e){return!e||Array.isArray(e)||typeof e=="string"&&LP[e]}var df=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,LP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:df([0,.65,.55,1]),circOut:df([.55,0,1,.45]),backIn:df([.31,.01,.66,-.59]),backOut:df([.33,1.53,.69,.99])};function FP(e){if(!!e)return Array.isArray(e)?df(e):LP[e]}function $P(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){return e.animate({[t]:r,offset:u},{delay:n,duration:i,easing:FP(a),fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var qp=10;function UP(e,t,o){var s=o,{onUpdate:r,onComplete:n}=s,i=de(s,["onUpdate","onComplete"]);let{keyframes:a,duration:u=.3,elapsed:l=0,ease:p}=i;if(i.type==="spring"||!kP(i.ease)){let g=Us(i),w={done:!1,value:a[0]},v=[],_=0;for(;!w.done;)w=g.sample(_),v.push(w.value),_+=qp;a=v,u=_-qp,p="linear"}let h=$P(e.owner.current,t,a,ue(K({},i),{delay:-l,duration:u,ease:p}));return h.onfinish=()=>{e.set(a[a.length-1]),n&&n()},()=>{let{currentTime:g}=h;if(g){let w=Us(i);e.setWithVelocity(w.sample(g-qp).value,w.sample(g).value,qp)}Ct.update(()=>h.cancel())}}c();d();f();c();d();f();function Wp(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&(Jr.read(n),e(o-t))};return Ct.read(n,!0),()=>Jr.read(n)}function VP({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),()=>{});return t?Wp(i,-t):i()}c();d();f();function BP({keyframes:e,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:l,driver:p,onUpdate:h,onComplete:g,onStop:w}){let v=e[0],_;function D(R){return r!==void 0&&R<r||n!==void 0&&R>n}function C(R){return r===void 0?n:n===void 0||Math.abs(r-R)<Math.abs(n-R)?r:n}function I(R){_==null||_.stop(),_=Us(ue(K({keyframes:[0,1],velocity:0},R),{driver:p,onUpdate:U=>{var j;h==null||h(U),(j=R.onUpdate)===null||j===void 0||j.call(R,U)},onComplete:g,onStop:w}))}function P(R){I(K({type:"spring",stiffness:s,damping:a,restDelta:u},R))}if(D(v))P({velocity:t,keyframes:[v,C(v)]});else{let R=i*t+v;typeof l<"u"&&(R=l(R));let U=C(R),j=U===r?-1:1,F,$,G=X=>{F=$,$=X,t=Eu(X-F,Xr.delta),(j===1&&X>U||j===-1&&X<U)&&P({keyframes:[X,U],velocity:t})};I({type:"decay",keyframes:[v,0],velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:D(R)?G:void 0})}return{stop:()=>_==null?void 0:_.stop()}}c();d();f();var Vs=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Gp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pw=()=>({type:"keyframes",ease:"linear",duration:.3}),Sj={type:"keyframes",duration:.8},jP={x:Vs,y:Vs,z:Vs,rotate:Vs,rotateX:Vs,rotateY:Vs,rotateZ:Vs,scaleX:Gp,scaleY:Gp,scale:Gp,opacity:Pw,backgroundColor:Pw,color:Pw,default:Gp},zP=(e,{keyframes:t})=>t.length>2?Sj:(jP[e]||jP.default)(t[1]);c();d();f();var hf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Tr.test(t)&&!t.startsWith("url("));c();d();f();c();d();f();function HP(p){var h=p,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u}=h,l=de(h,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(l).length}function Dw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Iw(e){return typeof e=="number"?0:Cu("",e)}function Yp(e,t){return e[t]||e.default||e}function KP(e,t,r,n){let i=hf(t,r),o=n.from!==void 0?n.from:e.get();return o==="none"&&i&&typeof r=="string"?o=Cu(t,r):Dw(o)&&typeof r=="string"?o=Iw(r):!Array.isArray(r)&&Dw(r)&&typeof o=="string"&&(r=Iw(o)),Array.isArray(r)?(r[0]===null&&(r[0]=o),r):[o,r]}c();d();f();var qP={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Aw={},Ow={};for(let e in qP)Ow[e]=()=>(Aw[e]===void 0&&(Aw[e]=qP[e]()),Aw[e]);var Cj=new Set(["opacity"]),Ru=(e,t,r,n={})=>i=>{let o=Yp(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a=a-Du(s);let u=KP(t,e,r,o),l=u[0],p=u[u.length-1],h=hf(e,l),g=hf(e,p);Pu(h===g,`You are trying to animate ${e} from "${l}" to "${p}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${p} via the \`style\` property.`);let w=ue(K({keyframes:u,velocity:t.getVelocity()},o),{elapsed:a,onUpdate:C=>{t.set(C),o.onUpdate&&o.onUpdate(C)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}});if(!h||!g||yP.current||o.type===!1)return VP(w);if(o.type==="inertia"){let C=BP(w);return()=>C.stop()}HP(o)||(w=K(K({},w),zP(e,w))),w.duration&&(w.duration=Du(w.duration)),w.repeatDelay&&(w.repeatDelay=Du(w.repeatDelay));let v=t.owner,_=v&&v.current;if(Ow.waapi()&&Cj.has(e)&&!w.repeatDelay&&w.repeatType!=="mirror"&&w.damping!==0&&v&&_ instanceof HTMLElement&&!v.getProps().onUpdate)return UP(t,e,w);{let C=Us(w);return()=>C.stop()}};function WP(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let i=t.map(o=>Rw(e,o,r));n=Promise.all(i)}else if(typeof t=="string")n=Rw(e,t,r);else{let i=typeof t=="function"?Ls(e,t,r.custom):t;n=GP(e,i,r)}return n.then(()=>e.notify("AnimationComplete",t))}function Rw(e,t,r={}){var n;let i=Ls(e,t,r.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>GP(e,i,r):()=>Promise.resolve(),a=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{let{delayChildren:p=0,staggerChildren:h,staggerDirection:g}=o;return Tj(e,t,p+l,h,g,r)}:()=>Promise.resolve(),{when:u}=o;if(u){let[l,p]=u==="beforeChildren"?[s,a]:[a,s];return l().then(p)}else return Promise.all([s(),a(r.delay)])}function GP(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let g=e.makeTargetAnimatable(t),{transition:s=e.getDefaultTransition(),transitionEnd:a}=g,u=de(g,["transition","transitionEnd"]),l=e.getValue("willChange");n&&(s=n);let p=[],h=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(let w in u){let v=e.getValue(w),_=u[w];if(!v||_===void 0||h&&Dj(h,w))continue;let D=K({delay:r,elapsed:0},s);if(e.shouldReduceMotion&&Fr.has(w)&&(D=ue(K({},D),{type:!1,delay:0})),!v.hasAnimated){let I=e.getProps()[gP];I&&(D.elapsed=mP(I,w))}let C=v.start(Ru(w,v,_,D));Fs(l)&&(l.add(w),C=C.then(()=>l.remove(w))),p.push(C)}return Promise.all(p).then(()=>{a&&fP(e,a)})}function Tj(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=i===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(e.variantChildren).sort(Pj).forEach((l,p)=>{s.push(Rw(l,t,ue(K({},o),{delay:r+u(p)})).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function Pj(e,t){return e.sortNodePosition(t)}function Dj({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Xp=[Te.Animate,Te.InView,Te.Focus,Te.Hover,Te.Tap,Te.Drag,Te.Exit],Ij=[...Xp].reverse(),Aj=Xp.length;function Oj(e){return t=>Promise.all(t.map(({animation:r,options:n})=>WP(e,r,n)))}function YP(e){let t=Oj(e),r=Nj(),n=!0,i=(u,l)=>{let p=Ls(e,l);if(p){let h=p,{transition:g,transitionEnd:w}=h,v=de(h,["transition","transitionEnd"]);u=K(K(K({},u),v),w)}return u};function o(u){t=u(e)}function s(u,l){let p=e.getProps(),h=e.getVariantContext(!0)||{},g=[],w=new Set,v={},_=1/0;for(let C=0;C<Aj;C++){let I=Ij[C],P=r[I],R=p[I]!==void 0?p[I]:h[I],U=xi(R),j=I===l?P.isActive:null;j===!1&&(_=C);let F=R===h[I]&&R!==p[I]&&U;if(F&&n&&e.manuallyAnimateOnMount&&(F=!1),P.protectedKeys=K({},v),!P.isActive&&j===null||!R&&!P.prevProp||vo(R)||typeof R=="boolean")continue;let $=Rj(P.prevProp,R),G=$||I===l&&P.isActive&&!F&&U||C>_&&U,X=Array.isArray(R)?R:[R],W=X.reduce(i,{});j===!1&&(W={});let{prevResolvedValues:J={}}=P,N=K(K({},J),W),m=E=>{G=!0,w.delete(E),P.needsAnimating[E]=!0};for(let E in N){let A=W[E],O=J[E];v.hasOwnProperty(E)||(A!==O?Ns(A)&&Ns(O)?!cw(A,O)||$?m(E):P.protectedKeys[E]=!0:A!==void 0?m(E):w.add(E):A!==void 0&&w.has(E)?m(E):P.protectedKeys[E]=!0)}P.prevProp=R,P.prevResolvedValues=W,P.isActive&&(v=K(K({},v),W)),n&&e.blockInitialAnimation&&(G=!1),G&&!F&&g.push(...X.map(E=>({animation:E,options:K({type:I},u)})))}if(w.size){let C={};w.forEach(I=>{let P=e.getBaseTarget(I);P!==void 0&&(C[I]=P)}),g.push({animation:C})}let D=Boolean(g.length);return n&&p.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),n=!1,D?t(g):Promise.resolve()}function a(u,l,p){var h;if(r[u].isActive===l)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(w=>{var v;return(v=w.animationState)===null||v===void 0?void 0:v.setActive(u,l)}),r[u].isActive=l;let g=s(p,u);for(let w in r)r[w].protectedKeys={};return g}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>r}}function Rj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cw(t,e):!1}function Bs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nj(){return{[Te.Animate]:Bs(!0),[Te.InView]:Bs(),[Te.Hover]:Bs(),[Te.Tap]:Bs(),[Te.Drag]:Bs(),[Te.Focus]:Bs(),[Te.Exit]:Bs()}}var XP={animation:kn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=YP(e)),vo(t)&&(0,pf.useEffect)(()=>t.subscribe(e),[t])}),exit:kn(e=>{let{custom:t,visualElement:r}=e,[n,i]=Lp(),o=(0,pf.useContext)(qn);(0,pf.useEffect)(()=>{r.isPresent=n;let s=r.animationState&&r.animationState.setActive(Te.Exit,!n,{custom:o&&o.custom||t});s&&!n&&s.then(i)},[n])})};c();d();f();c();d();f();var Vw=Y(ae(),1);c();d();f();c();d();f();c();d();f();var JP=(e,t)=>Math.abs(e-t);function QP(e,t){let r=JP(e.x,t.x),n=JP(e.y,t.y);return Math.sqrt(r**2+n**2)}var Nu=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let l=Mw(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=QP(l.offset,{x:0,y:0})>=3;if(!p&&!h)return;let{point:g}=l,{timestamp:w}=Xr;this.history.push(ue(K({},g),{timestamp:w}));let{onStart:v,onMove:_}=this.handlers;p||(v&&v(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,l)},this.handlePointerMove=(l,p)=>{if(this.lastMoveEvent=l,this.lastMoveEventInfo=Nw(p,this.transformPagePoint),Rp(l)&&l.buttons===0){this.handlePointerUp(l,p);return}Ct.update(this.updatePoint,!0)},this.handlePointerUp=(l,p)=>{this.end();let{onEnd:h,onSessionEnd:g}=this.handlers,w=Mw(Nw(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(l,w),g&&g(l,w)},Np(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let i=ef(t),o=Nw(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=Xr;this.history=[ue(K({},s),{timestamp:a})];let{onSessionStart:u}=r;u&&u(t,Mw(o,this.history)),this.removeListeners=Co(_i(window,"pointermove",this.handlePointerMove),_i(window,"pointerup",this.handlePointerUp),_i(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Jr.update(this.updatePoint)}};function Nw(e,t){return t?{point:t(e.point)}:e}function ZP(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mw({point:e},t){return{point:e,delta:ZP(e,eD(t)),offset:ZP(e,Mj(t)),velocity:kj(t,.1)}}function Mj(e){return e[0]}function eD(e){return e[e.length-1]}function kj(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=eD(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>Du(t)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}c();d();f();c();d();f();function ir(e){return e.max-e.min}function Jp(e,t=0,r=.01){return Math.abs(e-t)<=r}function tD(e,t,r,n=.5){e.origin=n,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=ir(r)/ir(t),(Jp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pe(r.min,r.max,e.origin)-e.originPoint,(Jp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Mu(e,t,r,n){tD(e.x,t.x,r.x,n==null?void 0:n.originX),tD(e.y,t.y,r.y,n==null?void 0:n.originY)}function rD(e,t,r){e.min=r.min+t.min,e.max=e.min+ir(t)}function iD(e,t,r){rD(e.x,t.x,r.x),rD(e.y,t.y,r.y)}function nD(e,t,r){e.min=t.min-r.min,e.max=e.min+ir(t)}function ku(e,t,r){nD(e.x,t.x,r.x),nD(e.y,t.y,r.y)}function lD(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Pe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Pe(r,e,n.max):Math.min(e,r)),e}function oD(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function cD(e,{top:t,left:r,bottom:n,right:i}){return{x:oD(e.x,r,i),y:oD(e.y,t,n)}}function sD(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function fD(e,t){return{x:sD(e.x,t.x),y:sD(e.y,t.y)}}function dD(e,t){let r=.5,n=ir(e),i=ir(t);return i>n?r=$s(t.min,t.max-n,e.min):n>i&&(r=$s(e.min,e.max-i,t.min)),Mn(0,1,r)}function hD(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Qp=.35;function pD(e=Qp){return e===!1?e=0:e===!0&&(e=Qp),{x:aD(e,"left","right"),y:aD(e,"top","bottom")}}function aD(e,t,r){return{min:uD(e,t),max:uD(e,r)}}function uD(e,t){return typeof e=="number"?e:e[t]||0}c();d();f();var mD=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lu=()=>({x:mD(),y:mD()}),gD=()=>({min:0,max:0}),At=()=>({x:gD(),y:gD()});c();d();f();function pn(e){return[e("x"),e("y")]}c();d();f();c();d();f();function Zp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function yD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function vD(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}c();d();f();c();d();f();function kw(e){return e===void 0||e===1}function em({scale:e,scaleX:t,scaleY:r}){return!kw(e)||!kw(t)||!kw(r)}function Si(e){return em(e)||Lw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Lw(e){return wD(e.x)||wD(e.y)}function wD(e){return e&&e!=="0%"}function mf(e,t,r){let n=e-r,i=t*n;return r+i}function xD(e,t,r,n,i){return i!==void 0&&(e=mf(e,i,n)),mf(e,r,n)+t}function Fw(e,t=0,r=1,n,i){e.min=xD(e.min,t,r,n,i),e.max=xD(e.max,t,r,n,i)}function $w(e,{x:t,y:r}){Fw(e.x,t.translate,t.scale,t.originPoint),Fw(e.y,r.translate,r.scale,r.originPoint)}function _D(e,t,r,n=!1){var i,o;let s=r.length;if(!s)return;t.x=t.y=1;let a,u;for(let l=0;l<s;l++)a=r[l],u=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&js(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,$w(e,u)),n&&Si(a.latestValues)&&js(e,a.latestValues));t.x=bD(t.x),t.y=bD(t.y)}function bD(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xn(e,t){e.min=e.min+t,e.max=e.max+t}function ED(e,t,[r,n,i]){let o=t[i]!==void 0?t[i]:.5,s=Pe(e.min,e.max,o);Fw(e,t[r],t[n],s,t.scale)}var Lj=["x","scaleX","originX"],Fj=["y","scaleY","originY"];function js(e,t){ED(e.x,t,Lj),ED(e.y,t,Fj)}function Uw(e,t){return Zp(vD(e.getBoundingClientRect(),t))}function SD(e,t,r){let n=Uw(e,r),{scroll:i}=t;return i&&(Xn(n.x,i.offset.x),Xn(n.y,i.offset.y)),n}var $j=new WeakMap,rm=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=At(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=a=>{this.stopAnimation(),r&&this.snapToCursor(ef(a,"page").point)},i=(a,u)=>{var l;let{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ow(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pn(w=>{var v,_;let D=this.getAxisMotionValue(w).get()||0;if(Cr.test(D)){let C=(_=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||_===void 0?void 0:_.layoutBox[w];C&&(D=ir(C)*(parseFloat(D)/100))}this.originPoint[w]=D}),g==null||g(a,u),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(Te.Drag,!0))},o=(a,u)=>{let{dragPropagation:l,dragDirectionLock:p,onDirectionLock:h,onDrag:g}=this.getProps();if(!l&&!this.openGlobalLock)return;let{offset:w}=u;if(p&&this.currentDirection===null){this.currentDirection=Uj(w),this.currentDirection!==null&&(h==null||h(this.currentDirection));return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),g==null||g(a,u)},s=(a,u)=>this.stop(a,u);this.panSession=new Nu(t,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:o}=this.getProps();o==null||o(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Te.Drag,!1)}updateAxis(t,r,n){let{drag:i}=this.getProps();if(!n||!tm(t,i,this.currentDirection))return;let o=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=lD(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&wi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=cD(n.layoutBox,t):this.constraints=!1,this.elastic=pD(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&pn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=hD(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!wi(t))return!1;let n=t.current;nr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=SD(n,i.root,this.visualElement.getTransformPagePoint()),s=fD(i.layout.layoutBox,o);if(r){let a=r(yD(s));this.hasMutatedConstraints=!!a,a&&(s=Zp(a))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=pn(p=>{if(!tm(p,r,this.currentDirection))return;let h=(u==null?void 0:u[p])||{};s&&(h={min:0,max:0});let g=i?200:1e6,w=i?40:1e7,v=K(K({type:"inertia",velocity:n?t[p]:0,bounceStiffness:g,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(p,v)});return Promise.all(l).then(a)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(Ru(t,n,0,r))}stopAnimation(){pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;let n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){pn(r=>{let{drag:n}=this.getProps();if(!tm(r,n,this.currentDirection))return;let{projection:i}=this.visualElement,o=this.getAxisMotionValue(r);if(i&&i.layout){let{min:s,max:a}=i.layout.layoutBox[r];o.set(t[r]-Pe(s,a,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!wi(n)||!i||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};pn(a=>{let u=this.getAxisMotionValue(a);if(u){let l=u.get();o[a]=dD({min:l,max:l},this.constraints[a])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),pn(a=>{if(!tm(a,r,null))return;let u=this.getAxisMotionValue(a),{min:l,max:p}=this.constraints[a];u.set(Pe(l,p,o[a]))})}addListeners(){var t;if(!this.visualElement.current)return;$j.set(this.visualElement,this);let r=this.visualElement.current,n=_i(r,"pointerdown",l=>{let{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(l)}),i=()=>{let{dragConstraints:l}=this.getProps();wi(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();let a=Ms(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:p})=>{this.isDragging&&p&&(pn(h=>{let g=this.getAxisMotionValue(h);!g||(this.originPoint[h]+=l[h].translate,g.set(g.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),u==null||u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Qp,dragMomentum:a=!0}=t;return ue(K({},t),{drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a})}};function tm(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Uj(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function CD(e){let{dragControls:t,visualElement:r}=e,n=xo(()=>new rm(r));(0,Vw.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,Vw.useEffect)(()=>n.addListeners(),[n])}c();d();f();var Fu=Y(ae(),1);function TD({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:i}){let o=e||t||r||n,s=(0,Fu.useRef)(null),{transformPagePoint:a}=(0,Fu.useContext)(nu),u={onSessionStart:n,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,r&&r(p,h)}};(0,Fu.useEffect)(()=>{s.current!==null&&s.current.updateHandlers(u)});function l(p){s.current=new Nu(p,u,{transformPagePoint:a})}ks(i,"pointerdown",o&&l),yu(()=>s.current&&s.current.end())}var PD={pan:kn(TD),drag:kn(CD)};c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();function Bw(e){return typeof e=="string"&&e.startsWith("var(--")}var zw=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Vj(e){let t=zw.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var Bj=4;function jw(e,t,r=1){nr(r<=Bj,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=Vj(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():Bw(i)?jw(i,t,r+1):i}function DD(e,n,r){var t=de(n,[]);let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:r};r&&(r=K({},r)),e.values.forEach(o=>{let s=o.get();if(!Bw(s))return;let a=jw(s,i);a&&o.set(a)});for(let o in t){let s=t[o];if(!Bw(s))continue;let a=jw(s,i);!a||(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}c();d();f();var jj=new Set(["width","height","top","left","right","bottom","x","y"]),ND=e=>jj.has(e),zj=e=>Object.keys(e).some(ND),MD=(e,t)=>{e.set(t,!1),e.set(t)},nm=e=>e===hn||e===pe,ID;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ID||(ID={}));var AD=(e,t)=>parseFloat(e.split(", ")[t]),OD=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return AD(i[1],t);{let o=n.match(/^matrix\((.+)\)$/);return o?AD(o[1],e):0}},Hj=new Set(["x","y","z"]),Kj=uu.filter(e=>!Hj.has(e));function qj(e){let t=[];return Kj.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var RD={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:OD(4,13),y:OD(5,14)},Wj=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{a[l]=RD[l](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(l=>{let p=t.getValue(l);MD(p,a[l]),e[l]=RD[l](u,o)}),e},Gj=(e,t,r={},n={})=>{t=K({},t),n=K({},n);let i=Object.keys(t).filter(ND),o=[],s=!1,a=[];if(i.forEach(u=>{let l=e.getValue(u);if(!e.hasValue(u))return;let p=r[u],h=Tu(p),g=t[u],w;if(Ns(g)){let v=g.length,_=g[0]===null?1:0;p=g[_],h=Tu(p);for(let D=_;D<v;D++)w?nr(Tu(g[D])===w,"All keyframes must be of the same type"):(w=Tu(g[D]),nr(w===h||nm(h)&&nm(w),"Keyframes must be of the same dimension as the current value"))}else w=Tu(g);if(h!==w)if(nm(h)&&nm(w)){let v=l.get();typeof v=="string"&&l.set(parseFloat(v)),typeof g=="string"?t[u]=parseFloat(g):Array.isArray(g)&&w===pe&&(t[u]=g.map(parseFloat))}else(h==null?void 0:h.transform)&&(w==null?void 0:w.transform)&&(p===0||g===0)?p===0?l.set(w.transform(p)):t[u]=h.transform(g):(s||(o=qj(e),s=!0),a.push(u),n[u]=n[u]!==void 0?n[u]:t[u],MD(l,g))}),a.length){let u=a.indexOf("height")>=0?window.pageYOffset:null,l=Wj(t,e,a);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),dn&&u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function kD(e,t,r,n){return zj(t)?Gj(e,t,r,n):{target:t,transitionEnd:n}}var LD=(e,t,r,n)=>{let i=DD(e,t,n);return t=i.target,n=i.transitionEnd,kD(e,t,r,n)};c();d();f();var VD=Y(ae(),1);c();d();f();c();d();f();var gf={current:null},im={current:!1};function FD(){if(im.current=!0,!!dn)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gf.current=e.matches;e.addListener(t),t()}else gf.current=!1}c();d();f();function $D(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(Jt(o))e.addValue(i,o),Fs(n)&&n.add(i);else if(Jt(s))e.addValue(i,Gn(o,{owner:e})),Fs(n)&&n.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,Gn(a!==void 0?a:o))}}for(let i in r)t[i]===void 0&&e.removeValue(i);return t}var BD=Object.keys(wo),Yj=BD.length,UD=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],om=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget=K({},s),this.initialValues=r.initial?K({},s):{},this.renderState=a,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Os(r),this.isVariantNode=vp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let p=this.scrapeMotionValuesFromProps(r),{willChange:u}=p,l=de(p,["willChange"]);for(let h in l){let g=l[h];s[h]!==void 0&&Jt(g)&&(g.set(s[h],!1),Fs(u)&&u.add(h))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),im.current||FD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gf.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),Jr.update(this.notifyUpdate),Jr.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,r){let n=Fr.has(t),i=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,i,o,s){let a=[];vu!=="production"&&n&&r&&nr(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let u=0;u<Yj;u++){let l=BD[u],{isEnabled:p,Component:h}=wo[l];p(t)&&h&&a.push((0,VD.createElement)(h,ue(K({key:l},t),{visualElement:this})))}if(!this.projection&&o){this.projection=new o(i,this.latestValues,this.parent&&this.parent.projection);let{layoutId:u,layout:l,drag:p,dragConstraints:h,layoutScroll:g}=t;this.projection.setOptions({layoutId:u,layout:l,alwaysMeasureLayout:Boolean(p)||h&&wi(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,layoutScroll:g})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):At()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<UD.length;r++){let n=UD[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=$D(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let o=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}let i={};for(let o=0;o<Xj;o++){let s=jD[o],a=this.props[s];(xi(a)||a===!1)&&(i[s]=a)}return i}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Gn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=mu(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;let o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Jt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new To),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},jD=["initial",...Xp],Xj=jD.length;var $u=class extends om{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(s,{transformValues:i},o){var a=s,{transition:t,transitionEnd:r}=a,n=de(a,["transition","transitionEnd"]);let u=hP(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),u&&(u=i(u))),o){dP(this,n,u);let l=LD(this,n,u,r);r=l.transitionEnd,n=l.target}return K({transition:t,transitionEnd:r},n)}};function Jj(e){return window.getComputedStyle(e)}var sm=class extends $u{readValueFromInstance(t,r){if(Fr.has(r)){let n=Su(r);return n&&n.default||0}else{let n=Jj(t),i=(_p(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Uw(t,r)}build(t,r,n,i){lu(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return pu(t)}renderInstance(t,r,n,i){Pp(t,r,n,i)}};c();d();f();var am=class extends $u{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return Fr.has(r)?((n=Su(r))===null||n===void 0?void 0:n.default)||0:(r=Dp.has(r)?r:hu(r),t.getAttribute(r))}measureInstanceViewportBox(){return At()}scrapeMotionValuesFromProps(t){return Ap(t)}build(t,r,n,i){fu(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){Ip(t,r,n,i)}mount(t){this.isSVGTag=du(t.tagName),super.mount(t)}};var zD=(e,t)=>su(e)?new am(t,{enableHardwareAcceleration:!1}):new sm(t,{enableHardwareAcceleration:!0});c();d();f();c();d();f();var Vu=Y(ae(),1);c();d();f();function HD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Uu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;let r=HD(e,t.target.x),n=HD(e,t.target.y);return`${r}% ${n}%`}};c();d();f();var KD="_$css",qD={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,i=e.includes("var("),o=[];i&&(e=e.replace(zw,w=>(o.push(w),KD)));let s=Tr.parse(e);if(s.length>5)return n;let a=Tr.createTransformer(e),u=typeof s[0]!="number"?1:0,l=r.x.scale*t.x,p=r.y.scale*t.y;s[0+u]/=l,s[1+u]/=p;let h=Pe(l,p,.5);typeof s[2+u]=="number"&&(s[2+u]/=h),typeof s[3+u]=="number"&&(s[3+u]/=h);let g=a(s);if(i){let w=0;g=g.replace(KD,()=>{let v=o[w];return w++,v})}return g}};var Hw=class extends Vu.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;pT(Qj),o&&(r.group&&r.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(ue(K({},o.options),{onExitComplete:()=>this.safeToRemove()}))),bo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Ct.postRender(()=>{var a;!((a=s.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function WD(e){let[t,r]=Lp(),n=(0,Vu.useContext)(ou);return Vu.default.createElement(Hw,ue(K({},e),{layoutGroup:n,switchLayoutGroup:(0,Vu.useContext)(bp),isPresent:t,safeToRemove:r}))}var Qj={borderRadius:ue(K({},Uu),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Uu,borderTopRightRadius:Uu,borderBottomLeftRadius:Uu,borderBottomRightRadius:Uu,boxShadow:qD};var GD={measureLayout:WD};c();d();f();c();d();f();c();d();f();function YD(e,t,r={}){let n=Jt(e)?e:Gn(e);return n.start(Ru("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}c();d();f();var ZD=["TopLeft","TopRight","BottomLeft","BottomRight"],Zj=ZD.length,XD=e=>typeof e=="string"?parseFloat(e):e,JD=e=>typeof e=="number"||pe.test(e);function e8(e,t,r,n,i,o){i?(e.opacity=Pe(0,r.opacity!==void 0?r.opacity:1,ez(n)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,tz(n))):o&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<Zj;s++){let a=`border${ZD[s]}Radius`,u=QD(t,a),l=QD(r,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||JD(u)===JD(l)?(e[a]=Math.max(Pe(XD(u),XD(l),n),0),(Cr.test(l)||Cr.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||r.rotate)&&(e.rotate=Pe(t.rotate||0,r.rotate||0,n))}function QD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var ez=t8(0,.5,lf),tz=t8(.5,.95,Ou);function t8(e,t,r){return n=>n<e?0:n>t?1:r($s(e,t,n))}c();d();f();function r8(e,t){e.min=t.min,e.max=t.max}function mn(e,t){r8(e.x,t.x),r8(e.y,t.y)}c();d();f();function n8(e,t,r,n,i){return e-=t,e=mf(e,1/r,n),i!==void 0&&(e=mf(e,1/i,n)),e}function rz(e,t=0,r=1,n=.5,i,o=e,s=e){if(Cr.test(t)&&(t=parseFloat(t),t=Pe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Pe(o.min,o.max,n);e===o&&(a-=t),e.min=n8(e.min,t,r,a,i),e.max=n8(e.max,t,r,a,i)}function i8(e,t,[r,n,i],o,s){rz(e,t[r],t[n],t[i],t.scale,o,s)}var nz=["x","scaleX","originX"],iz=["y","scaleY","originY"];function Kw(e,t,r,n){i8(e.x,t,nz,r==null?void 0:r.x,n==null?void 0:n.x),i8(e.y,t,iz,r==null?void 0:r.y,n==null?void 0:n.y)}c();d();f();function o8(e){return e.translate===0&&e.scale===1}function qw(e){return o8(e.x)&&o8(e.y)}function Ww(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Gw(e){return ir(e.x)/ir(e.y)}c();d();f();var um=class{constructor(){this.members=[]}add(t){xu(this.members,t),t.scheduleRender()}remove(t){if(bu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){let o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,i,o,s;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};c();d();f();function Yw(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:u,rotateX:l,rotateY:p}=r;u&&(n+=`rotate(${u}deg) `),l&&(n+=`rotateX(${l}deg) `),p&&(n+=`rotateY(${p}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}c();d();f();c();d();f();var s8=(e,t)=>e.depth-t.depth;var lm=class{constructor(){this.children=[],this.isDirty=!1}add(t){xu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s8),this.isDirty=!1,this.children.forEach(t)}};var a8=["","X","Y","Z"],u8=1e3,oz=0;function cm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(s,a={},u=t==null?void 0:t()){this.id=oz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(uz),this.nodes.forEach(fz),this.nodes.forEach(dz)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new lm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new To),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let u=this.eventHandlers.get(s);u==null||u.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}registerPotentialNode(s,a){this.potentialNodes.set(s,a)}mount(s,a=!1){var u;if(this.instance)return;this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;let{layoutId:l,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),a&&(p||l)&&(this.isLayoutDirty=!0),e){let g,w=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Wp(w,250),bo.hasAnimatedSinceResize&&(bo.hasAnimatedSinceResize=!1,this.nodes.forEach(c8))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:w,hasRelativeTargetChanged:v,layout:_})=>{var D,C,I,P,R;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let U=(C=(D=this.options.transition)!==null&&D!==void 0?D:h.getDefaultTransition())!==null&&C!==void 0?C:yz,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=h.getProps(),$=!this.targetLayout||!Ww(this.targetLayout,_)||v,G=!w&&v;if(((I=this.resumeFrom)===null||I===void 0?void 0:I.instance)||G||w&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,G);let X=ue(K({},Yp(U,"layout")),{onPlay:j,onComplete:F});h.shouldReduceMotion&&(X.delay=0,X.type=!1),this.startAnimation(X)}else!w&&this.animationProgress===0&&c8(this),this.isLead()&&((R=(P=this.options).onExitComplete)===null||R===void 0||R.call(P));this.targetLayout=_})}unmount(){var s,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,Jr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(hz),this.animationId++)}willUpdate(s=!0){var a,u,l;if(this.root.isUpdateBlocked()){(u=(a=this.options).onExitComplete)===null||u===void 0||u.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){let v=this.path[w];v.shouldResetTransform=!0,v.updateScroll("snapshot")}let{layoutId:p,layout:h}=this.options;if(p===void 0&&!h)return;let g=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(l8);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(vz),this.potentialNodes.clear()),this.nodes.forEach(cz),this.nodes.forEach(sz),this.nodes.forEach(az),this.clearAllSnapshots(),$p.update(),$p.preRender(),$p.render())}clearAllSnapshots(){this.nodes.forEach(lz),this.sharedNodes.forEach(pz)}scheduleUpdateProjection(){Ct.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=At(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(s=this.options.visualElement)===null||s===void 0||s.notify("LayoutMeasure",this.layout.layoutBox,a==null?void 0:a.layoutBox)}updateScroll(s="measure"){let a=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var s;if(!i)return;let a=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!qw(this.projectionDelta),l=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,p=l==null?void 0:l(this.latestValues,""),h=p!==this.prevTransformTemplateValue;a&&(u||Si(this.latestValues)||h)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),u=this.removeElementScroll(a);return s&&(u=this.removeTransform(u)),wz(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return At();let a=s.measureViewportBox(),{scroll:u}=this.root;return u&&(Xn(a.x,u.offset.x),Xn(a.y,u.offset.y)),a}removeElementScroll(s){let a=At();mn(a,s);for(let u=0;u<this.path.length;u++){let l=this.path[u],{scroll:p,options:h}=l;if(l!==this.root&&p&&h.layoutScroll){if(p.isRoot){mn(a,s);let{scroll:g}=this.root;g&&(Xn(a.x,-g.offset.x),Xn(a.y,-g.offset.y))}Xn(a.x,p.offset.x),Xn(a.y,p.offset.y)}}return a}applyTransform(s,a=!1){let u=At();mn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&js(u,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Si(p.latestValues)&&js(u,p.latestValues)}return Si(this.latestValues)&&js(u,this.latestValues),u}removeTransform(s){var a;let u=At();mn(u,s);for(let l=0;l<this.path.length;l++){let p=this.path[l];if(!p.instance||!Si(p.latestValues))continue;em(p.latestValues)&&p.updateSnapshot();let h=At(),g=p.measurePageBox();mn(h,g),Kw(u,p.latestValues,(a=p.snapshot)===null||a===void 0?void 0:a.layoutBox,h)}return Si(this.latestValues)&&Kw(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(s){this.options=ue(K(K({},this.options),s),{crossfade:s.crossfade!==void 0?s.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var s;let a=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:u,layoutId:l}=this.options;if(!(!this.layout||!(u||l))){if(!this.targetDelta&&!this.relativeTarget){let p=this.getClosestProjectingParent();p&&p.layout?(this.relativeParent=p,this.relativeTarget=At(),this.relativeTargetOrigin=At(),ku(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=At(),this.targetWithTransforms=At()),this.relativeTarget&&this.relativeTargetOrigin&&((s=this.relativeParent)===null||s===void 0?void 0:s.target)?iD(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):mn(this.target,this.layout.layoutBox),$w(this.target,this.targetDelta)):mn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let p=this.getClosestProjectingParent();p&&Boolean(p.resumingFrom)===Boolean(this.resumingFrom)&&!p.options.layoutScroll&&p.target?(this.relativeParent=p,this.relativeTarget=At(),this.relativeTargetOrigin=At(),ku(this.relativeTargetOrigin,this.target,p.target),mn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||em(this.parent.latestValues)||Lw(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var s;let{isProjectionDirty:a,isTransformDirty:u}=this;this.isProjectionDirty=this.isTransformDirty=!1;let l=this.getLead(),p=Boolean(this.resumingFrom)||this!==l,h=!0;if(a&&(h=!1),p&&u&&(h=!1),h)return;let{layout:g,layoutId:w}=this.options;if(this.isTreeAnimating=Boolean(((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||w))return;mn(this.layoutCorrected,this.layout.layoutBox),_D(this.layoutCorrected,this.treeScale,this.path,p);let{target:v}=l;if(!v)return;this.projectionDelta||(this.projectionDelta=Lu(),this.projectionDeltaWithTransform=Lu());let _=this.treeScale.x,D=this.treeScale.y,C=this.projectionTransform;Mu(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=Yw(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==_||this.treeScale.y!==D)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a,u,l;(u=(a=this.options).scheduleRender)===null||u===void 0||u.call(a),s&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){var u,l;let p=this.snapshot,h=(p==null?void 0:p.latestValues)||{},g=K({},this.latestValues),w=Lu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!a;let v=At(),_=(p==null?void 0:p.source)!==((u=this.layout)===null||u===void 0?void 0:u.source),D=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,C=Boolean(_&&!D&&this.options.crossfade===!0&&!this.path.some(gz));this.animationProgress=0,this.mixTargetDelta=I=>{var P;let R=I/1e3;f8(w.x,s.x,R),f8(w.y,s.y,R),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(ku(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mz(this.relativeTarget,this.relativeTargetOrigin,v,R)),_&&(this.animationValues=g,e8(g,h,this.latestValues,R,C,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(0)}startAnimation(s){var a,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(Jr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{bo.hasAnimatedSinceResize=!0,this.currentAnimation=YD(0,u8,ue(K({},s),{onUpdate:l=>{var p;this.mixTargetDelta(l),(p=s.onUpdate)===null||p===void 0||p.call(s,l)},onComplete:()=>{var l;(l=s.onComplete)===null||l===void 0||l.call(s),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,u8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:u,layout:l,latestValues:p}=s;if(!(!a||!u||!l)){if(this!==s&&this.layout&&l&&p8(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||At();let h=ir(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;let g=ir(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+g}mn(a,u),js(a,p),Mu(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(s,a){var u,l,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new um),this.sharedNodes.get(s).add(a),a.promote({transition:(u=a.options.initialPromotionConfig)===null||u===void 0?void 0:u.transition,preserveFollowOpacity:(p=(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(l,a)})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:u}={}){let l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:u}=s;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;let l={};for(let p=0;p<a8.length;p++){let h="rotate"+a8[p];u[h]&&(l[h]=u[h],s.setStaticValue(h,0))}s==null||s.render();for(let p in l)s.setStaticValue(p,l[p]);s.scheduleRender()}getProjectionStyles(s={}){var a,u,l;let p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};let h=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=gu(s.pointerEvents)||"",p.transform=h?h(this.latestValues,""):"none",p;let g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){let D={};return this.options.layoutId&&(D.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,D.pointerEvents=gu(s.pointerEvents)||""),this.hasProjected&&!Si(this.latestValues)&&(D.transform=h?h({},""):"none",this.hasProjected=!1),D}let w=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=Yw(this.projectionDeltaWithTransform,this.treeScale,w),h&&(p.transform=h(w,p.transform));let{x:v,y:_}=this.projectionDelta;p.transformOrigin=`${v.origin*100}% ${_.origin*100}% 0`,g.animationValues?p.opacity=g===this?(l=(u=w.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:w.opacityExit:p.opacity=g===this?w.opacity!==void 0?w.opacity:"":w.opacityExit!==void 0?w.opacityExit:0;for(let D in au){if(w[D]===void 0)continue;let{correct:C,applyTo:I}=au[D],P=C(w[D],g);if(I){let R=I.length;for(let U=0;U<R;U++)p[I[U]]=P}else p[D]=P}return this.options.layoutId&&(p.pointerEvents=g===this?gu(s.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(l8),this.root.sharedNodes.clear()}}}function sz(e){e.updateLayout()}function az(e){var t,r,n;let i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:s}=e.layout,{animationType:a}=e.options,u=i.source!==e.layout.source;a==="size"?pn(w=>{let v=u?i.measuredBox[w]:i.layoutBox[w],_=ir(v);v.min=o[w].min,v.max=v.min+_}):p8(a,i.layoutBox,o)&&pn(w=>{let v=u?i.measuredBox[w]:i.layoutBox[w],_=ir(o[w]);v.max=v.min+_});let l=Lu();Mu(l,o,i.layoutBox);let p=Lu();u?Mu(p,e.applyTransform(s,!0),i.measuredBox):Mu(p,o,i.layoutBox);let h=!qw(l),g=!1;if(!e.resumeFrom){let w=e.getClosestProjectingParent();if(w&&!w.resumeFrom){let{snapshot:v,layout:_}=w;if(v&&_){let D=At();ku(D,i.layoutBox,v.layoutBox);let C=At();ku(C,o,_.layoutBox),Ww(D,C)||(g=!0)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:p,layoutDelta:l,hasLayoutChanged:h,hasRelativeTargetChanged:g})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function uz(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function lz(e){e.clearSnapshot()}function l8(e){e.clearMeasurements()}function cz(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function c8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function fz(e){e.resolveTargetDelta()}function dz(e){e.calcProjection()}function hz(e){e.resetRotation()}function pz(e){e.removeLeadSnapshot()}function f8(e,t,r){e.translate=Pe(t.translate,0,r),e.scale=Pe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function d8(e,t,r,n){e.min=Pe(t.min,r.min,n),e.max=Pe(t.max,r.max,n)}function mz(e,t,r,n){d8(e.x,t.x,r.x,n),d8(e.y,t.y,r.y,n)}function gz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var yz={duration:.45,ease:[.4,0,.1,1]};function vz(e,t){let r=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){r=e.path[o];break}let i=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function h8(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wz(e){h8(e.x),h8(e.y)}function p8(e,t,r){return e==="position"||e==="preserve-aspect"&&!Jp(Gw(t),Gw(r),.2)}c();d();f();var m8=cm({attachResizeListener:(e,t)=>Ms(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Xw={current:void 0},g8=cm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xw.current){let e=new m8(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Xw.current=e}return Xw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var xz=K(K(K(K({},XP),eP),PD),GD),Jn=dT((e,t)=>FT(e,t,xz,zD,g8));c();d();f();var Ci=Y(ae(),1),gn=Y(ae(),1);c();d();f();var yf=Y(ae(),1);c();d();f();var y8=Y(ae(),1);function fm(){let e=(0,y8.useRef)(!1);return yo(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function v8(){let e=fm(),[t,r]=(0,yf.useState)(0),n=(0,yf.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,yf.useCallback)(()=>Ct.postRender(n),[n]),t]}c();d();f();var vf=Y(ae(),1),wf=Y(ae(),1);c();d();f();var Bu=Y(ae(),1),zs=Y(ae(),1),Jw=class extends Bu.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function w8({children:e,isPresent:t}){let r=(0,zs.useId)(),n=(0,zs.useRef)(null),i=(0,zs.useRef)({width:0,height:0,top:0,left:0});return(0,zs.useInsertionEffect)(()=>{let{width:o,height:s,top:a,left:u}=i.current;if(t||!n.current||!o||!s)return;n.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
18
18
  [data-motion-pop-id="${r}"] {
19
19
  position: absolute !important;
20
20
  width: ${o}px !important;
@@ -22,7 +22,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
22
22
  top: ${a}px !important;
23
23
  left: ${u}px !important;
24
24
  }
25
- `),()=>{document.head.removeChild(l)}},[t]),Uu.createElement(Pw,{isPresent:t,childRef:n,sizeRef:i},Uu.cloneElement(e,{ref:n}))}var Qp=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=xo(oj),u=(0,vf.useId)(),l=(0,vf.useMemo)(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:p=>{a.set(p,!0);for(let h of a.values())if(!h)return;n&&n()},register:p=>(a.set(p,!1),()=>a.delete(p))}),o?void 0:[r]);return(0,vf.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),yf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=yf.createElement(B4,{isPresent:r},e)),yf.createElement(Zn.Provider,{value:l},e)};function oj(){return new Map}var Vu=e=>e.key||"";function sj(e,t){e.forEach(r=>{let n=Vu(r);t.set(n,r)})}function aj(e){let t=[];return bn.Children.forEach(e,r=>{(0,bn.isValidElement)(r)&&t.push(r)}),t}var Bu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",Ep(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=V4(),u=(0,bn.useContext)(nu).forceRender;u&&(a=u);let l=Zp(),p=aj(e),h=p,y=new Set,v=(0,bn.useRef)(h),w=(0,bn.useRef)(new Map).current,_=(0,bn.useRef)(!0);if(yo(()=>{_.current=!1,sj(p,w),v.current=h}),mu(()=>{_.current=!0,w.clear(),y.clear()}),_.current)return Di.createElement(Di.Fragment,null,h.map(P=>Di.createElement(Qp,{key:Vu(P),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},P)));h=[...h];let D=v.current.map(Vu),C=p.map(Vu),I=D.length;for(let P=0;P<I;P++){let R=D[P];C.indexOf(R)===-1&&y.add(R)}return s==="wait"&&y.size&&(h=[]),y.forEach(P=>{if(C.indexOf(P)!==-1)return;let R=w.get(P);if(!R)return;let U=D.indexOf(P),j=()=>{w.delete(P),y.delete(P);let F=v.current.findIndex($=>$.key===P);if(v.current.splice(F,1),!y.size){if(v.current=p,l.current===!1)return;a(),n&&n()}};h.splice(U,0,Di.createElement(Qp,{key:Vu(R),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},R))}),h=h.map(P=>{let R=P.key;return y.has(R)?P:Di.createElement(Qp,{key:Vu(P),isPresent:!0,presenceAffectsLayout:o,mode:s},P)}),gu!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Di.createElement(Di.Fragment,null,y.size?h:h.map(P=>(0,bn.cloneElement)(P)))};c();d();f();var pT=Y(hT(),1),{__extends:Ohe,__assign:En,__rest:nm,__decorate:Ahe,__param:Rhe,__esDecorate:Nhe,__runInitializers:Mhe,__propKey:khe,__setFunctionName:Lhe,__metadata:Fhe,__awaiter:$he,__generator:Uhe,__exportStar:Vhe,__createBinding:Bhe,__values:jhe,__read:zhe,__spread:Hhe,__spreadArrays:Khe,__spreadArray:mT,__await:qhe,__asyncGenerator:Whe,__asyncDelegator:Ghe,__asyncValues:Yhe,__makeTemplateObject:Xhe,__importStar:Jhe,__importDefault:Zhe,__classPrivateFieldGet:Qhe,__classPrivateFieldSet:epe,__classPrivateFieldIn:tpe}=pT.default;c();d();f();var Vn=(...e)=>e.filter(Boolean).join(" "),gT=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Ks=(e,t)=>e!=null&&e[t]?e[t]:M_[t];var uj=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-6"},g.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),g.createElement("p",{className:"text-70868f mt-4 text-center"},"World ID is an identity protocol centered around persons. It can be used to prove someone is doing something once without revealing personal information."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"It currently supports verification through biometrics (using a device called an Orb), and through phone numbers. Zero-Knowledge Proofs and other cryptographic mechanisms are used to preserve privacy."),g.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),g.createElement("div",null,g.createElement(zt.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:Vn("inline-flex w-full justify-center space-x-2 items-center px-8 py-4 border border-transparent font-medium rounded-2xl shadow-sm","text-gray-500 dark:text-70868f bg-gray-200 dark:bg-29343f hover:bg-gray-300/50 dark:hover:bg-29343f/50","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-300 disabled:cursor-not-allowed transition")},g.createElement(zt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),yT=uj;c();d();f();var lj=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),cj={["GENERIC_ERROR"]:"Something went wrong",["INVALID_CODE"]:"Invalid code",["PHONE_OTP_REQUEST_ERROR"]:"We could not send you a code",["REJECTED_BY_HOST_APP"]:"Verification declined by app"},fj=()=>{var r;let{retryFlow:e,errorState:t}=Yr(lj,eu);return g.createElement("div",{className:"space-y-8"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 p-5"},g.createElement(tp,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},cj[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),g.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),g.createElement("div",{className:"flex justify-center"},g.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),g.createElement("div",null,g.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},vT=fj;c();d();f();var zu={opacity:[1,.1,.2,.4,.6,.8]},Hu={repeat:1/0,duration:1,type:"spring"},dj=({className:e=""})=>g.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},g.createElement(zt.path,{animate:zu,transition:Hu,d:"M21.985 17.835a.742.742 0 0 0 .492-.211.768.768 0 0 0 .227-.492c.106-1.73.337-4.651.692-7.72 4.857-.214 8.217 2.033 8.217 2.033-.98-3.45-3.206-12.771-9.196-11.286-5.069 1.339-3.38 14.296-1.047 17.393a.75.75 0 0 0 .615.284Z"}),g.createElement(zt.path,{animate:zu,transition:se(H({},Hu),{delay:.15}),d:"M27.946 18.265c.892-3.791 9.724-13.28 13.938-10.113 4.905 3.8-.816 11.432-2.832 14.383 0 0-.403-4.084-3.619-7.788a162.5 162.5 0 0 0-6.326 4.31.748.748 0 0 1-.839-.004.784.784 0 0 1-.323-.788Zm3.6 5.727a.714.714 0 0 0-.404.547.764.764 0 0 0 .097.532.74.74 0 0 0 .422.328c1.632.489 4.387 1.349 7.247 2.365-.844 4.866-3.724 7.73-3.724 7.73 3.523-.235 12.94-.421 12.815-6.704-.183-5.325-12.978-6.45-16.453-4.798Z"}),g.createElement(zt.path,{animate:zu,transition:se(H({},Hu),{delay:.35}),d:"M29.386 30.421a.727.727 0 0 0-.834.128.756.756 0 0 0-.174.84c.633 1.602 1.699 4.329 2.697 7.25-4.272 2.355-8.265 1.837-8.265 1.837 2.371 2.658 8.38 10.045 13.122 6.039 3.984-3.46-3.11-14.354-6.546-16.094Z"}),g.createElement(zt.path,{animate:zu,transition:se(H({},Hu),{delay:.55}),d:"M23.098 32.706a.739.739 0 0 0-.432-.527.718.718 0 0 0-.533-.027.733.733 0 0 0-.408.35 160.789 160.789 0 0 1-3.897 6.654c-4.464-1.935-6.556-5.443-6.556-5.443-.567 3.547-2.506 12.937 3.532 14.227 5.136 1.016 9.1-11.423 8.294-15.233Z"}),g.createElement(zt.path,{animate:zu,transition:se(H({},Hu),{delay:.7}),d:"M17.434 29.113a.778.778 0 0 0-.177-1.108.729.729 0 0 0-.523-.114c-1.68.274-4.531.714-7.546 1.046-1.295-4.769.096-8.609.096-8.609-3.08 1.75-11.5 6.058-8.735 11.657 2.42 4.73 14.447.137 16.885-2.872Z"}),g.createElement(zt.path,{animate:zu,transition:se(H({},Hu),{delay:.85}),d:"M16.657 22.361a.709.709 0 0 0 .605-.303.772.772 0 0 0-.096-1.016 145.357 145.357 0 0 1-5.5-5.355c2.86-3.996 6.68-5.276 6.68-5.276-3.264-1.368-11.817-5.404-14.399.303-2.13 4.866 8.88 11.588 12.71 11.647Z"})),Do=dj;c();d();f();c();d();f();function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_e.apply(this,arguments)}var fe=Y(ue()),FT=Y(Os());c();d();f();function yr(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}c();d();f();var wT=Y(ue());function hj(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Iw(...e){return t=>e.forEach(r=>hj(r,t))}function vr(...e){return(0,wT.useCallback)(Iw(...e),e)}c();d();f();var Bn=Y(ue());c();d();f();var Ir=Y(ue());function xT(e,t){let r=(0,Ir.createContext)(t);function n(o){let l=o,{children:s}=l,a=de(l,["children"]),u=(0,Ir.useMemo)(()=>a,Object.values(a));return(0,Ir.createElement)(r.Provider,{value:u},s)}function i(o){let s=(0,Ir.useContext)(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function Ku(e,t=[]){let r=[];function n(o,s){let a=(0,Ir.createContext)(s),u=r.length;r=[...r,s];function l(h){let C=h,{scope:y,children:v}=C,w=de(C,["scope","children"]),_=(y==null?void 0:y[e][u])||a,D=(0,Ir.useMemo)(()=>w,Object.values(w));return(0,Ir.createElement)(_.Provider,{value:D},v)}function p(h,y){let v=(y==null?void 0:y[e][u])||a,w=(0,Ir.useContext)(v);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${h}\` must be used within \`${o}\``)}return l.displayName=o+"Provider",[l,p]}let i=()=>{let o=r.map(s=>(0,Ir.createContext)(s));return function(a){let u=(a==null?void 0:a[e])||o;return(0,Ir.useMemo)(()=>({[`__scope${e}`]:se(H({},a),{[e]:u})}),[a,u])}};return i.scopeName=e,[n,pj(i,...t)]}function pj(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){let s=n.reduce((a,{useScope:u,scopeName:l})=>{let h=u(o)[`__scope${l}`];return H(H({},a),h)},{});return(0,Ir.useMemo)(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}c();d();f();var Ot=Y(ue());var Io=(0,Ot.forwardRef)((e,t)=>{let s=e,{children:r}=s,n=de(s,["children"]),i=Ot.Children.toArray(r),o=i.find(gj);if(o){let a=o.props.children,u=i.map(l=>l===o?Ot.Children.count(a)>1?Ot.Children.only(null):(0,Ot.isValidElement)(a)?a.props.children:null:l);return(0,Ot.createElement)(Ow,_e({},n,{ref:t}),(0,Ot.isValidElement)(a)?(0,Ot.cloneElement)(a,void 0,u):null)}return(0,Ot.createElement)(Ow,_e({},n,{ref:t}),r)});Io.displayName="Slot";var Ow=(0,Ot.forwardRef)((e,t)=>{let i=e,{children:r}=i,n=de(i,["children"]);return(0,Ot.isValidElement)(r)?(0,Ot.cloneElement)(r,se(H({},yj(n,r.props)),{ref:Iw(t,r.ref)})):Ot.Children.count(r)>1?Ot.Children.only(null):null});Ow.displayName="SlotClone";var mj=({children:e})=>(0,Ot.createElement)(Ot.Fragment,null,e);function gj(e){return(0,Ot.isValidElement)(e)&&e.type===mj}function yj(e,t){let r=H({},t);for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{o(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]=H(H({},i),o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return H(H({},e),r)}function bT(e){let t=e+"CollectionProvider",[r,n]=Ku(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{let{scope:w,children:_}=v,D=Bn.default.useRef(null),C=Bn.default.useRef(new Map).current;return Bn.default.createElement(i,{scope:w,itemMap:C,collectionRef:D},_)},a=e+"CollectionSlot",u=Bn.default.forwardRef((v,w)=>{let{scope:_,children:D}=v,C=o(a,_),I=vr(w,C.collectionRef);return Bn.default.createElement(Io,{ref:I},D)}),l=e+"CollectionItemSlot",p="data-radix-collection-item",h=Bn.default.forwardRef((v,w)=>{let U=v,{scope:_,children:D}=U,C=de(U,["scope","children"]),I=Bn.default.useRef(null),P=vr(w,I),R=o(l,_);return Bn.default.useEffect(()=>(R.itemMap.set(I,H({ref:I},C)),()=>void R.itemMap.delete(I))),Bn.default.createElement(Io,{[p]:"",ref:P},D)});function y(v){let w=o(e+"CollectionConsumer",v);return Bn.default.useCallback(()=>{let D=w.collectionRef.current;if(!D)return[];let C=Array.from(D.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((R,U)=>C.indexOf(R.ref.current)-C.indexOf(U.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},y,n]}c();d();f();var Fe=Y(ue());c();d();f();var qu=Y(ue()),ET=Y(Os());var vj=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],tr=vj.reduce((e,t)=>{let r=(0,qu.forwardRef)((n,i)=>{let u=n,{asChild:o}=u,s=de(u,["asChild"]),a=o?Io:t;return(0,qu.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,qu.createElement)(a,_e({},s,{ref:i}))});return r.displayName=`Primitive.${t}`,se(H({},e),{[t]:r})},{});function im(e,t){e&&(0,ET.flushSync)(()=>e.dispatchEvent(t))}c();d();f();var Wu=Y(ue());function Vr(e){let t=(0,Wu.useRef)(e);return(0,Wu.useEffect)(()=>{t.current=e}),(0,Wu.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}c();d();f();var _T=Y(ue());function ST(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e);(0,_T.useEffect)(()=>{let n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Aw="dismissableLayer.update",wj="dismissableLayer.pointerDownOutside",xj="dismissableLayer.focusOutside",CT,PT=(0,Fe.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rw=(0,Fe.forwardRef)((e,t)=>{var r;let $=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:u}=$,l=de($,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),p=(0,Fe.useContext)(PT),[h,y]=(0,Fe.useState)(null),v=(r=h==null?void 0:h.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,w]=(0,Fe.useState)({}),_=vr(t,G=>y(G)),D=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),I=D.indexOf(C),P=h?D.indexOf(h):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,U=P>=I,j=Ej(G=>{let X=G.target,W=[...p.branches].some(J=>J.contains(X));!U||W||(o==null||o(G),a==null||a(G),G.defaultPrevented||u==null||u())},v),F=_j(G=>{let X=G.target;[...p.branches].some(J=>J.contains(X))||(s==null||s(G),a==null||a(G),G.defaultPrevented||u==null||u())},v);return ST(G=>{P===p.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&u&&(G.preventDefault(),u()))},v),(0,Fe.useEffect)(()=>{if(!!h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(CT=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),TT(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=CT)}},[h,v,n,p]),(0,Fe.useEffect)(()=>()=>{!h||(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),TT())},[h,p]),(0,Fe.useEffect)(()=>{let G=()=>w({});return document.addEventListener(Aw,G),()=>document.removeEventListener(Aw,G)},[]),(0,Fe.createElement)(tr.div,_e({},l,{ref:_,style:H({pointerEvents:R?U?"auto":"none":void 0},e.style),onFocusCapture:yr(e.onFocusCapture,F.onFocusCapture),onBlurCapture:yr(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:yr(e.onPointerDownCapture,j.onPointerDownCapture)}))});var bj=(0,Fe.forwardRef)((e,t)=>{let r=(0,Fe.useContext)(PT),n=(0,Fe.useRef)(null),i=vr(t,n);return(0,Fe.useEffect)(()=>{let o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,Fe.createElement)(tr.div,_e({},e,{ref:i}))});function Ej(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e),n=(0,Fe.useRef)(!1),i=(0,Fe.useRef)(()=>{});return(0,Fe.useEffect)(()=>{let o=a=>{if(a.target&&!n.current){let l=function(){DT(wj,r,u,{discrete:!0})},u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _j(e,t=globalThis==null?void 0:globalThis.document){let r=Vr(e),n=(0,Fe.useRef)(!1);return(0,Fe.useEffect)(()=>{let i=o=>{o.target&&!n.current&&DT(xj,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function TT(){let e=new CustomEvent(Aw);document.dispatchEvent(e)}function DT(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?im(i,o):i.dispatchEvent(o)}var IT=Rw,OT=bj;c();d();f();var om=Y(ue()),AT=Y(Os());var sm=(0,om.forwardRef)((e,t)=>{var r;let o=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=o,i=de(o,["container"]);return n?AT.default.createPortal((0,om.createElement)(tr.div,_e({},i,{ref:t})),n):null});c();d();f();var wr=Y(ue()),NT=Y(Os());c();d();f();var RT=Y(ue()),qs=Boolean(globalThis==null?void 0:globalThis.document)?RT.useLayoutEffect:()=>{};function Sj(e,t){return(0,wr.useReducer)((r,n)=>{let i=t[r][n];return i!=null?i:r},e)}var wf=e=>{let{present:t,children:r}=e,n=Cj(t),i=typeof r=="function"?r({present:n.isPresent}):wr.Children.only(r),o=vr(n.ref,i.ref);return typeof r=="function"||n.isPresent?(0,wr.cloneElement)(i,{ref:o}):null};wf.displayName="Presence";function Cj(e){let[t,r]=(0,wr.useState)(),n=(0,wr.useRef)({}),i=(0,wr.useRef)(e),o=(0,wr.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=Sj(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,wr.useEffect)(()=>{let l=am(n.current);o.current=a==="mounted"?l:"none"},[a]),qs(()=>{let l=n.current,p=i.current;if(p!==e){let y=o.current,v=am(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),qs(()=>{if(t){let l=h=>{let v=am(n.current).includes(h.animationName);h.target===t&&v&&(0,NT.flushSync)(()=>u("ANIMATION_END"))},p=h=>{h.target===t&&(o.current=am(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,wr.useCallback)(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function am(e){return(e==null?void 0:e.animationName)||"none"}c();d();f();var Oo=Y(ue());function MT({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,i]=Tj({defaultProp:t,onChange:r}),o=e!==void 0,s=o?e:n,a=Vr(r),u=(0,Oo.useCallback)(l=>{if(o){let h=typeof l=="function"?l(e):l;h!==e&&a(h)}else i(l)},[o,e,i,a]);return[s,u]}function Tj({defaultProp:e,onChange:t}){let r=(0,Oo.useState)(e),[n]=r,i=(0,Oo.useRef)(n),o=Vr(t);return(0,Oo.useEffect)(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}c();d();f();var um=Y(ue());var Nw=(0,um.forwardRef)((e,t)=>(0,um.createElement)(tr.span,_e({},e,{ref:t,style:H({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)})));var $T="ToastProvider",[Fw,Pj,Dj]=bT("Toast"),[UT,dme]=Ku("Toast",[Dj]),[Ij,cm]=UT($T),VT=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:s}=e,[a,u]=(0,fe.useState)(null),[l,p]=(0,fe.useState)(0),h=(0,fe.useRef)(!1),y=(0,fe.useRef)(!1);return(0,fe.createElement)(Fw.Provider,{scope:t},(0,fe.createElement)(Ij,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:(0,fe.useCallback)(()=>p(v=>v+1),[]),onToastRemove:(0,fe.useCallback)(()=>p(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:y},s))};VT.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${$T}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var Oj="ToastViewport",Aj=["F8"],kw="toast.viewportPause",Lw="toast.viewportResume",Rj=(0,fe.forwardRef)((e,t)=>{let D=e,{__scopeToast:r,hotkey:n=Aj,label:i="Notifications ({hotkey})"}=D,o=de(D,["__scopeToast","hotkey","label"]),s=cm(Oj,r),a=Pj(r),u=(0,fe.useRef)(null),l=(0,fe.useRef)(null),p=(0,fe.useRef)(null),h=(0,fe.useRef)(null),y=vr(t,h,s.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;(0,fe.useEffect)(()=>{let C=I=>{var P;n.every(U=>I[U]||I.code===U)&&((P=h.current)===null||P===void 0||P.focus())};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[n]),(0,fe.useEffect)(()=>{let C=u.current,I=h.current;if(w&&C&&I){let P=()=>{if(!s.isClosePausedRef.current){let F=new CustomEvent(kw);I.dispatchEvent(F),s.isClosePausedRef.current=!0}},R=()=>{if(s.isClosePausedRef.current){let F=new CustomEvent(Lw);I.dispatchEvent(F),s.isClosePausedRef.current=!1}},U=F=>{!C.contains(F.relatedTarget)&&R()},j=()=>{C.contains(document.activeElement)||R()};return C.addEventListener("focusin",P),C.addEventListener("focusout",U),C.addEventListener("pointermove",P),C.addEventListener("pointerleave",j),window.addEventListener("blur",P),window.addEventListener("focus",R),()=>{C.removeEventListener("focusin",P),C.removeEventListener("focusout",U),C.removeEventListener("pointermove",P),C.removeEventListener("pointerleave",j),window.removeEventListener("blur",P),window.removeEventListener("focus",R)}}},[w,s.isClosePausedRef]);let _=(0,fe.useCallback)(({tabbingDirection:C})=>{let P=a().map(R=>{let U=R.ref.current,j=[U,...Gj(U)];return C==="forwards"?j:j.reverse()});return(C==="forwards"?P.reverse():P).flat()},[a]);return(0,fe.useEffect)(()=>{let C=h.current;if(C){let I=P=>{let R=P.altKey||P.ctrlKey||P.metaKey;if(P.key==="Tab"&&!R){let G=document.activeElement,X=P.shiftKey;if(P.target===C&&X){var j;(j=l.current)===null||j===void 0||j.focus();return}let N=_({tabbingDirection:X?"backwards":"forwards"}),m=N.findIndex(E=>E===G);if(Mw(N.slice(m+1)))P.preventDefault();else{var F,$;X?(F=l.current)===null||F===void 0||F.focus():($=p.current)===null||$===void 0||$.focus()}}};return C.addEventListener("keydown",I),()=>C.removeEventListener("keydown",I)}},[a,_]),(0,fe.createElement)(OT,{ref:u,role:"region","aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:w?void 0:"none"}},w&&(0,fe.createElement)(kT,{ref:l,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"forwards"});Mw(C)}}),(0,fe.createElement)(Fw.Slot,{scope:r},(0,fe.createElement)(tr.ol,_e({tabIndex:-1},o,{ref:y}))),w&&(0,fe.createElement)(kT,{ref:p,onFocusFromOutsideViewport:()=>{let C=_({tabbingDirection:"backwards"});Mw(C)}}))}),Nj="ToastFocusProxy",kT=(0,fe.forwardRef)((e,t)=>{let s=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=s,i=de(s,["__scopeToast","onFocusFromOutsideViewport"]),o=cm(Nj,r);return(0,fe.createElement)(Nw,_e({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var u;let l=a.relatedTarget;!((u=o.viewport)!==null&&u!==void 0&&u.contains(l))&&n()}}))}),fm="Toast",Mj="toast.swipeStart",kj="toast.swipeMove",Lj="toast.swipeCancel",Fj="toast.swipeEnd";var[$j,Uj]=UT(fm,{onClose(){}}),Vj=(0,fe.forwardRef)((e,t)=>{let m=e,{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:p,onSwipeMove:h,onSwipeCancel:y,onSwipeEnd:v}=m,w=de(m,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),_=cm(fm,r),[D,C]=(0,fe.useState)(null),I=vr(t,E=>C(E)),P=(0,fe.useRef)(null),R=(0,fe.useRef)(null),U=i||_.duration,j=(0,fe.useRef)(0),F=(0,fe.useRef)(U),$=(0,fe.useRef)(0),{onToastAdd:G,onToastRemove:X}=_,W=Vr(()=>{var E;(D==null?void 0:D.contains(document.activeElement))&&((E=_.viewport)===null||E===void 0||E.focus()),s()}),J=(0,fe.useCallback)(E=>{!E||E===1/0||(window.clearTimeout($.current),j.current=new Date().getTime(),$.current=window.setTimeout(W,E))},[W]);(0,fe.useEffect)(()=>{let E=_.viewport;if(E){let O=()=>{J(F.current),l==null||l()},A=()=>{let M=new Date().getTime()-j.current;F.current=F.current-M,window.clearTimeout($.current),u==null||u()};return E.addEventListener(kw,A),E.addEventListener(Lw,O),()=>{E.removeEventListener(kw,A),E.removeEventListener(Lw,O)}}},[_.viewport,U,u,l,J]),(0,fe.useEffect)(()=>{o&&!_.isClosePausedRef.current&&J(U)},[o,U,_.isClosePausedRef,J]),(0,fe.useEffect)(()=>(G(),()=>X()),[G,X]);let N=(0,fe.useMemo)(()=>D?jT(D):null,[D]);return _.viewport?(0,fe.createElement)(fe.Fragment,null,N&&(0,fe.createElement)(Bj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},N),(0,fe.createElement)($j,{scope:r,onClose:W},(0,FT.createPortal)((0,fe.createElement)(Fw.ItemSlot,{scope:r},(0,fe.createElement)(IT,{asChild:!0,onEscapeKeyDown:yr(a,()=>{_.isFocusedToastEscapeKeyDownRef.current||W(),_.isFocusedToastEscapeKeyDownRef.current=!1})},(0,fe.createElement)(tr.li,_e({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":_.swipeDirection},w,{ref:I,style:H({userSelect:"none",touchAction:"none"},e.style),onKeyDown:yr(e.onKeyDown,E=>{E.key==="Escape"&&(a==null||a(E.nativeEvent),E.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:yr(e.onPointerDown,E=>{E.button===0&&(P.current={x:E.clientX,y:E.clientY})}),onPointerMove:yr(e.onPointerMove,E=>{if(!P.current)return;let O=E.clientX-P.current.x,A=E.clientY-P.current.y,M=Boolean(R.current),V=["left","right"].includes(_.swipeDirection),B=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,k=V?B(0,O):0,b=V?0:B(0,A),L=E.pointerType==="touch"?10:2,Z={x:k,y:b},T={originalEvent:E,delta:Z};M?(R.current=Z,lm(kj,h,T,{discrete:!1})):LT(Z,_.swipeDirection,L)?(R.current=Z,lm(Mj,p,T,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(O)>L||Math.abs(A)>L)&&(P.current=null)}),onPointerUp:yr(e.onPointerUp,E=>{let O=R.current,A=E.target;if(A.hasPointerCapture(E.pointerId)&&A.releasePointerCapture(E.pointerId),R.current=null,P.current=null,O){let M=E.currentTarget,V={originalEvent:E,delta:O};LT(O,_.swipeDirection,_.swipeThreshold)?lm(Fj,v,V,{discrete:!0}):lm(Lj,y,V,{discrete:!0}),M.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})))),_.viewport))):null});Vj.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${fm}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var Bj=e=>{let l=e,{__scopeToast:t,children:r}=l,n=de(l,["__scopeToast","children"]),i=cm(fm,t),[o,s]=(0,fe.useState)(!1),[a,u]=(0,fe.useState)(!1);return qj(()=>s(!0)),(0,fe.useEffect)(()=>{let p=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(p)},[]),a?null:(0,fe.createElement)(sm,{asChild:!0},(0,fe.createElement)(Nw,n,o&&(0,fe.createElement)(fe.Fragment,null,i.label," ",r)))};var jj="ToastAction",zj=(0,fe.forwardRef)((e,t)=>{let i=e,{altText:r}=i,n=de(i,["altText"]);return r?(0,fe.createElement)(BT,{altText:r,asChild:!0},(0,fe.createElement)(Kj,_e({},n,{ref:t}))):null});zj.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${jj}\``)}};var Hj="ToastClose",Kj=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=de(o,["__scopeToast"]),i=Uj(Hj,r);return(0,fe.createElement)(BT,{asChild:!0},(0,fe.createElement)(tr.button,_e({type:"button"},n,{ref:t,onClick:yr(e.onClick,i.onClose)})))}),BT=(0,fe.forwardRef)((e,t)=>{let o=e,{__scopeToast:r,altText:n}=o,i=de(o,["__scopeToast","altText"]);return(0,fe.createElement)(tr.div,_e({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function jT(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Wj(n)){let i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){let s=n.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...jT(n))}}),t}function lm(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?im(i,o):i.dispatchEvent(o)}var LT=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function qj(e=()=>{}){let t=Vr(e);qs(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Wj(e){return e.nodeType===e.ELEMENT_NODE}function Gj(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Mw(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var zT=VT,HT=Rj;c();d();f();c();d();f();var KT="data:image/webp;base64,UklGRlYhAABXRUJQVlA4TEkhAAAvX8AXEE0obNu2ge3s5P+H2yMi+j8BAKCFvQAkAB9JVPcjKfwuA2ZU4ABsJjfCcYfKJDsieO1eJDNz2T5c4wyX9OYZ65NJmll45kh68K7EhYNIkhQpj+vAv9p7fhFuHNt2k7FNjs5+ovpi/4uiQtQ5I4Vt2zb8/+GkQ0D/JwC/N57w/0IJN54cufsDwIgn2FB+4R//CVDJDBgjcOAMsHhWAjf4VZJfJ4iAnj8AuAFifRPpCcCBSFlEwAYoMO6JL/64sxK4gFmAmppEgnXECmBGCRczERLhAEBY0VIGJSUADARt2yYJf9bbfgoRMQH8q4dpLhaUgMlMqAQrsIJK4EewAEw1B1bJL7Zb245NknSc1/087xuOzEDaNsa2bdv8Nj8g1/wA27Y903aXXWk7MzKSwfd57vscZKVXf/YtSZIlSZJtIauZRWT0/d7//2n3+707s9zDTYU9SJKk2rZtW2aRrffJczPvXf+KMfPe58zRWxgl2rZNu1a/Jxdx8mzbtm3brtmq2irb+LZt23i2jZN7JsDTbdumbWvbPqFSa+tjzr0v27Zt21fQITtoX1fI1xXz9QN8XbEraNtXyDY3z1lr9N6qLNu200baT5aheYY9DSZXz5K7f5nBjqTnW5IkS5Ik20ISj6rq24f0U///71w/4Z4ZyhG+BUiSJEmSJEBEYvG4/v9Lr0wTYcLfCARt28bZ+VN+I0AM+ITyC7yPn3fnLCgBDODJ9+AeSD+bNnkU9DwHGs1AHdAEVrACkcEQSJv/ypyy/an2eq/x4atnzAafyq71XLzg+ZpMayMOCACTjApasgRYipFAUhiGb8/9nsesNT5WeHZs8KzbelttrRLbS3FAVMgUlGAgqhqoLebzkC0opJDEiMNOctbart7kQ+Vnw0rvqzScD6bBQsAADMJnntr8NtYe2HRosrf0uqXHm/T1TfrvG/6HS5/vXepnJz++eOmnXxz+4YOgAoFUUnZ09pq3DSWfAUmDQkNAYEAmiu/e//UL/ZvtV3SiHCpLNMzSC3opvr1J/3nR/8H/H/zdO3k+yeujxY/PDv3hg6/6+rS0AgQVs+HEng89n7a1PpYvXhsyywLQxhs/+fXlB79m30P145L2mD1zJDg9OltcrGaqPIlJfd+Gt1Z+fbP+/9j+H2x5PMWXD/zTh10f4wfW8UNLKxOoACgt9fxkJJ6qyn8TwRZJoNV3vu9/+Ib/afTxEI/3Fp7v/PPri2/XfZcWhjBrUmpkwdgd+7vjvx5z9ID66zWvf/n6Z5/7/HgfP3YuQUXtb6HcU5R9LAkLAgRf8MAXfkN9H+m+nJ93fvH67LePT57zBFEwIDVSEFIMYTK5ZVfRU/T0pZvN8/TO9R8f/HdBglBe9sx5anAXs80qsHyP/a+HZaPouN3xz+/Hh84xG4kgDLCoXJvVwkNYJGExS4q1zvKk+l64fV+j/1ft56fu/1cTlE1kj4pPSWLVQDFAwS4HJ7Tw5rve+zFm14AQRNCAFewazA7aLLEsGJAasWzjesWrpn89aPxXj9uex/9b2hVQoVR4K/80gFhmcUwEjRkDp8qbFt7w3AeuH5EgBpMpSGrkbEtgULGIlULAJNEmUGiKZ/jXzEP6Dv3PMbBjAalwqjwF2GpSLGQEuifKO6bfc+5CkQJBghABgLRsOAhDLSwEA5FpDyKZBUE2JY7OUzzg51H2MTEQGbGs3CdtLconryMmjHXFktx0LJ24fqyAAAMAWQBAABiSQEQgtSdngwgPhxVNI5AtBNztmHld/DpGby3bCQjosuZuVH6iNrlHGFtB5VommtSXlNud82XuQBAggEIgAAIETYGgsUDCcLEgANmwSDQCQgEELND8XNxRRasmgKBFiwXP5k/Oeu+rFfcgULnAIN1+fI/8Mcb/L8e3E5JsAZggBLUJAw1ECBM2YaCllIkKhsgC6Vz5pJBdN99gpCBSZcyQrdf76k/GIQTBccEJSIKNzac3lDm+/+L7H/GCkMLyCAklVkuGBghA4FAUJAMXSqmeIhRC6X+lv1YpI96n5LY5q0ABZYalOPHQvwke3xcg/meeI63ZZrzQ8uaHXxlzOON8+EWZBCEqhkyJQASylohigEmFJQTgioEpnGDKiVAWgz36bXVlzDDu+LpoRaQIW9Bo2p99fT/+cZ3xaNQ6U2E5YKz46k998mt4jzLjLePH04lCyBYxqxxSTEbDiZgwJhYhIxXGFkkOVQkAvrGNVhRs3107XzHDHQfoi6oqUaRQVRi7w7vaj2ONX2WFMwx33xDDJ3/iu75q9CE9dXUf/3QdJ4MgLCRCbKAqsXUthlkQ4sxN/3vE53vYt93sCFAUGZlzYURwQq4UjJGs69G/O2Y7mGNkjy+nfUYEYcB+LccfQvDI8IeKYHRiDFh751v+m1Xfbulxm3/mH1bef0ggCW0YCqWlGMNSEsoVxpLd56c3v/T6l73m1a9vf93H7v75Ax//9OD2JSASsnbimZkAAU1rgBl68n74Z5rZUsearW/eWnWPACOoOOpPvav+iGrWNQswRPu+w85vKz4Tzzy31ruuzItABJSQNLQMkFCmASKCQLpa+9zk/CjOI4/hzuTn4e1373jyl6dNvyE0pQE7XcgKUSFEYaBQgRT1ovcvvbEUoxht/TZWvQAkalSuYqVHEiomlTUErHhixTfxxM2N//g4Tl0KEABBAiGvrdymweYGYAQCxMR+czPVX6i/aroaOVGOiLi7Xv3zrduvd6kns5Rwuusd5QpUQGgkmUkBYIrgQvJScrdJG6te2fpEFkRMCZUfgV3FgkJisuwBP+CnTgQ/31ZaakIIFqCcEgUhJgrhWquOvvMbzvz8mD9E4AOyWFGhHUQd33o9/M23BGwOKuFU5piQIgYbO3aNtbjx5cfVM7Fuum7jCyEFErKNoocyf7Puitqlucqf8hMn345bC1hMsoSQYaYMjFiJ07lya3VyFGs7nXkHgZcQrWhCwyF9Hwx2HOPCPe51QBQT2xhd+OYULIpawkAj3T7H9Dv4cvP3Mv8WGYAR2XX6ISrXv4kPshjmI3+qvEbe6B0yFbYYoICazWnlSgGhFCRJlq6x6jc4d4UVImUZVAB0aeSKZnx9dGODOaYUnCItJz5+kdUYhC0MEiwkMx8oP0D+wbjx9tBKAXCp49+nHsiua4W3BAEX3+IXeEFbhYCakChkmLAVmnNXWqaUiISZQtqA36ruUoLFAkCjE3xPHlDYmO+lA4RSlGpLSsAUUalZKluUKxmDoEC8K3/v0n65XDuOSpII/72F8w8A7hhHRZYjP9K1N7Bx8J8Y2ulABkE5CAFaVjklgFfiQFSkgwIKHD/XjjUowqJRFhETCkZOZuZlMZcxSVBJK/GmruRa0KbbCBAtjlpqLQQZpG0nynW5dD4c7cgkCtezIP1OaG/BE9H5Lzn2wxWy7JGRe2QwGYpIhZ1VQAzArkSOVFmyo0tVZRTr1WscLLSWGkCNJlQUBnc8dx+7rT6HRqqzna64Wm4ZmRG7QA6TLSE9yNJCNxm7Dh+X0xnT1DGkpw0OvQM4k/iqJBnv+TV03CbudeDfK6gSkcGCbCHCUEDiwpVAwJEPCi5Liv6yt085x5YKUKPGpDteUjU9+S+XPb5qhWOuxFeVAyopS0uiMWJJtDqUICSMBAdX+iNW/mMrUXbLzklw9X6BtTCUvPeXx5kfItbtq/+aLJYiAgCQMCOCwYvB1zHCgBJZoUAKDG308/96+fE11mZQUcQdZ+iFq/BrOfZcX01aQbFIodw1iqnE0gZiYYtrSi0AY1EwAODz1pJ1eufwQCATVs6u+2U7TyFu+WIvm9Z65Pd3k//FbSoiC8+tVOLKSW1Q4ER7EiIqEtRALRiyWgiAJJ3iqz6PL3xgc6Wsc+f66Hv++hyGArZkKMhWFWVSABiUBGUAAgoEGQK0nPTQFBoZwEE7/3BPqj+3HPrS4ymo2Lh9m3af0cvycKyCRD+6lhde9SEhBTO9uMYJpA1YCCBdt+8l3/53n9Of1q8jH3rjPWfXy3SSxZQAMEGIBRIA/ZChB6IiCQQFgiwKWkmRYQg2w6e5rd/Y/rmOv+u3fvJw/oAgS0VbG2i92Awgq1xzIe8W8TN6+5I1GjGFM37Mf0v8v7mhX72MGw4mGwqKO/0RE8IKouUaOYBRhEHpld/+/6R/Ui71l12vsW9r7fl05/4/p8+86OWsNU2CQrYCIEGWIBMiAAoIDIYCy5aWFZ8in16ssQZXWGGF5FPu28/+///93I8/KFAbFsLHndC7YaVJTBx0av/OkL20M0dQq9wFn4f9P6WZQIq+ofDo9VxkKFg2TMSUZ7SslAQQPvbp543zk+mLcpqY6r02r4cdzacubfRSu52Zdb463jEVnI9uGyUyICGG0Y7VG8u31t5Y9cLe0dhEjboQrRtrcUTAAS1snxVkK0uQwMXXKy0rWLLJ8pr/ukv7pq6vcsgQFa8JAACMv/0lH7YySD51j+zybx2hwHAohmGaLMBUlRpbeN3PHnIeEQHQxBmQMwicscSKucVecYMt7mNhxlQvd3LkjKEeS4wu0GiWZmkvNjTRRF2ylBvH0rr5ioDoyiFZIhFyG/LZ0vpVOOFAu01SqXnPLBVfUnRJVDmdv8BPCwFg6vWxk0KGkh3G0h45x2sZywAskAaR+TBgKnYbWobdoHvTr69bdUQ0FAAAudKCM6IvMSvuxA3uwR5lHsoc2SXncFTWQBDN0l5saKCJZsmSpdx03LQHM26s8Qvff09ULFHA2VcvXM6+Ggw1wSzKnu8qk+HBcpHRU3DZ/2oBQLVoCRT6ZKNdD8dynFoCGyBYKkQiuVIilE69Igy37NZtd2g++/mw+R5DMwxEgA0kvMSsdC8NdA+95DlyL6VH9pAzvOQIIWASGwy0oYEadbVeXjluR76Xlz5y6lKhBJVhMe2FM9fqdOpZRzWyUrE4W1zb0NanbgVl6qoHANSrZoZ6YfN6ao/L8XMgQQwzNmTJyglSVUyCDKHBbrKPerkKq55r++vY9akNjpGKKLxEb9EVd+IWe7BHmYv3yL3kdSlrOPKSFzSh0GB2dGXfXtgvl+XF3BajRiqyCEwikyHq4OyOIMTBpw0VEKA3Co227SOMBI2pDgA25ZEMy/ZDvo4TP0CitNKCMjRSKIh5zmce4JM1lmlvuLvk7uodWNrmVgEBIsEQABADyBFVT67A92o/rv5YXIwMxAIEyikgNWCXvrwN1GLPUbbOetBg3f2mcRP0sRoAYlZJUf9gwqV9v1z6gKWUtZwQxtIGJEy5IndOQZJFmIiEeM34pqxPAQKEQIV68RoSiBFAdWbjF79+M9S0DbXiQeQmUazCiGJyjrbkNv7clwh0t9LG6p3hSlRQ4xCCT0ZWQo5osEffdeT34+qXGFwrQhKTuyTcVerudCq5bK4NQGBiymToUBupiwUKIkQgEAGMvEaiYohlQy08XMBj1aAatsz3aS8yu705aKZah2aJGcMbo4WgKPtfkbngRwEIDP1NXKKaWwtKop7E3nEijuCQYi0lSSFWkhbxwlCwFAK8QCEBJDggCQRQRUaBZeWKiTCnyKP0dF1LdpWc5a692Ixa74RW4HaGBt2dThGQmDHsRwEA0pWo4oqpWQoQKdk15bLKgTkkOPI1FUmaYCiehTAoqpwABI7UAAqUAIgqAMqGHZ6sHdYYQXeym3symRvvxdac7mcn1utE7YCWNNCkdBUB0T1/Sk/60yPzkSkf8NtyRyUAYA46ySGRaLSjnOsQUQtMEC1MRAnoagkgAQACCRlEAkCFopZKIC0LsGn3jOoSgdtKbXFaV5r14tFrPkvsW9xLgxwUMB9uwmMQogeSDPl4ST26hUXBlqGgXbkuNThVwtkCi8y0g1oYworgYhCYJCR0kAACBQRADIoLhsMAhmJhg0s6iUuw+cZ7Yq2Zaj+ltwIDhSalWIgShM6DIqDi6YC5ZPZ8s2SO1R2JEuUyqCvY9pzmvjxFSavOJ7CCsJuGlcAQVQvOkFB4SQ2khAxEAVAt5Rl2MbN7Jam0WxLXUTWxnkPbvLZdR28juJoGG0azxUIU1MOfACB9U2AhWexL5M04AUsgBAwhOzVttlOEqOodOZlTDkKeOUNn4sKVq5JhMiGAgAAQpAIXic6lb5rzjFJKTus1yWkkgIOQNJGVTAvLCbpiLOZYsIpOAUDod8hy6fxGeVk/gGRYZEkDKLEGETeZ2tRQyslucwXVVaKUw1UximFyYVCFOBAQAJXRFGvpKkek3WpidZGLUcg9ENCuFC3iWktKtnVgnDyULQV2fwkANT4MEBzOSvNyYJCoQEgEEG2Vg3PlbDFJS3Vr0QzlOhVQTzxy5ap0FCoGCYEGFAKCVBTjuVGedIybTQQj5UupR3FzT3ElWbQ0BANoc8TS8RN1VGWMrK8/AAA4B36Bjh8rZq2819LBtFIEMSGV6PT9RJo4AXTpSmViCqgkqsgVG65MNkwmVQJHAEFNabRUW9Vb8GFTVbGazloPjRaydkeHDtq0sb7ZHJHx1pKl2J/BJQAAEp9FTpxqBn17fcpWsCeQFAoQh1qTgk8qfWTs5i7N3akoSd/EYHLlypVBFVDWiMokqIBiRYlm2hJ09Rlbt1ZSaEtaQxFMmRNwX7SOdI57J05FhpTzEgAAQD+PJkaNfOhEbHzRK1G0IRuGIiROPudEa2rJpJgq1YRUVZn6gIELVwxcuCJwEBOTElOiRDg3zZGbA57nIqkJZk3FJHtghiSwyl2Vz1zQ0svraKyCNNj5/8Cf4CPoQ2/QjH1P3Ho8DLWWsAJc3TyBtwXEVeeDrF1jpiRE4ICGxmQyAYgzJIwEtaEoyYU14US4nqtQkmvN9ZQuHQxF1qSFbtH/v5PKOv7ArZUq8xq48v8AtFn06jsuBjF45r2Tsw6CZS0pdZjaFCopVIkr5bDFueldH5koTCYThQkAJDZIqEKC1OWypmq34ECSNjmRbSxIakGcgPD8BzBOwuVcqox57gfuu+jTB6H/Te/6AHN89QNLGkMrBihA0K2nGjsfASJJQMaEKbqijygoGClQwAwqR4DJEUBFVRUK7RRjJmmSJC2N22z7CaAWFSVRbtONx57y79HjX99GY2X8ttK/XgDhfcC9onUB//kFs1F36wufKFIkUUBAAKBbVEDTbMGEllLuSo06ooJCICICPgbvIUcQhcmBaemSGRPTTbKxnLZCF7+a7hxmBhnaZGHhsWdytxaevwRU7o0gBO5fmefQw/k13vs+ML7ukf6iMjKIimRQjkSWKYcywU0LtV0nc2x4CVBFRcXI1YeL91eMDICJytFkBafuIV3S0v/SS19XI+tJuylniVObZp3licdwf/+OGwv9vJZ9eRZ4R3A9c4fl774f07IZn/EKUkNAIsCk0yl3sgoopQI5MtMBagRU0REFgajA0YVrdCuAnAE4oloe/BaSGoOc850prx1ubMkNNb1hg0je8p50dPNex33wHRUt4CC4907AotkdDG8sfOyL6PFVD5mAipIhaa6zSqVE7ZRUKIJtzElaHlGpoJBBcDaak7mM0w6DAQCAkaC7tZ+2X6RJuplOCYFtSZW7h9CG1TzulLhvza6sFDyo/WsD8IDgH/imjHd/iXPs2lo66hpFLKIQh3NVgp1rVlZNGsfog3WREgACRCeKyIjk5RUIAkyGMdiMrv+311o9SDDk0hFtzdcgExa64XDHRt6ntgwV3wCXHwQodh/yypW7GdGHz32lEcCS6Kolk0/bDlcOk7sSWbsXU29yFAUdAhH01kJ/FMFRoqAwUQAbiDOchmNf5NTDfeceI7WrbW0ypx6G3e9C+f5W+nWtpg4OAw9cm/cCNwq8dg2Mfa/D0ogAAtWvqhNp7mV0F9NoCQ3LxtZNgVYUAHeDN90ayHA1uhMAABEwGjyzxOz3PQ3cvkvrjv1owKFy334swm7LHnsZ4RfVbgXX7pr3Hwwo9lAEb0V27AUooiKANKSNQD4oSiWr2WkNlZmjz3XTWKKECiC6EKR1NBBBlXG4ABAEqKvrD5YYwIkgqFuGr3k6nZPbb52lvyRRRQWGHFv3AF65kqjBm8BD9muh4bUMU79jsisFNpDYAHINSEqTmHKLwabpcHa73WDUSVhghgIFR6QvY76rioocEQABHJDcvrFEfCaFGW5oKUUap+1Im1KOaqqNgHU7XUEur9FHie88TOXVzjANNw2KPRGkBNrckWhmxy59LddykKyWbWijdMN8StThHlownVvqiaEA8gZZCEiURXC9YZkVNkXWbnv0HW63/2vQ3b42Od6ytJJkw4Tg6tLJIw0k/PQwI/6UpRA10dnIxgYrkipqLfWd1rvAkZj4zDRIEkTN1ORWbQHuoUDJDBwvGstUByljSqYCACBAbjGe3G6Ldu0Wlm3GfmVzF5g3m30SsgCmzTMcHT6Rg6KnyT/+eRgAfJ6CI4GjA1UDEURw6NppKLdRW+F6m08Wndgg4A1u2gQEUNFxtsiRqUpasETwNighEAC36YvZWbKzwsRXopb7oF2Qc9Pb//wUBCCbB8Dbl5IBvwMe2vghw6mIZhxGgxYUERs4XUpUcrTSZKVwEE5aTrrlEB1BVIqeg9ZKQZWjCNSJXp4QCLxAcOOxM5ltsbjSyqFw6B0btlNPmNbovyuSZZQ2DgjOHkMg/fxwxfncciLwUl+0hZAUDHDfjiUcnHxTXaMmRDEJbt5ct50pwD2AC9SXS5YsiiLIdJZ6RCQQyG45NlWyokXpocP2RvH0g9jbk9Ejg2D3jS7kjAtriQbw2sN102edaEaOJFifOgvKQnCNfIBaz8F1I1mb4qxi6ObjlF8miqDp6HJgCymQoixFemvcIAVkEJHdpg3EZEhgPz31Hhf2Xu1vk6U/W1IZQZ+1AZzMuhksWlPmg4cD//XsJejVyMEnUQQRRRAVmxsqDeeeuiZUhSF7y2LFfc8hZZL4Y+2oXcuTBSEue99dH0Emo7hHbxAEtrlygy2q7c7EJoE71SnXVFSsCva/JOuD5yoi/QZuPhyQcj6O4IXAyUS031AkgzCEICzrSY7E52vNbnISoBu1lB8MyL65aptegaywe+a3hRAE2c1zmwSEo9qr95/b0e7XO0G7UrR0VIiK7N4akwbedS1RmJ+AR9jJvq3omrwROPkqsgQ7sSQwAPXt1rou1NJB0NbIKIdwMPXn+stEipn2SlfxkftlnRAKYjJtY2Nx0bdFDQF7dw1KJpqUpk7I9L1PIK8fcQ6kwcuPYs6+bNzO9G9QDuyTXWRhaDgxmYS2XBKnQzEVpMm0by5HfjD4yjV/n4TS9KzNtXeFt3yfD5/dnoJQ7Hs1JLe0IU69cPgANZlFK25jsSh95tbODck/XZm1anNn1OvDRwEuRXw3osMZJwIvfH3x792QCU3poKFzRorUkmVltuKA9IWt999x64v/TH1vCR3cNFO0lSuFjc+t70PX9tnFBzafWScLQ00Mquxd/YiYIAzEQe1G9q2vxcLLF944IEg8Bs4/CkBxZ5Esf1M42XvkKO81m2xDQSg5Ka11PzPLIpnUttsPFge3bDfbUAyWTWuDciee3Ndnn1t9dw6LO/UdyqGClLgEk7hgTTUT87Snfz24I/nbUy0ENd72A48UfJgynxY54niOHNy+7+I+mLSWxWD8/9PKtelcCG1NW8nAbthRu+0MjgLroKHpDZnlYdMm7aHY7olym7XLFDVzcDDYNNzN88erL/9k6V1vevNAFxI/A589GkBxaR0V68/oBhy4V9uVe8NtGMvuC2kBkwKraErTgiiu8H30kS3QFSZ274QFSNMbTpoG0aYQE9O6d9PyNpmVJksRmPc8cuP8cUP+4FSBMOl5zgMe9YLXikyVsWNjBIA3LigCoEaK2A6Siy2OPmLZxp7UGs/U9BU6JZv9trc//c+U4suXmu2dBNb0Np1iimY3SFAbQA+OL2ll+XrZ2X8yZAVD7vnAI59zlRswHTuATGzVFdALWhFkqQ0pLkwbhGnLHpviTvcg70glt6Zbs23ybu1tum5tw73cQIDYzWoZoB/6yHJtQUkEW5tBaBwN+y5ltUcHDPrW2SrMUGBIAKqBykZrFRoCaEpLQVIhN/mlie/pVj/TWeqpbainnoMAT2bt1AZiaHkHlrXds3oiWlZIlBgMCWqUmDHNgce5aHsXQBINzwDoqKqRoiYRsMZcaYWkPq1tN9pjb5gaqqYVG2FrtP1qNh6bSaKRu+w7HF2rwHBRiRLBSmksQQ8qdAIe74DTGCgQcDuACPbeGB2du9oZn+W1Nhc7+jS3oYiGf+xN271HT7XjS23q+mPnsLBdH3E7JXTwQbtXHlpu7Z3QAcxHiYCABjWBx9x1FWtxRSQwXT/QRA4mRs1fX9yF/UUlWSN77Ik33ri1zf234zY+P4fVw622t6FyuDenWqwQts1NrmaPGpsUR01wOGohE9Jx8qZ8Lva4APwjT0olqB3FbXppKgAUrp7vf9P99UWSWBzcrjYy7K1J0uu9LzEGqVwP9gW3DtpesbB7k6MeNt6j+5xRnHeZykWABS3YxJBiwOP/MM6aNw3ZSsaZA6+duU171tXS7dvL7tzelXshkpP3wc3mtq3SOBHSbfqG2f/WJNfsDa49u5sNzz0873T9cT2ux+fdOY5AUECA8evH/eMm8CSCqINPzKJENS0YKza++BNf8kKqAOT8qROHjp44vnJroWs0lgkB6qgUI0vDMA5jVENNQab5lelgamn6wLy0QYGKGstGDa2sGm3a2HLnc++ssCJQMBt88Bp/cF0K9awWGlwOfQUBT2jiu9IvggytNLR68kVPHLy1ciABCArcXLgTNUGPJH0dg9BH/dBf0QEAVJAaSAItwszC7EIT9JZKk5Lh0ZCMbdQBK1Ew46LxyoV/eBtTUZGAgEp/hPsHEAFPLPil4u6M88EKSJBBsn6PL/jE+jsbRgQAAACQCaES0EHVi+4GcyDqq0YmfRMiNQJAIAEkAgIBcuHK4QvvunL6hKGxKjLUPNUxxz7qf98AT3S/v+6e8d2RaEEyTRvLUEMLgi4s25roGB2MFH0dJcnGzWSK7gVzXb2lnDFvKSgQ1FgD1dJRt2u4GB8Mb3UhVU1we60rC/cOXT1WDxIBSIaagj9kswv/3Aci4Ekf9bfkdd/pEppo08q2nilRK5JkZKghi6ACKAKoJ1XUWFmqKCAZhSyNlahIRVkEWQpkCAqopWv0JEvl/N+431h0Tg77++fgEfB0frEfVCj+v1/t2b54VVtkBVCxj1mtWKF4yfhP4apxvcqcy+6/O7n+x/8u9Ly7u+jz465fR/2+n5xHfquqlbtKNjVqW02mZLBYUZUGpYtNZujgUdGFjuvPbM9jv8C/3gWngKf9S/wj+AACEAKPdhIZACgCPgEEAA==";var Jj=n=>{var i=n,{border:e,size:t="sm"}=i,r=de(i,["border","size"]);let o=t==="md"?36:24;return g.createElement(g.Fragment,null,e&&g.createElement("svg",{className:Vn(e,"absolute left-1/2 top-1/2 w-[34px] -mt-[2px] transform -translate-x-1/2 -translate-y-1/2"),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 26 26"},g.createElement("path",{d:"M8.382 2.244a6.938 6.938 0 0 1 9.236 0l1.626 1.451c.346.308.722.581 1.122.815l1.882 1.098a6.937 6.937 0 0 1 2.854 8.784l-.877 1.995c-.187.424-.33.866-.428 1.319l-.463 2.129a6.938 6.938 0 0 1-7.473 5.429l-2.168-.218a6.934 6.934 0 0 0-1.386 0l-2.168.218a6.938 6.938 0 0 1-7.473-5.429l-.463-2.13a6.937 6.937 0 0 0-.428-1.318l-.877-1.995a6.938 6.938 0 0 1 2.854-8.784L5.634 4.51c.4-.234.776-.507 1.122-.815l1.626-1.45Z"})),g.createElement("img",se(H({src:KT},r),{alt:"Verified",width:o,height:o})))},qT=Jj;c();d();f();var Zj=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.665 7.999a6.667 6.667 0 1 1-13.333 0 6.667 6.667 0 0 1 13.333 0Zm-6-3.334a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Zm-1.333 1.5a.5.5 0 0 0 0 1h.167v4.167a.5.5 0 1 0 1 0V6.665a.5.5 0 0 0-.5-.5h-.667Z",clipRule:"evenodd"})),WT=Zj;var Qj=()=>g.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6"},g.createElement(qT,{className:"h-12 w-12"}),g.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"IDKit and World ID are fully privacy preserving."),g.createElement("ul",{className:"mb-6 list-disc space-y-3 px-4"},g.createElement("li",{className:"text-left dark:text-white"},"Phone numbers are never kept by anyone. IDKit and its phone carrier only uses your number to deliver a one-time code.",g.createElement("ul",{className:"text-9eafc0 dark:text-9eafc0 mt-3 list-disc pl-4"},g.createElement("li",null,"Apps only receive a hash-like nullifier which can't be reversed. Worldcoin or IDKit don't store nullifier hashes."))),g.createElement("li",{className:"text-left dark:text-white"},"Orb biometrics analyzed by the Orb are not stored. Orb credential is used with Zero-Knowledge Proofs which makes it cryptographically impossible to track persons across applications."),g.createElement("li",{className:"text-left dark:text-white"},"Our code is fully open source or source available on"," ",g.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0 underline",rel:"noreferrer"},"GitHub"),".")),g.createElement("div",{className:"-ml-4 flex items-center space-x-3"},g.createElement(WT,{className:"h-4 w-4 text-white"}),g.createElement("p",{className:"whitespace-nowrap text-sm font-medium text-white"},"Apps will never see your phone number or biometrics."))),GT=Qj;c();d();f();c();d();f();var ez=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),g.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),YT=ez;var tz=e=>e.copy,rz=()=>{let e=Yr(tz);return g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},g.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 p-5"},g.createElement(YT,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),g.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},Ks(e,"success"))))},XT=rz;c();d();f();c();d();f();var uD=Y(ue(),1),lD=Y(ue(),1),cD=Y(tP(),1);c();d();f();var oD=Y(nD(),1),_m=Y(ue(),1);c();d();f();var tH=e=>g.createElement("svg",se(H({},e),{viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{d:"M26.979 17.9748C27.0917 18.106 27.2493 18.1906 27.4209 18.212C27.5926 18.2335 27.7661 18.1903 27.9076 18.0909C29.2231 17.1623 31.4672 15.6147 33.9047 14.0864C35.7135 16.1216 36.9017 18.6323 37.3288 21.3215C39.244 18.5745 44.6607 11.4941 39.9985 7.95389C36.0133 4.99405 27.6561 13.8349 26.8243 17.3557C26.7972 17.4637 26.7972 17.5767 26.8241 17.6846C26.8511 17.7926 26.9043 17.8923 26.979 17.9748Z"}),g.createElement("path",{d:"M30.229 22.6759C30.1037 22.74 30 22.8396 29.931 22.9623C29.8619 23.085 29.8306 23.2253 29.841 23.3657C29.8513 23.5061 29.9028 23.6404 29.989 23.7516C30.0752 23.8629 30.1924 23.9463 30.3257 23.9914C31.8734 24.4556 34.485 25.2488 37.1933 26.1967C36.7314 28.8866 35.5021 31.3857 33.6532 33.3932C36.9999 33.1611 45.9181 32.9869 45.802 27.1446C45.6279 22.1922 33.5177 21.1476 30.229 22.6759Z"}),g.createElement("path",{d:"M28.1784 28.6729C28.0788 28.6249 27.9697 28.6 27.8592 28.6C27.7487 28.6 27.6395 28.6249 27.54 28.6729C27.386 28.7555 27.2675 28.8916 27.2069 29.0555C27.1464 29.2194 27.1478 29.3998 27.2111 29.5627C27.8302 31.0523 28.8361 33.6059 29.7647 36.3143C25.7215 38.5003 21.9492 38.0167 21.9492 38.0167C24.1932 40.4929 29.8808 47.3605 34.3882 43.6462C38.1412 40.4155 31.4284 30.2785 28.1784 28.6729Z"}),g.createElement("path",{d:"M22.2201 30.7816C22.1968 30.674 22.1476 30.5737 22.0768 30.4895C22.006 30.4052 21.9158 30.3395 21.8138 30.2979C21.6537 30.2287 21.4734 30.2221 21.3086 30.2794C21.1438 30.3367 21.0065 30.4538 20.924 30.6075C20.1308 32.0003 18.7766 34.3605 17.229 36.798C14.7141 35.7418 12.5577 33.9818 11.0191 31.7295C10.4775 35.0375 8.65899 43.7623 14.3659 44.9617C19.2409 45.9096 22.9746 34.3411 22.2201 30.7816Z"}),g.createElement("path",{d:"M16.8614 27.454C16.9266 27.3665 16.971 27.2652 16.9912 27.1579C17.0113 27.0506 17.0066 26.9402 16.9774 26.835C16.9359 26.6637 16.8309 26.5146 16.6837 26.4176C16.5365 26.3207 16.358 26.2832 16.1843 26.3126C14.598 26.5641 11.909 26.9704 9.04584 27.2799C8.31322 24.6557 8.34678 21.8767 9.14257 19.2709C6.22142 20.8959 -1.74887 24.9004 0.882103 30.1237C3.16486 34.5151 14.5593 30.2591 16.8614 27.454Z"}),g.createElement("path",{d:"M16.1262 21.1668C16.2366 21.1694 16.3458 21.1442 16.4438 21.0935C16.5419 21.0427 16.6256 20.9682 16.6872 20.8766C16.7957 20.7414 16.8481 20.5697 16.8337 20.3969C16.8193 20.2241 16.7392 20.0635 16.6099 19.948C15.4104 18.8647 13.4179 17.0075 11.406 14.9569C12.9978 12.7444 15.1943 11.0382 17.7319 10.0432C14.6366 8.78577 6.53092 5.03277 4.07406 10.3334C2.06214 14.8602 12.5086 21.1088 16.1262 21.1668Z"}),g.createElement("path",{d:"M21.156 16.9495C21.3329 16.9453 21.5019 16.8757 21.6305 16.7543C21.7591 16.6328 21.8382 16.468 21.8525 16.2917C21.9492 14.7054 22.162 11.9777 22.5102 9.13394C25.2291 8.99787 27.9294 9.64945 30.287 11.0104C29.3585 7.79911 27.2498 -0.867611 21.5816 0.525254C16.784 1.76336 18.3703 13.8155 20.595 16.698C20.6598 16.7837 20.7452 16.8517 20.8433 16.8957C20.9413 16.9397 21.0489 16.9582 21.156 16.9495Z"})),iD=tH;var rH=e=>{let t=oD.default.create(e,{errorCorrectionLevel:"M"}).modules.data,r=Math.sqrt(t.length);return t.reduce((n,i,o)=>(o%r===0?n.push([i]):n[n.length-1].push(i),n),[])},nH=({data:e,logoSize:t=72,size:r=300})=>{let n=(0,_m.useMemo)(()=>{let o=[],s=rH(e),a=r/s.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:y,y:v})=>{let w=(s.length-7)*a*y,_=(s.length-7)*a*v;for(let D=0;D<3;D++)o.push(g.createElement("rect",{fill:"currentColor",x:w+a*D,y:_+a*D,key:`${D}-${y}-${v}`,width:a*(7-D*2),height:a*(7-D*2),rx:(D-2)*-5+(D===0?2:0),ry:(D-2)*-5+(D===0?2:0),className:D%2!==0?"text-white dark:text-black":"text-black dark:text-white"}))});let l=Math.floor((t+25)/a),p=s.length/2-l/2,h=s.length/2+l/2-1;return s.forEach((y,v)=>{y.forEach((w,_)=>{!s[v][_]||v<7&&_<7||v>s.length-8&&_<7||v<7&&_>s.length-8||v>p&&v<h&&_>p&&_<h||o.push(g.createElement("circle",{fill:"currentColor",r:a/3,key:`circle-${v}-${_}`,cx:v*a+a/2,cy:_*a+a/2,className:"text-black dark:text-white"}))})}),o},[t,r,e]),i=r/2-t/2;return g.createElement("div",{className:"dark:bg-0d151d w-max rounded-lg bg-white",style:{height:r,width:r}},g.createElement("div",{className:"relative flex h-0 w-full justify-center",style:{top:i}},g.createElement(iD,{height:t,width:t})),g.createElement("svg",{height:r,width:r},n))},sD=(0,_m.memo)(nH);c();d();f();var iH=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),g.createElement("path",{fill:"currentColor",d:"M13.973 9.133c.446-1.896 4.862-6.64 6.969-5.057 2.453 1.9-.408 5.716-1.416 7.192 0 0-.201-2.042-1.81-3.894a81.232 81.232 0 0 0-3.162 2.154.374.374 0 0 1-.559-.173.393.393 0 0 1-.022-.222Zm1.8 2.863a.358.358 0 0 0-.202.273.382.382 0 0 0 .048.266c.048.08.123.138.211.164a80.06 80.06 0 0 1 3.624 1.183c-.422 2.433-1.862 3.864-1.862 3.864 1.761-.117 6.47-.21 6.407-3.351-.09-2.663-6.489-3.225-8.226-2.4Zm-1.08 3.214a.364.364 0 0 0-.417.064.377.377 0 0 0-.087.42c.317.801.85 2.165 1.348 3.625-2.135 1.178-4.132.919-4.132.919 1.186 1.329 4.19 5.022 6.561 3.02 1.992-1.73-1.555-7.178-3.273-8.047Zm-3.144 1.144a.369.369 0 0 0-.216-.264.359.359 0 0 0-.47.161 80.237 80.237 0 0 1-1.949 3.327c-2.232-.967-3.278-2.721-3.278-2.721-.283 1.774-1.253 6.469 1.766 7.114 2.568.508 4.55-5.712 4.147-7.617Zm-2.832-1.798a.39.39 0 0 0-.088-.554.364.364 0 0 0-.262-.057 75.98 75.98 0 0 1-3.773.523c-.648-2.384.048-4.304.048-4.304-1.54.874-5.75 3.029-4.367 5.828 1.209 2.365 7.223.069 8.442-1.436Zm-.389-3.376a.355.355 0 0 0 .303-.152.386.386 0 0 0-.048-.508 72.636 72.636 0 0 1-2.75-2.677c1.43-1.998 3.34-2.638 3.34-2.638-1.632-.684-5.908-2.702-7.2.151-1.065 2.433 4.44 5.794 6.355 5.824Zm2.664-2.262a.371.371 0 0 0 .246-.106.384.384 0 0 0 .114-.246c.053-.865.168-2.326.346-3.86 2.428-.107 4.108 1.016 4.108 1.016-.49-1.724-1.603-6.385-4.598-5.643-2.534.67-1.69 7.148-.523 8.697a.374.374 0 0 0 .307.142Z"})),aD=iH;var oH=({qrData:e,showQR:t,setShowQR:r})=>{let n=Qa(),[i,o]=(0,uD.useState)(!1),s=(0,lD.useCallback)(()=>{var a;(0,cD.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return g.createElement(g.Fragment,null,g.createElement(Bu,null,(n=="desktop"||t)&&g.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},g.createElement("div",{className:"text-29343f dark:text-white"},e?g.createElement(sD,{data:e.default}):g.createElement("div",{className:"flex h-[300px] w-[300px] items-center justify-center"},g.createElement(Do,{className:"h-[72px] w-[72px]"}))))),g.createElement("div",{className:"space-y-4"},g.createElement(zt.a,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-button",href:e==null?void 0:e.mobile,className:Vn("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d md:hidden")},g.createElement(aD,{className:"h-5 w-5"}),g.createElement(zt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),g.createElement("div",{className:"space-x-2 md:hidden"},g.createElement(zt.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&g.createElement(g.Fragment,null,g.createElement("span",{className:"text-9eafc0"},"\xB7"),g.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},fD=oH;var yd=Y(ue(),1);c();d();f();var ax=(a=>(a.ConnectionFailed="connection_failed",a.VerificationRejected="verification_rejected",a.AlreadySigned="already_signed",a.InvalidActionID="invalid_action_id",a.InvalidSignal="invalid_signal",a.UnexpectedResponse="unexpected_response",a.GenericError="generic_error",a))(ax||{});c();d();f();c();d();f();var sH=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 0a3.555 3.555 0 0 0-3.563 3.547v.052A3.001 3.001 0 0 0 0 6.547V11a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6.547a3.001 3.001 0 0 0-2.438-2.948v-.052A3.555 3.555 0 0 0 5.999 0Zm2.437 3.547A2.432 2.432 0 0 0 5.999 1.12a2.432 2.432 0 0 0-2.437 2.427h4.875ZM7.5 8.773c0 .825-.671 1.494-1.5 1.494-.828 0-1.5-.669-1.5-1.494 0-.824.672-1.493 1.5-1.493.829 0 1.5.669 1.5 1.493Z",clipRule:"evenodd"})),dD=sH;c();d();f();var aH=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),g.createElement("path",{fill:"currentColor",d:"M9.98 3.6c-.08-.345-.392-.553-.732-.477-.093.021-2.59.754-4.236.768C3.36 3.877.87 3.144.776 3.123a.629.629 0 0 0-.76.477.64.64 0 0 0 .467.767c.433.111 1.139.318 2.83.72 0 0-.02 2.28-.093 3.663-.1 1.99-.672 4.424-.672 4.424-.1.463.126.74.406.801.573.125.76-.276.826-.56l1.092-4.16A.128.128 0 0 1 5 9.164c.053 0 .106.027.126.09l1.093 4.16c.066.284.253.685.825.56.28-.062.507-.338.407-.801 0 0-.566-2.433-.673-4.424-.073-1.383-.093-3.664-.093-3.664 1.698-.4 2.398-.608 2.83-.719a.637.637 0 0 0 .467-.767Z"}),g.createElement("path",{fill:"currentColor",d:"M5.007 3.11a1.55 1.55 0 0 0 1.539-1.555C6.546.698 5.86 0 5.007 0A1.55 1.55 0 0 0 3.47 1.555c0 .857.686 1.555 1.538 1.555Z"})),hD=aH;var uH=({className:e})=>g.createElement("div",{className:Vn(e,"space-y-4 text-left")},g.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),g.createElement("div",{className:"space-y-3"},g.createElement(pD,{title:"Proving unique-humanness",icon:hD},g.createElement("p",null,"Human is doing an action only once."),g.createElement("p",null,"Stop bots, stop abouse.")),g.createElement(pD,{title:"Completely private",icon:dD},g.createElement("p",null,"Using Zero-knowledge proofs so no traceable information is ever public.")))),pD=({icon:e,title:t,children:r})=>g.createElement("div",{className:"flex space-x-6"},g.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},g.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),g.createElement("div",null,g.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),g.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),mD=uH;c();d();f();var $k=Y(ue(),1);c();d();f();function ux(e,t){let r=new window.URL("https://worldcoin.org/verify");return r.searchParams.append("w",e),t&&r.searchParams.append("r",t),r.toString()}c();d();f();var gD="c3e6053f10efbb423808783ee874cf6a";c();d();f();var K7=Y(Tm());c();d();f();var Ui=Y(ko()),DE=Y(Tm()),XM=Y(oI()),Ul=Y(uO()),Me=Y(Rx());c();d();f();Wm();var kO=Y(ko()),Zm=class extends jn{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var Qm=class extends jn{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},e0=class{constructor(t,r){this.logger=t,this.core=r}},t0=class extends jn{constructor(t,r){super(),this.relayer=t,this.logger=r}},r0=class extends jn{constructor(t){super()}},n0=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var i0=class extends jn{constructor(t,r){super(),this.relayer=t,this.logger=r}};var o0=class extends jn{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function Lf(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}function pl(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var zf=Y(dA()),KA=Y(Js()),qA=Y(Oi());c();d();f();var hA="EdDSA",pA="JWT",Xx=".",Jx="base64url",mA="utf8",gA="utf8",yA=":",vA="did",wA="key",Zx="base58btc",xA="z",bA="K36";c();d();f();c();d();f();c();d();f();c();d();f();function wl(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function f0(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?wl(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function EA(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=f0(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return wl(r)}c();d();f();c();d();f();c();d();f();var nb={};fr(nb,{identity:()=>qK});c();d();f();c();d();f();c();d();f();function BK(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var _=0,D=0,C=0,I=w.length;C!==I&&w[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=w[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var _=0;if(w[_]!==" "){for(var D=0,C=0;w[_]===u;)D++,_++;for(var I=(w.length-_)*l+1>>>0,P=new Uint8Array(I);w[_];){var R=r[w.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(w[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function v(w){var _=y(w);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var jK=BK,zK=jK,_A=zK;c();d();f();var Cge=new Uint8Array(0);var SA=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},Ri=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};var CA=e=>new TextEncoder().encode(e),TA=e=>new TextDecoder().decode(e);var Qx=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},eb=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return DA(this,t)}},tb=class{constructor(t){this.decoders=t}or(t){return DA(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},DA=(e,t)=>new tb(H(H({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),rb=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Qx(t,r,n),this.decoder=new eb(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},xl=({name:e,prefix:t,encode:r,decode:n})=>new rb(e,t,r,n),Fo=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=_A(r,t);return xl({prefix:e,name:t,encode:n,decode:o=>Ri(i(o))})},HK=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},KK=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},Rt=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>xl({prefix:t,name:e,encode(i){return KK(i,n,r)},decode(i){return HK(i,n,r,e)}});var qK=xl({prefix:"\0",name:"identity",encode:e=>TA(e),decode:e=>CA(e)});var ib={};fr(ib,{base2:()=>WK});c();d();f();var WK=Rt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ob={};fr(ob,{base8:()=>GK});c();d();f();var GK=Rt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var sb={};fr(sb,{base10:()=>YK});c();d();f();var YK=Fo({prefix:"9",name:"base10",alphabet:"0123456789"});var ab={};fr(ab,{base16:()=>XK,base16upper:()=>JK});c();d();f();var XK=Rt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),JK=Rt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var ub={};fr(ub,{base32:()=>bl,base32hex:()=>tq,base32hexpad:()=>nq,base32hexpadupper:()=>iq,base32hexupper:()=>rq,base32pad:()=>QK,base32padupper:()=>eq,base32upper:()=>ZK,base32z:()=>oq});c();d();f();var bl=Rt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ZK=Rt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),QK=Rt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),eq=Rt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),tq=Rt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),rq=Rt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),nq=Rt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),iq=Rt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),oq=Rt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var lb={};fr(lb,{base36:()=>sq,base36upper:()=>aq});c();d();f();var sq=Fo({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),aq=Fo({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var cb={};fr(cb,{base58btc:()=>ii,base58flickr:()=>uq});c();d();f();var ii=Fo({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),uq=Fo({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var fb={};fr(fb,{base64:()=>lq,base64pad:()=>cq,base64url:()=>fq,base64urlpad:()=>dq});c();d();f();var lq=Rt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),cq=Rt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),fq=Rt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),dq=Rt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var db={};fr(db,{base256emoji:()=>yq});c();d();f();var IA=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),hq=IA.reduce((e,t,r)=>(e[r]=t,e),[]),pq=IA.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function mq(e){return e.reduce((t,r)=>(t+=hq[r],t),"")}function gq(e){let t=[];for(let r of e){let n=pq[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var yq=xl({prefix:"\u{1F680}",name:"base256emoji",encode:mq,decode:gq});var gb={};fr(gb,{sha256:()=>Lq,sha512:()=>Fq});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var vq=RA,OA=128,wq=127,xq=~wq,bq=Math.pow(2,31);function RA(e,t,r){t=t||[],r=r||0;for(var n=r;e>=bq;)t[r++]=e&255|OA,e/=128;for(;e&xq;)t[r++]=e&255|OA,e>>>=7;return t[r]=e|0,RA.bytes=r-n+1,t}var Eq=hb,_q=128,AA=127;function hb(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw hb.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&AA)<<i:(s&AA)*Math.pow(2,i),i+=7}while(s>=_q);return hb.bytes=o-n,r}var Sq=Math.pow(2,7),Cq=Math.pow(2,14),Tq=Math.pow(2,21),Pq=Math.pow(2,28),Dq=Math.pow(2,35),Iq=Math.pow(2,42),Oq=Math.pow(2,49),Aq=Math.pow(2,56),Rq=Math.pow(2,63),Nq=function(e){return e<Sq?1:e<Cq?2:e<Tq?3:e<Pq?4:e<Dq?5:e<Iq?6:e<Oq?7:e<Aq?8:e<Rq?9:10},Mq={encode:vq,decode:Eq,encodingLength:Nq},kq=Mq,Uf=kq;var Vf=(e,t=0)=>[Uf.decode(e,t),Uf.decode.bytes],El=(e,t,r=0)=>(Uf.encode(e,t,r),t),_l=e=>Uf.encodingLength(e);var ta=(e,t)=>{let r=t.byteLength,n=_l(e),i=n+_l(r),o=new Uint8Array(i+r);return El(e,o,0),El(r,o,n),o.set(t,i),new Sl(e,r,t,o)},NA=e=>{let t=Ri(e),[r,n]=Vf(t),[i,o]=Vf(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new Sl(r,i,s,t)},MA=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&SA(e.bytes,t.bytes),Sl=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var mb=({name:e,code:t,encode:r})=>new pb(e,t,r),pb=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?ta(this.code,r):r.then(n=>ta(this.code,n))}else throw Error("Unknown type, must be binary type")}};var LA=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Lq=mb({name:"sha2-256",code:18,encode:LA("SHA-256")}),Fq=mb({name:"sha2-512",code:19,encode:LA("SHA-512")});var yb={};fr(yb,{identity:()=>Vq});c();d();f();var FA=0,$q="identity",$A=Ri,Uq=e=>ta(FA,$A(e)),Vq={code:FA,name:$q,encode:$A,digest:Uq};c();d();f();c();d();f();var qge=new TextEncoder,Wge=new TextDecoder;c();d();f();c();d();f();var Gt=class{constructor(t,r,n,i){this.code=r,this.version=t,this.multihash=n,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:p0,byteLength:p0,code:h0,version:h0,multihash:h0,bytes:h0,_baseCache:p0,asCID:p0})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==jf)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==qq)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Gt.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=ta(t,r);return Gt.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&MA(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return Hq(r,i,t||ii.encoder);default:return Kq(r,i,t||bl.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return Gq(/^0\.0/,Yq),!!(t&&(t[VA]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof Gt)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new Gt(r,n,i,o||UA(r,n,i.bytes))}else if(t!=null&&t[VA]===!0){let{version:r,multihash:n,code:i}=t,o=NA(n);return Gt.create(r,i,o)}else return null}static create(t,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==jf)throw new Error(`Version 0 CID must use dag-pb (code: ${jf}) block encoding`);return new Gt(t,r,n,n.bytes)}case 1:{let i=UA(t,r,n.bytes);return new Gt(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return Gt.create(0,jf,t)}static createV1(t,r){return Gt.create(1,t,r)}static decode(t){let[r,n]=Gt.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=Gt.inspectBytes(t),n=r.size-r.multihashSize,i=Ri(t.subarray(n,n+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),s=new Sl(r.multihashCode,r.digestSize,o,i);return[r.version===0?Gt.createV0(s):Gt.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,y]=Vf(t.subarray(r));return r+=y,h},i=n(),o=jf;if(i===18?(i=0,r=0):i===1&&(o=n()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let s=r,a=n(),u=n(),l=r+u,p=l-s;return{version:i,codec:o,multihashCode:a,digestSize:u,multihashSize:p,size:l}}static parse(t,r){let[n,i]=zq(t,r),o=Gt.decode(i);return o._baseCache.set(n,t),o}},zq=(e,t)=>{switch(e[0]){case"Q":{let r=t||ii;return[ii.prefix,r.decode(`${ii.prefix}${e}`)]}case ii.prefix:{let r=t||ii;return[ii.prefix,r.decode(e)]}case bl.prefix:{let r=t||bl;return[bl.prefix,r.decode(e)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}},Hq=(e,t,r)=>{let{prefix:n}=r;if(n!==ii.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(i==null){let o=r.encode(e).slice(1);return t.set(n,o),o}else return i},Kq=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(i==null){let o=r.encode(e);return t.set(n,o),o}else return i},jf=112,qq=18,UA=(e,t,r)=>{let n=_l(e),i=n+_l(t),o=new Uint8Array(i+r.byteLength);return El(e,o,0),El(t,o,n),o.set(r,i),o},VA=Symbol.for("@ipld/js-cid/CID"),h0={writable:!1,configurable:!1,enumerable:!0},p0={writable:!1,enumerable:!1,configurable:!1},Wq="0.0.0-dev",Gq=(e,t)=>{if(e.test(Wq))console.warn(t);else throw new Error(t)},Yq=`CID.isCID(v) is deprecated and will be removed in the next major release.
25
+ `),()=>{document.head.removeChild(l)}},[t]),Bu.createElement(Jw,{isPresent:t,childRef:n,sizeRef:i},Bu.cloneElement(e,{ref:n}))}var dm=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=xo(bz),u=(0,wf.useId)(),l=(0,wf.useMemo)(()=>({id:u,initial:t,isPresent:r,custom:i,onExitComplete:p=>{a.set(p,!0);for(let h of a.values())if(!h)return;n&&n()},register:p=>(a.set(p,!1),()=>a.delete(p))}),o?void 0:[r]);return(0,wf.useMemo)(()=>{a.forEach((p,h)=>a.set(h,!1))},[r]),vf.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=vf.createElement(w8,{isPresent:r},e)),vf.createElement(qn.Provider,{value:l},e)};function bz(){return new Map}var ju=e=>e.key||"";function Ez(e,t){e.forEach(r=>{let n=ju(r);t.set(n,r)})}function _z(e){let t=[];return gn.Children.forEach(e,r=>{(0,gn.isValidElement)(r)&&t.push(r)}),t}var zu=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{i&&(s="wait",kp(!1,"Replace exitBeforeEnter with mode='wait'"));let[a]=v8(),u=(0,gn.useContext)(ou).forceRender;u&&(a=u);let l=fm(),p=_z(e),h=p,g=new Set,w=(0,gn.useRef)(h),v=(0,gn.useRef)(new Map).current,_=(0,gn.useRef)(!0);if(yo(()=>{_.current=!1,Ez(p,v),w.current=h}),yu(()=>{_.current=!0,v.clear(),g.clear()}),_.current)return Ci.createElement(Ci.Fragment,null,h.map(P=>Ci.createElement(dm,{key:ju(P),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:o,mode:s},P)));h=[...h];let D=w.current.map(ju),C=p.map(ju),I=D.length;for(let P=0;P<I;P++){let R=D[P];C.indexOf(R)===-1&&g.add(R)}return s==="wait"&&g.size&&(h=[]),g.forEach(P=>{if(C.indexOf(P)!==-1)return;let R=v.get(P);if(!R)return;let U=D.indexOf(P),j=()=>{v.delete(P),g.delete(P);let F=w.current.findIndex($=>$.key===P);if(w.current.splice(F,1),!g.size){if(w.current=p,l.current===!1)return;a(),n&&n()}};h.splice(U,0,Ci.createElement(dm,{key:ju(R),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},R))}),h=h.map(P=>{let R=P.key;return g.has(R)?P:Ci.createElement(dm,{key:ju(P),isPresent:!0,presenceAffectsLayout:o,mode:s},P)}),vu!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Ci.createElement(Ci.Fragment,null,g.size?h:h.map(P=>(0,gn.cloneElement)(P)))};c();d();f();var q8=Y(K8(),1),{__extends:Dpe,__assign:yn,__rest:gm,__decorate:Ipe,__param:Ape,__esDecorate:Ope,__runInitializers:Rpe,__propKey:Npe,__setFunctionName:Mpe,__metadata:kpe,__awaiter:Lpe,__generator:Fpe,__exportStar:$pe,__createBinding:Upe,__values:Vpe,__read:Bpe,__spread:jpe,__spreadArrays:zpe,__spreadArray:W8,__await:Hpe,__asyncGenerator:Kpe,__asyncDelegator:qpe,__asyncValues:Wpe,__makeTemplateObject:Gpe,__importStar:Ype,__importDefault:Xpe,__classPrivateFieldGet:Jpe,__classPrivateFieldSet:Qpe,__classPrivateFieldIn:Zpe}=q8.default;c();d();f();var Sz=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),y.createElement("path",{fill:"currentColor",d:"M13.973 9.133c.446-1.896 4.862-6.64 6.969-5.057 2.453 1.9-.408 5.716-1.416 7.192 0 0-.201-2.042-1.81-3.894a81.232 81.232 0 0 0-3.162 2.154.374.374 0 0 1-.559-.173.393.393 0 0 1-.022-.222Zm1.8 2.863a.358.358 0 0 0-.202.273.382.382 0 0 0 .048.266c.048.08.123.138.211.164a80.06 80.06 0 0 1 3.624 1.183c-.422 2.433-1.862 3.864-1.862 3.864 1.761-.117 6.47-.21 6.407-3.351-.09-2.663-6.489-3.225-8.226-2.4Zm-1.08 3.214a.364.364 0 0 0-.417.064.377.377 0 0 0-.087.42c.317.801.85 2.165 1.348 3.625-2.135 1.178-4.132.919-4.132.919 1.186 1.329 4.19 5.022 6.561 3.02 1.992-1.73-1.555-7.178-3.273-8.047Zm-3.144 1.144a.369.369 0 0 0-.216-.264.359.359 0 0 0-.47.161 80.237 80.237 0 0 1-1.949 3.327c-2.232-.967-3.278-2.721-3.278-2.721-.283 1.774-1.253 6.469 1.766 7.114 2.568.508 4.55-5.712 4.147-7.617Zm-2.832-1.798a.39.39 0 0 0-.088-.554.364.364 0 0 0-.262-.057 75.98 75.98 0 0 1-3.773.523c-.648-2.384.048-4.304.048-4.304-1.54.874-5.75 3.029-4.367 5.828 1.209 2.365 7.223.069 8.442-1.436Zm-.389-3.376a.355.355 0 0 0 .303-.152.386.386 0 0 0-.048-.508 72.636 72.636 0 0 1-2.75-2.677c1.43-1.998 3.34-2.638 3.34-2.638-1.632-.684-5.908-2.702-7.2.151-1.065 2.433 4.44 5.794 6.355 5.824Zm2.664-2.262a.371.371 0 0 0 .246-.106.384.384 0 0 0 .114-.246c.053-.865.168-2.326.346-3.86 2.428-.107 4.108 1.016 4.108 1.016-.49-1.724-1.603-6.385-4.598-5.643-2.534.67-1.69 7.148-.523 8.697a.374.374 0 0 0 .307.142Z"})),ym=Sz;var Cz=({qrData:e,showQR:t,setShowQR:r})=>{let n=Wa(),[i,o]=(0,G8.useState)(!1),s=(0,Y8.useCallback)(()=>{var a;(0,X8.default)((a=e==null?void 0:e.default)!=null?a:""),o(!0),setTimeout(()=>o(!1),2e3)},[e]);return y.createElement(y.Fragment,null,y.createElement(zu,null,(n=="desktop"||t)&&y.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},y.createElement("div",{className:"text-29343f dark:text-white"},e?y.createElement(WC,{data:e.default,size:244}):y.createElement("div",{className:"flex h-[300px] w-[300px] items-center justify-center"},y.createElement(lo,{className:"h-[72px] w-[72px]"}))))),y.createElement("div",{className:"space-y-4"},y.createElement(Jn.a,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-button",href:e==null?void 0:e.mobile,className:yi("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d md:hidden")},y.createElement(ym,{className:"h-5 w-5"}),y.createElement(Jn.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),y.createElement("div",{className:"space-x-2 md:hidden"},y.createElement(Jn.button,{className:"text-9eafc0 text-sm",onClick:()=>r(a=>!a)},t?"Hide QR Code":"Show QR Code instead"),t&&y.createElement(y.Fragment,null,y.createElement("span",{className:"text-9eafc0"},"\xB7"),y.createElement("button",{className:"text-sm dark:text-white",onClick:s},i?"Copied!":"Copy QR Code")))))},J8=Cz;var ld=Y(ae(),1);c();d();f();c();d();f();var Tz=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 0a3.555 3.555 0 0 0-3.563 3.547v.052A3.001 3.001 0 0 0 0 6.547V11a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6.547a3.001 3.001 0 0 0-2.438-2.948v-.052A3.555 3.555 0 0 0 5.999 0Zm2.437 3.547A2.432 2.432 0 0 0 5.999 1.12a2.432 2.432 0 0 0-2.437 2.427h4.875ZM7.5 8.773c0 .825-.671 1.494-1.5 1.494-.828 0-1.5-.669-1.5-1.494 0-.824.672-1.493 1.5-1.493.829 0 1.5.669 1.5 1.493Z",clipRule:"evenodd"})),Q8=Tz;c();d();f();var Pz=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),y.createElement("path",{fill:"currentColor",d:"M9.98 3.6c-.08-.345-.392-.553-.732-.477-.093.021-2.59.754-4.236.768C3.36 3.877.87 3.144.776 3.123a.629.629 0 0 0-.76.477.64.64 0 0 0 .467.767c.433.111 1.139.318 2.83.72 0 0-.02 2.28-.093 3.663-.1 1.99-.672 4.424-.672 4.424-.1.463.126.74.406.801.573.125.76-.276.826-.56l1.092-4.16A.128.128 0 0 1 5 9.164c.053 0 .106.027.126.09l1.093 4.16c.066.284.253.685.825.56.28-.062.507-.338.407-.801 0 0-.566-2.433-.673-4.424-.073-1.383-.093-3.664-.093-3.664 1.698-.4 2.398-.608 2.83-.719a.637.637 0 0 0 .467-.767Z"}),y.createElement("path",{fill:"currentColor",d:"M5.007 3.11a1.55 1.55 0 0 0 1.539-1.555C6.546.698 5.86 0 5.007 0A1.55 1.55 0 0 0 3.47 1.555c0 .857.686 1.555 1.538 1.555Z"})),Z8=Pz;var Dz=({className:e})=>y.createElement("div",{className:yi(e,"space-y-4 text-left")},y.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),y.createElement("div",{className:"space-y-3"},y.createElement(eI,{title:"Your global digital ID",icon:Z8},y.createElement("p",null,"With Worldcoin and World ID sign in seamlessly and prove you are a unique human.")),y.createElement(eI,{title:"Privacy-preserving",icon:Q8},y.createElement("p",null,"Maximum privacy. Prevents cross-tracking and can be used fully anonymously.")))),eI=({icon:e,title:t,children:r})=>y.createElement("div",{className:"flex space-x-6"},y.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},y.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),y.createElement("div",null,y.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),y.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),tI=Dz;c();d();f();c();d();f();function Zw(e,t){let r=new window.URL("https://worldcoin.org/verify");return r.searchParams.append("w",e),t&&r.searchParams.append("r",t),r.toString()}var Eg=Y(ae(),1);c();d();f();var rI="c3e6053f10efbb423808783ee874cf6a";c();d();f();var Tk=Y(xm());c();d();f();var ki=Y(Do()),wE=Y(xm()),UM=Y(KI()),Ol=Y(G4()),Me=Y(_x());c();d();f();Bm();var bA=Y(Do()),qm=class extends Ln{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}};var Wm=class extends Ln{constructor(t,r){super(),this.core=t,this.logger=r,this.records=new Map}},Gm=class{constructor(t,r){this.logger=t,this.core=r}},Ym=class extends Ln{constructor(t,r){super(),this.relayer=t,this.logger=r}},Xm=class extends Ln{constructor(t){super()}},Jm=class{constructor(t,r,n,i){this.core=t,this.logger=r,this.name=n}};var Qm=class extends Ln{constructor(t,r){super(),this.relayer=t,this.logger=r}};var Zm=class extends Ln{constructor(t,r){super(),this.core=t,this.logger=r}};c();d();f();function Df(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}function sl(e){return typeof e=="string"?e:JSON.stringify(e)}c();d();f();c();d();f();var kf=Y(QA()),OO=Y(Hs()),RO=Y(Ti());c();d();f();var ZA="EdDSA",eO="JWT",Bx=".",jx="base64url",tO="utf8",rO="utf8",nO=":",iO="did",oO="key",zx="base58btc",sO="z",aO="K36";c();d();f();c();d();f();c();d();f();c();d();f();function fl(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function o0(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?fl(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function uO(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=o0(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return fl(r)}c();d();f();c();d();f();c();d();f();var Gx={};ur(Gx,{identity:()=>dK});c();d();f();c();d();f();c();d();f();function aK(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var _=0,D=0,C=0,I=v.length;C!==I&&v[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=v[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var _=0;if(v[_]!==" "){for(var D=0,C=0;v[_]===u;)D++,_++;for(var I=(v.length-_)*l+1>>>0,P=new Uint8Array(I);v[_];){var R=r[v.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(v[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function w(v){var _=g(v);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:w}}var uK=aK,lK=uK,lO=lK;c();d();f();var _0e=new Uint8Array(0);var cO=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},Di=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")};var fO=e=>new TextEncoder().encode(e),dO=e=>new TextDecoder().decode(e);var Hx=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},Kx=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return pO(this,t)}},qx=class{constructor(t){this.decoders=t}or(t){return pO(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},pO=(e,t)=>new qx(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),Wx=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new Hx(t,r,n),this.decoder=new Kx(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},dl=({name:e,prefix:t,encode:r,decode:n})=>new Wx(e,t,r,n),Ao=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=lO(r,t);return dl({prefix:e,name:t,encode:n,decode:o=>Di(i(o))})},cK=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},fK=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},Rt=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>dl({prefix:t,name:e,encode(i){return fK(i,n,r)},decode(i){return cK(i,n,r,e)}});var dK=dl({prefix:"\0",name:"identity",encode:e=>dO(e),decode:e=>fO(e)});var Yx={};ur(Yx,{base2:()=>hK});c();d();f();var hK=Rt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Xx={};ur(Xx,{base8:()=>pK});c();d();f();var pK=Rt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Jx={};ur(Jx,{base10:()=>mK});c();d();f();var mK=Ao({prefix:"9",name:"base10",alphabet:"0123456789"});var Qx={};ur(Qx,{base16:()=>gK,base16upper:()=>yK});c();d();f();var gK=Rt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),yK=Rt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Zx={};ur(Zx,{base32:()=>hl,base32hex:()=>bK,base32hexpad:()=>_K,base32hexpadupper:()=>SK,base32hexupper:()=>EK,base32pad:()=>wK,base32padupper:()=>xK,base32upper:()=>vK,base32z:()=>CK});c();d();f();var hl=Rt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),vK=Rt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),wK=Rt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),xK=Rt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),bK=Rt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),EK=Rt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),_K=Rt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),SK=Rt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),CK=Rt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var eb={};ur(eb,{base36:()=>TK,base36upper:()=>PK});c();d();f();var TK=Ao({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),PK=Ao({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var tb={};ur(tb,{base58btc:()=>Zn,base58flickr:()=>DK});c();d();f();var Zn=Ao({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),DK=Ao({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var rb={};ur(rb,{base64:()=>IK,base64pad:()=>AK,base64url:()=>OK,base64urlpad:()=>RK});c();d();f();var IK=Rt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),AK=Rt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),OK=Rt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),RK=Rt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var nb={};ur(nb,{base256emoji:()=>FK});c();d();f();var mO=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),NK=mO.reduce((e,t,r)=>(e[r]=t,e),[]),MK=mO.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function kK(e){return e.reduce((t,r)=>(t+=NK[r],t),"")}function LK(e){let t=[];for(let r of e){let n=MK[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var FK=dl({prefix:"\u{1F680}",name:"base256emoji",encode:kK,decode:LK});var ab={};ur(ab,{sha256:()=>rq,sha512:()=>nq});c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var $K=vO,gO=128,UK=127,VK=~UK,BK=Math.pow(2,31);function vO(e,t,r){t=t||[],r=r||0;for(var n=r;e>=BK;)t[r++]=e&255|gO,e/=128;for(;e&VK;)t[r++]=e&255|gO,e>>>=7;return t[r]=e|0,vO.bytes=r-n+1,t}var jK=ib,zK=128,yO=127;function ib(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw ib.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&yO)<<i:(s&yO)*Math.pow(2,i),i+=7}while(s>=zK);return ib.bytes=o-n,r}var HK=Math.pow(2,7),KK=Math.pow(2,14),qK=Math.pow(2,21),WK=Math.pow(2,28),GK=Math.pow(2,35),YK=Math.pow(2,42),XK=Math.pow(2,49),JK=Math.pow(2,56),QK=Math.pow(2,63),ZK=function(e){return e<HK?1:e<KK?2:e<qK?3:e<WK?4:e<GK?5:e<YK?6:e<XK?7:e<JK?8:e<QK?9:10},eq={encode:$K,decode:jK,encodingLength:ZK},tq=eq,Of=tq;var Rf=(e,t=0)=>[Of.decode(e,t),Of.decode.bytes],pl=(e,t,r=0)=>(Of.encode(e,t,r),t),ml=e=>Of.encodingLength(e);var Gs=(e,t)=>{let r=t.byteLength,n=ml(e),i=n+ml(r),o=new Uint8Array(i+r);return pl(e,o,0),pl(r,o,n),o.set(t,i),new gl(e,r,t,o)},wO=e=>{let t=Di(e),[r,n]=Rf(t),[i,o]=Rf(t.subarray(n)),s=t.subarray(n+o);if(s.byteLength!==i)throw new Error("Incorrect length");return new gl(r,i,s,t)},xO=(e,t)=>e===t?!0:e.code===t.code&&e.size===t.size&&cO(e.bytes,t.bytes),gl=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}};var sb=({name:e,code:t,encode:r})=>new ob(e,t,r),ob=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?Gs(this.code,r):r.then(n=>Gs(this.code,n))}else throw Error("Unknown type, must be binary type")}};var EO=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),rq=sb({name:"sha2-256",code:18,encode:EO("SHA-256")}),nq=sb({name:"sha2-512",code:19,encode:EO("SHA-512")});var ub={};ur(ub,{identity:()=>sq});c();d();f();var _O=0,iq="identity",SO=Di,oq=e=>Gs(_O,SO(e)),sq={code:_O,name:iq,encode:SO,digest:oq};c();d();f();c();d();f();var H0e=new TextEncoder,K0e=new TextDecoder;c();d();f();c();d();f();var Kt=class{constructor(t,r,n,i){this.code=r,this.version=t,this.multihash=n,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:u0,byteLength:u0,code:a0,version:a0,multihash:a0,bytes:a0,_baseCache:u0,asCID:u0})}toV0(){switch(this.version){case 0:return this;default:{let{code:t,multihash:r}=this;if(t!==Mf)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(r.code!==dq)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Kt.createV0(r)}}}toV1(){switch(this.version){case 0:{let{code:t,digest:r}=this.multihash,n=Gs(t,r);return Kt.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&xO(this.multihash,t.multihash)}toString(t){let{bytes:r,version:n,_baseCache:i}=this;switch(n){case 0:return cq(r,i,t||Zn.encoder);default:return fq(r,i,t||hl.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return pq(/^0\.0/,mq),!!(t&&(t[TO]||t.asCID===t))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof Kt)return t;if(t!=null&&t.asCID===t){let{version:r,code:n,multihash:i,bytes:o}=t;return new Kt(r,n,i,o||CO(r,n,i.bytes))}else if(t!=null&&t[TO]===!0){let{version:r,multihash:n,code:i}=t,o=wO(n);return Kt.create(r,i,o)}else return null}static create(t,r,n){if(typeof r!="number")throw new Error("String codecs are no longer supported");switch(t){case 0:{if(r!==Mf)throw new Error(`Version 0 CID must use dag-pb (code: ${Mf}) block encoding`);return new Kt(t,r,n,n.bytes)}case 1:{let i=CO(t,r,n.bytes);return new Kt(t,r,n,i)}default:throw new Error("Invalid version")}}static createV0(t){return Kt.create(0,Mf,t)}static createV1(t,r){return Kt.create(1,t,r)}static decode(t){let[r,n]=Kt.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return r}static decodeFirst(t){let r=Kt.inspectBytes(t),n=r.size-r.multihashSize,i=Di(t.subarray(n,n+r.multihashSize));if(i.byteLength!==r.multihashSize)throw new Error("Incorrect length");let o=i.subarray(r.multihashSize-r.digestSize),s=new gl(r.multihashCode,r.digestSize,o,i);return[r.version===0?Kt.createV0(s):Kt.createV1(r.codec,s),t.subarray(r.size)]}static inspectBytes(t){let r=0,n=()=>{let[h,g]=Rf(t.subarray(r));return r+=g,h},i=n(),o=Mf;if(i===18?(i=0,r=0):i===1&&(o=n()),i!==0&&i!==1)throw new RangeError(`Invalid CID version ${i}`);let s=r,a=n(),u=n(),l=r+u,p=l-s;return{version:i,codec:o,multihashCode:a,digestSize:u,multihashSize:p,size:l}}static parse(t,r){let[n,i]=lq(t,r),o=Kt.decode(i);return o._baseCache.set(n,t),o}},lq=(e,t)=>{switch(e[0]){case"Q":{let r=t||Zn;return[Zn.prefix,r.decode(`${Zn.prefix}${e}`)]}case Zn.prefix:{let r=t||Zn;return[Zn.prefix,r.decode(e)]}case hl.prefix:{let r=t||hl;return[hl.prefix,r.decode(e)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}},cq=(e,t,r)=>{let{prefix:n}=r;if(n!==Zn.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(i==null){let o=r.encode(e).slice(1);return t.set(n,o),o}else return i},fq=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(i==null){let o=r.encode(e);return t.set(n,o),o}else return i},Mf=112,dq=18,CO=(e,t,r)=>{let n=ml(e),i=n+ml(t),o=new Uint8Array(i+r.byteLength);return pl(e,o,0),pl(t,o,n),o.set(r,i),o},TO=Symbol.for("@ipld/js-cid/CID"),a0={writable:!1,configurable:!1,enumerable:!0},u0={writable:!1,enumerable:!1,configurable:!1},hq="0.0.0-dev",pq=(e,t)=>{if(e.test(hq))console.warn(t);else throw new Error(t)},mq=`CID.isCID(v) is deprecated and will be removed in the next major release.
26
26
  Following code pattern:
27
27
 
28
28
  if (CID.isCID(value)) {
@@ -36,8 +36,8 @@ if (cid) {
36
36
  // Make sure to use cid instead of value
37
37
  doSomethingWithCID(cid)
38
38
  }
39
- `;var Cl=H(H(H(H(H(H(H(H(H(H({},nb),ib),ob),sb),ab),ub),lb),cb),fb),db),tye=H(H({},gb),yb);function jA(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var BA=jA("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),vb=jA("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=f0(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Xq=H({utf8:BA,"utf-8":BA,hex:Cl.base16,latin1:vb,ascii:vb,binary:vb},Cl),m0=Xq;function g0(e,t="utf8"){let r=m0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();function y0(e,t="utf8"){let r=m0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?wl(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function v0(e){return g0(y0(pl(e),mA),Jx)}function w0(e){let t=y0(bA,Zx),r=xA+g0(EA([t,e]),Zx);return[vA,wA,r].join(yA)}function Jq(e){return g0(e,Jx)}function zA(e){return y0([v0(e.header),v0(e.payload)].join(Xx),gA)}function HA(e){return[v0(e.header),v0(e.payload),Jq(e.signature)].join(Xx)}function wb(e=(0,KA.randomBytes)(32)){return zf.generateKeyPairFromSeed(e)}async function WA(e,t,r,n,i=(0,qA.fromMiliseconds)(Date.now())){let o={alg:hA,typ:pA},s=w0(n.publicKey),a=i+r,u={iss:s,sub:e,aud:t,iat:i,exp:a},l=zA({header:o,payload:u}),p=zf.sign(n.secretKey,l);return HA({header:o,payload:u,signature:p})}c();d();f();c();d();f();var Ab=Y(S0()),VR=Y(C0()),Rb=Y(Js()),Xf=Y(D0()),U0=Y(A0());c();d();f();c();d();f();c();d();f();c();d();f();function Gf(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function Pl(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=Gf(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}c();d();f();c();d();f();c();d();f();function fR(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var cR=fR("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),Tb=fR("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=Gf(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),DW=H({utf8:cR,"utf-8":cR,hex:Cl.base16,latin1:Tb,ascii:Tb,binary:Tb},Cl),R0=DW;function Or(e,t="utf8"){let r=R0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}c();d();f();function Ar(e,t="utf8"){let r=R0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();c();d();f();var dR=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},IW=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var OW=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var AW=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}();var RW=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var NW=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var MW=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,kW=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,hR=3,LW=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",MW]],pR=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function gR(e){return e?mR(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new NW:typeof navigator<"u"?mR(navigator.userAgent):UW()}function FW(e){return e!==""&&LW.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function mR(e){var t=FW(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new RW;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<hR&&(i=dR(dR([],i,!0),VW(hR-i.length),!0)):i=[];var o=i.join("."),s=$W(e),a=kW.exec(e);return a&&a[1]?new AW(r,o,s,a[1]):new IW(r,o,s)}function $W(e){for(var t=0,r=pR.length;t<r;t++){var n=pR[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function UW(){var e=typeof process<"u"&&process.version;return e?new OW(process.version.slice(1)):null}function VW(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Uo=Y(Oi()),ia=Y(na()),aG=Y(vR()),Il=Y(NR());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var $0={waku:{publish:"waku_publish",subscribe:"waku_subscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe"},irn:{publish:"irn_publish",subscribe:"irn_subscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe"},iridium:{publish:"iridium_publish",subscribe:"iridium_subscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe"}};var BR="base10",zr="base16",Ib="base64pad",Nb="utf8",jR=0,oa=1,uG=0,MR=1,Ob=12,Mb=32;function zR(){let e=U0.generateKeyPair();return{privateKey:Ar(e.secretKey,zr),publicKey:Ar(e.publicKey,zr)}}function V0(){let e=(0,Rb.randomBytes)(Mb);return Ar(e,zr)}function HR(e,t){let r=U0.sharedKey(Or(e,zr),Or(t,zr)),n=new VR.HKDF(Xf.SHA256,r).expand(Mb);return Ar(n,zr)}function KR(e){let t=(0,Xf.hash)(Or(e,zr));return Ar(t,zr)}function Jf(e){let t=(0,Xf.hash)(Or(e,Nb));return Ar(t,zr)}function lG(e){return Or(`${e}`,BR)}function Ol(e){return Number(Ar(e,BR))}function qR(e){let t=lG(typeof e.type<"u"?e.type:jR);if(Ol(t)===oa&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?Or(e.senderPublicKey,zr):void 0,n=typeof e.iv<"u"?Or(e.iv,zr):(0,Rb.randomBytes)(Ob),i=new Ab.ChaCha20Poly1305(Or(e.symKey,zr)).seal(n,Or(e.message,Nb));return cG({type:t,sealed:i,iv:n,senderPublicKey:r})}function WR(e){let t=new Ab.ChaCha20Poly1305(Or(e.symKey,zr)),{sealed:r,iv:n}=B0(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return Ar(i,Nb)}function cG(e){if(Ol(e.type)===oa){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Ar(Pl([e.type,e.senderPublicKey,e.iv,e.sealed]),Ib)}return Ar(Pl([e.type,e.iv,e.sealed]),Ib)}function B0(e){let t=Or(e,Ib),r=t.slice(uG,MR),n=MR;if(Ol(r)===oa){let a=n+Mb,u=a+Ob,l=t.slice(n,a),p=t.slice(a,u),h=t.slice(u);return{type:r,sealed:h,iv:p,senderPublicKey:l}}let i=n+Ob,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function GR(e,t){let r=B0(e);return kb({type:Ol(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Ar(r.senderPublicKey,zr):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function kb(e){let t=(e==null?void 0:e.type)||jR;if(t===oa){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function Lb(e){return e.type===oa&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var fG=Object.defineProperty,kR=Object.getOwnPropertySymbols,dG=Object.prototype.hasOwnProperty,hG=Object.prototype.propertyIsEnumerable,LR=(e,t,r)=>t in e?fG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,FR=(e,t)=>{for(var r in t||(t={}))dG.call(t,r)&&LR(e,r,t[r]);if(kR)for(var r of kR(t))hG.call(t,r)&&LR(e,r,t[r]);return e},pG="ReactNative",Yf={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var mG="js";function YR(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function gG(){return!(0,ia.getDocument)()&&!!(0,ia.getNavigator)()&&navigator.product===pG}function yG(){return!YR()&&!!(0,ia.getNavigator)()}function vG(){return gG()?Yf.reactNative:YR()?Yf.node:yG()?Yf.browser:Yf.unknown}function wG(e,t){let r=Il.parse(e);return r=FR(FR({},r),t),e=Il.stringify(r),e}function xG(){let e=gR();if(e===null)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function bG(){var e;let t=vG();return t===Yf.browser?[t,((e=(0,ia.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function EG(e,t,r){let n=xG(),i=bG();return[[e,t].join("-"),[mG,r].join("-"),n,i].join("/")}function XR({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=EG(e,t,n),u={auth:i,ua:a,projectId:o},l=wG(s[1]||"",u);return s[0]+"?"+l}function Fb(e){return Object.fromEntries(e.entries())}function $b(e){return new Map(Object.entries(e))}function JR(e){let t=(0,Uo.toMiliseconds)(e||Uo.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function Ub(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function ZR(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function QR(e){return ZR("topic",e)}function eN(e){return ZR("id",e)}function tN(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function j0(e,t){return(0,Uo.fromMiliseconds)((t||Date.now())+(0,Uo.toMiliseconds)(e))}function Vb(e){return Date.now()>=(0,Uo.toMiliseconds)(e)}function z0(e,t){return`${e}${t?`:${t}`:""}`}var _G="irn";function H0(e){return(e==null?void 0:e.relay)||{protocol:_G}}function K0(e){let t=$0[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var SG=Object.defineProperty,$R=Object.getOwnPropertySymbols,CG=Object.prototype.hasOwnProperty,TG=Object.prototype.propertyIsEnumerable,UR=(e,t,r)=>t in e?SG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PG=(e,t)=>{for(var r in t||(t={}))CG.call(t,r)&&UR(e,r,t[r]);if($R)for(var r of $R(t))TG.call(t,r)&&UR(e,r,t[r]);return e};function DG(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(i=>{if(i.startsWith(n)){let o=i.replace(n,""),s=e[i];r[o]=s}}),r}function rN(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),i=e.substring(t+1,r).split("@"),o=typeof r<"u"?e.substring(r):"",s=Il.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:DG(s)}}function IG(e,t="-"){let r="relay",n={};return Object.keys(e).forEach(i=>{let o=r+t+i;e[i]&&(n[o]=e[i])}),n}function nN(e){return`${e.protocol}:${e.topic}@${e.version}?`+Il.stringify(PG({symKey:e.symKey},IG(e.relay)))}var OG={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},AG={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ne(e,t){let{message:r,code:n}=AG[e];return{message:t?`${r} ${t}`:r,code:n}}function Al(e,t){let{message:r,code:n}=OG[e];return{message:t?`${r} ${t}`:r,code:n}}function Zf(e){return typeof e>"u"}function Bb(e,t){return t&&Zf(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function iN(e){if(Bb(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function oN(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function sN(e){return e==null?void 0:e.topic}function q0(e){return typeof e<"u"&&typeof e!==null}var Et=Y(Oi());c();d();f();c();d();f();var HN=Y(ko());var Yt={};fr(Yt,{DEFAULT_ERROR:()=>ed,IBaseJsonRpcProvider:()=>ng,IEvents:()=>Ml,IJsonRpcConnection:()=>Wb,IJsonRpcProvider:()=>td,INTERNAL_ERROR:()=>W0,INVALID_PARAMS:()=>cN,INVALID_REQUEST:()=>uN,METHOD_NOT_FOUND:()=>lN,PARSE_ERROR:()=>aN,RESERVED_ERROR_CODES:()=>jb,SERVER_ERROR:()=>Qf,SERVER_ERROR_CODE_RANGE:()=>G0,STANDARD_ERROR_MAP:()=>Vo,formatErrorMessage:()=>jN,formatJsonRpcError:()=>sa,formatJsonRpcRequest:()=>zo,formatJsonRpcResult:()=>Nl,getError:()=>X0,getErrorByCode:()=>J0,isHttpUrl:()=>jG,isJsonRpcError:()=>Rr,isJsonRpcPayload:()=>Yb,isJsonRpcRequest:()=>kl,isJsonRpcResponse:()=>aa,isJsonRpcResult:()=>Cn,isJsonRpcValidationInvalid:()=>zG,isLocalhostUrl:()=>Gb,isNodeJs:()=>VN,isReservedErrorCode:()=>Y0,isServerErrorCode:()=>RG,isValidDefaultRoute:()=>tg,isValidErrorCode:()=>fN,isValidLeadingWildcardRoute:()=>FG,isValidRoute:()=>LG,isValidTrailingWildcardRoute:()=>$G,isValidWildcardRoute:()=>rg,isWsUrl:()=>ig,parseConnectionError:()=>zb,payloadId:()=>BN,validateJsonRpcError:()=>NG});c();d();f();c();d();f();var aN="PARSE_ERROR",uN="INVALID_REQUEST",lN="METHOD_NOT_FOUND",cN="INVALID_PARAMS",W0="INTERNAL_ERROR",Qf="SERVER_ERROR",jb=[-32700,-32600,-32601,-32602,-32603],G0=[-32e3,-32099],Vo={[aN]:{code:-32700,message:"Parse error"},[uN]:{code:-32600,message:"Invalid Request"},[lN]:{code:-32601,message:"Method not found"},[cN]:{code:-32602,message:"Invalid params"},[W0]:{code:-32603,message:"Internal error"},[Qf]:{code:-32e3,message:"Server error"}},ed=Qf;c();d();f();function RG(e){return e<=G0[0]&&e>=G0[1]}function Y0(e){return jb.includes(e)}function fN(e){return typeof e=="number"}function X0(e){return Object.keys(Vo).includes(e)?Vo[e]:Vo[ed]}function J0(e){let t=Object.values(Vo).find(r=>r.code===e);return t||Vo[ed]}function NG(e){if(typeof e.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof e.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!fN(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(Y0(e.error.code)){let t=J0(e.error.code);if(t.message!==Vo[ed].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function zb(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var Ft={};fr(Ft,{isNodeJs:()=>VN});c();d();f();var UN=Y(qb());Kt(Ft,Y(qb()));var VN=UN.isNode;Kt(Yt,Ft);c();d();f();function BN(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function zo(e,t,r){return{id:r||BN(),jsonrpc:"2.0",method:e,params:t}}function Nl(e,t){return{id:e,jsonrpc:"2.0",result:t}}function sa(e,t,r){return{id:e,jsonrpc:"2.0",error:jN(t,r)}}function jN(e,t){return typeof e>"u"?X0(W0):(typeof e=="string"&&(e=Object.assign(Object.assign({},X0(Qf)),{message:e})),typeof t<"u"&&(e.data=t),Y0(e.code)&&(e=J0(e.code)),e)}c();d();f();function LG(e){return e.includes("*")?rg(e):!/\W/g.test(e)}function tg(e){return e==="*"}function rg(e){return tg(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function FG(e){return!tg(e)&&rg(e)&&!e.split("*")[0].trim()}function $G(e){return!tg(e)&&rg(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Ml=class{};c();d();f();var Wb=class extends Ml{constructor(t){super()}},ng=class extends Ml{constructor(){super()}},td=class extends ng{constructor(t){super()}};c();d();f();c();d();f();var UG="^https?:",VG="^wss?:";function BG(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function zN(e,t){let r=BG(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function jG(e){return zN(e,UG)}function ig(e){return zN(e,VG)}function Gb(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function Yb(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function kl(e){return Yb(e)&&"method"in e}function aa(e){return Yb(e)&&(Cn(e)||Rr(e))}function Cn(e){return"result"in e}function Rr(e){return"error"in e}function zG(e){return"error"in e&&e.valid===!1}var og=class extends td{constructor(t){super(t),this.events=new HN.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(zo(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(o){i(o)}this.events.on(`${t.id}`,o=>{Rr(o)?i(o.error):n(o.result)});try{await this.connection.send(t,r)}catch(o){i(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),aa(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",t=>this.events.emit("error",t)),this.hasRegisteredEventListeners=!0)}};c();d();f();c();d();f();var GN=Y(ko());var WN=10,HG=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:qN(),KG=()=>typeof window<"u",qG=HG(),Xb=class{constructor(t){if(this.url=t,this.events=new GN.EventEmitter,this.registering=!1,!ig(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=()=>{this.onClose(),t()},this.socket.close()})}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(pl(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!ig(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),i(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let i=(0,Yt.isReactNative)()?void 0:{rejectUnauthorized:!Gb(t)},o=new qG(t,[],i);KG()?o.onerror=s=>{let a=s;n(this.emitError(a.error))}:o.on("error",s=>{n(this.emitError(s))}),o.onopen=()=>{this.onOpen(o),r(o)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=()=>this.onClose(),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;let r=typeof t.data=="string"?Lf(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=sa(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return zb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>WN&&this.events.setMaxListeners(WN)}emitError(t){let r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",r),r}},YN=Xb;var XN=YN;var JM=Y(AM());function _X(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(w){if(w instanceof Uint8Array||(ArrayBuffer.isView(w)?w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):Array.isArray(w)&&(w=Uint8Array.from(w))),!(w instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(w.length===0)return"";for(var _=0,D=0,C=0,I=w.length;C!==I&&w[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=w[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function y(w){if(typeof w!="string")throw new TypeError("Expected String");if(w.length===0)return new Uint8Array;var _=0;if(w[_]!==" "){for(var D=0,C=0;w[_]===u;)D++,_++;for(var I=(w.length-_)*l+1>>>0,P=new Uint8Array(I);w[_];){var R=r[w.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(w[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function v(w){var _=y(w);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:y,decode:v}}var SX=_X,CX=SX,ZM=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},TX=e=>new TextEncoder().encode(e),PX=e=>new TextDecoder().decode(e),cE=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},fE=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return QM(this,t)}},dE=class{constructor(t){this.decoders=t}or(t){return QM(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},QM=(e,t)=>new dE(H(H({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),hE=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new cE(t,r,n),this.decoder=new fE(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},wg=({name:e,prefix:t,encode:r,decode:n})=>new hE(e,t,r,n),ld=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=CX(r,t);return wg({prefix:e,name:t,encode:n,decode:o=>ZM(i(o))})},DX=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},IX=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},lr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>wg({prefix:t,name:e,encode(i){return IX(i,n,r)},decode(i){return DX(i,n,r,e)}}),OX=wg({prefix:"\0",name:"identity",encode:e=>PX(e),decode:e=>TX(e)}),AX=Object.freeze({__proto__:null,identity:OX}),RX=lr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),NX=Object.freeze({__proto__:null,base2:RX}),MX=lr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),kX=Object.freeze({__proto__:null,base8:MX}),LX=ld({prefix:"9",name:"base10",alphabet:"0123456789"}),FX=Object.freeze({__proto__:null,base10:LX}),$X=lr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),UX=lr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),VX=Object.freeze({__proto__:null,base16:$X,base16upper:UX}),BX=lr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),jX=lr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),zX=lr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),HX=lr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),KX=lr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),qX=lr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),WX=lr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),GX=lr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),YX=lr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),XX=Object.freeze({__proto__:null,base32:BX,base32upper:jX,base32pad:zX,base32padupper:HX,base32hex:KX,base32hexupper:qX,base32hexpad:WX,base32hexpadupper:GX,base32z:YX}),JX=ld({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),ZX=ld({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),QX=Object.freeze({__proto__:null,base36:JX,base36upper:ZX}),eJ=ld({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tJ=ld({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),rJ=Object.freeze({__proto__:null,base58btc:eJ,base58flickr:tJ}),nJ=lr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),iJ=lr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),oJ=lr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),sJ=lr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),aJ=Object.freeze({__proto__:null,base64:nJ,base64pad:iJ,base64url:oJ,base64urlpad:sJ}),e7=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),uJ=e7.reduce((e,t,r)=>(e[r]=t,e),[]),lJ=e7.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function cJ(e){return e.reduce((t,r)=>(t+=uJ[r],t),"")}function fJ(e){let t=[];for(let r of e){let n=lJ[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var dJ=wg({prefix:"\u{1F680}",name:"base256emoji",encode:cJ,decode:fJ}),hJ=Object.freeze({__proto__:null,base256emoji:dJ}),pJ=t7,RM=128,mJ=127,gJ=~mJ,yJ=Math.pow(2,31);function t7(e,t,r){t=t||[],r=r||0;for(var n=r;e>=yJ;)t[r++]=e&255|RM,e/=128;for(;e&gJ;)t[r++]=e&255|RM,e>>>=7;return t[r]=e|0,t7.bytes=r-n+1,t}var vJ=pE,wJ=128,NM=127;function pE(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw pE.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&NM)<<i:(s&NM)*Math.pow(2,i),i+=7}while(s>=wJ);return pE.bytes=o-n,r}var xJ=Math.pow(2,7),bJ=Math.pow(2,14),EJ=Math.pow(2,21),_J=Math.pow(2,28),SJ=Math.pow(2,35),CJ=Math.pow(2,42),TJ=Math.pow(2,49),PJ=Math.pow(2,56),DJ=Math.pow(2,63),IJ=function(e){return e<xJ?1:e<bJ?2:e<EJ?3:e<_J?4:e<SJ?5:e<CJ?6:e<TJ?7:e<PJ?8:e<DJ?9:10},OJ={encode:pJ,decode:vJ,encodingLength:IJ},r7=OJ,MM=(e,t,r=0)=>(r7.encode(e,t,r),t),kM=e=>r7.encodingLength(e),mE=(e,t)=>{let r=t.byteLength,n=kM(e),i=n+kM(r),o=new Uint8Array(i+r);return MM(e,o,0),MM(r,o,n),o.set(t,i),new gE(e,r,t,o)},gE=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},n7=({name:e,code:t,encode:r})=>new yE(e,t,r),yE=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?mE(this.code,r):r.then(n=>mE(this.code,n))}else throw Error("Unknown type, must be binary type")}},i7=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),AJ=n7({name:"sha2-256",code:18,encode:i7("SHA-256")}),RJ=n7({name:"sha2-512",code:19,encode:i7("SHA-512")}),NJ=Object.freeze({__proto__:null,sha256:AJ,sha512:RJ}),o7=0,MJ="identity",s7=ZM,kJ=e=>mE(o7,s7(e)),LJ={code:o7,name:MJ,encode:s7,digest:kJ},FJ=Object.freeze({__proto__:null,identity:LJ});new TextEncoder,new TextDecoder;var LM=H(H(H(H(H(H(H(H(H(H({},AX),NX),kX),FX),VX),XX),QX),rJ),aJ),hJ);H(H({},NJ),FJ);function $J(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function a7(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var FM=a7("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),uE=a7("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=$J(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),UJ=H({utf8:FM,"utf-8":FM,hex:LM.base16,latin1:uE,ascii:uE,binary:uE},LM);function VJ(e,t="utf8"){let r=UJ[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}var u7="wc",BJ=2,IE="core",qo=`${u7}@${2}:${IE}:`,jJ={name:IE,logger:"error"},zJ={database:":memory:"},HJ="crypto",$M="client_ed25519_seed",KJ=Et.ONE_DAY,qJ="keychain",WJ="0.3",GJ="messages",YJ="0.3",XJ=Et.SIX_HOURS,JJ="publisher",OE="irn",ZJ="error",QJ="wss://relay.walletconnect.com",eZ="relayer",ur={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},tZ="_subscription",yg={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},UM=Et.ONE_SECOND;var rZ="2.4.0",nZ="0.3",li={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var iZ="subscription",oZ="0.3",sZ=Et.FIVE_SECONDS*1e3,aZ="pairing",uZ="0.3";var ad={wc_pairingDelete:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Et.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:0},res:{ttl:Et.ONE_DAY,prompt:!1,tag:0}}},ui={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},lZ="history",cZ="0.3",fZ="expirer",sn={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},dZ="0.3";var vE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=qJ,this.version=WJ,this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()},this.get=n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>"u"){let{message:o}=Ne("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(o)}return i},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,Fb(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?$b(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},wE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=HJ,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();let i=await this.getClientSeed(),o=wb(i);return w0(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=zR();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=wb(o),a=V0();return await WA(a,i,KJ,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),u=HR(a,o);return this.setSymKey(u,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||KR(i);return await this.keychain.set(s,i),s},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,o,s)=>{this.isInitialized();let a=kb(s),u=pl(o);if(Lb(a)){let y=a.senderPublicKey,v=a.receiverPublicKey;i=await this.generateSharedKey(y,v)}let l=this.getSymKey(i),{type:p,senderPublicKey:h}=a;return qR({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(i,o,s)=>{this.isInitialized();let a=GR(o,s);if(Lb(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(p,h)}let u=this.getSymKey(i),l=WR({symKey:u,encoded:o});return Lf(l)},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.keychain=n||new vE(this.core,this.logger)}get context(){return(0,Me.getLoggerContext)(this.logger)}getPayloadType(t){let r=B0(t);return Ol(r.type)}async setPrivateKey(t,r){return await this.keychain.set(t,r),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get($M)}catch(r){t=V0(),await this.keychain.set($M,t)}return VJ(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},xE=class extends e0{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=GJ,this.version=YJ,this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,i)=>{this.isInitialized();let o=Jf(i),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[o]<"u"||(s[o]=i,this.messages.set(n,s),await this.persist()),o},this.get=n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>"u"&&(i={}),i},this.has=(n,i)=>{this.isInitialized();let o=this.get(n),s=Jf(i);return typeof o[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,Me.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,Fb(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?$b(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},bE=class extends t0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new Ui.EventEmitter,this.name=JJ,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,i,o)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}});try{let s=(o==null?void 0:o.ttl)||XJ,a=H0(o),u=(o==null?void 0:o.prompt)||!1,l=(o==null?void 0:o.tag)||0,p={topic:n,message:i,opts:{ttl:s,relay:a,prompt:u,tag:l}},h=Jf(i);this.queue.set(h,p);try{await await Ub(this.rpcPublish(n,i,s,a,u,l),this.publishTimeout),this.relayer.events.emit(ur.publish,p)}catch(y){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(ur.connection_stalled);return}this.onPublish(h,p),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,Me.getLoggerContext)(this.logger)}rpcPublish(t,r,n,i,o,s){var a,u,l,p;let h={method:K0(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Zf((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),Zf((l=h.params)==null?void 0:l.tag)&&((p=h.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:i}=t;await this.publish(r,n,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(Ul.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},EE=class{constructor(){this.map=new Map,this.set=(t,r)=>{let n=this.get(t);this.exists(t,r)||this.map.set(t,[...n,r])},this.get=t=>this.map.get(t)||[],this.exists=(t,r)=>this.get(t).includes(r),this.delete=(t,r)=>{if(typeof r>"u"){this.map.delete(t);return}if(!this.map.has(t))return;let n=this.get(t);if(!this.exists(t,r))return;let i=n.filter(o=>o!==r);if(!i.length){this.map.delete(t);return}this.map.set(t,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},hZ=Object.defineProperty,pZ=Object.defineProperties,mZ=Object.getOwnPropertyDescriptors,VM=Object.getOwnPropertySymbols,gZ=Object.prototype.hasOwnProperty,yZ=Object.prototype.propertyIsEnumerable,BM=(e,t,r)=>t in e?hZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vg=(e,t)=>{for(var r in t||(t={}))gZ.call(t,r)&&BM(e,r,t[r]);if(VM)for(var r of VM(t))yZ.call(t,r)&&BM(e,r,t[r]);return e},lE=(e,t)=>pZ(e,mZ(t)),_E=class extends i0{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new EE,this.events=new Ui.EventEmitter,this.name=iZ,this.version=oZ,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=qo,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{let o=H0(i),s={topic:n,relay:o};this.pending.set(n,s);let a=await this.rpcSubscribe(n,o);return this.onSubscribe(a,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}}),a}catch(o){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(o),o}},this.unsubscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),typeof(i==null?void 0:i.id)<"u"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((i,o)=>{let s=new Et.Watch;s.start(this.pendingSubscriptionWatchLabel);let a=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=sZ&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!1))},this.pollingInterval)}),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,r){let n=!1;try{n=this.getSubscription(t).topic===r}catch(i){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(t,r){let n=this.topicMap.get(t);await Promise.all(n.map(async i=>await this.unsubscribeById(t,i,r)))}async unsubscribeById(t,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}});try{let i=H0(n);await this.rpcUnsubscribe(t,r,i);let o=Al("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,o),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(t,r){let n={method:K0(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Ub(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(ur.connection_stalled)}return Jf(t+this.clientId)}rpcUnsubscribe(t,r,n){let i={method:K0(n.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(t,r){this.setSubscription(t,lE(vg({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,lE(vg({},r),{id:t})),this.pending.delete(r.topic)}async onUnsubscribe(t,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,t)&&this.deleteSubscription(r,n),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,r){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:r}),this.addSubscription(t,r))}addSubscription(t,r){this.subscriptions.set(t,vg({},r)),this.topicMap.set(r.topic,t),this.events.emit(li.created,r)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});let r=this.subscriptions.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}deleteSubscription(t,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:r});let n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(li.deleted,lE(vg({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(li.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(li.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){let{topic:r,relay:n}=t,i={topic:r,relay:n};this.pending.set(i.topic,i);let o=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(o,i)}}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}checkPending(){this.relayer.transportExplicitlyClosed||this.pending.forEach(async t=>{let r=await this.rpcSubscribe(t.topic,t.relay);this.onSubscribe(r,t)})}registerEventListeners(){this.relayer.core.heartbeat.on(Ul.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(ur.connect,async()=>{await this.onConnect()}),this.relayer.on(ur.disconnect,()=>{this.onDisconnect()}),this.events.on(li.created,async t=>{let r=li.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(li.deleted,async t=>{let r=li.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise(t=>{let r=setInterval(()=>{this.restartInProgress||(clearInterval(r),t())},this.pollingInterval)})}},vZ=Object.defineProperty,jM=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,xZ=Object.prototype.propertyIsEnumerable,zM=(e,t,r)=>t in e?vZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bZ=(e,t)=>{for(var r in t||(t={}))wZ.call(t,r)&&zM(e,r,t[r]);if(jM)for(var r of jM(t))xZ.call(t,r)&&zM(e,r,t[r]);return e},SE=class extends r0{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new Ui.EventEmitter,this.name=eZ,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Me.generateChildLogger)(t.logger,this.name):(0,DE.default)((0,Me.getDefaultLoggerOptions)({level:t.logger||ZJ})),this.messages=new xE(this.logger,t.core),this.subscriber=new _E(this,this.logger),this.publisher=new bE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||QJ,this.projectId=t.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return(0,Me.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,r,n){this.isInitialized(),await this.publisher.publish(t,r,n),await this.recordMessageEvent({topic:t,message:r})}async subscribe(t,r){this.isInitialized();let n="";return await Promise.all([new Promise(i=>{this.subscriber.once(li.created,o=>{o.topic===t&&i()})}),new Promise(async i=>{n=await this.subscriber.subscribe(t,r),i()})]),n}async unsubscribe(t,r){this.isInitialized(),await this.subscriber.unsubscribe(t,r)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(ur.transport_closed))}async transportOpen(t){if(!this.reconnecting){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(li.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(ur.transport_closed,()=>{n(new Error("closeTransport called before connection was established"))}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw r;this.logger.error(r),this.events.emit(ur.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(t){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(r=>setTimeout(r,UM)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new og(new XN(XR({sdkVersion:rZ,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t})))}async recordMessageEvent(t){let{topic:r,message:n}=t;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(t){let{topic:r,message:n}=t;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),kl(t)){if(!t.method.endsWith(tZ))return;let r=t.params,{topic:n,message:i}=r.data,o={topic:n,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(bZ({type:"event",event:r.id},o)),this.events.emit(r.id,o),await this.acknowledgePayload(t),await this.onMessageEvent(o)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(ur.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=Nl(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(yg.payload,t=>this.onProviderPayload(t)),this.provider.on(yg.connect,()=>{this.events.emit(ur.connect)}),this.provider.on(yg.disconnect,()=>{this.events.emit(ur.disconnect),this.attemptToReconnect()}),this.provider.on(yg.error,t=>this.events.emit(ur.error,t)),this.events.on(ur.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,Et.toMiliseconds)(UM))}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},EZ=Object.defineProperty,HM=Object.getOwnPropertySymbols,_Z=Object.prototype.hasOwnProperty,SZ=Object.prototype.propertyIsEnumerable,KM=(e,t,r)=>t in e?EZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qM=(e,t)=>{for(var r in t||(t={}))_Z.call(t,r)&&KM(e,r,t[r]);if(HM)for(var r of HM(t))SZ.call(t,r)&&KM(e,r,t[r]);return e},da=class extends n0{constructor(t,r,n,i=qo,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=nZ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{oN(s)?this.map.set(s.id,s):sN(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Zf(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,a)=>{this.isInitialized(),this.map.has(s)?await this.update(s,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:a}),this.map.set(s,a),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(a=>Object.keys(s).every(u=>(0,JM.default)(a[u],s[u]))):this.values),this.update=async(s,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:a});let u=qM(qM({},this.getData(s)),a);this.map.set(s,u),await this.persist()},this.delete=async(s,a)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:a}),this.map.delete(s),await this.persist())},this.logger=(0,Me.generateChildLogger)(r,this.name),this.storagePrefix=i,this.getKey=o}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){let r=this.map.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},CE=class{constructor(t,r){this.core=t,this.logger=r,this.name=aZ,this.version=uZ,this.events=new Ui.default,this.initialized=!1,this.storagePrefix=qo,this.ignoredPayloadTypes=[oa],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=V0(),i=await this.core.crypto.setSymKey(n),o=j0(Et.FIVE_MINUTES),s={protocol:OE},a={topic:i,expiry:o,relay:s,active:!1},u=nN({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:n,relay:s});return await this.pairings.set(i,a),await this.core.relayer.subscribe(i),this.core.expirer.set(i,o),{topic:i,uri:u}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:i,symKey:o,relay:s}=rN(n.uri),a=j0(Et.FIVE_MINUTES),u={topic:i,relay:s,expiry:a,active:!1};return await this.pairings.set(i,u),await this.core.crypto.setSymKey(o,i),await this.core.relayer.subscribe(i,{relay:s}),this.core.expirer.set(i,a),n.activatePairing&&await this.activate({topic:i}),u},this.activate=async({topic:n})=>{this.isInitialized();let i=j0(Et.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:i}),this.core.expirer.set(n,i)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:i}=n;if(this.pairings.keys.includes(i)){let o=await this.sendRequest(i,"wc_pairingPing",{}),{done:s,resolve:a,reject:u}=JR();this.events.once(z0("pairing_ping",o),({error:l})=>{l?u(l):a()}),await s()}},this.updateExpiry=async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})},this.updateMetadata=async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",Al("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=zo(i,o),a=await this.core.crypto.encode(n,s),u=ad[i].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,u),s.id},this.sendResult=async(n,i,o)=>{let s=Nl(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=ad[u.request.method].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.sendError=async(n,i,o)=>{let s=sa(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=ad[u.request.method]?ad[u.request.method].res:ad.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.deletePairing=async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Al("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(i=>Vb(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=n=>{let{topic:i,payload:o}=n,s=o.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(i,o);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,o);default:return this.onUnknownRpcMethodRequest(i,o)}},this.onRelayEventResponse=async n=>{let{topic:i,payload:o}=n,s=(await this.core.history.get(i,o.id)).request.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(i,o);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,i)=>{let{id:o}=i;try{this.isValidPing({topic:n}),await this.sendResult(o,n,!0),this.events.emit("pairing_ping",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,i)=>{let{id:o}=i;setTimeout(()=>{Cn(i)?this.events.emit(z0("pairing_ping",o),{}):Rr(i)&&this.events.emit(z0("pairing_ping",o),{error:i.error})},500)},this.onPairingDeleteRequest=async(n,i)=>{let{id:o}=i;try{this.isValidDisconnect({topic:n}),await this.sendResult(o,n,!0),await this.deletePairing(n),this.events.emit("pairing_delete",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,i)=>{let{id:o,method:s}=i;try{if(this.registeredMethods.includes(s))return;let a=Al("WC_METHOD_UNSUPPORTED",s);await this.sendError(o,n,a),this.logger.error(a)}catch(a){await this.sendError(o,n,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Al("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!q0(n)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!iN(n.uri)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!q0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidDisconnect=async n=>{if(!q0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async n=>{if(!Bb(n,!1)){let{message:i}=Ne("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Ne("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(Vb(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Ne("EXPIRED",`pairing topic: ${n}`);throw new Error(i)}},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.pairings=new da(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Me.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(ur.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let i=await this.core.crypto.decode(r,n);kl(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):aa(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(sn.expired,async t=>{let{topic:r}=tN(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},TE=class extends Qm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new Ui.EventEmitter,this.name=lZ,this.version=cZ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,i,o)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:i,chainId:o}),this.records.has(i.id))return;let s={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:o};this.records.set(s.id,s),this.events.emit(ui.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>"u"&&(i.response=Rr(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(ui.updated,i))},this.get=async(n,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:i}),await this.getRecord(i)),this.delete=(n,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(o=>{if(o.topic===n){if(typeof i<"u"&&o.id!==i)return;this.records.delete(o.id),this.events.emit(ui.deleted,o)}})},this.exists=async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let t=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;let n={topic:r.topic,request:zo(r.request.method,r.request.params,r.id),chainId:r.chainId};return t.push(n)}),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();let r=this.records.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ui.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(ui.created,t=>{let r=ui.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ui.updated,t=>{let r=ui.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ui.deleted,t=>{let r=ui.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},PE=class extends o0{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new Ui.EventEmitter,this.name=fZ,this.version=dZ,this.cached=[],this.initialized=!1,this.storagePrefix=qo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<"u"}catch(i){return!1}},this.set=(n,i)=>{this.isInitialized();let o=this.formatTarget(n),s={target:o,expiry:i};this.expirations.set(o,s),this.checkExpiry(o,s),this.events.emit(sn.created,{target:o,expiration:s})},this.get=n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),o=this.getExpiration(i);this.expirations.delete(i),this.events.emit(sn.deleted,{target:i,expiration:o})}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if(typeof t=="string")return QR(t);if(typeof t=="number")return eN(t);let{message:r}=Ne("UNKNOWN_TYPE",`Target type: ${typeof t}`);throw new Error(r)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(sn.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){let r=this.expirations.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,Et.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(sn.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(Ul.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(sn.created,t=>{let r=sn.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(sn.expired,t=>{let r=sn.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(sn.deleted,t=>{let r=sn.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},CZ=Object.defineProperty,WM=Object.getOwnPropertySymbols,TZ=Object.prototype.hasOwnProperty,PZ=Object.prototype.propertyIsEnumerable,GM=(e,t,r)=>t in e?CZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YM=(e,t)=>{for(var r in t||(t={}))TZ.call(t,r)&&GM(e,r,t[r]);if(WM)for(var r of WM(t))PZ.call(t,r)&&GM(e,r,t[r]);return e},ud=class extends Zm{constructor(t){super(t),this.protocol=u7,this.version=BJ,this.name=IE,this.events=new Ui.EventEmitter,this.initialized=!1,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.projectId=t==null?void 0:t.projectId;let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,DE.default)((0,Me.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||jJ.logger}));this.logger=(0,Me.generateChildLogger)(r,this.name),this.heartbeat=new Ul.HeartBeat,this.crypto=new wE(this,this.logger,t==null?void 0:t.keychain),this.history=new TE(this,this.logger),this.expirer=new PE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new XM.default(YM(YM({},zJ),t==null?void 0:t.storageOptions)),this.relayer=new SE({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new CE(this,this.logger)}static async init(t){let r=new ud(t);return await r.initialize(),r}get context(){return(0,Me.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},l7=ud;var jl=Y(Rx());c();d();f();Wm();var c7=Y(ko());var xg=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var bg=class{constructor(t){this.client=t}};c();d();f();var LZ=Y(S0()),FZ=Y(C0()),$Z=Y(Js()),E7=Y(D0()),_7=Y(A0());var Go=Y(Oi()),RE=Y(na()),S7=Y(d7()),C7=Y(x7());function NE(e,t){return e.includes(":")?[e]:t.chains||[]}var T7=1;function P7(){return(0,S7.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Wo(e,t){return e.filter(r=>t.includes(r)).length===e.length}function ha(e){let t=(0,Go.toMiliseconds)(e||Go.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function D7(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function Yo(e,t){return(0,Go.fromMiliseconds)((t||Date.now())+(0,Go.toMiliseconds)(e))}function pa(e){return Date.now()>=(0,Go.toMiliseconds)(e)}function Xt(e,t){return`${e}${t?`:${t}`:""}`}function cd(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function UZ(e){let t=[];return Object.values(e).forEach(r=>{t.push(...cd(r.accounts))}),t}function VZ(e,t){let r=[];return Object.values(e).forEach(n=>{cd(n.accounts).includes(t)&&r.push(...n.methods)}),r}function BZ(e,t){let r=[];return Object.values(e).forEach(n=>{cd(n.accounts).includes(t)&&r.push(...n.events)}),r}function I7(e,t){let r=fd(e,t);if(r)throw new Error(r.message);let n={};for(let[i,o]of Object.entries(e))n[i]={methods:o.methods,events:o.events,chains:o.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var jZ={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},zZ={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ge(e,t){let{message:r,code:n}=zZ[e];return{message:t?`${r} ${t}`:r,code:n}}function Kr(e,t){let{message:r,code:n}=jZ[e];return{message:t?`${r} ${t}`:r,code:n}}function _g(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Vl(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function an(e){return typeof e>"u"}function cr(e,t){return t&&an(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function ME(e,t){return t&&an(e)?!0:typeof e=="number"&&!isNaN(e)}function O7(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return Wo(i,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l}=e.namespaces[s],p=cd(a),h=r[s];(!Wo(NE(s,h),p)||!Wo(h.methods,u)||!Wo(h.events,l))&&(o=!1)}),o):!1}function kE(e){return cr(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function HZ(e){if(cr(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&kE(r)}}return!1}function A7(e,t){let r=null;return cr(e==null?void 0:e.publicKey,!1)||(r=ge("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function b7(e){let t=!0;return _g(e)?e.length&&(t=e.every(r=>cr(r,!1))):t=!1,t}function KZ(e,t,r){let n=null;return _g(t)?t.forEach(i=>{n||(!kE(i)||!i.includes(e))&&(n=Kr("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=Kr("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function qZ(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=KZ(n,NE(n,i),`${t} requiredNamespace`);o&&(r=o)}),r}function WZ(e,t){let r=null;return _g(e)?e.forEach(n=>{r||HZ(n)||(r=Kr("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=Kr("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function GZ(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=WZ(n==null?void 0:n.accounts,`${t} namespace`);i&&(r=i)}),r}function YZ(e,t){let r=null;return b7(e==null?void 0:e.methods)?b7(e==null?void 0:e.events)||(r=Kr("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=Kr("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function R7(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=YZ(n,`${t}, namespace`);i&&(r=i)}),r}function N7(e,t,r){let n=null;if(e&&Vl(e)){let i=R7(e,t);i&&(n=i);let o=qZ(e,t);o&&(n=o)}else n=ge("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function fd(e,t){let r=null;if(e&&Vl(e)){let n=R7(e,t);n&&(r=n);let i=GZ(e,t);i&&(r=i)}else r=ge("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function LE(e){return cr(e.protocol,!0)}function M7(e,t){let r=!1;return t&&!e?r=!0:e&&_g(e)&&e.length&&e.forEach(n=>{r=LE(n)}),r}function k7(e){return typeof e=="number"}function Tn(e){return typeof e<"u"&&typeof e!==null}function L7(e){return!(!e||typeof e!="object"||!e.code||!ME(e.code,!1)||!e.message||!cr(e.message,!1))}function F7(e){return!(an(e)||!cr(e.method,!1))}function $7(e){return!(an(e)||an(e.result)&&an(e.error)||!ME(e.id,!1)||!cr(e.jsonrpc,!1))}function U7(e){return!(an(e)||!cr(e.name,!1))}function FE(e,t){return!(!kE(t)||!UZ(e).includes(t))}function V7(e,t,r){return cr(r,!1)?VZ(e,t).includes(r):!1}function B7(e,t,r){return cr(r,!1)?BZ(e,t).includes(r):!1}function Sg(e,t,r,n){let i=null,o=Object.keys(e),s=Object.keys(t);return Wo(o,s)?o.forEach(a=>{if(i)return;let u=cd(t[a].accounts);Wo(NE(a,e[a]),u)?Wo(e[a].methods,t[a].methods)?Wo(e[a].events,t[a].events)||(i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${a}`)):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${a}`):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace chains for ${a}`)}):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy ${n}`),i}function j7(e,t){return ME(e,!1)&&e<=t.max&&e>=t.min}var Tg=Y(ko()),Ve=Y(Oi());var q7="wc",W7=2,G7="client",KE=`${q7}@${W7}:${G7}:`,$E={name:G7,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var XZ="proposal";var JZ="session",Cg=Ve.SEVEN_DAYS,ZZ="engine",dd={wc_sessionPropose:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1115}}},UE={min:Ve.FIVE_MINUTES,max:Ve.SEVEN_DAYS},QZ="request",eQ=Object.defineProperty,tQ=Object.defineProperties,rQ=Object.getOwnPropertyDescriptors,z7=Object.getOwnPropertySymbols,nQ=Object.prototype.hasOwnProperty,iQ=Object.prototype.propertyIsEnumerable,H7=(e,t,r)=>t in e?eQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pn=(e,t)=>{for(var r in t||(t={}))nQ.call(t,r)&&H7(e,r,t[r]);if(z7)for(var r of z7(t))iQ.call(t,r)&&H7(e,r,t[r]);return e},VE=(e,t)=>tQ(e,rQ(t)),BE=class extends bg{constructor(t){super(t),this.name=ZZ,this.events=new Tg.default,this.initialized=!1,this.ignoredPayloadTypes=[T7],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(dd)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=VE(Pn({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:i,requiredNamespaces:o,optionalNamespaces:s,sessionProperties:a,relays:u}=n,l=i,p,h=!1;if(l&&(h=this.client.core.pairing.pairings.get(l).active),!l||!h){let{topic:P,uri:R}=await this.client.core.pairing.create();l=P,p=R}let y=await this.client.core.crypto.generateKeyPair(),v=Pn({requiredNamespaces:o,optionalNamespaces:s,relays:u!=null?u:[{protocol:OE}],proposer:{publicKey:y,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:w,resolve:_,done:D}=ha();if(this.events.once(Xt("session_connect"),async({error:P,session:R})=>{if(P)w(P);else if(R){R.self.publicKey=y;let U=VE(Pn({},R),{requiredNamespaces:R.requiredNamespaces,optionalNamespaces:R.optionalNamespaces});await this.client.session.set(R.topic,U),await this.setExpiry(R.topic,R.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:R.peer.metadata}),_(U)}}),!l){let{message:P}=ge("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(P)}let C=await this.sendRequest(l,"wc_sessionPropose",v),I=Yo(Ve.FIVE_MINUTES);return await this.setProposal(C,Pn({id:C,expiry:I},v)),{uri:p,approval:D}},this.pair=async r=>(this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);let{id:n,relayProtocol:i,namespaces:o,sessionProperties:s}=r,a=this.client.proposal.get(n),{pairingTopic:u,proposer:l,requiredNamespaces:p,optionalNamespaces:h}=a;Vl(p)||(p=I7(o,"approve()"));let y=await this.client.core.crypto.generateKeyPair(),v=l.publicKey,w=await this.client.core.crypto.generateSharedKey(y,v);u&&n&&(await this.client.core.pairing.updateMetadata({topic:u,metadata:l.metadata}),await this.sendResult(n,u,{relay:{protocol:i!=null?i:"irn"},responderPublicKey:y}),await this.client.proposal.delete(n,Kr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:u}));let _=Pn({relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:p,optionalNamespaces:h,controller:{publicKey:y,metadata:this.client.metadata},expiry:Yo(Cg)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(w);let D=await this.sendRequest(w,"wc_sessionSettle",_),{done:C,resolve:I,reject:P}=ha();this.events.once(Xt("session_approve",D),({error:U})=>{U?P(U):I(this.client.session.get(w))});let R=VE(Pn({},_),{topic:w,acknowledged:!1,self:_.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:y});return await this.client.session.set(w,R),await this.setExpiry(w,Yo(Cg)),{topic:w,acknowledged:C}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);let{id:n,reason:i}=r,{pairingTopic:o}=this.client.proposal.get(n);o&&(await this.sendError(n,o,i),await this.client.proposal.delete(n,Kr("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);let{topic:n,namespaces:i}=r,o=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:i}),{done:s,resolve:a,reject:u}=ha();return this.events.once(Xt("session_update",o),({error:l})=>{l?u(l):a()}),await this.client.session.update(n,{namespaces:i}),{acknowledged:s}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);let{topic:n}=r,i=await this.sendRequest(n,"wc_sessionExtend",{}),{done:o,resolve:s,reject:a}=ha();return this.events.once(Xt("session_extend",i),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,Yo(Cg)),{acknowledged:o}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:i,topic:o,expiry:s}=r,a=await this.sendRequest(o,"wc_sessionRequest",{request:i,chainId:n},s),{done:u,resolve:l,reject:p}=ha(s);return this.events.once(Xt("session_request",a),({error:h,result:y})=>{h?p(h):l(y)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;Cn(i)?await this.sendResult(o,n,i.result):Rr(i)&&await this.sendError(o,n,i.error),this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=await this.sendRequest(n,"wc_sessionPing",{}),{done:o,resolve:s,reject:a}=ha();this.events.once(Xt("session_ping",i),({error:u})=>{u?a(u):s()}),await o()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);let{topic:n,event:i,chainId:o}=r;await this.sendRequest(n,"wc_sessionEvent",{event:i,chainId:o})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);let{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",Kr("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>O7(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(r,n)=>{let{self:i}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await Promise.all([this.client.session.delete(r,Kr("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(i.publicKey),this.client.core.crypto.deleteSymKey(r),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,Kr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{let n=dd.wc_sessionRequest.req.ttl,{id:i,topic:o,params:s}=r;await this.client.pendingRequest.set(i,{id:i,topic:o,params:s}),n&&this.client.core.expirer.set(i,Yo(n))},this.sendRequest=async(r,n,i,o)=>{let s=zo(n,i),a=await this.client.core.crypto.encode(r,s),u=dd[n].req;return o&&(u.ttl=o),this.client.core.history.set(r,s),this.client.core.relayer.publish(r,a,u),s.id},this.sendResult=async(r,n,i)=>{let o=Nl(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=dd[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.sendError=async(r,n,i)=>{let o=sa(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=dd[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{pa(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{pa(i.expiry)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession(i)),...n.map(i=>this.deleteProposal(i))])},this.onRelayEventRequest=r=>{let{topic:n,payload:i}=r,o=i.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeRequest(n,i);case"wc_sessionSettle":return this.onSessionSettleRequest(n,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,i);case"wc_sessionExtend":return this.onSessionExtendRequest(n,i);case"wc_sessionPing":return this.onSessionPingRequest(n,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,i);case"wc_sessionRequest":return this.onSessionRequest(n,i);case"wc_sessionEvent":return this.onSessionEventRequest(n,i);default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async r=>{let{topic:n,payload:i}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeResponse(n,i);case"wc_sessionSettle":return this.onSessionSettleResponse(n,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,i);case"wc_sessionExtend":return this.onSessionExtendResponse(n,i);case"wc_sessionPing":return this.onSessionPingResponse(n,i);case"wc_sessionRequest":return this.onSessionRequestResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}},this.onSessionProposeRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidConnect(Pn({},n.params));let s=Yo(Ve.FIVE_MINUTES),a=Pn({id:o,pairingTopic:r,expiry:s},i);await this.setProposal(o,a),this.client.events.emit("session_proposal",{id:o,params:a})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(r,n)=>{let{id:i}=n;if(Cn(n)){let{result:o}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});let s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let a=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let u=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u});let l=await this.client.core.crypto.generateSharedKey(a,u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:r})}else Rr(n)&&(await this.client.proposal.delete(i,Kr("USER_DISCONNECTED")),this.events.emit(Xt("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidSessionSettleRequest(o);let{relay:s,controller:a,expiry:u,namespaces:l,requiredNamespaces:p,optionalNamespaces:h,sessionProperties:y}=n.params,v=Pn({topic:r,relay:s,expiry:u,namespaces:l,acknowledged:!0,requiredNamespaces:p,optionalNamespaces:h,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},y&&{sessionProperties:y});await this.sendResult(n.id,r,!0),this.events.emit(Xt("session_connect"),{session:v})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;Cn(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Xt("session_approve",i),{})):Rr(n)&&(await this.client.session.delete(r,Kr("USER_DISCONNECTED")),this.events.emit(Xt("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(Pn({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(o,r,!0),this.client.events.emit("session_update",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_update",i),{}):Rr(n)&&this.events.emit(Xt("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Yo(Cg)),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionExtendResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_extend",i),{}):Rr(n)&&this.events.emit(Xt("session_extend",i),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionPingResponse=(r,n)=>{let{id:i}=n;setTimeout(()=>{Cn(n)?this.events.emit(Xt("session_ping",i),{}):Rr(n)&&this.events.emit(Xt("session_ping",i),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),this.client.core.relayer.once(ur.publish,async()=>{await this.deleteSession(r)}),await this.sendResult(i,r,!0),this.client.events.emit("session_delete",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidRequest(Pn({topic:r},o)),await this.setPendingSessionRequest({id:i,topic:r,params:o}),this.client.events.emit("session_request",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(r,n)=>{let{id:i}=n;Cn(n)?this.events.emit(Xt("session_request",i),{result:n.result}):Rr(n)&&this.events.emit(Xt("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(Pn({topic:r},o)),this.client.events.emit("session_event",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.isValidConnect=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(u)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:a}=r;if(an(n)||await this.isValidPairingTopic(n),!M7(a,!0)){let{message:u}=ge("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(u)}!an(i)&&Vl(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!an(o)&&Vl(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),an(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let i=N7(r,"connect()",n);if(i)throw new Error(i.message)},this.isValidApprove=async r=>{if(!Tn(r))throw new Error(ge("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:o,sessionProperties:s}=r;await this.isValidProposalId(n);let a=this.client.proposal.get(n),u=fd(i,"approve()");if(u)throw new Error(u.message);let l=Sg(a.requiredNamespaces,i,"approve()","requiredNamespaces");if(l)throw new Error(l.message);if(!cr(o,!0)){let{message:p}=ge("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(p)}if(Object.keys(i).length>Object.keys(a.requiredNamespaces).length){let p=Object.keys(a.optionalNamespaces).filter(v=>i[v]),h={};for(let v in a.optionalNamespaces)p.includes(v)&&(h[v]=a.optionalNamespaces[v]);let y=Sg(h,i,"approve()","optionalNamespaces");if(y)throw new Error(y.message)}an(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!Tn(r)){let{message:o}=ge("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(o)}let{id:n,reason:i}=r;if(await this.isValidProposalId(n),!L7(i)){let{message:o}=ge("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!Tn(r)){let{message:l}=ge("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:o,expiry:s}=r;if(!LE(n)){let{message:l}=ge("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=A7(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=fd(o,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(pa(s)){let{message:l}=ge("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(u)}let{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);let o=this.client.session.get(n),s=fd(i,"update()");if(s)throw new Error(s.message);let a=Sg(o.requiredNamespaces,i,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!Tn(r)){let{message:u}=ge("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(u)}let{topic:n,request:i,chainId:o,expiry:s}=r;await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!FE(a,o)){let{message:u}=ge("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(u)}if(!F7(i)){let{message:u}=ge("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!V7(a,o,i.method)){let{message:u}=ge("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}if(s&&!j7(s,UE)){let{message:u}=ge("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${UE.min} and ${UE.max}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!Tn(r)){let{message:o}=ge("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(o)}let{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!$7(i)){let{message:o}=ge("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!Tn(r)){let{message:a}=ge("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:o}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!FE(s,o)){let{message:a}=ge("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!U7(i)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!B7(s,o,i.name)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!Tn(r)){let{message:i}=ge("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(i=>{if(!cr(i,!1)){let{message:o}=ge("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(i)}`);throw new Error(o)}})}}isInitialized(){if(!this.initialized){let{message:t}=ge("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(ur.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let i=await this.client.core.crypto.decode(r,n);kl(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):aa(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(sn.expired,async t=>{let{topic:r,id:n}=D7(t.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,ge("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(t){if(!cr(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=ge("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!cr(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=ge("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.core.pairing.pairings.keys.includes(t))this.isValidPairingTopic(t);else if(cr(t,!1)){let{message:r}=ge("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=ge("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!k7(t)){let{message:r}=ge("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(pa(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=ge("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},jE=class extends da{constructor(t,r){super(t,r,XZ,KE),this.core=t,this.logger=r}},zE=class extends da{constructor(t,r){super(t,r,JZ,KE),this.core=t,this.logger=r}},HE=class extends da{constructor(t,r){super(t,r,QZ,KE),this.core=t,this.logger=r}},Bl=class extends xg{constructor(t){super(t),this.protocol=q7,this.version=W7,this.name=$E.name,this.events=new Tg.EventEmitter,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}},this.update=async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}},this.request=async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}},this.find=n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(t==null?void 0:t.name)||$E.name,this.metadata=(t==null?void 0:t.metadata)||P7();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,K7.default)((0,jl.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||$E.logger}));this.core=(t==null?void 0:t.core)||new l7(t),this.logger=(0,jl.generateChildLogger)(r,this.name),this.session=new zE(this.core,this.logger),this.proposal=new jE(this.core,this.logger),this.pendingRequest=new HE(this.core,this.logger),this.engine=new BE(this)}static async init(t){let r=new Bl(t);return await r.initialize(),r}get context(){return(0,jl.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}};c();d();f();var hQ=Y(S0()),pQ=Y(C0()),mQ=Y(Js()),ok=Y(D0()),sk=Y(A0());var WE=Y(Oi()),GE=Y(na()),gQ=Y(X7()),ak=Y(ik());var yQ={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function uk(e,t){let{message:r,code:n}=yQ[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var Nk=Y(lk(),1);c();d();f();c();d();f();c();d();f();var Tk=Y(dk());c();d();f();c();d();f();c();d();f();var hk="logger/5.7.0";var pk=!1,mk=!1,Ig={debug:1,default:2,info:2,warning:3,error:4,off:5},gk=Ig.default,XE=null;function vQ(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var yk=vQ(),JE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(JE||(JE={}));var zn;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(zn||(zn={}));var vk="0123456789abcdef",be=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Ig[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(gk>Ig[n])&&console.log.apply(console,r)}debug(...t){this._log(be.levels.DEBUG,t)}info(...t){this._log(be.levels.INFO,t)}warn(...t){this._log(be.levels.WARNING,t)}makeError(t,r,n){if(mk)return this.makeError("censored error",r,{});r||(r=be.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(u=>{let l=n[u];try{if(l instanceof Uint8Array){let p="";for(let h=0;h<l.length;h++)p+=vk[l[h]>>4],p+=vk[l[h]&15];i.push(u+"=Uint8Array(0x"+p+")")}else i.push(u+"="+JSON.stringify(l))}catch(p){i.push(u+"="+JSON.stringify(n[u].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let o=t,s="";switch(r){case zn.NUMERIC_FAULT:{s="NUMERIC_FAULT";let u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case zn.CALL_EXCEPTION:case zn.INSUFFICIENT_FUNDS:case zn.MISSING_NEW:case zn.NONCE_EXPIRED:case zn.REPLACEMENT_UNDERPRICED:case zn.TRANSACTION_REPLACED:case zn.UNPREDICTABLE_GAS_LIMIT:s=r;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");let a=new Error(t);return a.reason=o,a.code=r,Object.keys(n).forEach(function(u){a[u]=n[u]}),a}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,be.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),yk&&this.throwError("platform missing String.prototype.normalize",be.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:yk})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,be.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,be.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",be.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return XE||(XE=new be(hk)),XE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),pk){if(!t)return;this.globalLogger().throwError("error censorship permanent",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}mk=!!t,pk=!!r}static setLogLevel(t){let r=Ig[t.toLowerCase()];if(r==null){be.globalLogger().warn("invalid log level - "+t);return}gk=r}static from(t){return new be(t)}};be.errors=zn;be.levels=JE;c();d();f();var wk="bytes/5.7.0";var ma=new be(wk);function bk(e){return!!e.toHexString}function zl(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return zl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ek(e){return Hl(e)&&!(e.length%2)||hd(e)}function xk(e){return typeof e=="number"&&e==e&&e%1===0}function hd(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!xk(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!xk(r)||r<0||r>=256)return!1}return!0}function un(e,t){if(t||(t={}),typeof e=="number"){ma.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),zl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),bk(e)&&(e=e.toHexString()),Hl(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ma.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let i=0;i<r.length;i+=2)n.push(parseInt(r.substring(i,i+2),16));return zl(new Uint8Array(n))}return hd(e)?zl(new Uint8Array(e)):ma.throwArgumentError("invalid arrayify value","value",e)}function pd(e){let t=e.map(i=>un(i)),r=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return t.reduce((i,o)=>(n.set(o,i),i+o.length),0),zl(n)}function Og(e,t){e=un(e),e.length>t&&ma.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),zl(r)}function Hl(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var ZE="0123456789abcdef";function Kl(e,t){if(t||(t={}),typeof e=="number"){ma.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=ZE[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),bk(e))return e.toHexString();if(Hl(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ma.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(hd(e)){let r="0x";for(let n=0;n<e.length;n++){let i=e[n];r+=ZE[(i&240)>>4]+ZE[i&15]}return r}return ma.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var _k="bignumber/5.7.0";var e2=Tk.default.BN,ji=new be(_k),QE={},Sk=9007199254740991;var Ck=!1,rr=class{constructor(t,r){t!==QE&&ji.throwError("cannot call constructor directly; use BigNumber.from",be.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Wr(Ee(this).fromTwos(t))}toTwos(t){return Wr(Ee(this).toTwos(t))}abs(){return this._hex[0]==="-"?rr.from(this._hex.substring(1)):this}add(t){return Wr(Ee(this).add(Ee(t)))}sub(t){return Wr(Ee(this).sub(Ee(t)))}div(t){return rr.from(t).isZero()&&Dn("division-by-zero","div"),Wr(Ee(this).div(Ee(t)))}mul(t){return Wr(Ee(this).mul(Ee(t)))}mod(t){let r=Ee(t);return r.isNeg()&&Dn("division-by-zero","mod"),Wr(Ee(this).umod(r))}pow(t){let r=Ee(t);return r.isNeg()&&Dn("negative-power","pow"),Wr(Ee(this).pow(r))}and(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","and"),Wr(Ee(this).and(r))}or(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","or"),Wr(Ee(this).or(r))}xor(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&Dn("unbound-bitwise-result","xor"),Wr(Ee(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&Dn("negative-width","mask"),Wr(Ee(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Dn("negative-width","shl"),Wr(Ee(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Dn("negative-width","shr"),Wr(Ee(this).shrn(t))}eq(t){return Ee(this).eq(Ee(t))}lt(t){return Ee(this).lt(Ee(t))}lte(t){return Ee(this).lte(Ee(t))}gt(t){return Ee(this).gt(Ee(t))}gte(t){return Ee(this).gte(Ee(t))}isNegative(){return this._hex[0]==="-"}isZero(){return Ee(this).isZero()}toNumber(){try{return Ee(this).toNumber()}catch(t){Dn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return ji.throwError("this platform does not support BigInt",be.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Ck||(Ck=!0,ji.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?ji.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",be.errors.UNEXPECTED_ARGUMENT,{}):ji.throwError("BigNumber.toString does not accept parameters",be.errors.UNEXPECTED_ARGUMENT,{})),Ee(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof rr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new rr(QE,md(t)):t.match(/^-?[0-9]+$/)?new rr(QE,md(new e2(t))):ji.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&Dn("underflow","BigNumber.from",t),(t>=Sk||t<=-Sk)&&Dn("overflow","BigNumber.from",t),rr.from(String(t));let r=t;if(typeof r=="bigint")return rr.from(r.toString());if(hd(r))return rr.from(Kl(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return rr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Hl(n)||n[0]==="-"&&Hl(n.substring(1))))return rr.from(n)}return ji.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function md(e){if(typeof e!="string")return md(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&ji.throwArgumentError("invalid hex","value",e),e=md(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function Wr(e){return rr.from(md(e))}function Ee(e){let t=rr.from(e).toHexString();return t[0]==="-"?new e2("-"+t.substring(3),16):new e2(t.substring(2),16)}function Dn(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),ji.throwError(e,be.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var Pk="strings/5.7.0";var Dk=new be(Pk),gd;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(gd||(gd={}));var ga;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(ga||(ga={}));function wQ(e,t,r,n,i){return Dk.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function Ik(e,t,r,n,i){if(e===ga.BAD_PREFIX||e===ga.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===ga.OVERRUN?r.length-t-1:0}function xQ(e,t,r,n,i){return e===ga.OVERLONG?(n.push(i),0):(n.push(65533),Ik(e,t,r,n,i))}var bQ=Object.freeze({error:wQ,ignore:Ik,replace:xQ});function t2(e,t=gd.current){t!=gd.current&&(Dk.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;let o=e.charCodeAt(n);if(n>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");let s=65536+((i&1023)<<10)+(o&1023);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return un(r)}c();d();f();var Ok="solidity/5.7.0";var EQ=new RegExp("^bytes([0-9]+)$"),_Q=new RegExp("^(u?int)([0-9]*)$"),SQ=new RegExp("^(.*)\\[([0-9]*)\\]$"),CQ="0000000000000000000000000000000000000000000000000000000000000000",ql=new be(Ok);function Ak(e,t,r){switch(e){case"address":return r?Og(t,32):un(t);case"string":return t2(t);case"bytes":return un(t);case"bool":return t=t?"0x01":"0x00",r?Og(t,32):un(t)}let n=e.match(_Q);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&ql.throwArgumentError("invalid number type","type",e),r&&(i=256),t=rr.from(t).toTwos(i),Og(t,i/8)}if(n=e.match(EQ),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&ql.throwArgumentError("invalid bytes type","type",e),un(t).byteLength!==i&&ql.throwArgumentError(`invalid value for ${e}`,"value",t),r?un((t+CQ).substring(0,66)):t}if(n=e.match(SQ),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&ql.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(Ak(i,a,!0))}),pd(s)}return ql.throwArgumentError("invalid type","type",e)}function Rk(e,t){e.length!=t.length&&ql.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(Ak(n,t[i]))}),Kl(pd(r))}function r2(e){return Ek(e)?i2(e):TQ(e)}function n2(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return i2(Rk(t,r))}function TQ(e){let t=x.from(e);return i2(t)}function i2(e){let t=BigInt(PQ(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function PQ(e){let t=Kl(pd([un(e)]));return"0x"+Nk.default.keccak_256(un(t))}var Mk=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},DQ=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},kk=e=>!e||typeof e=="string"?r2(e!=null?e:""):n2(e.types.map((t,r)=>[t,e.values[r]])),Lk=(e,t)=>t?(typeof t=="string"&&(t=DQ(["string"],[t])),n2([["uint256",r2(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])):n2([["uint256",r2(e).hash]]),Fk=e=>e?typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(","):"";var OQ={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},AQ=Nd()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",client:null,createClient:async(r,n,i,o,s=gD)=>{e({config:{app_id:r,action:n,signal:i,action_description:o,walletConnectProjectId:s}});try{let a=await Bl.init({projectId:s,metadata:{name:"IDKit",description:"Verify with World ID",url:"#",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:a}),t().connectClient(a)}catch(a){console.error(a)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:OQ});if(n){t().setUri(n);let o=await i();if(typeof o<"u")return e({topic:o.topic}),t().onConnectionEstablished(r)}}catch(n){e({errorCode:"connection_failed"}),console.error("Unable to establish a connection with the World app:",n)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:ux(r),mobile:ux(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:RQ(t().config)}).then(n=>{if(!NQ(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(ax).includes(o)&&(i=o),e({errorCode:i,verificationState:"failed"})}).finally(()=>void r.disconnect({topic:t().topic,reason:uk("USER_DISCONNECTED")})).catch(n=>{console.error(`Unable to disconnect: ${n}`)})},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,client:null,verificationState:"loading_widget"})}})),RQ=e=>({jsonrpc:"2.0",method:"world_id_v1",id:gT(1e5,9999999),params:[{app_id:e.app_id,action:Fk(e.action),signal:kk(e.signal).digest,action_description:e.action_description,external_nullifier:Lk(e.app_id,e.action).digest}]}),NQ=e=>{if(!e||typeof e!="object")return!1;let t="proof"in e?e.proof:void 0,r="merkle_root"in e?e.merkle_root:void 0,n="nullifier_hash"in e?e.nullifier_hash:void 0;if(!("credential_type"in e?e.credential_type:void 0))return!1;for(let o of[r,n,t])if(!o||!Mk(o))return!1;return!0},MQ=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,client:e.client,createClient:e.createClient,connectClient:e.connectClient,verificationState:e.verificationState}),kQ=(e,t,r,n,i)=>{let{result:o,verificationState:s,errorCode:a,qrData:u,client:l,createClient:p,reset:h}=AQ(MQ);return(0,$k.useEffect)(()=>{!e||l||p(e,t,r,n,i)},[e,t,r,i,n,l,p,s]),{result:o,reset:h,verificationState:s,errorCode:a,qrData:u}},Uk=kQ;var LQ=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage}),FQ=()=>{let e=Qa(),[t,r]=(0,yd.useState)(!1),{copy:n,app_id:i,action:o,signal:s,setStage:a,handleVerify:u,action_description:l,walletConnectProjectId:p}=Yr(LQ,eu),{result:h,qrData:y,verificationState:v,reset:w}=Uk(i,o,s,l,p);return(0,yd.useEffect)(()=>w,[w]),(0,yd.useEffect)(()=>{v==="failed"&&a("ERROR"),h&&u(h)},[h,w,u,v,a]),g.createElement("div",{className:"-mt-6 space-y-6"},g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm on the Worldcoin app":Ks(n,"heading")),g.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},v==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":Ks(n,"subheading"))),v==="awaiting_verification"?g.createElement("div",{className:"flex items-center justify-center"},g.createElement(Do,{className:"h-20 w-20"})):g.createElement(fD,{showQR:t,setShowQR:r,qrData:y}),(e=="desktop"||!t)&&g.createElement(mD,null))},Vk=FQ;c();d();f();var ye=Y(ue());c();d();f();var o2=Y(ue());var $Q=o2["useId".toString()]||(()=>{}),UQ=0;function Ag(e){let[t,r]=o2.useState($Q());return qs(()=>{e||r(n=>n!=null?n:String(UQ++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var Gr=Y(ue());var s2="focusScope.autoFocusOnMount",a2="focusScope.autoFocusOnUnmount",Bk={bubbles:!1,cancelable:!0};var Kk=(0,Gr.forwardRef)((e,t)=>{let _=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=_,s=de(_,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,Gr.useState)(null),l=Vr(i),p=Vr(o),h=(0,Gr.useRef)(null),y=vr(t,D=>u(D)),v=(0,Gr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,Gr.useEffect)(()=>{if(n){let D=function(I){if(v.paused||!a)return;let P=I.target;a.contains(P)?h.current=P:ya(h.current,{select:!0})},C=function(I){v.paused||!a||a.contains(I.relatedTarget)||ya(h.current,{select:!0})};return document.addEventListener("focusin",D),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",C)}}},[n,a,v.paused]),(0,Gr.useEffect)(()=>{if(a){zk.add(v);let D=document.activeElement;if(!a.contains(D)){let I=new CustomEvent(s2,Bk);a.addEventListener(s2,l),a.dispatchEvent(I),I.defaultPrevented||(VQ(KQ(qk(a)),{select:!0}),document.activeElement===D&&ya(a))}return()=>{a.removeEventListener(s2,l),setTimeout(()=>{let I=new CustomEvent(a2,Bk);a.addEventListener(a2,p),a.dispatchEvent(I),I.defaultPrevented||ya(D!=null?D:document.body,{select:!0}),a.removeEventListener(a2,p),zk.remove(v)},0)}}},[a,l,p,v]);let w=(0,Gr.useCallback)(D=>{if(!r&&!n||v.paused)return;let C=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,I=document.activeElement;if(C&&I){let P=D.currentTarget,[R,U]=BQ(P);R&&U?!D.shiftKey&&I===U?(D.preventDefault(),r&&ya(R,{select:!0})):D.shiftKey&&I===R&&(D.preventDefault(),r&&ya(U,{select:!0})):I===P&&D.preventDefault()}},[r,n,v.paused]);return(0,Gr.createElement)(tr.div,_e({tabIndex:-1},s,{ref:y,onKeyDown:w}))});function VQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ya(n,{select:t}),document.activeElement!==r)return}function BQ(e){let t=qk(e),r=jk(t,e),n=jk(t.reverse(),e);return[r,n]}function qk(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jk(e,t){for(let r of e)if(!jQ(r,{upTo:t}))return r}function jQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zQ(e){return e instanceof HTMLInputElement&&"select"in e}function ya(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&zQ(e)&&t&&e.select()}}var zk=HQ();function HQ(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=Hk(e,t),e.unshift(t)},remove(t){var r;e=Hk(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Hk(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function KQ(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var Gk=Y(ue()),u2=0;function Yk(){(0,Gk.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Wk()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Wk()),u2++,()=>{u2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),u2--}},[])}function Wk(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c();d();f();c();d();f();var kg=Y(ue());c();d();f();var Er=Y(ue());c();d();f();var va="right-scroll-bar-position",wa="width-before-scroll-bar",l2="with-scroll-bars-hidden",c2="--removed-body-scroll-bar-size";c();d();f();c();d();f();function Xk(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var Jk=Y(ue());function Zk(e,t){var r=(0,Jk.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}c();d();f();function f2(e,t){return Zk(t||null,function(r){return e.forEach(function(n){return Xk(n,r)})})}c();d();f();c();d();f();c();d();f();function qQ(e){return e}function WQ(e,t){t===void 0&&(t=qQ);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(o),s=r}var u=function(){var p=s;s=[],p.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){s.push(p),l()},filter:function(p){return s=s.filter(p),r}}}};return i}function d2(e){e===void 0&&(e={});var t=WQ(null);return t.options=En({async:!0,ssr:!1},e),t}c();d();f();var Qk=Y(ue()),eL=function(e){var t=e.sideCar,r=nm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return Qk.createElement(n,En({},r))};eL.isSideCarExport=!0;function h2(e,t){return e.useMedium(t),eL}var Rg=d2();var p2=function(){},vd=Er.forwardRef(function(e,t){var r=Er.useRef(null),n=Er.useState({onScrollCapture:p2,onWheelCapture:p2,onTouchMoveCapture:p2}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,y=e.sideCar,v=e.noIsolation,w=e.inert,_=e.allowPinchZoom,D=e.as,C=D===void 0?"div":D,I=nm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=y,R=f2([r,t]),U=En(En({},I),i);return Er.createElement(Er.Fragment,null,p&&Er.createElement(P,{sideCar:Rg,removeScrollBar:l,shards:h,noIsolation:v,inert:w,setCallbacks:o,allowPinchZoom:!!_,lockRef:r}),s?Er.cloneElement(Er.Children.only(a),En(En({},U),{ref:R})):Er.createElement(C,En({},U,{className:u,ref:R}),a))});vd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vd.classNames={fullWidth:wa,zeroRight:va};c();d();f();c();d();f();var _t=Y(ue());c();d();f();c();d();f();var Ng=Y(ue());c();d();f();c();d();f();c();d();f();var nL=Y(ue());c();d();f();c();d();f();var tL;var rL=function(){if(tL)return tL;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function GQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rL();return t&&e.setAttribute("nonce",t),e}function YQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=GQ())&&(YQ(t,r),XQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var g2=function(){var e=m2();return function(t,r){nL.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var wd=function(){var e=g2(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var JQ={left:0,top:0,right:0,gap:0},y2=function(e){return parseInt(e||"",10)||0},ZQ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[y2(r),y2(n),y2(i)]},v2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JQ;var t=ZQ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var QQ=wd(),eee=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
40
- .`.concat(l2,` {
39
+ `;var yl=K(K(K(K(K(K(K(K(K(K({},Gx),Yx),Xx),Jx),Qx),Zx),eb),tb),rb),nb),Z0e=K(K({},ab),ub);function DO(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var PO=DO("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),lb=DO("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=o0(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),gq=K({utf8:PO,"utf-8":PO,hex:yl.base16,latin1:lb,ascii:lb,binary:lb},yl),l0=gq;function c0(e,t="utf8"){let r=l0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();function f0(e,t="utf8"){let r=l0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?fl(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function d0(e){return c0(f0(sl(e),tO),jx)}function h0(e){let t=f0(aO,zx),r=sO+c0(uO([t,e]),zx);return[iO,oO,r].join(nO)}function yq(e){return c0(e,jx)}function IO(e){return f0([d0(e.header),d0(e.payload)].join(Bx),rO)}function AO(e){return[d0(e.header),d0(e.payload),yq(e.signature)].join(Bx)}function cb(e=(0,OO.randomBytes)(32)){return kf.generateKeyPairFromSeed(e)}async function NO(e,t,r,n,i=(0,RO.fromMiliseconds)(Date.now())){let o={alg:ZA,typ:eO},s=h0(n.publicKey),a=i+r,u={iss:s,sub:e,aud:t,iat:i,exp:a},l=IO({header:o,payload:u}),p=kf.sign(n.secretKey,l);return AO({header:o,payload:u,signature:p})}c();d();f();c();d();f();var Eb=Y(v0()),IR=Y(w0()),_b=Y(Hs()),jf=Y(E0()),A0=Y(C0());c();d();f();c();d();f();c();d();f();c();d();f();function Vf(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function wl(e,t){t||(t=e.reduce((i,o)=>i+o.length,0));let r=Vf(t),n=0;for(let i of e)r.set(i,n),n+=i.length;return r}c();d();f();c();d();f();c();d();f();function JO(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var XO=JO("utf8","u",e=>{let t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>new TextEncoder().encode(e.substring(1))),yb=JO("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=Vf(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Gq=K({utf8:XO,"utf-8":XO,hex:yl.base16,latin1:yb,ascii:yb,binary:yb},yl),T0=Gq;function Pr(e,t="utf8"){let r=T0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}c();d();f();function Dr(e,t="utf8"){let r=T0[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}c();d();f();c();d();f();var QO=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Yq=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var Xq=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var Jq=function(){function e(t,r,n,i){this.name=t,this.version=r,this.os=n,this.bot=i,this.type="bot-device"}return e}();var Qq=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var Zq=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var eW=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,tW=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,ZO=3,rW=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",eW]],eR=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function rR(e){return e?tR(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Zq:typeof navigator<"u"?tR(navigator.userAgent):oW()}function nW(e){return e!==""&&rW.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function tR(e){var t=nW(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Qq;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<ZO&&(i=QO(QO([],i,!0),sW(ZO-i.length),!0)):i=[];var o=i.join("."),s=iW(e),a=tW.exec(e);return a&&a[1]?new Jq(r,o,s,a[1]):new Yq(r,o,s)}function iW(e){for(var t=0,r=eR.length;t<r;t++){var n=eR[t],i=n[0],o=n[1],s=o.exec(e);if(s)return i}return null}function oW(){var e=typeof process<"u"&&process.version;return e?new Xq(process.version.slice(1)):null}function sW(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var Ro=Y(Ti()),Js=Y(Xs()),PW=Y(iR()),bl=Y(D0());c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();c();d();f();var I0={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};var AR="base10",Vr="base16",xb="base64pad",Sb="utf8",OR=0,Qs=1,DW=0,_R=1,bb=12,Cb=32;function RR(){let e=A0.generateKeyPair();return{privateKey:Dr(e.secretKey,Vr),publicKey:Dr(e.publicKey,Vr)}}function O0(){let e=(0,_b.randomBytes)(Cb);return Dr(e,Vr)}function NR(e,t){let r=A0.sharedKey(Pr(e,Vr),Pr(t,Vr)),n=new IR.HKDF(jf.SHA256,r).expand(Cb);return Dr(n,Vr)}function MR(e){let t=(0,jf.hash)(Pr(e,Vr));return Dr(t,Vr)}function zf(e){let t=(0,jf.hash)(Pr(e,Sb));return Dr(t,Vr)}function IW(e){return Pr(`${e}`,AR)}function El(e){return Number(Dr(e,AR))}function kR(e){let t=IW(typeof e.type<"u"?e.type:OR);if(El(t)===Qs&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let r=typeof e.senderPublicKey<"u"?Pr(e.senderPublicKey,Vr):void 0,n=typeof e.iv<"u"?Pr(e.iv,Vr):(0,_b.randomBytes)(bb),i=new Eb.ChaCha20Poly1305(Pr(e.symKey,Vr)).seal(n,Pr(e.message,Sb));return AW({type:t,sealed:i,iv:n,senderPublicKey:r})}function LR(e){let t=new Eb.ChaCha20Poly1305(Pr(e.symKey,Vr)),{sealed:r,iv:n}=R0(e.encoded),i=t.open(n,r);if(i===null)throw new Error("Failed to decrypt");return Dr(i,Sb)}function AW(e){if(El(e.type)===Qs){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Dr(wl([e.type,e.senderPublicKey,e.iv,e.sealed]),xb)}return Dr(wl([e.type,e.iv,e.sealed]),xb)}function R0(e){let t=Pr(e,xb),r=t.slice(DW,_R),n=_R;if(El(r)===Qs){let a=n+Cb,u=a+bb,l=t.slice(n,a),p=t.slice(a,u),h=t.slice(u);return{type:r,sealed:h,iv:p,senderPublicKey:l}}let i=n+bb,o=t.slice(n,i),s=t.slice(i);return{type:r,sealed:s,iv:o}}function FR(e,t){let r=R0(e);return Tb({type:El(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Dr(r.senderPublicKey,Vr):void 0,receiverPublicKey:t==null?void 0:t.receiverPublicKey})}function Tb(e){let t=(e==null?void 0:e.type)||OR;if(t===Qs){if(typeof(e==null?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(e==null?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:e==null?void 0:e.senderPublicKey,receiverPublicKey:e==null?void 0:e.receiverPublicKey}}function Pb(e){return e.type===Qs&&typeof e.senderPublicKey=="string"&&typeof e.receiverPublicKey=="string"}var OW=Object.defineProperty,SR=Object.getOwnPropertySymbols,RW=Object.prototype.hasOwnProperty,NW=Object.prototype.propertyIsEnumerable,CR=(e,t,r)=>t in e?OW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TR=(e,t)=>{for(var r in t||(t={}))RW.call(t,r)&&CR(e,r,t[r]);if(SR)for(var r of SR(t))NW.call(t,r)&&CR(e,r,t[r]);return e},MW="ReactNative",Bf={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};var kW="js";function $R(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function LW(){return!(0,Js.getDocument)()&&!!(0,Js.getNavigator)()&&navigator.product===MW}function FW(){return!$R()&&!!(0,Js.getNavigator)()}function $W(){return LW()?Bf.reactNative:$R()?Bf.node:FW()?Bf.browser:Bf.unknown}function UW(e,t){let r=bl.parse(e);return r=TR(TR({},r),t),e=bl.stringify(r),e}function VW(){let e=rR();if(e===null)return"unknown";let t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return e.type==="browser"?[t,e.name,e.version].join("-"):[t,e.version].join("-")}function BW(){var e;let t=$W();return t===Bf.browser?[t,((e=(0,Js.getLocation)())==null?void 0:e.host)||"unknown"].join(":"):t}function jW(e,t,r){let n=VW(),i=BW();return[[e,t].join("-"),[kW,r].join("-"),n,i].join("/")}function UR({protocol:e,version:t,relayUrl:r,sdkVersion:n,auth:i,projectId:o}){let s=r.split("?"),a=jW(e,t,n),u={auth:i,ua:a,projectId:o},l=UW(s[1]||"",u);return s[0]+"?"+l}function Db(e){return Object.fromEntries(e.entries())}function Ib(e){return new Map(Object.entries(e))}function VR(e){let t=(0,Ro.toMiliseconds)(e||Ro.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function Ab(e,t){return new Promise(async(r,n)=>{let i=setTimeout(()=>n(),t),o=await e;clearTimeout(i),r(o)})}function BR(e,t){if(typeof t=="string"&&t.startsWith(`${e}:`))return t;if(e.toLowerCase()==="topic"){if(typeof t!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}else if(e.toLowerCase()==="id"){if(typeof t!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function jR(e){return BR("topic",e)}function zR(e){return BR("id",e)}function HR(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function N0(e,t){return(0,Ro.fromMiliseconds)((t||Date.now())+(0,Ro.toMiliseconds)(e))}function Ob(e){return Date.now()>=(0,Ro.toMiliseconds)(e)}function M0(e,t){return`${e}${t?`:${t}`:""}`}var zW="irn";function k0(e){return(e==null?void 0:e.relay)||{protocol:zW}}function L0(e){let t=I0[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var HW=Object.defineProperty,PR=Object.getOwnPropertySymbols,KW=Object.prototype.hasOwnProperty,qW=Object.prototype.propertyIsEnumerable,DR=(e,t,r)=>t in e?HW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WW=(e,t)=>{for(var r in t||(t={}))KW.call(t,r)&&DR(e,r,t[r]);if(PR)for(var r of PR(t))qW.call(t,r)&&DR(e,r,t[r]);return e};function GW(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(i=>{if(i.startsWith(n)){let o=i.replace(n,""),s=e[i];r[o]=s}}),r}function KR(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),i=e.substring(t+1,r).split("@"),o=typeof r<"u"?e.substring(r):"",s=bl.parse(o);return{protocol:n,topic:i[0],version:parseInt(i[1],10),symKey:s.symKey,relay:GW(s)}}function YW(e,t="-"){let r="relay",n={};return Object.keys(e).forEach(i=>{let o=r+t+i;e[i]&&(n[o]=e[i])}),n}function qR(e){return`${e.protocol}:${e.topic}@${e.version}?`+bl.stringify(WW({symKey:e.symKey},YW(e.relay)))}var XW={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},JW={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ne(e,t){let{message:r,code:n}=JW[e];return{message:t?`${r} ${t}`:r,code:n}}function _l(e,t){let{message:r,code:n}=XW[e];return{message:t?`${r} ${t}`:r,code:n}}function Hf(e){return typeof e>"u"}function Rb(e,t){return t&&Hf(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function WR(e){if(Rb(e,!1))try{return typeof new URL(e)<"u"}catch(t){return!1}return!1}function GR(e){var t;return(t=e==null?void 0:e.proposer)==null?void 0:t.publicKey}function YR(e){return e==null?void 0:e.topic}function F0(e){return typeof e<"u"&&typeof e!==null}var Et=Y(Ti());c();d();f();c();d();f();var NN=Y(Do());var qt={};ur(qt,{DEFAULT_ERROR:()=>qf,IBaseJsonRpcProvider:()=>G0,IEvents:()=>Tl,IJsonRpcConnection:()=>$b,IJsonRpcProvider:()=>Wf,INTERNAL_ERROR:()=>$0,INVALID_PARAMS:()=>ZR,INVALID_REQUEST:()=>JR,METHOD_NOT_FOUND:()=>QR,PARSE_ERROR:()=>XR,RESERVED_ERROR_CODES:()=>Nb,SERVER_ERROR:()=>Kf,SERVER_ERROR_CODE_RANGE:()=>U0,STANDARD_ERROR_MAP:()=>No,formatErrorMessage:()=>ON,formatJsonRpcError:()=>Zs,formatJsonRpcRequest:()=>Lo,formatJsonRpcResult:()=>Cl,getError:()=>B0,getErrorByCode:()=>j0,isHttpUrl:()=>uG,isJsonRpcError:()=>Ir,isJsonRpcPayload:()=>Vb,isJsonRpcRequest:()=>Pl,isJsonRpcResponse:()=>ea,isJsonRpcResult:()=>wn,isJsonRpcValidationInvalid:()=>lG,isLocalhostUrl:()=>Ub,isNodeJs:()=>IN,isReservedErrorCode:()=>V0,isServerErrorCode:()=>QW,isValidDefaultRoute:()=>q0,isValidErrorCode:()=>eN,isValidLeadingWildcardRoute:()=>nG,isValidRoute:()=>rG,isValidTrailingWildcardRoute:()=>iG,isValidWildcardRoute:()=>W0,isWsUrl:()=>Y0,parseConnectionError:()=>Mb,payloadId:()=>AN,validateJsonRpcError:()=>ZW});c();d();f();c();d();f();var XR="PARSE_ERROR",JR="INVALID_REQUEST",QR="METHOD_NOT_FOUND",ZR="INVALID_PARAMS",$0="INTERNAL_ERROR",Kf="SERVER_ERROR",Nb=[-32700,-32600,-32601,-32602,-32603],U0=[-32e3,-32099],No={[XR]:{code:-32700,message:"Parse error"},[JR]:{code:-32600,message:"Invalid Request"},[QR]:{code:-32601,message:"Method not found"},[ZR]:{code:-32602,message:"Invalid params"},[$0]:{code:-32603,message:"Internal error"},[Kf]:{code:-32e3,message:"Server error"}},qf=Kf;c();d();f();function QW(e){return e<=U0[0]&&e>=U0[1]}function V0(e){return Nb.includes(e)}function eN(e){return typeof e=="number"}function B0(e){return Object.keys(No).includes(e)?No[e]:No[qf]}function j0(e){let t=Object.values(No).find(r=>r.code===e);return t||No[qf]}function ZW(e){if(typeof e.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof e.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!eN(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(V0(e.error.code)){let t=j0(e.error.code);if(t.message!==No[qf].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function Mb(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var Ft={};ur(Ft,{isNodeJs:()=>IN});c();d();f();var DN=Y(Fb());jt(Ft,Y(Fb()));var IN=DN.isNode;jt(qt,Ft);c();d();f();function AN(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function Lo(e,t,r){return{id:r||AN(),jsonrpc:"2.0",method:e,params:t}}function Cl(e,t){return{id:e,jsonrpc:"2.0",result:t}}function Zs(e,t,r){return{id:e,jsonrpc:"2.0",error:ON(t,r)}}function ON(e,t){return typeof e>"u"?B0($0):(typeof e=="string"&&(e=Object.assign(Object.assign({},B0(Kf)),{message:e})),typeof t<"u"&&(e.data=t),V0(e.code)&&(e=j0(e.code)),e)}c();d();f();function rG(e){return e.includes("*")?W0(e):!/\W/g.test(e)}function q0(e){return e==="*"}function W0(e){return q0(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function nG(e){return!q0(e)&&W0(e)&&!e.split("*")[0].trim()}function iG(e){return!q0(e)&&W0(e)&&!e.split("*")[1].trim()}c();d();f();c();d();f();c();d();f();c();d();f();var Tl=class{};c();d();f();var $b=class extends Tl{constructor(t){super()}},G0=class extends Tl{constructor(){super()}},Wf=class extends G0{constructor(t){super()}};c();d();f();c();d();f();var oG="^https?:",sG="^wss?:";function aG(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function RN(e,t){let r=aG(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function uG(e){return RN(e,oG)}function Y0(e){return RN(e,sG)}function Ub(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}c();d();f();function Vb(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Pl(e){return Vb(e)&&"method"in e}function ea(e){return Vb(e)&&(wn(e)||Ir(e))}function wn(e){return"result"in e}function Ir(e){return"error"in e}function lG(e){return"error"in e&&e.valid===!1}var X0=class extends Wf{constructor(t){super(t),this.events=new NN.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(Lo(t.method,t.params||[]),r)}async requestStrict(t,r){return new Promise(async(n,i)=>{if(!this.connection.connected)try{await this.open()}catch(o){i(o)}this.events.on(`${t.id}`,o=>{Ir(o)?i(o.error):n(o.result)});try{await this.connection.send(t,r)}catch(o){i(o)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),ea(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",()=>this.events.emit("disconnect")),this.connection.on("error",t=>this.events.emit("error",t)),this.hasRegisteredEventListeners=!0)}};c();d();f();c();d();f();var FN=Y(Do());var LN=10,cG=()=>typeof globalThis<"u"&&typeof globalThis.WebSocket<"u"?globalThis.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:kN(),fG=()=>typeof window<"u",dG=cG(),Bb=class{constructor(t){if(this.url=t,this.events=new FN.EventEmitter,this.registering=!1,!Y0(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=()=>{this.onClose(),t()},this.socket.close()})}async send(t,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(sl(t))}catch(n){this.onError(t.id,n)}}register(t=this.url){if(!Y0(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){let r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,i)=>{this.events.once("register_error",o=>{this.resetMaxListeners(),i(o)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return i(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{let i=(0,qt.isReactNative)()?void 0:{rejectUnauthorized:!Ub(t)},o=new dG(t,[],i);fG()?o.onerror=s=>{let a=s;n(this.emitError(a.error))}:o.on("error",s=>{n(this.emitError(s))}),o.onopen=()=>{this.onOpen(o),r(o)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=()=>this.onClose(),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(){this.socket=void 0,this.registering=!1,this.events.emit("close")}onPayload(t){if(typeof t.data>"u")return;let r=typeof t.data=="string"?Df(t.data):t.data;this.events.emit("payload",r)}onError(t,r){let n=this.parseError(r),i=n.message||n.toString(),o=Zs(t,i);this.events.emit("payload",o)}parseError(t,r=this.url){return Mb(t,r,"WS")}resetMaxListeners(){this.events.getMaxListeners()>LN&&this.events.setMaxListeners(LN)}emitError(t){let r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",r),r}},$N=Bb;var UN=$N;var VM=Y(xM());function zY(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(r[s]!==255)throw new TypeError(o+" is ambiguous");r[s]=i}var a=e.length,u=e.charAt(0),l=Math.log(a)/Math.log(256),p=Math.log(256)/Math.log(a);function h(v){if(v instanceof Uint8Array||(ArrayBuffer.isView(v)?v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength):Array.isArray(v)&&(v=Uint8Array.from(v))),!(v instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(v.length===0)return"";for(var _=0,D=0,C=0,I=v.length;C!==I&&v[C]===0;)C++,_++;for(var P=(I-C)*p+1>>>0,R=new Uint8Array(P);C!==I;){for(var U=v[C],j=0,F=P-1;(U!==0||j<D)&&F!==-1;F--,j++)U+=256*R[F]>>>0,R[F]=U%a>>>0,U=U/a>>>0;if(U!==0)throw new Error("Non-zero carry");D=j,C++}for(var $=P-D;$!==P&&R[$]===0;)$++;for(var G=u.repeat(_);$<P;++$)G+=e.charAt(R[$]);return G}function g(v){if(typeof v!="string")throw new TypeError("Expected String");if(v.length===0)return new Uint8Array;var _=0;if(v[_]!==" "){for(var D=0,C=0;v[_]===u;)D++,_++;for(var I=(v.length-_)*l+1>>>0,P=new Uint8Array(I);v[_];){var R=r[v.charCodeAt(_)];if(R===255)return;for(var U=0,j=I-1;(R!==0||U<C)&&j!==-1;j--,U++)R+=a*P[j]>>>0,P[j]=R%256>>>0,R=R/256>>>0;if(R!==0)throw new Error("Non-zero carry");C=U,_++}if(v[_]!==" "){for(var F=I-C;F!==I&&P[F]===0;)F++;for(var $=new Uint8Array(D+(I-F)),G=D;F!==I;)$[G++]=P[F++];return $}}}function w(v){var _=g(v);if(_)return _;throw new Error(`Non-${t} character`)}return{encode:h,decodeUnsafe:g,decode:w}}var HY=zY,KY=HY,BM=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},qY=e=>new TextEncoder().encode(e),WY=e=>new TextDecoder().decode(e),tE=class{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}},rE=class{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return jM(this,t)}},nE=class{constructor(t){this.decoders=t}or(t){return jM(this,t)}decode(t){let r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},jM=(e,t)=>new nE(K(K({},e.decoders||{[e.prefix]:e}),t.decoders||{[t.prefix]:t})),iE=class{constructor(t,r,n,i){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=i,this.encoder=new tE(t,r,n),this.decoder=new rE(t,r,i)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}},cg=({name:e,prefix:t,encode:r,decode:n})=>new iE(e,t,r,n),td=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=KY(r,t);return cg({prefix:e,name:t,encode:n,decode:o=>BM(i(o))})},GY=(e,t,r,n)=>{let i={};for(let p=0;p<t.length;++p)i[t[p]]=p;let o=e.length;for(;e[o-1]==="=";)--o;let s=new Uint8Array(o*r/8|0),a=0,u=0,l=0;for(let p=0;p<o;++p){let h=i[e[p]];if(h===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|h,a+=r,a>=8&&(a-=8,s[l++]=255&u>>a)}if(a>=r||255&u<<8-a)throw new SyntaxError("Unexpected end of data");return s},YY=(e,t,r)=>{let n=t[t.length-1]==="=",i=(1<<r)-1,o="",s=0,a=0;for(let u=0;u<e.length;++u)for(a=a<<8|e[u],s+=8;s>r;)s-=r,o+=t[i&a>>s];if(s&&(o+=t[i&a<<r-s]),n)for(;o.length*r&7;)o+="=";return o},sr=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>cg({prefix:t,name:e,encode(i){return YY(i,n,r)},decode(i){return GY(i,n,r,e)}}),XY=cg({prefix:"\0",name:"identity",encode:e=>WY(e),decode:e=>qY(e)}),JY=Object.freeze({__proto__:null,identity:XY}),QY=sr({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),ZY=Object.freeze({__proto__:null,base2:QY}),eX=sr({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),tX=Object.freeze({__proto__:null,base8:eX}),rX=td({prefix:"9",name:"base10",alphabet:"0123456789"}),nX=Object.freeze({__proto__:null,base10:rX}),iX=sr({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),oX=sr({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),sX=Object.freeze({__proto__:null,base16:iX,base16upper:oX}),aX=sr({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),uX=sr({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),lX=sr({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),cX=sr({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),fX=sr({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),dX=sr({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),hX=sr({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),pX=sr({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),mX=sr({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),gX=Object.freeze({__proto__:null,base32:aX,base32upper:uX,base32pad:lX,base32padupper:cX,base32hex:fX,base32hexupper:dX,base32hexpad:hX,base32hexpadupper:pX,base32z:mX}),yX=td({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),vX=td({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),wX=Object.freeze({__proto__:null,base36:yX,base36upper:vX}),xX=td({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),bX=td({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),EX=Object.freeze({__proto__:null,base58btc:xX,base58flickr:bX}),_X=sr({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),SX=sr({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),CX=sr({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),TX=sr({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),PX=Object.freeze({__proto__:null,base64:_X,base64pad:SX,base64url:CX,base64urlpad:TX}),zM=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),DX=zM.reduce((e,t,r)=>(e[r]=t,e),[]),IX=zM.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function AX(e){return e.reduce((t,r)=>(t+=DX[r],t),"")}function OX(e){let t=[];for(let r of e){let n=IX[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}var RX=cg({prefix:"\u{1F680}",name:"base256emoji",encode:AX,decode:OX}),NX=Object.freeze({__proto__:null,base256emoji:RX}),MX=HM,bM=128,kX=127,LX=~kX,FX=Math.pow(2,31);function HM(e,t,r){t=t||[],r=r||0;for(var n=r;e>=FX;)t[r++]=e&255|bM,e/=128;for(;e&LX;)t[r++]=e&255|bM,e>>>=7;return t[r]=e|0,HM.bytes=r-n+1,t}var $X=oE,UX=128,EM=127;function oE(e,n){var r=0,n=n||0,i=0,o=n,s,a=e.length;do{if(o>=a)throw oE.bytes=0,new RangeError("Could not decode varint");s=e[o++],r+=i<28?(s&EM)<<i:(s&EM)*Math.pow(2,i),i+=7}while(s>=UX);return oE.bytes=o-n,r}var VX=Math.pow(2,7),BX=Math.pow(2,14),jX=Math.pow(2,21),zX=Math.pow(2,28),HX=Math.pow(2,35),KX=Math.pow(2,42),qX=Math.pow(2,49),WX=Math.pow(2,56),GX=Math.pow(2,63),YX=function(e){return e<VX?1:e<BX?2:e<jX?3:e<zX?4:e<HX?5:e<KX?6:e<qX?7:e<WX?8:e<GX?9:10},XX={encode:MX,decode:$X,encodingLength:YX},KM=XX,_M=(e,t,r=0)=>(KM.encode(e,t,r),t),SM=e=>KM.encodingLength(e),sE=(e,t)=>{let r=t.byteLength,n=SM(e),i=n+SM(r),o=new Uint8Array(i+r);return _M(e,o,0),_M(r,o,n),o.set(t,i),new aE(e,r,t,o)},aE=class{constructor(t,r,n,i){this.code=t,this.size=r,this.digest=n,this.bytes=i}},qM=({name:e,code:t,encode:r})=>new uE(e,t,r),uE=class{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){let r=this.encode(t);return r instanceof Uint8Array?sE(this.code,r):r.then(n=>sE(this.code,n))}else throw Error("Unknown type, must be binary type")}},WM=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),JX=qM({name:"sha2-256",code:18,encode:WM("SHA-256")}),QX=qM({name:"sha2-512",code:19,encode:WM("SHA-512")}),ZX=Object.freeze({__proto__:null,sha256:JX,sha512:QX}),GM=0,eJ="identity",YM=BM,tJ=e=>sE(GM,YM(e)),rJ={code:GM,name:eJ,encode:YM,digest:tJ},nJ=Object.freeze({__proto__:null,identity:rJ});new TextEncoder,new TextDecoder;var CM=K(K(K(K(K(K(K(K(K(K({},JY),ZY),tX),nX),sX),gX),wX),EX),PX),NX);K(K({},ZX),nJ);function iJ(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function XM(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var TM=XM("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Zb=XM("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=iJ(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),oJ=K({utf8:TM,"utf-8":TM,hex:CM.base16,latin1:Zb,ascii:Zb,binary:Zb},CM);function sJ(e,t="utf8"){let r=oJ[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}var JM="wc",aJ=2,xE="core",Uo=`${JM}@${2}:${xE}:`,uJ={name:xE,logger:"error"},lJ={database:":memory:"},cJ="crypto",PM="client_ed25519_seed",fJ=Et.ONE_DAY,dJ="keychain",hJ="0.3",pJ="messages",mJ="0.3",gJ=Et.SIX_HOURS,yJ="publisher",bE="irn",vJ="error",wJ="wss://relay.walletconnect.com",xJ="relayer",or={message:"relayer_message",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},bJ="_subscription",ug={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},DM=Et.ONE_SECOND;var EJ="2.4.0",_J="0.3",ii={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"};var SJ="subscription",CJ="0.3",TJ=Et.FIVE_SECONDS*1e3,PJ="pairing",DJ="0.3";var Zf={wc_pairingDelete:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:Et.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:Et.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:Et.ONE_DAY,prompt:!1,tag:0},res:{ttl:Et.ONE_DAY,prompt:!1,tag:0}}},ni={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},IJ="history",AJ="0.3",OJ="expirer",Zr={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},RJ="0.3";var lE=class{constructor(t,r){this.core=t,this.logger=r,this.keychain=new Map,this.name=dJ,this.version=hJ,this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,i)=>{this.isInitialized(),this.keychain.set(n,i),await this.persist()},this.get=n=>{this.isInitialized();let i=this.keychain.get(n);if(typeof i>"u"){let{message:o}=Ne("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(o)}return i},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,Db(t))}async getKeyChain(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Ib(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},cE=class{constructor(t,r,n){this.core=t,this.logger=r,this.name=cJ,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=i=>(this.isInitialized(),this.keychain.has(i)),this.getClientId=async()=>{this.isInitialized();let i=await this.getClientSeed(),o=cb(i);return h0(o.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let i=RR();return this.setPrivateKey(i.publicKey,i.privateKey)},this.signJWT=async i=>{this.isInitialized();let o=await this.getClientSeed(),s=cb(o),a=O0();return await NO(a,i,fJ,s)},this.generateSharedKey=(i,o,s)=>{this.isInitialized();let a=this.getPrivateKey(i),u=NR(a,o);return this.setSymKey(u,s)},this.setSymKey=async(i,o)=>{this.isInitialized();let s=o||MR(i);return await this.keychain.set(s,i),s},this.deleteKeyPair=async i=>{this.isInitialized(),await this.keychain.del(i)},this.deleteSymKey=async i=>{this.isInitialized(),await this.keychain.del(i)},this.encode=async(i,o,s)=>{this.isInitialized();let a=Tb(s),u=sl(o);if(Pb(a)){let g=a.senderPublicKey,w=a.receiverPublicKey;i=await this.generateSharedKey(g,w)}let l=this.getSymKey(i),{type:p,senderPublicKey:h}=a;return kR({type:p,symKey:l,message:u,senderPublicKey:h})},this.decode=async(i,o,s)=>{this.isInitialized();let a=FR(o,s);if(Pb(a)){let p=a.receiverPublicKey,h=a.senderPublicKey;i=await this.generateSharedKey(p,h)}let u=this.getSymKey(i),l=LR({symKey:u,encoded:o});return Df(l)},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.keychain=n||new lE(this.core,this.logger)}get context(){return(0,Me.getLoggerContext)(this.logger)}getPayloadType(t){let r=R0(t);return El(r.type)}async setPrivateKey(t,r){return await this.keychain.set(t,r),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(PM)}catch(r){t=O0(),await this.keychain.set(PM,t)}return sJ(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},fE=class extends Gm{constructor(t,r){super(t,r),this.logger=t,this.core=r,this.messages=new Map,this.name=pJ,this.version=mJ,this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,i)=>{this.isInitialized();let o=zf(i),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[o]<"u"||(s[o]=i,this.messages.set(n,s),await this.persist()),o},this.get=n=>{this.isInitialized();let i=this.messages.get(n);return typeof i>"u"&&(i={}),i},this.has=(n,i)=>{this.isInitialized();let o=this.get(n),s=zf(i);return typeof o[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=(0,Me.generateChildLogger)(t,this.name),this.core=r}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,Db(t))}async getRelayerMessages(){let t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Ib(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},dE=class extends Ym{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.events=new ki.EventEmitter,this.name=yJ,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,i,o)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}});try{let s=(o==null?void 0:o.ttl)||gJ,a=k0(o),u=(o==null?void 0:o.prompt)||!1,l=(o==null?void 0:o.tag)||0,p={topic:n,message:i,opts:{ttl:s,relay:a,prompt:u,tag:l}},h=zf(i);this.queue.set(h,p);try{await await Ab(this.rpcPublish(n,i,s,a,u,l),this.publishTimeout),this.relayer.events.emit(or.publish,p)}catch(g){this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(or.connection_stalled);return}this.onPublish(h,p),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:i,opts:o}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.registerEventListeners()}get context(){return(0,Me.getLoggerContext)(this.logger)}rpcPublish(t,r,n,i,o,s){var a,u,l,p;let h={method:L0(i.protocol).publish,params:{topic:t,message:r,ttl:n,prompt:o,tag:s}};return Hf((a=h.params)==null?void 0:a.prompt)&&((u=h.params)==null||delete u.prompt),Hf((l=h.params)==null?void 0:l.tag)&&((p=h.params)==null||delete p.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(t,r){this.queue.delete(t)}checkQueue(){this.queue.forEach(async t=>{let{topic:r,message:n,opts:i}=t;await this.publish(r,n,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(Ol.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},hE=class{constructor(){this.map=new Map,this.set=(t,r)=>{let n=this.get(t);this.exists(t,r)||this.map.set(t,[...n,r])},this.get=t=>this.map.get(t)||[],this.exists=(t,r)=>this.get(t).includes(r),this.delete=(t,r)=>{if(typeof r>"u"){this.map.delete(t);return}if(!this.map.has(t))return;let n=this.get(t);if(!this.exists(t,r))return;let i=n.filter(o=>o!==r);if(!i.length){this.map.delete(t);return}this.map.set(t,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},NJ=Object.defineProperty,MJ=Object.defineProperties,kJ=Object.getOwnPropertyDescriptors,IM=Object.getOwnPropertySymbols,LJ=Object.prototype.hasOwnProperty,FJ=Object.prototype.propertyIsEnumerable,AM=(e,t,r)=>t in e?NJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lg=(e,t)=>{for(var r in t||(t={}))LJ.call(t,r)&&AM(e,r,t[r]);if(IM)for(var r of IM(t))FJ.call(t,r)&&AM(e,r,t[r]);return e},eE=(e,t)=>MJ(e,kJ(t)),pE=class extends Qm{constructor(t,r){super(t,r),this.relayer=t,this.logger=r,this.subscriptions=new Map,this.topicMap=new hE,this.events=new ki.EventEmitter,this.name=SJ,this.version=CJ,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Uo,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}});try{let o=k0(i),s={topic:n,relay:o};this.pending.set(n,s);let a=await this.rpcSubscribe(n,o);return this.onSubscribe(a,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:i}}),a}catch(o){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(o),o}},this.unsubscribe=async(n,i)=>{await this.restartToComplete(),this.isInitialized(),typeof(i==null?void 0:i.id)<"u"?await this.unsubscribeById(n,i.id,i):await this.unsubscribeByTopic(n,i)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((i,o)=>{let s=new Et.Watch;s.start(this.pendingSubscriptionWatchLabel);let a=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),i(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=TJ&&(clearInterval(a),s.stop(this.pendingSubscriptionWatchLabel),o(!1))},this.pollingInterval)}),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.clientId=""}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,r){let n=!1;try{n=this.getSubscription(t).topic===r}catch(i){}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear(),this.initialized=!1}async unsubscribeByTopic(t,r){let n=this.topicMap.get(t);await Promise.all(n.map(async i=>await this.unsubscribeById(t,i,r)))}async unsubscribeById(t,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}});try{let i=k0(n);await this.rpcUnsubscribe(t,r,i);let o=_l("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,r,o),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:r,opts:n}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}async rpcSubscribe(t,r){let n={method:L0(r.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Ab(this.relayer.provider.request(n),this.subscribeTimeout)}catch(i){this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(or.connection_stalled)}return zf(t+this.clientId)}rpcUnsubscribe(t,r,n){let i={method:L0(n.protocol).unsubscribe,params:{topic:t,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.provider.request(i)}onSubscribe(t,r){this.setSubscription(t,eE(lg({},r),{id:t})),this.pending.delete(r.topic)}onResubscribe(t,r){this.addSubscription(t,eE(lg({},r),{id:t})),this.pending.delete(r.topic)}async onUnsubscribe(t,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,t)&&this.deleteSubscription(r,n),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,r){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:r}),this.addSubscription(t,r))}addSubscription(t,r){this.subscriptions.set(t,lg({},r)),this.topicMap.set(r.topic,t),this.events.emit(ii.created,r)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});let r=this.subscriptions.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}deleteSubscription(t,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:r});let n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(ii.deleted,eE(lg({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(ii.sync)}async reset(){this.cached.length&&await Promise.all(this.cached.map(async t=>await this.resubscribe(t))),this.events.emit(ii.resubscribed)}async restore(){try{let t=await this.getRelayerSubscriptions();if(typeof t>"u"||!t.length)return;if(this.subscriptions.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async resubscribe(t){if(!this.ids.includes(t.id)){let{topic:r,relay:n}=t,i={topic:r,relay:n};this.pending.set(i.topic,i);let o=await this.rpcSubscribe(i.topic,i.relay);this.onResubscribe(o,i)}}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}checkPending(){this.relayer.transportExplicitlyClosed||this.pending.forEach(async t=>{let r=await this.rpcSubscribe(t.topic,t.relay);this.onSubscribe(r,t)})}registerEventListeners(){this.relayer.core.heartbeat.on(Ol.HEARTBEAT_EVENTS.pulse,()=>{this.checkPending()}),this.relayer.on(or.connect,async()=>{await this.onConnect()}),this.relayer.on(or.disconnect,()=>{this.onDisconnect()}),this.events.on(ii.created,async t=>{let r=ii.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()}),this.events.on(ii.deleted,async t=>{let r=ii.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise(t=>{let r=setInterval(()=>{this.restartInProgress||(clearInterval(r),t())},this.pollingInterval)})}},$J=Object.defineProperty,OM=Object.getOwnPropertySymbols,UJ=Object.prototype.hasOwnProperty,VJ=Object.prototype.propertyIsEnumerable,RM=(e,t,r)=>t in e?$J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BJ=(e,t)=>{for(var r in t||(t={}))UJ.call(t,r)&&RM(e,r,t[r]);if(OM)for(var r of OM(t))VJ.call(t,r)&&RM(e,r,t[r]);return e},mE=class extends Xm{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new ki.EventEmitter,this.name=xJ,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=t.core,this.logger=typeof t.logger<"u"&&typeof t.logger!="string"?(0,Me.generateChildLogger)(t.logger,this.name):(0,wE.default)((0,Me.getDefaultLoggerOptions)({level:t.logger||vJ})),this.messages=new fE(this.logger,t.core),this.subscriber=new pE(this,this.logger),this.publisher=new dE(this,this.logger),this.relayUrl=(t==null?void 0:t.relayUrl)||wJ,this.projectId=t.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return(0,Me.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,r,n){this.isInitialized(),await this.publisher.publish(t,r,n),await this.recordMessageEvent({topic:t,message:r})}async subscribe(t,r){this.isInitialized();let n="";return await Promise.all([new Promise(i=>{this.subscriber.once(ii.created,o=>{o.topic===t&&i()})}),new Promise(async i=>{n=await this.subscriber.subscribe(t,r),i()})]),n}async unsubscribe(t,r){this.isInitialized(),await this.subscriber.unsubscribe(t,r)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(or.transport_closed))}async transportOpen(t){if(!this.reconnecting){this.relayUrl=t||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(ii.resubscribed,()=>{r()})}),await Promise.race([this.provider.connect(),new Promise((r,n)=>this.once(or.transport_closed,()=>{n(new Error("closeTransport called before connection was established"))}))])])}catch(r){let n=r;if(!/socket hang up/i.test(n.message))throw r;this.logger.error(r),this.events.emit(or.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(t){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(r=>setTimeout(r,DM)),await this.transportOpen(t))}async createProvider(){let t=await this.core.crypto.signJWT(this.relayUrl);return new X0(new UN(UR({sdkVersion:EJ,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t})))}async recordMessageEvent(t){let{topic:r,message:n}=t;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(t){let{topic:r,message:n}=t;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),Pl(t)){if(!t.method.endsWith(bJ))return;let r=t.params,{topic:n,message:i}=r.data,o={topic:n,message:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(BJ({type:"event",event:r.id},o)),this.events.emit(r.id,o),await this.acknowledgePayload(t),await this.onMessageEvent(o)}}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(or.message,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){let r=Cl(t.id,!0);await this.provider.connection.send(r)}registerEventListeners(){this.provider.on(ug.payload,t=>this.onProviderPayload(t)),this.provider.on(ug.connect,()=>{this.events.emit(or.connect)}),this.provider.on(ug.disconnect,()=>{this.events.emit(or.disconnect),this.attemptToReconnect()}),this.provider.on(ug.error,t=>this.events.emit(or.error,t)),this.events.on(or.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},(0,Et.toMiliseconds)(DM))}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},jJ=Object.defineProperty,NM=Object.getOwnPropertySymbols,zJ=Object.prototype.hasOwnProperty,HJ=Object.prototype.propertyIsEnumerable,MM=(e,t,r)=>t in e?jJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kM=(e,t)=>{for(var r in t||(t={}))zJ.call(t,r)&&MM(e,r,t[r]);if(NM)for(var r of NM(t))HJ.call(t,r)&&MM(e,r,t[r]);return e},oa=class extends Jm{constructor(t,r,n,i=Uo,o=void 0){super(t,r,n,i),this.core=t,this.logger=r,this.name=n,this.map=new Map,this.version=_J,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{GR(s)?this.map.set(s.id,s):YR(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Hf(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,a)=>{this.isInitialized(),this.map.has(s)?await this.update(s,a):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:a}),this.map.set(s,a),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(a=>Object.keys(s).every(u=>(0,VM.default)(a[u],s[u]))):this.values),this.update=async(s,a)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:a});let u=kM(kM({},this.getData(s)),a);this.map.set(s,u),await this.persist()},this.delete=async(s,a)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:a}),this.map.delete(s),await this.persist())},this.logger=(0,Me.generateChildLogger)(r,this.name),this.storagePrefix=i,this.getKey=o}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){let r=this.map.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{let t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},gE=class{constructor(t,r){this.core=t,this.logger=r,this.name=PJ,this.version=DJ,this.events=new ki.default,this.initialized=!1,this.storagePrefix=Uo,this.ignoredPayloadTypes=[Qs],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=O0(),i=await this.core.crypto.setSymKey(n),o=N0(Et.FIVE_MINUTES),s={protocol:bE},a={topic:i,expiry:o,relay:s,active:!1},u=qR({protocol:this.core.protocol,version:this.core.version,topic:i,symKey:n,relay:s});return await this.pairings.set(i,a),await this.core.relayer.subscribe(i),this.core.expirer.set(i,o),{topic:i,uri:u}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:i,symKey:o,relay:s}=KR(n.uri),a=N0(Et.FIVE_MINUTES),u={topic:i,relay:s,expiry:a,active:!1};return await this.pairings.set(i,u),await this.core.crypto.setSymKey(o,i),await this.core.relayer.subscribe(i,{relay:s}),this.core.expirer.set(i,a),n.activatePairing&&await this.activate({topic:i}),u},this.activate=async({topic:n})=>{this.isInitialized();let i=N0(Et.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:i}),this.core.expirer.set(n,i)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:i}=n;if(this.pairings.keys.includes(i)){let o=await this.sendRequest(i,"wc_pairingPing",{}),{done:s,resolve:a,reject:u}=VR();this.events.once(M0("pairing_ping",o),({error:l})=>{l?u(l):a()}),await s()}},this.updateExpiry=async({topic:n,expiry:i})=>{this.isInitialized(),await this.pairings.update(n,{expiry:i})},this.updateMetadata=async({topic:n,metadata:i})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:i})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:i}=n;this.pairings.keys.includes(i)&&(await this.sendRequest(i,"wc_pairingDelete",_l("USER_DISCONNECTED")),await this.deletePairing(i))},this.sendRequest=async(n,i,o)=>{let s=Lo(i,o),a=await this.core.crypto.encode(n,s),u=Zf[i].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,a,u),s.id},this.sendResult=async(n,i,o)=>{let s=Cl(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Zf[u.request.method].res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.sendError=async(n,i,o)=>{let s=Zs(n,o),a=await this.core.crypto.encode(i,s),u=await this.core.history.get(i,n),l=Zf[u.request.method]?Zf[u.request.method].res:Zf.unregistered_method.res;await this.core.relayer.publish(i,a,l),await this.core.history.resolve(s)},this.deletePairing=async(n,i)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,_l("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),i?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(i=>Ob(i.expiry));await Promise.all(n.map(i=>this.deletePairing(i.topic)))},this.onRelayEventRequest=n=>{let{topic:i,payload:o}=n,s=o.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(i,o);case"wc_pairingDelete":return this.onPairingDeleteRequest(i,o);default:return this.onUnknownRpcMethodRequest(i,o)}},this.onRelayEventResponse=async n=>{let{topic:i,payload:o}=n,s=(await this.core.history.get(i,o.id)).request.method;if(this.pairings.keys.includes(i))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(i,o);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,i)=>{let{id:o}=i;try{this.isValidPing({topic:n}),await this.sendResult(o,n,!0),this.events.emit("pairing_ping",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,i)=>{let{id:o}=i;setTimeout(()=>{wn(i)?this.events.emit(M0("pairing_ping",o),{}):Ir(i)&&this.events.emit(M0("pairing_ping",o),{error:i.error})},500)},this.onPairingDeleteRequest=async(n,i)=>{let{id:o}=i;try{this.isValidDisconnect({topic:n}),await this.sendResult(o,n,!0),await this.deletePairing(n),this.events.emit("pairing_delete",{id:o,topic:n})}catch(s){await this.sendError(o,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,i)=>{let{id:o,method:s}=i;try{if(this.registeredMethods.includes(s))return;let a=_l("WC_METHOD_UNSUPPORTED",s);await this.sendError(o,n,a),this.logger.error(a)}catch(a){await this.sendError(o,n,a),this.logger.error(a)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(_l("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!F0(n)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(i)}if(!WR(n.uri)){let{message:i}=Ne("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(i)}},this.isValidPing=async n=>{if(!F0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidDisconnect=async n=>{if(!F0(n)){let{message:o}=Ne("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(o)}let{topic:i}=n;await this.isValidPairingTopic(i)},this.isValidPairingTopic=async n=>{if(!Rb(n,!1)){let{message:i}=Ne("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(i)}if(!this.pairings.keys.includes(n)){let{message:i}=Ne("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(i)}if(Ob(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:i}=Ne("EXPIRED",`pairing topic: ${n}`);throw new Error(i)}},this.core=t,this.logger=(0,Me.generateChildLogger)(r,this.name),this.pairings=new oa(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Me.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(or.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let i=await this.core.crypto.decode(r,n);Pl(i)?(this.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ea(i)&&(await this.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.core.expirer.on(Zr.expired,async t=>{let{topic:r}=HR(t.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}},yE=class extends Wm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.records=new Map,this.events=new ki.EventEmitter,this.name=IJ,this.version=AJ,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,i,o)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:i,chainId:o}),this.records.has(i.id))return;let s={id:i.id,topic:n,request:{method:i.method,params:i.params||null},chainId:o};this.records.set(s.id,s),this.events.emit(ni.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let i=await this.getRecord(n.id);typeof i.response>"u"&&(i.response=Ir(n)?{error:n.error}:{result:n.result},this.records.set(i.id,i),this.events.emit(ni.updated,i))},this.get=async(n,i)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:i}),await this.getRecord(i)),this.delete=(n,i)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:i}),this.values.forEach(o=>{if(o.topic===n){if(typeof i<"u"&&o.id!==i)return;this.records.delete(o.id),this.events.emit(ni.deleted,o)}})},this.exists=async(n,i)=>(this.isInitialized(),this.records.has(i)?(await this.getRecord(i)).topic===n:!1),this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let t=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;let n={topic:r.topic,request:Lo(r.request.method,r.request.params,r.id),chainId:r.chainId};return t.push(n)}),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();let r=this.records.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(ni.sync)}async restore(){try{let t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(ni.created,t=>{let r=ni.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ni.updated,t=>{let r=ni.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()}),this.events.on(ni.deleted,t=>{let r=ni.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},vE=class extends Zm{constructor(t,r){super(t,r),this.core=t,this.logger=r,this.expirations=new Map,this.events=new ki.EventEmitter,this.name=OJ,this.version=RJ,this.cached=[],this.initialized=!1,this.storagePrefix=Uo,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let i=this.formatTarget(n);return typeof this.getExpiration(i)<"u"}catch(i){return!1}},this.set=(n,i)=>{this.isInitialized();let o=this.formatTarget(n),s={target:o,expiry:i};this.expirations.set(o,s),this.checkExpiry(o,s),this.events.emit(Zr.created,{target:o,expiration:s})},this.get=n=>{this.isInitialized();let i=this.formatTarget(n);return this.getExpiration(i)},this.del=n=>{if(this.isInitialized(),this.has(n)){let i=this.formatTarget(n),o=this.getExpiration(i);this.expirations.delete(i),this.events.emit(Zr.deleted,{target:i,expiration:o})}},this.on=(n,i)=>{this.events.on(n,i)},this.once=(n,i)=>{this.events.once(n,i)},this.off=(n,i)=>{this.events.off(n,i)},this.removeListener=(n,i)=>{this.events.removeListener(n,i)},this.logger=(0,Me.generateChildLogger)(r,this.name)}get context(){return(0,Me.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if(typeof t=="string")return jR(t);if(typeof t=="number")return zR(t);let{message:r}=Ne("UNKNOWN_TYPE",`Target type: ${typeof t}`);throw new Error(r)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Zr.sync)}async restore(){try{let t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){let{message:r}=Ne("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){let r=this.expirations.get(t);if(!r){let{message:n}=Ne("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(t,r){let{expiry:n}=r;(0,Et.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,r)}expire(t,r){this.expirations.delete(t),this.events.emit(Zr.expired,{target:t,expiration:r})}checkExpirations(){this.expirations.forEach((t,r)=>this.checkExpiry(r,t))}registerEventListeners(){this.core.heartbeat.on(Ol.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Zr.created,t=>{let r=Zr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Zr.expired,t=>{let r=Zr.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()}),this.events.on(Zr.deleted,t=>{let r=Zr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:t}),this.persist()})}isInitialized(){if(!this.initialized){let{message:t}=Ne("NOT_INITIALIZED",this.name);throw new Error(t)}}},KJ=Object.defineProperty,LM=Object.getOwnPropertySymbols,qJ=Object.prototype.hasOwnProperty,WJ=Object.prototype.propertyIsEnumerable,FM=(e,t,r)=>t in e?KJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$M=(e,t)=>{for(var r in t||(t={}))qJ.call(t,r)&&FM(e,r,t[r]);if(LM)for(var r of LM(t))WJ.call(t,r)&&FM(e,r,t[r]);return e},ed=class extends qm{constructor(t){super(t),this.protocol=JM,this.version=aJ,this.name=xE,this.events=new ki.EventEmitter,this.initialized=!1,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.projectId=t==null?void 0:t.projectId;let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,wE.default)((0,Me.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||uJ.logger}));this.logger=(0,Me.generateChildLogger)(r,this.name),this.heartbeat=new Ol.HeartBeat,this.crypto=new cE(this,this.logger,t==null?void 0:t.keychain),this.history=new yE(this,this.logger),this.expirer=new vE(this,this.logger),this.storage=t!=null&&t.storage?t.storage:new UM.default($M($M({},lJ),t==null?void 0:t.storageOptions)),this.relayer=new mE({core:this,logger:this.logger,relayUrl:t==null?void 0:t.relayUrl,projectId:this.projectId}),this.pairing=new gE(this,this.logger)}static async init(t){let r=new ed(t);return await r.initialize(),r}get context(){return(0,Me.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}},QM=ed;var Ml=Y(_x());c();d();f();Bm();var ZM=Y(Do());var fg=class{constructor(t){this.opts=t,this.protocol="wc",this.version=2}};var dg=class{constructor(t){this.client=t}};c();d();f();var YJ=Y(v0()),XJ=Y(w0()),JJ=Y(Hs()),nk=Y(E0()),ik=Y(C0());var Bo=Y(Ti()),EE=Y(Xs()),ok=Y(tk()),sk=Y(D0());function _E(e,t){return e.includes(":")?[e]:t.chains||[]}var ak=1;function uk(){return(0,ok.getWindowMetadata)()||{name:"",description:"",url:"",icons:[""]}}function Vo(e,t){return e.filter(r=>t.includes(r)).length===e.length}function sa(e){let t=(0,Bo.toMiliseconds)(e||Bo.FIVE_MINUTES),r,n,i;return{resolve:o=>{i&&r&&(clearTimeout(i),r(o))},reject:o=>{i&&n&&(clearTimeout(i),n(o))},done:()=>new Promise((o,s)=>{i=setTimeout(s,t),r=o,n=s})}}function lk(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if(t==="topic"&&typeof r=="string")n.topic=r;else if(t==="id"&&Number.isInteger(Number(r)))n.id=Number(r);else throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function jo(e,t){return(0,Bo.fromMiliseconds)((t||Date.now())+(0,Bo.toMiliseconds)(e))}function aa(e){return Date.now()>=(0,Bo.toMiliseconds)(e)}function Wt(e,t){return`${e}${t?`:${t}`:""}`}function rd(e){let t=[];return e.forEach(r=>{let[n,i]=r.split(":");t.push(`${n}:${i}`)}),t}function QJ(e){let t=[];return Object.values(e).forEach(r=>{t.push(...rd(r.accounts))}),t}function ZJ(e,t){let r=[];return Object.values(e).forEach(n=>{rd(n.accounts).includes(t)&&r.push(...n.methods)}),r}function eQ(e,t){let r=[];return Object.values(e).forEach(n=>{rd(n.accounts).includes(t)&&r.push(...n.events)}),r}function ck(e,t){let r=nd(e,t);if(r)throw new Error(r.message);let n={};for(let[i,o]of Object.entries(e))n[i]={methods:o.methods,events:o.events,chains:o.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var tQ={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},rQ={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function ge(e,t){let{message:r,code:n}=rQ[e];return{message:t?`${r} ${t}`:r,code:n}}function Br(e,t){let{message:r,code:n}=tQ[e];return{message:t?`${r} ${t}`:r,code:n}}function pg(e,t){return Array.isArray(e)?typeof t<"u"&&e.length?e.every(t):!0:!1}function Rl(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function en(e){return typeof e>"u"}function ar(e,t){return t&&en(e)?!0:typeof e=="string"&&Boolean(e.trim().length)}function SE(e,t){return t&&en(e)?!0:typeof e=="number"&&!isNaN(e)}function fk(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return Vo(i,n)?(n.forEach(s=>{let{accounts:a,methods:u,events:l}=e.namespaces[s],p=rd(a),h=r[s];(!Vo(_E(s,h),p)||!Vo(h.methods,u)||!Vo(h.events,l))&&(o=!1)}),o):!1}function CE(e){return ar(e,!1)&&e.includes(":")?e.split(":").length===2:!1}function nQ(e){if(ar(e,!1)&&e.includes(":")){let t=e.split(":");if(t.length===3){let r=t[0]+":"+t[1];return!!t[2]&&CE(r)}}return!1}function dk(e,t){let r=null;return ar(e==null?void 0:e.publicKey,!1)||(r=ge("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function rk(e){let t=!0;return pg(e)?e.length&&(t=e.every(r=>ar(r,!1))):t=!1,t}function iQ(e,t,r){let n=null;return pg(t)?t.forEach(i=>{n||(!CE(i)||!i.includes(e))&&(n=Br("UNSUPPORTED_CHAINS",`${r}, chain ${i} should be a string and conform to "namespace:chainId" format`))}):n=Br("UNSUPPORTED_CHAINS",`${r}, chains ${t} should be an array of strings conforming to "namespace:chainId" format`),n}function oQ(e,t){let r=null;return Object.entries(e).forEach(([n,i])=>{if(r)return;let o=iQ(n,_E(n,i),`${t} requiredNamespace`);o&&(r=o)}),r}function sQ(e,t){let r=null;return pg(e)?e.forEach(n=>{r||nQ(n)||(r=Br("UNSUPPORTED_ACCOUNTS",`${t}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):r=Br("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}function aQ(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=sQ(n==null?void 0:n.accounts,`${t} namespace`);i&&(r=i)}),r}function uQ(e,t){let r=null;return rk(e==null?void 0:e.methods)?rk(e==null?void 0:e.events)||(r=Br("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):r=Br("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),r}function hk(e,t){let r=null;return Object.values(e).forEach(n=>{if(r)return;let i=uQ(n,`${t}, namespace`);i&&(r=i)}),r}function pk(e,t,r){let n=null;if(e&&Rl(e)){let i=hk(e,t);i&&(n=i);let o=oQ(e,t);o&&(n=o)}else n=ge("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function nd(e,t){let r=null;if(e&&Rl(e)){let n=hk(e,t);n&&(r=n);let i=aQ(e,t);i&&(r=i)}else r=ge("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function TE(e){return ar(e.protocol,!0)}function mk(e,t){let r=!1;return t&&!e?r=!0:e&&pg(e)&&e.length&&e.forEach(n=>{r=TE(n)}),r}function gk(e){return typeof e=="number"}function xn(e){return typeof e<"u"&&typeof e!==null}function yk(e){return!(!e||typeof e!="object"||!e.code||!SE(e.code,!1)||!e.message||!ar(e.message,!1))}function vk(e){return!(en(e)||!ar(e.method,!1))}function wk(e){return!(en(e)||en(e.result)&&en(e.error)||!SE(e.id,!1)||!ar(e.jsonrpc,!1))}function xk(e){return!(en(e)||!ar(e.name,!1))}function PE(e,t){return!(!CE(t)||!QJ(e).includes(t))}function bk(e,t,r){return ar(r,!1)?ZJ(e,t).includes(r):!1}function Ek(e,t,r){return ar(r,!1)?eQ(e,t).includes(r):!1}function mg(e,t,r,n){let i=null,o=Object.keys(e),s=Object.keys(t);return Vo(o,s)?o.forEach(a=>{if(i)return;let u=rd(t[a].accounts);Vo(_E(a,e[a]),u)?Vo(e[a].methods,t[a].methods)?Vo(e[a].events,t[a].events)||(i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${a}`)):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${a}`):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace chains for ${a}`)}):i=ge("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy ${n}`),i}function _k(e,t){return SE(e,!1)&&e<=t.max&&e>=t.min}var yg=Y(Do()),Ve=Y(Ti());var Pk="wc",Dk=2,Ik="client",kE=`${Pk}@${Dk}:${Ik}:`,DE={name:Ik,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"};var lQ="proposal";var cQ="session",gg=Ve.SEVEN_DAYS,fQ="engine",id={wc_sessionPropose:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Ve.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Ve.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Ve.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Ve.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Ve.THIRTY_SECONDS,prompt:!1,tag:1115}}},IE={min:Ve.FIVE_MINUTES,max:Ve.SEVEN_DAYS},dQ="request",hQ=Object.defineProperty,pQ=Object.defineProperties,mQ=Object.getOwnPropertyDescriptors,Sk=Object.getOwnPropertySymbols,gQ=Object.prototype.hasOwnProperty,yQ=Object.prototype.propertyIsEnumerable,Ck=(e,t,r)=>t in e?hQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bn=(e,t)=>{for(var r in t||(t={}))gQ.call(t,r)&&Ck(e,r,t[r]);if(Sk)for(var r of Sk(t))yQ.call(t,r)&&Ck(e,r,t[r]);return e},AE=(e,t)=>pQ(e,mQ(t)),OE=class extends dg{constructor(t){super(t),this.name=fQ,this.events=new yg.default,this.initialized=!1,this.ignoredPayloadTypes=[ak],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(id)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();let n=AE(bn({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:i,requiredNamespaces:o,optionalNamespaces:s,sessionProperties:a,relays:u}=n,l=i,p,h=!1;if(l&&(h=this.client.core.pairing.pairings.get(l).active),!l||!h){let{topic:P,uri:R}=await this.client.core.pairing.create();l=P,p=R}let g=await this.client.core.crypto.generateKeyPair(),w=bn({requiredNamespaces:o,optionalNamespaces:s,relays:u!=null?u:[{protocol:bE}],proposer:{publicKey:g,metadata:this.client.metadata}},a&&{sessionProperties:a}),{reject:v,resolve:_,done:D}=sa();if(this.events.once(Wt("session_connect"),async({error:P,session:R})=>{if(P)v(P);else if(R){R.self.publicKey=g;let U=AE(bn({},R),{requiredNamespaces:R.requiredNamespaces,optionalNamespaces:R.optionalNamespaces});await this.client.session.set(R.topic,U),await this.setExpiry(R.topic,R.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:R.peer.metadata}),_(U)}}),!l){let{message:P}=ge("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(P)}let C=await this.sendRequest(l,"wc_sessionPropose",w),I=jo(Ve.FIVE_MINUTES);return await this.setProposal(C,bn({id:C,expiry:I},w)),{uri:p,approval:D}},this.pair=async r=>(this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);let{id:n,relayProtocol:i,namespaces:o,sessionProperties:s}=r,a=this.client.proposal.get(n),{pairingTopic:u,proposer:l,requiredNamespaces:p,optionalNamespaces:h}=a;Rl(p)||(p=ck(o,"approve()"));let g=await this.client.core.crypto.generateKeyPair(),w=l.publicKey,v=await this.client.core.crypto.generateSharedKey(g,w);u&&n&&(await this.client.core.pairing.updateMetadata({topic:u,metadata:l.metadata}),await this.sendResult(n,u,{relay:{protocol:i!=null?i:"irn"},responderPublicKey:g}),await this.client.proposal.delete(n,Br("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:u}));let _=bn({relay:{protocol:i!=null?i:"irn"},namespaces:o,requiredNamespaces:p,optionalNamespaces:h,controller:{publicKey:g,metadata:this.client.metadata},expiry:jo(gg)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(v);let D=await this.sendRequest(v,"wc_sessionSettle",_),{done:C,resolve:I,reject:P}=sa();this.events.once(Wt("session_approve",D),({error:U})=>{U?P(U):I(this.client.session.get(v))});let R=AE(bn({},_),{topic:v,acknowledged:!1,self:_.controller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:g});return await this.client.session.set(v,R),await this.setExpiry(v,jo(gg)),{topic:v,acknowledged:C}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);let{id:n,reason:i}=r,{pairingTopic:o}=this.client.proposal.get(n);o&&(await this.sendError(n,o,i),await this.client.proposal.delete(n,Br("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);let{topic:n,namespaces:i}=r,o=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:i}),{done:s,resolve:a,reject:u}=sa();return this.events.once(Wt("session_update",o),({error:l})=>{l?u(l):a()}),await this.client.session.update(n,{namespaces:i}),{acknowledged:s}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);let{topic:n}=r,i=await this.sendRequest(n,"wc_sessionExtend",{}),{done:o,resolve:s,reject:a}=sa();return this.events.once(Wt("session_extend",i),({error:u})=>{u?a(u):s()}),await this.setExpiry(n,jo(gg)),{acknowledged:o}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);let{chainId:n,request:i,topic:o,expiry:s}=r,a=await this.sendRequest(o,"wc_sessionRequest",{request:i,chainId:n},s),{done:u,resolve:l,reject:p}=sa(s);return this.events.once(Wt("session_request",a),({error:h,result:g})=>{h?p(h):l(g)}),await u()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);let{topic:n,response:i}=r,{id:o}=i;wn(i)?await this.sendResult(o,n,i.result):Ir(i)&&await this.sendError(o,n,i.error),this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);let{topic:n}=r;if(this.client.session.keys.includes(n)){let i=await this.sendRequest(n,"wc_sessionPing",{}),{done:o,resolve:s,reject:a}=sa();this.events.once(Wt("session_ping",i),({error:u})=>{u?a(u):s()}),await o()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);let{topic:n,event:i,chainId:o}=r;await this.sendRequest(n,"wc_sessionEvent",{event:i,chainId:o})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);let{topic:n}=r;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",Br("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>fk(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(r,n)=>{let{self:i}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await Promise.all([this.client.session.delete(r,Br("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(i.publicKey),this.client.core.crypto.deleteSymKey(r),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,Br("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,i=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),i?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{let n=id.wc_sessionRequest.req.ttl,{id:i,topic:o,params:s}=r;await this.client.pendingRequest.set(i,{id:i,topic:o,params:s}),n&&this.client.core.expirer.set(i,jo(n))},this.sendRequest=async(r,n,i,o)=>{let s=Lo(n,i),a=await this.client.core.crypto.encode(r,s),u=id[n].req;return o&&(u.ttl=o),this.client.core.history.set(r,s),this.client.core.relayer.publish(r,a,u),s.id},this.sendResult=async(r,n,i)=>{let o=Cl(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=id[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.sendError=async(r,n,i)=>{let o=Zs(r,i),s=await this.client.core.crypto.encode(n,o),a=await this.client.core.history.get(n,r),u=id[a.request.method].res;this.client.core.relayer.publish(n,s,u),await this.client.core.history.resolve(o)},this.cleanup=async()=>{let r=[],n=[];this.client.session.getAll().forEach(i=>{aa(i.expiry)&&r.push(i.topic)}),this.client.proposal.getAll().forEach(i=>{aa(i.expiry)&&n.push(i.id)}),await Promise.all([...r.map(i=>this.deleteSession(i)),...n.map(i=>this.deleteProposal(i))])},this.onRelayEventRequest=r=>{let{topic:n,payload:i}=r,o=i.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeRequest(n,i);case"wc_sessionSettle":return this.onSessionSettleRequest(n,i);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,i);case"wc_sessionExtend":return this.onSessionExtendRequest(n,i);case"wc_sessionPing":return this.onSessionPingRequest(n,i);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,i);case"wc_sessionRequest":return this.onSessionRequest(n,i);case"wc_sessionEvent":return this.onSessionEventRequest(n,i);default:return this.client.logger.info(`Unsupported request method ${o}`)}},this.onRelayEventResponse=async r=>{let{topic:n,payload:i}=r,o=(await this.client.core.history.get(n,i.id)).request.method;switch(o){case"wc_sessionPropose":return this.onSessionProposeResponse(n,i);case"wc_sessionSettle":return this.onSessionSettleResponse(n,i);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,i);case"wc_sessionExtend":return this.onSessionExtendResponse(n,i);case"wc_sessionPing":return this.onSessionPingResponse(n,i);case"wc_sessionRequest":return this.onSessionRequestResponse(n,i);default:return this.client.logger.info(`Unsupported response method ${o}`)}},this.onSessionProposeRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidConnect(bn({},n.params));let s=jo(Ve.FIVE_MINUTES),a=bn({id:o,pairingTopic:r,expiry:s},i);await this.setProposal(o,a),this.client.events.emit("session_proposal",{id:o,params:a})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(r,n)=>{let{id:i}=n;if(wn(n)){let{result:o}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});let s=this.client.proposal.get(i);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let a=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let u=o.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u});let l=await this.client.core.crypto.generateSharedKey(a,u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let p=await this.client.core.relayer.subscribe(l);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:p}),await this.client.core.pairing.activate({topic:r})}else Ir(n)&&(await this.client.proposal.delete(i,Br("USER_DISCONNECTED")),this.events.emit(Wt("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidSessionSettleRequest(o);let{relay:s,controller:a,expiry:u,namespaces:l,requiredNamespaces:p,optionalNamespaces:h,sessionProperties:g}=n.params,w=bn({topic:r,relay:s,expiry:u,namespaces:l,acknowledged:!0,requiredNamespaces:p,optionalNamespaces:h,controller:a.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:a.publicKey,metadata:a.metadata}},g&&{sessionProperties:g});await this.sendResult(n.id,r,!0),this.events.emit(Wt("session_connect"),{session:w})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(r,n)=>{let{id:i}=n;wn(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Wt("session_approve",i),{})):Ir(n)&&(await this.client.session.delete(r,Br("USER_DISCONNECTED")),this.events.emit(Wt("session_approve",i),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{let{params:i,id:o}=n;try{this.isValidUpdate(bn({topic:r},i)),await this.client.session.update(r,{namespaces:i.namespaces}),await this.sendResult(o,r,!0),this.client.events.emit("session_update",{id:o,topic:r,params:i})}catch(s){await this.sendError(o,r,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(r,n)=>{let{id:i}=n;wn(n)?this.events.emit(Wt("session_update",i),{}):Ir(n)&&this.events.emit(Wt("session_update",i),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{let{id:i}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,jo(gg)),await this.sendResult(i,r,!0),this.client.events.emit("session_extend",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionExtendResponse=(r,n)=>{let{id:i}=n;wn(n)?this.events.emit(Wt("session_extend",i),{}):Ir(n)&&this.events.emit(Wt("session_extend",i),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{let{id:i}=n;try{this.isValidPing({topic:r}),await this.sendResult(i,r,!0),this.client.events.emit("session_ping",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionPingResponse=(r,n)=>{let{id:i}=n;setTimeout(()=>{wn(n)?this.events.emit(Wt("session_ping",i),{}):Ir(n)&&this.events.emit(Wt("session_ping",i),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{let{id:i}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),this.client.core.relayer.once(or.publish,async()=>{await this.deleteSession(r)}),await this.sendResult(i,r,!0),this.client.events.emit("session_delete",{id:i,topic:r})}catch(o){await this.sendError(i,r,o),this.client.logger.error(o)}},this.onSessionRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidRequest(bn({topic:r},o)),await this.setPendingSessionRequest({id:i,topic:r,params:o}),this.client.events.emit("session_request",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(r,n)=>{let{id:i}=n;wn(n)?this.events.emit(Wt("session_request",i),{result:n.result}):Ir(n)&&this.events.emit(Wt("session_request",i),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{let{id:i,params:o}=n;try{this.isValidEmit(bn({topic:r},o)),this.client.events.emit("session_event",{id:i,topic:r,params:o})}catch(s){await this.sendError(i,r,s),this.client.logger.error(s)}},this.isValidConnect=async r=>{if(!xn(r)){let{message:u}=ge("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(u)}let{pairingTopic:n,requiredNamespaces:i,optionalNamespaces:o,sessionProperties:s,relays:a}=r;if(en(n)||await this.isValidPairingTopic(n),!mk(a,!0)){let{message:u}=ge("MISSING_OR_INVALID",`connect() relays: ${a}`);throw new Error(u)}!en(i)&&Rl(i)!==0&&this.validateNamespaces(i,"requiredNamespaces"),!en(o)&&Rl(o)!==0&&this.validateNamespaces(o,"optionalNamespaces"),en(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(r,n)=>{let i=pk(r,"connect()",n);if(i)throw new Error(i.message)},this.isValidApprove=async r=>{if(!xn(r))throw new Error(ge("MISSING_OR_INVALID",`approve() params: ${r}`).message);let{id:n,namespaces:i,relayProtocol:o,sessionProperties:s}=r;await this.isValidProposalId(n);let a=this.client.proposal.get(n),u=nd(i,"approve()");if(u)throw new Error(u.message);let l=mg(a.requiredNamespaces,i,"approve()","requiredNamespaces");if(l)throw new Error(l.message);if(!ar(o,!0)){let{message:p}=ge("MISSING_OR_INVALID",`approve() relayProtocol: ${o}`);throw new Error(p)}if(Object.keys(i).length>Object.keys(a.requiredNamespaces).length){let p=Object.keys(a.optionalNamespaces).filter(w=>i[w]),h={};for(let w in a.optionalNamespaces)p.includes(w)&&(h[w]=a.optionalNamespaces[w]);let g=mg(h,i,"approve()","optionalNamespaces");if(g)throw new Error(g.message)}en(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async r=>{if(!xn(r)){let{message:o}=ge("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(o)}let{id:n,reason:i}=r;if(await this.isValidProposalId(n),!yk(i)){let{message:o}=ge("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidSessionSettleRequest=r=>{if(!xn(r)){let{message:l}=ge("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(l)}let{relay:n,controller:i,namespaces:o,expiry:s}=r;if(!TE(n)){let{message:l}=ge("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(l)}let a=dk(i,"onSessionSettleRequest()");if(a)throw new Error(a.message);let u=nd(o,"onSessionSettleRequest()");if(u)throw new Error(u.message);if(aa(s)){let{message:l}=ge("EXPIRED","onSessionSettleRequest()");throw new Error(l)}},this.isValidUpdate=async r=>{if(!xn(r)){let{message:u}=ge("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(u)}let{topic:n,namespaces:i}=r;await this.isValidSessionTopic(n);let o=this.client.session.get(n),s=nd(i,"update()");if(s)throw new Error(s.message);let a=mg(o.requiredNamespaces,i,"update()","requiredNamespaces");if(a)throw new Error(a.message)},this.isValidExtend=async r=>{if(!xn(r)){let{message:i}=ge("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!xn(r)){let{message:u}=ge("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(u)}let{topic:n,request:i,chainId:o,expiry:s}=r;await this.isValidSessionTopic(n);let{namespaces:a}=this.client.session.get(n);if(!PE(a,o)){let{message:u}=ge("MISSING_OR_INVALID",`request() chainId: ${o}`);throw new Error(u)}if(!vk(i)){let{message:u}=ge("MISSING_OR_INVALID",`request() ${JSON.stringify(i)}`);throw new Error(u)}if(!bk(a,o,i.method)){let{message:u}=ge("MISSING_OR_INVALID",`request() method: ${i.method}`);throw new Error(u)}if(s&&!_k(s,IE)){let{message:u}=ge("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${IE.min} and ${IE.max}`);throw new Error(u)}},this.isValidRespond=async r=>{if(!xn(r)){let{message:o}=ge("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(o)}let{topic:n,response:i}=r;if(await this.isValidSessionTopic(n),!wk(i)){let{message:o}=ge("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw new Error(o)}},this.isValidPing=async r=>{if(!xn(r)){let{message:i}=ge("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!xn(r)){let{message:a}=ge("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(a)}let{topic:n,event:i,chainId:o}=r;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!PE(s,o)){let{message:a}=ge("MISSING_OR_INVALID",`emit() chainId: ${o}`);throw new Error(a)}if(!xk(i)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}if(!Ek(s,o,i.name)){let{message:a}=ge("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(i)}`);throw new Error(a)}},this.isValidDisconnect=async r=>{if(!xn(r)){let{message:i}=ge("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(i)}let{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(i=>{if(!ar(i,!1)){let{message:o}=ge("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(i)}`);throw new Error(o)}})}}isInitialized(){if(!this.initialized){let{message:t}=ge("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.client.core.relayer.on(or.message,async t=>{let{topic:r,message:n}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let i=await this.client.core.crypto.decode(r,n);Pl(i)?(this.client.core.history.set(r,i),this.onRelayEventRequest({topic:r,payload:i})):ea(i)&&(await this.client.core.history.resolve(i),this.onRelayEventResponse({topic:r,payload:i}))})}registerExpirerEvents(){this.client.core.expirer.on(Zr.expired,async t=>{let{topic:r,id:n}=lk(t.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,ge("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(t){if(!ar(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(r)}if(aa(this.client.core.pairing.pairings.get(t).expiry)){let{message:r}=ge("EXPIRED",`pairing topic: ${t}`);throw new Error(r)}}async isValidSessionTopic(t){if(!ar(t,!1)){let{message:r}=ge("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(r)}if(!this.client.session.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(r)}if(aa(this.client.session.get(t).expiry)){await this.deleteSession(t);let{message:r}=ge("EXPIRED",`session topic: ${t}`);throw new Error(r)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else if(this.client.core.pairing.pairings.keys.includes(t))this.isValidPairingTopic(t);else if(ar(t,!1)){let{message:r}=ge("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(r)}else{let{message:r}=ge("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(r)}}async isValidProposalId(t){if(!gk(t)){let{message:r}=ge("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(r)}if(!this.client.proposal.keys.includes(t)){let{message:r}=ge("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(r)}if(aa(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);let{message:r}=ge("EXPIRED",`proposal id: ${t}`);throw new Error(r)}}},RE=class extends oa{constructor(t,r){super(t,r,lQ,kE),this.core=t,this.logger=r}},NE=class extends oa{constructor(t,r){super(t,r,cQ,kE),this.core=t,this.logger=r}},ME=class extends oa{constructor(t,r){super(t,r,dQ,kE),this.core=t,this.logger=r}},Nl=class extends fg{constructor(t){super(t),this.protocol=Pk,this.version=Dk,this.name=DE.name,this.events=new yg.EventEmitter,this.on=(n,i)=>this.events.on(n,i),this.once=(n,i)=>this.events.once(n,i),this.off=(n,i)=>this.events.off(n,i),this.removeListener=(n,i)=>this.events.removeListener(n,i),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(i){throw this.logger.error(i.message),i}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(i){throw this.logger.error(i.message),i}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(i){throw this.logger.error(i.message),i}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(i){throw this.logger.error(i.message),i}},this.update=async n=>{try{return await this.engine.update(n)}catch(i){throw this.logger.error(i.message),i}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(i){throw this.logger.error(i.message),i}},this.request=async n=>{try{return await this.engine.request(n)}catch(i){throw this.logger.error(i.message),i}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(i){throw this.logger.error(i.message),i}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(i){throw this.logger.error(i.message),i}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(i){throw this.logger.error(i.message),i}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(i){throw this.logger.error(i.message),i}},this.find=n=>{try{return this.engine.find(n)}catch(i){throw this.logger.error(i.message),i}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=(t==null?void 0:t.name)||DE.name,this.metadata=(t==null?void 0:t.metadata)||uk();let r=typeof(t==null?void 0:t.logger)<"u"&&typeof(t==null?void 0:t.logger)!="string"?t.logger:(0,Tk.default)((0,Ml.getDefaultLoggerOptions)({level:(t==null?void 0:t.logger)||DE.logger}));this.core=(t==null?void 0:t.core)||new QM(t),this.logger=(0,Ml.generateChildLogger)(r,this.name),this.session=new NE(this.core,this.logger),this.proposal=new RE(this.core,this.logger),this.pendingRequest=new ME(this.core,this.logger),this.engine=new OE(this)}static async init(t){let r=new Nl(t);return await r.initialize(),r}get context(){return(0,Ml.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}};c();d();f();var wQ=Y(v0()),xQ=Y(w0()),bQ=Y(Hs()),Rk=Y(E0()),Nk=Y(C0());var LE=Y(Ti()),FE=Y(Xs()),EQ=Y(Ok()),Mk=Y(D0());var _Q={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function kk(e,t){let{message:r,code:n}=_Q[e];return{message:t?`${r} ${t}`:r,code:n}}c();d();f();var sL=Y(Lk(),1);c();d();f();c();d();f();c();d();f();var Zk=Y(Uk());c();d();f();c();d();f();c();d();f();var Vk="logger/5.7.0";var Bk=!1,jk=!1,xg={debug:1,default:2,info:2,warning:3,error:4,off:5},zk=xg.default,UE=null;function SQ(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var Hk=SQ(),VE;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(VE||(VE={}));var Fn;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Fn||(Fn={}));var Kk="0123456789abcdef",be=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();xg[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(zk>xg[n])&&console.log.apply(console,r)}debug(...t){this._log(be.levels.DEBUG,t)}info(...t){this._log(be.levels.INFO,t)}warn(...t){this._log(be.levels.WARNING,t)}makeError(t,r,n){if(jk)return this.makeError("censored error",r,{});r||(r=be.errors.UNKNOWN_ERROR),n||(n={});let i=[];Object.keys(n).forEach(u=>{let l=n[u];try{if(l instanceof Uint8Array){let p="";for(let h=0;h<l.length;h++)p+=Kk[l[h]>>4],p+=Kk[l[h]&15];i.push(u+"=Uint8Array(0x"+p+")")}else i.push(u+"="+JSON.stringify(l))}catch(p){i.push(u+"="+JSON.stringify(n[u].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);let o=t,s="";switch(r){case Fn.NUMERIC_FAULT:{s="NUMERIC_FAULT";let u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case Fn.CALL_EXCEPTION:case Fn.INSUFFICIENT_FUNDS:case Fn.MISSING_NEW:case Fn.NONCE_EXPIRED:case Fn.REPLACEMENT_UNDERPRICED:case Fn.TRANSACTION_REPLACED:case Fn.UNPREDICTABLE_GAS_LIMIT:s=r;break}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");let a=new Error(t);return a.reason=o,a.code=r,Object.keys(n).forEach(function(u){a[u]=n[u]}),a}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,be.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),Hk&&this.throwError("platform missing String.prototype.normalize",be.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Hk})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,be.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,be.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,be.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",be.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",be.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return UE||(UE=new be(Vk)),UE}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Bk){if(!t)return;this.globalLogger().throwError("error censorship permanent",be.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}jk=!!t,Bk=!!r}static setLogLevel(t){let r=xg[t.toLowerCase()];if(r==null){be.globalLogger().warn("invalid log level - "+t);return}zk=r}static from(t){return new be(t)}};be.errors=Fn;be.levels=VE;c();d();f();var qk="bytes/5.7.0";var ua=new be(qk);function Gk(e){return!!e.toHexString}function kl(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return kl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Yk(e){return Ll(e)&&!(e.length%2)||od(e)}function Wk(e){return typeof e=="number"&&e==e&&e%1===0}function od(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!Wk(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!Wk(r)||r<0||r>=256)return!1}return!0}function tn(e,t){if(t||(t={}),typeof e=="number"){ua.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),kl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Gk(e)&&(e=e.toHexString()),Ll(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":ua.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let i=0;i<r.length;i+=2)n.push(parseInt(r.substring(i,i+2),16));return kl(new Uint8Array(n))}return od(e)?kl(new Uint8Array(e)):ua.throwArgumentError("invalid arrayify value","value",e)}function sd(e){let t=e.map(i=>tn(i)),r=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return t.reduce((i,o)=>(n.set(o,i),i+o.length),0),kl(n)}function bg(e,t){e=tn(e),e.length>t&&ua.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),kl(r)}function Ll(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var BE="0123456789abcdef";function Fl(e,t){if(t||(t={}),typeof e=="number"){ua.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=BE[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Gk(e))return e.toHexString();if(Ll(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":ua.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(od(e)){let r="0x";for(let n=0;n<e.length;n++){let i=e[n];r+=BE[(i&240)>>4]+BE[i&15]}return r}return ua.throwArgumentError("invalid hexlify value","value",e)}c();d();f();var Xk="bignumber/5.7.0";var zE=Zk.default.BN,Li=new be(Xk),jE={},Jk=9007199254740991;var Qk=!1,Qt=class{constructor(t,r){t!==jE&&Li.throwError("cannot call constructor directly; use BigNumber.from",be.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return jr(Ee(this).fromTwos(t))}toTwos(t){return jr(Ee(this).toTwos(t))}abs(){return this._hex[0]==="-"?Qt.from(this._hex.substring(1)):this}add(t){return jr(Ee(this).add(Ee(t)))}sub(t){return jr(Ee(this).sub(Ee(t)))}div(t){return Qt.from(t).isZero()&&En("division-by-zero","div"),jr(Ee(this).div(Ee(t)))}mul(t){return jr(Ee(this).mul(Ee(t)))}mod(t){let r=Ee(t);return r.isNeg()&&En("division-by-zero","mod"),jr(Ee(this).umod(r))}pow(t){let r=Ee(t);return r.isNeg()&&En("negative-power","pow"),jr(Ee(this).pow(r))}and(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","and"),jr(Ee(this).and(r))}or(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","or"),jr(Ee(this).or(r))}xor(t){let r=Ee(t);return(this.isNegative()||r.isNeg())&&En("unbound-bitwise-result","xor"),jr(Ee(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&En("negative-width","mask"),jr(Ee(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&En("negative-width","shl"),jr(Ee(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&En("negative-width","shr"),jr(Ee(this).shrn(t))}eq(t){return Ee(this).eq(Ee(t))}lt(t){return Ee(this).lt(Ee(t))}lte(t){return Ee(this).lte(Ee(t))}gt(t){return Ee(this).gt(Ee(t))}gte(t){return Ee(this).gte(Ee(t))}isNegative(){return this._hex[0]==="-"}isZero(){return Ee(this).isZero()}toNumber(){try{return Ee(this).toNumber()}catch(t){En("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Li.throwError("this platform does not support BigInt",be.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Qk||(Qk=!0,Li.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Li.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",be.errors.UNEXPECTED_ARGUMENT,{}):Li.throwError("BigNumber.toString does not accept parameters",be.errors.UNEXPECTED_ARGUMENT,{})),Ee(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Qt)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new Qt(jE,ad(t)):t.match(/^-?[0-9]+$/)?new Qt(jE,ad(new zE(t))):Li.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&En("underflow","BigNumber.from",t),(t>=Jk||t<=-Jk)&&En("overflow","BigNumber.from",t),Qt.from(String(t));let r=t;if(typeof r=="bigint")return Qt.from(r.toString());if(od(r))return Qt.from(Fl(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return Qt.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Ll(n)||n[0]==="-"&&Ll(n.substring(1))))return Qt.from(n)}return Li.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function ad(e){if(typeof e!="string")return ad(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Li.throwArgumentError("invalid hex","value",e),e=ad(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function jr(e){return Qt.from(ad(e))}function Ee(e){let t=Qt.from(e).toHexString();return t[0]==="-"?new zE("-"+t.substring(3),16):new zE(t.substring(2),16)}function En(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),Li.throwError(e,be.errors.NUMERIC_FAULT,n)}c();d();f();c();d();f();c();d();f();var eL="strings/5.7.0";var tL=new be(eL),ud;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(ud||(ud={}));var la;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(la||(la={}));function CQ(e,t,r,n,i){return tL.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function rL(e,t,r,n,i){if(e===la.BAD_PREFIX||e===la.UNEXPECTED_CONTINUE){let o=0;for(let s=t+1;s<r.length&&r[s]>>6===2;s++)o++;return o}return e===la.OVERRUN?r.length-t-1:0}function TQ(e,t,r,n,i){return e===la.OVERLONG?(n.push(i),0):(n.push(65533),rL(e,t,r,n,i))}var PQ=Object.freeze({error:CQ,ignore:rL,replace:TQ});function HE(e,t=ud.current){t!=ud.current&&(tL.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;let o=e.charCodeAt(n);if(n>=e.length||(o&64512)!==56320)throw new Error("invalid utf-8 string");let s=65536+((i&1023)<<10)+(o&1023);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return tn(r)}c();d();f();var nL="solidity/5.7.0";var DQ=new RegExp("^bytes([0-9]+)$"),IQ=new RegExp("^(u?int)([0-9]*)$"),AQ=new RegExp("^(.*)\\[([0-9]*)\\]$"),OQ="0000000000000000000000000000000000000000000000000000000000000000",$l=new be(nL);function iL(e,t,r){switch(e){case"address":return r?bg(t,32):tn(t);case"string":return HE(t);case"bytes":return tn(t);case"bool":return t=t?"0x01":"0x00",r?bg(t,32):tn(t)}let n=e.match(IQ);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&$l.throwArgumentError("invalid number type","type",e),r&&(i=256),t=Qt.from(t).toTwos(i),bg(t,i/8)}if(n=e.match(DQ),n){let i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&$l.throwArgumentError("invalid bytes type","type",e),tn(t).byteLength!==i&&$l.throwArgumentError(`invalid value for ${e}`,"value",t),r?tn((t+OQ).substring(0,66)):t}if(n=e.match(AQ),n&&Array.isArray(t)){let i=n[1];parseInt(n[2]||String(t.length))!=t.length&&$l.throwArgumentError(`invalid array length for ${e}`,"value",t);let s=[];return t.forEach(function(a){s.push(iL(i,a,!0))}),sd(s)}return $l.throwArgumentError("invalid type","type",e)}function oL(e,t){e.length!=t.length&&$l.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,i){r.push(iL(n,t[i]))}),Fl(sd(r))}function KE(e){return Yk(e)?WE(e):RQ(e)}function qE(e){let[t,r]=e.reduce(([n,i],[o,s])=>(n.push(o),i.push(s),[n,i]),[[],[]]);return WE(oL(t,r))}function RQ(e){let t=x.from(e);return WE(t)}function WE(e){let t=BigInt(NQ(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function NQ(e){let t=Fl(sd([tn(e)]));return"0x"+sL.default.keccak_256(tn(t))}var aL=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66},MQ=(e,t)=>{if(e.length!==t.length)throw new Error("Types and values arrays must have the same length.");return{types:e,values:t}},uL=e=>!e||typeof e=="string"?KE(e!=null?e:""):qE(e.types.map((t,r)=>[t,e.values[r]])),lL=(e,t)=>t?(typeof t=="string"&&(t=MQ(["string"],[t])),qE([["uint256",KE(e).hash],...t.types.map((r,n)=>[r,t.values[n]])])):qE([["uint256",KE(e).hash]]),cL=e=>e?typeof e=="string"?e:e.types.map((t,r)=>`${t}(${e.values[r]})`).join(","):"";var LQ={eip155:{methods:["world_id_v1"],chains:["eip155:1"],events:["accountsChanged"]}},FQ=Cd()((e,t)=>({qrData:null,config:null,result:null,connected:!1,uri:"",topic:"",errorCode:null,verificationState:"loading_widget",client:null,createClient:async(r,n,i,o,s,a=rI)=>{o&&!o.length&&console.warn("Cannot set empty `credential_types`. Defaulting to only Orb credential."),e({config:{app_id:r,action:n,signal:i,action_description:s,walletConnectProjectId:a,credential_types:o!=null&&o.length?o:["orb"]}});try{let u=await Nl.init({projectId:a,metadata:{name:"IDKit",description:"Verify with World ID",url:"https://worldcoin.org",icons:["https://worldcoin.org/icons/logo-small.svg"]}});return e({client:u}),t().connectClient(u)}catch(u){console.error(u)}},connectClient:async r=>{try{let{uri:n,approval:i}=await r.connect({requiredNamespaces:LQ});if(n){t().setUri(n);let o=await i();if(typeof o<"u")return e({topic:o.topic}),t().onConnectionEstablished(r)}}catch(n){e({errorCode:"connection_failed"}),console.error("Unable to establish a connection with the World app:",n)}},setUri:r=>{!r||e({uri:r,verificationState:"awaiting_connection",qrData:{default:Zw(r),mobile:Zw(r,window.location.href)}})},onConnectionEstablished:async r=>{e({verificationState:"awaiting_verification"}),await r.request({topic:t().topic,chainId:"eip155:1",request:$Q(t().config)}).then(n=>{if(!UQ(n))return e({errorCode:"unexpected_response"});e({result:n,verificationState:"confirmed"})}).catch(n=>{let i="generic_error",o=n.message;o&&Object.values(ya).includes(o)&&(i=o),console.warn("Error receiving proof:",i),console.warn("Raw error response:",n),e({errorCode:i,verificationState:"failed"})}).finally(()=>void r.disconnect({topic:t().topic,reason:kk("USER_DISCONNECTED")})).catch(n=>{console.error(`Unable to disconnect: ${n}`)})},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,client:null,verificationState:"loading_widget"})}})),$Q=e=>({jsonrpc:"2.0",method:"world_id_v1",id:i5(1e5,9999999),params:[{app_id:e.app_id,action:cL(e.action),signal:uL(e.signal).digest,action_description:e.action_description,external_nullifier:lL(e.app_id,e.action).digest,credential_types:e.credential_types}]}),UQ=e=>{if(!e||typeof e!="object")return!1;let t="proof"in e?e.proof:void 0,r="merkle_root"in e?e.merkle_root:void 0,n="nullifier_hash"in e?e.nullifier_hash:void 0;if(!("credential_type"in e?e.credential_type:void 0))return!1;for(let o of[r,n,t])if(!o||!aL(o))return!1;return!0},VQ=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,client:e.client,createClient:e.createClient,connectClient:e.connectClient,verificationState:e.verificationState}),BQ=(e,t,r,n,i,o)=>{let{result:s,verificationState:a,errorCode:u,qrData:l,client:p,createClient:h,reset:g}=FQ(VQ),w=(0,Eg.useRef)(n);return(0,Eg.useEffect)(()=>{!e||p||h(e,t,r,w.current,i,o)},[e,t,r,o,i,p,h,a,w]),{result:s,reset:g,verificationState:a,errorCode:u,qrData:l}},fL=BQ;var jQ=e=>({signal:e.signal,copy:e.copy,app_id:e.app_id,action:e.action,credential_types:e.credential_types,action_description:e.action_description,walletConnectProjectId:e.walletConnectProjectId,handleVerify:e.handleVerify,setStage:e.setStage,setErrorState:e.setErrorState}),zQ=()=>{let e=Wa(),[t,r]=(0,ld.useState)(!1),{app_id:n,action:i,signal:o,setStage:s,handleVerify:a,action_description:u,walletConnectProjectId:l,credential_types:p,setErrorState:h}=Sn(jQ,Ga),{result:g,qrData:w,verificationState:v,reset:_,errorCode:D}=fL(n,i,o,p,u,l);return(0,ld.useEffect)(()=>_,[_]),(0,ld.useEffect)(()=>{v==="failed"&&(s("ERROR"),h({code:D!=null?D:"generic_error"})),g&&a(g)},[g,_,a,v,s,D,h]),y.createElement("div",{className:"-mt-6 space-y-6"},y.createElement("div",null,y.createElement("div",{className:"mb-2 flex items-center justify-center"},y.createElement(ym,{className:"text-0d151d h-8 dark:text-white"})),y.createElement("p",{className:"font-sora text-center text-2xl font-semibold text-gray-900 dark:text-white"},v==="awaiting_verification"?"Confirm in World App":"Continue with Worldcoin"),v==="awaiting_verification"&&y.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},"Please confirm the request in your app to continue.")),v==="awaiting_verification"?y.createElement("div",{className:"flex items-center justify-center"},y.createElement(lo,{className:"h-20 w-20"})):y.createElement(J8,{showQR:t,setShowQR:r,qrData:w}),(e=="desktop"||!t)&&(v==="awaiting_connection"||v==="loading_widget")&&y.createElement(tI,null))},dL=zQ;c();d();f();var ye=Y(ae());c();d();f();var GE=Y(ae());var HQ=GE["useId".toString()]||(()=>{}),KQ=0;function _g(e){let[t,r]=GE.useState(HQ());return Cs(()=>{e||r(n=>n!=null?n:String(KQ++))},[e]),e||(t?`radix-${t}`:"")}c();d();f();var zr=Y(ae());var YE="focusScope.autoFocusOnMount",XE="focusScope.autoFocusOnUnmount",hL={bubbles:!1,cancelable:!0};var yL=(0,zr.forwardRef)((e,t)=>{let _=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o}=_,s=de(_,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[a,u]=(0,zr.useState)(null),l=Lr(i),p=Lr(o),h=(0,zr.useRef)(null),g=mr(t,D=>u(D)),w=(0,zr.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,zr.useEffect)(()=>{if(n){let D=function(I){if(w.paused||!a)return;let P=I.target;a.contains(P)?h.current=P:ca(h.current,{select:!0})},C=function(I){w.paused||!a||a.contains(I.relatedTarget)||ca(h.current,{select:!0})};return document.addEventListener("focusin",D),document.addEventListener("focusout",C),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",C)}}},[n,a,w.paused]),(0,zr.useEffect)(()=>{if(a){mL.add(w);let D=document.activeElement;if(!a.contains(D)){let I=new CustomEvent(YE,hL);a.addEventListener(YE,l),a.dispatchEvent(I),I.defaultPrevented||(qQ(JQ(vL(a)),{select:!0}),document.activeElement===D&&ca(a))}return()=>{a.removeEventListener(YE,l),setTimeout(()=>{let I=new CustomEvent(XE,hL);a.addEventListener(XE,p),a.dispatchEvent(I),I.defaultPrevented||ca(D!=null?D:document.body,{select:!0}),a.removeEventListener(XE,p),mL.remove(w)},0)}}},[a,l,p,w]);let v=(0,zr.useCallback)(D=>{if(!r&&!n||w.paused)return;let C=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,I=document.activeElement;if(C&&I){let P=D.currentTarget,[R,U]=WQ(P);R&&U?!D.shiftKey&&I===U?(D.preventDefault(),r&&ca(R,{select:!0})):D.shiftKey&&I===R&&(D.preventDefault(),r&&ca(U,{select:!0})):I===P&&D.preventDefault()}},[r,n,w.paused]);return(0,zr.createElement)(rr.div,Ce({tabIndex:-1},s,{ref:g,onKeyDown:v}))});function qQ(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ca(n,{select:t}),document.activeElement!==r)return}function WQ(e){let t=vL(e),r=pL(t,e),n=pL(t.reverse(),e);return[r,n]}function vL(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function pL(e,t){for(let r of e)if(!GQ(r,{upTo:t}))return r}function GQ(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function YQ(e){return e instanceof HTMLInputElement&&"select"in e}function ca(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&YQ(e)&&t&&e.select()}}var mL=XQ();function XQ(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=gL(e,t),e.unshift(t)},remove(t){var r;e=gL(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function gL(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function JQ(e){return e.filter(t=>t.tagName!=="A")}c();d();f();var xL=Y(ae()),JE=0;function bL(){(0,xL.useEffect)(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:wL()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:wL()),JE++,()=>{JE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),JE--}},[])}function wL(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c();d();f();c();d();f();var Pg=Y(ae());c();d();f();var wr=Y(ae());c();d();f();var fa="right-scroll-bar-position",da="width-before-scroll-bar",QE="with-scroll-bars-hidden",ZE="--removed-body-scroll-bar-size";c();d();f();c();d();f();function EL(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}c();d();f();var _L=Y(ae());function SL(e,t){var r=(0,_L.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}c();d();f();function e_(e,t){return SL(t||null,function(r){return e.forEach(function(n){return EL(n,r)})})}c();d();f();c();d();f();c();d();f();function QQ(e){return e}function ZQ(e,t){t===void 0&&(t=QQ);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(a){return o(a)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(o),s=r}var u=function(){var p=s;s=[],p.forEach(o)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){s.push(p),l()},filter:function(p){return s=s.filter(p),r}}}};return i}function t_(e){e===void 0&&(e={});var t=ZQ(null);return t.options=yn({async:!0,ssr:!1},e),t}c();d();f();var CL=Y(ae()),TL=function(e){var t=e.sideCar,r=gm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return CL.createElement(n,yn({},r))};TL.isSideCarExport=!0;function r_(e,t){return e.useMedium(t),TL}var Sg=t_();var n_=function(){},cd=wr.forwardRef(function(e,t){var r=wr.useRef(null),n=wr.useState({onScrollCapture:n_,onWheelCapture:n_,onTouchMoveCapture:n_}),i=n[0],o=n[1],s=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,w=e.noIsolation,v=e.inert,_=e.allowPinchZoom,D=e.as,C=D===void 0?"div":D,I=gm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),P=g,R=e_([r,t]),U=yn(yn({},I),i);return wr.createElement(wr.Fragment,null,p&&wr.createElement(P,{sideCar:Sg,removeScrollBar:l,shards:h,noIsolation:w,inert:v,setCallbacks:o,allowPinchZoom:!!_,lockRef:r}),s?wr.cloneElement(wr.Children.only(a),yn(yn({},U),{ref:R})):wr.createElement(C,yn({},U,{className:u,ref:R}),a))});cd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cd.classNames={fullWidth:da,zeroRight:fa};c();d();f();c();d();f();var _t=Y(ae());c();d();f();c();d();f();var Cg=Y(ae());c();d();f();c();d();f();c();d();f();var IL=Y(ae());c();d();f();c();d();f();var PL;var DL=function(){if(PL)return PL;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eZ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DL();return t&&e.setAttribute("nonce",t),e}function tZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rZ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var i_=function(){var e=0,t=null;return{add:function(r){e==0&&(t=eZ())&&(tZ(t,r),rZ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var o_=function(){var e=i_();return function(t,r){IL.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var fd=function(){var e=o_(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t};c();d();f();var nZ={left:0,top:0,right:0,gap:0},s_=function(e){return parseInt(e||"",10)||0},iZ=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[s_(r),s_(n),s_(i)]},a_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nZ;var t=iZ(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var oZ=fd(),sZ=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
40
+ .`.concat(QE,` {
41
41
  overflow: hidden `).concat(n,`;
42
42
  padding-right: `).concat(a,"px ").concat(n,`;
43
43
  }
@@ -54,29 +54,29 @@ if (cid) {
54
54
  `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
55
55
  }
56
56
 
57
- .`).concat(va,` {
57
+ .`).concat(fa,` {
58
58
  right: `).concat(a,"px ").concat(n,`;
59
59
  }
60
60
 
61
- .`).concat(wa,` {
61
+ .`).concat(da,` {
62
62
  margin-right: `).concat(a,"px ").concat(n,`;
63
63
  }
64
64
 
65
- .`).concat(va," .").concat(va,` {
65
+ .`).concat(fa," .").concat(fa,` {
66
66
  right: 0 `).concat(n,`;
67
67
  }
68
68
 
69
- .`).concat(wa," .").concat(wa,` {
69
+ .`).concat(da," .").concat(da,` {
70
70
  margin-right: 0 `).concat(n,`;
71
71
  }
72
72
 
73
73
  body {
74
- `).concat(c2,": ").concat(a,`px;
74
+ `).concat(ZE,": ").concat(a,`px;
75
75
  }
76
- `)},w2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=Ng.useMemo(function(){return v2(i)},[i]);return Ng.createElement(QQ,{styles:eee(o,!t,i,r?"":"!important")})};c();d();f();var x2=!1;if(typeof window<"u")try{xd=Object.defineProperty({},"passive",{get:function(){return x2=!0,!0}}),window.addEventListener("test",xd,xd),window.removeEventListener("test",xd,xd)}catch(e){x2=!1}var xd,xa=x2?{passive:!1}:!1;c();d();f();var tee=function(e){return e.tagName==="TEXTAREA"},iL=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tee(e)&&r[t]==="visible")},ree=function(e){return iL(e,"overflowY")},nee=function(e){return iL(e,"overflowX")},b2=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=oL(e,r);if(n){var i=sL(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},iee=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},oee=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},oL=function(e,t){return e==="v"?ree(t):nee(t)},sL=function(e,t){return e==="v"?iee(t):oee(t)},see=function(e,t){return e==="h"&&t==="rtl"?-1:1},aL=function(e,t,r,n,i){var o=see(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,u=t.contains(a),l=!1,p=s>0,h=0,y=0;do{var v=sL(e,a),w=v[0],_=v[1],D=v[2],C=_-D-o*w;(w||C)&&oL(e,a)&&(h+=C,y+=w),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&(i&&h===0||!i&&s>h)||!p&&(i&&y===0||!i&&-s>y))&&(l=!0),l};var Mg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},uL=function(e){return[e.deltaX,e.deltaY]},lL=function(e){return e&&"current"in e?e.current:e},aee=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uee=function(e){return`
76
+ `)},u_=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=Cg.useMemo(function(){return a_(i)},[i]);return Cg.createElement(oZ,{styles:sZ(o,!t,i,r?"":"!important")})};c();d();f();var l_=!1;if(typeof window<"u")try{dd=Object.defineProperty({},"passive",{get:function(){return l_=!0,!0}}),window.addEventListener("test",dd,dd),window.removeEventListener("test",dd,dd)}catch(e){l_=!1}var dd,ha=l_?{passive:!1}:!1;c();d();f();var aZ=function(e){return e.tagName==="TEXTAREA"},AL=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!aZ(e)&&r[t]==="visible")},uZ=function(e){return AL(e,"overflowY")},lZ=function(e){return AL(e,"overflowX")},c_=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=OL(e,r);if(n){var i=RL(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},cZ=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},fZ=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},OL=function(e,t){return e==="v"?uZ(t):lZ(t)},RL=function(e,t){return e==="v"?cZ(t):fZ(t)},dZ=function(e,t){return e==="h"&&t==="rtl"?-1:1},NL=function(e,t,r,n,i){var o=dZ(e,window.getComputedStyle(t).direction),s=o*n,a=r.target,u=t.contains(a),l=!1,p=s>0,h=0,g=0;do{var w=RL(e,a),v=w[0],_=w[1],D=w[2],C=_-D-o*v;(v||C)&&OL(e,a)&&(h+=C,g+=v),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(p&&(i&&h===0||!i&&s>h)||!p&&(i&&g===0||!i&&-s>g))&&(l=!0),l};var Tg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ML=function(e){return[e.deltaX,e.deltaY]},kL=function(e){return e&&"current"in e?e.current:e},hZ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pZ=function(e){return`
77
77
  .block-interactivity-`.concat(e,` {pointer-events: none;}
78
78
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
79
- `)},lee=0,Wl=[];function cL(e){var t=_t.useRef([]),r=_t.useRef([0,0]),n=_t.useRef(),i=_t.useState(lee++)[0],o=_t.useState(function(){return wd()})[0],s=_t.useRef(e);_t.useEffect(function(){s.current=e},[e]),_t.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=mT([e.lockRef.current],(e.shards||[]).map(lL),!0).filter(Boolean);return _.forEach(function(D){return D.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=_t.useCallback(function(_,D){if("touches"in _&&_.touches.length===2)return!s.current.allowPinchZoom;var C=Mg(_),I=r.current,P="deltaX"in _?_.deltaX:I[0]-C[0],R="deltaY"in _?_.deltaY:I[1]-C[1],U,j=_.target,F=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in _&&F==="h"&&j.type==="range")return!1;var $=b2(F,j);if(!$)return!0;if($?U=F:(U=F==="v"?"h":"v",$=b2(F,j)),!$)return!1;if(!n.current&&"changedTouches"in _&&(P||R)&&(n.current=U),!U)return!0;var G=n.current||U;return aL(G,D,_,G==="h"?P:R,!0)},[]),u=_t.useCallback(function(_){var D=_;if(!(!Wl.length||Wl[Wl.length-1]!==o)){var C="deltaY"in D?uL(D):Mg(D),I=t.current.filter(function(U){return U.name===D.type&&U.target===D.target&&aee(U.delta,C)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var P=(s.current.shards||[]).map(lL).filter(Boolean).filter(function(U){return U.contains(D.target)}),R=P.length>0?a(D,P[0]):!s.current.noIsolation;R&&D.cancelable&&D.preventDefault()}}},[]),l=_t.useCallback(function(_,D,C,I){var P={name:_,delta:D,target:C,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),p=_t.useCallback(function(_){r.current=Mg(_),n.current=void 0},[]),h=_t.useCallback(function(_){l(_.type,uL(_),_.target,a(_,e.lockRef.current))},[]),y=_t.useCallback(function(_){l(_.type,Mg(_),_.target,a(_,e.lockRef.current))},[]);_t.useEffect(function(){return Wl.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",u,xa),document.addEventListener("touchmove",u,xa),document.addEventListener("touchstart",p,xa),function(){Wl=Wl.filter(function(_){return _!==o}),document.removeEventListener("wheel",u,xa),document.removeEventListener("touchmove",u,xa),document.removeEventListener("touchstart",p,xa)}},[]);var v=e.removeScrollBar,w=e.inert;return _t.createElement(_t.Fragment,null,w?_t.createElement(o,{styles:uee(i)}):null,v?_t.createElement(w2,{gapMode:"margin"}):null)}var fL=h2(Rg,cL);var dL=kg.forwardRef(function(e,t){return kg.createElement(vd,En({},e,{ref:t,sideCar:fL}))});dL.classNames=vd.classNames;var E2=dL;c();d();f();var cee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gl=new WeakMap,Lg=new WeakMap,Fg={},_2=0,hL=function(e){return e&&(e.host||hL(e.parentNode))},fee=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=hL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},dee=function(e,t,r,n){var i=fee(t,Array.isArray(e)?e:[e]);Fg[r]||(Fg[r]=new WeakMap);var o=Fg[r],s=[],a=new Set,u=new Set(i),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};i.forEach(l);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(y){if(a.has(y))p(y);else{var v=y.getAttribute(n),w=v!==null&&v!=="false",_=(Gl.get(y)||0)+1,D=(o.get(y)||0)+1;Gl.set(y,_),o.set(y,D),s.push(y),_===1&&w&&Lg.set(y,!0),D===1&&y.setAttribute(r,"true"),w||y.setAttribute(n,"true")}})};return p(t),a.clear(),_2++,function(){s.forEach(function(h){var y=Gl.get(h)-1,v=o.get(h)-1;Gl.set(h,y),o.set(h,v),y||(Lg.has(h)||h.removeAttribute(n),Lg.delete(h)),v||h.removeAttribute(r)}),_2--,_2||(Gl=new WeakMap,Gl=new WeakMap,Lg=new WeakMap,Fg={})}},pL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||cee(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),dee(n,i,r,"aria-hidden")):function(){return null}};var mL="Dialog",[gL,Lbe]=Ku(mL),[hee,zi]=gL(mL),pee=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,ye.useRef)(null),u=(0,ye.useRef)(null),[l=!1,p]=MT({prop:n,defaultProp:i,onChange:o});return(0,ye.createElement)(hee,{scope:t,triggerRef:a,contentRef:u,contentId:Ag(),titleId:Ag(),descriptionId:Ag(),open:l,onOpenChange:p,onOpenToggle:(0,ye.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var yL="DialogPortal",[mee,vL]=gL(yL,{forceMount:void 0}),gee=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=zi(yL,t);return(0,ye.createElement)(mee,{scope:t,forceMount:r},ye.Children.map(n,s=>(0,ye.createElement)(wf,{present:r||o.open},(0,ye.createElement)(sm,{asChild:!0,container:i},s))))},S2="DialogOverlay",yee=(0,ye.forwardRef)((e,t)=>{let r=vL(S2,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zi(S2,e.__scopeDialog);return o.modal?(0,ye.createElement)(wf,{present:n||o.open},(0,ye.createElement)(vee,_e({},i,{ref:t}))):null}),vee=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(S2,r);return(0,ye.createElement)(E2,{as:Io,allowPinchZoom:!0,shards:[i.contentRef]},(0,ye.createElement)(tr.div,_e({"data-state":bL(i.open)},n,{ref:t,style:H({pointerEvents:"auto"},n.style)})))}),Yl="DialogContent",wee=(0,ye.forwardRef)((e,t)=>{let r=vL(Yl,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zi(Yl,e.__scopeDialog);return(0,ye.createElement)(wf,{present:n||o.open},o.modal?(0,ye.createElement)(xee,_e({},i,{ref:t})):(0,ye.createElement)(bee,_e({},i,{ref:t})))}),xee=(0,ye.forwardRef)((e,t)=>{let r=zi(Yl,e.__scopeDialog),n=(0,ye.useRef)(null),i=vr(t,r.contentRef,n);return(0,ye.useEffect)(()=>{let o=n.current;if(o)return pL(o)},[]),(0,ye.createElement)(wL,_e({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yr(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:yr(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:yr(e.onFocusOutside,o=>o.preventDefault())}))}),bee=(0,ye.forwardRef)((e,t)=>{let r=zi(Yl,e.__scopeDialog),n=(0,ye.useRef)(!1);return(0,ye.createElement)(wL,_e({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);let a=i.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(a))&&i.preventDefault()}}))}),wL=(0,ye.forwardRef)((e,t)=>{let p=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o}=p,s=de(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=zi(Yl,r),u=(0,ye.useRef)(null),l=vr(t,u);return Yk(),(0,ye.createElement)(ye.Fragment,null,(0,ye.createElement)(Kk,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,ye.createElement)(Rw,_e({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":bL(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),xL="DialogTitle",Eee=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(xL,r);return(0,ye.createElement)(tr.h2,_e({id:i.titleId},n,{ref:t}))});var _ee="DialogClose",See=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zi(_ee,r);return(0,ye.createElement)(tr.button,_e({type:"button"},n,{ref:t,onClick:yr(e.onClick,()=>i.onOpenChange(!1))}))});function bL(e){return e?"open":"closed"}var Cee="DialogTitleWarning",[Fbe,$be]=xT(Cee,{contentName:Yl,titleName:xL,docsSlug:"dialog"});var EL=pee;var _L=gee,SL=yee,CL=wee,TL=Eee;var PL=See;var Xl=Y(ue(),1);c();d();f();var Pee=e=>g.createElement("svg",se(H({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),g.createElement("path",{d:"M13.961 2.717c-1.404-1.055-4.348 2.108-4.646 3.371a.262.262 0 0 0 .108.263.25.25 0 0 0 .28.001 54.105 54.105 0 0 1 2.108-1.436c1.072 1.234 1.206 2.596 1.206 2.596l.122-.177c.75-1.084 2.367-3.42.822-4.618Zm-3.536 5.354a.238.238 0 0 1 .09-.074c1.159-.55 5.424-.176 5.485 1.6.039 1.975-2.75 2.142-4.053 2.22l-.22.014s.96-.954 1.242-2.577a52.692 52.692 0 0 0-2.415-.788.247.247 0 0 1-.141-.11.254.254 0 0 1-.032-.176.243.243 0 0 1 .044-.109Zm-.775 2.046c.05-.007.1 0 .145.023 1.146.58 3.51 4.212 2.182 5.365-1.49 1.26-3.357-.86-4.228-1.848-.052-.06-.1-.115-.146-.165 0 0 1.331.173 2.755-.612a55.368 55.368 0 0 0-.899-2.417.255.255 0 0 1 .058-.28.244.244 0 0 1 .133-.066Zm-2.001.68c.025.03.042.066.05.105.27 1.27-1.052 5.417-2.764 5.078-1.898-.405-1.432-3.21-1.214-4.521l.036-.221s.698 1.17 2.186 1.814c.54-.87 1.02-1.716 1.299-2.218a.24.24 0 0 1 .314-.107.24.24 0 0 1 .093.07Zm-1.79-1.199a.26.26 0 0 1-.048.106C5 10.707.99 12.238.183 10.66c-.872-1.765 1.594-3.146 2.731-3.784l.18-.101s-.463 1.28-.031 2.87a50.668 50.668 0 0 0 2.515-.35.25.25 0 0 1 .278.186c.01.038.01.078.003.116Zm-.194-2.17a.236.236 0 0 1-.113.025c-1.276-.02-4.947-2.26-4.236-3.882.814-1.799 3.407-.694 4.607-.183l.192.082s-1.273.426-2.227 1.759c.71.732 1.415 1.397 1.834 1.784a.256.256 0 0 1 .032.34.241.241 0 0 1-.089.075Zm1.827-1.553a.247.247 0 0 1-.369-.024c-.777-1.033-1.34-5.352.35-5.798 1.889-.469 2.655 2.289 3.008 3.56l.056.202s-1.12-.75-2.738-.677a50.779 50.779 0 0 0-.23 2.573.256.256 0 0 1-.077.164Zm34.03 1.792c0 1.049-.197 1.947-.59 2.695-.389.745-.92 1.315-1.594 1.71-.671.397-1.432.595-2.284.595-.85 0-1.614-.198-2.288-.594-.67-.4-1.202-.971-1.595-1.716-.389-.748-.584-1.644-.584-2.69 0-1.049.195-1.946.584-2.69.393-.748.925-1.32 1.595-1.716.675-.396 1.437-.594 2.288-.594.852 0 1.613.198 2.284.594.674.396 1.206.968 1.595 1.716.392.744.588 1.641.588 2.69Zm-1.771 0c0-.738-.116-1.36-.347-1.868-.228-.51-.544-.895-.95-1.155a2.514 2.514 0 0 0-1.4-.394c-.528 0-.995.131-1.4.394-.405.26-.723.645-.954 1.155-.228.507-.342 1.13-.342 1.868 0 .738.114 1.362.342 1.873.23.507.549.892.954 1.155.405.26.872.39 1.4.39.529 0 .996-.13 1.4-.39.406-.263.722-.648.95-1.155.231-.51.347-1.135.347-1.873Zm-17.674 4.867L19.333 2.8h1.894l1.752 7.153h.09L24.94 2.8h1.724l1.875 7.158h.085L30.375 2.8h1.894l-2.744 9.734h-1.737l-1.947-6.83h-.075l-1.951 6.83h-1.738ZM43.053 2.8v9.734h1.76V8.969h1.793l1.91 3.565h1.966L48.379 8.68c.063-.025.125-.053.185-.081.513-.25.9-.604 1.163-1.06.266-.46.399-1.002.399-1.626 0-.62-.131-1.164-.394-1.63a2.66 2.66 0 0 0-1.154-1.093c-.506-.26-1.133-.39-1.88-.39h-3.645Zm1.76 4.705h1.624c.437 0 .795-.06 1.073-.18.279-.124.484-.303.617-.537.136-.238.204-.53.204-.875s-.068-.64-.204-.884a1.3 1.3 0 0 0-.622-.56c-.278-.13-.637-.196-1.077-.196h-1.614v3.232Zm6.8 5.029V2.8h1.761v8.256h4.282v1.478h-6.043Zm7.438 0h3.294c.988 0 1.833-.195 2.535-.585a3.907 3.907 0 0 0 1.62-1.677c.376-.73.564-1.6.564-2.615 0-1.01-.187-1.878-.56-2.604a3.906 3.906 0 0 0-1.605-1.668c-.693-.39-1.522-.585-2.487-.585h-3.36v9.734Zm3.21-1.526h-1.449V4.326h1.5c.659 0 1.21.123 1.652.37.447.244.784.614 1.011 1.108.228.491.342 1.109.342 1.853 0 .745-.114 1.366-.342 1.864a2.37 2.37 0 0 1-1.02 1.116c-.453.248-1.018.371-1.695.371ZM73.546 2.8v9.734h-1.761V2.8h1.761Zm1.773 9.734h3.295c.987 0 1.832-.195 2.535-.585a3.906 3.906 0 0 0 1.618-1.677c.377-.73.565-1.6.565-2.615 0-1.01-.186-1.878-.56-2.604a3.905 3.905 0 0 0-1.604-1.668c-.693-.39-1.522-.585-2.488-.585h-3.36v9.734Zm3.21-1.526h-1.448V4.326h1.5c.658 0 1.209.123 1.652.37.446.244.783.614 1.01 1.108.228.491.343 1.109.343 1.853 0 .745-.115 1.366-.342 1.864a2.371 2.371 0 0 1-1.02 1.116c-.453.248-1.018.371-1.696.371Z"})),DL=Pee;c();d();f();var Dee=e=>g.createElement("svg",se(H({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),IL=Dee;c();d();f();var OL=Y(ue(),1);var Iee=()=>g.createElement("div",{className:"space-y-6"},g.createElement("div",{className:"flex justify-center"},g.createElement(Do,{className:"h-24 w-24"})),g.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),AL=(0,OL.memo)(Iee);var Aee=({copy:e,open:t,processing:r,onOpenChange:n,stage:i,setStage:o,theme:s,computed:a,setOptions:u})=>({copy:e,stage:i,theme:s,setStage:o,processing:r,setOptions:u,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(i)}),Ree=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:u,autoClose:l,copy:p})=>{let{isOpen:h,onOpenChange:y,processing:v,stage:w,setStage:_,canGoBack:D,setOptions:C,copy:I,theme:P}=Yr(Aee,eu),R=Qa();(0,Xl.useEffect)(()=>{C({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:u,handleVerify:a,autoClose:l,copy:p,theme:i},"props")},[p,t,r,i,o,l,u,C,a,n,s]);let U=(0,Xl.useMemo)(()=>{switch(w){case"WORLD_ID":return Vk;case"SUCCESS":return XT;case"ERROR":return vT;case"ABOUT":return yT;case"PRIVACY":return GT;case"HOST_APP_VERIFICATION":return AL;default:throw new Error("Invalid IDKitStage.")}},[w]);return g.createElement(EL,{open:h,onOpenChange:y},e==null?void 0:e({open:()=>y(!0)}),g.createElement(_L,{forceMount:!0},g.createElement(Xl.Fragment,null,g.createElement(Bu,null,h&&g.createElement(p5.div,{mode:"open",id:"idkit-widget"},g.createElement(m5,null),g.createElement("div",{id:"modal",className:Vn(P=="dark"&&"dark","fixed z-10 font-sans")},g.createElement(SL,{asChild:!0},g.createElement(zt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),g.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},g.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},g.createElement(CL,{asChild:!0},g.createElement(zt.div,{layout:R=="mobile"?"position":!0,exit:R=="mobile"?"initMob":"init",initial:R=="mobile"?"initMob":"init",animate:R=="mobile"?"animateMob":"animate",variants:{init:{opacity:0,scale:.9},initMob:{translateY:"100%"},animate:{opacity:1,scale:1},animateMob:{translateY:0}},transition:{layout:{duration:.15}},className:"dark:bg-0d151d relative z-50 w-full rounded-t-3xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-3xl"},g.createElement(zT,null,g.createElement(HT,{className:"flex justify-center"}),g.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},g.createElement("button",{onClick:()=>_("WORLD_ID"),disabled:!D,className:Vn(!D&&"invisible pointer-events-none","dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white")},g.createElement(IL,{className:"w-4"})),g.createElement(TL,{className:"dark:text-d3dfea font-medium text-gray-900"},w!="ABOUT"&&Ks(I,"title")),g.createElement(PL,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},g.createElement(tp,{className:"h-5 w-5"}))),g.createElement("div",{className:"relative"},g.createElement(zt.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:v?"hidden":"visible"},transition:{layout:{duration:.15}}},g.createElement(U,null)),g.createElement(Bu,null,v&&g.createElement(zt.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},g.createElement(Do,{className:"h-24 w-24"})))),g.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-3xl"},g.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},g.createElement("span",null,"Verified with"),g.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},g.createElement(DL,{className:"text-0d151d h-4 dark:text-white"}))),w!="PRIVACY"?g.createElement("button",{onClick:()=>_("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):g.createElement("a",{target:"_blank",href:"https://id.worldcoin.org/privacy",className:"text-0d151d dark:text-9eafc0 text-sm",rel:"noreferrer"},"Learn More \u2192")))))))))))))},RL=Ree;var ML=(0,NL.memo)(RL);var C2,Jl=!1,Nee=e=>{if(Jl)throw new Error("IDKit is already initialized");if(!e.app_id)throw new Error("You must provide your App ID & Action");e.walletConnectProjectId||(console.warn("WalletConnect project ID not detected. Using default, but this is not advisable for production usage!"),console.warn("Get your own project ID at https://cloud.walletconnect.com/"));let t=()=>{try{if(!Jl){let r=document.createElement("div");document.body.appendChild(r),C2=(0,kL.createRoot)(r),C2.render(g.createElement(ML,H({},e))),A_(e.enableTelemetry),Jl=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},Mee=e=>{if(!Jl)throw new Error("IDKit is not initialized");Yr.getState().setOptions(e,"props")},kee=()=>new Promise((e,t)=>{if(!Jl)return t("IDKitWidget is not initialized");Yr.getState().addSuccessCallback(e,"manual"),Yr.setState({open:!0})}),Lee=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),C2.unmount(),Jl=!1,Yr.destroy()};return I2(Fee);})();
79
+ `)},mZ=0,Ul=[];function LL(e){var t=_t.useRef([]),r=_t.useRef([0,0]),n=_t.useRef(),i=_t.useState(mZ++)[0],o=_t.useState(function(){return fd()})[0],s=_t.useRef(e);_t.useEffect(function(){s.current=e},[e]),_t.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=W8([e.lockRef.current],(e.shards||[]).map(kL),!0).filter(Boolean);return _.forEach(function(D){return D.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(D){return D.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=_t.useCallback(function(_,D){if("touches"in _&&_.touches.length===2)return!s.current.allowPinchZoom;var C=Tg(_),I=r.current,P="deltaX"in _?_.deltaX:I[0]-C[0],R="deltaY"in _?_.deltaY:I[1]-C[1],U,j=_.target,F=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in _&&F==="h"&&j.type==="range")return!1;var $=c_(F,j);if(!$)return!0;if($?U=F:(U=F==="v"?"h":"v",$=c_(F,j)),!$)return!1;if(!n.current&&"changedTouches"in _&&(P||R)&&(n.current=U),!U)return!0;var G=n.current||U;return NL(G,D,_,G==="h"?P:R,!0)},[]),u=_t.useCallback(function(_){var D=_;if(!(!Ul.length||Ul[Ul.length-1]!==o)){var C="deltaY"in D?ML(D):Tg(D),I=t.current.filter(function(U){return U.name===D.type&&U.target===D.target&&hZ(U.delta,C)})[0];if(I&&I.should){D.cancelable&&D.preventDefault();return}if(!I){var P=(s.current.shards||[]).map(kL).filter(Boolean).filter(function(U){return U.contains(D.target)}),R=P.length>0?a(D,P[0]):!s.current.noIsolation;R&&D.cancelable&&D.preventDefault()}}},[]),l=_t.useCallback(function(_,D,C,I){var P={name:_,delta:D,target:C,should:I};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),p=_t.useCallback(function(_){r.current=Tg(_),n.current=void 0},[]),h=_t.useCallback(function(_){l(_.type,ML(_),_.target,a(_,e.lockRef.current))},[]),g=_t.useCallback(function(_){l(_.type,Tg(_),_.target,a(_,e.lockRef.current))},[]);_t.useEffect(function(){return Ul.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",u,ha),document.addEventListener("touchmove",u,ha),document.addEventListener("touchstart",p,ha),function(){Ul=Ul.filter(function(_){return _!==o}),document.removeEventListener("wheel",u,ha),document.removeEventListener("touchmove",u,ha),document.removeEventListener("touchstart",p,ha)}},[]);var w=e.removeScrollBar,v=e.inert;return _t.createElement(_t.Fragment,null,v?_t.createElement(o,{styles:pZ(i)}):null,w?_t.createElement(u_,{gapMode:"margin"}):null)}var FL=r_(Sg,LL);var $L=Pg.forwardRef(function(e,t){return Pg.createElement(cd,yn({},e,{ref:t,sideCar:FL}))});$L.classNames=cd.classNames;var f_=$L;c();d();f();var gZ=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vl=new WeakMap,Dg=new WeakMap,Ig={},d_=0,UL=function(e){return e&&(e.host||UL(e.parentNode))},yZ=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=UL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},vZ=function(e,t,r,n){var i=yZ(t,Array.isArray(e)?e:[e]);Ig[r]||(Ig[r]=new WeakMap);var o=Ig[r],s=[],a=new Set,u=new Set(i),l=function(h){!h||a.has(h)||(a.add(h),l(h.parentNode))};i.forEach(l);var p=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(g){if(a.has(g))p(g);else{var w=g.getAttribute(n),v=w!==null&&w!=="false",_=(Vl.get(g)||0)+1,D=(o.get(g)||0)+1;Vl.set(g,_),o.set(g,D),s.push(g),_===1&&v&&Dg.set(g,!0),D===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}})};return p(t),a.clear(),d_++,function(){s.forEach(function(h){var g=Vl.get(h)-1,w=o.get(h)-1;Vl.set(h,g),o.set(h,w),g||(Dg.has(h)||h.removeAttribute(n),Dg.delete(h)),w||h.removeAttribute(r)}),d_--,d_||(Vl=new WeakMap,Vl=new WeakMap,Dg=new WeakMap,Ig={})}},VL=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||gZ(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),vZ(n,i,r,"aria-hidden")):function(){return null}};var BL="Dialog",[jL,Nxe]=Ya(BL),[wZ,zo]=jL(BL),xZ=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=(0,ye.useRef)(null),u=(0,ye.useRef)(null),[l=!1,p]=E5({prop:n,defaultProp:i,onChange:o});return(0,ye.createElement)(wZ,{scope:t,triggerRef:a,contentRef:u,contentId:_g(),titleId:_g(),descriptionId:_g(),open:l,onOpenChange:p,onOpenToggle:(0,ye.useCallback)(()=>p(h=>!h),[p]),modal:s},r)};var zL="DialogPortal",[bZ,HL]=jL(zL,{forceMount:void 0}),EZ=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=zo(zL,t);return(0,ye.createElement)(bZ,{scope:t,forceMount:r},ye.Children.map(n,s=>(0,ye.createElement)(Bc,{present:r||o.open},(0,ye.createElement)(Jh,{asChild:!0,container:i},s))))},h_="DialogOverlay",_Z=(0,ye.forwardRef)((e,t)=>{let r=HL(h_,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zo(h_,e.__scopeDialog);return o.modal?(0,ye.createElement)(Bc,{present:n||o.open},(0,ye.createElement)(SZ,Ce({},i,{ref:t}))):null}),SZ=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zo(h_,r);return(0,ye.createElement)(f_,{as:co,allowPinchZoom:!0,shards:[i.contentRef]},(0,ye.createElement)(rr.div,Ce({"data-state":qL(i.open)},n,{ref:t,style:K({pointerEvents:"auto"},n.style)})))}),Bl="DialogContent",CZ=(0,ye.forwardRef)((e,t)=>{let r=HL(Bl,e.__scopeDialog),s=e,{forceMount:n=r.forceMount}=s,i=de(s,["forceMount"]),o=zo(Bl,e.__scopeDialog);return(0,ye.createElement)(Bc,{present:n||o.open},o.modal?(0,ye.createElement)(TZ,Ce({},i,{ref:t})):(0,ye.createElement)(PZ,Ce({},i,{ref:t})))}),TZ=(0,ye.forwardRef)((e,t)=>{let r=zo(Bl,e.__scopeDialog),n=(0,ye.useRef)(null),i=mr(t,r.contentRef,n);return(0,ye.useEffect)(()=>{let o=n.current;if(o)return VL(o)},[]),(0,ye.createElement)(KL,Ce({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pr(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:pr(e.onPointerDownOutside,o=>{let s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:pr(e.onFocusOutside,o=>o.preventDefault())}))}),PZ=(0,ye.forwardRef)((e,t)=>{let r=zo(Bl,e.__scopeDialog),n=(0,ye.useRef)(!1);return(0,ye.createElement)(KL,Ce({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);let a=i.target;((s=r.triggerRef.current)===null||s===void 0?void 0:s.contains(a))&&i.preventDefault()}}))}),KL=(0,ye.forwardRef)((e,t)=>{let p=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o}=p,s=de(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),a=zo(Bl,r),u=(0,ye.useRef)(null),l=mr(t,u);return bL(),(0,ye.createElement)(ye.Fragment,null,(0,ye.createElement)(yL,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,ye.createElement)(E1,Ce({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":qL(a.open)},s,{ref:l,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),DZ="DialogTitle";var IZ="DialogClose",AZ=(0,ye.forwardRef)((e,t)=>{let o=e,{__scopeDialog:r}=o,n=de(o,["__scopeDialog"]),i=zo(IZ,r);return(0,ye.createElement)(rr.button,Ce({type:"button"},n,{ref:t,onClick:pr(e.onClick,()=>i.onOpenChange(!1))}))});function qL(e){return e?"open":"closed"}var OZ="DialogTitleWarning",[Mxe,kxe]=u5(OZ,{contentName:Bl,titleName:DZ,docsSlug:"dialog"});var WL=xZ;var GL=EZ,YL=_Z,XL=CZ;var JL=AZ;var jl=Y(ae(),1);c();d();f();var NZ=e=>y.createElement("svg",ue(K({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),y.createElement("path",{d:"M13.961 2.717c-1.404-1.055-4.348 2.108-4.646 3.371a.262.262 0 0 0 .108.263.25.25 0 0 0 .28.001 54.105 54.105 0 0 1 2.108-1.436c1.072 1.234 1.206 2.596 1.206 2.596l.122-.177c.75-1.084 2.367-3.42.822-4.618Zm-3.536 5.354a.238.238 0 0 1 .09-.074c1.159-.55 5.424-.176 5.485 1.6.039 1.975-2.75 2.142-4.053 2.22l-.22.014s.96-.954 1.242-2.577a52.692 52.692 0 0 0-2.415-.788.247.247 0 0 1-.141-.11.254.254 0 0 1-.032-.176.243.243 0 0 1 .044-.109Zm-.775 2.046c.05-.007.1 0 .145.023 1.146.58 3.51 4.212 2.182 5.365-1.49 1.26-3.357-.86-4.228-1.848-.052-.06-.1-.115-.146-.165 0 0 1.331.173 2.755-.612a55.368 55.368 0 0 0-.899-2.417.255.255 0 0 1 .058-.28.244.244 0 0 1 .133-.066Zm-2.001.68c.025.03.042.066.05.105.27 1.27-1.052 5.417-2.764 5.078-1.898-.405-1.432-3.21-1.214-4.521l.036-.221s.698 1.17 2.186 1.814c.54-.87 1.02-1.716 1.299-2.218a.24.24 0 0 1 .314-.107.24.24 0 0 1 .093.07Zm-1.79-1.199a.26.26 0 0 1-.048.106C5 10.707.99 12.238.183 10.66c-.872-1.765 1.594-3.146 2.731-3.784l.18-.101s-.463 1.28-.031 2.87a50.668 50.668 0 0 0 2.515-.35.25.25 0 0 1 .278.186c.01.038.01.078.003.116Zm-.194-2.17a.236.236 0 0 1-.113.025c-1.276-.02-4.947-2.26-4.236-3.882.814-1.799 3.407-.694 4.607-.183l.192.082s-1.273.426-2.227 1.759c.71.732 1.415 1.397 1.834 1.784a.256.256 0 0 1 .032.34.241.241 0 0 1-.089.075Zm1.827-1.553a.247.247 0 0 1-.369-.024c-.777-1.033-1.34-5.352.35-5.798 1.889-.469 2.655 2.289 3.008 3.56l.056.202s-1.12-.75-2.738-.677a50.779 50.779 0 0 0-.23 2.573.256.256 0 0 1-.077.164Zm34.03 1.792c0 1.049-.197 1.947-.59 2.695-.389.745-.92 1.315-1.594 1.71-.671.397-1.432.595-2.284.595-.85 0-1.614-.198-2.288-.594-.67-.4-1.202-.971-1.595-1.716-.389-.748-.584-1.644-.584-2.69 0-1.049.195-1.946.584-2.69.393-.748.925-1.32 1.595-1.716.675-.396 1.437-.594 2.288-.594.852 0 1.613.198 2.284.594.674.396 1.206.968 1.595 1.716.392.744.588 1.641.588 2.69Zm-1.771 0c0-.738-.116-1.36-.347-1.868-.228-.51-.544-.895-.95-1.155a2.514 2.514 0 0 0-1.4-.394c-.528 0-.995.131-1.4.394-.405.26-.723.645-.954 1.155-.228.507-.342 1.13-.342 1.868 0 .738.114 1.362.342 1.873.23.507.549.892.954 1.155.405.26.872.39 1.4.39.529 0 .996-.13 1.4-.39.406-.263.722-.648.95-1.155.231-.51.347-1.135.347-1.873Zm-17.674 4.867L19.333 2.8h1.894l1.752 7.153h.09L24.94 2.8h1.724l1.875 7.158h.085L30.375 2.8h1.894l-2.744 9.734h-1.737l-1.947-6.83h-.075l-1.951 6.83h-1.738ZM43.053 2.8v9.734h1.76V8.969h1.793l1.91 3.565h1.966L48.379 8.68c.063-.025.125-.053.185-.081.513-.25.9-.604 1.163-1.06.266-.46.399-1.002.399-1.626 0-.62-.131-1.164-.394-1.63a2.66 2.66 0 0 0-1.154-1.093c-.506-.26-1.133-.39-1.88-.39h-3.645Zm1.76 4.705h1.624c.437 0 .795-.06 1.073-.18.279-.124.484-.303.617-.537.136-.238.204-.53.204-.875s-.068-.64-.204-.884a1.3 1.3 0 0 0-.622-.56c-.278-.13-.637-.196-1.077-.196h-1.614v3.232Zm6.8 5.029V2.8h1.761v8.256h4.282v1.478h-6.043Zm7.438 0h3.294c.988 0 1.833-.195 2.535-.585a3.907 3.907 0 0 0 1.62-1.677c.376-.73.564-1.6.564-2.615 0-1.01-.187-1.878-.56-2.604a3.906 3.906 0 0 0-1.605-1.668c-.693-.39-1.522-.585-2.487-.585h-3.36v9.734Zm3.21-1.526h-1.449V4.326h1.5c.659 0 1.21.123 1.652.37.447.244.784.614 1.011 1.108.228.491.342 1.109.342 1.853 0 .745-.114 1.366-.342 1.864a2.37 2.37 0 0 1-1.02 1.116c-.453.248-1.018.371-1.695.371ZM73.546 2.8v9.734h-1.761V2.8h1.761Zm1.773 9.734h3.295c.987 0 1.832-.195 2.535-.585a3.906 3.906 0 0 0 1.618-1.677c.377-.73.565-1.6.565-2.615 0-1.01-.186-1.878-.56-2.604a3.905 3.905 0 0 0-1.604-1.668c-.693-.39-1.522-.585-2.488-.585h-3.36v9.734Zm3.21-1.526h-1.448V4.326h1.5c.658 0 1.209.123 1.652.37.446.244.783.614 1.01 1.108.228.491.343 1.109.343 1.853 0 .745-.115 1.366-.342 1.864a2.371 2.371 0 0 1-1.02 1.116c-.453.248-1.018.371-1.696.371Z"})),QL=NZ;c();d();f();var MZ=e=>y.createElement("svg",ue(K({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),ZL=MZ;c();d();f();var e7=Y(ae(),1);var kZ=()=>y.createElement("div",{className:"space-y-6"},y.createElement("div",{className:"flex justify-center"},y.createElement(lo,{className:"h-24 w-24"})),y.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),t7=(0,e7.memo)(kZ);var FZ=({copy:e,open:t,processing:r,onOpenChange:n,stage:i,setStage:o,theme:s,computed:a,setOptions:u})=>({copy:e,stage:i,theme:s,setStage:o,processing:r,setOptions:u,isOpen:t,onOpenChange:n,canGoBack:a.canGoBack(i)}),$Z=({children:e,app_id:t,action:r,action_description:n,theme:i,signal:o,walletConnectProjectId:s,handleVerify:a,onSuccess:u,autoClose:l,copy:p,credential_types:h})=>{let{isOpen:g,onOpenChange:w,processing:v,stage:_,setStage:D,canGoBack:C,setOptions:I,theme:P}=Sn(FZ,Ga),R=Wa();(0,jl.useEffect)(()=>{I({app_id:t,action:r,action_description:n,signal:o,walletConnectProjectId:s,onSuccess:u,handleVerify:a,autoClose:l,copy:p,theme:i,credential_types:h},"props")},[p,t,r,i,o,l,u,I,a,n,s,h]);let U=(0,jl.useMemo)(()=>{switch(_){case"WORLD_ID":return dL;case"SUCCESS":return $5;case"ERROR":return s5;case"PRIVACY":return L5;case"HOST_APP_VERIFICATION":return t7;default:throw new Error("Invalid IDKitStage.")}},[_]);return y.createElement(WL,{open:g,onOpenChange:w},e==null?void 0:e({open:()=>w(!0)}),y.createElement(GL,{forceMount:!0},y.createElement(jl.Fragment,null,y.createElement(zu,null,g&&y.createElement(r5.div,{mode:"open",id:"idkit-widget"},y.createElement(n5,null),y.createElement("div",{id:"modal",className:yi(P=="dark"&&"dark","fixed z-10 font-sans")},y.createElement(YL,{asChild:!0},y.createElement(Jn.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),y.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},y.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},y.createElement(XL,{asChild:!0},y.createElement(Jn.div,{layout:R=="mobile"?"position":!0,exit:R=="mobile"?"initMob":"init",initial:R=="mobile"?"initMob":"init",animate:R=="mobile"?"animateMob":"animate",variants:{init:{opacity:0,scale:.9},initMob:{translateY:"100%"},animate:{opacity:1,scale:1},animateMob:{translateY:0}},transition:{layout:{duration:.15}},className:"dark:bg-0d151d relative z-50 w-full rounded-t-2xl bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 md:max-w-md md:rounded-b-2xl"},y.createElement(O5,null,y.createElement(R5,{className:"flex justify-center"}),y.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},y.createElement("button",{onClick:()=>D("WORLD_ID"),disabled:!C,className:yi(!C&&"invisible pointer-events-none","dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white")},y.createElement(ZL,{className:"w-4"})),y.createElement(JL,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},y.createElement(Gh,{className:"h-5 w-5"}))),y.createElement("div",{className:"relative"},y.createElement(Jn.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:v?"hidden":"visible"},transition:{layout:{duration:.15}}},y.createElement(U,null)),y.createElement(zu,null,v&&y.createElement(Jn.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},y.createElement(lo,{className:"h-24 w-24"})))),y.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-2xl"},y.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},y.createElement("span",null,"Verified with"),y.createElement("a",{href:"https://worldcoin.org/world-id",target:"_blank",rel:"noreferrer"},y.createElement(QL,{className:"text-0d151d h-4 dark:text-white"}))),_!="PRIVACY"?y.createElement("button",{onClick:()=>D("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):y.createElement("a",{target:"_blank",href:"https://docs.worldcoin.org/privacy",className:"text-9eafc0 dark:text-9eafc0 text-sm hover:underline",rel:"noreferrer"},"Learn More \u2192")))))))))))))},r7=$Z;var i7=(0,n7.memo)(r7);var p_,zl=!1,UZ=e=>{if(zl)throw new Error("IDKit is already initialized");if(!e.app_id)throw new Error("You must provide your App ID & Action");e.walletConnectProjectId||(console.warn("WalletConnect project ID not detected. Using default, but this is not advisable for production usage!"),console.warn("Get your own project ID at https://cloud.walletconnect.com/"));let t=()=>{try{if(!zl){let r=document.createElement("div");document.body.appendChild(r),p_=(0,o7.createRoot)(r),p_.render(y.createElement(i7,K({},e))),x2(e.enableTelemetry),zl=!0}}catch(r){console.error("Error while rendering IDKit",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},VZ=e=>{if(!zl)throw new Error("IDKit is not initialized");Sn.getState().setOptions(e,"props")},BZ=()=>new Promise((e,t)=>{if(!zl)return t("IDKitWidget is not initialized");Sn.getState().addSuccessCallback(e,"manual"),Sn.setState({open:!0})}),jZ=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),p_.unmount(),zl=!1,Sn.destroy()};return v_(zZ);})();
80
80
  /*!
81
81
  * The buffer module from node.js, for the browser.
82
82
  *