@worldcoin/idkit 0.2.6 → 0.3.0-alpha.2

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.
Files changed (56) hide show
  1. package/build/index.css +1829 -2
  2. package/package.json +4 -2
  3. package/build/components/AboutWorldID.d.ts +0 -6
  4. package/build/components/Button.d.ts +0 -3
  5. package/build/components/CountryCodeSelect.d.ts +0 -6
  6. package/build/components/Frame.d.ts +0 -4
  7. package/build/components/IDKitWidget/BaseWidget.d.ts +0 -4
  8. package/build/components/IDKitWidget/States/AboutState.d.ts +0 -2
  9. package/build/components/IDKitWidget/States/EnterPhoneState.d.ts +0 -2
  10. package/build/components/IDKitWidget/States/ErrorState.d.ts +0 -4
  11. package/build/components/IDKitWidget/States/HostAppVerificationState.d.ts +0 -7
  12. package/build/components/IDKitWidget/States/PrivacyState.d.ts +0 -2
  13. package/build/components/IDKitWidget/States/SelectMethodState.d.ts +0 -2
  14. package/build/components/IDKitWidget/States/SuccessState.d.ts +0 -2
  15. package/build/components/IDKitWidget/States/VerifyCodeState.d.ts +0 -2
  16. package/build/components/IDKitWidget/States/WorldID/LoadingState.d.ts +0 -2
  17. package/build/components/IDKitWidget/States/WorldID/QRState.d.ts +0 -11
  18. package/build/components/IDKitWidget/States/WorldIDState.d.ts +0 -2
  19. package/build/components/IDKitWidget/index.d.ts +0 -3
  20. package/build/components/Icons/ArrowLongLeftIcon.d.ts +0 -3
  21. package/build/components/Icons/CheckIcon.d.ts +0 -3
  22. package/build/components/Icons/ChevronDownIcon.d.ts +0 -3
  23. package/build/components/Icons/DevicePhoneMobileIcon.d.ts +0 -3
  24. package/build/components/Icons/HumanIcon.d.ts +0 -3
  25. package/build/components/Icons/InfoIcon.d.ts +0 -3
  26. package/build/components/Icons/LoadingIcon.d.ts +0 -4
  27. package/build/components/Icons/LockIcon.d.ts +0 -3
  28. package/build/components/Icons/QuestionMarkIcon.d.ts +0 -4
  29. package/build/components/Icons/WorldIDQR.d.ts +0 -4
  30. package/build/components/Icons/WorldIDWordmark.d.ts +0 -3
  31. package/build/components/Icons/WorldcoinIcon.d.ts +0 -3
  32. package/build/components/Icons/WorldcoinLogomark.d.ts +0 -3
  33. package/build/components/Icons/XMarkIcon.d.ts +0 -3
  34. package/build/components/PhoneInput.d.ts +0 -6
  35. package/build/components/QRCode.d.ts +0 -6
  36. package/build/components/ResendButton.d.ts +0 -3
  37. package/build/components/SMSCodeInput.d.ts +0 -6
  38. package/build/components/WorldIDIcon.d.ts +0 -7
  39. package/build/hooks/useIDKit.d.ts +0 -6
  40. package/build/hooks/useMedia.d.ts +0 -2
  41. package/build/idkit-js.js +0 -167
  42. package/build/index.d.ts +0 -6
  43. package/build/index.js +0 -9
  44. package/build/index.js.map +0 -7
  45. package/build/lib/hashing.d.ts +0 -37
  46. package/build/lib/qr.d.ts +0 -5
  47. package/build/lib/telemetry.d.ts +0 -6
  48. package/build/lib/utils.d.ts +0 -2
  49. package/build/services/phone.d.ts +0 -18
  50. package/build/services/walletconnect.d.ts +0 -15
  51. package/build/store/idkit.d.ts +0 -38
  52. package/build/tsconfig.tsbuildinfo +0 -1
  53. package/build/types/config.d.ts +0 -35
  54. package/build/types/index.d.ts +0 -53
  55. package/build/types/orb.d.ts +0 -21
  56. package/build/vanilla.d.ts +0 -12
package/build/idkit-js.js DELETED
@@ -1,167 +0,0 @@
1
- var IDKit=(()=>{var ZP=Object.create;var du=Object.defineProperty,QP=Object.defineProperties,XP=Object.getOwnPropertyDescriptor,JP=Object.getOwnPropertyDescriptors,eR=Object.getOwnPropertyNames,uf=Object.getOwnPropertySymbols,tR=Object.getPrototypeOf,im=Object.prototype.hasOwnProperty,_x=Object.prototype.propertyIsEnumerable;var xx=(e,t,r)=>t in e?du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oe=(e,t)=>{for(var r in t||(t={}))im.call(t,r)&&xx(e,r,t[r]);if(uf)for(var r of uf(t))_x.call(t,r)&&xx(e,r,t[r]);return e},Se=(e,t)=>QP(e,JP(t));var Ae=(e,t)=>{var r={};for(var n in e)im.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&uf)for(var n of uf(e))t.indexOf(n)<0&&_x.call(e,n)&&(r[n]=e[n]);return r};var ff=(e,t)=>()=>(e&&(t=e(e=0)),t);var Qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ms=(e,t)=>{for(var r in t)du(e,r,{get:t[r],enumerable:!0})},cf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eR(t))!im.call(e,o)&&o!==r&&du(e,o,{get:()=>t[o],enumerable:!(n=XP(t,o))||n.enumerable});return e},rt=(e,t,r)=>(cf(e,t,"default"),r&&cf(r,t,"default")),pe=(e,t,r)=>(r=e!=null?ZP(tR(e)):{},cf(t||!e||!e.__esModule?du(r,"default",{value:e,enumerable:!0}):r,e)),rR=e=>cf(du({},"__esModule",{value:!0}),e);var nR,O,f=ff(()=>{nR="production",O={MODE:nR}});function Cx(){sm=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)mo[t]=e[t],In[e.charCodeAt(t)]=t;In["-".charCodeAt(0)]=62,In["_".charCodeAt(0)]=63}function iR(e){sm||Cx();var t,r,n,o,i,a,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i=e[s-2]==="="?2:e[s-1]==="="?1:0,a=new oR(s*3/4-i),n=i>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=In[e.charCodeAt(t)]<<18|In[e.charCodeAt(t+1)]<<12|In[e.charCodeAt(t+2)]<<6|In[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=o&255;return i===2?(o=In[e.charCodeAt(t)]<<2|In[e.charCodeAt(t+1)]>>4,a[l++]=o&255):i===1&&(o=In[e.charCodeAt(t)]<<10|In[e.charCodeAt(t+1)]<<4|In[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=o&255),a}function aR(e){return mo[e>>18&63]+mo[e>>12&63]+mo[e>>6&63]+mo[e&63]}function sR(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(aR(n));return o.join("")}function Sx(e){sm||Cx();for(var t,r=e.length,n=r%3,o="",i=[],a=16383,s=0,l=r-n;s<l;s+=a)i.push(sR(e,s,s+a>l?l:s+a));return n===1?(t=e[r-1],o+=mo[t>>2],o+=mo[t<<4&63],o+="=="):n===2&&(t=(e[r-2]<<8)+e[r-1],o+=mo[t>>10],o+=mo[t>>4&63],o+=mo[t<<2&63],o+="="),i.push(o),i.join("")}function df(){return C.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Oo(e,t){if(df()<t)throw new RangeError("Invalid typed array length");return C.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=C.prototype):(e===null&&(e=new C(t)),e.length=t),e}function C(e,t,r){if(!C.TYPED_ARRAY_SUPPORT&&!(this instanceof C))return new C(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 lm(this,e)}return kx(this,e,t,r)}function kx(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?cR(e,t,r,n):typeof t=="string"?uR(e,t,r):fR(e,t)}function Tx(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 lR(e,t,r,n){return Tx(t),t<=0?Oo(e,t):r!==void 0?typeof n=="string"?Oo(e,t).fill(r,n):Oo(e,t).fill(r):Oo(e,t)}function lm(e,t){if(Tx(t),e=Oo(e,t<0?0:um(t)|0),!C.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function uR(e,t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!C.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=Px(t,r)|0;e=Oo(e,n);var o=e.write(t,r);return o!==n&&(e=e.slice(0,o)),e}function am(e,t){var r=t.length<0?0:um(t.length)|0;e=Oo(e,r);for(var n=0;n<r;n+=1)e[n]=t[n]&255;return e}function cR(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),C.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=C.prototype):e=am(e,t),e}function fR(e,t){if(go(t)){var r=um(t.length)|0;return e=Oo(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"||RR(t.length)?Oo(e,0):am(e,t);if(t.type==="Buffer"&&Array.isArray(t.data))return am(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function um(e){if(e>=df())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+df().toString(16)+" bytes");return e|0}function go(e){return!!(e!=null&&e._isBuffer)}function Px(e,t){if(go(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 hf(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Lx(e).length;default:if(n)return hf(e).length;t=(""+t).toLowerCase(),n=!0}}function dR(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 bR(this,t,r);case"utf8":case"utf-8":return Ix(this,t,r);case"ascii":return xR(this,t,r);case"latin1":case"binary":return _R(this,t,r);case"base64":return yR(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SR(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function pa(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Rx(e,t,r,n,o){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=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof t=="string"&&(t=C.from(t,n)),go(t))return t.length===0?-1:Ex(e,t,r,n,o);if(typeof t=="number")return t=t&255,C.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Ex(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Ex(e,t,r,n,o){var i=1,a=e.length,s=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;i=2,a/=2,s/=2,r/=2}function l(R,I){return i===1?R[I]:R.readUInt16BE(I*i)}var c;if(o){var g=-1;for(c=r;c<a;c++)if(l(e,c)===l(t,g===-1?0:c-g)){if(g===-1&&(g=c),c-g+1===s)return g*i}else g!==-1&&(c-=c-g),g=-1}else for(r+s>a&&(r=a-s),c=r;c>=0;c--){for(var _=!0,k=0;k<s;k++)if(l(e,c+k)!==l(t,k)){_=!1;break}if(_)return c}return-1}function hR(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(a*2,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function pR(e,t,r,n){return gf(hf(t,e.length-r),e,r,n)}function Ax(e,t,r,n){return gf(TR(t),e,r,n)}function mR(e,t,r,n){return Ax(e,t,r,n)}function gR(e,t,r,n){return gf(Lx(t),e,r,n)}function vR(e,t,r,n){return gf(PR(t,e.length-r),e,r,n)}function yR(e,t,r){return t===0&&r===e.length?Sx(e):Sx(e.slice(t,r))}function Ix(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i=e[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=r){var l,c,g,_;switch(s){case 1:i<128&&(a=i);break;case 2:l=e[o+1],(l&192)===128&&(_=(i&31)<<6|l&63,_>127&&(a=_));break;case 3:l=e[o+1],c=e[o+2],(l&192)===128&&(c&192)===128&&(_=(i&15)<<12|(l&63)<<6|c&63,_>2047&&(_<55296||_>57343)&&(a=_));break;case 4:l=e[o+1],c=e[o+2],g=e[o+3],(l&192)===128&&(c&192)===128&&(g&192)===128&&(_=(i&15)<<18|(l&63)<<12|(c&63)<<6|g&63,_>65535&&_<1114112&&(a=_))}}a===null?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=s}return wR(n)}function wR(e){var t=e.length;if(t<=Mx)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=Mx));return r}function xR(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]&127);return n}function _R(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function bR(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=kR(e[i]);return o}function SR(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}function hr(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 Xr(e,t,r,n,o,i){if(!go(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function pf(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>(n?o:1-o)*8}function mf(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>(n?o:3-o)*8&255}function Ox(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nx(e,t,r,n,o){return o||Ox(e,t,r,4,34028234663852886e22,-34028234663852886e22),$x(e,t,r,n,23,4),r+4}function Dx(e,t,r,n,o){return o||Ox(e,t,r,8,17976931348623157e292,-17976931348623157e292),$x(e,t,r,n,52,8),r+8}function MR(e){if(e=CR(e).replace(ER,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function CR(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function kR(e){return e<16?"0"+e.toString(16):e.toString(16)}function hf(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function TR(e){for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function PR(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Lx(e){return iR(MR(e))}function gf(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function RR(e){return e!==e}function AR(e){return e!=null&&(!!e._isBuffer||Fx(e)||IR(e))}function Fx(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function IR(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Fx(e.slice(0,0))}function vf(e,t,r,n,o){var i,a,s=o*8-n-1,l=(1<<s)-1,c=l>>1,g=-7,_=r?o-1:0,k=r?-1:1,R=e[t+_];for(_+=k,i=R&(1<<-g)-1,R>>=-g,g+=s;g>0;i=i*256+e[t+_],_+=k,g-=8);for(a=i&(1<<-g)-1,i>>=-g,g+=n;g>0;a=a*256+e[t+_],_+=k,g-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:(R?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-c}return(R?-1:1)*a*Math.pow(2,i-n)}function $x(e,t,r,n,o,i){var a,s,l,c=i*8-o-1,g=(1<<c)-1,_=g>>1,k=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=n?0:i-1,I=n?1:-1,V=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=g):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+_>=1?t+=k/l:t+=k*Math.pow(2,1-_),t*l>=2&&(a++,l/=2),a+_>=g?(s=0,a=g):a+_>=1?(s=(t*l-1)*Math.pow(2,o),a=a+_):(s=t*Math.pow(2,_-1)*Math.pow(2,o),a=0));o>=8;e[r+R]=s&255,R+=I,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+R]=a&255,R+=I,a/=256,c-=8);e[r+R-I]|=V*128}var mo,In,oR,sm,Mx,ER,Bx=ff(()=>{f();h();d();mo=[],In=[],oR=typeof Uint8Array<"u"?Uint8Array:Array,sm=!1;C.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;C.poolSize=8192;C._augment=function(e){return e.__proto__=C.prototype,e};C.from=function(e,t,r){return kx(null,e,t,r)};C.kMaxLength=df();C.TYPED_ARRAY_SUPPORT&&(C.prototype.__proto__=Uint8Array.prototype,C.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&C[Symbol.species]);C.alloc=function(e,t,r){return lR(null,e,t,r)};C.allocUnsafe=function(e){return lm(null,e)};C.allocUnsafeSlow=function(e){return lm(null,e)};C.isBuffer=AR;C.compare=function(t,r){if(!go(t)||!go(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,o=r.length,i=0,a=Math.min(n,o);i<a;++i)if(t[i]!==r[i]){n=t[i],o=r[i];break}return n<o?-1:o<n?1:0};C.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}};C.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return C.alloc(0);var n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var o=C.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!go(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,i),i+=a.length}return o};C.byteLength=Px;C.prototype._isBuffer=!0;C.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)pa(this,r,r+1);return this};C.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)pa(this,r,r+3),pa(this,r+1,r+2);return this};C.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)pa(this,r,r+7),pa(this,r+1,r+6),pa(this,r+2,r+5),pa(this,r+3,r+4);return this};C.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?Ix(this,0,t):dR.apply(this,arguments)};C.prototype.equals=function(t){if(!go(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:C.compare(this,t)===0};C.prototype.compare=function(t,r,n,o,i){if(!go(t))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>t.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===t)return 0;for(var a=i-o,s=n-r,l=Math.min(a,s),c=this.slice(o,i),g=t.slice(r,n),_=0;_<l;++_)if(c[_]!==g[_]){a=c[_],s=g[_];break}return a<s?-1:s<a?1:0};C.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};C.prototype.indexOf=function(t,r,n){return Rx(this,t,r,n,!0)};C.prototype.lastIndexOf=function(t,r,n){return Rx(this,t,r,n,!1)};C.prototype.write=function(t,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(n)?(n=n|0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-r;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var a=!1;;)switch(o){case"hex":return hR(this,t,r,n);case"utf8":case"utf-8":return pR(this,t,r,n);case"ascii":return Ax(this,t,r,n);case"latin1":case"binary":return mR(this,t,r,n);case"base64":return gR(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vR(this,t,r,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}};C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Mx=4096;C.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 o;if(C.TYPED_ARRAY_SUPPORT)o=this.subarray(t,r),o.__proto__=C.prototype;else{var i=r-t;o=new C(i,void 0);for(var a=0;a<i;++a)o[a]=this[a+t]}return o};C.prototype.readUIntLE=function(t,r,n){t=t|0,r=r|0,n||hr(t,r,this.length);for(var o=this[t],i=1,a=0;++a<r&&(i*=256);)o+=this[t+a]*i;return o};C.prototype.readUIntBE=function(t,r,n){t=t|0,r=r|0,n||hr(t,r,this.length);for(var o=this[t+--r],i=1;r>0&&(i*=256);)o+=this[t+--r]*i;return o};C.prototype.readUInt8=function(t,r){return r||hr(t,1,this.length),this[t]};C.prototype.readUInt16LE=function(t,r){return r||hr(t,2,this.length),this[t]|this[t+1]<<8};C.prototype.readUInt16BE=function(t,r){return r||hr(t,2,this.length),this[t]<<8|this[t+1]};C.prototype.readUInt32LE=function(t,r){return r||hr(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};C.prototype.readUInt32BE=function(t,r){return r||hr(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};C.prototype.readIntLE=function(t,r,n){t=t|0,r=r|0,n||hr(t,r,this.length);for(var o=this[t],i=1,a=0;++a<r&&(i*=256);)o+=this[t+a]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};C.prototype.readIntBE=function(t,r,n){t=t|0,r=r|0,n||hr(t,r,this.length);for(var o=r,i=1,a=this[t+--o];o>0&&(i*=256);)a+=this[t+--o]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*r)),a};C.prototype.readInt8=function(t,r){return r||hr(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};C.prototype.readInt16LE=function(t,r){r||hr(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};C.prototype.readInt16BE=function(t,r){r||hr(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};C.prototype.readInt32LE=function(t,r){return r||hr(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};C.prototype.readInt32BE=function(t,r){return r||hr(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};C.prototype.readFloatLE=function(t,r){return r||hr(t,4,this.length),vf(this,t,!0,23,4)};C.prototype.readFloatBE=function(t,r){return r||hr(t,4,this.length),vf(this,t,!1,23,4)};C.prototype.readDoubleLE=function(t,r){return r||hr(t,8,this.length),vf(this,t,!0,52,8)};C.prototype.readDoubleBE=function(t,r){return r||hr(t,8,this.length),vf(this,t,!1,52,8)};C.prototype.writeUIntLE=function(t,r,n,o){if(t=+t,r=r|0,n=n|0,!o){var i=Math.pow(2,8*n)-1;Xr(this,t,r,n,i,0)}var a=1,s=0;for(this[r]=t&255;++s<n&&(a*=256);)this[r+s]=t/a&255;return r+n};C.prototype.writeUIntBE=function(t,r,n,o){if(t=+t,r=r|0,n=n|0,!o){var i=Math.pow(2,8*n)-1;Xr(this,t,r,n,i,0)}var a=n-1,s=1;for(this[r+a]=t&255;--a>=0&&(s*=256);)this[r+a]=t/s&255;return r+n};C.prototype.writeUInt8=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,1,255,0),C.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t&255,r+1};C.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):pf(this,t,r,!0),r+2};C.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,2,65535,0),C.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):pf(this,t,r,!1),r+2};C.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255):mf(this,t,r,!0),r+4};C.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,4,4294967295,0),C.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):mf(this,t,r,!1),r+4};C.prototype.writeIntLE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);Xr(this,t,r,n,i-1,-i)}var a=0,s=1,l=0;for(this[r]=t&255;++a<n&&(s*=256);)t<0&&l===0&&this[r+a-1]!==0&&(l=1),this[r+a]=(t/s>>0)-l&255;return r+n};C.prototype.writeIntBE=function(t,r,n,o){if(t=+t,r=r|0,!o){var i=Math.pow(2,8*n-1);Xr(this,t,r,n,i-1,-i)}var a=n-1,s=1,l=0;for(this[r+a]=t&255;--a>=0&&(s*=256);)t<0&&l===0&&this[r+a+1]!==0&&(l=1),this[r+a]=(t/s>>0)-l&255;return r+n};C.prototype.writeInt8=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,1,127,-128),C.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=t&255,r+1};C.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8):pf(this,t,r,!0),r+2};C.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,2,32767,-32768),C.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t&255):pf(this,t,r,!1),r+2};C.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,4,2147483647,-2147483648),C.TYPED_ARRAY_SUPPORT?(this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):mf(this,t,r,!0),r+4};C.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r|0,n||Xr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),C.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255):mf(this,t,r,!1),r+4};C.prototype.writeFloatLE=function(t,r,n){return Nx(this,t,r,!0,n)};C.prototype.writeFloatBE=function(t,r,n){return Nx(this,t,r,!1,n)};C.prototype.writeDoubleLE=function(t,r,n){return Dx(this,t,r,!0,n)};C.prototype.writeDoubleBE=function(t,r,n){return Dx(this,t,r,!1,n)};C.prototype.copy=function(t,r,n,o){if(n||(n=0),!o&&o!==0&&(o=this.length),r>=t.length&&(r=t.length),r||(r=0),o>0&&o<n&&(o=n),o===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(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-r<o-n&&(o=t.length-r+n);var i=o-n,a;if(this===t&&n<r&&r<o)for(a=i-1;a>=0;--a)t[a+r]=this[a+n];else if(i<1e3||!C.TYPED_ARRAY_SUPPORT)for(a=0;a<i;++a)t[a+r]=this[a+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),r);return i};C.prototype.fill=function(t,r,n,o){if(typeof t=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),t.length===1){var i=t.charCodeAt(0);i<256&&(t=i)}if(o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!C.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}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 a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else{var s=go(t)?t:hf(new C(t,o).toString()),l=s.length;for(a=0;a<n-r;++a)this[a+r]=s[a%l]}return this};ER=/[^+\/0-9A-Za-z-_]/g});var d=ff(()=>{Bx()});var Zx=Qe(mt=>{"use strict";f();h();d();var hu=Symbol.for("react.element"),OR=Symbol.for("react.portal"),NR=Symbol.for("react.fragment"),DR=Symbol.for("react.strict_mode"),LR=Symbol.for("react.profiler"),FR=Symbol.for("react.provider"),$R=Symbol.for("react.context"),BR=Symbol.for("react.forward_ref"),VR=Symbol.for("react.suspense"),UR=Symbol.for("react.memo"),jR=Symbol.for("react.lazy"),Vx=Symbol.iterator;function zR(e){return e===null||typeof e!="object"?null:(e=Vx&&e[Vx]||e["@@iterator"],typeof e=="function"?e:null)}var zx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hx=Object.assign,Wx={};function gs(e,t,r){this.props=e,this.context=t,this.refs=Wx,this.updater=r||zx}gs.prototype.isReactComponent={};gs.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")};gs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qx(){}qx.prototype=gs.prototype;function fm(e,t,r){this.props=e,this.context=t,this.refs=Wx,this.updater=r||zx}var dm=fm.prototype=new qx;dm.constructor=fm;Hx(dm,gs.prototype);dm.isPureReactComponent=!0;var Ux=Array.isArray,Gx=Object.prototype.hasOwnProperty,hm={current:null},Kx={key:!0,ref:!0,__self:!0,__source:!0};function Yx(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Gx.call(t,n)&&!Kx.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:hu,type:e,key:i,ref:a,props:o,_owner:hm.current}}function HR(e,t){return{$$typeof:hu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function pm(e){return typeof e=="object"&&e!==null&&e.$$typeof===hu}function WR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var jx=/\/+/g;function cm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WR(""+e.key):t.toString(36)}function wf(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case hu:case OR:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+cm(a,0):n,Ux(o)?(r="",e!=null&&(r=e.replace(jx,"$&/")+"/"),wf(o,t,r,"",function(c){return c})):o!=null&&(pm(o)&&(o=HR(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(jx,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",Ux(e))for(var s=0;s<e.length;s++){i=e[s];var l=n+cm(i,s);a+=wf(i,t,r,l,o)}else if(l=zR(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=n+cm(i,s++),a+=wf(i,t,r,l,o);else if(i==="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 a}function yf(e,t,r){if(e==null)return e;var n=[],o=0;return wf(e,n,"","",function(i){return t.call(r,i,o++)}),n}function qR(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},xf={transition:null},GR={ReactCurrentDispatcher:$r,ReactCurrentBatchConfig:xf,ReactCurrentOwner:hm};mt.Children={map:yf,forEach:function(e,t,r){yf(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return yf(e,function(){t++}),t},toArray:function(e){return yf(e,function(t){return t})||[]},only:function(e){if(!pm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};mt.Component=gs;mt.Fragment=NR;mt.Profiler=LR;mt.PureComponent=fm;mt.StrictMode=DR;mt.Suspense=VR;mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=GR;mt.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=Hx({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=hm.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Gx.call(t,l)&&!Kx.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:hu,type:e.type,key:o,ref:i,props:n,_owner:a}};mt.createContext=function(e){return e={$$typeof:$R,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:FR,_context:e},e.Consumer=e};mt.createElement=Yx;mt.createFactory=function(e){var t=Yx.bind(null,e);return t.type=e,t};mt.createRef=function(){return{current:null}};mt.forwardRef=function(e){return{$$typeof:BR,render:e}};mt.isValidElement=pm;mt.lazy=function(e){return{$$typeof:jR,_payload:{_status:-1,_result:e},_init:qR}};mt.memo=function(e,t){return{$$typeof:UR,type:e,compare:t===void 0?null:t}};mt.startTransition=function(e){var t=xf.transition;xf.transition={};try{e()}finally{xf.transition=t}};mt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};mt.useCallback=function(e,t){return $r.current.useCallback(e,t)};mt.useContext=function(e){return $r.current.useContext(e)};mt.useDebugValue=function(){};mt.useDeferredValue=function(e){return $r.current.useDeferredValue(e)};mt.useEffect=function(e,t){return $r.current.useEffect(e,t)};mt.useId=function(){return $r.current.useId()};mt.useImperativeHandle=function(e,t,r){return $r.current.useImperativeHandle(e,t,r)};mt.useInsertionEffect=function(e,t){return $r.current.useInsertionEffect(e,t)};mt.useLayoutEffect=function(e,t){return $r.current.useLayoutEffect(e,t)};mt.useMemo=function(e,t){return $r.current.useMemo(e,t)};mt.useReducer=function(e,t,r){return $r.current.useReducer(e,t,r)};mt.useRef=function(e){return $r.current.useRef(e)};mt.useState=function(e){return $r.current.useState(e)};mt.useSyncExternalStore=function(e,t,r){return $r.current.useSyncExternalStore(e,t,r)};mt.useTransition=function(){return $r.current.useTransition()};mt.version="18.2.0"});var we=Qe((Bz,Qx)=>{"use strict";f();h();d();Qx.exports=Zx()});var v,h=ff(()=>{v=pe(we(),1)});var t2=Qe(e2=>{"use strict";f();h();d();var vs=we();function KR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YR=typeof Object.is=="function"?Object.is:KR,ZR=vs.useState,QR=vs.useEffect,XR=vs.useLayoutEffect,JR=vs.useDebugValue;function e9(e,t){var r=t(),n=ZR({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return XR(function(){o.value=r,o.getSnapshot=t,mm(o)&&i({inst:o})},[e,r,t]),QR(function(){return mm(o)&&i({inst:o}),e(function(){mm(o)&&i({inst:o})})},[e]),JR(r),r}function mm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!YR(e,r)}catch(n){return!0}}function t9(e,t){return t()}var r9=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?t9:e9;e2.useSyncExternalStore=vs.useSyncExternalStore!==void 0?vs.useSyncExternalStore:r9});var n2=Qe((zz,r2)=>{"use strict";f();h();d();r2.exports=t2()});var i2=Qe(o2=>{"use strict";f();h();d();var _f=we(),n9=n2();function o9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var i9=typeof Object.is=="function"?Object.is:o9,a9=n9.useSyncExternalStore,s9=_f.useRef,l9=_f.useEffect,u9=_f.useMemo,c9=_f.useDebugValue;o2.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=s9(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=u9(function(){function l(R){if(!c){if(c=!0,g=R,R=n(R),o!==void 0&&a.hasValue){var I=a.value;if(o(I,R))return _=I}return _=R}if(I=_,i9(g,R))return I;var V=n(R);return o!==void 0&&o(I,V)?I:(g=R,_=V)}var c=!1,g,_,k=r===void 0?null:r;return[function(){return l(t())},k===null?void 0:function(){return l(k())}]},[t,r,n,o]);var s=a9(e,i[0],i[1]);return l9(function(){a.hasValue=!0,a.value=s},[s]),c9(s),s}});var s2=Qe((Wz,a2)=>{"use strict";f();h();d();a2.exports=i2()});var gm=Qe((Yz,Sf)=>{f();h();d();(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 o=!r&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i?n=globalThis:o&&(n=self);var a=!n.JS_SHA3_NO_COMMON_JS&&typeof Sf=="object"&&Sf.exports,s=typeof define=="function"&&define.amd,l=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),g=[31,7936,2031616,520093696],_=[4,1024,262144,67108864],k=[1,256,65536,16777216],R=[6,1536,393216,100663296],I=[0,8,16,24],V=[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],j=[224,256,384,512],L=[128,256],D=["hex","buffer","arrayBuffer","array","digest"],B={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(P){return Object.prototype.toString.call(P)==="[object Array]"}),l&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(P){return typeof P=="object"&&P.buffer&&P.buffer.constructor===ArrayBuffer});for(var K=function(P,ee,ie){return function(ce){return new S(P,ee,P).update(ce)[ie]()}},X=function(P,ee,ie){return function(ce,ge){return new S(P,ee,ge).update(ce)[ie]()}},ue=function(P,ee,ie){return function(ce,ge,Z,J){return u["cshake"+P].update(ce,ge,Z,J)[ie]()}},ae=function(P,ee,ie){return function(ce,ge,Z,J){return u["kmac"+P].update(ce,ge,Z,J)[ie]()}},ve=function(P,ee,ie,ce){for(var ge=0;ge<D.length;++ge){var Z=D[ge];P[Z]=ee(ie,ce,Z)}return P},G=function(P,ee){var ie=K(P,ee,"hex");return ie.create=function(){return new S(P,ee,P)},ie.update=function(ce){return ie.create().update(ce)},ve(ie,K,P,ee)},w=function(P,ee){var ie=X(P,ee,"hex");return ie.create=function(ce){return new S(P,ee,ce)},ie.update=function(ce,ge){return ie.create(ge).update(ce)},ve(ie,X,P,ee)},T=function(P,ee){var ie=B[P],ce=ue(P,ee,"hex");return ce.create=function(ge,Z,J){return!Z&&!J?u["shake"+P].create(ge):new S(P,ee,ge).bytepad([Z,J],ie)},ce.update=function(ge,Z,J,Q){return ce.create(Z,J,Q).update(ge)},ve(ce,ue,P,ee)},A=function(P,ee){var ie=B[P],ce=ae(P,ee,"hex");return ce.create=function(ge,Z,J){return new W(P,ee,Z).bytepad(["KMAC",J],ie).bytepad([ge],ie)},ce.update=function(ge,Z,J,Q){return ce.create(ge,J,Q).update(Z)},ve(ce,ae,P,ee)},b=[{name:"keccak",padding:k,bits:j,createMethod:G},{name:"sha3",padding:R,bits:j,createMethod:G},{name:"shake",padding:g,bits:L,createMethod:w},{name:"cshake",padding:_,bits:L,createMethod:T},{name:"kmac",padding:_,bits:L,createMethod:A}],u={},m=[],y=0;y<b.length;++y)for(var x=b[y],p=x.bits,E=0;E<p.length;++E){var q=x.name+"_"+p[E];if(m.push(q),u[q]=x.createMethod(p[E],x.padding),x.name!=="sha3"){var U=x.name+p[E];m.push(U),u[U]=u[q]}}function S(P,ee,ie){this.blocks=[],this.s=[],this.padding=ee,this.outputBits=ie,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(P<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ce=0;ce<50;++ce)this.s[ce]=0}S.prototype.update=function(P){if(this.finalized)throw new Error(t);var ee,ie=typeof P;if(ie!=="string"){if(ie==="object"){if(P===null)throw new Error(e);if(l&&P.constructor===ArrayBuffer)P=new Uint8Array(P);else if(!Array.isArray(P)&&(!l||!ArrayBuffer.isView(P)))throw new Error(e)}else throw new Error(e);ee=!0}for(var ce=this.blocks,ge=this.byteCount,Z=P.length,J=this.blockCount,Q=0,fe=this.s,te,xe;Q<Z;){if(this.reset)for(this.reset=!1,ce[0]=this.block,te=1;te<J+1;++te)ce[te]=0;if(ee)for(te=this.start;Q<Z&&te<ge;++Q)ce[te>>2]|=P[Q]<<I[te++&3];else for(te=this.start;Q<Z&&te<ge;++Q)xe=P.charCodeAt(Q),xe<128?ce[te>>2]|=xe<<I[te++&3]:xe<2048?(ce[te>>2]|=(192|xe>>6)<<I[te++&3],ce[te>>2]|=(128|xe&63)<<I[te++&3]):xe<55296||xe>=57344?(ce[te>>2]|=(224|xe>>12)<<I[te++&3],ce[te>>2]|=(128|xe>>6&63)<<I[te++&3],ce[te>>2]|=(128|xe&63)<<I[te++&3]):(xe=65536+((xe&1023)<<10|P.charCodeAt(++Q)&1023),ce[te>>2]|=(240|xe>>18)<<I[te++&3],ce[te>>2]|=(128|xe>>12&63)<<I[te++&3],ce[te>>2]|=(128|xe>>6&63)<<I[te++&3],ce[te>>2]|=(128|xe&63)<<I[te++&3]);if(this.lastByteIndex=te,te>=ge){for(this.start=te-ge,this.block=ce[J],te=0;te<J;++te)fe[te]^=ce[te];de(fe),this.reset=!0}else this.start=te}return this},S.prototype.encode=function(P,ee){var ie=P&255,ce=1,ge=[ie];for(P=P>>8,ie=P&255;ie>0;)ge.unshift(ie),P=P>>8,ie=P&255,++ce;return ee?ge.push(ce):ge.unshift(ce),this.update(ge),ge.length},S.prototype.encodeString=function(P){var ee,ie=typeof P;if(ie!=="string"){if(ie==="object"){if(P===null)throw new Error(e);if(l&&P.constructor===ArrayBuffer)P=new Uint8Array(P);else if(!Array.isArray(P)&&(!l||!ArrayBuffer.isView(P)))throw new Error(e)}else throw new Error(e);ee=!0}var ce=0,ge=P.length;if(ee)ce=ge;else for(var Z=0;Z<P.length;++Z){var J=P.charCodeAt(Z);J<128?ce+=1:J<2048?ce+=2:J<55296||J>=57344?ce+=3:(J=65536+((J&1023)<<10|P.charCodeAt(++Z)&1023),ce+=4)}return ce+=this.encode(ce*8),this.update(P),ce},S.prototype.bytepad=function(P,ee){for(var ie=this.encode(ee),ce=0;ce<P.length;++ce)ie+=this.encodeString(P[ce]);var ge=ee-ie%ee,Z=[];return Z.length=ge,this.update(Z),this},S.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var P=this.blocks,ee=this.lastByteIndex,ie=this.blockCount,ce=this.s;if(P[ee>>2]|=this.padding[ee&3],this.lastByteIndex===this.byteCount)for(P[0]=P[ie],ee=1;ee<ie+1;++ee)P[ee]=0;for(P[ie-1]|=2147483648,ee=0;ee<ie;++ee)ce[ee]^=P[ee];de(ce)}},S.prototype.toString=S.prototype.hex=function(){this.finalize();for(var P=this.blockCount,ee=this.s,ie=this.outputBlocks,ce=this.extraBytes,ge=0,Z=0,J="",Q;Z<ie;){for(ge=0;ge<P&&Z<ie;++ge,++Z)Q=ee[ge],J+=c[Q>>4&15]+c[Q&15]+c[Q>>12&15]+c[Q>>8&15]+c[Q>>20&15]+c[Q>>16&15]+c[Q>>28&15]+c[Q>>24&15];Z%P===0&&(de(ee),ge=0)}return ce&&(Q=ee[ge],J+=c[Q>>4&15]+c[Q&15],ce>1&&(J+=c[Q>>12&15]+c[Q>>8&15]),ce>2&&(J+=c[Q>>20&15]+c[Q>>16&15])),J},S.prototype.arrayBuffer=function(){this.finalize();var P=this.blockCount,ee=this.s,ie=this.outputBlocks,ce=this.extraBytes,ge=0,Z=0,J=this.outputBits>>3,Q;ce?Q=new ArrayBuffer(ie+1<<2):Q=new ArrayBuffer(J);for(var fe=new Uint32Array(Q);Z<ie;){for(ge=0;ge<P&&Z<ie;++ge,++Z)fe[Z]=ee[ge];Z%P===0&&de(ee)}return ce&&(fe[ge]=ee[ge],Q=Q.slice(0,J)),Q},S.prototype.buffer=S.prototype.arrayBuffer,S.prototype.digest=S.prototype.array=function(){this.finalize();for(var P=this.blockCount,ee=this.s,ie=this.outputBlocks,ce=this.extraBytes,ge=0,Z=0,J=[],Q,fe;Z<ie;){for(ge=0;ge<P&&Z<ie;++ge,++Z)Q=Z<<2,fe=ee[ge],J[Q]=fe&255,J[Q+1]=fe>>8&255,J[Q+2]=fe>>16&255,J[Q+3]=fe>>24&255;Z%P===0&&de(ee)}return ce&&(Q=Z<<2,fe=ee[ge],J[Q]=fe&255,ce>1&&(J[Q+1]=fe>>8&255),ce>2&&(J[Q+2]=fe>>16&255)),J};function W(P,ee,ie){S.call(this,P,ee,ie)}W.prototype=new S,W.prototype.finalize=function(){return this.encode(this.outputBits,!0),S.prototype.finalize.call(this)};var de=function(P){var ee,ie,ce,ge,Z,J,Q,fe,te,xe,Ve,Me,je,We,Y,M,F,N,$,z,H,ne,re,se,le,me,he,Ce,ke,De,Le,Ie,_e,Te,ye,Re,Pe,Ke,Fe,tt,be,Ue,ct,it,Ye,Xe,pt,qe,wt,Mt,He,Ze,Je,$e,at,sr,st,dt,kn,Tn,Pn,Rn,An;for(ce=0;ce<48;ce+=2)ge=P[0]^P[10]^P[20]^P[30]^P[40],Z=P[1]^P[11]^P[21]^P[31]^P[41],J=P[2]^P[12]^P[22]^P[32]^P[42],Q=P[3]^P[13]^P[23]^P[33]^P[43],fe=P[4]^P[14]^P[24]^P[34]^P[44],te=P[5]^P[15]^P[25]^P[35]^P[45],xe=P[6]^P[16]^P[26]^P[36]^P[46],Ve=P[7]^P[17]^P[27]^P[37]^P[47],Me=P[8]^P[18]^P[28]^P[38]^P[48],je=P[9]^P[19]^P[29]^P[39]^P[49],ee=Me^(J<<1|Q>>>31),ie=je^(Q<<1|J>>>31),P[0]^=ee,P[1]^=ie,P[10]^=ee,P[11]^=ie,P[20]^=ee,P[21]^=ie,P[30]^=ee,P[31]^=ie,P[40]^=ee,P[41]^=ie,ee=ge^(fe<<1|te>>>31),ie=Z^(te<<1|fe>>>31),P[2]^=ee,P[3]^=ie,P[12]^=ee,P[13]^=ie,P[22]^=ee,P[23]^=ie,P[32]^=ee,P[33]^=ie,P[42]^=ee,P[43]^=ie,ee=J^(xe<<1|Ve>>>31),ie=Q^(Ve<<1|xe>>>31),P[4]^=ee,P[5]^=ie,P[14]^=ee,P[15]^=ie,P[24]^=ee,P[25]^=ie,P[34]^=ee,P[35]^=ie,P[44]^=ee,P[45]^=ie,ee=fe^(Me<<1|je>>>31),ie=te^(je<<1|Me>>>31),P[6]^=ee,P[7]^=ie,P[16]^=ee,P[17]^=ie,P[26]^=ee,P[27]^=ie,P[36]^=ee,P[37]^=ie,P[46]^=ee,P[47]^=ie,ee=xe^(ge<<1|Z>>>31),ie=Ve^(Z<<1|ge>>>31),P[8]^=ee,P[9]^=ie,P[18]^=ee,P[19]^=ie,P[28]^=ee,P[29]^=ie,P[38]^=ee,P[39]^=ie,P[48]^=ee,P[49]^=ie,We=P[0],Y=P[1],Xe=P[11]<<4|P[10]>>>28,pt=P[10]<<4|P[11]>>>28,Ce=P[20]<<3|P[21]>>>29,ke=P[21]<<3|P[20]>>>29,Tn=P[31]<<9|P[30]>>>23,Pn=P[30]<<9|P[31]>>>23,Ue=P[40]<<18|P[41]>>>14,ct=P[41]<<18|P[40]>>>14,Te=P[2]<<1|P[3]>>>31,ye=P[3]<<1|P[2]>>>31,M=P[13]<<12|P[12]>>>20,F=P[12]<<12|P[13]>>>20,qe=P[22]<<10|P[23]>>>22,wt=P[23]<<10|P[22]>>>22,De=P[33]<<13|P[32]>>>19,Le=P[32]<<13|P[33]>>>19,Rn=P[42]<<2|P[43]>>>30,An=P[43]<<2|P[42]>>>30,$e=P[5]<<30|P[4]>>>2,at=P[4]<<30|P[5]>>>2,Re=P[14]<<6|P[15]>>>26,Pe=P[15]<<6|P[14]>>>26,N=P[25]<<11|P[24]>>>21,$=P[24]<<11|P[25]>>>21,Mt=P[34]<<15|P[35]>>>17,He=P[35]<<15|P[34]>>>17,Ie=P[45]<<29|P[44]>>>3,_e=P[44]<<29|P[45]>>>3,se=P[6]<<28|P[7]>>>4,le=P[7]<<28|P[6]>>>4,sr=P[17]<<23|P[16]>>>9,st=P[16]<<23|P[17]>>>9,Ke=P[26]<<25|P[27]>>>7,Fe=P[27]<<25|P[26]>>>7,z=P[36]<<21|P[37]>>>11,H=P[37]<<21|P[36]>>>11,Ze=P[47]<<24|P[46]>>>8,Je=P[46]<<24|P[47]>>>8,it=P[8]<<27|P[9]>>>5,Ye=P[9]<<27|P[8]>>>5,me=P[18]<<20|P[19]>>>12,he=P[19]<<20|P[18]>>>12,dt=P[29]<<7|P[28]>>>25,kn=P[28]<<7|P[29]>>>25,tt=P[38]<<8|P[39]>>>24,be=P[39]<<8|P[38]>>>24,ne=P[48]<<14|P[49]>>>18,re=P[49]<<14|P[48]>>>18,P[0]=We^~M&N,P[1]=Y^~F&$,P[10]=se^~me&Ce,P[11]=le^~he&ke,P[20]=Te^~Re&Ke,P[21]=ye^~Pe&Fe,P[30]=it^~Xe&qe,P[31]=Ye^~pt&wt,P[40]=$e^~sr&dt,P[41]=at^~st&kn,P[2]=M^~N&z,P[3]=F^~$&H,P[12]=me^~Ce&De,P[13]=he^~ke&Le,P[22]=Re^~Ke&tt,P[23]=Pe^~Fe&be,P[32]=Xe^~qe&Mt,P[33]=pt^~wt&He,P[42]=sr^~dt&Tn,P[43]=st^~kn&Pn,P[4]=N^~z&ne,P[5]=$^~H&re,P[14]=Ce^~De&Ie,P[15]=ke^~Le&_e,P[24]=Ke^~tt&Ue,P[25]=Fe^~be&ct,P[34]=qe^~Mt&Ze,P[35]=wt^~He&Je,P[44]=dt^~Tn&Rn,P[45]=kn^~Pn&An,P[6]=z^~ne&We,P[7]=H^~re&Y,P[16]=De^~Ie&se,P[17]=Le^~_e&le,P[26]=tt^~Ue&Te,P[27]=be^~ct&ye,P[36]=Mt^~Ze&it,P[37]=He^~Je&Ye,P[46]=Tn^~Rn&$e,P[47]=Pn^~An&at,P[8]=ne^~We&M,P[9]=re^~Y&F,P[18]=Ie^~se&me,P[19]=_e^~le&he,P[28]=Ue^~Te&Re,P[29]=ct^~ye&Pe,P[38]=Ze^~it&Xe,P[39]=Je^~Ye&pt,P[48]=Rn^~$e&sr,P[49]=An^~at&st,P[0]^=V[ce],P[1]^=V[ce+1]};if(a)Sf.exports=u;else{for(y=0;y<m.length;++y)n[m[y]]=u[m[y]];s&&define(function(){return u})}})()});var vm=Qe(()=>{f();h();d()});var d2=Qe((f2,ym)=>{f();h();d();(function(e,t){"use strict";function r(b,u){if(!b)throw new Error(u||"Assertion failed")}function n(b,u){b.super_=u;var m=function(){};m.prototype=u.prototype,b.prototype=new m,b.prototype.constructor=b}function o(b,u,m){if(o.isBN(b))return b;this.negative=0,this.words=null,this.length=0,this.red=null,b!==null&&((u==="le"||u==="be")&&(m=u,u=10),this._init(b||0,u||10,m||"be"))}typeof e=="object"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=vm().Buffer}catch(b){}o.isBN=function(u){return u instanceof o?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===o.wordSize&&Array.isArray(u.words)},o.max=function(u,m){return u.cmp(m)>0?u:m},o.min=function(u,m){return u.cmp(m)<0?u:m},o.prototype._init=function(u,m,y){if(typeof u=="number")return this._initNumber(u,m,y);if(typeof u=="object")return this._initArray(u,m,y);m==="hex"&&(m=16),r(m===(m|0)&&m>=2&&m<=36),u=u.toString().replace(/\s+/g,"");var x=0;u[0]==="-"&&(x++,this.negative=1),x<u.length&&(m===16?this._parseHex(u,x,y):(this._parseBase(u,m,x),y==="le"&&this._initArray(this.toArray(),m,y)))},o.prototype._initNumber=function(u,m,y){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),y==="le"&&this._initArray(this.toArray(),m,y)},o.prototype._initArray=function(u,m,y){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var p,E,q=0;if(y==="be")for(x=u.length-1,p=0;x>=0;x-=3)E=u[x]|u[x-1]<<8|u[x-2]<<16,this.words[p]|=E<<q&67108863,this.words[p+1]=E>>>26-q&67108863,q+=24,q>=26&&(q-=26,p++);else if(y==="le")for(x=0,p=0;x<u.length;x+=3)E=u[x]|u[x+1]<<8|u[x+2]<<16,this.words[p]|=E<<q&67108863,this.words[p+1]=E>>>26-q&67108863,q+=24,q>=26&&(q-=26,p++);return this._strip()};function a(b,u){var m=b.charCodeAt(u);if(m>=48&&m<=57)return m-48;if(m>=65&&m<=70)return m-55;if(m>=97&&m<=102)return m-87;r(!1,"Invalid character in "+b)}function s(b,u,m){var y=a(b,m);return m-1>=u&&(y|=a(b,m-1)<<4),y}o.prototype._parseHex=function(u,m,y){this.length=Math.ceil((u.length-m)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var p=0,E=0,q;if(y==="be")for(x=u.length-1;x>=m;x-=2)q=s(u,m,x)<<p,this.words[E]|=q&67108863,p>=18?(p-=18,E+=1,this.words[E]|=q>>>26):p+=8;else{var U=u.length-m;for(x=U%2===0?m+1:m;x<u.length;x+=2)q=s(u,m,x)<<p,this.words[E]|=q&67108863,p>=18?(p-=18,E+=1,this.words[E]|=q>>>26):p+=8}this._strip()};function l(b,u,m,y){for(var x=0,p=0,E=Math.min(b.length,m),q=u;q<E;q++){var U=b.charCodeAt(q)-48;x*=y,U>=49?p=U-49+10:U>=17?p=U-17+10:p=U,r(U>=0&&p<y,"Invalid character"),x+=p}return x}o.prototype._parseBase=function(u,m,y){this.words=[0],this.length=1;for(var x=0,p=1;p<=67108863;p*=m)x++;x--,p=p/m|0;for(var E=u.length-y,q=E%x,U=Math.min(E,E-q)+y,S=0,W=y;W<U;W+=x)S=l(u,W,W+x,m),this.imuln(p),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S);if(q!==0){var de=1;for(S=l(u,W,u.length,m),W=0;W<q;W++)de*=m;this.imuln(de),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S)}this._strip()},o.prototype.copy=function(u){u.words=new Array(this.length);for(var m=0;m<this.length;m++)u.words[m]=this.words[m];u.length=this.length,u.negative=this.negative,u.red=this.red};function c(b,u){b.words=u.words,b.length=u.length,b.negative=u.negative,b.red=u.red}if(o.prototype._move=function(u){c(u,this)},o.prototype.clone=function(){var u=new o(null);return this.copy(u),u},o.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch(b){o.prototype.inspect=g}else o.prototype.inspect=g;function g(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","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"],k=[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],R=[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];o.prototype.toString=function(u,m){u=u||10,m=m|0||1;var y;if(u===16||u==="hex"){y="";for(var x=0,p=0,E=0;E<this.length;E++){var q=this.words[E],U=((q<<x|p)&16777215).toString(16);p=q>>>24-x&16777215,x+=2,x>=26&&(x-=26,E--),p!==0||E!==this.length-1?y=_[6-U.length]+U+y:y=U+y}for(p!==0&&(y=p.toString(16)+y);y.length%m!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}if(u===(u|0)&&u>=2&&u<=36){var S=k[u],W=R[u];y="";var de=this.clone();for(de.negative=0;!de.isZero();){var P=de.modrn(W).toString(u);de=de.idivn(W),de.isZero()?y=P+y:y=_[S-P.length]+P+y}for(this.isZero()&&(y="0"+y);y.length%m!==0;)y="0"+y;return this.negative!==0&&(y="-"+y),y}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},i&&(o.prototype.toBuffer=function(u,m){return this.toArrayLike(i,u,m)}),o.prototype.toArray=function(u,m){return this.toArrayLike(Array,u,m)};var I=function(u,m){return u.allocUnsafe?u.allocUnsafe(m):new u(m)};o.prototype.toArrayLike=function(u,m,y){this._strip();var x=this.byteLength(),p=y||Math.max(1,x);r(x<=p,"byte array longer than desired length"),r(p>0,"Requested array length <= 0");var E=I(u,p),q=m==="le"?"LE":"BE";return this["_toArrayLike"+q](E,x),E},o.prototype._toArrayLikeLE=function(u,m){for(var y=0,x=0,p=0,E=0;p<this.length;p++){var q=this.words[p]<<E|x;u[y++]=q&255,y<u.length&&(u[y++]=q>>8&255),y<u.length&&(u[y++]=q>>16&255),E===6?(y<u.length&&(u[y++]=q>>24&255),x=0,E=0):(x=q>>>24,E+=2)}if(y<u.length)for(u[y++]=x;y<u.length;)u[y++]=0},o.prototype._toArrayLikeBE=function(u,m){for(var y=u.length-1,x=0,p=0,E=0;p<this.length;p++){var q=this.words[p]<<E|x;u[y--]=q&255,y>=0&&(u[y--]=q>>8&255),y>=0&&(u[y--]=q>>16&255),E===6?(y>=0&&(u[y--]=q>>24&255),x=0,E=0):(x=q>>>24,E+=2)}if(y>=0)for(u[y--]=x;y>=0;)u[y--]=0},Math.clz32?o.prototype._countBits=function(u){return 32-Math.clz32(u)}:o.prototype._countBits=function(u){var m=u,y=0;return m>=4096&&(y+=13,m>>>=13),m>=64&&(y+=7,m>>>=7),m>=8&&(y+=4,m>>>=4),m>=2&&(y+=2,m>>>=2),y+m},o.prototype._zeroBits=function(u){if(u===0)return 26;var m=u,y=0;return(m&8191)===0&&(y+=13,m>>>=13),(m&127)===0&&(y+=7,m>>>=7),(m&15)===0&&(y+=4,m>>>=4),(m&3)===0&&(y+=2,m>>>=2),(m&1)===0&&y++,y},o.prototype.bitLength=function(){var u=this.words[this.length-1],m=this._countBits(u);return(this.length-1)*26+m};function V(b){for(var u=new Array(b.bitLength()),m=0;m<u.length;m++){var y=m/26|0,x=m%26;u[m]=b.words[y]>>>x&1}return u}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,m=0;m<this.length;m++){var y=this._zeroBits(this.words[m]);if(u+=y,y!==26)break}return u},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},o.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var m=0;m<u.length;m++)this.words[m]=this.words[m]|u.words[m];return this._strip()},o.prototype.ior=function(u){return r((this.negative|u.negative)===0),this.iuor(u)},o.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var m;this.length>u.length?m=u:m=this;for(var y=0;y<m.length;y++)this.words[y]=this.words[y]&u.words[y];return this.length=m.length,this._strip()},o.prototype.iand=function(u){return r((this.negative|u.negative)===0),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var m,y;this.length>u.length?(m=this,y=u):(m=u,y=this);for(var x=0;x<y.length;x++)this.words[x]=m.words[x]^y.words[x];if(this!==m)for(;x<m.length;x++)this.words[x]=m.words[x];return this.length=m.length,this._strip()},o.prototype.ixor=function(u){return r((this.negative|u.negative)===0),this.iuxor(u)},o.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var m=Math.ceil(u/26)|0,y=u%26;this._expand(m),y>0&&m--;for(var x=0;x<m;x++)this.words[x]=~this.words[x]&67108863;return y>0&&(this.words[x]=~this.words[x]&67108863>>26-y),this._strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,m){r(typeof u=="number"&&u>=0);var y=u/26|0,x=u%26;return this._expand(y+1),m?this.words[y]=this.words[y]|1<<x:this.words[y]=this.words[y]&~(1<<x),this._strip()},o.prototype.iadd=function(u){var m;if(this.negative!==0&&u.negative===0)return this.negative=0,m=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,m=this.isub(u),u.negative=1,m._normSign();var y,x;this.length>u.length?(y=this,x=u):(y=u,x=this);for(var p=0,E=0;E<x.length;E++)m=(y.words[E]|0)+(x.words[E]|0)+p,this.words[E]=m&67108863,p=m>>>26;for(;p!==0&&E<y.length;E++)m=(y.words[E]|0)+p,this.words[E]=m&67108863,p=m>>>26;if(this.length=y.length,p!==0)this.words[this.length]=p,this.length++;else if(y!==this)for(;E<y.length;E++)this.words[E]=y.words[E];return this},o.prototype.add=function(u){var m;return u.negative!==0&&this.negative===0?(u.negative=0,m=this.sub(u),u.negative^=1,m):u.negative===0&&this.negative!==0?(this.negative=0,m=u.sub(this),this.negative=1,m):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var m=this.iadd(u);return u.negative=1,m._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var y=this.cmp(u);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;var x,p;y>0?(x=this,p=u):(x=u,p=this);for(var E=0,q=0;q<p.length;q++)m=(x.words[q]|0)-(p.words[q]|0)+E,E=m>>26,this.words[q]=m&67108863;for(;E!==0&&q<x.length;q++)m=(x.words[q]|0)+E,E=m>>26,this.words[q]=m&67108863;if(E===0&&q<x.length&&x!==this)for(;q<x.length;q++)this.words[q]=x.words[q];return this.length=Math.max(this.length,q),x!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(u){return this.clone().isub(u)};function j(b,u,m){m.negative=u.negative^b.negative;var y=b.length+u.length|0;m.length=y,y=y-1|0;var x=b.words[0]|0,p=u.words[0]|0,E=x*p,q=E&67108863,U=E/67108864|0;m.words[0]=q;for(var S=1;S<y;S++){for(var W=U>>>26,de=U&67108863,P=Math.min(S,u.length-1),ee=Math.max(0,S-b.length+1);ee<=P;ee++){var ie=S-ee|0;x=b.words[ie]|0,p=u.words[ee]|0,E=x*p+de,W+=E/67108864|0,de=E&67108863}m.words[S]=de|0,U=W|0}return U!==0?m.words[S]=U|0:m.length--,m._strip()}var L=function(u,m,y){var x=u.words,p=m.words,E=y.words,q=0,U,S,W,de=x[0]|0,P=de&8191,ee=de>>>13,ie=x[1]|0,ce=ie&8191,ge=ie>>>13,Z=x[2]|0,J=Z&8191,Q=Z>>>13,fe=x[3]|0,te=fe&8191,xe=fe>>>13,Ve=x[4]|0,Me=Ve&8191,je=Ve>>>13,We=x[5]|0,Y=We&8191,M=We>>>13,F=x[6]|0,N=F&8191,$=F>>>13,z=x[7]|0,H=z&8191,ne=z>>>13,re=x[8]|0,se=re&8191,le=re>>>13,me=x[9]|0,he=me&8191,Ce=me>>>13,ke=p[0]|0,De=ke&8191,Le=ke>>>13,Ie=p[1]|0,_e=Ie&8191,Te=Ie>>>13,ye=p[2]|0,Re=ye&8191,Pe=ye>>>13,Ke=p[3]|0,Fe=Ke&8191,tt=Ke>>>13,be=p[4]|0,Ue=be&8191,ct=be>>>13,it=p[5]|0,Ye=it&8191,Xe=it>>>13,pt=p[6]|0,qe=pt&8191,wt=pt>>>13,Mt=p[7]|0,He=Mt&8191,Ze=Mt>>>13,Je=p[8]|0,$e=Je&8191,at=Je>>>13,sr=p[9]|0,st=sr&8191,dt=sr>>>13;y.negative=u.negative^m.negative,y.length=19,U=Math.imul(P,De),S=Math.imul(P,Le),S=S+Math.imul(ee,De)|0,W=Math.imul(ee,Le);var kn=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(kn>>>26)|0,kn&=67108863,U=Math.imul(ce,De),S=Math.imul(ce,Le),S=S+Math.imul(ge,De)|0,W=Math.imul(ge,Le),U=U+Math.imul(P,_e)|0,S=S+Math.imul(P,Te)|0,S=S+Math.imul(ee,_e)|0,W=W+Math.imul(ee,Te)|0;var Tn=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,U=Math.imul(J,De),S=Math.imul(J,Le),S=S+Math.imul(Q,De)|0,W=Math.imul(Q,Le),U=U+Math.imul(ce,_e)|0,S=S+Math.imul(ce,Te)|0,S=S+Math.imul(ge,_e)|0,W=W+Math.imul(ge,Te)|0,U=U+Math.imul(P,Re)|0,S=S+Math.imul(P,Pe)|0,S=S+Math.imul(ee,Re)|0,W=W+Math.imul(ee,Pe)|0;var Pn=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,U=Math.imul(te,De),S=Math.imul(te,Le),S=S+Math.imul(xe,De)|0,W=Math.imul(xe,Le),U=U+Math.imul(J,_e)|0,S=S+Math.imul(J,Te)|0,S=S+Math.imul(Q,_e)|0,W=W+Math.imul(Q,Te)|0,U=U+Math.imul(ce,Re)|0,S=S+Math.imul(ce,Pe)|0,S=S+Math.imul(ge,Re)|0,W=W+Math.imul(ge,Pe)|0,U=U+Math.imul(P,Fe)|0,S=S+Math.imul(P,tt)|0,S=S+Math.imul(ee,Fe)|0,W=W+Math.imul(ee,tt)|0;var Rn=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,U=Math.imul(Me,De),S=Math.imul(Me,Le),S=S+Math.imul(je,De)|0,W=Math.imul(je,Le),U=U+Math.imul(te,_e)|0,S=S+Math.imul(te,Te)|0,S=S+Math.imul(xe,_e)|0,W=W+Math.imul(xe,Te)|0,U=U+Math.imul(J,Re)|0,S=S+Math.imul(J,Pe)|0,S=S+Math.imul(Q,Re)|0,W=W+Math.imul(Q,Pe)|0,U=U+Math.imul(ce,Fe)|0,S=S+Math.imul(ce,tt)|0,S=S+Math.imul(ge,Fe)|0,W=W+Math.imul(ge,tt)|0,U=U+Math.imul(P,Ue)|0,S=S+Math.imul(P,ct)|0,S=S+Math.imul(ee,Ue)|0,W=W+Math.imul(ee,ct)|0;var An=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(An>>>26)|0,An&=67108863,U=Math.imul(Y,De),S=Math.imul(Y,Le),S=S+Math.imul(M,De)|0,W=Math.imul(M,Le),U=U+Math.imul(Me,_e)|0,S=S+Math.imul(Me,Te)|0,S=S+Math.imul(je,_e)|0,W=W+Math.imul(je,Te)|0,U=U+Math.imul(te,Re)|0,S=S+Math.imul(te,Pe)|0,S=S+Math.imul(xe,Re)|0,W=W+Math.imul(xe,Pe)|0,U=U+Math.imul(J,Fe)|0,S=S+Math.imul(J,tt)|0,S=S+Math.imul(Q,Fe)|0,W=W+Math.imul(Q,tt)|0,U=U+Math.imul(ce,Ue)|0,S=S+Math.imul(ce,ct)|0,S=S+Math.imul(ge,Ue)|0,W=W+Math.imul(ge,ct)|0,U=U+Math.imul(P,Ye)|0,S=S+Math.imul(P,Xe)|0,S=S+Math.imul(ee,Ye)|0,W=W+Math.imul(ee,Xe)|0;var oa=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(oa>>>26)|0,oa&=67108863,U=Math.imul(N,De),S=Math.imul(N,Le),S=S+Math.imul($,De)|0,W=Math.imul($,Le),U=U+Math.imul(Y,_e)|0,S=S+Math.imul(Y,Te)|0,S=S+Math.imul(M,_e)|0,W=W+Math.imul(M,Te)|0,U=U+Math.imul(Me,Re)|0,S=S+Math.imul(Me,Pe)|0,S=S+Math.imul(je,Re)|0,W=W+Math.imul(je,Pe)|0,U=U+Math.imul(te,Fe)|0,S=S+Math.imul(te,tt)|0,S=S+Math.imul(xe,Fe)|0,W=W+Math.imul(xe,tt)|0,U=U+Math.imul(J,Ue)|0,S=S+Math.imul(J,ct)|0,S=S+Math.imul(Q,Ue)|0,W=W+Math.imul(Q,ct)|0,U=U+Math.imul(ce,Ye)|0,S=S+Math.imul(ce,Xe)|0,S=S+Math.imul(ge,Ye)|0,W=W+Math.imul(ge,Xe)|0,U=U+Math.imul(P,qe)|0,S=S+Math.imul(P,wt)|0,S=S+Math.imul(ee,qe)|0,W=W+Math.imul(ee,wt)|0;var ia=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(ia>>>26)|0,ia&=67108863,U=Math.imul(H,De),S=Math.imul(H,Le),S=S+Math.imul(ne,De)|0,W=Math.imul(ne,Le),U=U+Math.imul(N,_e)|0,S=S+Math.imul(N,Te)|0,S=S+Math.imul($,_e)|0,W=W+Math.imul($,Te)|0,U=U+Math.imul(Y,Re)|0,S=S+Math.imul(Y,Pe)|0,S=S+Math.imul(M,Re)|0,W=W+Math.imul(M,Pe)|0,U=U+Math.imul(Me,Fe)|0,S=S+Math.imul(Me,tt)|0,S=S+Math.imul(je,Fe)|0,W=W+Math.imul(je,tt)|0,U=U+Math.imul(te,Ue)|0,S=S+Math.imul(te,ct)|0,S=S+Math.imul(xe,Ue)|0,W=W+Math.imul(xe,ct)|0,U=U+Math.imul(J,Ye)|0,S=S+Math.imul(J,Xe)|0,S=S+Math.imul(Q,Ye)|0,W=W+Math.imul(Q,Xe)|0,U=U+Math.imul(ce,qe)|0,S=S+Math.imul(ce,wt)|0,S=S+Math.imul(ge,qe)|0,W=W+Math.imul(ge,wt)|0,U=U+Math.imul(P,He)|0,S=S+Math.imul(P,Ze)|0,S=S+Math.imul(ee,He)|0,W=W+Math.imul(ee,Ze)|0;var aa=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(aa>>>26)|0,aa&=67108863,U=Math.imul(se,De),S=Math.imul(se,Le),S=S+Math.imul(le,De)|0,W=Math.imul(le,Le),U=U+Math.imul(H,_e)|0,S=S+Math.imul(H,Te)|0,S=S+Math.imul(ne,_e)|0,W=W+Math.imul(ne,Te)|0,U=U+Math.imul(N,Re)|0,S=S+Math.imul(N,Pe)|0,S=S+Math.imul($,Re)|0,W=W+Math.imul($,Pe)|0,U=U+Math.imul(Y,Fe)|0,S=S+Math.imul(Y,tt)|0,S=S+Math.imul(M,Fe)|0,W=W+Math.imul(M,tt)|0,U=U+Math.imul(Me,Ue)|0,S=S+Math.imul(Me,ct)|0,S=S+Math.imul(je,Ue)|0,W=W+Math.imul(je,ct)|0,U=U+Math.imul(te,Ye)|0,S=S+Math.imul(te,Xe)|0,S=S+Math.imul(xe,Ye)|0,W=W+Math.imul(xe,Xe)|0,U=U+Math.imul(J,qe)|0,S=S+Math.imul(J,wt)|0,S=S+Math.imul(Q,qe)|0,W=W+Math.imul(Q,wt)|0,U=U+Math.imul(ce,He)|0,S=S+Math.imul(ce,Ze)|0,S=S+Math.imul(ge,He)|0,W=W+Math.imul(ge,Ze)|0,U=U+Math.imul(P,$e)|0,S=S+Math.imul(P,at)|0,S=S+Math.imul(ee,$e)|0,W=W+Math.imul(ee,at)|0;var sa=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(sa>>>26)|0,sa&=67108863,U=Math.imul(he,De),S=Math.imul(he,Le),S=S+Math.imul(Ce,De)|0,W=Math.imul(Ce,Le),U=U+Math.imul(se,_e)|0,S=S+Math.imul(se,Te)|0,S=S+Math.imul(le,_e)|0,W=W+Math.imul(le,Te)|0,U=U+Math.imul(H,Re)|0,S=S+Math.imul(H,Pe)|0,S=S+Math.imul(ne,Re)|0,W=W+Math.imul(ne,Pe)|0,U=U+Math.imul(N,Fe)|0,S=S+Math.imul(N,tt)|0,S=S+Math.imul($,Fe)|0,W=W+Math.imul($,tt)|0,U=U+Math.imul(Y,Ue)|0,S=S+Math.imul(Y,ct)|0,S=S+Math.imul(M,Ue)|0,W=W+Math.imul(M,ct)|0,U=U+Math.imul(Me,Ye)|0,S=S+Math.imul(Me,Xe)|0,S=S+Math.imul(je,Ye)|0,W=W+Math.imul(je,Xe)|0,U=U+Math.imul(te,qe)|0,S=S+Math.imul(te,wt)|0,S=S+Math.imul(xe,qe)|0,W=W+Math.imul(xe,wt)|0,U=U+Math.imul(J,He)|0,S=S+Math.imul(J,Ze)|0,S=S+Math.imul(Q,He)|0,W=W+Math.imul(Q,Ze)|0,U=U+Math.imul(ce,$e)|0,S=S+Math.imul(ce,at)|0,S=S+Math.imul(ge,$e)|0,W=W+Math.imul(ge,at)|0,U=U+Math.imul(P,st)|0,S=S+Math.imul(P,dt)|0,S=S+Math.imul(ee,st)|0,W=W+Math.imul(ee,dt)|0;var la=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(la>>>26)|0,la&=67108863,U=Math.imul(he,_e),S=Math.imul(he,Te),S=S+Math.imul(Ce,_e)|0,W=Math.imul(Ce,Te),U=U+Math.imul(se,Re)|0,S=S+Math.imul(se,Pe)|0,S=S+Math.imul(le,Re)|0,W=W+Math.imul(le,Pe)|0,U=U+Math.imul(H,Fe)|0,S=S+Math.imul(H,tt)|0,S=S+Math.imul(ne,Fe)|0,W=W+Math.imul(ne,tt)|0,U=U+Math.imul(N,Ue)|0,S=S+Math.imul(N,ct)|0,S=S+Math.imul($,Ue)|0,W=W+Math.imul($,ct)|0,U=U+Math.imul(Y,Ye)|0,S=S+Math.imul(Y,Xe)|0,S=S+Math.imul(M,Ye)|0,W=W+Math.imul(M,Xe)|0,U=U+Math.imul(Me,qe)|0,S=S+Math.imul(Me,wt)|0,S=S+Math.imul(je,qe)|0,W=W+Math.imul(je,wt)|0,U=U+Math.imul(te,He)|0,S=S+Math.imul(te,Ze)|0,S=S+Math.imul(xe,He)|0,W=W+Math.imul(xe,Ze)|0,U=U+Math.imul(J,$e)|0,S=S+Math.imul(J,at)|0,S=S+Math.imul(Q,$e)|0,W=W+Math.imul(Q,at)|0,U=U+Math.imul(ce,st)|0,S=S+Math.imul(ce,dt)|0,S=S+Math.imul(ge,st)|0,W=W+Math.imul(ge,dt)|0;var ua=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(ua>>>26)|0,ua&=67108863,U=Math.imul(he,Re),S=Math.imul(he,Pe),S=S+Math.imul(Ce,Re)|0,W=Math.imul(Ce,Pe),U=U+Math.imul(se,Fe)|0,S=S+Math.imul(se,tt)|0,S=S+Math.imul(le,Fe)|0,W=W+Math.imul(le,tt)|0,U=U+Math.imul(H,Ue)|0,S=S+Math.imul(H,ct)|0,S=S+Math.imul(ne,Ue)|0,W=W+Math.imul(ne,ct)|0,U=U+Math.imul(N,Ye)|0,S=S+Math.imul(N,Xe)|0,S=S+Math.imul($,Ye)|0,W=W+Math.imul($,Xe)|0,U=U+Math.imul(Y,qe)|0,S=S+Math.imul(Y,wt)|0,S=S+Math.imul(M,qe)|0,W=W+Math.imul(M,wt)|0,U=U+Math.imul(Me,He)|0,S=S+Math.imul(Me,Ze)|0,S=S+Math.imul(je,He)|0,W=W+Math.imul(je,Ze)|0,U=U+Math.imul(te,$e)|0,S=S+Math.imul(te,at)|0,S=S+Math.imul(xe,$e)|0,W=W+Math.imul(xe,at)|0,U=U+Math.imul(J,st)|0,S=S+Math.imul(J,dt)|0,S=S+Math.imul(Q,st)|0,W=W+Math.imul(Q,dt)|0;var ca=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(ca>>>26)|0,ca&=67108863,U=Math.imul(he,Fe),S=Math.imul(he,tt),S=S+Math.imul(Ce,Fe)|0,W=Math.imul(Ce,tt),U=U+Math.imul(se,Ue)|0,S=S+Math.imul(se,ct)|0,S=S+Math.imul(le,Ue)|0,W=W+Math.imul(le,ct)|0,U=U+Math.imul(H,Ye)|0,S=S+Math.imul(H,Xe)|0,S=S+Math.imul(ne,Ye)|0,W=W+Math.imul(ne,Xe)|0,U=U+Math.imul(N,qe)|0,S=S+Math.imul(N,wt)|0,S=S+Math.imul($,qe)|0,W=W+Math.imul($,wt)|0,U=U+Math.imul(Y,He)|0,S=S+Math.imul(Y,Ze)|0,S=S+Math.imul(M,He)|0,W=W+Math.imul(M,Ze)|0,U=U+Math.imul(Me,$e)|0,S=S+Math.imul(Me,at)|0,S=S+Math.imul(je,$e)|0,W=W+Math.imul(je,at)|0,U=U+Math.imul(te,st)|0,S=S+Math.imul(te,dt)|0,S=S+Math.imul(xe,st)|0,W=W+Math.imul(xe,dt)|0;var fa=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(fa>>>26)|0,fa&=67108863,U=Math.imul(he,Ue),S=Math.imul(he,ct),S=S+Math.imul(Ce,Ue)|0,W=Math.imul(Ce,ct),U=U+Math.imul(se,Ye)|0,S=S+Math.imul(se,Xe)|0,S=S+Math.imul(le,Ye)|0,W=W+Math.imul(le,Xe)|0,U=U+Math.imul(H,qe)|0,S=S+Math.imul(H,wt)|0,S=S+Math.imul(ne,qe)|0,W=W+Math.imul(ne,wt)|0,U=U+Math.imul(N,He)|0,S=S+Math.imul(N,Ze)|0,S=S+Math.imul($,He)|0,W=W+Math.imul($,Ze)|0,U=U+Math.imul(Y,$e)|0,S=S+Math.imul(Y,at)|0,S=S+Math.imul(M,$e)|0,W=W+Math.imul(M,at)|0,U=U+Math.imul(Me,st)|0,S=S+Math.imul(Me,dt)|0,S=S+Math.imul(je,st)|0,W=W+Math.imul(je,dt)|0;var da=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(da>>>26)|0,da&=67108863,U=Math.imul(he,Ye),S=Math.imul(he,Xe),S=S+Math.imul(Ce,Ye)|0,W=Math.imul(Ce,Xe),U=U+Math.imul(se,qe)|0,S=S+Math.imul(se,wt)|0,S=S+Math.imul(le,qe)|0,W=W+Math.imul(le,wt)|0,U=U+Math.imul(H,He)|0,S=S+Math.imul(H,Ze)|0,S=S+Math.imul(ne,He)|0,W=W+Math.imul(ne,Ze)|0,U=U+Math.imul(N,$e)|0,S=S+Math.imul(N,at)|0,S=S+Math.imul($,$e)|0,W=W+Math.imul($,at)|0,U=U+Math.imul(Y,st)|0,S=S+Math.imul(Y,dt)|0,S=S+Math.imul(M,st)|0,W=W+Math.imul(M,dt)|0;var ha=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(ha>>>26)|0,ha&=67108863,U=Math.imul(he,qe),S=Math.imul(he,wt),S=S+Math.imul(Ce,qe)|0,W=Math.imul(Ce,wt),U=U+Math.imul(se,He)|0,S=S+Math.imul(se,Ze)|0,S=S+Math.imul(le,He)|0,W=W+Math.imul(le,Ze)|0,U=U+Math.imul(H,$e)|0,S=S+Math.imul(H,at)|0,S=S+Math.imul(ne,$e)|0,W=W+Math.imul(ne,at)|0,U=U+Math.imul(N,st)|0,S=S+Math.imul(N,dt)|0,S=S+Math.imul($,st)|0,W=W+Math.imul($,dt)|0;var tm=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(tm>>>26)|0,tm&=67108863,U=Math.imul(he,He),S=Math.imul(he,Ze),S=S+Math.imul(Ce,He)|0,W=Math.imul(Ce,Ze),U=U+Math.imul(se,$e)|0,S=S+Math.imul(se,at)|0,S=S+Math.imul(le,$e)|0,W=W+Math.imul(le,at)|0,U=U+Math.imul(H,st)|0,S=S+Math.imul(H,dt)|0,S=S+Math.imul(ne,st)|0,W=W+Math.imul(ne,dt)|0;var rm=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(rm>>>26)|0,rm&=67108863,U=Math.imul(he,$e),S=Math.imul(he,at),S=S+Math.imul(Ce,$e)|0,W=Math.imul(Ce,at),U=U+Math.imul(se,st)|0,S=S+Math.imul(se,dt)|0,S=S+Math.imul(le,st)|0,W=W+Math.imul(le,dt)|0;var nm=(q+U|0)+((S&8191)<<13)|0;q=(W+(S>>>13)|0)+(nm>>>26)|0,nm&=67108863,U=Math.imul(he,st),S=Math.imul(he,dt),S=S+Math.imul(Ce,st)|0,W=Math.imul(Ce,dt);var om=(q+U|0)+((S&8191)<<13)|0;return q=(W+(S>>>13)|0)+(om>>>26)|0,om&=67108863,E[0]=kn,E[1]=Tn,E[2]=Pn,E[3]=Rn,E[4]=An,E[5]=oa,E[6]=ia,E[7]=aa,E[8]=sa,E[9]=la,E[10]=ua,E[11]=ca,E[12]=fa,E[13]=da,E[14]=ha,E[15]=tm,E[16]=rm,E[17]=nm,E[18]=om,q!==0&&(E[19]=q,y.length++),y};Math.imul||(L=j);function D(b,u,m){m.negative=u.negative^b.negative,m.length=b.length+u.length;for(var y=0,x=0,p=0;p<m.length-1;p++){var E=x;x=0;for(var q=y&67108863,U=Math.min(p,u.length-1),S=Math.max(0,p-b.length+1);S<=U;S++){var W=p-S,de=b.words[W]|0,P=u.words[S]|0,ee=de*P,ie=ee&67108863;E=E+(ee/67108864|0)|0,ie=ie+q|0,q=ie&67108863,E=E+(ie>>>26)|0,x+=E>>>26,E&=67108863}m.words[p]=q,y=E,E=x}return y!==0?m.words[p]=y:m.length--,m._strip()}function B(b,u,m){return D(b,u,m)}o.prototype.mulTo=function(u,m){var y,x=this.length+u.length;return this.length===10&&u.length===10?y=L(this,u,m):x<63?y=j(this,u,m):x<1024?y=D(this,u,m):y=B(this,u,m),y};function K(b,u){this.x=b,this.y=u}K.prototype.makeRBT=function(u){for(var m=new Array(u),y=o.prototype._countBits(u)-1,x=0;x<u;x++)m[x]=this.revBin(x,y,u);return m},K.prototype.revBin=function(u,m,y){if(u===0||u===y-1)return u;for(var x=0,p=0;p<m;p++)x|=(u&1)<<m-p-1,u>>=1;return x},K.prototype.permute=function(u,m,y,x,p,E){for(var q=0;q<E;q++)x[q]=m[u[q]],p[q]=y[u[q]]},K.prototype.transform=function(u,m,y,x,p,E){this.permute(E,u,m,y,x,p);for(var q=1;q<p;q<<=1)for(var U=q<<1,S=Math.cos(2*Math.PI/U),W=Math.sin(2*Math.PI/U),de=0;de<p;de+=U)for(var P=S,ee=W,ie=0;ie<q;ie++){var ce=y[de+ie],ge=x[de+ie],Z=y[de+ie+q],J=x[de+ie+q],Q=P*Z-ee*J;J=P*J+ee*Z,Z=Q,y[de+ie]=ce+Z,x[de+ie]=ge+J,y[de+ie+q]=ce-Z,x[de+ie+q]=ge-J,ie!==U&&(Q=S*P-W*ee,ee=S*ee+W*P,P=Q)}},K.prototype.guessLen13b=function(u,m){var y=Math.max(m,u)|1,x=y&1,p=0;for(y=y/2|0;y;y=y>>>1)p++;return 1<<p+1+x},K.prototype.conjugate=function(u,m,y){if(!(y<=1))for(var x=0;x<y/2;x++){var p=u[x];u[x]=u[y-x-1],u[y-x-1]=p,p=m[x],m[x]=-m[y-x-1],m[y-x-1]=-p}},K.prototype.normalize13b=function(u,m){for(var y=0,x=0;x<m/2;x++){var p=Math.round(u[2*x+1]/m)*8192+Math.round(u[2*x]/m)+y;u[x]=p&67108863,p<67108864?y=0:y=p/67108864|0}return u},K.prototype.convert13b=function(u,m,y,x){for(var p=0,E=0;E<m;E++)p=p+(u[E]|0),y[2*E]=p&8191,p=p>>>13,y[2*E+1]=p&8191,p=p>>>13;for(E=2*m;E<x;++E)y[E]=0;r(p===0),r((p&-8192)===0)},K.prototype.stub=function(u){for(var m=new Array(u),y=0;y<u;y++)m[y]=0;return m},K.prototype.mulp=function(u,m,y){var x=2*this.guessLen13b(u.length,m.length),p=this.makeRBT(x),E=this.stub(x),q=new Array(x),U=new Array(x),S=new Array(x),W=new Array(x),de=new Array(x),P=new Array(x),ee=y.words;ee.length=x,this.convert13b(u.words,u.length,q,x),this.convert13b(m.words,m.length,W,x),this.transform(q,E,U,S,x,p),this.transform(W,E,de,P,x,p);for(var ie=0;ie<x;ie++){var ce=U[ie]*de[ie]-S[ie]*P[ie];S[ie]=U[ie]*P[ie]+S[ie]*de[ie],U[ie]=ce}return this.conjugate(U,S,x),this.transform(U,S,ee,E,x,p),this.conjugate(ee,E,x),this.normalize13b(ee,x),y.negative=u.negative^m.negative,y.length=u.length+m.length,y._strip()},o.prototype.mul=function(u){var m=new o(null);return m.words=new Array(this.length+u.length),this.mulTo(u,m)},o.prototype.mulf=function(u){var m=new o(null);return m.words=new Array(this.length+u.length),B(this,u,m)},o.prototype.imul=function(u){return this.clone().mulTo(u,this)},o.prototype.imuln=function(u){var m=u<0;m&&(u=-u),r(typeof u=="number"),r(u<67108864);for(var y=0,x=0;x<this.length;x++){var p=(this.words[x]|0)*u,E=(p&67108863)+(y&67108863);y>>=26,y+=p/67108864|0,y+=E>>>26,this.words[x]=E&67108863}return y!==0&&(this.words[x]=y,this.length++),m?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var m=V(u);if(m.length===0)return new o(1);for(var y=this,x=0;x<m.length&&m[x]===0;x++,y=y.sqr());if(++x<m.length)for(var p=y.sqr();x<m.length;x++,p=p.sqr())m[x]!==0&&(y=y.mul(p));return y},o.prototype.iushln=function(u){r(typeof u=="number"&&u>=0);var m=u%26,y=(u-m)/26,x=67108863>>>26-m<<26-m,p;if(m!==0){var E=0;for(p=0;p<this.length;p++){var q=this.words[p]&x,U=(this.words[p]|0)-q<<m;this.words[p]=U|E,E=q>>>26-m}E&&(this.words[p]=E,this.length++)}if(y!==0){for(p=this.length-1;p>=0;p--)this.words[p+y]=this.words[p];for(p=0;p<y;p++)this.words[p]=0;this.length+=y}return this._strip()},o.prototype.ishln=function(u){return r(this.negative===0),this.iushln(u)},o.prototype.iushrn=function(u,m,y){r(typeof u=="number"&&u>=0);var x;m?x=(m-m%26)/26:x=0;var p=u%26,E=Math.min((u-p)/26,this.length),q=67108863^67108863>>>p<<p,U=y;if(x-=E,x=Math.max(0,x),U){for(var S=0;S<E;S++)U.words[S]=this.words[S];U.length=E}if(E!==0)if(this.length>E)for(this.length-=E,S=0;S<this.length;S++)this.words[S]=this.words[S+E];else this.words[0]=0,this.length=1;var W=0;for(S=this.length-1;S>=0&&(W!==0||S>=x);S--){var de=this.words[S]|0;this.words[S]=W<<26-p|de>>>p,W=de&q}return U&&W!==0&&(U.words[U.length++]=W),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,m,y){return r(this.negative===0),this.iushrn(u,m,y)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var m=u%26,y=(u-m)/26,x=1<<m;if(this.length<=y)return!1;var p=this.words[y];return!!(p&x)},o.prototype.imaskn=function(u){r(typeof u=="number"&&u>=0);var m=u%26,y=(u-m)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=y)return this;if(m!==0&&y++,this.length=Math.min(y,this.length),m!==0){var x=67108863^67108863>>>m<<m;this.words[this.length-1]&=x}return this._strip()},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return r(typeof u=="number"),r(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<=u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var m=0;m<this.length&&this.words[m]>=67108864;m++)this.words[m]-=67108864,m===this.length-1?this.words[m+1]=1:this.words[m+1]++;return this.length=Math.max(this.length,m+1),this},o.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var m=0;m<this.length&&this.words[m]<0;m++)this.words[m]+=67108864,this.words[m+1]-=1;return this._strip()},o.prototype.addn=function(u){return this.clone().iaddn(u)},o.prototype.subn=function(u){return this.clone().isubn(u)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(u,m,y){var x=u.length+y,p;this._expand(x);var E,q=0;for(p=0;p<u.length;p++){E=(this.words[p+y]|0)+q;var U=(u.words[p]|0)*m;E-=U&67108863,q=(E>>26)-(U/67108864|0),this.words[p+y]=E&67108863}for(;p<this.length-y;p++)E=(this.words[p+y]|0)+q,q=E>>26,this.words[p+y]=E&67108863;if(q===0)return this._strip();for(r(q===-1),q=0,p=0;p<this.length;p++)E=-(this.words[p]|0)+q,q=E>>26,this.words[p]=E&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,m){var y=this.length-u.length,x=this.clone(),p=u,E=p.words[p.length-1]|0,q=this._countBits(E);y=26-q,y!==0&&(p=p.ushln(y),x.iushln(y),E=p.words[p.length-1]|0);var U=x.length-p.length,S;if(m!=="mod"){S=new o(null),S.length=U+1,S.words=new Array(S.length);for(var W=0;W<S.length;W++)S.words[W]=0}var de=x.clone()._ishlnsubmul(p,1,U);de.negative===0&&(x=de,S&&(S.words[U]=1));for(var P=U-1;P>=0;P--){var ee=(x.words[p.length+P]|0)*67108864+(x.words[p.length+P-1]|0);for(ee=Math.min(ee/E|0,67108863),x._ishlnsubmul(p,ee,P);x.negative!==0;)ee--,x.negative=0,x._ishlnsubmul(p,1,P),x.isZero()||(x.negative^=1);S&&(S.words[P]=ee)}return S&&S._strip(),x._strip(),m!=="div"&&y!==0&&x.iushrn(y),{div:S||null,mod:x}},o.prototype.divmod=function(u,m,y){if(r(!u.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var x,p,E;return this.negative!==0&&u.negative===0?(E=this.neg().divmod(u,m),m!=="mod"&&(x=E.div.neg()),m!=="div"&&(p=E.mod.neg(),y&&p.negative!==0&&p.iadd(u)),{div:x,mod:p}):this.negative===0&&u.negative!==0?(E=this.divmod(u.neg(),m),m!=="mod"&&(x=E.div.neg()),{div:x,mod:E.mod}):(this.negative&u.negative)!==0?(E=this.neg().divmod(u.neg(),m),m!=="div"&&(p=E.mod.neg(),y&&p.negative!==0&&p.isub(u)),{div:E.div,mod:p}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:u.length===1?m==="div"?{div:this.divn(u.words[0]),mod:null}:m==="mod"?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,m)},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var m=this.divmod(u);if(m.mod.isZero())return m.div;var y=m.div.negative!==0?m.mod.isub(u):m.mod,x=u.ushrn(1),p=u.andln(1),E=y.cmp(x);return E<0||p===1&&E===0?m.div:m.div.negative!==0?m.div.isubn(1):m.div.iaddn(1)},o.prototype.modrn=function(u){var m=u<0;m&&(u=-u),r(u<=67108863);for(var y=(1<<26)%u,x=0,p=this.length-1;p>=0;p--)x=(y*x+(this.words[p]|0))%u;return m?-x:x},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var m=u<0;m&&(u=-u),r(u<=67108863);for(var y=0,x=this.length-1;x>=0;x--){var p=(this.words[x]|0)+y*67108864;this.words[x]=p/u|0,y=p%u}return this._strip(),m?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var m=this,y=u.clone();m.negative!==0?m=m.umod(u):m=m.clone();for(var x=new o(1),p=new o(0),E=new o(0),q=new o(1),U=0;m.isEven()&&y.isEven();)m.iushrn(1),y.iushrn(1),++U;for(var S=y.clone(),W=m.clone();!m.isZero();){for(var de=0,P=1;(m.words[0]&P)===0&&de<26;++de,P<<=1);if(de>0)for(m.iushrn(de);de-- >0;)(x.isOdd()||p.isOdd())&&(x.iadd(S),p.isub(W)),x.iushrn(1),p.iushrn(1);for(var ee=0,ie=1;(y.words[0]&ie)===0&&ee<26;++ee,ie<<=1);if(ee>0)for(y.iushrn(ee);ee-- >0;)(E.isOdd()||q.isOdd())&&(E.iadd(S),q.isub(W)),E.iushrn(1),q.iushrn(1);m.cmp(y)>=0?(m.isub(y),x.isub(E),p.isub(q)):(y.isub(m),E.isub(x),q.isub(p))}return{a:E,b:q,gcd:y.iushln(U)}},o.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var m=this,y=u.clone();m.negative!==0?m=m.umod(u):m=m.clone();for(var x=new o(1),p=new o(0),E=y.clone();m.cmpn(1)>0&&y.cmpn(1)>0;){for(var q=0,U=1;(m.words[0]&U)===0&&q<26;++q,U<<=1);if(q>0)for(m.iushrn(q);q-- >0;)x.isOdd()&&x.iadd(E),x.iushrn(1);for(var S=0,W=1;(y.words[0]&W)===0&&S<26;++S,W<<=1);if(S>0)for(y.iushrn(S);S-- >0;)p.isOdd()&&p.iadd(E),p.iushrn(1);m.cmp(y)>=0?(m.isub(y),x.isub(p)):(y.isub(m),p.isub(x))}var de;return m.cmpn(1)===0?de=x:de=p,de.cmpn(0)<0&&de.iadd(u),de},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var m=this.clone(),y=u.clone();m.negative=0,y.negative=0;for(var x=0;m.isEven()&&y.isEven();x++)m.iushrn(1),y.iushrn(1);do{for(;m.isEven();)m.iushrn(1);for(;y.isEven();)y.iushrn(1);var p=m.cmp(y);if(p<0){var E=m;m=y,y=E}else if(p===0||y.cmpn(1)===0)break;m.isub(y)}while(!0);return y.iushln(x)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){r(typeof u=="number");var m=u%26,y=(u-m)/26,x=1<<m;if(this.length<=y)return this._expand(y+1),this.words[y]|=x,this;for(var p=x,E=y;p!==0&&E<this.length;E++){var q=this.words[E]|0;q+=p,p=q>>>26,q&=67108863,this.words[E]=q}return p!==0&&(this.words[E]=p,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(u){var m=u<0;if(this.negative!==0&&!m)return-1;if(this.negative===0&&m)return 1;this._strip();var y;if(this.length>1)y=1;else{m&&(u=-u),r(u<=67108863,"Number is too big");var x=this.words[0]|0;y=x===u?0:x<u?-1:1}return this.negative!==0?-y|0:y},o.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var m=this.ucmp(u);return this.negative!==0?-m|0:m},o.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var m=0,y=this.length-1;y>=0;y--){var x=this.words[y]|0,p=u.words[y]|0;if(x!==p){x<p?m=-1:x>p&&(m=1);break}}return m},o.prototype.gtn=function(u){return this.cmpn(u)===1},o.prototype.gt=function(u){return this.cmp(u)===1},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return this.cmpn(u)===-1},o.prototype.lt=function(u){return this.cmp(u)===-1},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return this.cmpn(u)===0},o.prototype.eq=function(u){return this.cmp(u)===0},o.red=function(u){return new T(u)},o.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var X={k256:null,p224:null,p192:null,p25519:null};function ue(b,u){this.name=b,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ue.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},ue.prototype.ireduce=function(u){var m=u,y;do this.split(m,this.tmp),m=this.imulK(m),m=m.iadd(this.tmp),y=m.bitLength();while(y>this.n);var x=y<this.n?-1:m.ucmp(this.p);return x===0?(m.words[0]=0,m.length=1):x>0?m.isub(this.p):m.strip!==void 0?m.strip():m._strip(),m},ue.prototype.split=function(u,m){u.iushrn(this.n,0,m)},ue.prototype.imulK=function(u){return u.imul(this.k)};function ae(){ue.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(ae,ue),ae.prototype.split=function(u,m){for(var y=4194303,x=Math.min(u.length,9),p=0;p<x;p++)m.words[p]=u.words[p];if(m.length=x,u.length<=9){u.words[0]=0,u.length=1;return}var E=u.words[9];for(m.words[m.length++]=E&y,p=10;p<u.length;p++){var q=u.words[p]|0;u.words[p-10]=(q&y)<<4|E>>>22,E=q}E>>>=22,u.words[p-10]=E,E===0&&u.length>10?u.length-=10:u.length-=9},ae.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var m=0,y=0;y<u.length;y++){var x=u.words[y]|0;m+=x*977,u.words[y]=m&67108863,m=x*64+(m/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function ve(){ue.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(ve,ue);function G(){ue.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(G,ue);function w(){ue.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(w,ue),w.prototype.imulK=function(u){for(var m=0,y=0;y<u.length;y++){var x=(u.words[y]|0)*19+m,p=x&67108863;x>>>=26,u.words[y]=p,m=x}return m!==0&&(u.words[u.length++]=m),u},o._prime=function(u){if(X[u])return X[u];var m;if(u==="k256")m=new ae;else if(u==="p224")m=new ve;else if(u==="p192")m=new G;else if(u==="p25519")m=new w;else throw new Error("Unknown prime "+u);return X[u]=m,m};function T(b){if(typeof b=="string"){var u=o._prime(b);this.m=u.p,this.prime=u}else r(b.gtn(1),"modulus must be greater than 1"),this.m=b,this.prime=null}T.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},T.prototype._verify2=function(u,m){r((u.negative|m.negative)===0,"red works only with positives"),r(u.red&&u.red===m.red,"red works only with red numbers")},T.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(c(u,u.umod(this.m)._forceRed(this)),u)},T.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},T.prototype.add=function(u,m){this._verify2(u,m);var y=u.add(m);return y.cmp(this.m)>=0&&y.isub(this.m),y._forceRed(this)},T.prototype.iadd=function(u,m){this._verify2(u,m);var y=u.iadd(m);return y.cmp(this.m)>=0&&y.isub(this.m),y},T.prototype.sub=function(u,m){this._verify2(u,m);var y=u.sub(m);return y.cmpn(0)<0&&y.iadd(this.m),y._forceRed(this)},T.prototype.isub=function(u,m){this._verify2(u,m);var y=u.isub(m);return y.cmpn(0)<0&&y.iadd(this.m),y},T.prototype.shl=function(u,m){return this._verify1(u),this.imod(u.ushln(m))},T.prototype.imul=function(u,m){return this._verify2(u,m),this.imod(u.imul(m))},T.prototype.mul=function(u,m){return this._verify2(u,m),this.imod(u.mul(m))},T.prototype.isqr=function(u){return this.imul(u,u.clone())},T.prototype.sqr=function(u){return this.mul(u,u)},T.prototype.sqrt=function(u){if(u.isZero())return u.clone();var m=this.m.andln(3);if(r(m%2===1),m===3){var y=this.m.add(new o(1)).iushrn(2);return this.pow(u,y)}for(var x=this.m.subn(1),p=0;!x.isZero()&&x.andln(1)===0;)p++,x.iushrn(1);r(!x.isZero());var E=new o(1).toRed(this),q=E.redNeg(),U=this.m.subn(1).iushrn(1),S=this.m.bitLength();for(S=new o(2*S*S).toRed(this);this.pow(S,U).cmp(q)!==0;)S.redIAdd(q);for(var W=this.pow(S,x),de=this.pow(u,x.addn(1).iushrn(1)),P=this.pow(u,x),ee=p;P.cmp(E)!==0;){for(var ie=P,ce=0;ie.cmp(E)!==0;ce++)ie=ie.redSqr();r(ce<ee);var ge=this.pow(W,new o(1).iushln(ee-ce-1));de=de.redMul(ge),W=ge.redSqr(),P=P.redMul(W),ee=ce}return de},T.prototype.invm=function(u){var m=u._invmp(this.m);return m.negative!==0?(m.negative=0,this.imod(m).redNeg()):this.imod(m)},T.prototype.pow=function(u,m){if(m.isZero())return new o(1).toRed(this);if(m.cmpn(1)===0)return u.clone();var y=4,x=new Array(1<<y);x[0]=new o(1).toRed(this),x[1]=u;for(var p=2;p<x.length;p++)x[p]=this.mul(x[p-1],u);var E=x[0],q=0,U=0,S=m.bitLength()%26;for(S===0&&(S=26),p=m.length-1;p>=0;p--){for(var W=m.words[p],de=S-1;de>=0;de--){var P=W>>de&1;if(E!==x[0]&&(E=this.sqr(E)),P===0&&q===0){U=0;continue}q<<=1,q|=P,U++,!(U!==y&&(p!==0||de!==0))&&(E=this.mul(E,x[q]),U=0,q=0)}S=26}return E},T.prototype.convertTo=function(u){var m=u.umod(this.m);return m===u?m.clone():m},T.prototype.convertFrom=function(u){var m=u.clone();return m.red=null,m},o.mont=function(u){return new A(u)};function A(b){T.call(this,b),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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(A,T),A.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},A.prototype.convertFrom=function(u){var m=this.imod(u.mul(this.rinv));return m.red=null,m},A.prototype.imul=function(u,m){if(u.isZero()||m.isZero())return u.words[0]=0,u.length=1,u;var y=u.imul(m),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=y.isub(x).iushrn(this.shift),E=p;return p.cmp(this.m)>=0?E=p.isub(this.m):p.cmpn(0)<0&&(E=p.iadd(this.m)),E._forceRed(this)},A.prototype.mul=function(u,m){if(u.isZero()||m.isZero())return new o(0)._forceRed(this);var y=u.mul(m),x=y.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=y.isub(x).iushrn(this.shift),E=p;return p.cmp(this.m)>=0?E=p.isub(this.m):p.cmpn(0)<0&&(E=p.iadd(this.m)),E._forceRed(this)},A.prototype.invm=function(u){var m=this.imod(u._invmp(this.m).mul(this.r2));return m._forceRed(this)}})(typeof ym>"u"||ym,f2)});var i_=Qe(Pt=>{"use strict";f();h();d();function Im(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(0<Pf(o,t))e[n]=t,e[r]=o,r=n;else break e}}function Qn(e){return e.length===0?null:e[0]}function Af(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,o=e.length,i=o>>>1;n<i;){var a=2*(n+1)-1,s=e[a],l=a+1,c=e[l];if(0>Pf(s,r))l<o&&0>Pf(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(l<o&&0>Pf(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Pf(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Z2=performance,Pt.unstable_now=function(){return Z2.now()}):(Pm=Date,Q2=Pm.now(),Pt.unstable_now=function(){return Pm.now()-Q2});var Z2,Pm,Q2,vo=[],hi=[],U9=1,Nn=null,Tr=3,If=!1,wa=!1,Eu=!1,e_=typeof setTimeout=="function"?setTimeout:null,t_=typeof clearTimeout=="function"?clearTimeout:null,X2=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Om(e){for(var t=Qn(hi);t!==null;){if(t.callback===null)Af(hi);else if(t.startTime<=e)Af(hi),t.sortIndex=t.expirationTime,Im(vo,t);else break;t=Qn(hi)}}function Nm(e){if(Eu=!1,Om(e),!wa)if(Qn(vo)!==null)wa=!0,Lm(Dm);else{var t=Qn(hi);t!==null&&Fm(Nm,t.startTime-e)}}function Dm(e,t){wa=!1,Eu&&(Eu=!1,t_(Mu),Mu=-1),If=!0;var r=Tr;try{for(Om(t),Nn=Qn(vo);Nn!==null&&(!(Nn.expirationTime>t)||e&&!o_());){var n=Nn.callback;if(typeof n=="function"){Nn.callback=null,Tr=Nn.priorityLevel;var o=n(Nn.expirationTime<=t);t=Pt.unstable_now(),typeof o=="function"?Nn.callback=o:Nn===Qn(vo)&&Af(vo),Om(t)}else Af(vo);Nn=Qn(vo)}if(Nn!==null)var i=!0;else{var a=Qn(hi);a!==null&&Fm(Nm,a.startTime-t),i=!1}return i}finally{Nn=null,Tr=r,If=!1}}var Of=!1,Rf=null,Mu=-1,r_=5,n_=-1;function o_(){return!(Pt.unstable_now()-n_<r_)}function Rm(){if(Rf!==null){var e=Pt.unstable_now();n_=e;var t=!0;try{t=Rf(!0,e)}finally{t?Su():(Of=!1,Rf=null)}}else Of=!1}var Su;typeof X2=="function"?Su=function(){X2(Rm)}:typeof MessageChannel<"u"?(Am=new MessageChannel,J2=Am.port2,Am.port1.onmessage=Rm,Su=function(){J2.postMessage(null)}):Su=function(){e_(Rm,0)};var Am,J2;function Lm(e){Rf=e,Of||(Of=!0,Su())}function Fm(e,t){Mu=e_(function(){e(Pt.unstable_now())},t)}Pt.unstable_IdlePriority=5;Pt.unstable_ImmediatePriority=1;Pt.unstable_LowPriority=4;Pt.unstable_NormalPriority=3;Pt.unstable_Profiling=null;Pt.unstable_UserBlockingPriority=2;Pt.unstable_cancelCallback=function(e){e.callback=null};Pt.unstable_continueExecution=function(){wa||If||(wa=!0,Lm(Dm))};Pt.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"):r_=0<e?Math.floor(1e3/e):5};Pt.unstable_getCurrentPriorityLevel=function(){return Tr};Pt.unstable_getFirstCallbackNode=function(){return Qn(vo)};Pt.unstable_next=function(e){switch(Tr){case 1:case 2:case 3:var t=3;break;default:t=Tr}var r=Tr;Tr=t;try{return e()}finally{Tr=r}};Pt.unstable_pauseExecution=function(){};Pt.unstable_requestPaint=function(){};Pt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Tr;Tr=e;try{return t()}finally{Tr=r}};Pt.unstable_scheduleCallback=function(e,t,r){var n=Pt.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 o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:U9++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>n?(e.sortIndex=r,Im(hi,e),Qn(vo)===null&&e===Qn(hi)&&(Eu?(t_(Mu),Mu=-1):Eu=!0,Fm(Nm,r-n))):(e.sortIndex=o,Im(vo,e),wa||If||(wa=!0,Lm(Dm))),e};Pt.unstable_shouldYield=o_;Pt.unstable_wrapCallback=function(e){var t=Tr;return function(){var r=Tr;Tr=t;try{return e.apply(this,arguments)}finally{Tr=r}}}});var s_=Qe((zH,a_)=>{"use strict";f();h();d();a_.exports=i_()});var hS=Qe(vn=>{"use strict";f();h();d();var pb=we(),mn=s_();function Ee(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 mb=new Set,Gu={};function Ia(e,t){Hs(e,t),Hs(e+"Capture",t)}function Hs(e,t){for(Gu[e]=t,e=0;e<t.length;e++)mb.add(t[e])}var Vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ag=Object.prototype.hasOwnProperty,j9=/^[: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]*$/,l_={},u_={};function z9(e){return ag.call(u_,e)?!0:ag.call(l_,e)?!1:j9.test(e)?u_[e]=!0:(l_[e]=!0,!1)}function H9(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 W9(e,t,r,n){if(t===null||typeof t>"u"||H9(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 Ur(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var xr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xr[e]=new Ur(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xr[t]=new Ur(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xr[e]=new Ur(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xr[e]=new Ur(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){xr[e]=new Ur(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xr[e]=new Ur(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xr[e]=new Ur(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xr[e]=new Ur(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xr[e]=new Ur(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xg=/[\-:]([a-z])/g;function Jg(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(Xg,Jg);xr[t]=new Ur(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(Xg,Jg);xr[t]=new Ur(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(Xg,Jg);xr[t]=new Ur(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!1,!1)});xr.xlinkHref=new Ur("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xr[e]=new Ur(e,1,!1,e.toLowerCase(),null,!0,!0)});function ev(e,t,r,n){var o=xr.hasOwnProperty(t)?xr[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(W9(t,r,o,n)&&(r=null),n||o===null?z9(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Ho=pb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nf=Symbol.for("react.element"),Cs=Symbol.for("react.portal"),ks=Symbol.for("react.fragment"),tv=Symbol.for("react.strict_mode"),sg=Symbol.for("react.profiler"),gb=Symbol.for("react.provider"),vb=Symbol.for("react.context"),rv=Symbol.for("react.forward_ref"),lg=Symbol.for("react.suspense"),ug=Symbol.for("react.suspense_list"),nv=Symbol.for("react.memo"),mi=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var yb=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var c_=Symbol.iterator;function Cu(e){return e===null||typeof e!="object"?null:(e=c_&&e[c_]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,$m;function Nu(e){if($m===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);$m=t&&t[1]||""}return`
2
- `+$m+e}var Bm=!1;function Vm(e,t){if(!e||Bm)return"";Bm=!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(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
3
- `),i=n.stack.split(`
4
- `),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
5
- `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Bm=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Nu(e):""}function q9(e){switch(e.tag){case 5:return Nu(e.type);case 16:return Nu("Lazy");case 13:return Nu("Suspense");case 19:return Nu("SuspenseList");case 0:case 2:case 15:return e=Vm(e.type,!1),e;case 11:return e=Vm(e.type.render,!1),e;case 1:return e=Vm(e.type,!0),e;default:return""}}function cg(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 ks:return"Fragment";case Cs:return"Portal";case sg:return"Profiler";case tv:return"StrictMode";case lg:return"Suspense";case ug:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vb:return(e.displayName||"Context")+".Consumer";case gb:return(e._context.displayName||"Context")+".Provider";case rv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nv:return t=e.displayName||null,t!==null?t:cg(e.type)||"Memo";case mi:t=e._payload,e=e._init;try{return cg(e(t))}catch(r){}}return null}function G9(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 cg(t);case 8:return t===tv?"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 Pi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function K9(e){var t=wb(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 o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Df(e){e._valueTracker||(e._valueTracker=K9(e))}function xb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=wb(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ud(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 fg(e,t){var r=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function f_(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pi(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 _b(e,t){t=t.checked,t!=null&&ev(e,"checked",t,!1)}function dg(e,t){_b(e,t);var r=Pi(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")?hg(e,t.type,r):t.hasOwnProperty("defaultValue")&&hg(e,t.type,Pi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d_(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 hg(e,t,r){(t!=="number"||ud(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Du=Array.isArray;function $s(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Pi(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function pg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ee(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function h_(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ee(92));if(Du(r)){if(1<r.length)throw Error(Ee(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pi(r)}}function bb(e,t){var r=Pi(t.value),n=Pi(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 p_(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Sb(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 mg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Sb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Lf,Eb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Lf=Lf||document.createElement("div"),Lf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ku(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var $u={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},Y9=["Webkit","ms","Moz","O"];Object.keys($u).forEach(function(e){Y9.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$u[t]=$u[e]})});function Mb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||$u.hasOwnProperty(e)&&$u[e]?(""+t).trim():t+"px"}function Cb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Mb(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Z9=Wt({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 gg(e,t){if(t){if(Z9[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function vg(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 yg=null;function ov(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wg=null,Bs=null,Vs=null;function m_(e){if(e=dc(e)){if(typeof wg!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=Fd(t),wg(e.stateNode,e.type,t))}}function kb(e){Bs?Vs?Vs.push(e):Vs=[e]:Bs=e}function Tb(){if(Bs){var e=Bs,t=Vs;if(Vs=Bs=null,m_(e),t)for(e=0;e<t.length;e++)m_(t[e])}}function Pb(e,t){return e(t)}function Rb(){}var Um=!1;function Ab(e,t,r){if(Um)return e(t,r);Um=!0;try{return Pb(e,t,r)}finally{Um=!1,(Bs!==null||Vs!==null)&&(Rb(),Tb())}}function Yu(e,t){var r=e.stateNode;if(r===null)return null;var n=Fd(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(Ee(231,t,typeof r));return r}var xg=!1;if(Vo)try{Es={},Object.defineProperty(Es,"passive",{get:function(){xg=!0}}),window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch(e){xg=!1}var Es;function Q9(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(g){this.onError(g)}}var Bu=!1,cd=null,fd=!1,_g=null,X9={onError:function(e){Bu=!0,cd=e}};function J9(e,t,r,n,o,i,a,s,l){Bu=!1,cd=null,Q9.apply(X9,arguments)}function eA(e,t,r,n,o,i,a,s,l){if(J9.apply(this,arguments),Bu){if(Bu){var c=cd;Bu=!1,cd=null}else throw Error(Ee(198));fd||(fd=!0,_g=c)}}function Oa(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 Ib(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 g_(e){if(Oa(e)!==e)throw Error(Ee(188))}function tA(e){var t=e.alternate;if(!t){if(t=Oa(e),t===null)throw Error(Ee(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return g_(o),e;if(i===n)return g_(o),t;i=i.sibling}throw Error(Ee(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(Ee(189))}}if(r.alternate!==n)throw Error(Ee(190))}if(r.tag!==3)throw Error(Ee(188));return r.stateNode.current===r?e:t}function Ob(e){return e=tA(e),e!==null?Nb(e):null}function Nb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nb(e);if(t!==null)return t;e=e.sibling}return null}var Db=mn.unstable_scheduleCallback,v_=mn.unstable_cancelCallback,rA=mn.unstable_shouldYield,nA=mn.unstable_requestPaint,Qt=mn.unstable_now,oA=mn.unstable_getCurrentPriorityLevel,iv=mn.unstable_ImmediatePriority,Lb=mn.unstable_UserBlockingPriority,dd=mn.unstable_NormalPriority,iA=mn.unstable_LowPriority,Fb=mn.unstable_IdlePriority,Od=null,_o=null;function aA(e){if(_o&&typeof _o.onCommitFiberRoot=="function")try{_o.onCommitFiberRoot(Od,e,void 0,(e.current.flags&128)===128)}catch(t){}}var ro=Math.clz32?Math.clz32:uA,sA=Math.log,lA=Math.LN2;function uA(e){return e>>>=0,e===0?32:31-(sA(e)/lA|0)|0}var Ff=64,$f=4194304;function Lu(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 hd(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Lu(s):(i&=a,i!==0&&(n=Lu(i)))}else a=r&~o,a!==0?n=Lu(a):i!==0&&(n=Lu(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&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-ro(t),o=1<<r,n|=e[r],t&=~o;return n}function cA(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 fA(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ro(i),s=1<<a,l=o[a];l===-1?((s&r)===0||(s&n)!==0)&&(o[a]=cA(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function bg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function $b(){var e=Ff;return Ff<<=1,(Ff&4194240)===0&&(Ff=64),e}function jm(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function cc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ro(t),e[t]=r}function dA(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 o=31-ro(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function av(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ro(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var Tt=0;function Bb(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Vb,sv,Ub,jb,zb,Sg=!1,Bf=[],_i=null,bi=null,Si=null,Zu=new Map,Qu=new Map,vi=[],hA="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 y_(e,t){switch(e){case"focusin":case"focusout":_i=null;break;case"dragenter":case"dragleave":bi=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qu.delete(t.pointerId)}}function ku(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=dc(t),t!==null&&sv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function pA(e,t,r,n,o){switch(t){case"focusin":return _i=ku(_i,e,t,r,n,o),!0;case"dragenter":return bi=ku(bi,e,t,r,n,o),!0;case"mouseover":return Si=ku(Si,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Zu.set(i,ku(Zu.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Qu.set(i,ku(Qu.get(i)||null,e,t,r,n,o)),!0}return!1}function Hb(e){var t=ba(e.target);if(t!==null){var r=Oa(t);if(r!==null){if(t=r.tag,t===13){if(t=Ib(r),t!==null){e.blockedOn=t,zb(e.priority,function(){Ub(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 Jf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Eg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);yg=n,r.target.dispatchEvent(n),yg=null}else return t=dc(r),t!==null&&sv(t),e.blockedOn=r,!1;t.shift()}return!0}function w_(e,t,r){Jf(e)&&r.delete(t)}function mA(){Sg=!1,_i!==null&&Jf(_i)&&(_i=null),bi!==null&&Jf(bi)&&(bi=null),Si!==null&&Jf(Si)&&(Si=null),Zu.forEach(w_),Qu.forEach(w_)}function Tu(e,t){e.blockedOn===t&&(e.blockedOn=null,Sg||(Sg=!0,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,mA)))}function Xu(e){function t(o){return Tu(o,e)}if(0<Bf.length){Tu(Bf[0],e);for(var r=1;r<Bf.length;r++){var n=Bf[r];n.blockedOn===e&&(n.blockedOn=null)}}for(_i!==null&&Tu(_i,e),bi!==null&&Tu(bi,e),Si!==null&&Tu(Si,e),Zu.forEach(t),Qu.forEach(t),r=0;r<vi.length;r++)n=vi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<vi.length&&(r=vi[0],r.blockedOn===null);)Hb(r),r.blockedOn===null&&vi.shift()}var Us=Ho.ReactCurrentBatchConfig,pd=!0;function gA(e,t,r,n){var o=Tt,i=Us.transition;Us.transition=null;try{Tt=1,lv(e,t,r,n)}finally{Tt=o,Us.transition=i}}function vA(e,t,r,n){var o=Tt,i=Us.transition;Us.transition=null;try{Tt=4,lv(e,t,r,n)}finally{Tt=o,Us.transition=i}}function lv(e,t,r,n){if(pd){var o=Eg(e,t,r,n);if(o===null)Ym(e,t,n,md,r),y_(e,n);else if(pA(o,e,t,r,n))n.stopPropagation();else if(y_(e,n),t&4&&-1<hA.indexOf(e)){for(;o!==null;){var i=dc(o);if(i!==null&&Vb(i),i=Eg(e,t,r,n),i===null&&Ym(e,t,n,md,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else Ym(e,t,n,null,r)}}var md=null;function Eg(e,t,r,n){if(md=null,e=ov(n),e=ba(e),e!==null)if(t=Oa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Ib(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 md=e,null}function Wb(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(oA()){case iv:return 1;case Lb:return 4;case dd:case iA:return 16;case Fb:return 536870912;default:return 16}default:return 16}}var wi=null,uv=null,ed=null;function qb(){if(ed)return ed;var e,t=uv,r=t.length,n,o="value"in wi?wi.value:wi.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return ed=o.slice(e,1<n?1-n:void 0)}function td(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 Vf(){return!0}function x_(){return!1}function gn(e){function t(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vf:x_,this.isPropagationStopped=x_,this}return Wt(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=Vf)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vf)},persist:function(){},isPersistent:Vf}),t}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cv=gn(Qs),fc=Wt({},Qs,{view:0,detail:0}),yA=gn(fc),zm,Hm,Pu,Nd=Wt({},fc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fv,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!==Pu&&(Pu&&e.type==="mousemove"?(zm=e.screenX-Pu.screenX,Hm=e.screenY-Pu.screenY):Hm=zm=0,Pu=e),zm)},movementY:function(e){return"movementY"in e?e.movementY:Hm}}),__=gn(Nd),wA=Wt({},Nd,{dataTransfer:0}),xA=gn(wA),_A=Wt({},fc,{relatedTarget:0}),Wm=gn(_A),bA=Wt({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),SA=gn(bA),EA=Wt({},Qs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),MA=gn(EA),CA=Wt({},Qs,{data:0}),b_=gn(CA),kA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TA={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"},PA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PA[e])?!!t[e]:!1}function fv(){return RA}var AA=Wt({},fc,{key:function(e){if(e.key){var t=kA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=td(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fv,charCode:function(e){return e.type==="keypress"?td(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?td(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),IA=gn(AA),OA=Wt({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),S_=gn(OA),NA=Wt({},fc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fv}),DA=gn(NA),LA=Wt({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),FA=gn(LA),$A=Wt({},Nd,{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}),BA=gn($A),VA=[9,13,27,32],dv=Vo&&"CompositionEvent"in window,Vu=null;Vo&&"documentMode"in document&&(Vu=document.documentMode);var UA=Vo&&"TextEvent"in window&&!Vu,Gb=Vo&&(!dv||Vu&&8<Vu&&11>=Vu),E_=String.fromCharCode(32),M_=!1;function Kb(e,t){switch(e){case"keyup":return VA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ts=!1;function jA(e,t){switch(e){case"compositionend":return Yb(t);case"keypress":return t.which!==32?null:(M_=!0,E_);case"textInput":return e=t.data,e===E_&&M_?null:e;default:return null}}function zA(e,t){if(Ts)return e==="compositionend"||!dv&&Kb(e,t)?(e=qb(),ed=uv=wi=null,Ts=!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 Gb&&t.locale!=="ko"?null:t.data;default:return null}}var HA={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 C_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HA[e.type]:t==="textarea"}function Zb(e,t,r,n){kb(n),t=gd(t,"onChange"),0<t.length&&(r=new cv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Uu=null,Ju=null;function WA(e){s3(e,0)}function Dd(e){var t=As(e);if(xb(t))return e}function qA(e,t){if(e==="change")return t}var Qb=!1;Vo&&(Vo?(jf="oninput"in document,jf||(qm=document.createElement("div"),qm.setAttribute("oninput","return;"),jf=typeof qm.oninput=="function"),Uf=jf):Uf=!1,Qb=Uf&&(!document.documentMode||9<document.documentMode));var Uf,jf,qm;function k_(){Uu&&(Uu.detachEvent("onpropertychange",Xb),Ju=Uu=null)}function Xb(e){if(e.propertyName==="value"&&Dd(Ju)){var t=[];Zb(t,Ju,e,ov(e)),Ab(WA,t)}}function GA(e,t,r){e==="focusin"?(k_(),Uu=t,Ju=r,Uu.attachEvent("onpropertychange",Xb)):e==="focusout"&&k_()}function KA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dd(Ju)}function YA(e,t){if(e==="click")return Dd(t)}function ZA(e,t){if(e==="input"||e==="change")return Dd(t)}function QA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oo=typeof Object.is=="function"?Object.is:QA;function ec(e,t){if(oo(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 o=r[n];if(!ag.call(t,o)||!oo(e[o],t[o]))return!1}return!0}function T_(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function P_(e,t){var r=T_(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=T_(r)}}function Jb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e3(){for(var e=window,t=ud();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=ud(e.document)}return t}function hv(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 XA(e){var t=e3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jb(r.ownerDocument.documentElement,r)){if(n!==null&&hv(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 o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=P_(r,i);var a=P_(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 JA=Vo&&"documentMode"in document&&11>=document.documentMode,Ps=null,Mg=null,ju=null,Cg=!1;function R_(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cg||Ps==null||Ps!==ud(n)||(n=Ps,"selectionStart"in n&&hv(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}),ju&&ec(ju,n)||(ju=n,n=gd(Mg,"onSelect"),0<n.length&&(t=new cv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ps)))}function zf(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rs={animationend:zf("Animation","AnimationEnd"),animationiteration:zf("Animation","AnimationIteration"),animationstart:zf("Animation","AnimationStart"),transitionend:zf("Transition","TransitionEnd")},Gm={},t3={};Vo&&(t3=document.createElement("div").style,"AnimationEvent"in window||(delete Rs.animationend.animation,delete Rs.animationiteration.animation,delete Rs.animationstart.animation),"TransitionEvent"in window||delete Rs.transitionend.transition);function Ld(e){if(Gm[e])return Gm[e];if(!Rs[e])return e;var t=Rs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in t3)return Gm[e]=t[r];return e}var r3=Ld("animationend"),n3=Ld("animationiteration"),o3=Ld("animationstart"),i3=Ld("transitionend"),a3=new Map,A_="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 Ai(e,t){a3.set(e,t),Ia(t,[e])}for(Hf=0;Hf<A_.length;Hf++)Wf=A_[Hf],I_=Wf.toLowerCase(),O_=Wf[0].toUpperCase()+Wf.slice(1),Ai(I_,"on"+O_);var Wf,I_,O_,Hf;Ai(r3,"onAnimationEnd");Ai(n3,"onAnimationIteration");Ai(o3,"onAnimationStart");Ai("dblclick","onDoubleClick");Ai("focusin","onFocus");Ai("focusout","onBlur");Ai(i3,"onTransitionEnd");Hs("onMouseEnter",["mouseout","mouseover"]);Hs("onMouseLeave",["mouseout","mouseover"]);Hs("onPointerEnter",["pointerout","pointerover"]);Hs("onPointerLeave",["pointerout","pointerover"]);Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fu="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(" "),eI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fu));function N_(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,eA(n,t,void 0,e),e.currentTarget=null}function s3(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;N_(o,s,c),i=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;N_(o,s,c),i=l}}}if(fd)throw e=_g,fd=!1,_g=null,e}function Ft(e,t){var r=t[Ag];r===void 0&&(r=t[Ag]=new Set);var n=e+"__bubble";r.has(n)||(l3(t,e,2,!1),r.add(n))}function Km(e,t,r){var n=0;t&&(n|=4),l3(r,e,n,t)}var qf="_reactListening"+Math.random().toString(36).slice(2);function tc(e){if(!e[qf]){e[qf]=!0,mb.forEach(function(r){r!=="selectionchange"&&(eI.has(r)||Km(r,!1,e),Km(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,Km("selectionchange",!1,t))}}function l3(e,t,r,n){switch(Wb(t)){case 1:var o=gA;break;case 4:o=vA;break;default:o=lv}r=o.bind(null,t,r,e),o=void 0,!xg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Ym(e,t,r,n,o){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=ba(s),a===null)return;if(l=a.tag,l===5||l===6){n=i=a;continue e}s=s.parentNode}}n=n.return}Ab(function(){var c=i,g=ov(r),_=[];e:{var k=a3.get(e);if(k!==void 0){var R=cv,I=e;switch(e){case"keypress":if(td(r)===0)break e;case"keydown":case"keyup":R=IA;break;case"focusin":I="focus",R=Wm;break;case"focusout":I="blur",R=Wm;break;case"beforeblur":case"afterblur":R=Wm;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":R=__;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=xA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=DA;break;case r3:case n3:case o3:R=SA;break;case i3:R=FA;break;case"scroll":R=yA;break;case"wheel":R=BA;break;case"copy":case"cut":case"paste":R=MA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=S_}var V=(t&4)!==0,j=!V&&e==="scroll",L=V?k!==null?k+"Capture":null:k;V=[];for(var D=c,B;D!==null;){B=D;var K=B.stateNode;if(B.tag===5&&K!==null&&(B=K,L!==null&&(K=Yu(D,L),K!=null&&V.push(rc(D,K,B)))),j)break;D=D.return}0<V.length&&(k=new R(k,I,null,r,g),_.push({event:k,listeners:V}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",k&&r!==yg&&(I=r.relatedTarget||r.fromElement)&&(ba(I)||I[Uo]))break e;if((R||k)&&(k=g.window===g?g:(k=g.ownerDocument)?k.defaultView||k.parentWindow:window,R?(I=r.relatedTarget||r.toElement,R=c,I=I?ba(I):null,I!==null&&(j=Oa(I),I!==j||I.tag!==5&&I.tag!==6)&&(I=null)):(R=null,I=c),R!==I)){if(V=__,K="onMouseLeave",L="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(V=S_,K="onPointerLeave",L="onPointerEnter",D="pointer"),j=R==null?k:As(R),B=I==null?k:As(I),k=new V(K,D+"leave",R,r,g),k.target=j,k.relatedTarget=B,K=null,ba(g)===c&&(V=new V(L,D+"enter",I,r,g),V.target=B,V.relatedTarget=j,K=V),j=K,R&&I)t:{for(V=R,L=I,D=0,B=V;B;B=Ms(B))D++;for(B=0,K=L;K;K=Ms(K))B++;for(;0<D-B;)V=Ms(V),D--;for(;0<B-D;)L=Ms(L),B--;for(;D--;){if(V===L||L!==null&&V===L.alternate)break t;V=Ms(V),L=Ms(L)}V=null}else V=null;R!==null&&D_(_,k,R,V,!1),I!==null&&j!==null&&D_(_,j,I,V,!0)}}e:{if(k=c?As(c):window,R=k.nodeName&&k.nodeName.toLowerCase(),R==="select"||R==="input"&&k.type==="file")var X=qA;else if(C_(k))if(Qb)X=ZA;else{X=KA;var ue=GA}else(R=k.nodeName)&&R.toLowerCase()==="input"&&(k.type==="checkbox"||k.type==="radio")&&(X=YA);if(X&&(X=X(e,c))){Zb(_,X,r,g);break e}ue&&ue(e,k,c),e==="focusout"&&(ue=k._wrapperState)&&ue.controlled&&k.type==="number"&&hg(k,"number",k.value)}switch(ue=c?As(c):window,e){case"focusin":(C_(ue)||ue.contentEditable==="true")&&(Ps=ue,Mg=c,ju=null);break;case"focusout":ju=Mg=Ps=null;break;case"mousedown":Cg=!0;break;case"contextmenu":case"mouseup":case"dragend":Cg=!1,R_(_,r,g);break;case"selectionchange":if(JA)break;case"keydown":case"keyup":R_(_,r,g)}var ae;if(dv)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Ts?Kb(e,r)&&(ve="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(ve="onCompositionStart");ve&&(Gb&&r.locale!=="ko"&&(Ts||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Ts&&(ae=qb()):(wi=g,uv="value"in wi?wi.value:wi.textContent,Ts=!0)),ue=gd(c,ve),0<ue.length&&(ve=new b_(ve,e,null,r,g),_.push({event:ve,listeners:ue}),ae?ve.data=ae:(ae=Yb(r),ae!==null&&(ve.data=ae)))),(ae=UA?jA(e,r):zA(e,r))&&(c=gd(c,"onBeforeInput"),0<c.length&&(g=new b_("onBeforeInput","beforeinput",null,r,g),_.push({event:g,listeners:c}),g.data=ae))}s3(_,t)})}function rc(e,t,r){return{instance:e,listener:t,currentTarget:r}}function gd(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Yu(e,r),i!=null&&n.unshift(rc(e,i,o)),i=Yu(e,t),i!=null&&n.push(rc(e,i,o))),e=e.return}return n}function Ms(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function D_(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,o?(l=Yu(r,i),l!=null&&a.unshift(rc(r,l,s))):o||(l=Yu(r,i),l!=null&&a.push(rc(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var tI=/\r\n?/g,rI=/\u0000|\uFFFD/g;function L_(e){return(typeof e=="string"?e:""+e).replace(tI,`
6
- `).replace(rI,"")}function Gf(e,t,r){if(t=L_(t),L_(e)!==t&&r)throw Error(Ee(425))}function vd(){}var kg=null,Tg=null;function Pg(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 Rg=typeof setTimeout=="function"?setTimeout:void 0,nI=typeof clearTimeout=="function"?clearTimeout:void 0,F_=typeof Promise=="function"?Promise:void 0,oI=typeof queueMicrotask=="function"?queueMicrotask:typeof F_<"u"?function(e){return F_.resolve(null).then(e).catch(iI)}:Rg;function iI(e){setTimeout(function(){throw e})}function Zm(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),Xu(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Xu(t)}function Ei(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 $_(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 Xs=Math.random().toString(36).slice(2),xo="__reactFiber$"+Xs,nc="__reactProps$"+Xs,Uo="__reactContainer$"+Xs,Ag="__reactEvents$"+Xs,aI="__reactListeners$"+Xs,sI="__reactHandles$"+Xs;function ba(e){var t=e[xo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Uo]||r[xo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=$_(e);e!==null;){if(r=e[xo])return r;e=$_(e)}return t}e=r,r=e.parentNode}return null}function dc(e){return e=e[xo]||e[Uo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function As(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ee(33))}function Fd(e){return e[nc]||null}var Ig=[],Is=-1;function Ii(e){return{current:e}}function $t(e){0>Is||(e.current=Ig[Is],Ig[Is]=null,Is--)}function Rt(e,t){Is++,Ig[Is]=e.current,e.current=t}var Ri={},Ir=Ii(Ri),rn=Ii(!1),ka=Ri;function Ws(e,t){var r=e.type.contextTypes;if(!r)return Ri;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function nn(e){return e=e.childContextTypes,e!=null}function yd(){$t(rn),$t(Ir)}function B_(e,t,r){if(Ir.current!==Ri)throw Error(Ee(168));Rt(Ir,t),Rt(rn,r)}function u3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Ee(108,G9(e)||"Unknown",o));return Wt({},r,n)}function wd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ri,ka=Ir.current,Rt(Ir,e),Rt(rn,rn.current),!0}function V_(e,t,r){var n=e.stateNode;if(!n)throw Error(Ee(169));r?(e=u3(e,t,ka),n.__reactInternalMemoizedMergedChildContext=e,$t(rn),$t(Ir),Rt(Ir,e)):$t(rn),Rt(rn,r)}var Lo=null,$d=!1,Qm=!1;function c3(e){Lo===null?Lo=[e]:Lo.push(e)}function lI(e){$d=!0,c3(e)}function Oi(){if(!Qm&&Lo!==null){Qm=!0;var e=0,t=Tt;try{var r=Lo;for(Tt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Lo=null,$d=!1}catch(o){throw Lo!==null&&(Lo=Lo.slice(e+1)),Db(iv,Oi),o}finally{Tt=t,Qm=!1}}return null}var Os=[],Ns=0,xd=null,_d=0,Dn=[],Ln=0,Ta=null,Fo=1,$o="";function xa(e,t){Os[Ns++]=_d,Os[Ns++]=xd,xd=e,_d=t}function f3(e,t,r){Dn[Ln++]=Fo,Dn[Ln++]=$o,Dn[Ln++]=Ta,Ta=e;var n=Fo;e=$o;var o=32-ro(n)-1;n&=~(1<<o),r+=1;var i=32-ro(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Fo=1<<32-ro(t)+o|r<<o|n,$o=i+e}else Fo=1<<i|r<<o|n,$o=e}function pv(e){e.return!==null&&(xa(e,1),f3(e,1,0))}function mv(e){for(;e===xd;)xd=Os[--Ns],Os[Ns]=null,_d=Os[--Ns],Os[Ns]=null;for(;e===Ta;)Ta=Dn[--Ln],Dn[Ln]=null,$o=Dn[--Ln],Dn[Ln]=null,Fo=Dn[--Ln],Dn[Ln]=null}var pn=null,hn=null,Ut=!1,to=null;function d3(e,t){var r=Fn(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 U_(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,pn=e,hn=Ei(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pn=e,hn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ta!==null?{id:Fo,overflow:$o}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Fn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,pn=e,hn=null,!0):!1;default:return!1}}function Og(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ng(e){if(Ut){var t=hn;if(t){var r=t;if(!U_(e,t)){if(Og(e))throw Error(Ee(418));t=Ei(r.nextSibling);var n=pn;t&&U_(e,t)?d3(n,r):(e.flags=e.flags&-4097|2,Ut=!1,pn=e)}}else{if(Og(e))throw Error(Ee(418));e.flags=e.flags&-4097|2,Ut=!1,pn=e}}}function j_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pn=e}function Kf(e){if(e!==pn)return!1;if(!Ut)return j_(e),Ut=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pg(e.type,e.memoizedProps)),t&&(t=hn)){if(Og(e))throw h3(),Error(Ee(418));for(;t;)d3(e,t),t=Ei(t.nextSibling)}if(j_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ee(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){hn=Ei(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}hn=null}}else hn=pn?Ei(e.stateNode.nextSibling):null;return!0}function h3(){for(var e=hn;e;)e=Ei(e.nextSibling)}function qs(){hn=pn=null,Ut=!1}function gv(e){to===null?to=[e]:to.push(e)}var uI=Ho.ReactCurrentBatchConfig;function Jn(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var bd=Ii(null),Sd=null,Ds=null,vv=null;function yv(){vv=Ds=Sd=null}function wv(e){var t=bd.current;$t(bd),e._currentValue=t}function Dg(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 js(e,t){Sd=e,vv=Ds=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(tn=!0),e.firstContext=null)}function Bn(e){var t=e._currentValue;if(vv!==e)if(e={context:e,memoizedValue:t,next:null},Ds===null){if(Sd===null)throw Error(Ee(308));Ds=e,Sd.dependencies={lanes:0,firstContext:e}}else Ds=Ds.next=e;return t}var Sa=null;function xv(e){Sa===null?Sa=[e]:Sa.push(e)}function p3(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,xv(t)):(r.next=o.next,o.next=r),t.interleaved=r,jo(e,n)}function jo(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 gi=!1;function _v(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function m3(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 Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(_t&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,jo(e,r)}return o=n.interleaved,o===null?(t.next=t,xv(n)):(t.next=o.next,o.next=t),n.interleaved=t,jo(e,r)}function rd(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,av(e,r)}}function z_(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Ed(e,t,r,n){var o=e.updateQueue;gi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var g=e.alternate;g!==null&&(g=g.updateQueue,s=g.lastBaseUpdate,s!==a&&(s===null?g.firstBaseUpdate=c:s.next=c,g.lastBaseUpdate=l))}if(i!==null){var _=o.baseState;a=0,g=c=l=null,s=i;do{var k=s.lane,R=s.eventTime;if((n&k)===k){g!==null&&(g=g.next={eventTime:R,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var I=e,V=s;switch(k=t,R=r,V.tag){case 1:if(I=V.payload,typeof I=="function"){_=I.call(R,_,k);break e}_=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=V.payload,k=typeof I=="function"?I.call(R,_,k):I,k==null)break e;_=Wt({},_,k);break e;case 2:gi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,k=o.effects,k===null?o.effects=[s]:k.push(s))}else R={eventTime:R,lane:k,tag:s.tag,payload:s.payload,callback:s.callback,next:null},g===null?(c=g=R,l=_):g=g.next=R,a|=k;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;k=s,s=k.next,k.next=null,o.lastBaseUpdate=k,o.shared.pending=null}}while(1);if(g===null&&(l=_),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=g,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ra|=a,e.lanes=a,e.memoizedState=_}}function H_(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(Ee(191,o));o.call(n)}}}var g3=new pb.Component().refs;function Lg(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Wt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bd={isMounted:function(e){return(e=e._reactInternals)?Oa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Vr(),o=ki(e),i=Bo(n,o);i.payload=t,r!=null&&(i.callback=r),t=Mi(e,i,o),t!==null&&(no(t,e,o,n),rd(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Vr(),o=ki(e),i=Bo(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Mi(e,i,o),t!==null&&(no(t,e,o,n),rd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Vr(),n=ki(e),o=Bo(r,n);o.tag=2,t!=null&&(o.callback=t),t=Mi(e,o,n),t!==null&&(no(t,e,n,r),rd(t,e,n))}};function W_(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!ec(r,n)||!ec(o,i):!0}function v3(e,t,r){var n=!1,o=Ri,i=t.contextType;return typeof i=="object"&&i!==null?i=Bn(i):(o=nn(t)?ka:Ir.current,n=t.contextTypes,i=(n=n!=null)?Ws(e,o):Ri),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function q_(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&&Bd.enqueueReplaceState(t,t.state,null)}function Fg(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=g3,_v(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Bn(i):(i=nn(t)?ka:Ir.current,o.context=Ws(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Lg(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Bd.enqueueReplaceState(o,o.state,null),Ed(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ru(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(Ee(309));var n=r.stateNode}if(!n)throw Error(Ee(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;s===g3&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(Ee(284));if(!r._owner)throw Error(Ee(290,e))}return e}function Yf(e,t){throw e=Object.prototype.toString.call(t),Error(Ee(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function G_(e){var t=e._init;return t(e._payload)}function y3(e){function t(L,D){if(e){var B=L.deletions;B===null?(L.deletions=[D],L.flags|=16):B.push(D)}}function r(L,D){if(!e)return null;for(;D!==null;)t(L,D),D=D.sibling;return null}function n(L,D){for(L=new Map;D!==null;)D.key!==null?L.set(D.key,D):L.set(D.index,D),D=D.sibling;return L}function o(L,D){return L=Ti(L,D),L.index=0,L.sibling=null,L}function i(L,D,B){return L.index=B,e?(B=L.alternate,B!==null?(B=B.index,B<D?(L.flags|=2,D):B):(L.flags|=2,D)):(L.flags|=1048576,D)}function a(L){return e&&L.alternate===null&&(L.flags|=2),L}function s(L,D,B,K){return D===null||D.tag!==6?(D=og(B,L.mode,K),D.return=L,D):(D=o(D,B),D.return=L,D)}function l(L,D,B,K){var X=B.type;return X===ks?g(L,D,B.props.children,K,B.key):D!==null&&(D.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===mi&&G_(X)===D.type)?(K=o(D,B.props),K.ref=Ru(L,D,B),K.return=L,K):(K=ld(B.type,B.key,B.props,null,L.mode,K),K.ref=Ru(L,D,B),K.return=L,K)}function c(L,D,B,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==B.containerInfo||D.stateNode.implementation!==B.implementation?(D=ig(B,L.mode,K),D.return=L,D):(D=o(D,B.children||[]),D.return=L,D)}function g(L,D,B,K,X){return D===null||D.tag!==7?(D=Ca(B,L.mode,K,X),D.return=L,D):(D=o(D,B),D.return=L,D)}function _(L,D,B){if(typeof D=="string"&&D!==""||typeof D=="number")return D=og(""+D,L.mode,B),D.return=L,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Nf:return B=ld(D.type,D.key,D.props,null,L.mode,B),B.ref=Ru(L,null,D),B.return=L,B;case Cs:return D=ig(D,L.mode,B),D.return=L,D;case mi:var K=D._init;return _(L,K(D._payload),B)}if(Du(D)||Cu(D))return D=Ca(D,L.mode,B,null),D.return=L,D;Yf(L,D)}return null}function k(L,D,B,K){var X=D!==null?D.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return X!==null?null:s(L,D,""+B,K);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Nf:return B.key===X?l(L,D,B,K):null;case Cs:return B.key===X?c(L,D,B,K):null;case mi:return X=B._init,k(L,D,X(B._payload),K)}if(Du(B)||Cu(B))return X!==null?null:g(L,D,B,K,null);Yf(L,B)}return null}function R(L,D,B,K,X){if(typeof K=="string"&&K!==""||typeof K=="number")return L=L.get(B)||null,s(D,L,""+K,X);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case Nf:return L=L.get(K.key===null?B:K.key)||null,l(D,L,K,X);case Cs:return L=L.get(K.key===null?B:K.key)||null,c(D,L,K,X);case mi:var ue=K._init;return R(L,D,B,ue(K._payload),X)}if(Du(K)||Cu(K))return L=L.get(B)||null,g(D,L,K,X,null);Yf(D,K)}return null}function I(L,D,B,K){for(var X=null,ue=null,ae=D,ve=D=0,G=null;ae!==null&&ve<B.length;ve++){ae.index>ve?(G=ae,ae=null):G=ae.sibling;var w=k(L,ae,B[ve],K);if(w===null){ae===null&&(ae=G);break}e&&ae&&w.alternate===null&&t(L,ae),D=i(w,D,ve),ue===null?X=w:ue.sibling=w,ue=w,ae=G}if(ve===B.length)return r(L,ae),Ut&&xa(L,ve),X;if(ae===null){for(;ve<B.length;ve++)ae=_(L,B[ve],K),ae!==null&&(D=i(ae,D,ve),ue===null?X=ae:ue.sibling=ae,ue=ae);return Ut&&xa(L,ve),X}for(ae=n(L,ae);ve<B.length;ve++)G=R(ae,L,ve,B[ve],K),G!==null&&(e&&G.alternate!==null&&ae.delete(G.key===null?ve:G.key),D=i(G,D,ve),ue===null?X=G:ue.sibling=G,ue=G);return e&&ae.forEach(function(T){return t(L,T)}),Ut&&xa(L,ve),X}function V(L,D,B,K){var X=Cu(B);if(typeof X!="function")throw Error(Ee(150));if(B=X.call(B),B==null)throw Error(Ee(151));for(var ue=X=null,ae=D,ve=D=0,G=null,w=B.next();ae!==null&&!w.done;ve++,w=B.next()){ae.index>ve?(G=ae,ae=null):G=ae.sibling;var T=k(L,ae,w.value,K);if(T===null){ae===null&&(ae=G);break}e&&ae&&T.alternate===null&&t(L,ae),D=i(T,D,ve),ue===null?X=T:ue.sibling=T,ue=T,ae=G}if(w.done)return r(L,ae),Ut&&xa(L,ve),X;if(ae===null){for(;!w.done;ve++,w=B.next())w=_(L,w.value,K),w!==null&&(D=i(w,D,ve),ue===null?X=w:ue.sibling=w,ue=w);return Ut&&xa(L,ve),X}for(ae=n(L,ae);!w.done;ve++,w=B.next())w=R(ae,L,ve,w.value,K),w!==null&&(e&&w.alternate!==null&&ae.delete(w.key===null?ve:w.key),D=i(w,D,ve),ue===null?X=w:ue.sibling=w,ue=w);return e&&ae.forEach(function(A){return t(L,A)}),Ut&&xa(L,ve),X}function j(L,D,B,K){if(typeof B=="object"&&B!==null&&B.type===ks&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Nf:e:{for(var X=B.key,ue=D;ue!==null;){if(ue.key===X){if(X=B.type,X===ks){if(ue.tag===7){r(L,ue.sibling),D=o(ue,B.props.children),D.return=L,L=D;break e}}else if(ue.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===mi&&G_(X)===ue.type){r(L,ue.sibling),D=o(ue,B.props),D.ref=Ru(L,ue,B),D.return=L,L=D;break e}r(L,ue);break}else t(L,ue);ue=ue.sibling}B.type===ks?(D=Ca(B.props.children,L.mode,K,B.key),D.return=L,L=D):(K=ld(B.type,B.key,B.props,null,L.mode,K),K.ref=Ru(L,D,B),K.return=L,L=K)}return a(L);case Cs:e:{for(ue=B.key;D!==null;){if(D.key===ue)if(D.tag===4&&D.stateNode.containerInfo===B.containerInfo&&D.stateNode.implementation===B.implementation){r(L,D.sibling),D=o(D,B.children||[]),D.return=L,L=D;break e}else{r(L,D);break}else t(L,D);D=D.sibling}D=ig(B,L.mode,K),D.return=L,L=D}return a(L);case mi:return ue=B._init,j(L,D,ue(B._payload),K)}if(Du(B))return I(L,D,B,K);if(Cu(B))return V(L,D,B,K);Yf(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,D!==null&&D.tag===6?(r(L,D.sibling),D=o(D,B),D.return=L,L=D):(r(L,D),D=og(B,L.mode,K),D.return=L,L=D),a(L)):r(L,D)}return j}var Gs=y3(!0),w3=y3(!1),hc={},bo=Ii(hc),oc=Ii(hc),ic=Ii(hc);function Ea(e){if(e===hc)throw Error(Ee(174));return e}function bv(e,t){switch(Rt(ic,t),Rt(oc,e),Rt(bo,hc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mg(t,e)}$t(bo),Rt(bo,t)}function Ks(){$t(bo),$t(oc),$t(ic)}function x3(e){Ea(ic.current);var t=Ea(bo.current),r=mg(t,e.type);t!==r&&(Rt(oc,e),Rt(bo,r))}function Sv(e){oc.current===e&&($t(bo),$t(oc))}var zt=Ii(0);function Md(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 Xm=[];function Ev(){for(var e=0;e<Xm.length;e++)Xm[e]._workInProgressVersionPrimary=null;Xm.length=0}var nd=Ho.ReactCurrentDispatcher,Jm=Ho.ReactCurrentBatchConfig,Pa=0,Ht=null,lr=null,mr=null,Cd=!1,zu=!1,ac=0,cI=0;function Pr(){throw Error(Ee(321))}function Mv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!oo(e[r],t[r]))return!1;return!0}function Cv(e,t,r,n,o,i){if(Pa=i,Ht=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nd.current=e===null||e.memoizedState===null?pI:mI,e=r(n,o),zu){i=0;do{if(zu=!1,ac=0,25<=i)throw Error(Ee(301));i+=1,mr=lr=null,t.updateQueue=null,nd.current=gI,e=r(n,o)}while(zu)}if(nd.current=kd,t=lr!==null&&lr.next!==null,Pa=0,mr=lr=Ht=null,Cd=!1,t)throw Error(Ee(300));return e}function kv(){var e=ac!==0;return ac=0,e}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mr===null?Ht.memoizedState=mr=e:mr=mr.next=e,mr}function Vn(){if(lr===null){var e=Ht.alternate;e=e!==null?e.memoizedState:null}else e=lr.next;var t=mr===null?Ht.memoizedState:mr.next;if(t!==null)mr=t,lr=e;else{if(e===null)throw Error(Ee(310));lr=e,e={memoizedState:lr.memoizedState,baseState:lr.baseState,baseQueue:lr.baseQueue,queue:lr.queue,next:null},mr===null?Ht.memoizedState=mr=e:mr=mr.next=e}return mr}function sc(e,t){return typeof t=="function"?t(e):t}function eg(e){var t=Vn(),r=t.queue;if(r===null)throw Error(Ee(311));r.lastRenderedReducer=e;var n=lr,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,l=null,c=i;do{var g=c.lane;if((Pa&g)===g)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var _={lane:g,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=_,a=n):l=l.next=_,Ht.lanes|=g,Ra|=g}c=c.next}while(c!==null&&c!==i);l===null?a=n:l.next=s,oo(n,t.memoizedState)||(tn=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Ht.lanes|=i,Ra|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function tg(e){var t=Vn(),r=t.queue;if(r===null)throw Error(Ee(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);oo(i,t.memoizedState)||(tn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function _3(){}function b3(e,t){var r=Ht,n=Vn(),o=t(),i=!oo(n.memoizedState,o);if(i&&(n.memoizedState=o,tn=!0),n=n.queue,Tv(M3.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||mr!==null&&mr.memoizedState.tag&1){if(r.flags|=2048,lc(9,E3.bind(null,r,n,o,t),void 0,null),gr===null)throw Error(Ee(349));(Pa&30)!==0||S3(r,t,o)}return o}function S3(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ht.updateQueue,t===null?(t={lastEffect:null,stores:null},Ht.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function E3(e,t,r,n){t.value=r,t.getSnapshot=n,C3(t)&&k3(e)}function M3(e,t,r){return r(function(){C3(t)&&k3(e)})}function C3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!oo(e,r)}catch(n){return!0}}function k3(e){var t=jo(e,1);t!==null&&no(t,e,1,-1)}function K_(e){var t=wo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sc,lastRenderedState:e},t.queue=e,e=e.dispatch=hI.bind(null,Ht,e),[t.memoizedState,e]}function lc(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Ht.updateQueue,t===null?(t={lastEffect:null,stores:null},Ht.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 T3(){return Vn().memoizedState}function od(e,t,r,n){var o=wo();Ht.flags|=e,o.memoizedState=lc(1|t,r,void 0,n===void 0?null:n)}function Vd(e,t,r,n){var o=Vn();n=n===void 0?null:n;var i=void 0;if(lr!==null){var a=lr.memoizedState;if(i=a.destroy,n!==null&&Mv(n,a.deps)){o.memoizedState=lc(t,r,i,n);return}}Ht.flags|=e,o.memoizedState=lc(1|t,r,i,n)}function Y_(e,t){return od(8390656,8,e,t)}function Tv(e,t){return Vd(2048,8,e,t)}function P3(e,t){return Vd(4,2,e,t)}function R3(e,t){return Vd(4,4,e,t)}function A3(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 I3(e,t,r){return r=r!=null?r.concat([e]):null,Vd(4,4,A3.bind(null,t,e),r)}function Pv(){}function O3(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Mv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function N3(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Mv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function D3(e,t,r){return(Pa&21)===0?(e.baseState&&(e.baseState=!1,tn=!0),e.memoizedState=r):(oo(r,t)||(r=$b(),Ht.lanes|=r,Ra|=r,e.baseState=!0),t)}function fI(e,t){var r=Tt;Tt=r!==0&&4>r?r:4,e(!0);var n=Jm.transition;Jm.transition={};try{e(!1),t()}finally{Tt=r,Jm.transition=n}}function L3(){return Vn().memoizedState}function dI(e,t,r){var n=ki(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},F3(e))$3(t,r);else if(r=p3(e,t,r,n),r!==null){var o=Vr();no(r,e,n,o),B3(r,t,n)}}function hI(e,t,r){var n=ki(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(F3(e))$3(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,oo(s,a)){var l=t.interleaved;l===null?(o.next=o,xv(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch(c){}finally{}r=p3(e,t,o,n),r!==null&&(o=Vr(),no(r,e,n,o),B3(r,t,n))}}function F3(e){var t=e.alternate;return e===Ht||t!==null&&t===Ht}function $3(e,t){zu=Cd=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function B3(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,av(e,r)}}var kd={readContext:Bn,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},pI={readContext:Bn,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Bn,useEffect:Y_,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,od(4194308,4,A3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return od(4194308,4,e,t)},useInsertionEffect:function(e,t){return od(4,2,e,t)},useMemo:function(e,t){var r=wo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=wo();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=dI.bind(null,Ht,e),[n.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:K_,useDebugValue:Pv,useDeferredValue:function(e){return wo().memoizedState=e},useTransition:function(){var e=K_(!1),t=e[0];return e=fI.bind(null,e[1]),wo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ht,o=wo();if(Ut){if(r===void 0)throw Error(Ee(407));r=r()}else{if(r=t(),gr===null)throw Error(Ee(349));(Pa&30)!==0||S3(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Y_(M3.bind(null,n,i,e),[e]),n.flags|=2048,lc(9,E3.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=wo(),t=gr.identifierPrefix;if(Ut){var r=$o,n=Fo;r=(n&~(1<<32-ro(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ac++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=cI++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mI={readContext:Bn,useCallback:O3,useContext:Bn,useEffect:Tv,useImperativeHandle:I3,useInsertionEffect:P3,useLayoutEffect:R3,useMemo:N3,useReducer:eg,useRef:T3,useState:function(){return eg(sc)},useDebugValue:Pv,useDeferredValue:function(e){var t=Vn();return D3(t,lr.memoizedState,e)},useTransition:function(){var e=eg(sc)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:_3,useSyncExternalStore:b3,useId:L3,unstable_isNewReconciler:!1},gI={readContext:Bn,useCallback:O3,useContext:Bn,useEffect:Tv,useImperativeHandle:I3,useInsertionEffect:P3,useLayoutEffect:R3,useMemo:N3,useReducer:tg,useRef:T3,useState:function(){return tg(sc)},useDebugValue:Pv,useDeferredValue:function(e){var t=Vn();return lr===null?t.memoizedState=e:D3(t,lr.memoizedState,e)},useTransition:function(){var e=tg(sc)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:_3,useSyncExternalStore:b3,useId:L3,unstable_isNewReconciler:!1};function Ys(e,t){try{var r="",n=t;do r+=q9(n),n=n.return;while(n);var o=r}catch(i){o=`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function rg(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function $g(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var vI=typeof WeakMap=="function"?WeakMap:Map;function V3(e,t,r){r=Bo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Pd||(Pd=!0,Kg=n),$g(e,t)},r}function U3(e,t,r){r=Bo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){$g(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){$g(e,t),typeof n!="function"&&(Ci===null?Ci=new Set([this]):Ci.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Z_(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new vI;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=AI.bind(null,e,t,r),t.then(e,e))}function Q_(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 X_(e,t,r,n,o){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=Bo(-1,1),t.tag=2,Mi(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yI=Ho.ReactCurrentOwner,tn=!1;function Br(e,t,r,n){t.child=e===null?w3(t,null,r,n):Gs(t,e.child,r,n)}function J_(e,t,r,n,o){r=r.render;var i=t.ref;return js(t,o),n=Cv(e,t,r,n,i,o),r=kv(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zo(e,t,o)):(Ut&&r&&pv(t),t.flags|=1,Br(e,t,n,o),t.child)}function eb(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!Fv(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,j3(e,t,i,n,o)):(e=ld(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:ec,r(a,n)&&e.ref===t.ref)return zo(e,t,o)}return t.flags|=1,e=Ti(i,n),e.ref=t.ref,e.return=t,t.child=e}function j3(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(ec(i,n)&&e.ref===t.ref)if(tn=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(tn=!0);else return t.lanes=e.lanes,zo(e,t,o)}return Bg(e,t,r,n,o)}function z3(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(Fs,dn),dn|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(Fs,dn),dn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Rt(Fs,dn),dn|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Rt(Fs,dn),dn|=n;return Br(e,t,o,r),t.child}function H3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Bg(e,t,r,n,o){var i=nn(r)?ka:Ir.current;return i=Ws(t,i),js(t,o),r=Cv(e,t,r,n,i,o),n=kv(),e!==null&&!tn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zo(e,t,o)):(Ut&&n&&pv(t),t.flags|=1,Br(e,t,r,o),t.child)}function tb(e,t,r,n,o){if(nn(r)){var i=!0;wd(t)}else i=!1;if(js(t,o),t.stateNode===null)id(e,t),v3(t,r,n),Fg(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Bn(c):(c=nn(r)?ka:Ir.current,c=Ws(t,c));var g=r.getDerivedStateFromProps,_=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function";_||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&q_(t,a,n,c),gi=!1;var k=t.memoizedState;a.state=k,Ed(t,n,a,o),l=t.memoizedState,s!==n||k!==l||rn.current||gi?(typeof g=="function"&&(Lg(t,r,g,n),l=t.memoizedState),(s=gi||W_(t,r,s,n,k,l,c))?(_||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,m3(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Jn(t.type,s),a.props=c,_=t.pendingProps,k=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Bn(l):(l=nn(r)?ka:Ir.current,l=Ws(t,l));var R=r.getDerivedStateFromProps;(g=typeof R=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==_||k!==l)&&q_(t,a,n,l),gi=!1,k=t.memoizedState,a.state=k,Ed(t,n,a,o);var I=t.memoizedState;s!==_||k!==I||rn.current||gi?(typeof R=="function"&&(Lg(t,r,R,n),I=t.memoizedState),(c=gi||W_(t,r,c,n,k,I,l)||!1)?(g||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,I,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,I,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=I),a.props=n,a.state=I,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),n=!1)}return Vg(e,t,r,n,i,o)}function Vg(e,t,r,n,o,i){H3(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&V_(t,r,!1),zo(e,t,i);n=t.stateNode,yI.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Gs(t,e.child,null,i),t.child=Gs(t,null,s,i)):Br(e,t,s,i),t.memoizedState=n.state,o&&V_(t,r,!0),t.child}function W3(e){var t=e.stateNode;t.pendingContext?B_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&B_(e,t.context,!1),bv(e,t.containerInfo)}function rb(e,t,r,n,o){return qs(),gv(o),t.flags|=256,Br(e,t,r,n),t.child}var Ug={dehydrated:null,treeContext:null,retryLane:0};function jg(e){return{baseLanes:e,cachePool:null,transitions:null}}function q3(e,t,r){var n=t.pendingProps,o=zt.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Rt(zt,o&1),e===null)return Ng(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):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=zd(a,n,0,null),e=Ca(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=jg(r),t.memoizedState=Ug,e):Rv(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return wI(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Ti(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Ti(s,i):(i=Ca(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?jg(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Ug,n}return i=e.child,e=i.sibling,n=Ti(i,{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 Rv(e,t){return t=zd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Zf(e,t,r,n){return n!==null&&gv(n),Gs(t,e.child,null,r),e=Rv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wI(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=rg(Error(Ee(422))),Zf(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=zd({mode:"visible",children:n.children},o,0,null),i=Ca(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Gs(t,e.child,null,a),t.child.memoizedState=jg(a),t.memoizedState=Ug,i);if((t.mode&1)===0)return Zf(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(Ee(419)),n=rg(i,n,void 0),Zf(e,t,a,n)}if(s=(a&e.childLanes)!==0,tn||s){if(n=gr,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,jo(e,o),no(n,e,o,-1))}return Lv(),n=rg(Error(Ee(421))),Zf(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=II.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,hn=Ei(o.nextSibling),pn=t,Ut=!0,to=null,e!==null&&(Dn[Ln++]=Fo,Dn[Ln++]=$o,Dn[Ln++]=Ta,Fo=e.id,$o=e.overflow,Ta=t),t=Rv(t,n.children),t.flags|=4096,t)}function nb(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Dg(e.return,t,r)}function ng(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function G3(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Br(e,t,n.children,r),n=zt.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&&nb(e,r,t);else if(e.tag===19)nb(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(Rt(zt,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Md(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),ng(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Md(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}ng(t,!0,r,null,i);break;case"together":ng(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function id(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ra|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(Ee(153));if(t.child!==null){for(e=t.child,r=Ti(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ti(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function xI(e,t,r){switch(t.tag){case 3:W3(t),qs();break;case 5:x3(t);break;case 1:nn(t.type)&&wd(t);break;case 4:bv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Rt(bd,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Rt(zt,zt.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?q3(e,t,r):(Rt(zt,zt.current&1),e=zo(e,t,r),e!==null?e.sibling:null);Rt(zt,zt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return G3(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Rt(zt,zt.current),n)break;return null;case 22:case 23:return t.lanes=0,z3(e,t,r)}return zo(e,t,r)}var K3,zg,Y3,Z3;K3=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}};zg=function(){};Y3=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ea(bo.current);var i=null;switch(r){case"input":o=fg(e,o),n=fg(e,n),i=[];break;case"select":o=Wt({},o,{value:void 0}),n=Wt({},n,{value:void 0}),i=[];break;case"textarea":o=pg(e,o),n=pg(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=vd)}gg(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Gu.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Gu.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ft("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Z3=function(e,t,r,n){r!==n&&(t.flags|=4)};function Au(e,t){if(!Ut)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 Rr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function _I(e,t,r){var n=t.pendingProps;switch(mv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rr(t),null;case 1:return nn(t.type)&&yd(),Rr(t),null;case 3:return n=t.stateNode,Ks(),$t(rn),$t(Ir),Ev(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,to!==null&&(Qg(to),to=null))),zg(e,t),Rr(t),null;case 5:Sv(t);var o=Ea(ic.current);if(r=t.type,e!==null&&t.stateNode!=null)Y3(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ee(166));return Rr(t),null}if(e=Ea(bo.current),Kf(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[xo]=t,n[nc]=i,e=(t.mode&1)!==0,r){case"dialog":Ft("cancel",n),Ft("close",n);break;case"iframe":case"object":case"embed":Ft("load",n);break;case"video":case"audio":for(o=0;o<Fu.length;o++)Ft(Fu[o],n);break;case"source":Ft("error",n);break;case"img":case"image":case"link":Ft("error",n),Ft("load",n);break;case"details":Ft("toggle",n);break;case"input":f_(n,i),Ft("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Ft("invalid",n);break;case"textarea":h_(n,i),Ft("invalid",n)}gg(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&Gf(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Gf(n.textContent,s,e),o=["children",""+s]):Gu.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ft("scroll",n)}switch(r){case"input":Df(n),d_(n,i,!0);break;case"textarea":Df(n),p_(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=vd)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Sb(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[xo]=t,e[nc]=n,K3(e,t,!1,!1),t.stateNode=e;e:{switch(a=vg(r,n),r){case"dialog":Ft("cancel",e),Ft("close",e),o=n;break;case"iframe":case"object":case"embed":Ft("load",e),o=n;break;case"video":case"audio":for(o=0;o<Fu.length;o++)Ft(Fu[o],e);o=n;break;case"source":Ft("error",e),o=n;break;case"img":case"image":case"link":Ft("error",e),Ft("load",e),o=n;break;case"details":Ft("toggle",e),o=n;break;case"input":f_(e,n),o=fg(e,n),Ft("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Wt({},n,{value:void 0}),Ft("invalid",e);break;case"textarea":h_(e,n),o=pg(e,n),Ft("invalid",e);break;default:o=n}gg(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?Cb(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Eb(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ku(e,l):typeof l=="number"&&Ku(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Gu.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Ft("scroll",e):l!=null&&ev(e,i,l,a))}switch(r){case"input":Df(e),d_(e,n,!1);break;case"textarea":Df(e),p_(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Pi(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?$s(e,!!n.multiple,i,!1):n.defaultValue!=null&&$s(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=vd)}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 Rr(t),null;case 6:if(e&&t.stateNode!=null)Z3(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ee(166));if(r=Ea(ic.current),Ea(bo.current),Kf(t)){if(n=t.stateNode,r=t.memoizedProps,n[xo]=t,(i=n.nodeValue!==r)&&(e=pn,e!==null))switch(e.tag){case 3:Gf(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gf(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[xo]=t,t.stateNode=n}return Rr(t),null;case 13:if($t(zt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ut&&hn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)h3(),qs(),t.flags|=98560,i=!1;else if(i=Kf(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(Ee(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Ee(317));i[xo]=t}else qs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rr(t),i=!1}else to!==null&&(Qg(to),to=null),i=!0;if(!i)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||(zt.current&1)!==0?ur===0&&(ur=3):Lv())),t.updateQueue!==null&&(t.flags|=4),Rr(t),null);case 4:return Ks(),zg(e,t),e===null&&tc(t.stateNode.containerInfo),Rr(t),null;case 10:return wv(t.type._context),Rr(t),null;case 17:return nn(t.type)&&yd(),Rr(t),null;case 19:if($t(zt),i=t.memoizedState,i===null)return Rr(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)Au(i,!1);else{if(ur!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Md(e),a!==null){for(t.flags|=128,Au(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Rt(zt,zt.current&1|2),t.child}e=e.sibling}i.tail!==null&&Qt()>Zs&&(t.flags|=128,n=!0,Au(i,!1),t.lanes=4194304)}else{if(!n)if(e=Md(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Au(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ut)return Rr(t),null}else 2*Qt()-i.renderingStartTime>Zs&&r!==1073741824&&(t.flags|=128,n=!0,Au(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Qt(),t.sibling=null,r=zt.current,Rt(zt,n?r&1|2:r&1),t):(Rr(t),null);case 22:case 23:return Dv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(dn&1073741824)!==0&&(Rr(t),t.subtreeFlags&6&&(t.flags|=8192)):Rr(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function bI(e,t){switch(mv(t),t.tag){case 1:return nn(t.type)&&yd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ks(),$t(rn),$t(Ir),Ev(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Sv(t),null;case 13:if($t(zt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(zt),null;case 4:return Ks(),null;case 10:return wv(t.type._context),null;case 22:case 23:return Dv(),null;case 24:return null;default:return null}}var Qf=!1,Ar=!1,SI=typeof WeakSet=="function"?WeakSet:Set,Be=null;function Ls(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Yt(e,t,n)}else r.current=null}function Hg(e,t,r){try{r()}catch(n){Yt(e,t,n)}}var ob=!1;function EI(e,t){if(kg=pd,e=e3(),hv(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 o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(K){r=null;break e}var a=0,s=-1,l=-1,c=0,g=0,_=e,k=null;t:for(;;){for(var R;_!==r||o!==0&&_.nodeType!==3||(s=a+o),_!==i||n!==0&&_.nodeType!==3||(l=a+n),_.nodeType===3&&(a+=_.nodeValue.length),(R=_.firstChild)!==null;)k=_,_=R;for(;;){if(_===e)break t;if(k===r&&++c===o&&(s=a),k===i&&++g===n&&(l=a),(R=_.nextSibling)!==null)break;_=k,k=_.parentNode}_=R}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Tg={focusedElem:e,selectionRange:r},pd=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){t=Be;try{var I=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(I!==null){var V=I.memoizedProps,j=I.memoizedState,L=t.stateNode,D=L.getSnapshotBeforeUpdate(t.elementType===t.type?V:Jn(t.type,V),j);L.__reactInternalSnapshotBeforeUpdate=D}break;case 3:var B=t.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(K){Yt(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}return I=ob,ob=!1,I}function Hu(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Hg(t,r,i)}o=o.next}while(o!==n)}}function Ud(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 Wg(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 Q3(e){var t=e.alternate;t!==null&&(e.alternate=null,Q3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xo],delete t[nc],delete t[Ag],delete t[aI],delete t[sI])),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 X3(e){return e.tag===5||e.tag===3||e.tag===4}function ib(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X3(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 qg(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=vd));else if(n!==4&&(e=e.child,e!==null))for(qg(e,t,r),e=e.sibling;e!==null;)qg(e,t,r),e=e.sibling}function Gg(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(Gg(e,t,r),e=e.sibling;e!==null;)Gg(e,t,r),e=e.sibling}var yr=null,eo=!1;function pi(e,t,r){for(r=r.child;r!==null;)J3(e,t,r),r=r.sibling}function J3(e,t,r){if(_o&&typeof _o.onCommitFiberUnmount=="function")try{_o.onCommitFiberUnmount(Od,r)}catch(s){}switch(r.tag){case 5:Ar||Ls(r,t);case 6:var n=yr,o=eo;yr=null,pi(e,t,r),yr=n,eo=o,yr!==null&&(eo?(e=yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):yr.removeChild(r.stateNode));break;case 18:yr!==null&&(eo?(e=yr,r=r.stateNode,e.nodeType===8?Zm(e.parentNode,r):e.nodeType===1&&Zm(e,r),Xu(e)):Zm(yr,r.stateNode));break;case 4:n=yr,o=eo,yr=r.stateNode.containerInfo,eo=!0,pi(e,t,r),yr=n,eo=o;break;case 0:case 11:case 14:case 15:if(!Ar&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Hg(r,t,a),o=o.next}while(o!==n)}pi(e,t,r);break;case 1:if(!Ar&&(Ls(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Yt(r,t,s)}pi(e,t,r);break;case 21:pi(e,t,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,pi(e,t,r),Ar=n):pi(e,t,r);break;default:pi(e,t,r)}}function ab(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new SI),t.forEach(function(n){var o=OI.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Xn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:yr=s.stateNode,eo=!1;break e;case 3:yr=s.stateNode.containerInfo,eo=!0;break e;case 4:yr=s.stateNode.containerInfo,eo=!0;break e}s=s.return}if(yr===null)throw Error(Ee(160));J3(i,a,o),yr=null,eo=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Yt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)eS(t,e),t=t.sibling}function eS(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xn(t,e),yo(e),n&4){try{Hu(3,e,e.return),Ud(3,e)}catch(V){Yt(e,e.return,V)}try{Hu(5,e,e.return)}catch(V){Yt(e,e.return,V)}}break;case 1:Xn(t,e),yo(e),n&512&&r!==null&&Ls(r,r.return);break;case 5:if(Xn(t,e),yo(e),n&512&&r!==null&&Ls(r,r.return),e.flags&32){var o=e.stateNode;try{Ku(o,"")}catch(V){Yt(e,e.return,V)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&_b(o,i),vg(s,a);var c=vg(s,i);for(a=0;a<l.length;a+=2){var g=l[a],_=l[a+1];g==="style"?Cb(o,_):g==="dangerouslySetInnerHTML"?Eb(o,_):g==="children"?Ku(o,_):ev(o,g,_,c)}switch(s){case"input":dg(o,i);break;case"textarea":bb(o,i);break;case"select":var k=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var R=i.value;R!=null?$s(o,!!i.multiple,R,!1):k!==!!i.multiple&&(i.defaultValue!=null?$s(o,!!i.multiple,i.defaultValue,!0):$s(o,!!i.multiple,i.multiple?[]:"",!1))}o[nc]=i}catch(V){Yt(e,e.return,V)}}break;case 6:if(Xn(t,e),yo(e),n&4){if(e.stateNode===null)throw Error(Ee(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(V){Yt(e,e.return,V)}}break;case 3:if(Xn(t,e),yo(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Xu(t.containerInfo)}catch(V){Yt(e,e.return,V)}break;case 4:Xn(t,e),yo(e);break;case 13:Xn(t,e),yo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Ov=Qt())),n&4&&ab(e);break;case 22:if(g=r!==null&&r.memoizedState!==null,e.mode&1?(Ar=(c=Ar)||g,Xn(t,e),Ar=c):Xn(t,e),yo(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!g&&(e.mode&1)!==0)for(Be=e,g=e.child;g!==null;){for(_=Be=g;Be!==null;){switch(k=Be,R=k.child,k.tag){case 0:case 11:case 14:case 15:Hu(4,k,k.return);break;case 1:Ls(k,k.return);var I=k.stateNode;if(typeof I.componentWillUnmount=="function"){n=k,r=k.return;try{t=n,I.props=t.memoizedProps,I.state=t.memoizedState,I.componentWillUnmount()}catch(V){Yt(n,r,V)}}break;case 5:Ls(k,k.return);break;case 22:if(k.memoizedState!==null){lb(_);continue}}R!==null?(R.return=k,Be=R):lb(_)}g=g.sibling}e:for(g=null,_=e;;){if(_.tag===5){if(g===null){g=_;try{o=_.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=_.stateNode,l=_.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Mb("display",a))}catch(V){Yt(e,e.return,V)}}}else if(_.tag===6){if(g===null)try{_.stateNode.nodeValue=c?"":_.memoizedProps}catch(V){Yt(e,e.return,V)}}else if((_.tag!==22&&_.tag!==23||_.memoizedState===null||_===e)&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===e)break e;for(;_.sibling===null;){if(_.return===null||_.return===e)break e;g===_&&(g=null),_=_.return}g===_&&(g=null),_.sibling.return=_.return,_=_.sibling}}break;case 19:Xn(t,e),yo(e),n&4&&ab(e);break;case 21:break;default:Xn(t,e),yo(e)}}function yo(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(X3(r)){var n=r;break e}r=r.return}throw Error(Ee(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Ku(o,""),n.flags&=-33);var i=ib(e);Gg(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=ib(e);qg(e,s,a);break;default:throw Error(Ee(161))}}catch(l){Yt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function MI(e,t,r){Be=e,tS(e,t,r)}function tS(e,t,r){for(var n=(e.mode&1)!==0;Be!==null;){var o=Be,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Qf;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Ar;s=Qf;var c=Ar;if(Qf=a,(Ar=l)&&!c)for(Be=o;Be!==null;)a=Be,l=a.child,a.tag===22&&a.memoizedState!==null?ub(o):l!==null?(l.return=a,Be=l):ub(o);for(;i!==null;)Be=i,tS(i,t,r),i=i.sibling;Be=o,Qf=s,Ar=c}sb(e,t,r)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,Be=i):sb(e,t,r)}}function sb(e){for(;Be!==null;){var t=Be;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ar||Ud(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ar)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Jn(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&H_(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}H_(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var g=c.memoizedState;if(g!==null){var _=g.dehydrated;_!==null&&Xu(_)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ee(163))}Ar||t.flags&512&&Wg(t)}catch(k){Yt(t,t.return,k)}}if(t===e){Be=null;break}if(r=t.sibling,r!==null){r.return=t.return,Be=r;break}Be=t.return}}function lb(e){for(;Be!==null;){var t=Be;if(t===e){Be=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Be=r;break}Be=t.return}}function ub(e){for(;Be!==null;){var t=Be;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Ud(4,t)}catch(l){Yt(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(l){Yt(t,o,l)}}var i=t.return;try{Wg(t)}catch(l){Yt(t,i,l)}break;case 5:var a=t.return;try{Wg(t)}catch(l){Yt(t,a,l)}}}catch(l){Yt(t,t.return,l)}if(t===e){Be=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Be=s;break}Be=t.return}}var CI=Math.ceil,Td=Ho.ReactCurrentDispatcher,Av=Ho.ReactCurrentOwner,$n=Ho.ReactCurrentBatchConfig,_t=0,gr=null,rr=null,wr=0,dn=0,Fs=Ii(0),ur=0,uc=null,Ra=0,jd=0,Iv=0,Wu=null,en=null,Ov=0,Zs=1/0,Do=null,Pd=!1,Kg=null,Ci=null,Xf=!1,xi=null,Rd=0,qu=0,Yg=null,ad=-1,sd=0;function Vr(){return(_t&6)!==0?Qt():ad!==-1?ad:ad=Qt()}function ki(e){return(e.mode&1)===0?1:(_t&2)!==0&&wr!==0?wr&-wr:uI.transition!==null?(sd===0&&(sd=$b()),sd):(e=Tt,e!==0||(e=window.event,e=e===void 0?16:Wb(e.type)),e)}function no(e,t,r,n){if(50<qu)throw qu=0,Yg=null,Error(Ee(185));cc(e,r,n),((_t&2)===0||e!==gr)&&(e===gr&&((_t&2)===0&&(jd|=r),ur===4&&yi(e,wr)),on(e,n),r===1&&_t===0&&(t.mode&1)===0&&(Zs=Qt()+500,$d&&Oi()))}function on(e,t){var r=e.callbackNode;fA(e,t);var n=hd(e,e===gr?wr:0);if(n===0)r!==null&&v_(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&v_(r),t===1)e.tag===0?lI(cb.bind(null,e)):c3(cb.bind(null,e)),oI(function(){(_t&6)===0&&Oi()}),r=null;else{switch(Bb(n)){case 1:r=iv;break;case 4:r=Lb;break;case 16:r=dd;break;case 536870912:r=Fb;break;default:r=dd}r=uS(r,rS.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function rS(e,t){if(ad=-1,sd=0,(_t&6)!==0)throw Error(Ee(327));var r=e.callbackNode;if(zs()&&e.callbackNode!==r)return null;var n=hd(e,e===gr?wr:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Ad(e,n);else{t=n;var o=_t;_t|=2;var i=oS();(gr!==e||wr!==t)&&(Do=null,Zs=Qt()+500,Ma(e,t));do try{PI();break}catch(s){nS(e,s)}while(1);yv(),Td.current=i,_t=o,rr!==null?t=0:(gr=null,wr=0,t=ur)}if(t!==0){if(t===2&&(o=bg(e),o!==0&&(n=o,t=Zg(e,o))),t===1)throw r=uc,Ma(e,0),yi(e,n),on(e,Qt()),r;if(t===6)yi(e,n);else{if(o=e.current.alternate,(n&30)===0&&!kI(o)&&(t=Ad(e,n),t===2&&(i=bg(e),i!==0&&(n=i,t=Zg(e,i))),t===1))throw r=uc,Ma(e,0),yi(e,n),on(e,Qt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(Ee(345));case 2:_a(e,en,Do);break;case 3:if(yi(e,n),(n&130023424)===n&&(t=Ov+500-Qt(),10<t)){if(hd(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Vr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Rg(_a.bind(null,e,en,Do),t);break}_a(e,en,Do);break;case 4:if(yi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-ro(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=Qt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*CI(n/1960))-n,10<n){e.timeoutHandle=Rg(_a.bind(null,e,en,Do),n);break}_a(e,en,Do);break;case 5:_a(e,en,Do);break;default:throw Error(Ee(329))}}}return on(e,Qt()),e.callbackNode===r?rS.bind(null,e):null}function Zg(e,t){var r=Wu;return e.current.memoizedState.isDehydrated&&(Ma(e,t).flags|=256),e=Ad(e,t),e!==2&&(t=en,en=r,t!==null&&Qg(t)),e}function Qg(e){en===null?en=e:en.push.apply(en,e)}function kI(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 o=r[n],i=o.getSnapshot;o=o.value;try{if(!oo(i(),o))return!1}catch(a){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 yi(e,t){for(t&=~Iv,t&=~jd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ro(t),n=1<<r;e[r]=-1,t&=~n}}function cb(e){if((_t&6)!==0)throw Error(Ee(327));zs();var t=hd(e,0);if((t&1)===0)return on(e,Qt()),null;var r=Ad(e,t);if(e.tag!==0&&r===2){var n=bg(e);n!==0&&(t=n,r=Zg(e,n))}if(r===1)throw r=uc,Ma(e,0),yi(e,t),on(e,Qt()),r;if(r===6)throw Error(Ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_a(e,en,Do),on(e,Qt()),null}function Nv(e,t){var r=_t;_t|=1;try{return e(t)}finally{_t=r,_t===0&&(Zs=Qt()+500,$d&&Oi())}}function Aa(e){xi!==null&&xi.tag===0&&(_t&6)===0&&zs();var t=_t;_t|=1;var r=$n.transition,n=Tt;try{if($n.transition=null,Tt=1,e)return e()}finally{Tt=n,$n.transition=r,_t=t,(_t&6)===0&&Oi()}}function Dv(){dn=Fs.current,$t(Fs)}function Ma(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,nI(r)),rr!==null)for(r=rr.return;r!==null;){var n=r;switch(mv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&yd();break;case 3:Ks(),$t(rn),$t(Ir),Ev();break;case 5:Sv(n);break;case 4:Ks();break;case 13:$t(zt);break;case 19:$t(zt);break;case 10:wv(n.type._context);break;case 22:case 23:Dv()}r=r.return}if(gr=e,rr=e=Ti(e.current,null),wr=dn=t,ur=0,uc=null,Iv=jd=Ra=0,en=Wu=null,Sa!==null){for(t=0;t<Sa.length;t++)if(r=Sa[t],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Sa=null}return e}function nS(e,t){do{var r=rr;try{if(yv(),nd.current=kd,Cd){for(var n=Ht.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Cd=!1}if(Pa=0,mr=lr=Ht=null,zu=!1,ac=0,Av.current=null,r===null||r.return===null){ur=1,uc=t,rr=null;break}e:{var i=e,a=r.return,s=r,l=t;if(t=wr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,g=s,_=g.tag;if((g.mode&1)===0&&(_===0||_===11||_===15)){var k=g.alternate;k?(g.updateQueue=k.updateQueue,g.memoizedState=k.memoizedState,g.lanes=k.lanes):(g.updateQueue=null,g.memoizedState=null)}var R=Q_(a);if(R!==null){R.flags&=-257,X_(R,a,s,i,t),R.mode&1&&Z_(i,c,t),t=R,l=c;var I=t.updateQueue;if(I===null){var V=new Set;V.add(l),t.updateQueue=V}else I.add(l);break e}else{if((t&1)===0){Z_(i,c,t),Lv();break e}l=Error(Ee(426))}}else if(Ut&&s.mode&1){var j=Q_(a);if(j!==null){(j.flags&65536)===0&&(j.flags|=256),X_(j,a,s,i,t),gv(Ys(l,s));break e}}i=l=Ys(l,s),ur!==4&&(ur=2),Wu===null?Wu=[i]:Wu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var L=V3(i,l,t);z_(i,L);break e;case 1:s=l;var D=i.type,B=i.stateNode;if((i.flags&128)===0&&(typeof D.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(Ci===null||!Ci.has(B)))){i.flags|=65536,t&=-t,i.lanes|=t;var K=U3(i,s,t);z_(i,K);break e}}i=i.return}while(i!==null)}aS(r)}catch(X){t=X,rr===r&&r!==null&&(rr=r=r.return);continue}break}while(1)}function oS(){var e=Td.current;return Td.current=kd,e===null?kd:e}function Lv(){(ur===0||ur===3||ur===2)&&(ur=4),gr===null||(Ra&268435455)===0&&(jd&268435455)===0||yi(gr,wr)}function Ad(e,t){var r=_t;_t|=2;var n=oS();(gr!==e||wr!==t)&&(Do=null,Ma(e,t));do try{TI();break}catch(o){nS(e,o)}while(1);if(yv(),_t=r,Td.current=n,rr!==null)throw Error(Ee(261));return gr=null,wr=0,ur}function TI(){for(;rr!==null;)iS(rr)}function PI(){for(;rr!==null&&!rA();)iS(rr)}function iS(e){var t=lS(e.alternate,e,dn);e.memoizedProps=e.pendingProps,t===null?aS(e):rr=t,Av.current=null}function aS(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=_I(r,t,dn),r!==null){rr=r;return}}else{if(r=bI(r,t),r!==null){r.flags&=32767,rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ur=6,rr=null;return}}if(t=t.sibling,t!==null){rr=t;return}rr=t=e}while(t!==null);ur===0&&(ur=5)}function _a(e,t,r){var n=Tt,o=$n.transition;try{$n.transition=null,Tt=1,RI(e,t,r,n)}finally{$n.transition=o,Tt=n}return null}function RI(e,t,r,n){do zs();while(xi!==null);if((_t&6)!==0)throw Error(Ee(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ee(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(dA(e,i),e===gr&&(rr=gr=null,wr=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Xf||(Xf=!0,uS(dd,function(){return zs(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=$n.transition,$n.transition=null;var a=Tt;Tt=1;var s=_t;_t|=4,Av.current=null,EI(e,r),eS(r,e),XA(Tg),pd=!!kg,Tg=kg=null,e.current=r,MI(r,e,o),nA(),_t=s,Tt=a,$n.transition=i}else e.current=r;if(Xf&&(Xf=!1,xi=e,Rd=o),i=e.pendingLanes,i===0&&(Ci=null),aA(r.stateNode,n),on(e,Qt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Pd)throw Pd=!1,e=Kg,Kg=null,e;return(Rd&1)!==0&&e.tag!==0&&zs(),i=e.pendingLanes,(i&1)!==0?e===Yg?qu++:(qu=0,Yg=e):qu=0,Oi(),null}function zs(){if(xi!==null){var e=Bb(Rd),t=$n.transition,r=Tt;try{if($n.transition=null,Tt=16>e?16:e,xi===null)var n=!1;else{if(e=xi,xi=null,Rd=0,(_t&6)!==0)throw Error(Ee(331));var o=_t;for(_t|=4,Be=e.current;Be!==null;){var i=Be,a=i.child;if((Be.flags&16)!==0){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Be=c;Be!==null;){var g=Be;switch(g.tag){case 0:case 11:case 15:Hu(8,g,i)}var _=g.child;if(_!==null)_.return=g,Be=_;else for(;Be!==null;){g=Be;var k=g.sibling,R=g.return;if(Q3(g),g===c){Be=null;break}if(k!==null){k.return=R,Be=k;break}Be=R}}}var I=i.alternate;if(I!==null){var V=I.child;if(V!==null){I.child=null;do{var j=V.sibling;V.sibling=null,V=j}while(V!==null)}}Be=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,Be=a;else e:for(;Be!==null;){if(i=Be,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Hu(9,i,i.return)}var L=i.sibling;if(L!==null){L.return=i.return,Be=L;break e}Be=i.return}}var D=e.current;for(Be=D;Be!==null;){a=Be;var B=a.child;if((a.subtreeFlags&2064)!==0&&B!==null)B.return=a,Be=B;else e:for(a=D;Be!==null;){if(s=Be,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:Ud(9,s)}}catch(X){Yt(s,s.return,X)}if(s===a){Be=null;break e}var K=s.sibling;if(K!==null){K.return=s.return,Be=K;break e}Be=s.return}}if(_t=o,Oi(),_o&&typeof _o.onPostCommitFiberRoot=="function")try{_o.onPostCommitFiberRoot(Od,e)}catch(X){}n=!0}return n}finally{Tt=r,$n.transition=t}}return!1}function fb(e,t,r){t=Ys(r,t),t=V3(e,t,1),e=Mi(e,t,1),t=Vr(),e!==null&&(cc(e,1,t),on(e,t))}function Yt(e,t,r){if(e.tag===3)fb(e,e,r);else for(;t!==null;){if(t.tag===3){fb(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ci===null||!Ci.has(n))){e=Ys(r,e),e=U3(t,e,1),t=Mi(t,e,1),e=Vr(),t!==null&&(cc(t,1,e),on(t,e));break}}t=t.return}}function AI(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Vr(),e.pingedLanes|=e.suspendedLanes&r,gr===e&&(wr&r)===r&&(ur===4||ur===3&&(wr&130023424)===wr&&500>Qt()-Ov?Ma(e,0):Iv|=r),on(e,t)}function sS(e,t){t===0&&((e.mode&1)===0?t=1:(t=$f,$f<<=1,($f&130023424)===0&&($f=4194304)));var r=Vr();e=jo(e,t),e!==null&&(cc(e,t,r),on(e,r))}function II(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sS(e,r)}function OI(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ee(314))}n!==null&&n.delete(t),sS(e,r)}var lS;lS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rn.current)tn=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return tn=!1,xI(e,t,r);tn=(e.flags&131072)!==0}else tn=!1,Ut&&(t.flags&1048576)!==0&&f3(t,_d,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;id(e,t),e=t.pendingProps;var o=Ws(t,Ir.current);js(t,r),o=Cv(null,t,n,e,o,r);var i=kv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nn(n)?(i=!0,wd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,_v(t),o.updater=Bd,t.stateNode=o,o._reactInternals=t,Fg(t,n,e,r),t=Vg(null,t,n,!0,i,r)):(t.tag=0,Ut&&i&&pv(t),Br(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(id(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=DI(n),e=Jn(n,e),o){case 0:t=Bg(null,t,n,e,r);break e;case 1:t=tb(null,t,n,e,r);break e;case 11:t=J_(null,t,n,e,r);break e;case 14:t=eb(null,t,n,Jn(n.type,e),r);break e}throw Error(Ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jn(n,o),Bg(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jn(n,o),tb(e,t,n,o,r);case 3:e:{if(W3(t),e===null)throw Error(Ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,m3(e,t),Ed(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ys(Error(Ee(423)),t),t=rb(e,t,n,r,o);break e}else if(n!==o){o=Ys(Error(Ee(424)),t),t=rb(e,t,n,r,o);break e}else for(hn=Ei(t.stateNode.containerInfo.firstChild),pn=t,Ut=!0,to=null,r=w3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qs(),n===o){t=zo(e,t,r);break e}Br(e,t,n,r)}t=t.child}return t;case 5:return x3(t),e===null&&Ng(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pg(n,o)?a=null:i!==null&&Pg(n,i)&&(t.flags|=32),H3(e,t),Br(e,t,a,r),t.child;case 6:return e===null&&Ng(t),null;case 13:return q3(e,t,r);case 4:return bv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gs(t,null,n,r):Br(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jn(n,o),J_(e,t,n,o,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,o=t.pendingProps,i=t.memoizedProps,a=o.value,Rt(bd,n._currentValue),n._currentValue=a,i!==null)if(oo(i.value,a)){if(i.children===o.children&&!rn.current){t=zo(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Bo(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?l.next=l:(l.next=g.next,g.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Dg(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Dg(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Br(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,js(t,r),o=Bn(o),n=n(o),t.flags|=1,Br(e,t,n,r),t.child;case 14:return n=t.type,o=Jn(n,t.pendingProps),o=Jn(n.type,o),eb(e,t,n,o,r);case 15:return j3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jn(n,o),id(e,t),t.tag=1,nn(n)?(e=!0,wd(t)):e=!1,js(t,r),v3(t,n,o),Fg(t,n,o,r),Vg(null,t,n,!0,e,r);case 19:return G3(e,t,r);case 22:return z3(e,t,r)}throw Error(Ee(156,t.tag))};function uS(e,t){return Db(e,t)}function NI(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 Fn(e,t,r,n){return new NI(e,t,r,n)}function Fv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DI(e){if(typeof e=="function")return Fv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rv)return 11;if(e===nv)return 14}return 2}function Ti(e,t){var r=e.alternate;return r===null?(r=Fn(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 ld(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Fv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ks:return Ca(r.children,o,i,t);case tv:a=8,o|=8;break;case sg:return e=Fn(12,r,t,o|2),e.elementType=sg,e.lanes=i,e;case lg:return e=Fn(13,r,t,o),e.elementType=lg,e.lanes=i,e;case ug:return e=Fn(19,r,t,o),e.elementType=ug,e.lanes=i,e;case yb:return zd(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gb:a=10;break e;case vb:a=9;break e;case rv:a=11;break e;case nv:a=14;break e;case mi:a=16,n=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=Fn(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ca(e,t,r,n){return e=Fn(7,e,n,t),e.lanes=r,e}function zd(e,t,r,n){return e=Fn(22,e,n,t),e.elementType=yb,e.lanes=r,e.stateNode={isHidden:!1},e}function og(e,t,r){return e=Fn(6,e,null,t),e.lanes=r,e}function ig(e,t,r){return t=Fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LI(e,t,r,n,o){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=jm(0),this.expirationTimes=jm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jm(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $v(e,t,r,n,o,i,a,s,l){return e=new LI(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Fn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_v(i),e}function FI(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Cs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function cS(e){if(!e)return Ri;e=e._reactInternals;e:{if(Oa(e)!==e||e.tag!==1)throw Error(Ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ee(171))}if(e.tag===1){var r=e.type;if(nn(r))return u3(e,r,t)}return t}function fS(e,t,r,n,o,i,a,s,l){return e=$v(r,n,!0,e,o,i,a,s,l),e.context=cS(null),r=e.current,n=Vr(),o=ki(r),i=Bo(n,o),i.callback=t!=null?t:null,Mi(r,i,o),e.current.lanes=o,cc(e,o,n),on(e,n),e}function Hd(e,t,r,n){var o=t.current,i=Vr(),a=ki(o);return r=cS(r),t.context===null?t.context=r:t.pendingContext=r,t=Bo(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Mi(o,t,a),e!==null&&(no(e,o,a,i),rd(e,o,a)),a}function Id(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 db(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){db(e,t),(e=e.alternate)&&db(e,t)}function $I(){return null}var dS=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vv(e){this._internalRoot=e}Wd.prototype.render=Vv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ee(409));Hd(e,t,null,null)};Wd.prototype.unmount=Vv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Aa(function(){Hd(null,e,null,null)}),t[Uo]=null}};function Wd(e){this._internalRoot=e}Wd.prototype.unstable_scheduleHydration=function(e){if(e){var t=jb();e={blockedOn:null,target:e,priority:t};for(var r=0;r<vi.length&&t!==0&&t<vi[r].priority;r++);vi.splice(r,0,e),r===0&&Hb(e)}};function Uv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hb(){}function BI(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=Id(a);i.call(c)}}var a=fS(t,n,e,0,null,!1,!1,"",hb);return e._reactRootContainer=a,e[Uo]=a.current,tc(e.nodeType===8?e.parentNode:e),Aa(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var c=Id(l);s.call(c)}}var l=$v(e,0,!1,null,null,!1,!1,"",hb);return e._reactRootContainer=l,e[Uo]=l.current,tc(e.nodeType===8?e.parentNode:e),Aa(function(){Hd(t,l,r,n)}),l}function Gd(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Id(a);s.call(l)}}Hd(t,a,e,o)}else a=BI(r,t,e,o,n);return Id(a)}Vb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Lu(t.pendingLanes);r!==0&&(av(t,r|1),on(t,Qt()),(_t&6)===0&&(Zs=Qt()+500,Oi()))}break;case 13:Aa(function(){var n=jo(e,1);if(n!==null){var o=Vr();no(n,e,1,o)}}),Bv(e,1)}};sv=function(e){if(e.tag===13){var t=jo(e,134217728);if(t!==null){var r=Vr();no(t,e,134217728,r)}Bv(e,134217728)}};Ub=function(e){if(e.tag===13){var t=ki(e),r=jo(e,t);if(r!==null){var n=Vr();no(r,e,t,n)}Bv(e,t)}};jb=function(){return Tt};zb=function(e,t){var r=Tt;try{return Tt=e,t()}finally{Tt=r}};wg=function(e,t,r){switch(t){case"input":if(dg(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 o=Fd(n);if(!o)throw Error(Ee(90));xb(n),dg(n,o)}}}break;case"textarea":bb(e,r);break;case"select":t=r.value,t!=null&&$s(e,!!r.multiple,t,!1)}};Pb=Nv;Rb=Aa;var VI={usingClientEntryPoint:!1,Events:[dc,As,Fd,kb,Tb,Nv]},Iu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UI={bundleType:Iu.bundleType,version:Iu.version,rendererPackageName:Iu.rendererPackageName,rendererConfig:Iu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ho.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ob(e),e===null?null:e.stateNode},findFiberByHostInstance:Iu.findFiberByHostInstance||$I,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ou.isDisabled&&Ou.supportsFiber))try{Od=Ou.inject(UI),_o=Ou}catch(e){}var Ou;vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VI;vn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uv(t))throw Error(Ee(200));return FI(e,t,null,r)};vn.createRoot=function(e,t){if(!Uv(e))throw Error(Ee(299));var r=!1,n="",o=dS;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=$v(e,1,!1,null,null,r,!1,n,o),e[Uo]=t.current,tc(e.nodeType===8?e.parentNode:e),new Vv(t)};vn.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(Ee(188)):(e=Object.keys(e).join(","),Error(Ee(268,e)));return e=Ob(t),e=e===null?null:e.stateNode,e};vn.flushSync=function(e){return Aa(e)};vn.hydrate=function(e,t,r){if(!qd(t))throw Error(Ee(200));return Gd(null,e,t,!0,r)};vn.hydrateRoot=function(e,t,r){if(!Uv(e))throw Error(Ee(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=dS;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=fS(t,null,e,1,r!=null?r:null,o,!1,i,a),e[Uo]=t.current,tc(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Wd(t)};vn.render=function(e,t,r){if(!qd(t))throw Error(Ee(200));return Gd(null,e,t,!1,r)};vn.unmountComponentAtNode=function(e){if(!qd(e))throw Error(Ee(40));return e._reactRootContainer?(Aa(function(){Gd(null,null,e,!1,function(){e._reactRootContainer=null,e[Uo]=null})}),!0):!1};vn.unstable_batchedUpdates=Nv;vn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!qd(r))throw Error(Ee(200));if(e==null||e._reactInternals===void 0)throw Error(Ee(38));return Gd(e,t,r,!1,n)};vn.version="18.2.0-next-9e3b772b8-20220608"});var Na=Qe((WH,mS)=>{"use strict";f();h();d();function pS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pS)}catch(e){console.error(e)}}pS(),mS.exports=hS()});var vS=Qe(jv=>{"use strict";f();h();d();var gS=Na();jv.createRoot=gS.createRoot,jv.hydrateRoot=gS.hydrateRoot;var qH});var wS=Qe((KH,yS)=>{"use strict";f();h();d();var jI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";yS.exports=jI});var SS=Qe((YH,bS)=>{"use strict";f();h();d();var zI=wS();function xS(){}function _S(){}_S.resetWarningCache=xS;bS.exports=function(){function e(n,o,i,a,s,l){if(l!==zI){var c=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 c.name="Invariant Violation",c}}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:_S,resetWarningCache:xS};return r.PropTypes=r,r}});var zv=Qe((XH,ES)=>{f();h();d();ES.exports=SS()();var ZH,QH});var u6=Qe(Qv=>{"use strict";f();h();d();Object.defineProperty(Qv,"__esModule",{value:!0});function RO(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}Qv.default=RO});var c6=Qe(Xv=>{"use strict";f();h();d();Object.defineProperty(Xv,"__esModule",{value:!0});function AO(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var IO=AO(u6()),OO=/^((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)-.*))$/,NO=IO(function(e){return OO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});Xv.default=NO});var wE=Qe((Ire,rp)=>{f();h();d();var X5,J5,eE,tE,rE,nE,oE,iE,aE,ep,Hy,sE,lE,uE,Ul,cE,fE,dE,hE,pE,mE,gE,vE,yE,tp;(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 rp=="object"&&typeof rp.exports=="object"?e(r(t,r(rp.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};X5=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},J5=Object.assign||function(n){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},eE=function(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(n,a[s])&&(i[a[s]]=n[a[s]]);return i},tE=function(n,o,i,a){var s=arguments.length,l=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(n,o,i,a);else for(var g=n.length-1;g>=0;g--)(c=n[g])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},rE=function(n,o){return function(i,a){o(i,a,n)}},nE=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},oE=function(n,o,i,a){function s(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function g(R){try{k(a.next(R))}catch(I){c(I)}}function _(R){try{k(a.throw(R))}catch(I){c(I)}}function k(R){R.done?l(R.value):s(R.value).then(g,_)}k((a=a.apply(n,o||[])).next())})},iE=function(n,o){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function g(k){return function(R){return _([k,R])}}function _(k){if(a)throw new TypeError("Generator is already executing.");for(;c&&(c=0,k[0]&&(i=0)),i;)try{if(a=1,s&&(l=k[0]&2?s.return:k[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,k[1])).done)return l;switch(s=0,l&&(k=[k[0]&2,l.value]),k[0]){case 0:case 1:l=k;break;case 4:return i.label++,{value:k[1],done:!1};case 5:i.label++,s=k[1],k=[0];continue;case 7:k=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(k[0]===6||k[0]===2)){i=0;continue}if(k[0]===3&&(!l||k[1]>l[0]&&k[1]<l[3])){i.label=k[1];break}if(k[0]===6&&i.label<l[1]){i.label=l[1],l=k;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(k);break}l[2]&&i.ops.pop(),i.trys.pop();continue}k=o.call(n,i)}catch(R){k=[6,R],s=0}finally{a=l=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}},aE=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&tp(o,n,i)},tp=Object.create?function(n,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,a,s)}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]},ep=function(n){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&n[o],a=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Hy=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),s,l=[],c;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(g){c={error:g}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return l},sE=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(Hy(arguments[o]));return n},lE=function(){for(var n=0,o=0,i=arguments.length;o<i;o++)n+=arguments[o].length;for(var a=Array(n),s=0,o=0;o<i;o++)for(var l=arguments[o],c=0,g=l.length;c<g;c++,s++)a[s]=l[c];return a},uE=function(n,o,i){if(i||arguments.length===2)for(var a=0,s=o.length,l;a<s;a++)(l||!(a in o))&&(l||(l=Array.prototype.slice.call(o,0,a)),l[a]=o[a]);return n.concat(l||Array.prototype.slice.call(o))},Ul=function(n){return this instanceof Ul?(this.v=n,this):new Ul(n)},cE=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(n,o||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(V){a[V]&&(s[V]=function(j){return new Promise(function(L,D){l.push([V,j,L,D])>1||g(V,j)})})}function g(V,j){try{_(a[V](j))}catch(L){I(l[0][3],L)}}function _(V){V.value instanceof Ul?Promise.resolve(V.value.v).then(k,R):I(l[0][2],V)}function k(V){g("next",V)}function R(V){g("throw",V)}function I(V,j){V(j),l.shift(),l.length&&g(l[0][0],l[0][1])}},fE=function(n){var o,i;return o={},a("next"),a("throw",function(s){throw s}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(s,l){o[s]=n[s]?function(c){return(i=!i)?{value:Ul(n[s](c)),done:s==="return"}:l?l(c):c}:l}},dE=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof ep=="function"?ep(n):n[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=n[l]&&function(c){return new Promise(function(g,_){c=n[l](c),s(g,_,c.done,c.value)})}}function s(l,c,g,_){Promise.resolve(_).then(function(k){l({value:k,done:g})},c)}},hE=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var r=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};pE=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&tp(o,n,i);return r(o,n),o},mE=function(n){return n&&n.__esModule?n:{default:n}},gE=function(n,o,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?n!==o||!a:!o.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(n):a?a.value:o.get(n)},vE=function(n,o,i,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?n!==o||!s:!o.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(n,i):s?s.value=i:o.set(n,i),i},yE=function(n,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?o===n:n.has(o)},e("__extends",X5),e("__assign",J5),e("__rest",eE),e("__decorate",tE),e("__param",rE),e("__metadata",nE),e("__awaiter",oE),e("__generator",iE),e("__exportStar",aE),e("__createBinding",tp),e("__values",ep),e("__read",Hy),e("__spread",sE),e("__spreadArrays",lE),e("__spreadArray",uE),e("__await",Ul),e("__asyncGenerator",cE),e("__asyncDelegator",fE),e("__asyncValues",dE),e("__makeTemplateObject",hE),e("__importStar",pE),e("__importDefault",mE),e("__classPrivateFieldGet",gE),e("__classPrivateFieldSet",vE),e("__classPrivateFieldIn",yE)})});var rM=Qe((doe,tM)=>{f();h();d();tM.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(o){e.addRange(o)}),t&&t.focus()}}});var iM=Qe((hoe,oM)=>{"use strict";f();h();d();var kL=rM(),nM={"text/plain":"Text","text/html":"Url",default:"Text"},TL="Copy to clipboard: #{key}, Enter";function PL(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function RL(e,t){var r,n,o,i,a,s,l=!1;t||(t={}),r=t.debug||!1;try{o=kL(),i=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(g){if(g.stopPropagation(),t.format)if(g.preventDefault(),typeof g.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=nM[t.format]||nM.default;window.clipboardData.setData(_,e)}else g.clipboardData.clearData(),g.clipboardData.setData(t.format,e);t.onCopy&&(g.preventDefault(),t.onCopy(g.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(g){r&&console.error("unable to copy using execCommand: ",g),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(_){r&&console.error("unable to copy using clipboardData: ",_),r&&console.error("falling back to prompt"),n=PL("message"in t?t.message:TL),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}oM.exports=RL});var aM=Qe((Pc,e1)=>{f();h();d();(function(e,t){typeof Pc=="object"&&typeof e1=="object"?e1.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Pc=="object"?Pc.QRCodeStyling=t():e.QRCodeStyling=t()})(Pc,function(){return(()=>{var e={192:(o,i)=>{var a,s,l=function(){var c=function(A,b){var u=A,m=V[b],y=null,x=0,p=null,E=[],q={},U=function(Z,J){y=function(Q){for(var fe=new Array(Q),te=0;te<Q;te+=1){fe[te]=new Array(Q);for(var xe=0;xe<Q;xe+=1)fe[te][xe]=null}return fe}(x=4*u+17),S(0,0),S(x-7,0),S(0,x-7),de(),W(),ee(Z,J),u>=7&&P(Z),p==null&&(p=ce(u,m,E)),ie(p,J)},S=function(Z,J){for(var Q=-1;Q<=7;Q+=1)if(!(Z+Q<=-1||x<=Z+Q))for(var fe=-1;fe<=7;fe+=1)J+fe<=-1||x<=J+fe||(y[Z+Q][J+fe]=0<=Q&&Q<=6&&(fe==0||fe==6)||0<=fe&&fe<=6&&(Q==0||Q==6)||2<=Q&&Q<=4&&2<=fe&&fe<=4)},W=function(){for(var Z=8;Z<x-8;Z+=1)y[Z][6]==null&&(y[Z][6]=Z%2==0);for(var J=8;J<x-8;J+=1)y[6][J]==null&&(y[6][J]=J%2==0)},de=function(){for(var Z=j.getPatternPosition(u),J=0;J<Z.length;J+=1)for(var Q=0;Q<Z.length;Q+=1){var fe=Z[J],te=Z[Q];if(y[fe][te]==null)for(var xe=-2;xe<=2;xe+=1)for(var Ve=-2;Ve<=2;Ve+=1)y[fe+xe][te+Ve]=xe==-2||xe==2||Ve==-2||Ve==2||xe==0&&Ve==0}},P=function(Z){for(var J=j.getBCHTypeNumber(u),Q=0;Q<18;Q+=1){var fe=!Z&&(J>>Q&1)==1;y[Math.floor(Q/3)][Q%3+x-8-3]=fe}for(Q=0;Q<18;Q+=1)fe=!Z&&(J>>Q&1)==1,y[Q%3+x-8-3][Math.floor(Q/3)]=fe},ee=function(Z,J){for(var Q=m<<3|J,fe=j.getBCHTypeInfo(Q),te=0;te<15;te+=1){var xe=!Z&&(fe>>te&1)==1;te<6?y[te][8]=xe:te<8?y[te+1][8]=xe:y[x-15+te][8]=xe}for(te=0;te<15;te+=1)xe=!Z&&(fe>>te&1)==1,te<8?y[8][x-te-1]=xe:te<9?y[8][15-te-1+1]=xe:y[8][15-te-1]=xe;y[x-8][8]=!Z},ie=function(Z,J){for(var Q=-1,fe=x-1,te=7,xe=0,Ve=j.getMaskFunction(J),Me=x-1;Me>0;Me-=2)for(Me==6&&(Me-=1);;){for(var je=0;je<2;je+=1)if(y[fe][Me-je]==null){var We=!1;xe<Z.length&&(We=(Z[xe]>>>te&1)==1),Ve(fe,Me-je)&&(We=!We),y[fe][Me-je]=We,(te-=1)==-1&&(xe+=1,te=7)}if((fe+=Q)<0||x<=fe){fe-=Q,Q=-Q;break}}},ce=function(Z,J,Q){for(var fe=B.getRSBlocks(Z,J),te=K(),xe=0;xe<Q.length;xe+=1){var Ve=Q[xe];te.put(Ve.getMode(),4),te.put(Ve.getLength(),j.getLengthInBits(Ve.getMode(),Z)),Ve.write(te)}var Me=0;for(xe=0;xe<fe.length;xe+=1)Me+=fe[xe].dataCount;if(te.getLengthInBits()>8*Me)throw"code length overflow. ("+te.getLengthInBits()+">"+8*Me+")";for(te.getLengthInBits()+4<=8*Me&&te.put(0,4);te.getLengthInBits()%8!=0;)te.putBit(!1);for(;!(te.getLengthInBits()>=8*Me||(te.put(236,8),te.getLengthInBits()>=8*Me));)te.put(17,8);return function(je,We){for(var Y=0,M=0,F=0,N=new Array(We.length),$=new Array(We.length),z=0;z<We.length;z+=1){var H=We[z].dataCount,ne=We[z].totalCount-H;M=Math.max(M,H),F=Math.max(F,ne),N[z]=new Array(H);for(var re=0;re<N[z].length;re+=1)N[z][re]=255&je.getBuffer()[re+Y];Y+=H;var se=j.getErrorCorrectPolynomial(ne),le=D(N[z],se.getLength()-1).mod(se);for($[z]=new Array(se.getLength()-1),re=0;re<$[z].length;re+=1){var me=re+le.getLength()-$[z].length;$[z][re]=me>=0?le.getAt(me):0}}var he=0;for(re=0;re<We.length;re+=1)he+=We[re].totalCount;var Ce=new Array(he),ke=0;for(re=0;re<M;re+=1)for(z=0;z<We.length;z+=1)re<N[z].length&&(Ce[ke]=N[z][re],ke+=1);for(re=0;re<F;re+=1)for(z=0;z<We.length;z+=1)re<$[z].length&&(Ce[ke]=$[z][re],ke+=1);return Ce}(te,fe)};q.addData=function(Z,J){var Q=null;switch(J=J||"Byte"){case"Numeric":Q=X(Z);break;case"Alphanumeric":Q=ue(Z);break;case"Byte":Q=ae(Z);break;case"Kanji":Q=ve(Z);break;default:throw"mode:"+J}E.push(Q),p=null},q.isDark=function(Z,J){if(Z<0||x<=Z||J<0||x<=J)throw Z+","+J;return y[Z][J]},q.getModuleCount=function(){return x},q.make=function(){if(u<1){for(var Z=1;Z<40;Z++){for(var J=B.getRSBlocks(Z,m),Q=K(),fe=0;fe<E.length;fe++){var te=E[fe];Q.put(te.getMode(),4),Q.put(te.getLength(),j.getLengthInBits(te.getMode(),Z)),te.write(Q)}var xe=0;for(fe=0;fe<J.length;fe++)xe+=J[fe].dataCount;if(Q.getLengthInBits()<=8*xe)break}u=Z}U(!1,function(){for(var Ve=0,Me=0,je=0;je<8;je+=1){U(!0,je);var We=j.getLostPoint(q);(je==0||Ve>We)&&(Ve=We,Me=je)}return Me}())},q.createTableTag=function(Z,J){Z=Z||2;var Q="";Q+='<table style="',Q+=" border-width: 0px; border-style: none;",Q+=" border-collapse: collapse;",Q+=" padding: 0px; margin: "+(J=J===void 0?4*Z:J)+"px;",Q+='">',Q+="<tbody>";for(var fe=0;fe<q.getModuleCount();fe+=1){Q+="<tr>";for(var te=0;te<q.getModuleCount();te+=1)Q+='<td style="',Q+=" border-width: 0px; border-style: none;",Q+=" border-collapse: collapse;",Q+=" padding: 0px; margin: 0px;",Q+=" width: "+Z+"px;",Q+=" height: "+Z+"px;",Q+=" background-color: ",Q+=q.isDark(fe,te)?"#000000":"#ffffff",Q+=";",Q+='"/>';Q+="</tr>"}return(Q+="</tbody>")+"</table>"},q.createSvgTag=function(Z,J,Q,fe){var te={};typeof arguments[0]=="object"&&(Z=(te=arguments[0]).cellSize,J=te.margin,Q=te.alt,fe=te.title),Z=Z||2,J=J===void 0?4*Z:J,(Q=typeof Q=="string"?{text:Q}:Q||{}).text=Q.text||null,Q.id=Q.text?Q.id||"qrcode-description":null,(fe=typeof fe=="string"?{text:fe}:fe||{}).text=fe.text||null,fe.id=fe.text?fe.id||"qrcode-title":null;var xe,Ve,Me,je,We=q.getModuleCount()*Z+2*J,Y="";for(je="l"+Z+",0 0,"+Z+" -"+Z+",0 0,-"+Z+"z ",Y+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Y+=te.scalable?"":' width="'+We+'px" height="'+We+'px"',Y+=' viewBox="0 0 '+We+" "+We+'" ',Y+=' preserveAspectRatio="xMinYMin meet"',Y+=fe.text||Q.text?' role="img" aria-labelledby="'+ge([fe.id,Q.id].join(" ").trim())+'"':"",Y+=">",Y+=fe.text?'<title id="'+ge(fe.id)+'">'+ge(fe.text)+"</title>":"",Y+=Q.text?'<description id="'+ge(Q.id)+'">'+ge(Q.text)+"</description>":"",Y+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Y+='<path d="',Ve=0;Ve<q.getModuleCount();Ve+=1)for(Me=Ve*Z+J,xe=0;xe<q.getModuleCount();xe+=1)q.isDark(Ve,xe)&&(Y+="M"+(xe*Z+J)+","+Me+je);return(Y+='" stroke="transparent" fill="black"/>')+"</svg>"},q.createDataURL=function(Z,J){Z=Z||2,J=J===void 0?4*Z:J;var Q=q.getModuleCount()*Z+2*J,fe=J,te=Q-J;return T(Q,Q,function(xe,Ve){if(fe<=xe&&xe<te&&fe<=Ve&&Ve<te){var Me=Math.floor((xe-fe)/Z),je=Math.floor((Ve-fe)/Z);return q.isDark(je,Me)?0:1}return 1})},q.createImgTag=function(Z,J,Q){Z=Z||2,J=J===void 0?4*Z:J;var fe=q.getModuleCount()*Z+2*J,te="";return te+="<img",te+=' src="',te+=q.createDataURL(Z,J),te+='"',te+=' width="',te+=fe,te+='"',te+=' height="',te+=fe,te+='"',Q&&(te+=' alt="',te+=ge(Q),te+='"'),te+"/>"};var ge=function(Z){for(var J="",Q=0;Q<Z.length;Q+=1){var fe=Z.charAt(Q);switch(fe){case"<":J+="&lt;";break;case">":J+="&gt;";break;case"&":J+="&amp;";break;case'"':J+="&quot;";break;default:J+=fe}}return J};return q.createASCII=function(Z,J){if((Z=Z||1)<2)return function(N){N=N===void 0?2:N;var $,z,H,ne,re,se=1*q.getModuleCount()+2*N,le=N,me=se-N,he={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Ce={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ke="";for($=0;$<se;$+=2){for(H=Math.floor(($-le)/1),ne=Math.floor(($+1-le)/1),z=0;z<se;z+=1)re="\u2588",le<=z&&z<me&&le<=$&&$<me&&q.isDark(H,Math.floor((z-le)/1))&&(re=" "),le<=z&&z<me&&le<=$+1&&$+1<me&&q.isDark(ne,Math.floor((z-le)/1))?re+=" ":re+="\u2588",ke+=N<1&&$+1>=me?Ce[re]:he[re];ke+=`
9
- `}return se%2&&N>0?ke.substring(0,ke.length-se-1)+Array(se+1).join("\u2580"):ke.substring(0,ke.length-1)}(J);Z-=1,J=J===void 0?2*Z:J;var Q,fe,te,xe,Ve=q.getModuleCount()*Z+2*J,Me=J,je=Ve-J,We=Array(Z+1).join("\u2588\u2588"),Y=Array(Z+1).join(" "),M="",F="";for(Q=0;Q<Ve;Q+=1){for(te=Math.floor((Q-Me)/Z),F="",fe=0;fe<Ve;fe+=1)xe=1,Me<=fe&&fe<je&&Me<=Q&&Q<je&&q.isDark(te,Math.floor((fe-Me)/Z))&&(xe=0),F+=xe?We:Y;for(te=0;te<Z;te+=1)M+=F+`
10
- `}return M.substring(0,M.length-1)},q.renderTo2dContext=function(Z,J){J=J||2;for(var Q=q.getModuleCount(),fe=0;fe<Q;fe++)for(var te=0;te<Q;te++)Z.fillStyle=q.isDark(fe,te)?"black":"white",Z.fillRect(fe*J,te*J,J,J)},q};c.stringToBytes=(c.stringToBytesFuncs={default:function(A){for(var b=[],u=0;u<A.length;u+=1){var m=A.charCodeAt(u);b.push(255&m)}return b}}).default,c.createStringToBytes=function(A,b){var u=function(){for(var y=w(A),x=function(){var W=y.read();if(W==-1)throw"eof";return W},p=0,E={};;){var q=y.read();if(q==-1)break;var U=x(),S=x()<<8|x();E[String.fromCharCode(q<<8|U)]=S,p+=1}if(p!=b)throw p+" != "+b;return E}(),m="?".charCodeAt(0);return function(y){for(var x=[],p=0;p<y.length;p+=1){var E=y.charCodeAt(p);if(E<128)x.push(E);else{var q=u[y.charAt(p)];typeof q=="number"?(255&q)==q?x.push(q):(x.push(q>>>8),x.push(255&q)):x.push(m)}}return x}};var g,_,k,R,I,V={L:1,M:0,Q:3,H:2},j=(g=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],_=1335,k=7973,I=function(A){for(var b=0;A!=0;)b+=1,A>>>=1;return b},(R={}).getBCHTypeInfo=function(A){for(var b=A<<10;I(b)-I(_)>=0;)b^=_<<I(b)-I(_);return 21522^(A<<10|b)},R.getBCHTypeNumber=function(A){for(var b=A<<12;I(b)-I(k)>=0;)b^=k<<I(b)-I(k);return A<<12|b},R.getPatternPosition=function(A){return g[A-1]},R.getMaskFunction=function(A){switch(A){case 0:return function(b,u){return(b+u)%2==0};case 1:return function(b,u){return b%2==0};case 2:return function(b,u){return u%3==0};case 3:return function(b,u){return(b+u)%3==0};case 4:return function(b,u){return(Math.floor(b/2)+Math.floor(u/3))%2==0};case 5:return function(b,u){return b*u%2+b*u%3==0};case 6:return function(b,u){return(b*u%2+b*u%3)%2==0};case 7:return function(b,u){return(b*u%3+(b+u)%2)%2==0};default:throw"bad maskPattern:"+A}},R.getErrorCorrectPolynomial=function(A){for(var b=D([1],0),u=0;u<A;u+=1)b=b.multiply(D([1,L.gexp(u)],0));return b},R.getLengthInBits=function(A,b){if(1<=b&&b<10)switch(A){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+A}else if(b<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+A}else{if(!(b<41))throw"type:"+b;switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+A}}},R.getLostPoint=function(A){for(var b=A.getModuleCount(),u=0,m=0;m<b;m+=1)for(var y=0;y<b;y+=1){for(var x=0,p=A.isDark(m,y),E=-1;E<=1;E+=1)if(!(m+E<0||b<=m+E))for(var q=-1;q<=1;q+=1)y+q<0||b<=y+q||E==0&&q==0||p==A.isDark(m+E,y+q)&&(x+=1);x>5&&(u+=3+x-5)}for(m=0;m<b-1;m+=1)for(y=0;y<b-1;y+=1){var U=0;A.isDark(m,y)&&(U+=1),A.isDark(m+1,y)&&(U+=1),A.isDark(m,y+1)&&(U+=1),A.isDark(m+1,y+1)&&(U+=1),U!=0&&U!=4||(u+=3)}for(m=0;m<b;m+=1)for(y=0;y<b-6;y+=1)A.isDark(m,y)&&!A.isDark(m,y+1)&&A.isDark(m,y+2)&&A.isDark(m,y+3)&&A.isDark(m,y+4)&&!A.isDark(m,y+5)&&A.isDark(m,y+6)&&(u+=40);for(y=0;y<b;y+=1)for(m=0;m<b-6;m+=1)A.isDark(m,y)&&!A.isDark(m+1,y)&&A.isDark(m+2,y)&&A.isDark(m+3,y)&&A.isDark(m+4,y)&&!A.isDark(m+5,y)&&A.isDark(m+6,y)&&(u+=40);var S=0;for(y=0;y<b;y+=1)for(m=0;m<b;m+=1)A.isDark(m,y)&&(S+=1);return u+Math.abs(100*S/b/b-50)/5*10},R),L=function(){for(var A=new Array(256),b=new Array(256),u=0;u<8;u+=1)A[u]=1<<u;for(u=8;u<256;u+=1)A[u]=A[u-4]^A[u-5]^A[u-6]^A[u-8];for(u=0;u<255;u+=1)b[A[u]]=u;return{glog:function(m){if(m<1)throw"glog("+m+")";return b[m]},gexp:function(m){for(;m<0;)m+=255;for(;m>=256;)m-=255;return A[m]}}}();function D(A,b){if(A.length===void 0)throw A.length+"/"+b;var u=function(){for(var y=0;y<A.length&&A[y]==0;)y+=1;for(var x=new Array(A.length-y+b),p=0;p<A.length-y;p+=1)x[p]=A[p+y];return x}(),m={getAt:function(y){return u[y]},getLength:function(){return u.length},multiply:function(y){for(var x=new Array(m.getLength()+y.getLength()-1),p=0;p<m.getLength();p+=1)for(var E=0;E<y.getLength();E+=1)x[p+E]^=L.gexp(L.glog(m.getAt(p))+L.glog(y.getAt(E)));return D(x,0)},mod:function(y){if(m.getLength()-y.getLength()<0)return m;for(var x=L.glog(m.getAt(0))-L.glog(y.getAt(0)),p=new Array(m.getLength()),E=0;E<m.getLength();E+=1)p[E]=m.getAt(E);for(E=0;E<y.getLength();E+=1)p[E]^=L.gexp(L.glog(y.getAt(E))+x);return D(p,0).mod(y)}};return m}var B=function(){var A=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],b=function(m,y){var x={};return x.totalCount=m,x.dataCount=y,x},u={getRSBlocks:function(m,y){var x=function(P,ee){switch(ee){case V.L:return A[4*(P-1)+0];case V.M:return A[4*(P-1)+1];case V.Q:return A[4*(P-1)+2];case V.H:return A[4*(P-1)+3];default:return}}(m,y);if(x===void 0)throw"bad rs block @ typeNumber:"+m+"/errorCorrectionLevel:"+y;for(var p=x.length/3,E=[],q=0;q<p;q+=1)for(var U=x[3*q+0],S=x[3*q+1],W=x[3*q+2],de=0;de<U;de+=1)E.push(b(S,W));return E}};return u}(),K=function(){var A=[],b=0,u={getBuffer:function(){return A},getAt:function(m){var y=Math.floor(m/8);return(A[y]>>>7-m%8&1)==1},put:function(m,y){for(var x=0;x<y;x+=1)u.putBit((m>>>y-x-1&1)==1)},getLengthInBits:function(){return b},putBit:function(m){var y=Math.floor(b/8);A.length<=y&&A.push(0),m&&(A[y]|=128>>>b%8),b+=1}};return u},X=function(A){var b=A,u={getMode:function(){return 1},getLength:function(x){return b.length},write:function(x){for(var p=b,E=0;E+2<p.length;)x.put(m(p.substring(E,E+3)),10),E+=3;E<p.length&&(p.length-E==1?x.put(m(p.substring(E,E+1)),4):p.length-E==2&&x.put(m(p.substring(E,E+2)),7))}},m=function(x){for(var p=0,E=0;E<x.length;E+=1)p=10*p+y(x.charAt(E));return p},y=function(x){if("0"<=x&&x<="9")return x.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+x};return u},ue=function(A){var b=A,u={getMode:function(){return 2},getLength:function(y){return b.length},write:function(y){for(var x=b,p=0;p+1<x.length;)y.put(45*m(x.charAt(p))+m(x.charAt(p+1)),11),p+=2;p<x.length&&y.put(m(x.charAt(p)),6)}},m=function(y){if("0"<=y&&y<="9")return y.charCodeAt(0)-"0".charCodeAt(0);if("A"<=y&&y<="Z")return y.charCodeAt(0)-"A".charCodeAt(0)+10;switch(y){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+y}};return u},ae=function(A){var b=c.stringToBytes(A);return{getMode:function(){return 4},getLength:function(u){return b.length},write:function(u){for(var m=0;m<b.length;m+=1)u.put(b[m],8)}}},ve=function(A){var b=c.stringToBytesFuncs.SJIS;if(!b)throw"sjis not supported.";(function(y,x){var p=b("\u53CB");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var u=b(A),m={getMode:function(){return 8},getLength:function(y){return~~(u.length/2)},write:function(y){for(var x=u,p=0;p+1<x.length;){var E=(255&x[p])<<8|255&x[p+1];if(33088<=E&&E<=40956)E-=33088;else{if(!(57408<=E&&E<=60351))throw"illegal char at "+(p+1)+"/"+E;E-=49472}E=192*(E>>>8&255)+(255&E),y.put(E,13),p+=2}if(p<x.length)throw"illegal char at "+(p+1)}};return m},G=function(){var A=[],b={writeByte:function(u){A.push(255&u)},writeShort:function(u){b.writeByte(u),b.writeByte(u>>>8)},writeBytes:function(u,m,y){m=m||0,y=y||u.length;for(var x=0;x<y;x+=1)b.writeByte(u[x+m])},writeString:function(u){for(var m=0;m<u.length;m+=1)b.writeByte(u.charCodeAt(m))},toByteArray:function(){return A},toString:function(){var u="";u+="[";for(var m=0;m<A.length;m+=1)m>0&&(u+=","),u+=A[m];return u+"]"}};return b},w=function(A){var b=A,u=0,m=0,y=0,x={read:function(){for(;y<8;){if(u>=b.length){if(y==0)return-1;throw"unexpected end of file./"+y}var E=b.charAt(u);if(u+=1,E=="=")return y=0,-1;E.match(/^\s$/)||(m=m<<6|p(E.charCodeAt(0)),y+=6)}var q=m>>>y-8&255;return y-=8,q}},p=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return x},T=function(A,b,u){for(var m=function(S,W){var de=S,P=W,ee=new Array(S*W),ie={setPixel:function(Z,J,Q){ee[J*de+Z]=Q},write:function(Z){Z.writeString("GIF87a"),Z.writeShort(de),Z.writeShort(P),Z.writeByte(128),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(0),Z.writeByte(255),Z.writeByte(255),Z.writeByte(255),Z.writeString(","),Z.writeShort(0),Z.writeShort(0),Z.writeShort(de),Z.writeShort(P),Z.writeByte(0);var J=ce(2);Z.writeByte(2);for(var Q=0;J.length-Q>255;)Z.writeByte(255),Z.writeBytes(J,Q,255),Q+=255;Z.writeByte(J.length-Q),Z.writeBytes(J,Q,J.length-Q),Z.writeByte(0),Z.writeString(";")}},ce=function(Z){for(var J=1<<Z,Q=1+(1<<Z),fe=Z+1,te=ge(),xe=0;xe<J;xe+=1)te.add(String.fromCharCode(xe));te.add(String.fromCharCode(J)),te.add(String.fromCharCode(Q));var Ve,Me,je,We=G(),Y=(Ve=We,Me=0,je=0,{write:function($,z){if($>>>z!=0)throw"length over";for(;Me+z>=8;)Ve.writeByte(255&($<<Me|je)),z-=8-Me,$>>>=8-Me,je=0,Me=0;je|=$<<Me,Me+=z},flush:function(){Me>0&&Ve.writeByte(je)}});Y.write(J,fe);var M=0,F=String.fromCharCode(ee[M]);for(M+=1;M<ee.length;){var N=String.fromCharCode(ee[M]);M+=1,te.contains(F+N)?F+=N:(Y.write(te.indexOf(F),fe),te.size()<4095&&(te.size()==1<<fe&&(fe+=1),te.add(F+N)),F=N)}return Y.write(te.indexOf(F),fe),Y.write(Q,fe),Y.flush(),We.toByteArray()},ge=function(){var Z={},J=0,Q={add:function(fe){if(Q.contains(fe))throw"dup key:"+fe;Z[fe]=J,J+=1},size:function(){return J},indexOf:function(fe){return Z[fe]},contains:function(fe){return Z[fe]!==void 0}};return Q};return ie}(A,b),y=0;y<b;y+=1)for(var x=0;x<A;x+=1)m.setPixel(x,y,u(x,y));var p=G();m.write(p);for(var E=function(){var S=0,W=0,de=0,P="",ee={},ie=function(ge){P+=String.fromCharCode(ce(63&ge))},ce=function(ge){if(!(ge<0)){if(ge<26)return 65+ge;if(ge<52)return ge-26+97;if(ge<62)return ge-52+48;if(ge==62)return 43;if(ge==63)return 47}throw"n:"+ge};return ee.writeByte=function(ge){for(S=S<<8|255&ge,W+=8,de+=1;W>=6;)ie(S>>>W-6),W-=6},ee.flush=function(){if(W>0&&(ie(S<<6-W),S=0,W=0),de%3!=0)for(var ge=3-de%3,Z=0;Z<ge;Z+=1)P+="="},ee.toString=function(){return P},ee}(),q=p.toByteArray(),U=0;U<q.length;U+=1)E.writeByte(q[U]);return E.flush(),"data:image/gif;base64,"+E};return c}();l.stringToBytesFuncs["UTF-8"]=function(c){return function(g){for(var _=[],k=0;k<g.length;k++){var R=g.charCodeAt(k);R<128?_.push(R):R<2048?_.push(192|R>>6,128|63&R):R<55296||R>=57344?_.push(224|R>>12,128|R>>6&63,128|63&R):(k++,R=65536+((1023&R)<<10|1023&g.charCodeAt(k)),_.push(240|R>>18,128|R>>12&63,128|R>>6&63,128|63&R))}return _}(c)},(s=typeof(a=function(){return l})=="function"?a.apply(i,[]):a)===void 0||(o.exports=s)}},t={};function r(o){var i=t[o];if(i!==void 0)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=o=>{var i=o&&o.__esModule?()=>o.default:()=>o;return r.d(i,{a:i}),i},r.d=(o,i)=>{for(var a in i)r.o(i,a)&&!r.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},r.o=(o,i)=>Object.prototype.hasOwnProperty.call(o,i);var n={};return(()=>{"use strict";r.d(n,{default:()=>We});var o=function(){return o=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},o.apply(this,arguments)},i=function(Y,M,F){if(F||arguments.length===2)for(var N,$=0,z=M.length;$<z;$++)!N&&$ in M||(N||(N=Array.prototype.slice.call(M,0,$)),N[$]=M[$]);return Y.concat(N||Array.prototype.slice.call(M))},a=function(Y){return!!Y&&typeof Y=="object"&&!Array.isArray(Y)};function s(Y){for(var M=[],F=1;F<arguments.length;F++)M[F-1]=arguments[F];if(!M.length)return Y;var N=M.shift();return N!==void 0&&a(Y)&&a(N)?(Y=o({},Y),Object.keys(N).forEach(function($){var z=Y[$],H=N[$];Array.isArray(z)&&Array.isArray(H)?Y[$]=H:a(z)&&a(H)?Y[$]=s(Object.assign({},z),H):Y[$]=H}),s.apply(void 0,i([Y],M,!1))):Y}function l(Y,M){var F=document.createElement("a");F.download=M,F.href=Y,document.body.appendChild(F),F.click(),document.body.removeChild(F)}function c(Y){var M=Y.originalHeight,F=Y.originalWidth,N=Y.maxHiddenDots,$=Y.maxHiddenAxisDots,z=Y.dotSize,H={x:0,y:0},ne={x:0,y:0};if(M<=0||F<=0||N<=0||z<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var re=M/F;return H.x=Math.floor(Math.sqrt(N/re)),H.x<=0&&(H.x=1),$&&$<H.x&&(H.x=$),H.x%2==0&&H.x--,ne.x=H.x*z,H.y=1+2*Math.ceil((H.x*re-1)/2),ne.y=Math.round(ne.x*re),(H.y*H.x>N||$&&$<H.y)&&($&&$<H.y?(H.y=$,H.y%2==0&&H.x--):H.y-=2,ne.y=H.y*z,H.x=1+2*Math.ceil((H.y/re-1)/2),ne.x=Math.round(ne.y/re)),{height:ne.y,width:ne.x,hideYDots:H.y,hideXDots:H.x}}let g={L:.07,M:.15,Q:.25,H:.3},_="dots",k="rounded",R="classy",I="classy-rounded",V="extra-rounded";var j=function(){return j=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},j.apply(this,arguments)},L=function(){function Y(M){var F=M.context,N=M.type;this._context=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){var z,H=this._context;switch(this._type){case _:z=this._drawDot;break;case R:z=this._drawClassy;break;case I:z=this._drawClassyRounded;break;case k:z=this._drawRounded;break;case V:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:M,y:F,size:N,context:H,getNeighbor:$})},Y.prototype._rotateFigure=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation,ne=H===void 0?0:H,re=M.draw,se=F+$/2,le=N+$/2;z.translate(se,le),ne&&z.rotate(ne),re(),z.closePath(),ne&&z.rotate(-ne),z.translate(-se,-le)},Y.prototype._basicDot=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(0,0,F/2,0,2*Math.PI)}}))},Y.prototype._basicSquare=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.rect(-F/2,-F/2,F,F)}}))},Y.prototype._basicSideRounded=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(0,0,F/2,-Math.PI/2,Math.PI/2),N.lineTo(-F/2,F/2),N.lineTo(-F/2,-F/2),N.lineTo(0,-F/2)}}))},Y.prototype._basicCornerRounded=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(0,0,F/2,-Math.PI/2,0),N.lineTo(F/2,F/2),N.lineTo(-F/2,F/2),N.lineTo(-F/2,-F/2),N.lineTo(0,-F/2)}}))},Y.prototype._basicCornerExtraRounded=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(-F/2,F/2,F,-Math.PI/2,0),N.lineTo(-F/2,F/2),N.lineTo(-F/2,-F/2)}}))},Y.prototype._basicCornersRounded=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(0,0,F/2,-Math.PI/2,0),N.lineTo(F/2,F/2),N.lineTo(0,F/2),N.arc(0,0,F/2,Math.PI/2,Math.PI),N.lineTo(-F/2,-F/2),N.lineTo(0,-F/2)}}))},Y.prototype._basicCornersExtraRounded=function(M){var F=M.size,N=M.context;this._rotateFigure(j(j({},M),{draw:function(){N.arc(-F/2,F/2,F,-Math.PI/2,0),N.arc(F/2,-F/2,F,Math.PI/2,Math.PI)}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size,z=M.context;this._basicDot({x:F,y:N,size:$,context:z,rotation:0})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size,z=M.context;this._basicSquare({x:F,y:N,size:$,context:z,rotation:0})},Y.prototype._drawRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.getNeighbor,ne=H?+H(-1,0):0,re=H?+H(1,0):0,se=H?+H(0,-1):0,le=H?+H(0,1):0,me=ne+re+se+le;if(me!==0)if(me>2||ne&&re||se&&le)this._basicSquare({x:F,y:N,size:$,context:z,rotation:0});else{if(me===2){var he=0;return ne&&se?he=Math.PI/2:se&&re?he=Math.PI:re&&le&&(he=-Math.PI/2),void this._basicCornerRounded({x:F,y:N,size:$,context:z,rotation:he})}if(me===1)return he=0,se?he=Math.PI/2:re?he=Math.PI:le&&(he=-Math.PI/2),void this._basicSideRounded({x:F,y:N,size:$,context:z,rotation:he})}else this._basicDot({x:F,y:N,size:$,context:z,rotation:0})},Y.prototype._drawExtraRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.getNeighbor,ne=H?+H(-1,0):0,re=H?+H(1,0):0,se=H?+H(0,-1):0,le=H?+H(0,1):0,me=ne+re+se+le;if(me!==0)if(me>2||ne&&re||se&&le)this._basicSquare({x:F,y:N,size:$,context:z,rotation:0});else{if(me===2){var he=0;return ne&&se?he=Math.PI/2:se&&re?he=Math.PI:re&&le&&(he=-Math.PI/2),void this._basicCornerExtraRounded({x:F,y:N,size:$,context:z,rotation:he})}if(me===1)return he=0,se?he=Math.PI/2:re?he=Math.PI:le&&(he=-Math.PI/2),void this._basicSideRounded({x:F,y:N,size:$,context:z,rotation:he})}else this._basicDot({x:F,y:N,size:$,context:z,rotation:0})},Y.prototype._drawClassy=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.getNeighbor,ne=H?+H(-1,0):0,re=H?+H(1,0):0,se=H?+H(0,-1):0,le=H?+H(0,1):0;ne+re+se+le!==0?ne||se?re||le?this._basicSquare({x:F,y:N,size:$,context:z,rotation:0}):this._basicCornerRounded({x:F,y:N,size:$,context:z,rotation:Math.PI/2}):this._basicCornerRounded({x:F,y:N,size:$,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:N,size:$,context:z,rotation:Math.PI/2})},Y.prototype._drawClassyRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.getNeighbor,ne=H?+H(-1,0):0,re=H?+H(1,0):0,se=H?+H(0,-1):0,le=H?+H(0,1):0;ne+re+se+le!==0?ne||se?re||le?this._basicSquare({x:F,y:N,size:$,context:z,rotation:0}):this._basicCornerExtraRounded({x:F,y:N,size:$,context:z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:F,y:N,size:$,context:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:N,size:$,context:z,rotation:Math.PI/2})},Y}();let D=L,B="square",K="extra-rounded";var X=function(){return X=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},X.apply(this,arguments)},ue=function(){function Y(M){var F=M.context,N=M.type;this._context=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){var z,H=this._context;switch(this._type){case B:z=this._drawSquare;break;case K:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:M,y:F,size:N,context:H,rotation:$})},Y.prototype._rotateFigure=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation,ne=H===void 0?0:H,re=M.draw,se=F+$/2,le=N+$/2;z.translate(se,le),ne&&z.rotate(ne),re(),z.closePath(),ne&&z.rotate(-ne),z.translate(-se,-le)},Y.prototype._basicDot=function(M){var F=M.size,N=M.context,$=F/7;this._rotateFigure(X(X({},M),{draw:function(){N.arc(0,0,F/2,0,2*Math.PI),N.arc(0,0,F/2-$,0,2*Math.PI)}}))},Y.prototype._basicSquare=function(M){var F=M.size,N=M.context,$=F/7;this._rotateFigure(X(X({},M),{draw:function(){N.rect(-F/2,-F/2,F,F),N.rect(-F/2+$,-F/2+$,F-2*$,F-2*$)}}))},Y.prototype._basicExtraRounded=function(M){var F=M.size,N=M.context,$=F/7;this._rotateFigure(X(X({},M),{draw:function(){N.arc(-$,-$,2.5*$,Math.PI,-Math.PI/2),N.lineTo($,-3.5*$),N.arc($,-$,2.5*$,-Math.PI/2,0),N.lineTo(3.5*$,-$),N.arc($,$,2.5*$,0,Math.PI/2),N.lineTo(-$,3.5*$),N.arc(-$,$,2.5*$,Math.PI/2,Math.PI),N.lineTo(-3.5*$,-$),N.arc(-$,-$,1.5*$,Math.PI,-Math.PI/2),N.lineTo($,-2.5*$),N.arc($,-$,1.5*$,-Math.PI/2,0),N.lineTo(2.5*$,-$),N.arc($,$,1.5*$,0,Math.PI/2),N.lineTo(-$,2.5*$),N.arc(-$,$,1.5*$,Math.PI/2,Math.PI),N.lineTo(-2.5*$,-$)}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation;this._basicDot({x:F,y:N,size:$,context:z,rotation:H})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation;this._basicSquare({x:F,y:N,size:$,context:z,rotation:H})},Y.prototype._drawExtraRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation;this._basicExtraRounded({x:F,y:N,size:$,context:z,rotation:H})},Y}();let ae=ue,ve="square";var G=function(){return G=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},G.apply(this,arguments)},w=function(){function Y(M){var F=M.context,N=M.type;this._context=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){var z=this._context;(this._type===ve?this._drawSquare:this._drawDot).call(this,{x:M,y:F,size:N,context:z,rotation:$})},Y.prototype._rotateFigure=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation,ne=H===void 0?0:H,re=M.draw,se=F+$/2,le=N+$/2;z.translate(se,le),ne&&z.rotate(ne),re(),z.closePath(),ne&&z.rotate(-ne),z.translate(-se,-le)},Y.prototype._basicDot=function(M){var F=M.size,N=M.context;this._rotateFigure(G(G({},M),{draw:function(){N.arc(0,0,F/2,0,2*Math.PI)}}))},Y.prototype._basicSquare=function(M){var F=M.size,N=M.context;this._rotateFigure(G(G({},M),{draw:function(){N.rect(-F/2,-F/2,F,F)}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation;this._basicDot({x:F,y:N,size:$,context:z,rotation:H})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size,z=M.context,H=M.rotation;this._basicSquare({x:F,y:N,size:$,context:z,rotation:H})},Y}();let T=w,A="radial";var b=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],u=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let m=function(){function Y(M){this._canvas=document.createElement("canvas"),this._canvas.width=M.width,this._canvas.height=M.height,this._options=M}return Object.defineProperty(Y.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),Y.prototype.getCanvas=function(){return this._canvas},Y.prototype.clear=function(){var M=this.context;M&&M.clearRect(0,0,this._canvas.width,this._canvas.height)},Y.prototype.drawQR=function(M){return F=this,N=void 0,z=function(){var H,ne,re,se,le,me,he,Ce,ke,De=this;return function(Le,Ie){var _e,Te,ye,Re,Pe={label:0,sent:function(){if(1&ye[0])throw ye[1];return ye[1]},trys:[],ops:[]};return Re={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Re[Symbol.iterator]=function(){return this}),Re;function Ke(Fe){return function(tt){return function(be){if(_e)throw new TypeError("Generator is already executing.");for(;Pe;)try{if(_e=1,Te&&(ye=2&be[0]?Te.return:be[0]?Te.throw||((ye=Te.return)&&ye.call(Te),0):Te.next)&&!(ye=ye.call(Te,be[1])).done)return ye;switch(Te=0,ye&&(be=[2&be[0],ye.value]),be[0]){case 0:case 1:ye=be;break;case 4:return Pe.label++,{value:be[1],done:!1};case 5:Pe.label++,Te=be[1],be=[0];continue;case 7:be=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!((ye=(ye=Pe.trys).length>0&&ye[ye.length-1])||be[0]!==6&&be[0]!==2)){Pe=0;continue}if(be[0]===3&&(!ye||be[1]>ye[0]&&be[1]<ye[3])){Pe.label=be[1];break}if(be[0]===6&&Pe.label<ye[1]){Pe.label=ye[1],ye=be;break}if(ye&&Pe.label<ye[2]){Pe.label=ye[2],Pe.ops.push(be);break}ye[2]&&Pe.ops.pop(),Pe.trys.pop();continue}be=Ie.call(Le,Pe)}catch(Ue){be=[6,Ue],Te=0}finally{_e=ye=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([Fe,tt])}}}(this,function(Le){switch(Le.label){case 0:return H=M.getModuleCount(),ne=Math.min(this._options.width,this._options.height)-2*this._options.margin,re=Math.floor(ne/H),se={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=M,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Le.sent(),!this._image)return[2];le=this._options,me=le.imageOptions,he=le.qrOptions,Ce=me.imageSize*g[he.errorCorrectionLevel],ke=Math.floor(Ce*H*H),se=c({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:H-14,dotSize:re}),Le.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ie,_e){var Te,ye,Re,Pe,Ke,Fe;return!(De._options.imageOptions.hideBackgroundDots&&Ie>=(H-se.hideXDots)/2&&Ie<(H+se.hideXDots)/2&&_e>=(H-se.hideYDots)/2&&_e<(H+se.hideYDots)/2||((Te=b[Ie])===null||Te===void 0?void 0:Te[_e])||((ye=b[Ie-H+7])===null||ye===void 0?void 0:ye[_e])||((Re=b[Ie])===null||Re===void 0?void 0:Re[_e-H+7])||((Pe=u[Ie])===null||Pe===void 0?void 0:Pe[_e])||((Ke=u[Ie-H+7])===null||Ke===void 0?void 0:Ke[_e])||((Fe=u[Ie])===null||Fe===void 0?void 0:Fe[_e-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:se.width,height:se.height,count:H,dotSize:re}),[2]}})},new(($=void 0)||($=Promise))(function(H,ne){function re(me){try{le(z.next(me))}catch(he){ne(he)}}function se(me){try{le(z.throw(me))}catch(he){ne(he)}}function le(me){var he;me.done?H(me.value):(he=me.value,he instanceof $?he:new $(function(Ce){Ce(he)})).then(re,se)}le((z=z.apply(F,N||[])).next())});var F,N,$,z},Y.prototype.drawBackground=function(){var M=this.context,F=this._options;if(M){if(F.backgroundOptions.gradient){var N=F.backgroundOptions.gradient,$=this._createGradient({context:M,options:N,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});N.colorStops.forEach(function(z){var H=z.offset,ne=z.color;$.addColorStop(H,ne)}),M.fillStyle=$}else F.backgroundOptions.color&&(M.fillStyle=F.backgroundOptions.color);M.fillRect(0,0,this._canvas.width,this._canvas.height)}},Y.prototype.drawDots=function(M){var F=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var $=this._options,z=this._qr.getModuleCount();if(z>$.width||z>$.height)throw"The canvas is too small.";var H=Math.min($.width,$.height)-2*$.margin,ne=Math.floor(H/z),re=Math.floor(($.width-z*ne)/2),se=Math.floor(($.height-z*ne)/2),le=new D({context:N,type:$.dotsOptions.type});N.beginPath();for(var me=function(Le){for(var Ie=function(Te){return M&&!M(Le,Te)?"continue":he._qr.isDark(Le,Te)?void le.draw(re+Le*ne,se+Te*ne,ne,function(ye,Re){return!(Le+ye<0||Te+Re<0||Le+ye>=z||Te+Re>=z)&&!(M&&!M(Le+ye,Te+Re))&&!!F._qr&&F._qr.isDark(Le+ye,Te+Re)}):"continue"},_e=0;_e<z;_e++)Ie(_e)},he=this,Ce=0;Ce<z;Ce++)me(Ce);if($.dotsOptions.gradient){var ke=$.dotsOptions.gradient,De=this._createGradient({context:N,options:ke,additionalRotation:0,x:re,y:se,size:z*ne});ke.colorStops.forEach(function(Le){var Ie=Le.offset,_e=Le.color;De.addColorStop(Ie,_e)}),N.fillStyle=N.strokeStyle=De}else $.dotsOptions.color&&(N.fillStyle=N.strokeStyle=$.dotsOptions.color);N.fill("evenodd")},Y.prototype.drawCorners=function(M){var F=this;if(!this._qr)throw"QR code is not defined";var N=this.context;if(!N)throw"QR code is not defined";var $=this._options,z=this._qr.getModuleCount(),H=Math.min($.width,$.height)-2*$.margin,ne=Math.floor(H/z),re=7*ne,se=3*ne,le=Math.floor(($.width-z*ne)/2),me=Math.floor(($.height-z*ne)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(he){var Ce,ke,De,Le,Ie,_e,Te,ye,Re,Pe,Ke=he[0],Fe=he[1],tt=he[2];if(!M||M(Ke,Fe)){var be=le+Ke*ne*(z-7),Ue=me+Fe*ne*(z-7);if(!((Ce=$.cornersSquareOptions)===null||Ce===void 0)&&Ce.type){var ct=new ae({context:N,type:(ke=$.cornersSquareOptions)===null||ke===void 0?void 0:ke.type});N.beginPath(),ct.draw(be,Ue,re,tt)}else{var it=new D({context:N,type:$.dotsOptions.type});N.beginPath();for(var Ye=function(Ze){for(var Je=function(at){if(!(!((De=b[Ze])===null||De===void 0)&&De[at]))return"continue";it.draw(be+Ze*ne,Ue+at*ne,ne,function(sr,st){var dt;return!!(!((dt=b[Ze+sr])===null||dt===void 0)&&dt[at+st])})},$e=0;$e<b[Ze].length;$e++)Je($e)},Xe=0;Xe<b.length;Xe++)Ye(Xe)}if(!((Le=$.cornersSquareOptions)===null||Le===void 0)&&Le.gradient){var pt=$.cornersSquareOptions.gradient,qe=F._createGradient({context:N,options:pt,additionalRotation:tt,x:be,y:Ue,size:re});pt.colorStops.forEach(function(Ze){var Je=Ze.offset,$e=Ze.color;qe.addColorStop(Je,$e)}),N.fillStyle=N.strokeStyle=qe}else!((Ie=$.cornersSquareOptions)===null||Ie===void 0)&&Ie.color&&(N.fillStyle=N.strokeStyle=$.cornersSquareOptions.color);if(N.fill("evenodd"),(_e=$.cornersDotOptions)===null||_e===void 0?void 0:_e.type){var wt=new T({context:N,type:(Te=$.cornersDotOptions)===null||Te===void 0?void 0:Te.type});N.beginPath(),wt.draw(be+2*ne,Ue+2*ne,se,tt)}else{it=new D({context:N,type:$.dotsOptions.type}),N.beginPath();var Mt=function(Ze){for(var Je=function(at){if(!(!((ye=u[Ze])===null||ye===void 0)&&ye[at]))return"continue";it.draw(be+Ze*ne,Ue+at*ne,ne,function(sr,st){var dt;return!!(!((dt=u[Ze+sr])===null||dt===void 0)&&dt[at+st])})},$e=0;$e<u[Ze].length;$e++)Je($e)};for(Xe=0;Xe<u.length;Xe++)Mt(Xe)}if(!((Re=$.cornersDotOptions)===null||Re===void 0)&&Re.gradient){pt=$.cornersDotOptions.gradient;var He=F._createGradient({context:N,options:pt,additionalRotation:tt,x:be+2*ne,y:Ue+2*ne,size:se});pt.colorStops.forEach(function(Ze){var Je=Ze.offset,$e=Ze.color;He.addColorStop(Je,$e)}),N.fillStyle=N.strokeStyle=He}else!((Pe=$.cornersDotOptions)===null||Pe===void 0)&&Pe.color&&(N.fillStyle=N.strokeStyle=$.cornersDotOptions.color);N.fill("evenodd")}})},Y.prototype.loadImage=function(){var M=this;return new Promise(function(F,N){var $=M._options,z=new Image;if(!$.image)return N("Image is not defined");typeof $.imageOptions.crossOrigin=="string"&&(z.crossOrigin=$.imageOptions.crossOrigin),M._image=z,z.onload=function(){F()},z.src=$.image})},Y.prototype.drawImage=function(M){var F=M.width,N=M.height,$=M.count,z=M.dotSize,H=this.context;if(!H)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var ne=this._options,re=Math.floor((ne.width-$*z)/2),se=Math.floor((ne.height-$*z)/2),le=re+ne.imageOptions.margin+($*z-F)/2,me=se+ne.imageOptions.margin+($*z-N)/2,he=F-2*ne.imageOptions.margin,Ce=N-2*ne.imageOptions.margin;H.drawImage(this._image,le,me,he<0?0:he,Ce<0?0:Ce)},Y.prototype._createGradient=function(M){var F,N=M.context,$=M.options,z=M.additionalRotation,H=M.x,ne=M.y,re=M.size;if($.type===A)F=N.createRadialGradient(H+re/2,ne+re/2,0,H+re/2,ne+re/2,re/2);else{var se=(($.rotation||0)+z)%(2*Math.PI),le=(se+2*Math.PI)%(2*Math.PI),me=H+re/2,he=ne+re/2,Ce=H+re/2,ke=ne+re/2;le>=0&&le<=.25*Math.PI||le>1.75*Math.PI&&le<=2*Math.PI?(me-=re/2,he-=re/2*Math.tan(se),Ce+=re/2,ke+=re/2*Math.tan(se)):le>.25*Math.PI&&le<=.75*Math.PI?(he-=re/2,me-=re/2/Math.tan(se),ke+=re/2,Ce+=re/2/Math.tan(se)):le>.75*Math.PI&&le<=1.25*Math.PI?(me+=re/2,he+=re/2*Math.tan(se),Ce-=re/2,ke-=re/2*Math.tan(se)):le>1.25*Math.PI&&le<=1.75*Math.PI&&(he+=re/2,me+=re/2/Math.tan(se),ke-=re/2,Ce-=re/2/Math.tan(se)),F=N.createLinearGradient(Math.round(me),Math.round(he),Math.round(Ce),Math.round(ke))}return F},Y}();var y=function(){return y=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},y.apply(this,arguments)},x=function(){function Y(M){var F=M.svg,N=M.type;this._svg=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){var z;switch(this._type){case _:z=this._drawDot;break;case R:z=this._drawClassy;break;case I:z=this._drawClassyRounded;break;case k:z=this._drawRounded;break;case V:z=this._drawExtraRounded;break;default:z=this._drawSquare}z.call(this,{x:M,y:F,size:N,getNeighbor:$})},Y.prototype._rotateFigure=function(M){var F,N=M.x,$=M.y,z=M.size,H=M.rotation,ne=H===void 0?0:H,re=N+z/2,se=$+z/2;(0,M.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*ne/Math.PI,",").concat(re,",").concat(se,")"))},Y.prototype._basicDot=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),F._element.setAttribute("cx",String($+N/2)),F._element.setAttribute("cy",String(z+N/2)),F._element.setAttribute("r",String(N/2))}}))},Y.prototype._basicSquare=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),F._element.setAttribute("x",String($)),F._element.setAttribute("y",String(z)),F._element.setAttribute("width",String(N)),F._element.setAttribute("height",String(N))}}))},Y.prototype._basicSideRounded=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat($," ").concat(z)+"v ".concat(N)+"h ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, 0 ").concat(-N))}}))},Y.prototype._basicCornerRounded=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat($," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},Y.prototype._basicCornerExtraRounded=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat($," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"a ".concat(N," ").concat(N,", 0, 0, 0, ").concat(-N," ").concat(-N))}}))},Y.prototype._basicCornersRounded=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(y(y({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("d","M ".concat($," ").concat(z)+"v ".concat(N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(N/2," ").concat(N/2)+"h ".concat(N/2)+"v ".concat(-N/2)+"a ".concat(N/2," ").concat(N/2,", 0, 0, 0, ").concat(-N/2," ").concat(-N/2))}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size;this._basicDot({x:F,y:N,size:$,rotation:0})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size;this._basicSquare({x:F,y:N,size:$,rotation:0})},Y.prototype._drawRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.getNeighbor,H=z?+z(-1,0):0,ne=z?+z(1,0):0,re=z?+z(0,-1):0,se=z?+z(0,1):0,le=H+ne+re+se;if(le!==0)if(le>2||H&&ne||re&&se)this._basicSquare({x:F,y:N,size:$,rotation:0});else{if(le===2){var me=0;return H&&re?me=Math.PI/2:re&&ne?me=Math.PI:ne&&se&&(me=-Math.PI/2),void this._basicCornerRounded({x:F,y:N,size:$,rotation:me})}if(le===1)return me=0,re?me=Math.PI/2:ne?me=Math.PI:se&&(me=-Math.PI/2),void this._basicSideRounded({x:F,y:N,size:$,rotation:me})}else this._basicDot({x:F,y:N,size:$,rotation:0})},Y.prototype._drawExtraRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.getNeighbor,H=z?+z(-1,0):0,ne=z?+z(1,0):0,re=z?+z(0,-1):0,se=z?+z(0,1):0,le=H+ne+re+se;if(le!==0)if(le>2||H&&ne||re&&se)this._basicSquare({x:F,y:N,size:$,rotation:0});else{if(le===2){var me=0;return H&&re?me=Math.PI/2:re&&ne?me=Math.PI:ne&&se&&(me=-Math.PI/2),void this._basicCornerExtraRounded({x:F,y:N,size:$,rotation:me})}if(le===1)return me=0,re?me=Math.PI/2:ne?me=Math.PI:se&&(me=-Math.PI/2),void this._basicSideRounded({x:F,y:N,size:$,rotation:me})}else this._basicDot({x:F,y:N,size:$,rotation:0})},Y.prototype._drawClassy=function(M){var F=M.x,N=M.y,$=M.size,z=M.getNeighbor,H=z?+z(-1,0):0,ne=z?+z(1,0):0,re=z?+z(0,-1):0,se=z?+z(0,1):0;H+ne+re+se!==0?H||re?ne||se?this._basicSquare({x:F,y:N,size:$,rotation:0}):this._basicCornerRounded({x:F,y:N,size:$,rotation:Math.PI/2}):this._basicCornerRounded({x:F,y:N,size:$,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:N,size:$,rotation:Math.PI/2})},Y.prototype._drawClassyRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.getNeighbor,H=z?+z(-1,0):0,ne=z?+z(1,0):0,re=z?+z(0,-1):0,se=z?+z(0,1):0;H+ne+re+se!==0?H||re?ne||se?this._basicSquare({x:F,y:N,size:$,rotation:0}):this._basicCornerExtraRounded({x:F,y:N,size:$,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:F,y:N,size:$,rotation:-Math.PI/2}):this._basicCornersRounded({x:F,y:N,size:$,rotation:Math.PI/2})},Y}();let p=x;var E=function(){return E=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},E.apply(this,arguments)},q=function(){function Y(M){var F=M.svg,N=M.type;this._svg=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){var z;switch(this._type){case B:z=this._drawSquare;break;case K:z=this._drawExtraRounded;break;default:z=this._drawDot}z.call(this,{x:M,y:F,size:N,rotation:$})},Y.prototype._rotateFigure=function(M){var F,N=M.x,$=M.y,z=M.size,H=M.rotation,ne=H===void 0?0:H,re=N+z/2,se=$+z/2;(0,M.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*ne/Math.PI,",").concat(re,",").concat(se,")"))},Y.prototype._basicDot=function(M){var F=this,N=M.size,$=M.x,z=M.y,H=N/7;this._rotateFigure(E(E({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat($+N/2," ").concat(z)+"a ".concat(N/2," ").concat(N/2," 0 1 0 0.1 0")+"z"+"m 0 ".concat(H)+"a ".concat(N/2-H," ").concat(N/2-H," 0 1 1 -0.1 0")+"Z")}}))},Y.prototype._basicSquare=function(M){var F=this,N=M.size,$=M.x,z=M.y,H=N/7;this._rotateFigure(E(E({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat($," ").concat(z)+"v ".concat(N)+"h ".concat(N)+"v ".concat(-N)+"z"+"M ".concat($+H," ").concat(z+H)+"h ".concat(N-2*H)+"v ".concat(N-2*H)+"h ".concat(2*H-N)+"z")}}))},Y.prototype._basicExtraRounded=function(M){var F=this,N=M.size,$=M.x,z=M.y,H=N/7;this._rotateFigure(E(E({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","path"),F._element.setAttribute("clip-rule","evenodd"),F._element.setAttribute("d","M ".concat($," ").concat(z+2.5*H)+"v ".concat(2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*H," ").concat(2.5*H)+"h ".concat(2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*H," ").concat(2.5*-H)+"v ".concat(-2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*-H," ").concat(2.5*-H)+"h ".concat(-2*H)+"a ".concat(2.5*H," ").concat(2.5*H,", 0, 0, 0, ").concat(2.5*-H," ").concat(2.5*H)+"M ".concat($+2.5*H," ").concat(z+H)+"h ".concat(2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*H," ").concat(1.5*H)+"v ".concat(2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*-H," ").concat(1.5*H)+"h ".concat(-2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*-H," ").concat(1.5*-H)+"v ".concat(-2*H)+"a ".concat(1.5*H," ").concat(1.5*H,", 0, 0, 1, ").concat(1.5*H," ").concat(1.5*-H))}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size,z=M.rotation;this._basicDot({x:F,y:N,size:$,rotation:z})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size,z=M.rotation;this._basicSquare({x:F,y:N,size:$,rotation:z})},Y.prototype._drawExtraRounded=function(M){var F=M.x,N=M.y,$=M.size,z=M.rotation;this._basicExtraRounded({x:F,y:N,size:$,rotation:z})},Y}();let U=q;var S=function(){return S=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},S.apply(this,arguments)},W=function(){function Y(M){var F=M.svg,N=M.type;this._svg=F,this._type=N}return Y.prototype.draw=function(M,F,N,$){(this._type===ve?this._drawSquare:this._drawDot).call(this,{x:M,y:F,size:N,rotation:$})},Y.prototype._rotateFigure=function(M){var F,N=M.x,$=M.y,z=M.size,H=M.rotation,ne=H===void 0?0:H,re=N+z/2,se=$+z/2;(0,M.draw)(),(F=this._element)===null||F===void 0||F.setAttribute("transform","rotate(".concat(180*ne/Math.PI,",").concat(re,",").concat(se,")"))},Y.prototype._basicDot=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(S(S({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),F._element.setAttribute("cx",String($+N/2)),F._element.setAttribute("cy",String(z+N/2)),F._element.setAttribute("r",String(N/2))}}))},Y.prototype._basicSquare=function(M){var F=this,N=M.size,$=M.x,z=M.y;this._rotateFigure(S(S({},M),{draw:function(){F._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),F._element.setAttribute("x",String($)),F._element.setAttribute("y",String(z)),F._element.setAttribute("width",String(N)),F._element.setAttribute("height",String(N))}}))},Y.prototype._drawDot=function(M){var F=M.x,N=M.y,$=M.size,z=M.rotation;this._basicDot({x:F,y:N,size:$,rotation:z})},Y.prototype._drawSquare=function(M){var F=M.x,N=M.y,$=M.size,z=M.rotation;this._basicSquare({x:F,y:N,size:$,rotation:z})},Y}();let de=W;var P=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ee=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];let ie=function(){function Y(M){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(M.width)),this._element.setAttribute("height",String(M.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=M}return Object.defineProperty(Y.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),Y.prototype.getElement=function(){return this._element},Y.prototype.clear=function(){var M,F=this._element;this._element=F.cloneNode(!1),(M=F==null?void 0:F.parentNode)===null||M===void 0||M.replaceChild(this._element,F),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},Y.prototype.drawQR=function(M){return F=this,N=void 0,z=function(){var H,ne,re,se,le,me,he,Ce,ke,De=this;return function(Le,Ie){var _e,Te,ye,Re,Pe={label:0,sent:function(){if(1&ye[0])throw ye[1];return ye[1]},trys:[],ops:[]};return Re={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Re[Symbol.iterator]=function(){return this}),Re;function Ke(Fe){return function(tt){return function(be){if(_e)throw new TypeError("Generator is already executing.");for(;Pe;)try{if(_e=1,Te&&(ye=2&be[0]?Te.return:be[0]?Te.throw||((ye=Te.return)&&ye.call(Te),0):Te.next)&&!(ye=ye.call(Te,be[1])).done)return ye;switch(Te=0,ye&&(be=[2&be[0],ye.value]),be[0]){case 0:case 1:ye=be;break;case 4:return Pe.label++,{value:be[1],done:!1};case 5:Pe.label++,Te=be[1],be=[0];continue;case 7:be=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!((ye=(ye=Pe.trys).length>0&&ye[ye.length-1])||be[0]!==6&&be[0]!==2)){Pe=0;continue}if(be[0]===3&&(!ye||be[1]>ye[0]&&be[1]<ye[3])){Pe.label=be[1];break}if(be[0]===6&&Pe.label<ye[1]){Pe.label=ye[1],ye=be;break}if(ye&&Pe.label<ye[2]){Pe.label=ye[2],Pe.ops.push(be);break}ye[2]&&Pe.ops.pop(),Pe.trys.pop();continue}be=Ie.call(Le,Pe)}catch(Ue){be=[6,Ue],Te=0}finally{_e=ye=0}if(5&be[0])throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}([Fe,tt])}}}(this,function(Le){switch(Le.label){case 0:return H=M.getModuleCount(),ne=Math.min(this._options.width,this._options.height)-2*this._options.margin,re=ne/H,se={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=M,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(Le.sent(),!this._image)return[2];le=this._options,me=le.imageOptions,he=le.qrOptions,Ce=me.imageSize*g[he.errorCorrectionLevel],ke=Math.floor(Ce*H*H),se=c({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ke,maxHiddenAxisDots:H-14,dotSize:re}),Le.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Ie,_e){var Te,ye,Re,Pe,Ke,Fe;return!(De._options.imageOptions.hideBackgroundDots&&Ie>=(H-se.hideXDots)/2&&Ie<(H+se.hideXDots)/2&&_e>=(H-se.hideYDots)/2&&_e<(H+se.hideYDots)/2||((Te=P[Ie])===null||Te===void 0?void 0:Te[_e])||((ye=P[Ie-H+7])===null||ye===void 0?void 0:ye[_e])||((Re=P[Ie])===null||Re===void 0?void 0:Re[_e-H+7])||((Pe=ee[Ie])===null||Pe===void 0?void 0:Pe[_e])||((Ke=ee[Ie-H+7])===null||Ke===void 0?void 0:Ke[_e])||((Fe=ee[Ie])===null||Fe===void 0?void 0:Fe[_e-H+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:se.width,height:se.height,count:H,dotSize:re}),[2]}})},new(($=void 0)||($=Promise))(function(H,ne){function re(me){try{le(z.next(me))}catch(he){ne(he)}}function se(me){try{le(z.throw(me))}catch(he){ne(he)}}function le(me){var he;me.done?H(me.value):(he=me.value,he instanceof $?he:new $(function(Ce){Ce(he)})).then(re,se)}le((z=z.apply(F,N||[])).next())});var F,N,$,z},Y.prototype.drawBackground=function(){var M,F,N=this._element,$=this._options;if(N){var z=(M=$.backgroundOptions)===null||M===void 0?void 0:M.gradient,H=(F=$.backgroundOptions)===null||F===void 0?void 0:F.color;(z||H)&&this._createColor({options:z,color:H,additionalRotation:0,x:0,y:0,height:$.height,width:$.width,name:"background-color"})}},Y.prototype.drawDots=function(M){var F,N,$=this;if(!this._qr)throw"QR code is not defined";var z=this._options,H=this._qr.getModuleCount();if(H>z.width||H>z.height)throw"The canvas is too small.";var ne=(Math.min(z.width,z.height)-2*z.margin)/H,re=(z.width-H*ne)/2,se=(z.height-H*ne)/2,le=new p({svg:this._element,type:z.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._dotsClipPath.style.transformOrigin="center",this._dotsClipPath.style.transform="rotate(90deg) scale(1, -1)",this._defs.appendChild(this._dotsClipPath),this._createColor({options:(F=z.dotsOptions)===null||F===void 0?void 0:F.gradient,color:z.dotsOptions.color,additionalRotation:0,x:re,y:se,height:H*ne,width:H*ne,name:"dot-color"});for(var me=function(ke){for(var De=function(Ie){return M&&!M(ke,Ie)?"continue":!((N=he._qr)===null||N===void 0)&&N.isDark(ke,Ie)?(le.draw(re+ke*ne,se+Ie*ne,ne,function(_e,Te){return!(ke+_e<0||Ie+Te<0||ke+_e>=H||Ie+Te>=H)&&!(M&&!M(ke+_e,Ie+Te))&&!!$._qr&&$._qr.isDark(ke+_e,Ie+Te)}),void(le._element&&he._dotsClipPath&&he._dotsClipPath.appendChild(le._element))):"continue"},Le=0;Le<H;Le++)De(Le)},he=this,Ce=0;Ce<H;Ce++)me(Ce)},Y.prototype.drawCorners=function(){var M=this;if(!this._qr)throw"QR code is not defined";var F=this._element,N=this._options;if(!F)throw"Element code is not defined";var $=this._qr.getModuleCount(),z=(Math.min(N.width,N.height)-2*N.margin)/$,H=7*z,ne=3*z,re=(N.width-$*z)/2,se=(N.height-$*z)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(le){var me,he,Ce,ke,De,Le,Ie,_e,Te,ye,Re,Pe,Ke=le[0],Fe=le[1],tt=le[2],be=re+Ke*z*($-7),Ue=se+Fe*z*($-7),ct=M._dotsClipPath,it=M._dotsClipPath;if((((me=N.cornersSquareOptions)===null||me===void 0?void 0:me.gradient)||((he=N.cornersSquareOptions)===null||he===void 0?void 0:he.color))&&((ct=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-".concat(Ke,"-").concat(Fe)),M._defs.appendChild(ct),M._cornersSquareClipPath=M._cornersDotClipPath=it=ct,M._createColor({options:(Ce=N.cornersSquareOptions)===null||Ce===void 0?void 0:Ce.gradient,color:(ke=N.cornersSquareOptions)===null||ke===void 0?void 0:ke.color,additionalRotation:tt,x:be,y:Ue,height:H,width:H,name:"corners-square-color-".concat(Ke,"-").concat(Fe)})),(De=N.cornersSquareOptions)===null||De===void 0?void 0:De.type){var Ye=new U({svg:M._element,type:N.cornersSquareOptions.type});Ye.draw(be,Ue,H,tt),Ye._element&&ct&&ct.appendChild(Ye._element)}else for(var Xe=new p({svg:M._element,type:N.dotsOptions.type}),pt=function(He){for(var Ze=function($e){if(!(!((Le=P[He])===null||Le===void 0)&&Le[$e]))return"continue";Xe.draw(be+He*z,Ue+$e*z,z,function(at,sr){var st;return!!(!((st=P[He+at])===null||st===void 0)&&st[$e+sr])}),Xe._element&&ct&&ct.appendChild(Xe._element)},Je=0;Je<P[He].length;Je++)Ze(Je)},qe=0;qe<P.length;qe++)pt(qe);if((((Ie=N.cornersDotOptions)===null||Ie===void 0?void 0:Ie.gradient)||((_e=N.cornersDotOptions)===null||_e===void 0?void 0:_e.color))&&((it=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-".concat(Ke,"-").concat(Fe)),M._defs.appendChild(it),M._cornersDotClipPath=it,M._createColor({options:(Te=N.cornersDotOptions)===null||Te===void 0?void 0:Te.gradient,color:(ye=N.cornersDotOptions)===null||ye===void 0?void 0:ye.color,additionalRotation:tt,x:be+2*z,y:Ue+2*z,height:ne,width:ne,name:"corners-dot-color-".concat(Ke,"-").concat(Fe)})),(Re=N.cornersDotOptions)===null||Re===void 0?void 0:Re.type){var wt=new de({svg:M._element,type:N.cornersDotOptions.type});wt.draw(be+2*z,Ue+2*z,ne,tt),wt._element&&it&&it.appendChild(wt._element)}else{Xe=new p({svg:M._element,type:N.dotsOptions.type});var Mt=function(He){for(var Ze=function($e){if(!(!((Pe=ee[He])===null||Pe===void 0)&&Pe[$e]))return"continue";Xe.draw(be+He*z,Ue+$e*z,z,function(at,sr){var st;return!!(!((st=ee[He+at])===null||st===void 0)&&st[$e+sr])}),Xe._element&&it&&it.appendChild(Xe._element)},Je=0;Je<ee[He].length;Je++)Ze(Je)};for(qe=0;qe<ee.length;qe++)Mt(qe)}})},Y.prototype.loadImage=function(){var M=this;return new Promise(function(F,N){var $=M._options,z=new Image;if(!$.image)return N("Image is not defined");typeof $.imageOptions.crossOrigin=="string"&&(z.crossOrigin=$.imageOptions.crossOrigin),M._image=z,z.onload=function(){F()},z.src=$.image})},Y.prototype.drawImage=function(M){var F=M.width,N=M.height,$=M.count,z=M.dotSize,H=this._options,ne=(H.width-$*z)/2,re=(H.height-$*z)/2,se=ne+H.imageOptions.margin+($*z-F)/2,le=re+H.imageOptions.margin+($*z-N)/2,me=F-2*H.imageOptions.margin,he=N-2*H.imageOptions.margin,Ce=document.createElementNS("http://www.w3.org/2000/svg","image");Ce.setAttribute("href",H.image||""),Ce.setAttribute("x",String(se)),Ce.setAttribute("y",String(le)),Ce.setAttribute("width","".concat(me,"px")),Ce.setAttribute("height","".concat(he,"px")),this._element.appendChild(Ce)},Y.prototype._createColor=function(M){var F=M.options,N=M.color,$=M.additionalRotation,z=M.x,H=M.y,ne=M.height,re=M.width,se=M.name,le=re>ne?re:ne,me=document.createElementNS("http://www.w3.org/2000/svg","rect");if(me.setAttribute("x",String(z)),me.setAttribute("y",String(H)),me.setAttribute("height",String(ne)),me.setAttribute("width",String(re)),me.setAttribute("clip-path","url('#clip-path-".concat(se,"')")),F){var he;if(F.type===A)(he=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",se),he.setAttribute("gradientUnits","userSpaceOnUse"),he.setAttribute("fx",String(z+re/2)),he.setAttribute("fy",String(H+ne/2)),he.setAttribute("cx",String(z+re/2)),he.setAttribute("cy",String(H+ne/2)),he.setAttribute("r",String(le/2));else{var Ce=((F.rotation||0)+$)%(2*Math.PI),ke=(Ce+2*Math.PI)%(2*Math.PI),De=z+re/2,Le=H+ne/2,Ie=z+re/2,_e=H+ne/2;ke>=0&&ke<=.25*Math.PI||ke>1.75*Math.PI&&ke<=2*Math.PI?(De-=re/2,Le-=ne/2*Math.tan(Ce),Ie+=re/2,_e+=ne/2*Math.tan(Ce)):ke>.25*Math.PI&&ke<=.75*Math.PI?(Le-=ne/2,De-=re/2/Math.tan(Ce),_e+=ne/2,Ie+=re/2/Math.tan(Ce)):ke>.75*Math.PI&&ke<=1.25*Math.PI?(De+=re/2,Le+=ne/2*Math.tan(Ce),Ie-=re/2,_e-=ne/2*Math.tan(Ce)):ke>1.25*Math.PI&&ke<=1.75*Math.PI&&(Le+=ne/2,De+=re/2/Math.tan(Ce),_e-=ne/2,Ie-=re/2/Math.tan(Ce)),(he=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",se),he.setAttribute("gradientUnits","userSpaceOnUse"),he.setAttribute("x1",String(Math.round(De))),he.setAttribute("y1",String(Math.round(Le))),he.setAttribute("x2",String(Math.round(Ie))),he.setAttribute("y2",String(Math.round(_e)))}F.colorStops.forEach(function(Te){var ye=Te.offset,Re=Te.color,Pe=document.createElementNS("http://www.w3.org/2000/svg","stop");Pe.setAttribute("offset","".concat(100*ye,"%")),Pe.setAttribute("stop-color",Re),he.appendChild(Pe)}),me.setAttribute("fill","url('#".concat(se,"')")),this._defs.appendChild(he)}else N&&me.setAttribute("fill",N);this._element.appendChild(me)},Y}(),ce="canvas";for(var ge={},Z=0;Z<=40;Z++)ge[Z]=Z;let J={type:ce,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ge[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var Q=function(){return Q=Object.assign||function(Y){for(var M,F=1,N=arguments.length;F<N;F++)for(var $ in M=arguments[F])Object.prototype.hasOwnProperty.call(M,$)&&(Y[$]=M[$]);return Y},Q.apply(this,arguments)};function fe(Y){var M=Q({},Y);if(!M.colorStops||!M.colorStops.length)throw"Field 'colorStops' is required in gradient";return M.rotation?M.rotation=Number(M.rotation):M.rotation=0,M.colorStops=M.colorStops.map(function(F){return Q(Q({},F),{offset:Number(F.offset)})}),M}function te(Y){var M=Q({},Y);return M.width=Number(M.width),M.height=Number(M.height),M.margin=Number(M.margin),M.imageOptions=Q(Q({},M.imageOptions),{hideBackgroundDots:Boolean(M.imageOptions.hideBackgroundDots),imageSize:Number(M.imageOptions.imageSize),margin:Number(M.imageOptions.margin)}),M.margin>Math.min(M.width,M.height)&&(M.margin=Math.min(M.width,M.height)),M.dotsOptions=Q({},M.dotsOptions),M.dotsOptions.gradient&&(M.dotsOptions.gradient=fe(M.dotsOptions.gradient)),M.cornersSquareOptions&&(M.cornersSquareOptions=Q({},M.cornersSquareOptions),M.cornersSquareOptions.gradient&&(M.cornersSquareOptions.gradient=fe(M.cornersSquareOptions.gradient))),M.cornersDotOptions&&(M.cornersDotOptions=Q({},M.cornersDotOptions),M.cornersDotOptions.gradient&&(M.cornersDotOptions.gradient=fe(M.cornersDotOptions.gradient))),M.backgroundOptions&&(M.backgroundOptions=Q({},M.backgroundOptions),M.backgroundOptions.gradient&&(M.backgroundOptions.gradient=fe(M.backgroundOptions.gradient))),M}var xe=r(192),Ve=r.n(xe),Me=function(Y,M,F,N){return new(F||(F=Promise))(function($,z){function H(se){try{re(N.next(se))}catch(le){z(le)}}function ne(se){try{re(N.throw(se))}catch(le){z(le)}}function re(se){var le;se.done?$(se.value):(le=se.value,le instanceof F?le:new F(function(me){me(le)})).then(H,ne)}re((N=N.apply(Y,M||[])).next())})},je=function(Y,M){var F,N,$,z,H={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return z={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function ne(re){return function(se){return function(le){if(F)throw new TypeError("Generator is already executing.");for(;H;)try{if(F=1,N&&($=2&le[0]?N.return:le[0]?N.throw||(($=N.return)&&$.call(N),0):N.next)&&!($=$.call(N,le[1])).done)return $;switch(N=0,$&&(le=[2&le[0],$.value]),le[0]){case 0:case 1:$=le;break;case 4:return H.label++,{value:le[1],done:!1};case 5:H.label++,N=le[1],le=[0];continue;case 7:le=H.ops.pop(),H.trys.pop();continue;default:if(!(($=($=H.trys).length>0&&$[$.length-1])||le[0]!==6&&le[0]!==2)){H=0;continue}if(le[0]===3&&(!$||le[1]>$[0]&&le[1]<$[3])){H.label=le[1];break}if(le[0]===6&&H.label<$[1]){H.label=$[1],$=le;break}if($&&H.label<$[2]){H.label=$[2],H.ops.push(le);break}$[2]&&H.ops.pop(),H.trys.pop();continue}le=M.call(Y,H)}catch(me){le=[6,me],N=0}finally{F=$=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([re,se])}}};let We=function(){function Y(M){this._options=M?te(s(J,M)):J,this.update()}return Y._clearContainer=function(M){M&&(M.innerHTML="")},Y.prototype._getQRStylingElement=function(M){return M===void 0&&(M="png"),Me(this,void 0,void 0,function(){var F,N,$;return je(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return M.toLowerCase()!=="svg"?[3,2]:(N=void 0,F=void 0,this._svg&&this._svgDrawingPromise?(F=this._svg,N=this._svgDrawingPromise):(F=new ie(this._options),N=F.drawQR(this._qr)),[4,N]);case 1:return z.sent(),[2,F];case 2:return N=void 0,$=void 0,this._canvas&&this._canvasDrawingPromise?($=this._canvas,N=this._canvasDrawingPromise):($=new m(this._options),N=$.drawQR(this._qr)),[4,N];case 3:return z.sent(),[2,$]}})})},Y.prototype.update=function(M){Y._clearContainer(this._container),this._options=M?te(s(this._options,M)):this._options,this._options.data&&(this._qr=Ve()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(F){switch(!0){case/^[0-9]*$/.test(F):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(F):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ce?(this._canvas=new m(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new ie(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},Y.prototype.append=function(M){if(M){if(typeof M.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ce?this._canvas&&M.appendChild(this._canvas.getCanvas()):this._svg&&M.appendChild(this._svg.getElement()),this._container=M}},Y.prototype.getRawData=function(M){return M===void 0&&(M="png"),Me(this,void 0,void 0,function(){var F,N,$;return je(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(M)];case 1:return F=z.sent(),M.toLowerCase()==="svg"?(N=new XMLSerializer,$=N.serializeToString(F.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
11
- `+$],{type:"image/svg+xml"})]):[2,new Promise(function(H){return F.getCanvas().toBlob(H,"image/".concat(M),1)})]}})})},Y.prototype.download=function(M){return Me(this,void 0,void 0,function(){var F,N,$,z,H;return je(this,function(ne){switch(ne.label){case 0:if(!this._qr)throw"QR code is empty";return F="png",N="qr",typeof M=="string"?(F=M,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof M=="object"&&M!==null&&(M.name&&(N=M.name),M.extension&&(F=M.extension)),[4,this._getQRStylingElement(F)];case 1:return $=ne.sent(),F.toLowerCase()==="svg"?(z=new XMLSerializer,H=`<?xml version="1.0" standalone="no"?>\r
12
- `+(H=z.serializeToString($.getElement())),l("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(H),"".concat(N,".svg"))):l($.getCanvas().toDataURL("image/".concat(F)),"".concat(N,".").concat(F)),[2]}})})},Y}()})(),n.default})()})});var QM=Qe(Gl=>{"use strict";f();h();d();var kM=we();function nt(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 an=Object.prototype.hasOwnProperty,AL=/^[: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]*$/,sM={},lM={};function TM(e){return an.call(lM,e)?!0:an.call(sM,e)?!1:AL.test(e)?lM[e]=!0:(sM[e]=!0,!1)}function Hr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new Hr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new Hr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new Hr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new Hr(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){Er[e]=new Hr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new Hr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new Hr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new Hr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new Hr(e,5,!1,e.toLowerCase(),null,!1,!1)});var u1=/[\-:]([a-z])/g;function c1(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(u1,c1);Er[t]=new Hr(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(u1,c1);Er[t]=new Hr(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(u1,c1);Er[t]=new Hr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new Hr(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new Hr(e,1,!1,e.toLowerCase(),null,!0,!0)});var gp={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},IL=["Webkit","ms","Moz","O"];Object.keys(gp).forEach(function(e){IL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gp[t]=gp[e]})});var OL=/["'&<>]/;function zr(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=OL.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var NL=/([A-Z])/g,DL=/^ms-/,o1=Array.isArray;function ri(e,t){return{insertionMode:e,selectedValue:t}}function LL(e,t,r){switch(t){case"select":return ri(1,r.value!=null?r.value:r.defaultValue);case"svg":return ri(2,null);case"math":return ri(3,null);case"foreignObject":return ri(1,null);case"table":return ri(4,null);case"thead":case"tbody":case"tfoot":return ri(5,null);case"colgroup":return ri(7,null);case"tr":return ri(6,null)}return 4<=e.insertionMode||e.insertionMode===0?ri(1,null):e}var uM=new Map;function PM(e,t,r){if(typeof r!="object")throw Error(nt(62));t=!0;for(var n in r)if(an.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=zr(n);o=zr((""+o).trim())}else{i=n;var a=uM.get(i);a!==void 0||(a=zr(i.replace(NL,"-$1").toLowerCase().replace(DL,"-ms-")),uM.set(i,a)),i=a,o=typeof o=="number"?o===0||an.call(gp,n)?""+o:o+"px":zr((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function xn(e,t,r,n){switch(r){case"style":PM(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Er.hasOwnProperty(r)?Er[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:n===!0?e.push(" ",r,'=""'):n!==!1&&e.push(" ",r,'="',zr(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',zr(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',zr(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',zr(n),'"')}}else if(TM(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(" ",r,'="',zr(n),'"')}}}function vp(e,t,r){if(t!=null){if(r!=null)throw Error(nt(60));if(typeof t!="object"||!("__html"in t))throw Error(nt(61));t=t.__html,t!=null&&e.push(""+t)}}function FL(e){var t="";return kM.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function t1(e,t,r,n){e.push(ko(r));var o=r=null,i;for(i in t)if(an.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":r=a;break;case"dangerouslySetInnerHTML":o=a;break;default:xn(e,n,i,a)}}return e.push(">"),vp(e,o,r),typeof r=="string"?(e.push(zr(r)),null):r}var $L=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cM=new Map;function ko(e){var t=cM.get(e);if(t===void 0){if(!$L.test(e))throw Error(nt(65,e));t="<"+e,cM.set(e,t)}return t}function BL(e,t,r,n,o){switch(t){case"select":e.push(ko("select"));var i=null,a=null;for(g in r)if(an.call(r,g)){var s=r[g];if(s!=null)switch(g){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:xn(e,n,g,s)}}return e.push(">"),vp(e,a,i),i;case"option":a=o.selectedValue,e.push(ko("option"));var l=s=null,c=null,g=null;for(i in r)if(an.call(r,i)){var _=r[i];if(_!=null)switch(i){case"children":s=_;break;case"selected":c=_;break;case"dangerouslySetInnerHTML":g=_;break;case"value":l=_;default:xn(e,n,i,_)}}if(a!=null)if(r=l!==null?""+l:FL(s),o1(a)){for(n=0;n<a.length;n++)if(""+a[n]===r){e.push(' selected=""');break}}else""+a===r&&e.push(' selected=""');else c&&e.push(' selected=""');return e.push(">"),vp(e,g,s),s;case"textarea":e.push(ko("textarea")),g=a=i=null;for(s in r)if(an.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":g=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(nt(91));default:xn(e,n,s,l)}if(i===null&&a!==null&&(i=a),e.push(">"),g!=null){if(i!=null)throw Error(nt(92));if(o1(g)&&1<g.length)throw Error(nt(93));i=""+g}return typeof i=="string"&&i[0]===`
13
- `&&e.push(`
14
- `),i!==null&&e.push(zr(""+i)),null;case"input":e.push(ko("input")),l=g=s=i=null;for(a in r)if(an.call(r,a)&&(c=r[a],c!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(nt(399,"input"));case"defaultChecked":l=c;break;case"defaultValue":s=c;break;case"checked":g=c;break;case"value":i=c;break;default:xn(e,n,a,c)}return g!==null?xn(e,n,"checked",g):l!==null&&xn(e,n,"checked",l),i!==null?xn(e,n,"value",i):s!==null&&xn(e,n,"value",s),e.push("/>"),null;case"menuitem":e.push(ko("menuitem"));for(var k in r)if(an.call(r,k)&&(i=r[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(nt(400));default:xn(e,n,k,i)}return e.push(">"),null;case"title":e.push(ko("title")),i=null;for(_ in r)if(an.call(r,_)&&(a=r[_],a!=null))switch(_){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(nt(434));default:xn(e,n,_,a)}return e.push(">"),i;case"listing":case"pre":e.push(ko(t)),a=i=null;for(l in r)if(an.call(r,l)&&(s=r[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:xn(e,n,l,s)}if(e.push(">"),a!=null){if(i!=null)throw Error(nt(60));if(typeof a!="object"||!("__html"in a))throw Error(nt(61));r=a.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
15
- `?e.push(`
16
- `,r):e.push(""+r))}return typeof i=="string"&&i[0]===`
17
- `&&e.push(`
18
- `),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(ko(t));for(var R in r)if(an.call(r,R)&&(i=r[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(nt(399,t));default:xn(e,n,R,i)}return e.push("/>"),null;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 t1(e,r,t,n);case"html":return o.insertionMode===0&&e.push("<!DOCTYPE html>"),t1(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return t1(e,r,t,n);e.push(ko(t)),a=i=null;for(c in r)if(an.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":PM(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:TM(c)&&typeof s!="function"&&typeof s!="symbol"&&e.push(" ",c,'="',zr(s),'"')}return e.push(">"),vp(e,a,i),i}}function fM(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(nt(395));return e.push(r),e.push('"></template>')}function VL(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(nt(397))}}function UL(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(nt(397))}}var jL=/[<\u2028\u2029]/g;function r1(e){return JSON.stringify(e).replace(jL,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function zL(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function dM(e,t,r,n){return r.generateStaticMarkup?(e.push(zr(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(zr(t)),e=!0),e)}var Ic=Object.assign,HL=Symbol.for("react.element"),RM=Symbol.for("react.portal"),AM=Symbol.for("react.fragment"),IM=Symbol.for("react.strict_mode"),OM=Symbol.for("react.profiler"),NM=Symbol.for("react.provider"),DM=Symbol.for("react.context"),LM=Symbol.for("react.forward_ref"),FM=Symbol.for("react.suspense"),$M=Symbol.for("react.suspense_list"),BM=Symbol.for("react.memo"),f1=Symbol.for("react.lazy"),WL=Symbol.for("react.scope"),qL=Symbol.for("react.debug_trace_mode"),GL=Symbol.for("react.legacy_hidden"),KL=Symbol.for("react.default_value"),hM=Symbol.iterator;function i1(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 AM:return"Fragment";case RM:return"Portal";case OM:return"Profiler";case IM:return"StrictMode";case FM:return"Suspense";case $M:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DM:return(e.displayName||"Context")+".Consumer";case NM:return(e._context.displayName||"Context")+".Provider";case LM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BM:return t=e.displayName||null,t!==null?t:i1(e.type)||"Memo";case f1:t=e._payload,e=e._init;try{return i1(e(t))}catch(r){}}return null}var VM={};function pM(e,t){if(e=e.contextTypes,!e)return VM;var r={},n;for(n in e)r[n]=t[n];return r}var es=null;function Cp(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(nt(401))}else{if(r===null)throw Error(nt(401));Cp(e,r)}t.context._currentValue2=t.value}}function UM(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&UM(e)}function jM(e){var t=e.parent;t!==null&&jM(t),e.context._currentValue2=e.value}function zM(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(nt(402));e.depth===t.depth?Cp(e,t):zM(e,t)}function HM(e,t){var r=t.parent;if(r===null)throw Error(nt(402));e.depth===r.depth?Cp(e,r):HM(e,r),t.context._currentValue2=t.value}function _p(e){var t=es;t!==e&&(t===null?jM(e):e===null?UM(t):t.depth===e.depth?Cp(t,e):t.depth>e.depth?zM(t,e):HM(t,e),es=e)}var mM={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function gM(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=mM,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue2:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Ic({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&mM.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Ic({},i,s)):Ic(i,s))}e.state=i}else i.queue=null}var YL={id:1,overflow:""};function a1(e,t,r){var n=e.id;e=e.overflow;var o=32-yp(n)-1;n&=~(1<<o),r+=1;var i=32-yp(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-yp(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var yp=Math.clz32?Math.clz32:XL,ZL=Math.log,QL=Math.LN2;function XL(e){return e>>>=0,e===0?32:31-(ZL(e)/QL|0)|0}function JL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eF=typeof Object.is=="function"?Object.is:JL,ni=null,d1=null,wp=null,It=null,Rc=!1,bp=!1,Oc=0,Wi=null,kp=0;function Ja(){if(ni===null)throw Error(nt(321));return ni}function vM(){if(0<kp)throw Error(nt(312));return{memoizedState:null,queue:null,next:null}}function h1(){return It===null?wp===null?(Rc=!1,wp=It=vM()):(Rc=!0,It=wp):It.next===null?(Rc=!1,It=It.next=vM()):(Rc=!0,It=It.next),It}function p1(){d1=ni=null,bp=!1,wp=null,kp=0,It=Wi=null}function WM(e,t){return typeof t=="function"?t(e):t}function yM(e,t,r){if(ni=Ja(),It=h1(),Rc){var n=It.queue;if(t=n.dispatch,Wi!==null&&(r=Wi.get(n),r!==void 0)){Wi.delete(n),n=It.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return It.memoizedState=n,[n,t]}return[It.memoizedState,t]}return e=e===WM?typeof t=="function"?t():t:r!==void 0?r(t):t,It.memoizedState=e,e=It.queue={last:null,dispatch:null},e=e.dispatch=tF.bind(null,ni,e),[It.memoizedState,e]}function wM(e,t){if(ni=Ja(),It=h1(),t=t===void 0?null:t,It!==null){var r=It.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!eF(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),It.memoizedState=[e,t],e}function tF(e,t,r){if(25<=kp)throw Error(nt(301));if(e===ni)if(bp=!0,e={action:r,next:null},Wi===null&&(Wi=new Map),r=Wi.get(t),r===void 0)Wi.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function rF(){throw Error(nt(394))}function pp(){}var xM={readContext:function(e){return e._currentValue2},useContext:function(e){return Ja(),e._currentValue2},useMemo:wM,useReducer:yM,useRef:function(e){ni=Ja(),It=h1();var t=It.memoizedState;return t===null?(e={current:e},It.memoizedState=e):t},useState:function(e){return yM(WM,e)},useInsertionEffect:pp,useLayoutEffect:function(){},useCallback:function(e,t){return wM(function(){return e},t)},useImperativeHandle:pp,useEffect:pp,useDebugValue:pp,useDeferredValue:function(e){return Ja(),e},useTransition:function(){return Ja(),[!1,rF]},useId:function(){var e=d1.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-yp(e)-1)).toString(32)+t;var r=xp;if(r===null)throw Error(nt(404));return t=Oc++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ja(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(nt(407));return r()}},xp=null,n1=kM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function nF(e){return console.error(e),null}function Ac(){}function oF(e,t,r,n,o,i,a,s,l){var c=[],g=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:g,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?nF:o,onAllReady:i===void 0?Ac:i,onShellReady:a===void 0?Ac:a,onShellError:s===void 0?Ac:s,onFatalError:l===void 0?Ac:l},r=Sp(t,0,null,r,!1,!1),r.parentFlushed=!0,e=m1(t,e,null,r,g,VM,null,YL),c.push(e),t}function m1(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var c=e.pingedTasks;c.push(l),c.length===1&&KM(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function Sp(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Nc(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ep(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function _M(e,t,r,n,o){for(ni={},d1=t,Oc=0,e=r(n,o);bp;)bp=!1,Oc=0,kp+=1,It=null,e=r(n,o);return p1(),e}function bM(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(nt(108,i1(n)||"Unknown",s));n=Ic({},a,r)}t.legacyContext=n,_n(e,t,o),t.legacyContext=a}else _n(e,t,o)}function SM(e,t){if(e&&e.defaultProps){t=Ic({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function s1(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=pM(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue2:o),gM(i,r,n,o),bM(e,t,i,r)}else{i=pM(r,t.legacyContext),o=_M(e,t,r,n,i);var a=Oc!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)gM(o,r,n,i),bM(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=a1(n,1,0);try{_n(e,t,o)}finally{t.treeContext=n}}else _n(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=BL(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=LL(a,r,n),l1(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}else{switch(r){case GL:case qL:case IM:case OM:case AM:_n(e,t,n.children);return;case $M:_n(e,t,n.children);return;case WL:throw Error(nt(343));case FM:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=Sp(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var c=Sp(e,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=c;try{if(l1(e,t,n),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("<!-- -->"),c.status=1,Mp(s,c),s.pendingTasks===0)break e}catch(g){c.status=4,s.forceClientRender=!0,s.errorDigest=Nc(e,g)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=m1(e,i,r,l,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case LM:if(n=_M(e,t,r.render,n,o),Oc!==0){r=t.treeContext,t.treeContext=a1(r,1,0);try{_n(e,t,n)}finally{t.treeContext=r}}else _n(e,t,n);return;case BM:r=r.type,n=SM(r,n),s1(e,t,r,n,o);return;case NM:if(o=n.children,r=r._context,n=n.value,i=r._currentValue2,r._currentValue2=n,a=es,es=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,_n(e,t,o),e=es,e===null)throw Error(nt(403));n=e.parentValue,e.context._currentValue2=n===KL?e.context._defaultValue:n,e=es=e.parent,t.context=e;return;case DM:n=n.children,n=n(r._currentValue2),_n(e,t,n);return;case f1:o=r._init,r=o(r._payload),n=SM(r,n),s1(e,t,r,n,void 0);return}throw Error(nt(130,r==null?r:typeof r,""))}}function _n(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case HL:s1(e,t,r.type,r.props,r.ref);return;case RM:throw Error(nt(257));case f1:var n=r._init;r=n(r._payload),_n(e,t,r);return}if(o1(r)){EM(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=hM&&r[hM]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);EM(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(nt(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=dM(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=dM(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function EM(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=a1(i,n,o);try{l1(e,t,r[o])}finally{t.treeContext=i}}}function l1(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return _n(e,t,r)}catch(l){if(p1(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var a=t.blockedSegment,s=Sp(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=m1(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,_p(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,_p(i),l}}function iF(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,GM(this,t,e)}function qM(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(nt(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return qM(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Mp(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Mp(e,r)}else e.completedSegments.push(t)}function GM(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(nt(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Ac,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Mp(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(iF,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Mp(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function KM(e){if(e.status!==2){var t=es,r=n1.current;n1.current=xM;var n=xp;xp=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(l.status===0){_p(a.context);try{_n(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),a.abortSet.delete(a),l.status=1,GM(s,a.blockedBoundary,l)}catch(I){if(p1(),typeof I=="object"&&I!==null&&typeof I.then=="function"){var c=a.ping;I.then(c,c)}else{a.abortSet.delete(a),l.status=4;var g=a.blockedBoundary,_=I,k=Nc(s,_);if(g===null?Ep(s,_):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=k,g.parentFlushed&&s.clientRenderedBoundaries.push(g))),s.allPendingTasks--,s.allPendingTasks===0){var R=s.onAllReady;R()}}}finally{}}}o.splice(0,i),e.destination!==null&&g1(e,e.destination)}catch(I){Nc(e,I),Ep(e,I)}finally{xp=n,n1.current=r,r===xM&&_p(t)}}}function mp(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)t.push(n[i]);o=Tp(e,t,o)}for(;i<n.length-1;i++)t.push(n[i]);return i<n.length&&(o=t.push(n[i])),o;default:throw Error(nt(390))}}function Tp(e,t,r){var n=r.boundary;if(n===null)return mp(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("<!--$!-->"),t.push("<template"),n&&(t.push(' data-dgst="'),n=zr(n),t.push(n),t.push('"')),t.push("></template>")),mp(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),n=n.id=o,fM(t,e.responseState,n),mp(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),fM(t,e.responseState,n.id),mp(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(nt(391));return Tp(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function MM(e,t,r){return VL(t,e.responseState,r.formatContext,r.id),Tp(e,t,r),UL(t,r.formatContext)}function CM(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)YM(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),n===null)throw Error(nt(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function YM(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(nt(392));return MM(e,t,n)}return MM(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function g1(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){Tp(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,l=a.id,c=a.errorDigest,g=a.errorMessage,_=a.errorComponentStack;if(n.push(s.startInlineScript),s.sentClientRenderFunction?n.push('$RX("'):(s.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(nt(395));if(n.push(l),n.push('"'),c||g||_){n.push(",");var k=r1(c||"");n.push(k)}if(g||_){n.push(",");var R=r1(g||"");n.push(R)}if(_){n.push(",");var I=r1(_);n.push(I)}if(!n.push(")<\/script>")){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var V=e.completedBoundaries;for(i=0;i<V.length;i++)if(!CM(e,t,V[i])){e.destination=null,i++,V.splice(0,i);return}V.splice(0,i);var j=e.partialBoundaries;for(i=0;i<j.length;i++){var L=j[i];e:{o=e,a=t;var D=L.completedSegments;for(s=0;s<D.length;s++)if(!YM(o,a,L,D[s])){s++,D.splice(0,s);var B=!1;break e}D.splice(0,s),B=!0}if(!B){e.destination=null,i++,j.splice(0,i);return}}j.splice(0,i);var K=e.completedBoundaries;for(i=0;i<K.length;i++)if(!CM(e,t,K[i])){e.destination=null,i++,K.splice(0,i);return}K.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function aF(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return qM(n,e,t)}),r.clear(),e.destination!==null&&g1(e,e.destination)}catch(n){Nc(e,n),Ep(e,n)}}function sF(){}function ZM(e,t,r,n){var o=!1,i=null,a="",s={push:function(c){return c!==null&&(a+=c),!0},destroy:function(c){o=!0,i=c}},l=!1;if(e=oF(e,zL(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,sF,void 0,function(){l=!0},void 0,void 0),KM(e),aF(e,n),e.status===1)e.status=2,s.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=s;try{g1(e,s)}catch(c){Nc(e,c),Ep(e,c)}}if(o)throw i;if(!l)throw Error(nt(426));return a}Gl.renderToNodeStream=function(){throw Error(nt(207))};Gl.renderToStaticMarkup=function(e,t){return ZM(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Gl.renderToStaticNodeStream=function(){throw Error(nt(208))};Gl.renderToString=function(e,t){return ZM(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Gl.version="18.2.0"});var YC=Qe(F1=>{"use strict";f();h();d();var EC=we();function ut(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 Sn=null,En=0;function ze(e,t){if(t.length!==0)if(512<t.length)0<En&&(e.enqueue(new Uint8Array(Sn.buffer,0,En)),Sn=new Uint8Array(512),En=0),e.enqueue(t);else{var r=Sn.length-En;r<t.length&&(r===0?e.enqueue(Sn):(Sn.set(t.subarray(0,r),En),e.enqueue(Sn),t=t.subarray(r)),Sn=new Uint8Array(512),En=0),Sn.set(t,En),En+=t.length}}function Bt(e,t){return ze(e,t),!0}function XM(e){Sn&&0<En&&(e.enqueue(new Uint8Array(Sn.buffer,0,En)),Sn=null,En=0)}var MC=new TextEncoder;function ft(e){return MC.encode(e)}function Oe(e){return MC.encode(e)}function CC(e,t){typeof e.error=="function"?e.error(t):e.close()}var sn=Object.prototype.hasOwnProperty,lF=/^[: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]*$/,JM={},eC={};function kC(e){return sn.call(eC,e)?!0:sn.call(JM,e)?!1:lF.test(e)?eC[e]=!0:(JM[e]=!0,!1)}function Wr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Cr[e]=new Wr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Cr[t]=new Wr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Cr[e]=new Wr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Cr[e]=new Wr(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){Cr[e]=new Wr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Cr[e]=new Wr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Cr[e]=new Wr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Cr[e]=new Wr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Cr[e]=new Wr(e,5,!1,e.toLowerCase(),null,!1,!1)});var T1=/[\-:]([a-z])/g;function P1(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(T1,P1);Cr[t]=new Wr(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(T1,P1);Cr[t]=new Wr(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(T1,P1);Cr[t]=new Wr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Cr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!1,!1)});Cr.xlinkHref=new Wr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Cr[e]=new Wr(e,1,!1,e.toLowerCase(),null,!0,!0)});var Ap={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},uF=["Webkit","ms","Moz","O"];Object.keys(Ap).forEach(function(e){uF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ap[t]=Ap[e]})});var cF=/["'&<>]/;function Mr(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=cF.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var fF=/([A-Z])/g,dF=/^ms-/,S1=Array.isArray,hF=Oe("<script>"),pF=Oe("<\/script>"),mF=Oe('<script src="'),gF=Oe('<script type="module" src="'),tC=Oe('" async=""><\/script>'),vF=/(<\/|<)(s)(cript)/gi;function yF(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function wF(e,t,r,n,o){e=e===void 0?"":e,t=t===void 0?hF:Oe('<script nonce="'+Mr(t)+'">');var i=[];if(r!==void 0&&i.push(t,ft((""+r).replace(vF,yF)),pF),n!==void 0)for(r=0;r<n.length;r++)i.push(mF,ft(Mr(n[r])),tC);if(o!==void 0)for(n=0;n<o.length;n++)i.push(gF,ft(Mr(o[n])),tC);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:Oe(e+"P:"),segmentPrefix:Oe(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function To(e,t){return{insertionMode:e,selectedValue:t}}function xF(e){return To(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function _F(e,t,r){switch(t){case"select":return To(1,r.value!=null?r.value:r.defaultValue);case"svg":return To(2,null);case"math":return To(3,null);case"foreignObject":return To(1,null);case"table":return To(4,null);case"thead":case"tbody":case"tfoot":return To(5,null);case"colgroup":return To(7,null);case"tr":return To(6,null)}return 4<=e.insertionMode||e.insertionMode===0?To(1,null):e}var R1=Oe("<!-- -->");function rC(e,t,r,n){return t===""?n:(n&&e.push(R1),e.push(ft(Mr(t))),!0)}var nC=new Map,bF=Oe(' style="'),oC=Oe(":"),SF=Oe(";");function TC(e,t,r){if(typeof r!="object")throw Error(ut(62));t=!0;for(var n in r)if(sn.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=ft(Mr(n));o=ft(Mr((""+o).trim()))}else{i=n;var a=nC.get(i);a!==void 0||(a=Oe(Mr(i.replace(fF,"-$1").toLowerCase().replace(dF,"-ms-"))),nC.set(i,a)),i=a,o=typeof o=="number"?o===0||sn.call(Ap,n)?ft(""+o):ft(o+"px"):ft(Mr((""+o).trim()))}t?(t=!1,e.push(bF,i,oC,o)):e.push(SF,i,oC,o)}}t||e.push(ts)}var qi=Oe(" "),Kl=Oe('="'),ts=Oe('"'),iC=Oe('=""');function bn(e,t,r,n){switch(r){case"style":TC(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Cr.hasOwnProperty(r)?Cr[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=ft(t.attributeName),t.type){case 3:n&&e.push(qi,r,iC);break;case 4:n===!0?e.push(qi,r,iC):n!==!1&&e.push(qi,r,Kl,ft(Mr(n)),ts);break;case 5:isNaN(n)||e.push(qi,r,Kl,ft(Mr(n)),ts);break;case 6:!isNaN(n)&&1<=n&&e.push(qi,r,Kl,ft(Mr(n)),ts);break;default:t.sanitizeURL&&(n=""+n),e.push(qi,r,Kl,ft(Mr(n)),ts)}}else if(kC(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(qi,ft(r),Kl,ft(Mr(n)),ts)}}}var Gi=Oe(">"),aC=Oe("/>");function Ip(e,t,r){if(t!=null){if(r!=null)throw Error(ut(60));if(typeof t!="object"||!("__html"in t))throw Error(ut(61));t=t.__html,t!=null&&e.push(ft(""+t))}}function EF(e){var t="";return EC.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var v1=Oe(' selected=""');function y1(e,t,r,n){e.push(Po(r));var o=r=null,i;for(i in t)if(sn.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":r=a;break;case"dangerouslySetInnerHTML":o=a;break;default:bn(e,n,i,a)}}return e.push(Gi),Ip(e,o,r),typeof r=="string"?(e.push(ft(Mr(r))),null):r}var w1=Oe(`
19
- `),MF=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sC=new Map;function Po(e){var t=sC.get(e);if(t===void 0){if(!MF.test(e))throw Error(ut(65,e));t=Oe("<"+e),sC.set(e,t)}return t}var CF=Oe("<!DOCTYPE html>");function kF(e,t,r,n,o){switch(t){case"select":e.push(Po("select"));var i=null,a=null;for(g in r)if(sn.call(r,g)){var s=r[g];if(s!=null)switch(g){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:bn(e,n,g,s)}}return e.push(Gi),Ip(e,a,i),i;case"option":a=o.selectedValue,e.push(Po("option"));var l=s=null,c=null,g=null;for(i in r)if(sn.call(r,i)){var _=r[i];if(_!=null)switch(i){case"children":s=_;break;case"selected":c=_;break;case"dangerouslySetInnerHTML":g=_;break;case"value":l=_;default:bn(e,n,i,_)}}if(a!=null)if(r=l!==null?""+l:EF(s),S1(a)){for(n=0;n<a.length;n++)if(""+a[n]===r){e.push(v1);break}}else""+a===r&&e.push(v1);else c&&e.push(v1);return e.push(Gi),Ip(e,g,s),s;case"textarea":e.push(Po("textarea")),g=a=i=null;for(s in r)if(sn.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":g=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(ut(91));default:bn(e,n,s,l)}if(i===null&&a!==null&&(i=a),e.push(Gi),g!=null){if(i!=null)throw Error(ut(92));if(S1(g)&&1<g.length)throw Error(ut(93));i=""+g}return typeof i=="string"&&i[0]===`
20
- `&&e.push(w1),i!==null&&e.push(ft(Mr(""+i))),null;case"input":e.push(Po("input")),l=g=s=i=null;for(a in r)if(sn.call(r,a)&&(c=r[a],c!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(ut(399,"input"));case"defaultChecked":l=c;break;case"defaultValue":s=c;break;case"checked":g=c;break;case"value":i=c;break;default:bn(e,n,a,c)}return g!==null?bn(e,n,"checked",g):l!==null&&bn(e,n,"checked",l),i!==null?bn(e,n,"value",i):s!==null&&bn(e,n,"value",s),e.push(aC),null;case"menuitem":e.push(Po("menuitem"));for(var k in r)if(sn.call(r,k)&&(i=r[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(ut(400));default:bn(e,n,k,i)}return e.push(Gi),null;case"title":e.push(Po("title")),i=null;for(_ in r)if(sn.call(r,_)&&(a=r[_],a!=null))switch(_){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(ut(434));default:bn(e,n,_,a)}return e.push(Gi),i;case"listing":case"pre":e.push(Po(t)),a=i=null;for(l in r)if(sn.call(r,l)&&(s=r[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:bn(e,n,l,s)}if(e.push(Gi),a!=null){if(i!=null)throw Error(ut(60));if(typeof a!="object"||!("__html"in a))throw Error(ut(61));r=a.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
21
- `?e.push(w1,ft(r)):e.push(ft(""+r)))}return typeof i=="string"&&i[0]===`
22
- `&&e.push(w1),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Po(t));for(var R in r)if(sn.call(r,R)&&(i=r[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(ut(399,t));default:bn(e,n,R,i)}return e.push(aC),null;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 y1(e,r,t,n);case"html":return o.insertionMode===0&&e.push(CF),y1(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return y1(e,r,t,n);e.push(Po(t)),a=i=null;for(c in r)if(sn.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":TC(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:kC(c)&&typeof s!="function"&&typeof s!="symbol"&&e.push(qi,ft(c),Kl,ft(Mr(s)),ts)}return e.push(Gi),Ip(e,a,i),i}}var TF=Oe("</"),PF=Oe(">"),RF=Oe('<template id="'),AF=Oe('"></template>'),IF=Oe("<!--$-->"),OF=Oe('<!--$?--><template id="'),NF=Oe('"></template>'),DF=Oe("<!--$!-->"),LF=Oe("<!--/$-->"),FF=Oe("<template"),$F=Oe('"'),BF=Oe(' data-dgst="');Oe(' data-msg="');Oe(' data-stck="');var VF=Oe("></template>");function lC(e,t,r){if(ze(e,OF),r===null)throw Error(ut(395));return ze(e,r),Bt(e,NF)}var UF=Oe('<div hidden id="'),jF=Oe('">'),zF=Oe("</div>"),HF=Oe('<svg aria-hidden="true" style="display:none" id="'),WF=Oe('">'),qF=Oe("</svg>"),GF=Oe('<math aria-hidden="true" style="display:none" id="'),KF=Oe('">'),YF=Oe("</math>"),ZF=Oe('<table hidden id="'),QF=Oe('">'),XF=Oe("</table>"),JF=Oe('<table hidden><tbody id="'),e$=Oe('">'),t$=Oe("</tbody></table>"),r$=Oe('<table hidden><tr id="'),n$=Oe('">'),o$=Oe("</tr></table>"),i$=Oe('<table hidden><colgroup id="'),a$=Oe('">'),s$=Oe("</colgroup></table>");function l$(e,t,r,n){switch(r.insertionMode){case 0:case 1:return ze(e,UF),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,jF);case 2:return ze(e,HF),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,WF);case 3:return ze(e,GF),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,KF);case 4:return ze(e,ZF),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,QF);case 5:return ze(e,JF),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,e$);case 6:return ze(e,r$),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,n$);case 7:return ze(e,i$),ze(e,t.segmentPrefix),ze(e,ft(n.toString(16))),Bt(e,a$);default:throw Error(ut(397))}}function u$(e,t){switch(t.insertionMode){case 0:case 1:return Bt(e,zF);case 2:return Bt(e,qF);case 3:return Bt(e,YF);case 4:return Bt(e,XF);case 5:return Bt(e,t$);case 6:return Bt(e,o$);case 7:return Bt(e,s$);default:throw Error(ut(397))}}var c$=Oe('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),f$=Oe('$RS("'),d$=Oe('","'),h$=Oe('")<\/script>'),p$=Oe('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),m$=Oe('$RC("'),g$=Oe('","'),v$=Oe('")<\/script>'),y$=Oe('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),w$=Oe('$RX("'),x$=Oe('"'),_$=Oe(")<\/script>"),x1=Oe(","),b$=/[<\u2028\u2029]/g;function _1(e){return JSON.stringify(e).replace(b$,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Fc=Object.assign,S$=Symbol.for("react.element"),PC=Symbol.for("react.portal"),RC=Symbol.for("react.fragment"),AC=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),OC=Symbol.for("react.provider"),NC=Symbol.for("react.context"),DC=Symbol.for("react.forward_ref"),LC=Symbol.for("react.suspense"),FC=Symbol.for("react.suspense_list"),$C=Symbol.for("react.memo"),A1=Symbol.for("react.lazy"),E$=Symbol.for("react.scope"),M$=Symbol.for("react.debug_trace_mode"),C$=Symbol.for("react.legacy_hidden"),k$=Symbol.for("react.default_value"),uC=Symbol.iterator;function E1(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 RC:return"Fragment";case PC:return"Portal";case IC:return"Profiler";case AC:return"StrictMode";case LC:return"Suspense";case FC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NC:return(e.displayName||"Context")+".Consumer";case OC:return(e._context.displayName||"Context")+".Provider";case DC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $C:return t=e.displayName||null,t!==null?t:E1(e.type)||"Memo";case A1:t=e._payload,e=e._init;try{return E1(e(t))}catch(r){}}return null}var BC={};function cC(e,t){if(e=e.contextTypes,!e)return BC;var r={},n;for(n in e)r[n]=t[n];return r}var ns=null;function Up(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(ut(401))}else{if(r===null)throw Error(ut(401));Up(e,r)}t.context._currentValue=t.value}}function VC(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&VC(e)}function UC(e){var t=e.parent;t!==null&&UC(t),e.context._currentValue=e.value}function jC(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(ut(402));e.depth===t.depth?Up(e,t):jC(e,t)}function zC(e,t){var r=t.parent;if(r===null)throw Error(ut(402));e.depth===r.depth?Up(e,r):zC(e,r),t.context._currentValue=t.value}function Lp(e){var t=ns;t!==e&&(t===null?UC(e):e===null?VC(t):t.depth===e.depth?Up(t,e):t.depth>e.depth?jC(t,e):zC(t,e),ns=e)}var fC={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function dC(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=fC,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Fc({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&fC.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Fc({},i,s)):Fc(i,s))}e.state=i}else i.queue=null}var T$={id:1,overflow:""};function M1(e,t,r){var n=e.id;e=e.overflow;var o=32-Op(n)-1;n&=~(1<<o),r+=1;var i=32-Op(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-Op(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Op=Math.clz32?Math.clz32:A$,P$=Math.log,R$=Math.LN2;function A$(e){return e>>>=0,e===0?32:31-(P$(e)/R$|0)|0}function I$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var O$=typeof Object.is=="function"?Object.is:I$,oi=null,I1=null,Np=null,Ot=null,Dc=!1,Fp=!1,$c=0,Ki=null,jp=0;function rs(){if(oi===null)throw Error(ut(321));return oi}function hC(){if(0<jp)throw Error(ut(312));return{memoizedState:null,queue:null,next:null}}function O1(){return Ot===null?Np===null?(Dc=!1,Np=Ot=hC()):(Dc=!0,Ot=Np):Ot.next===null?(Dc=!1,Ot=Ot.next=hC()):(Dc=!0,Ot=Ot.next),Ot}function N1(){I1=oi=null,Fp=!1,Np=null,jp=0,Ot=Ki=null}function HC(e,t){return typeof t=="function"?t(e):t}function pC(e,t,r){if(oi=rs(),Ot=O1(),Dc){var n=Ot.queue;if(t=n.dispatch,Ki!==null&&(r=Ki.get(n),r!==void 0)){Ki.delete(n),n=Ot.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Ot.memoizedState=n,[n,t]}return[Ot.memoizedState,t]}return e=e===HC?typeof t=="function"?t():t:r!==void 0?r(t):t,Ot.memoizedState=e,e=Ot.queue={last:null,dispatch:null},e=e.dispatch=N$.bind(null,oi,e),[Ot.memoizedState,e]}function mC(e,t){if(oi=rs(),Ot=O1(),t=t===void 0?null:t,Ot!==null){var r=Ot.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!O$(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Ot.memoizedState=[e,t],e}function N$(e,t,r){if(25<=jp)throw Error(ut(301));if(e===oi)if(Fp=!0,e={action:r,next:null},Ki===null&&(Ki=new Map),r=Ki.get(t),r===void 0)Ki.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function D$(){throw Error(ut(394))}function Pp(){}var gC={readContext:function(e){return e._currentValue},useContext:function(e){return rs(),e._currentValue},useMemo:mC,useReducer:pC,useRef:function(e){oi=rs(),Ot=O1();var t=Ot.memoizedState;return t===null?(e={current:e},Ot.memoizedState=e):t},useState:function(e){return pC(HC,e)},useInsertionEffect:Pp,useLayoutEffect:function(){},useCallback:function(e,t){return mC(function(){return e},t)},useImperativeHandle:Pp,useEffect:Pp,useDebugValue:Pp,useDeferredValue:function(e){return rs(),e},useTransition:function(){return rs(),[!1,D$]},useId:function(){var e=I1.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Op(e)-1)).toString(32)+t;var r=Dp;if(r===null)throw Error(ut(404));return t=$c++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return rs(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(ut(407));return r()}},Dp=null,b1=EC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function L$(e){return console.error(e),null}function Lc(){}function F$(e,t,r,n,o,i,a,s,l){var c=[],g=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:g,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?L$:o,onAllReady:i===void 0?Lc:i,onShellReady:a===void 0?Lc:a,onShellError:s===void 0?Lc:s,onFatalError:l===void 0?Lc:l},r=$p(t,0,null,r,!1,!1),r.parentFlushed=!0,e=D1(t,e,null,r,g,BC,null,T$),c.push(e),t}function D1(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var c=e.pingedTasks;c.push(l),c.length===1&&GC(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function $p(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Bc(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Bp(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,CC(e.destination,t)):(e.status=1,e.fatalError=t)}function vC(e,t,r,n,o){for(oi={},I1=t,$c=0,e=r(n,o);Fp;)Fp=!1,$c=0,jp+=1,Ot=null,e=r(n,o);return N1(),e}function yC(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(ut(108,E1(n)||"Unknown",s));n=Fc({},a,r)}t.legacyContext=n,Mn(e,t,o),t.legacyContext=a}else Mn(e,t,o)}function wC(e,t){if(e&&e.defaultProps){t=Fc({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function C1(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=cC(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),dC(i,r,n,o),yC(e,t,i,r)}else{i=cC(r,t.legacyContext),o=vC(e,t,r,n,i);var a=$c!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)dC(o,r,n,i),yC(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=M1(n,1,0);try{Mn(e,t,o)}finally{t.treeContext=n}}else Mn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=kF(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=_F(a,r,n),k1(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(TF,ft(r),PF)}o.lastPushedText=!1}else{switch(r){case C$:case M$:case AC:case IC:case RC:Mn(e,t,n.children);return;case FC:Mn(e,t,n.children);return;case E$:throw Error(ut(343));case LC:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=$p(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var c=$p(e,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=c;try{if(k1(e,t,n),c.lastPushedText&&c.textEmbedded&&c.chunks.push(R1),c.status=1,Vp(s,c),s.pendingTasks===0)break e}catch(g){c.status=4,s.forceClientRender=!0,s.errorDigest=Bc(e,g)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=D1(e,i,r,l,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case DC:if(n=vC(e,t,r.render,n,o),$c!==0){r=t.treeContext,t.treeContext=M1(r,1,0);try{Mn(e,t,n)}finally{t.treeContext=r}}else Mn(e,t,n);return;case $C:r=r.type,n=wC(r,n),C1(e,t,r,n,o);return;case OC:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,a=ns,ns=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,Mn(e,t,o),e=ns,e===null)throw Error(ut(403));n=e.parentValue,e.context._currentValue=n===k$?e.context._defaultValue:n,e=ns=e.parent,t.context=e;return;case NC:n=n.children,n=n(r._currentValue),Mn(e,t,n);return;case A1:o=r._init,r=o(r._payload),n=wC(r,n),C1(e,t,r,n,void 0);return}throw Error(ut(130,r==null?r:typeof r,""))}}function Mn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case S$:C1(e,t,r.type,r.props,r.ref);return;case PC:throw Error(ut(257));case A1:var n=r._init;r=n(r._payload),Mn(e,t,r);return}if(S1(r)){xC(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=uC&&r[uC]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);xC(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(ut(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=rC(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=rC(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function xC(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=M1(i,n,o);try{k1(e,t,r[o])}finally{t.treeContext=i}}}function k1(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Mn(e,t,r)}catch(l){if(N1(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var a=t.blockedSegment,s=$p(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=D1(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Lp(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Lp(i),l}}function $$(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,qC(this,t,e)}function WC(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(ut(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return WC(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Vp(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Vp(e,r)}else e.completedSegments.push(t)}function qC(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(ut(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Lc,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Vp(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach($$,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Vp(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function GC(e){if(e.status!==2){var t=ns,r=b1.current;b1.current=gC;var n=Dp;Dp=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(l.status===0){Lp(a.context);try{Mn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(R1),a.abortSet.delete(a),l.status=1,qC(s,a.blockedBoundary,l)}catch(I){if(N1(),typeof I=="object"&&I!==null&&typeof I.then=="function"){var c=a.ping;I.then(c,c)}else{a.abortSet.delete(a),l.status=4;var g=a.blockedBoundary,_=I,k=Bc(s,_);if(g===null?Bp(s,_):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=k,g.parentFlushed&&s.clientRenderedBoundaries.push(g))),s.allPendingTasks--,s.allPendingTasks===0){var R=s.onAllReady;R()}}}finally{}}}o.splice(0,i),e.destination!==null&&L1(e,e.destination)}catch(I){Bc(e,I),Bp(e,I)}finally{Dp=n,b1.current=r,r===gC&&Lp(t)}}}function Rp(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,ze(t,RF),ze(t,e.placeholderPrefix),e=ft(n.toString(16)),ze(t,e),Bt(t,AF);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)ze(t,n[i]);o=zp(e,t,o)}for(;i<n.length-1;i++)ze(t,n[i]);return i<n.length&&(o=Bt(t,n[i])),o;default:throw Error(ut(390))}}function zp(e,t,r){var n=r.boundary;if(n===null)return Rp(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Bt(t,DF),ze(t,FF),n&&(ze(t,BF),ze(t,ft(Mr(n))),ze(t,$F)),Bt(t,VF),Rp(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=Oe(o.boundaryPrefix+i.toString(16)),n=n.id=o,lC(t,e.responseState,n),Rp(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),lC(t,e.responseState,n.id),Rp(e,t,r);else{if(Bt(t,IF),r=n.completedSegments,r.length!==1)throw Error(ut(391));zp(e,t,r[0])}return Bt(t,LF)}function _C(e,t,r){return l$(t,e.responseState,r.formatContext,r.id),zp(e,t,r),u$(t,r.formatContext)}function bC(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)KC(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,ze(t,e.startInlineScript),e.sentCompleteBoundaryFunction?ze(t,m$):(e.sentCompleteBoundaryFunction=!0,ze(t,p$)),n===null)throw Error(ut(395));return r=ft(r.toString(16)),ze(t,n),ze(t,g$),ze(t,e.segmentPrefix),ze(t,r),Bt(t,v$)}function KC(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ut(392));return _C(e,t,n)}return _C(e,t,n),e=e.responseState,ze(t,e.startInlineScript),e.sentCompleteSegmentFunction?ze(t,f$):(e.sentCompleteSegmentFunction=!0,ze(t,c$)),ze(t,e.segmentPrefix),o=ft(o.toString(16)),ze(t,o),ze(t,d$),ze(t,e.placeholderPrefix),ze(t,o),Bt(t,h$)}function L1(e,t){Sn=new Uint8Array(512),En=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){zp(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)ze(t,n[r]);r<n.length&&Bt(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,l=a.id,c=a.errorDigest,g=a.errorMessage,_=a.errorComponentStack;if(ze(n,s.startInlineScript),s.sentClientRenderFunction?ze(n,w$):(s.sentClientRenderFunction=!0,ze(n,y$)),l===null)throw Error(ut(395));if(ze(n,l),ze(n,x$),(c||g||_)&&(ze(n,x1),ze(n,ft(_1(c||"")))),(g||_)&&(ze(n,x1),ze(n,ft(_1(g||"")))),_&&(ze(n,x1),ze(n,ft(_1(_)))),!Bt(n,_$)){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var k=e.completedBoundaries;for(i=0;i<k.length;i++)if(!bC(e,t,k[i])){e.destination=null,i++,k.splice(0,i);return}k.splice(0,i),XM(t),Sn=new Uint8Array(512),En=0;var R=e.partialBoundaries;for(i=0;i<R.length;i++){var I=R[i];e:{o=e,a=t;var V=I.completedSegments;for(s=0;s<V.length;s++)if(!KC(o,a,I,V[s])){s++,V.splice(0,s);var j=!1;break e}V.splice(0,s),j=!0}if(!j){e.destination=null,i++,R.splice(0,i);return}}R.splice(0,i);var L=e.completedBoundaries;for(i=0;i<L.length;i++)if(!bC(e,t,L[i])){e.destination=null,i++,L.splice(0,i);return}L.splice(0,i)}finally{XM(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function SC(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return WC(n,e,t)}),r.clear(),e.destination!==null&&L1(e,e.destination)}catch(n){Bc(e,n),Bp(e,n)}}F1.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,a=new Promise(function(g,_){i=g,o=_}),s=F$(e,wF(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),xF(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var g=new ReadableStream({type:"bytes",pull:function(_){if(s.status===1)s.status=2,CC(_,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=_;try{L1(s,_)}catch(k){Bc(s,k),Bp(s,k)}}},cancel:function(){SC(s)}},{highWaterMark:0});g.allReady=a,r(g)},function(g){a.catch(function(){}),n(g)},o);if(t&&t.signal){var l=t.signal,c=function(){SC(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}GC(s)})};F1.version="18.2.0"});var QC=Qe(os=>{"use strict";f();h();d();var Yl,ZC;Yl=QM(),ZC=YC();os.version=Yl.version;os.renderToString=Yl.renderToString;os.renderToStaticMarkup=Yl.renderToStaticMarkup;os.renderToNodeStream=Yl.renderToNodeStream;os.renderToStaticNodeStream=Yl.renderToStaticNodeStream;os.renderToReadableStream=ZC.renderToReadableStream});var uk=Qe(Nt=>{"use strict";f();h();d();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLocalStorage=Nt.getLocalStorageOrThrow=Nt.getCrypto=Nt.getCryptoOrThrow=Nt.getLocation=Nt.getLocationOrThrow=Nt.getNavigator=Nt.getNavigatorOrThrow=Nt.getDocument=Nt.getDocumentOrThrow=Nt.getFromWindowOrThrow=Nt.getFromWindow=void 0;function is(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Nt.getFromWindow=is;function Zl(e){let t=is(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Nt.getFromWindowOrThrow=Zl;function H$(){return Zl("document")}Nt.getDocumentOrThrow=H$;function W$(){return is("document")}Nt.getDocument=W$;function q$(){return Zl("navigator")}Nt.getNavigatorOrThrow=q$;function G$(){return is("navigator")}Nt.getNavigator=G$;function K$(){return Zl("location")}Nt.getLocationOrThrow=K$;function Y$(){return is("location")}Nt.getLocation=Y$;function Z$(){return Zl("crypto")}Nt.getCryptoOrThrow=Z$;function Q$(){return is("crypto")}Nt.getCrypto=Q$;function X$(){return Zl("localStorage")}Nt.getLocalStorageOrThrow=X$;function J$(){return is("localStorage")}Nt.getLocalStorage=J$});var fk=Qe(Hp=>{"use strict";f();h();d();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.getWindowMetadata=void 0;var ck=uk();function eB(){let e,t;try{e=ck.getDocumentOrThrow(),t=ck.getLocationOrThrow()}catch(_){return null}function r(){let _=e.getElementsByTagName("link"),k=[];for(let R=0;R<_.length;R++){let I=_[R],V=I.getAttribute("rel");if(V&&V.toLowerCase().indexOf("icon")>-1){let j=I.getAttribute("href");if(j)if(j.toLowerCase().indexOf("https:")===-1&&j.toLowerCase().indexOf("http:")===-1&&j.indexOf("//")!==0){let L=t.protocol+"//"+t.host;if(j.indexOf("/")===0)L+=j;else{let D=t.pathname.split("/");D.pop(),L+=D.join("/")+"/"+j}k.push(L)}else if(j.indexOf("//")===0){let L=t.protocol+j;k.push(L)}else k.push(j)}}return k}function n(..._){let k=e.getElementsByTagName("meta");for(let R=0;R<k.length;R++){let I=k[R],V=["itemprop","property","name"].map(j=>I.getAttribute(j)).filter(j=>j?_.includes(j):!1);if(V.length&&V){let j=I.getAttribute("content");if(j)return j}}return""}function o(){let _=n("name","og:site_name","og:title","twitter:title");return _||(_=e.title),_}function i(){return n("description","og:description","twitter:description","keywords")}let a=o(),s=i(),l=t.origin,c=r();return{description:s,url:l,icons:c,name:a}}Hp.getWindowMetadata=eB});var dk=Qe(Dt=>{"use strict";f();h();d();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getLocalStorage=Dt.getLocalStorageOrThrow=Dt.getCrypto=Dt.getCryptoOrThrow=Dt.getLocation=Dt.getLocationOrThrow=Dt.getNavigator=Dt.getNavigatorOrThrow=Dt.getDocument=Dt.getDocumentOrThrow=Dt.getFromWindowOrThrow=Dt.getFromWindow=void 0;function as(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Dt.getFromWindow=as;function Ql(e){let t=as(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Dt.getFromWindowOrThrow=Ql;function tB(){return Ql("document")}Dt.getDocumentOrThrow=tB;function rB(){return as("document")}Dt.getDocument=rB;function nB(){return Ql("navigator")}Dt.getNavigatorOrThrow=nB;function oB(){return as("navigator")}Dt.getNavigator=oB;function iB(){return Ql("location")}Dt.getLocationOrThrow=iB;function aB(){return as("location")}Dt.getLocation=aB;function sB(){return Ql("crypto")}Dt.getCryptoOrThrow=sB;function lB(){return as("crypto")}Dt.getCrypto=lB;function uB(){return Ql("localStorage")}Dt.getLocalStorageOrThrow=uB;function cB(){return as("localStorage")}Dt.getLocalStorage=cB});var kk=Qe((Ck,H1)=>{f();h();d();(function(e,t){"use strict";function r(G,w){if(!G)throw new Error(w||"Assertion failed")}function n(G,w){G.super_=w;var T=function(){};T.prototype=w.prototype,G.prototype=new T,G.prototype.constructor=G}function o(G,w,T){if(o.isBN(G))return G;this.negative=0,this.words=null,this.length=0,this.red=null,G!==null&&((w==="le"||w==="be")&&(T=w,w=10),this._init(G||0,w||10,T||"be"))}typeof e=="object"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{i=vm().Buffer}catch(G){}o.isBN=function(w){return w instanceof o?!0:w!==null&&typeof w=="object"&&w.constructor.wordSize===o.wordSize&&Array.isArray(w.words)},o.max=function(w,T){return w.cmp(T)>0?w:T},o.min=function(w,T){return w.cmp(T)<0?w:T},o.prototype._init=function(w,T,A){if(typeof w=="number")return this._initNumber(w,T,A);if(typeof w=="object")return this._initArray(w,T,A);T==="hex"&&(T=16),r(T===(T|0)&&T>=2&&T<=36),w=w.toString().replace(/\s+/g,"");var b=0;w[0]==="-"&&b++,T===16?this._parseHex(w,b):this._parseBase(w,T,b),w[0]==="-"&&(this.negative=1),this.strip(),A==="le"&&this._initArray(this.toArray(),T,A)},o.prototype._initNumber=function(w,T,A){w<0&&(this.negative=1,w=-w),w<67108864?(this.words=[w&67108863],this.length=1):w<4503599627370496?(this.words=[w&67108863,w/67108864&67108863],this.length=2):(r(w<9007199254740992),this.words=[w&67108863,w/67108864&67108863,1],this.length=3),A==="le"&&this._initArray(this.toArray(),T,A)},o.prototype._initArray=function(w,T,A){if(r(typeof w.length=="number"),w.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(w.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var u,m,y=0;if(A==="be")for(b=w.length-1,u=0;b>=0;b-=3)m=w[b]|w[b-1]<<8|w[b-2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(A==="le")for(b=0,u=0;b<w.length;b+=3)m=w[b]|w[b+1]<<8|w[b+2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function a(G,w,T){for(var A=0,b=Math.min(G.length,T),u=w;u<b;u++){var m=G.charCodeAt(u)-48;A<<=4,m>=49&&m<=54?A|=m-49+10:m>=17&&m<=22?A|=m-17+10:A|=m&15}return A}o.prototype._parseHex=function(w,T){this.length=Math.ceil((w.length-T)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var b,u,m=0;for(A=w.length-6,b=0;A>=T;A-=6)u=a(w,A,A+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303,m+=24,m>=26&&(m-=26,b++);A+6!==T&&(u=a(w,T,A+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303),this.strip()};function s(G,w,T,A){for(var b=0,u=Math.min(G.length,T),m=w;m<u;m++){var y=G.charCodeAt(m)-48;b*=A,y>=49?b+=y-49+10:y>=17?b+=y-17+10:b+=y}return b}o.prototype._parseBase=function(w,T,A){this.words=[0],this.length=1;for(var b=0,u=1;u<=67108863;u*=T)b++;b--,u=u/T|0;for(var m=w.length-A,y=m%b,x=Math.min(m,m-y)+A,p=0,E=A;E<x;E+=b)p=s(w,E,E+b,T),this.imuln(u),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(y!==0){var q=1;for(p=s(w,E,w.length,T),E=0;E<y;E++)q*=T;this.imuln(q),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}},o.prototype.copy=function(w){w.words=new Array(this.length);for(var T=0;T<this.length;T++)w.words[T]=this.words[T];w.length=this.length,w.negative=this.negative,w.red=this.red},o.prototype.clone=function(){var w=new o(null);return this.copy(w),w},o.prototype._expand=function(w){for(;this.length<w;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],c=[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],g=[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];o.prototype.toString=function(w,T){w=w||10,T=T|0||1;var A;if(w===16||w==="hex"){A="";for(var b=0,u=0,m=0;m<this.length;m++){var y=this.words[m],x=((y<<b|u)&16777215).toString(16);u=y>>>24-b&16777215,u!==0||m!==this.length-1?A=l[6-x.length]+x+A:A=x+A,b+=2,b>=26&&(b-=26,m--)}for(u!==0&&(A=u.toString(16)+A);A.length%T!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(w===(w|0)&&w>=2&&w<=36){var p=c[w],E=g[w];A="";var q=this.clone();for(q.negative=0;!q.isZero();){var U=q.modn(E).toString(w);q=q.idivn(E),q.isZero()?A=U+A:A=l[p-U.length]+U+A}for(this.isZero()&&(A="0"+A);A.length%T!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var w=this.words[0];return this.length===2?w+=this.words[1]*67108864:this.length===3&&this.words[2]===1?w+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-w:w},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(w,T){return r(typeof i<"u"),this.toArrayLike(i,w,T)},o.prototype.toArray=function(w,T){return this.toArrayLike(Array,w,T)},o.prototype.toArrayLike=function(w,T,A){var b=this.byteLength(),u=A||Math.max(1,b);r(b<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var m=T==="le",y=new w(u),x,p,E=this.clone();if(m){for(p=0;!E.isZero();p++)x=E.andln(255),E.iushrn(8),y[p]=x;for(;p<u;p++)y[p]=0}else{for(p=0;p<u-b;p++)y[p]=0;for(p=0;!E.isZero();p++)x=E.andln(255),E.iushrn(8),y[u-p-1]=x}return y},Math.clz32?o.prototype._countBits=function(w){return 32-Math.clz32(w)}:o.prototype._countBits=function(w){var T=w,A=0;return T>=4096&&(A+=13,T>>>=13),T>=64&&(A+=7,T>>>=7),T>=8&&(A+=4,T>>>=4),T>=2&&(A+=2,T>>>=2),A+T},o.prototype._zeroBits=function(w){if(w===0)return 26;var T=w,A=0;return(T&8191)===0&&(A+=13,T>>>=13),(T&127)===0&&(A+=7,T>>>=7),(T&15)===0&&(A+=4,T>>>=4),(T&3)===0&&(A+=2,T>>>=2),(T&1)===0&&A++,A},o.prototype.bitLength=function(){var w=this.words[this.length-1],T=this._countBits(w);return(this.length-1)*26+T};function _(G){for(var w=new Array(G.bitLength()),T=0;T<w.length;T++){var A=T/26|0,b=T%26;w[T]=(G.words[A]&1<<b)>>>b}return w}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var w=0,T=0;T<this.length;T++){var A=this._zeroBits(this.words[T]);if(w+=A,A!==26)break}return w},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(w){return this.negative!==0?this.abs().inotn(w).iaddn(1):this.clone()},o.prototype.fromTwos=function(w){return this.testn(w-1)?this.notn(w).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(w){for(;this.length<w.length;)this.words[this.length++]=0;for(var T=0;T<w.length;T++)this.words[T]=this.words[T]|w.words[T];return this.strip()},o.prototype.ior=function(w){return r((this.negative|w.negative)===0),this.iuor(w)},o.prototype.or=function(w){return this.length>w.length?this.clone().ior(w):w.clone().ior(this)},o.prototype.uor=function(w){return this.length>w.length?this.clone().iuor(w):w.clone().iuor(this)},o.prototype.iuand=function(w){var T;this.length>w.length?T=w:T=this;for(var A=0;A<T.length;A++)this.words[A]=this.words[A]&w.words[A];return this.length=T.length,this.strip()},o.prototype.iand=function(w){return r((this.negative|w.negative)===0),this.iuand(w)},o.prototype.and=function(w){return this.length>w.length?this.clone().iand(w):w.clone().iand(this)},o.prototype.uand=function(w){return this.length>w.length?this.clone().iuand(w):w.clone().iuand(this)},o.prototype.iuxor=function(w){var T,A;this.length>w.length?(T=this,A=w):(T=w,A=this);for(var b=0;b<A.length;b++)this.words[b]=T.words[b]^A.words[b];if(this!==T)for(;b<T.length;b++)this.words[b]=T.words[b];return this.length=T.length,this.strip()},o.prototype.ixor=function(w){return r((this.negative|w.negative)===0),this.iuxor(w)},o.prototype.xor=function(w){return this.length>w.length?this.clone().ixor(w):w.clone().ixor(this)},o.prototype.uxor=function(w){return this.length>w.length?this.clone().iuxor(w):w.clone().iuxor(this)},o.prototype.inotn=function(w){r(typeof w=="number"&&w>=0);var T=Math.ceil(w/26)|0,A=w%26;this._expand(T),A>0&&T--;for(var b=0;b<T;b++)this.words[b]=~this.words[b]&67108863;return A>0&&(this.words[b]=~this.words[b]&67108863>>26-A),this.strip()},o.prototype.notn=function(w){return this.clone().inotn(w)},o.prototype.setn=function(w,T){r(typeof w=="number"&&w>=0);var A=w/26|0,b=w%26;return this._expand(A+1),T?this.words[A]=this.words[A]|1<<b:this.words[A]=this.words[A]&~(1<<b),this.strip()},o.prototype.iadd=function(w){var T;if(this.negative!==0&&w.negative===0)return this.negative=0,T=this.isub(w),this.negative^=1,this._normSign();if(this.negative===0&&w.negative!==0)return w.negative=0,T=this.isub(w),w.negative=1,T._normSign();var A,b;this.length>w.length?(A=this,b=w):(A=w,b=this);for(var u=0,m=0;m<b.length;m++)T=(A.words[m]|0)+(b.words[m]|0)+u,this.words[m]=T&67108863,u=T>>>26;for(;u!==0&&m<A.length;m++)T=(A.words[m]|0)+u,this.words[m]=T&67108863,u=T>>>26;if(this.length=A.length,u!==0)this.words[this.length]=u,this.length++;else if(A!==this)for(;m<A.length;m++)this.words[m]=A.words[m];return this},o.prototype.add=function(w){var T;return w.negative!==0&&this.negative===0?(w.negative=0,T=this.sub(w),w.negative^=1,T):w.negative===0&&this.negative!==0?(this.negative=0,T=w.sub(this),this.negative=1,T):this.length>w.length?this.clone().iadd(w):w.clone().iadd(this)},o.prototype.isub=function(w){if(w.negative!==0){w.negative=0;var T=this.iadd(w);return w.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(w),this.negative=1,this._normSign();var A=this.cmp(w);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,u;A>0?(b=this,u=w):(b=w,u=this);for(var m=0,y=0;y<u.length;y++)T=(b.words[y]|0)-(u.words[y]|0)+m,m=T>>26,this.words[y]=T&67108863;for(;m!==0&&y<b.length;y++)T=(b.words[y]|0)+m,m=T>>26,this.words[y]=T&67108863;if(m===0&&y<b.length&&b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this.length=Math.max(this.length,y),b!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(w){return this.clone().isub(w)};function k(G,w,T){T.negative=w.negative^G.negative;var A=G.length+w.length|0;T.length=A,A=A-1|0;var b=G.words[0]|0,u=w.words[0]|0,m=b*u,y=m&67108863,x=m/67108864|0;T.words[0]=y;for(var p=1;p<A;p++){for(var E=x>>>26,q=x&67108863,U=Math.min(p,w.length-1),S=Math.max(0,p-G.length+1);S<=U;S++){var W=p-S|0;b=G.words[W]|0,u=w.words[S]|0,m=b*u+q,E+=m/67108864|0,q=m&67108863}T.words[p]=q|0,x=E|0}return x!==0?T.words[p]=x|0:T.length--,T.strip()}var R=function(w,T,A){var b=w.words,u=T.words,m=A.words,y=0,x,p,E,q=b[0]|0,U=q&8191,S=q>>>13,W=b[1]|0,de=W&8191,P=W>>>13,ee=b[2]|0,ie=ee&8191,ce=ee>>>13,ge=b[3]|0,Z=ge&8191,J=ge>>>13,Q=b[4]|0,fe=Q&8191,te=Q>>>13,xe=b[5]|0,Ve=xe&8191,Me=xe>>>13,je=b[6]|0,We=je&8191,Y=je>>>13,M=b[7]|0,F=M&8191,N=M>>>13,$=b[8]|0,z=$&8191,H=$>>>13,ne=b[9]|0,re=ne&8191,se=ne>>>13,le=u[0]|0,me=le&8191,he=le>>>13,Ce=u[1]|0,ke=Ce&8191,De=Ce>>>13,Le=u[2]|0,Ie=Le&8191,_e=Le>>>13,Te=u[3]|0,ye=Te&8191,Re=Te>>>13,Pe=u[4]|0,Ke=Pe&8191,Fe=Pe>>>13,tt=u[5]|0,be=tt&8191,Ue=tt>>>13,ct=u[6]|0,it=ct&8191,Ye=ct>>>13,Xe=u[7]|0,pt=Xe&8191,qe=Xe>>>13,wt=u[8]|0,Mt=wt&8191,He=wt>>>13,Ze=u[9]|0,Je=Ze&8191,$e=Ze>>>13;A.negative=w.negative^T.negative,A.length=19,x=Math.imul(U,me),p=Math.imul(U,he),p=p+Math.imul(S,me)|0,E=Math.imul(S,he);var at=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(at>>>26)|0,at&=67108863,x=Math.imul(de,me),p=Math.imul(de,he),p=p+Math.imul(P,me)|0,E=Math.imul(P,he),x=x+Math.imul(U,ke)|0,p=p+Math.imul(U,De)|0,p=p+Math.imul(S,ke)|0,E=E+Math.imul(S,De)|0;var sr=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(sr>>>26)|0,sr&=67108863,x=Math.imul(ie,me),p=Math.imul(ie,he),p=p+Math.imul(ce,me)|0,E=Math.imul(ce,he),x=x+Math.imul(de,ke)|0,p=p+Math.imul(de,De)|0,p=p+Math.imul(P,ke)|0,E=E+Math.imul(P,De)|0,x=x+Math.imul(U,Ie)|0,p=p+Math.imul(U,_e)|0,p=p+Math.imul(S,Ie)|0,E=E+Math.imul(S,_e)|0;var st=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(Z,me),p=Math.imul(Z,he),p=p+Math.imul(J,me)|0,E=Math.imul(J,he),x=x+Math.imul(ie,ke)|0,p=p+Math.imul(ie,De)|0,p=p+Math.imul(ce,ke)|0,E=E+Math.imul(ce,De)|0,x=x+Math.imul(de,Ie)|0,p=p+Math.imul(de,_e)|0,p=p+Math.imul(P,Ie)|0,E=E+Math.imul(P,_e)|0,x=x+Math.imul(U,ye)|0,p=p+Math.imul(U,Re)|0,p=p+Math.imul(S,ye)|0,E=E+Math.imul(S,Re)|0;var dt=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(fe,me),p=Math.imul(fe,he),p=p+Math.imul(te,me)|0,E=Math.imul(te,he),x=x+Math.imul(Z,ke)|0,p=p+Math.imul(Z,De)|0,p=p+Math.imul(J,ke)|0,E=E+Math.imul(J,De)|0,x=x+Math.imul(ie,Ie)|0,p=p+Math.imul(ie,_e)|0,p=p+Math.imul(ce,Ie)|0,E=E+Math.imul(ce,_e)|0,x=x+Math.imul(de,ye)|0,p=p+Math.imul(de,Re)|0,p=p+Math.imul(P,ye)|0,E=E+Math.imul(P,Re)|0,x=x+Math.imul(U,Ke)|0,p=p+Math.imul(U,Fe)|0,p=p+Math.imul(S,Ke)|0,E=E+Math.imul(S,Fe)|0;var kn=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(kn>>>26)|0,kn&=67108863,x=Math.imul(Ve,me),p=Math.imul(Ve,he),p=p+Math.imul(Me,me)|0,E=Math.imul(Me,he),x=x+Math.imul(fe,ke)|0,p=p+Math.imul(fe,De)|0,p=p+Math.imul(te,ke)|0,E=E+Math.imul(te,De)|0,x=x+Math.imul(Z,Ie)|0,p=p+Math.imul(Z,_e)|0,p=p+Math.imul(J,Ie)|0,E=E+Math.imul(J,_e)|0,x=x+Math.imul(ie,ye)|0,p=p+Math.imul(ie,Re)|0,p=p+Math.imul(ce,ye)|0,E=E+Math.imul(ce,Re)|0,x=x+Math.imul(de,Ke)|0,p=p+Math.imul(de,Fe)|0,p=p+Math.imul(P,Ke)|0,E=E+Math.imul(P,Fe)|0,x=x+Math.imul(U,be)|0,p=p+Math.imul(U,Ue)|0,p=p+Math.imul(S,be)|0,E=E+Math.imul(S,Ue)|0;var Tn=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,x=Math.imul(We,me),p=Math.imul(We,he),p=p+Math.imul(Y,me)|0,E=Math.imul(Y,he),x=x+Math.imul(Ve,ke)|0,p=p+Math.imul(Ve,De)|0,p=p+Math.imul(Me,ke)|0,E=E+Math.imul(Me,De)|0,x=x+Math.imul(fe,Ie)|0,p=p+Math.imul(fe,_e)|0,p=p+Math.imul(te,Ie)|0,E=E+Math.imul(te,_e)|0,x=x+Math.imul(Z,ye)|0,p=p+Math.imul(Z,Re)|0,p=p+Math.imul(J,ye)|0,E=E+Math.imul(J,Re)|0,x=x+Math.imul(ie,Ke)|0,p=p+Math.imul(ie,Fe)|0,p=p+Math.imul(ce,Ke)|0,E=E+Math.imul(ce,Fe)|0,x=x+Math.imul(de,be)|0,p=p+Math.imul(de,Ue)|0,p=p+Math.imul(P,be)|0,E=E+Math.imul(P,Ue)|0,x=x+Math.imul(U,it)|0,p=p+Math.imul(U,Ye)|0,p=p+Math.imul(S,it)|0,E=E+Math.imul(S,Ye)|0;var Pn=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(F,me),p=Math.imul(F,he),p=p+Math.imul(N,me)|0,E=Math.imul(N,he),x=x+Math.imul(We,ke)|0,p=p+Math.imul(We,De)|0,p=p+Math.imul(Y,ke)|0,E=E+Math.imul(Y,De)|0,x=x+Math.imul(Ve,Ie)|0,p=p+Math.imul(Ve,_e)|0,p=p+Math.imul(Me,Ie)|0,E=E+Math.imul(Me,_e)|0,x=x+Math.imul(fe,ye)|0,p=p+Math.imul(fe,Re)|0,p=p+Math.imul(te,ye)|0,E=E+Math.imul(te,Re)|0,x=x+Math.imul(Z,Ke)|0,p=p+Math.imul(Z,Fe)|0,p=p+Math.imul(J,Ke)|0,E=E+Math.imul(J,Fe)|0,x=x+Math.imul(ie,be)|0,p=p+Math.imul(ie,Ue)|0,p=p+Math.imul(ce,be)|0,E=E+Math.imul(ce,Ue)|0,x=x+Math.imul(de,it)|0,p=p+Math.imul(de,Ye)|0,p=p+Math.imul(P,it)|0,E=E+Math.imul(P,Ye)|0,x=x+Math.imul(U,pt)|0,p=p+Math.imul(U,qe)|0,p=p+Math.imul(S,pt)|0,E=E+Math.imul(S,qe)|0;var Rn=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,x=Math.imul(z,me),p=Math.imul(z,he),p=p+Math.imul(H,me)|0,E=Math.imul(H,he),x=x+Math.imul(F,ke)|0,p=p+Math.imul(F,De)|0,p=p+Math.imul(N,ke)|0,E=E+Math.imul(N,De)|0,x=x+Math.imul(We,Ie)|0,p=p+Math.imul(We,_e)|0,p=p+Math.imul(Y,Ie)|0,E=E+Math.imul(Y,_e)|0,x=x+Math.imul(Ve,ye)|0,p=p+Math.imul(Ve,Re)|0,p=p+Math.imul(Me,ye)|0,E=E+Math.imul(Me,Re)|0,x=x+Math.imul(fe,Ke)|0,p=p+Math.imul(fe,Fe)|0,p=p+Math.imul(te,Ke)|0,E=E+Math.imul(te,Fe)|0,x=x+Math.imul(Z,be)|0,p=p+Math.imul(Z,Ue)|0,p=p+Math.imul(J,be)|0,E=E+Math.imul(J,Ue)|0,x=x+Math.imul(ie,it)|0,p=p+Math.imul(ie,Ye)|0,p=p+Math.imul(ce,it)|0,E=E+Math.imul(ce,Ye)|0,x=x+Math.imul(de,pt)|0,p=p+Math.imul(de,qe)|0,p=p+Math.imul(P,pt)|0,E=E+Math.imul(P,qe)|0,x=x+Math.imul(U,Mt)|0,p=p+Math.imul(U,He)|0,p=p+Math.imul(S,Mt)|0,E=E+Math.imul(S,He)|0;var An=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(An>>>26)|0,An&=67108863,x=Math.imul(re,me),p=Math.imul(re,he),p=p+Math.imul(se,me)|0,E=Math.imul(se,he),x=x+Math.imul(z,ke)|0,p=p+Math.imul(z,De)|0,p=p+Math.imul(H,ke)|0,E=E+Math.imul(H,De)|0,x=x+Math.imul(F,Ie)|0,p=p+Math.imul(F,_e)|0,p=p+Math.imul(N,Ie)|0,E=E+Math.imul(N,_e)|0,x=x+Math.imul(We,ye)|0,p=p+Math.imul(We,Re)|0,p=p+Math.imul(Y,ye)|0,E=E+Math.imul(Y,Re)|0,x=x+Math.imul(Ve,Ke)|0,p=p+Math.imul(Ve,Fe)|0,p=p+Math.imul(Me,Ke)|0,E=E+Math.imul(Me,Fe)|0,x=x+Math.imul(fe,be)|0,p=p+Math.imul(fe,Ue)|0,p=p+Math.imul(te,be)|0,E=E+Math.imul(te,Ue)|0,x=x+Math.imul(Z,it)|0,p=p+Math.imul(Z,Ye)|0,p=p+Math.imul(J,it)|0,E=E+Math.imul(J,Ye)|0,x=x+Math.imul(ie,pt)|0,p=p+Math.imul(ie,qe)|0,p=p+Math.imul(ce,pt)|0,E=E+Math.imul(ce,qe)|0,x=x+Math.imul(de,Mt)|0,p=p+Math.imul(de,He)|0,p=p+Math.imul(P,Mt)|0,E=E+Math.imul(P,He)|0,x=x+Math.imul(U,Je)|0,p=p+Math.imul(U,$e)|0,p=p+Math.imul(S,Je)|0,E=E+Math.imul(S,$e)|0;var oa=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(oa>>>26)|0,oa&=67108863,x=Math.imul(re,ke),p=Math.imul(re,De),p=p+Math.imul(se,ke)|0,E=Math.imul(se,De),x=x+Math.imul(z,Ie)|0,p=p+Math.imul(z,_e)|0,p=p+Math.imul(H,Ie)|0,E=E+Math.imul(H,_e)|0,x=x+Math.imul(F,ye)|0,p=p+Math.imul(F,Re)|0,p=p+Math.imul(N,ye)|0,E=E+Math.imul(N,Re)|0,x=x+Math.imul(We,Ke)|0,p=p+Math.imul(We,Fe)|0,p=p+Math.imul(Y,Ke)|0,E=E+Math.imul(Y,Fe)|0,x=x+Math.imul(Ve,be)|0,p=p+Math.imul(Ve,Ue)|0,p=p+Math.imul(Me,be)|0,E=E+Math.imul(Me,Ue)|0,x=x+Math.imul(fe,it)|0,p=p+Math.imul(fe,Ye)|0,p=p+Math.imul(te,it)|0,E=E+Math.imul(te,Ye)|0,x=x+Math.imul(Z,pt)|0,p=p+Math.imul(Z,qe)|0,p=p+Math.imul(J,pt)|0,E=E+Math.imul(J,qe)|0,x=x+Math.imul(ie,Mt)|0,p=p+Math.imul(ie,He)|0,p=p+Math.imul(ce,Mt)|0,E=E+Math.imul(ce,He)|0,x=x+Math.imul(de,Je)|0,p=p+Math.imul(de,$e)|0,p=p+Math.imul(P,Je)|0,E=E+Math.imul(P,$e)|0;var ia=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(ia>>>26)|0,ia&=67108863,x=Math.imul(re,Ie),p=Math.imul(re,_e),p=p+Math.imul(se,Ie)|0,E=Math.imul(se,_e),x=x+Math.imul(z,ye)|0,p=p+Math.imul(z,Re)|0,p=p+Math.imul(H,ye)|0,E=E+Math.imul(H,Re)|0,x=x+Math.imul(F,Ke)|0,p=p+Math.imul(F,Fe)|0,p=p+Math.imul(N,Ke)|0,E=E+Math.imul(N,Fe)|0,x=x+Math.imul(We,be)|0,p=p+Math.imul(We,Ue)|0,p=p+Math.imul(Y,be)|0,E=E+Math.imul(Y,Ue)|0,x=x+Math.imul(Ve,it)|0,p=p+Math.imul(Ve,Ye)|0,p=p+Math.imul(Me,it)|0,E=E+Math.imul(Me,Ye)|0,x=x+Math.imul(fe,pt)|0,p=p+Math.imul(fe,qe)|0,p=p+Math.imul(te,pt)|0,E=E+Math.imul(te,qe)|0,x=x+Math.imul(Z,Mt)|0,p=p+Math.imul(Z,He)|0,p=p+Math.imul(J,Mt)|0,E=E+Math.imul(J,He)|0,x=x+Math.imul(ie,Je)|0,p=p+Math.imul(ie,$e)|0,p=p+Math.imul(ce,Je)|0,E=E+Math.imul(ce,$e)|0;var aa=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(aa>>>26)|0,aa&=67108863,x=Math.imul(re,ye),p=Math.imul(re,Re),p=p+Math.imul(se,ye)|0,E=Math.imul(se,Re),x=x+Math.imul(z,Ke)|0,p=p+Math.imul(z,Fe)|0,p=p+Math.imul(H,Ke)|0,E=E+Math.imul(H,Fe)|0,x=x+Math.imul(F,be)|0,p=p+Math.imul(F,Ue)|0,p=p+Math.imul(N,be)|0,E=E+Math.imul(N,Ue)|0,x=x+Math.imul(We,it)|0,p=p+Math.imul(We,Ye)|0,p=p+Math.imul(Y,it)|0,E=E+Math.imul(Y,Ye)|0,x=x+Math.imul(Ve,pt)|0,p=p+Math.imul(Ve,qe)|0,p=p+Math.imul(Me,pt)|0,E=E+Math.imul(Me,qe)|0,x=x+Math.imul(fe,Mt)|0,p=p+Math.imul(fe,He)|0,p=p+Math.imul(te,Mt)|0,E=E+Math.imul(te,He)|0,x=x+Math.imul(Z,Je)|0,p=p+Math.imul(Z,$e)|0,p=p+Math.imul(J,Je)|0,E=E+Math.imul(J,$e)|0;var sa=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(re,Ke),p=Math.imul(re,Fe),p=p+Math.imul(se,Ke)|0,E=Math.imul(se,Fe),x=x+Math.imul(z,be)|0,p=p+Math.imul(z,Ue)|0,p=p+Math.imul(H,be)|0,E=E+Math.imul(H,Ue)|0,x=x+Math.imul(F,it)|0,p=p+Math.imul(F,Ye)|0,p=p+Math.imul(N,it)|0,E=E+Math.imul(N,Ye)|0,x=x+Math.imul(We,pt)|0,p=p+Math.imul(We,qe)|0,p=p+Math.imul(Y,pt)|0,E=E+Math.imul(Y,qe)|0,x=x+Math.imul(Ve,Mt)|0,p=p+Math.imul(Ve,He)|0,p=p+Math.imul(Me,Mt)|0,E=E+Math.imul(Me,He)|0,x=x+Math.imul(fe,Je)|0,p=p+Math.imul(fe,$e)|0,p=p+Math.imul(te,Je)|0,E=E+Math.imul(te,$e)|0;var la=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(la>>>26)|0,la&=67108863,x=Math.imul(re,be),p=Math.imul(re,Ue),p=p+Math.imul(se,be)|0,E=Math.imul(se,Ue),x=x+Math.imul(z,it)|0,p=p+Math.imul(z,Ye)|0,p=p+Math.imul(H,it)|0,E=E+Math.imul(H,Ye)|0,x=x+Math.imul(F,pt)|0,p=p+Math.imul(F,qe)|0,p=p+Math.imul(N,pt)|0,E=E+Math.imul(N,qe)|0,x=x+Math.imul(We,Mt)|0,p=p+Math.imul(We,He)|0,p=p+Math.imul(Y,Mt)|0,E=E+Math.imul(Y,He)|0,x=x+Math.imul(Ve,Je)|0,p=p+Math.imul(Ve,$e)|0,p=p+Math.imul(Me,Je)|0,E=E+Math.imul(Me,$e)|0;var ua=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(ua>>>26)|0,ua&=67108863,x=Math.imul(re,it),p=Math.imul(re,Ye),p=p+Math.imul(se,it)|0,E=Math.imul(se,Ye),x=x+Math.imul(z,pt)|0,p=p+Math.imul(z,qe)|0,p=p+Math.imul(H,pt)|0,E=E+Math.imul(H,qe)|0,x=x+Math.imul(F,Mt)|0,p=p+Math.imul(F,He)|0,p=p+Math.imul(N,Mt)|0,E=E+Math.imul(N,He)|0,x=x+Math.imul(We,Je)|0,p=p+Math.imul(We,$e)|0,p=p+Math.imul(Y,Je)|0,E=E+Math.imul(Y,$e)|0;var ca=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(ca>>>26)|0,ca&=67108863,x=Math.imul(re,pt),p=Math.imul(re,qe),p=p+Math.imul(se,pt)|0,E=Math.imul(se,qe),x=x+Math.imul(z,Mt)|0,p=p+Math.imul(z,He)|0,p=p+Math.imul(H,Mt)|0,E=E+Math.imul(H,He)|0,x=x+Math.imul(F,Je)|0,p=p+Math.imul(F,$e)|0,p=p+Math.imul(N,Je)|0,E=E+Math.imul(N,$e)|0;var fa=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(fa>>>26)|0,fa&=67108863,x=Math.imul(re,Mt),p=Math.imul(re,He),p=p+Math.imul(se,Mt)|0,E=Math.imul(se,He),x=x+Math.imul(z,Je)|0,p=p+Math.imul(z,$e)|0,p=p+Math.imul(H,Je)|0,E=E+Math.imul(H,$e)|0;var da=(y+x|0)+((p&8191)<<13)|0;y=(E+(p>>>13)|0)+(da>>>26)|0,da&=67108863,x=Math.imul(re,Je),p=Math.imul(re,$e),p=p+Math.imul(se,Je)|0,E=Math.imul(se,$e);var ha=(y+x|0)+((p&8191)<<13)|0;return y=(E+(p>>>13)|0)+(ha>>>26)|0,ha&=67108863,m[0]=at,m[1]=sr,m[2]=st,m[3]=dt,m[4]=kn,m[5]=Tn,m[6]=Pn,m[7]=Rn,m[8]=An,m[9]=oa,m[10]=ia,m[11]=aa,m[12]=sa,m[13]=la,m[14]=ua,m[15]=ca,m[16]=fa,m[17]=da,m[18]=ha,y!==0&&(m[19]=y,A.length++),A};Math.imul||(R=k);function I(G,w,T){T.negative=w.negative^G.negative,T.length=G.length+w.length;for(var A=0,b=0,u=0;u<T.length-1;u++){var m=b;b=0;for(var y=A&67108863,x=Math.min(u,w.length-1),p=Math.max(0,u-G.length+1);p<=x;p++){var E=u-p,q=G.words[E]|0,U=w.words[p]|0,S=q*U,W=S&67108863;m=m+(S/67108864|0)|0,W=W+y|0,y=W&67108863,m=m+(W>>>26)|0,b+=m>>>26,m&=67108863}T.words[u]=y,A=m,m=b}return A!==0?T.words[u]=A:T.length--,T.strip()}function V(G,w,T){var A=new j;return A.mulp(G,w,T)}o.prototype.mulTo=function(w,T){var A,b=this.length+w.length;return this.length===10&&w.length===10?A=R(this,w,T):b<63?A=k(this,w,T):b<1024?A=I(this,w,T):A=V(this,w,T),A};function j(G,w){this.x=G,this.y=w}j.prototype.makeRBT=function(w){for(var T=new Array(w),A=o.prototype._countBits(w)-1,b=0;b<w;b++)T[b]=this.revBin(b,A,w);return T},j.prototype.revBin=function(w,T,A){if(w===0||w===A-1)return w;for(var b=0,u=0;u<T;u++)b|=(w&1)<<T-u-1,w>>=1;return b},j.prototype.permute=function(w,T,A,b,u,m){for(var y=0;y<m;y++)b[y]=T[w[y]],u[y]=A[w[y]]},j.prototype.transform=function(w,T,A,b,u,m){this.permute(m,w,T,A,b,u);for(var y=1;y<u;y<<=1)for(var x=y<<1,p=Math.cos(2*Math.PI/x),E=Math.sin(2*Math.PI/x),q=0;q<u;q+=x)for(var U=p,S=E,W=0;W<y;W++){var de=A[q+W],P=b[q+W],ee=A[q+W+y],ie=b[q+W+y],ce=U*ee-S*ie;ie=U*ie+S*ee,ee=ce,A[q+W]=de+ee,b[q+W]=P+ie,A[q+W+y]=de-ee,b[q+W+y]=P-ie,W!==x&&(ce=p*U-E*S,S=p*S+E*U,U=ce)}},j.prototype.guessLen13b=function(w,T){var A=Math.max(T,w)|1,b=A&1,u=0;for(A=A/2|0;A;A=A>>>1)u++;return 1<<u+1+b},j.prototype.conjugate=function(w,T,A){if(!(A<=1))for(var b=0;b<A/2;b++){var u=w[b];w[b]=w[A-b-1],w[A-b-1]=u,u=T[b],T[b]=-T[A-b-1],T[A-b-1]=-u}},j.prototype.normalize13b=function(w,T){for(var A=0,b=0;b<T/2;b++){var u=Math.round(w[2*b+1]/T)*8192+Math.round(w[2*b]/T)+A;w[b]=u&67108863,u<67108864?A=0:A=u/67108864|0}return w},j.prototype.convert13b=function(w,T,A,b){for(var u=0,m=0;m<T;m++)u=u+(w[m]|0),A[2*m]=u&8191,u=u>>>13,A[2*m+1]=u&8191,u=u>>>13;for(m=2*T;m<b;++m)A[m]=0;r(u===0),r((u&-8192)===0)},j.prototype.stub=function(w){for(var T=new Array(w),A=0;A<w;A++)T[A]=0;return T},j.prototype.mulp=function(w,T,A){var b=2*this.guessLen13b(w.length,T.length),u=this.makeRBT(b),m=this.stub(b),y=new Array(b),x=new Array(b),p=new Array(b),E=new Array(b),q=new Array(b),U=new Array(b),S=A.words;S.length=b,this.convert13b(w.words,w.length,y,b),this.convert13b(T.words,T.length,E,b),this.transform(y,m,x,p,b,u),this.transform(E,m,q,U,b,u);for(var W=0;W<b;W++){var de=x[W]*q[W]-p[W]*U[W];p[W]=x[W]*U[W]+p[W]*q[W],x[W]=de}return this.conjugate(x,p,b),this.transform(x,p,S,m,b,u),this.conjugate(S,m,b),this.normalize13b(S,b),A.negative=w.negative^T.negative,A.length=w.length+T.length,A.strip()},o.prototype.mul=function(w){var T=new o(null);return T.words=new Array(this.length+w.length),this.mulTo(w,T)},o.prototype.mulf=function(w){var T=new o(null);return T.words=new Array(this.length+w.length),V(this,w,T)},o.prototype.imul=function(w){return this.clone().mulTo(w,this)},o.prototype.imuln=function(w){r(typeof w=="number"),r(w<67108864);for(var T=0,A=0;A<this.length;A++){var b=(this.words[A]|0)*w,u=(b&67108863)+(T&67108863);T>>=26,T+=b/67108864|0,T+=u>>>26,this.words[A]=u&67108863}return T!==0&&(this.words[A]=T,this.length++),this},o.prototype.muln=function(w){return this.clone().imuln(w)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(w){var T=_(w);if(T.length===0)return new o(1);for(var A=this,b=0;b<T.length&&T[b]===0;b++,A=A.sqr());if(++b<T.length)for(var u=A.sqr();b<T.length;b++,u=u.sqr())T[b]!==0&&(A=A.mul(u));return A},o.prototype.iushln=function(w){r(typeof w=="number"&&w>=0);var T=w%26,A=(w-T)/26,b=67108863>>>26-T<<26-T,u;if(T!==0){var m=0;for(u=0;u<this.length;u++){var y=this.words[u]&b,x=(this.words[u]|0)-y<<T;this.words[u]=x|m,m=y>>>26-T}m&&(this.words[u]=m,this.length++)}if(A!==0){for(u=this.length-1;u>=0;u--)this.words[u+A]=this.words[u];for(u=0;u<A;u++)this.words[u]=0;this.length+=A}return this.strip()},o.prototype.ishln=function(w){return r(this.negative===0),this.iushln(w)},o.prototype.iushrn=function(w,T,A){r(typeof w=="number"&&w>=0);var b;T?b=(T-T%26)/26:b=0;var u=w%26,m=Math.min((w-u)/26,this.length),y=67108863^67108863>>>u<<u,x=A;if(b-=m,b=Math.max(0,b),x){for(var p=0;p<m;p++)x.words[p]=this.words[p];x.length=m}if(m!==0)if(this.length>m)for(this.length-=m,p=0;p<this.length;p++)this.words[p]=this.words[p+m];else this.words[0]=0,this.length=1;var E=0;for(p=this.length-1;p>=0&&(E!==0||p>=b);p--){var q=this.words[p]|0;this.words[p]=E<<26-u|q>>>u,E=q&y}return x&&E!==0&&(x.words[x.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(w,T,A){return r(this.negative===0),this.iushrn(w,T,A)},o.prototype.shln=function(w){return this.clone().ishln(w)},o.prototype.ushln=function(w){return this.clone().iushln(w)},o.prototype.shrn=function(w){return this.clone().ishrn(w)},o.prototype.ushrn=function(w){return this.clone().iushrn(w)},o.prototype.testn=function(w){r(typeof w=="number"&&w>=0);var T=w%26,A=(w-T)/26,b=1<<T;if(this.length<=A)return!1;var u=this.words[A];return!!(u&b)},o.prototype.imaskn=function(w){r(typeof w=="number"&&w>=0);var T=w%26,A=(w-T)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(T!==0&&A++,this.length=Math.min(A,this.length),T!==0){var b=67108863^67108863>>>T<<T;this.words[this.length-1]&=b}return this.strip()},o.prototype.maskn=function(w){return this.clone().imaskn(w)},o.prototype.iaddn=function(w){return r(typeof w=="number"),r(w<67108864),w<0?this.isubn(-w):this.negative!==0?this.length===1&&(this.words[0]|0)<w?(this.words[0]=w-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(w),this.negative=1,this):this._iaddn(w)},o.prototype._iaddn=function(w){this.words[0]+=w;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},o.prototype.isubn=function(w){if(r(typeof w=="number"),r(w<67108864),w<0)return this.iaddn(-w);if(this.negative!==0)return this.negative=0,this.iaddn(w),this.negative=1,this;if(this.words[0]-=w,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this.strip()},o.prototype.addn=function(w){return this.clone().iaddn(w)},o.prototype.subn=function(w){return this.clone().isubn(w)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(w,T,A){var b=w.length+A,u;this._expand(b);var m,y=0;for(u=0;u<w.length;u++){m=(this.words[u+A]|0)+y;var x=(w.words[u]|0)*T;m-=x&67108863,y=(m>>26)-(x/67108864|0),this.words[u+A]=m&67108863}for(;u<this.length-A;u++)m=(this.words[u+A]|0)+y,y=m>>26,this.words[u+A]=m&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)m=-(this.words[u]|0)+y,y=m>>26,this.words[u]=m&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(w,T){var A=this.length-w.length,b=this.clone(),u=w,m=u.words[u.length-1]|0,y=this._countBits(m);A=26-y,A!==0&&(u=u.ushln(A),b.iushln(A),m=u.words[u.length-1]|0);var x=b.length-u.length,p;if(T!=="mod"){p=new o(null),p.length=x+1,p.words=new Array(p.length);for(var E=0;E<p.length;E++)p.words[E]=0}var q=b.clone()._ishlnsubmul(u,1,x);q.negative===0&&(b=q,p&&(p.words[x]=1));for(var U=x-1;U>=0;U--){var S=(b.words[u.length+U]|0)*67108864+(b.words[u.length+U-1]|0);for(S=Math.min(S/m|0,67108863),b._ishlnsubmul(u,S,U);b.negative!==0;)S--,b.negative=0,b._ishlnsubmul(u,1,U),b.isZero()||(b.negative^=1);p&&(p.words[U]=S)}return p&&p.strip(),b.strip(),T!=="div"&&A!==0&&b.iushrn(A),{div:p||null,mod:b}},o.prototype.divmod=function(w,T,A){if(r(!w.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var b,u,m;return this.negative!==0&&w.negative===0?(m=this.neg().divmod(w,T),T!=="mod"&&(b=m.div.neg()),T!=="div"&&(u=m.mod.neg(),A&&u.negative!==0&&u.iadd(w)),{div:b,mod:u}):this.negative===0&&w.negative!==0?(m=this.divmod(w.neg(),T),T!=="mod"&&(b=m.div.neg()),{div:b,mod:m.mod}):(this.negative&w.negative)!==0?(m=this.neg().divmod(w.neg(),T),T!=="div"&&(u=m.mod.neg(),A&&u.negative!==0&&u.isub(w)),{div:m.div,mod:u}):w.length>this.length||this.cmp(w)<0?{div:new o(0),mod:this}:w.length===1?T==="div"?{div:this.divn(w.words[0]),mod:null}:T==="mod"?{div:null,mod:new o(this.modn(w.words[0]))}:{div:this.divn(w.words[0]),mod:new o(this.modn(w.words[0]))}:this._wordDiv(w,T)},o.prototype.div=function(w){return this.divmod(w,"div",!1).div},o.prototype.mod=function(w){return this.divmod(w,"mod",!1).mod},o.prototype.umod=function(w){return this.divmod(w,"mod",!0).mod},o.prototype.divRound=function(w){var T=this.divmod(w);if(T.mod.isZero())return T.div;var A=T.div.negative!==0?T.mod.isub(w):T.mod,b=w.ushrn(1),u=w.andln(1),m=A.cmp(b);return m<0||u===1&&m===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},o.prototype.modn=function(w){r(w<=67108863);for(var T=(1<<26)%w,A=0,b=this.length-1;b>=0;b--)A=(T*A+(this.words[b]|0))%w;return A},o.prototype.idivn=function(w){r(w<=67108863);for(var T=0,A=this.length-1;A>=0;A--){var b=(this.words[A]|0)+T*67108864;this.words[A]=b/w|0,T=b%w}return this.strip()},o.prototype.divn=function(w){return this.clone().idivn(w)},o.prototype.egcd=function(w){r(w.negative===0),r(!w.isZero());var T=this,A=w.clone();T.negative!==0?T=T.umod(w):T=T.clone();for(var b=new o(1),u=new o(0),m=new o(0),y=new o(1),x=0;T.isEven()&&A.isEven();)T.iushrn(1),A.iushrn(1),++x;for(var p=A.clone(),E=T.clone();!T.isZero();){for(var q=0,U=1;(T.words[0]&U)===0&&q<26;++q,U<<=1);if(q>0)for(T.iushrn(q);q-- >0;)(b.isOdd()||u.isOdd())&&(b.iadd(p),u.isub(E)),b.iushrn(1),u.iushrn(1);for(var S=0,W=1;(A.words[0]&W)===0&&S<26;++S,W<<=1);if(S>0)for(A.iushrn(S);S-- >0;)(m.isOdd()||y.isOdd())&&(m.iadd(p),y.isub(E)),m.iushrn(1),y.iushrn(1);T.cmp(A)>=0?(T.isub(A),b.isub(m),u.isub(y)):(A.isub(T),m.isub(b),y.isub(u))}return{a:m,b:y,gcd:A.iushln(x)}},o.prototype._invmp=function(w){r(w.negative===0),r(!w.isZero());var T=this,A=w.clone();T.negative!==0?T=T.umod(w):T=T.clone();for(var b=new o(1),u=new o(0),m=A.clone();T.cmpn(1)>0&&A.cmpn(1)>0;){for(var y=0,x=1;(T.words[0]&x)===0&&y<26;++y,x<<=1);if(y>0)for(T.iushrn(y);y-- >0;)b.isOdd()&&b.iadd(m),b.iushrn(1);for(var p=0,E=1;(A.words[0]&E)===0&&p<26;++p,E<<=1);if(p>0)for(A.iushrn(p);p-- >0;)u.isOdd()&&u.iadd(m),u.iushrn(1);T.cmp(A)>=0?(T.isub(A),b.isub(u)):(A.isub(T),u.isub(b))}var q;return T.cmpn(1)===0?q=b:q=u,q.cmpn(0)<0&&q.iadd(w),q},o.prototype.gcd=function(w){if(this.isZero())return w.abs();if(w.isZero())return this.abs();var T=this.clone(),A=w.clone();T.negative=0,A.negative=0;for(var b=0;T.isEven()&&A.isEven();b++)T.iushrn(1),A.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;A.isEven();)A.iushrn(1);var u=T.cmp(A);if(u<0){var m=T;T=A,A=m}else if(u===0||A.cmpn(1)===0)break;T.isub(A)}while(!0);return A.iushln(b)},o.prototype.invm=function(w){return this.egcd(w).a.umod(w)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(w){return this.words[0]&w},o.prototype.bincn=function(w){r(typeof w=="number");var T=w%26,A=(w-T)/26,b=1<<T;if(this.length<=A)return this._expand(A+1),this.words[A]|=b,this;for(var u=b,m=A;u!==0&&m<this.length;m++){var y=this.words[m]|0;y+=u,u=y>>>26,y&=67108863,this.words[m]=y}return u!==0&&(this.words[m]=u,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(w){var T=w<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this.strip();var A;if(this.length>1)A=1;else{T&&(w=-w),r(w<=67108863,"Number is too big");var b=this.words[0]|0;A=b===w?0:b<w?-1:1}return this.negative!==0?-A|0:A},o.prototype.cmp=function(w){if(this.negative!==0&&w.negative===0)return-1;if(this.negative===0&&w.negative!==0)return 1;var T=this.ucmp(w);return this.negative!==0?-T|0:T},o.prototype.ucmp=function(w){if(this.length>w.length)return 1;if(this.length<w.length)return-1;for(var T=0,A=this.length-1;A>=0;A--){var b=this.words[A]|0,u=w.words[A]|0;if(b!==u){b<u?T=-1:b>u&&(T=1);break}}return T},o.prototype.gtn=function(w){return this.cmpn(w)===1},o.prototype.gt=function(w){return this.cmp(w)===1},o.prototype.gten=function(w){return this.cmpn(w)>=0},o.prototype.gte=function(w){return this.cmp(w)>=0},o.prototype.ltn=function(w){return this.cmpn(w)===-1},o.prototype.lt=function(w){return this.cmp(w)===-1},o.prototype.lten=function(w){return this.cmpn(w)<=0},o.prototype.lte=function(w){return this.cmp(w)<=0},o.prototype.eqn=function(w){return this.cmpn(w)===0},o.prototype.eq=function(w){return this.cmp(w)===0},o.red=function(w){return new ae(w)},o.prototype.toRed=function(w){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),w.convertTo(this)._forceRed(w)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(w){return this.red=w,this},o.prototype.forceRed=function(w){return r(!this.red,"Already a number in reduction context"),this._forceRed(w)},o.prototype.redAdd=function(w){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,w)},o.prototype.redIAdd=function(w){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,w)},o.prototype.redSub=function(w){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,w)},o.prototype.redISub=function(w){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,w)},o.prototype.redShl=function(w){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,w)},o.prototype.redMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.mul(this,w)},o.prototype.redIMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.imul(this,w)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(w){return r(this.red&&!w.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,w)};var L={k256:null,p224:null,p192:null,p25519:null};function D(G,w){this.name=G,this.p=new o(w,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var w=new o(null);return w.words=new Array(Math.ceil(this.n/13)),w},D.prototype.ireduce=function(w){var T=w,A;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),A=T.bitLength();while(A>this.n);var b=A<this.n?-1:T.ucmp(this.p);return b===0?(T.words[0]=0,T.length=1):b>0?T.isub(this.p):T.strip(),T},D.prototype.split=function(w,T){w.iushrn(this.n,0,T)},D.prototype.imulK=function(w){return w.imul(this.k)};function B(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(B,D),B.prototype.split=function(w,T){for(var A=4194303,b=Math.min(w.length,9),u=0;u<b;u++)T.words[u]=w.words[u];if(T.length=b,w.length<=9){w.words[0]=0,w.length=1;return}var m=w.words[9];for(T.words[T.length++]=m&A,u=10;u<w.length;u++){var y=w.words[u]|0;w.words[u-10]=(y&A)<<4|m>>>22,m=y}m>>>=22,w.words[u-10]=m,m===0&&w.length>10?w.length-=10:w.length-=9},B.prototype.imulK=function(w){w.words[w.length]=0,w.words[w.length+1]=0,w.length+=2;for(var T=0,A=0;A<w.length;A++){var b=w.words[A]|0;T+=b*977,w.words[A]=T&67108863,T=b*64+(T/67108864|0)}return w.words[w.length-1]===0&&(w.length--,w.words[w.length-1]===0&&w.length--),w};function K(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(K,D);function X(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(X,D);function ue(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ue,D),ue.prototype.imulK=function(w){for(var T=0,A=0;A<w.length;A++){var b=(w.words[A]|0)*19+T,u=b&67108863;b>>>=26,w.words[A]=u,T=b}return T!==0&&(w.words[w.length++]=T),w},o._prime=function(w){if(L[w])return L[w];var T;if(w==="k256")T=new B;else if(w==="p224")T=new K;else if(w==="p192")T=new X;else if(w==="p25519")T=new ue;else throw new Error("Unknown prime "+w);return L[w]=T,T};function ae(G){if(typeof G=="string"){var w=o._prime(G);this.m=w.p,this.prime=w}else r(G.gtn(1),"modulus must be greater than 1"),this.m=G,this.prime=null}ae.prototype._verify1=function(w){r(w.negative===0,"red works only with positives"),r(w.red,"red works only with red numbers")},ae.prototype._verify2=function(w,T){r((w.negative|T.negative)===0,"red works only with positives"),r(w.red&&w.red===T.red,"red works only with red numbers")},ae.prototype.imod=function(w){return this.prime?this.prime.ireduce(w)._forceRed(this):w.umod(this.m)._forceRed(this)},ae.prototype.neg=function(w){return w.isZero()?w.clone():this.m.sub(w)._forceRed(this)},ae.prototype.add=function(w,T){this._verify2(w,T);var A=w.add(T);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},ae.prototype.iadd=function(w,T){this._verify2(w,T);var A=w.iadd(T);return A.cmp(this.m)>=0&&A.isub(this.m),A},ae.prototype.sub=function(w,T){this._verify2(w,T);var A=w.sub(T);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},ae.prototype.isub=function(w,T){this._verify2(w,T);var A=w.isub(T);return A.cmpn(0)<0&&A.iadd(this.m),A},ae.prototype.shl=function(w,T){return this._verify1(w),this.imod(w.ushln(T))},ae.prototype.imul=function(w,T){return this._verify2(w,T),this.imod(w.imul(T))},ae.prototype.mul=function(w,T){return this._verify2(w,T),this.imod(w.mul(T))},ae.prototype.isqr=function(w){return this.imul(w,w.clone())},ae.prototype.sqr=function(w){return this.mul(w,w)},ae.prototype.sqrt=function(w){if(w.isZero())return w.clone();var T=this.m.andln(3);if(r(T%2===1),T===3){var A=this.m.add(new o(1)).iushrn(2);return this.pow(w,A)}for(var b=this.m.subn(1),u=0;!b.isZero()&&b.andln(1)===0;)u++,b.iushrn(1);r(!b.isZero());var m=new o(1).toRed(this),y=m.redNeg(),x=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new o(2*p*p).toRed(this);this.pow(p,x).cmp(y)!==0;)p.redIAdd(y);for(var E=this.pow(p,b),q=this.pow(w,b.addn(1).iushrn(1)),U=this.pow(w,b),S=u;U.cmp(m)!==0;){for(var W=U,de=0;W.cmp(m)!==0;de++)W=W.redSqr();r(de<S);var P=this.pow(E,new o(1).iushln(S-de-1));q=q.redMul(P),E=P.redSqr(),U=U.redMul(E),S=de}return q},ae.prototype.invm=function(w){var T=w._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},ae.prototype.pow=function(w,T){if(T.isZero())return new o(1).toRed(this);if(T.cmpn(1)===0)return w.clone();var A=4,b=new Array(1<<A);b[0]=new o(1).toRed(this),b[1]=w;for(var u=2;u<b.length;u++)b[u]=this.mul(b[u-1],w);var m=b[0],y=0,x=0,p=T.bitLength()%26;for(p===0&&(p=26),u=T.length-1;u>=0;u--){for(var E=T.words[u],q=p-1;q>=0;q--){var U=E>>q&1;if(m!==b[0]&&(m=this.sqr(m)),U===0&&y===0){x=0;continue}y<<=1,y|=U,x++,!(x!==A&&(u!==0||q!==0))&&(m=this.mul(m,b[y]),x=0,y=0)}p=26}return m},ae.prototype.convertTo=function(w){var T=w.umod(this.m);return T===w?T.clone():T},ae.prototype.convertFrom=function(w){var T=w.clone();return T.red=null,T},o.mont=function(w){return new ve(w)};function ve(G){ae.call(this,G),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(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(ve,ae),ve.prototype.convertTo=function(w){return this.imod(w.ushln(this.shift))},ve.prototype.convertFrom=function(w){var T=this.imod(w.mul(this.rinv));return T.red=null,T},ve.prototype.imul=function(w,T){if(w.isZero()||T.isZero())return w.words[0]=0,w.length=1,w;var A=w.imul(T),b=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=A.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.mul=function(w,T){if(w.isZero()||T.isZero())return new o(0)._forceRed(this);var A=w.mul(T),b=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=A.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.invm=function(w){var T=this.imod(w._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(typeof H1>"u"||H1,Ck)});var q1=Qe((Joe,Rk)=>{f();h();d();Rk.exports=W1;W1.strict=Tk;W1.loose=Pk;var PB=Object.prototype.toString,RB={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function W1(e){return Tk(e)||Pk(e)}function Tk(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function Pk(e){return RB[PB.call(e)]}});var Ik=Qe((eie,Ak)=>{f();h();d();var AB=q1().strict;Ak.exports=function(t){if(AB(t)){var r=C.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(r=r.slice(t.byteOffset,t.byteOffset+t.byteLength)),r}else return C.from(t)}});var y8=Qe((fie,l0)=>{f();h();d();var Xk,Jk,e8,t8,r8,n8,o8,i8,a8,s0,X1,s8,l8,Jl,u8,c8,f8,d8,h8,p8,m8,g8,v8;(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 l0=="object"&&typeof l0.exports=="object"?e(r(t,r(l0.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};Xk=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},Jk=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},e8=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o},t8=function(r,n,o,i){var a=arguments.length,s=a<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,n,o,i);else for(var c=r.length-1;c>=0;c--)(l=r[c])&&(s=(a<3?l(s):a>3?l(n,o,s):l(n,o))||s);return a>3&&s&&Object.defineProperty(n,o,s),s},r8=function(r,n){return function(o,i){n(o,i,r)}},n8=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},o8=function(r,n,o,i){function a(s){return s instanceof o?s:new o(function(l){l(s)})}return new(o||(o=Promise))(function(s,l){function c(k){try{_(i.next(k))}catch(R){l(R)}}function g(k){try{_(i.throw(k))}catch(R){l(R)}}function _(k){k.done?s(k.value):a(k.value).then(c,g)}_((i=i.apply(r,n||[])).next())})},i8=function(r,n){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(_){return function(k){return g([_,k])}}function g(_){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,a&&(s=_[0]&2?a.return:_[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,_[1])).done)return s;switch(a=0,s&&(_=[_[0]&2,s.value]),_[0]){case 0:case 1:s=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,a=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(_[0]===6||_[0]===2)){o=0;continue}if(_[0]===3&&(!s||_[1]>s[0]&&_[1]<s[3])){o.label=_[1];break}if(_[0]===6&&o.label<s[1]){o.label=s[1],s=_;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(_);break}s[2]&&o.ops.pop(),o.trys.pop();continue}_=n.call(r,o)}catch(k){_=[6,k],a=0}finally{i=s=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},v8=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},a8=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},s0=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},X1=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),a,s=[],l;try{for(;(n===void 0||n-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return s},s8=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(X1(arguments[n]));return r},l8=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),a=0,n=0;n<o;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,a++)i[a]=s[l];return i},Jl=function(r){return this instanceof Jl?(this.v=r,this):new Jl(r)},u8=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),a,s=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(I){i[I]&&(a[I]=function(V){return new Promise(function(j,L){s.push([I,V,j,L])>1||c(I,V)})})}function c(I,V){try{g(i[I](V))}catch(j){R(s[0][3],j)}}function g(I){I.value instanceof Jl?Promise.resolve(I.value.v).then(_,k):R(s[0][2],I)}function _(I){c("next",I)}function k(I){c("throw",I)}function R(I,V){I(V),s.shift(),s.length&&c(s[0][0],s[0][1])}},c8=function(r){var n,o;return n={},i("next"),i("throw",function(a){throw a}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(a,s){n[a]=r[a]?function(l){return(o=!o)?{value:Jl(r[a](l)),done:a==="return"}:s?s(l):l}:s}},f8=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof s0=="function"?s0(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(s){o[s]=r[s]&&function(l){return new Promise(function(c,g){l=r[s](l),a(c,g,l.done,l.value)})}}function a(s,l,c,g){Promise.resolve(g).then(function(_){s({value:_,done:c})},l)}},d8=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},h8=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},p8=function(r){return r&&r.__esModule?r:{default:r}},m8=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},g8=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",Xk),e("__assign",Jk),e("__rest",e8),e("__decorate",t8),e("__param",r8),e("__metadata",n8),e("__awaiter",o8),e("__generator",i8),e("__exportStar",a8),e("__createBinding",v8),e("__values",s0),e("__read",X1),e("__spread",s8),e("__spreadArrays",l8),e("__await",Jl),e("__asyncGenerator",u8),e("__asyncDelegator",c8),e("__asyncValues",f8),e("__makeTemplateObject",d8),e("__importStar",h8),e("__importDefault",p8),e("__classPrivateFieldGet",m8),e("__classPrivateFieldSet",g8)})});var x8=Qe(Ji=>{"use strict";f();h();d();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.isBrowserCryptoAvailable=Ji.getSubtleCrypto=Ji.getBrowerCrypto=void 0;function J1(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Ji.getBrowerCrypto=J1;function w8(){let e=J1();return e.subtle||e.webkitSubtle}Ji.getSubtleCrypto=w8;function VB(){return!!J1()&&!!w8()}Ji.isBrowserCryptoAvailable=VB});var S8=Qe(ea=>{"use strict";f();h();d();Object.defineProperty(ea,"__esModule",{value:!0});ea.isBrowser=ea.isNode=ea.isReactNative=void 0;function _8(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ea.isReactNative=_8;function b8(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ea.isNode=b8;function UB(){return!_8()&&!b8()}ea.isBrowser=UB});var eu=Qe(u0=>{"use strict";f();h();d();Object.defineProperty(u0,"__esModule",{value:!0});var E8=y8();E8.__exportStar(x8(),u0);E8.__exportStar(S8(),u0)});var U8=Qe((rae,V8)=>{"use strict";f();h();d();V8.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var q8=Qe((nae,W8)=>{"use strict";f();h();d();var H8="%[a-f0-9]{2}",j8=new RegExp("("+H8+")|([^%]+?)","gi"),z8=new RegExp("("+H8+")+","gi");function aw(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],aw(r),aw(n))}function iV(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(j8)||[],r=1;r<t.length;r++)e=aw(t,r).join(""),t=e.match(j8)||[];return e}}function aV(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=z8.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(s){var n=iV(r[0]);n!==r[0]&&(t[r[0]]=n)}r=z8.exec(e)}t["%C2"]="\uFFFD";for(var o=Object.keys(t),i=0;i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}W8.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 aV(e)}}});var K8=Qe((oae,G8)=>{"use strict";f();h();d();G8.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 rT=Qe(ai=>{"use strict";f();h();d();var sV=U8(),lV=q8(),Z8=K8(),uV=e=>e==null;function cV(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[kr(t,e),"[",o,"]"].join("")]:[...r,[kr(t,e),"[",kr(o,e),"]=",kr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[kr(t,e),"[]"].join("")]:[...r,[kr(t,e),"[]=",kr(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>n==null||n.length===0?r:r.length===0?[[kr(t,e),"=",kr(n,e)].join("")]:[[r,kr(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,kr(t,e)]:[...r,[kr(t,e),"=",kr(n,e)].join("")]}}function fV(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let a=typeof n=="string"&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map(s=>Hc(s,e)):n===null?n:Hc(n,e);o[r]=a};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function Q8(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function kr(e,t){return t.encode?t.strict?sV(e):encodeURIComponent(e):e}function Hc(e,t){return t.decode?lV(e):e}function X8(e){return Array.isArray(e)?e.sort():typeof e=="object"?X8(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function J8(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function dV(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function eT(e){e=J8(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Y8(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 tT(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),Q8(t.arrayFormatSeparator);let r=fV(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){let[i,a]=Z8(t.decode?o.replace(/\+/g," "):o,"=");a=a===void 0?null:["comma","separator"].includes(t.arrayFormat)?a:Hc(a,t),r(Hc(i,t),a,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let a of Object.keys(i))i[a]=Y8(i[a],t);else n[o]=Y8(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let a=n[i];return Boolean(a)&&typeof a=="object"&&!Array.isArray(a)?o[i]=X8(a):o[i]=a,o},Object.create(null))}ai.extract=eT;ai.parse=tT;ai.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),Q8(t.arrayFormatSeparator);let r=a=>t.skipNull&&uV(e[a])||t.skipEmptyString&&e[a]==="",n=cV(t),o={};for(let a of Object.keys(e))r(a)||(o[a]=e[a]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(a=>{let s=e[a];return s===void 0?"":s===null?kr(a,t):Array.isArray(s)?s.reduce(n(a),[]).join("&"):kr(a,t)+"="+kr(s,t)}).filter(a=>a.length>0).join("&")};ai.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=Z8(e,"#");return Object.assign({url:r.split("?")[0]||"",query:tT(eT(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Hc(n,t)}:{})};ai.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);let r=J8(e.url).split("?")[0]||"",n=ai.extract(e.url),o=ai.parse(n,{sort:!1}),i=Object.assign(o,e.query),a=ai.stringify(i,t);a&&(a=`?${a}`);let s=dV(e.url);return e.fragmentIdentifier&&(s=`#${kr(e.fragmentIdentifier,t)}`),`${r}${a}${s}`}});var uT=Qe((xae,lT)=>{"use strict";f();h();d();lT.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var Jw=Qe(Xw=>{"use strict";f();h();d();Object.defineProperty(Xw,"__esModule",{value:!0});Xw.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","330","331","332","334","336","337","339","341","346","347","351","352","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["5","6","7","9"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"\xC5land Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["7","29"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","289","306","343","365","367","403","416","418","431","437","438","450","506","514","519","548","579","581","587","600","604","613","639","647","672","705","709","778","780","807","819","825","867","873","902","905"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"C\xF4te D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"5999",country_name:"Cura\xE7ao",mobile_begin_with:["5","6"],phone_number_lengths:[7]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"R\xE9union",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77"],phone_number_lengths:[9]}]});var N7=Qe(un=>{"use strict";f();h();d();var nj=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});un.validatePhoneISO3166=un.findCountryPhoneDataByPhoneNumber=un.findPossibleCountryPhoneData=un.findExactCountryPhoneData=un.findCountryPhoneDataByCountry=void 0;var Qc=nj(Jw());function oj(e){return e?e.length===2?Qc.default.find(t=>e.toUpperCase()===t.alpha2)||null:e.length===3?Qc.default.find(t=>e.toUpperCase()===t.alpha3)||null:Qc.default.find(t=>e.toUpperCase()===t.country_name.toUpperCase())||null:Qc.default.find(t=>t.alpha3==="USA")||null}un.findCountryPhoneDataByCountry=oj;function I7(e,t,r){return r.phone_number_lengths.some(o=>r.country_code.length+o===e.length)&&(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+o))))?r:null}un.findExactCountryPhoneData=I7;function O7(e,t,r){if(!r.phone_number_lengths.some(o=>r.country_code.length+o+1===e.length))return null;if(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+"\\d?"+o))))return r}un.findPossibleCountryPhoneData=O7;function ij(e,t){let r,n;for(let o of Qc.default)!e.match(new RegExp("^"+o.country_code))||(r||(r=I7(e,t,o)),n||(n=O7(e,t,o)));return{exactCountryPhoneData:r,possibleCountryPhoneData:n}}un.findCountryPhoneDataByPhoneNumber=ij;function aj(e,t,r,n){if(!t.phone_number_lengths)return!1;let o=e.replace(new RegExp("^"+t.country_code),"");if(n&&t&&o.length===e.length)return!1;let i=t.phone_number_lengths,a=t.mobile_begin_with,s=i.some(c=>o.length===c),l=a.length?a.some(c=>o.match(new RegExp("^"+c))):!0;return s&&(!r||l)}un.validatePhoneISO3166=aj});var L7=Qe(li=>{"use strict";f();h();d();var sj=li&&li.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(li,"__esModule",{value:!0});li.countryPhoneData=li.phone=void 0;var lj=sj(Jw());li.countryPhoneData=lj.default;var Xc=N7();function D7(e,{country:t="",validateMobilePrefix:r=!0,strictDetection:n=!1}={}){let o={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null},i=typeof e!="string"?"":e.trim(),a=typeof t!="string"?"":t.trim(),s=Boolean(i.match(/^\+/));i=i.replace(/\D/g,"");let l=(0,Xc.findCountryPhoneDataByCountry)(a);if(!l)return o;let c=!1;if(a)["CIV","COG"].includes(l.alpha3)||(i=i.replace(/^0+/,"")),l.alpha3==="RUS"&&i.length===11&&i.match(/^89/)!==null&&(i=i.replace(/^8+/,"")),!s&&l.phone_number_lengths.includes(i.length)&&(i=`${l.country_code}${i}`);else if(s){let{exactCountryPhoneData:_,possibleCountryPhoneData:k}=(0,Xc.findCountryPhoneDataByPhoneNumber)(i,r);_?l=_:k&&!n?(l=k,i=l.country_code+i.replace(new RegExp(`^${l.country_code}\\d`),"")):l=null}else l.phone_number_lengths.indexOf(i.length)!==-1&&(i=`1${i}`,c=!0);if(!l)return o;let g=(0,Xc.validatePhoneISO3166)(i,l,r,s);return g?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:c&&(l=(0,Xc.findCountryPhoneDataByCountry)("CAN"),g=(0,Xc.validatePhoneISO3166)(i,l,r,s),g)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:o}li.default=D7;li.phone=D7});var U7=Qe((Bue,V7)=>{"use strict";f();h();d();var hs=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93","+..-..-...-...."],["\xC5land Islands","ax","358",""],["Albania (Shqip\xEBri)","al","355","+...(...)...-..."],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (\xD6sterreich)","at","43","+..(...)...-...."],["Azerbaijan (Az\u0259rbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973","+...-....-...."],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375","+...(..)...-..-.."],["Belgium (Belgi\xEB)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (B\xE9nin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (R\xE9publique centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (\u4E2D\u56FD)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["C\xF4te d\u2019Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Cura\xE7ao","cw","599","+...-...-....",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357","+...-..-...-..."],["Czech Republic (\u010Cesk\xE1 republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (Rep\xFAblica Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (F\xF8royar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane fran\xE7aise)","gf","594","+...-.....-...."],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guin\xE9e)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (\u9999\u6E2F)","hk","852","+... .... ...."],["Hungary (Magyarorsz\xE1g)","hu","36","+..(...)...-..."],["Iceland (\xCDsland)","is","354","+... ... ...."],["India (\u092D\u093E\u0930\u0924)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98","+..(...)...-...."],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (\u65E5\u672C)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962","+...-.-....-...."],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965","+...-....-...."],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996","+...(...)...-..."],["Laos (\u0EA5\u0EB2\u0EA7)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (\u6FB3\u9580)","mo","853","+...-....-...."],["Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (M\xE9xico)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212","+...-..-....-..."],["Mozambique (Mo\xE7ambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95","+..-...-..."],["Namibia (Namibi\xEB)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968","+...-..-...-..."],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970","+...-..-...-...."],["Panama (Panam\xE1)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Per\xFA)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974","+...-....-...."],["R\xE9union (La R\xE9union)","re","262","+...-.....-...."],["Romania (Rom\xE2nia)","ro","40","+..-..-...-...."],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barth\xE9lemy (Saint-Barth\xE9lemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239","+...-..-....."],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966","+...-..-...-...."],["Senegal (S\xE9n\xE9gal)","sn","221","+...-..-...-...."],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82","+..-..-...-...."],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211","+...-..-...-...."],["Spain (Espa\xF1a)","es","34","+.. ... ... ..."],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94","+..-..-...-...."],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963","+...-..-....-..."],["Taiwan (\u53F0\u7063)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (\u0E44\u0E17\u0E22)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216","+...-..-...-..."],["Turkey (T\xFCrkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380","+...(..)...-..-.."],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (O\u02BBzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Citt\xE0 del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Vi\u1EC7t Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],O0={},B7={},F7=function(e,t,r){t in O0||(O0[t]=[]);var n=r||0;O0[t][n]=e};for(ui=0;ui<hs.length;ui++){if(Yr=hs[ui],hs[ui]={name:Yr[0],iso2:Yr[1],dialCode:Yr[2],priority:Yr[4]||0},Yr[3]&&(hs[ui].format=Yr[3]),Yr[5])for(hs[ui].hasAreaCodes=!0,I0=0;I0<Yr[5].length;I0++)$7=Yr[2]+Yr[5][I0],F7(Yr[1],$7);B7[hs[ui].iso2]=ui,F7(Yr[1],Yr[2],Yr[4])}var Yr,$7,I0,ui;V7.exports={allCountries:hs,iso2Lookup:B7,allCountryCodes:O0}});var Iz={};ms(Iz,{init:()=>Tz,open:()=>Rz,reset:()=>Az,update:()=>Pz});f();h();d();f();h();d();f();h();d();f();h();d();var Xx=e=>{let t,r=new Set,n=(l,c)=>{let g=typeof l=="function"?l(t):l;if(!Object.is(g,t)){let _=t;t=(c!=null?c:typeof g!="object")?g:Object.assign({},t,g),r.forEach(k=>k(t,_))}},o=()=>t,s={setState:n,getState:o,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(O&&O.MODE)!=="production"&&console.warn("[DEPRECATED] The destroy method will be unsupported in the future version. You should use unsubscribe function returned by subscribe. Everything will be garbage collected if store is garbage collected."),r.clear()}};return t=e(n,o,s),s},Jx=e=>e?Xx(e):Xx;var u2=pe(we(),1),c2=pe(s2(),1),{useSyncExternalStoreWithSelector:f9}=c2.default;function d9(e,t=e.getState,r){let n=f9(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,u2.useDebugValue)(n),n}var l2=e=>{(O&&O.MODE)!=="production"&&typeof e!="function"&&console.warn('[DEPRECATED] Passing a vanilla store will be unsupported in the future version. Please use `import { useStore } from "zustand"` to use the vanilla store in React.');let t=typeof e=="function"?Jx(e):e,r=(n,o)=>d9(t,n,o);return Object.assign(r,t),r},bf=e=>e?l2(e):l2;f();h();d();var O2=pe(gm(),1);f();h();d();f();h();d();f();h();d();var C2=pe(d2());f();h();d();f();h();d();f();h();d();var h2="logger/5.7.0";var p2=!1,m2=!1,Ef={debug:1,default:2,info:2,warning:3,error:4,off:5},g2=Ef.default,wm=null;function h9(){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 v2=h9(),xm;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(xm||(xm={}));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 y2="0123456789abcdef",gt=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Ef[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(g2>Ef[n])&&console.log.apply(console,r)}debug(...t){this._log(gt.levels.DEBUG,t)}info(...t){this._log(gt.levels.INFO,t)}warn(...t){this._log(gt.levels.WARNING,t)}makeError(t,r,n){if(m2)return this.makeError("censored error",r,{});r||(r=gt.errors.UNKNOWN_ERROR),n||(n={});let o=[];Object.keys(n).forEach(l=>{let c=n[l];try{if(c instanceof Uint8Array){let g="";for(let _=0;_<c.length;_++)g+=y2[c[_]>>4],g+=y2[c[_]&15];o.push(l+"=Uint8Array(0x"+g+")")}else o.push(l+"="+JSON.stringify(c))}catch(g){o.push(l+"="+JSON.stringify(n[l].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);let i=t,a="";switch(r){case Zn.NUMERIC_FAULT:{a="NUMERIC_FAULT";let l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":a+="-"+l;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-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:a=r;break}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),o.length&&(t+=" ("+o.join(", ")+")");let s=new Error(t);return s.reason=i,s.code=r,Object.keys(n).forEach(function(l){s[l]=n[l]}),s}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,gt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,o){t||this.throwError(r,n,o)}assertArgument(t,r,n,o){t||this.throwArgumentError(r,n,o)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),v2&&this.throwError("platform missing String.prototype.normalize",gt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:v2})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,gt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,gt.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,gt.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,gt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",gt.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",gt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",gt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return wm||(wm=new gt(h2)),wm}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),p2){if(!t)return;this.globalLogger().throwError("error censorship permanent",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}m2=!!t,p2=!!r}static setLogLevel(t){let r=Ef[t.toLowerCase()];if(r==null){gt.globalLogger().warn("invalid log level - "+t);return}g2=r}static from(t){return new gt(t)}};gt.errors=Zn;gt.levels=xm;f();h();d();var w2="bytes/5.7.0";var ma=new gt(w2);function _2(e){return!!e.toHexString}function ys(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return ys(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function b2(e){return ws(e)&&!(e.length%2)||pu(e)}function x2(e){return typeof e=="number"&&e==e&&e%1===0}function pu(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!x2(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!x2(r)||r<0||r>=256)return!1}return!0}function cn(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),ys(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),_2(e)&&(e=e.toHexString()),ws(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 o=0;o<r.length;o+=2)n.push(parseInt(r.substring(o,o+2),16));return ys(new Uint8Array(n))}return pu(e)?ys(new Uint8Array(e)):ma.throwArgumentError("invalid arrayify value","value",e)}function mu(e){let t=e.map(o=>cn(o)),r=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(r);return t.reduce((o,i)=>(n.set(i,o),o+i.length),0),ys(n)}function Mf(e,t){e=cn(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),ys(r)}function ws(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var _m="0123456789abcdef";function xs(e,t){if(t||(t={}),typeof e=="number"){ma.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=_m[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),_2(e))return e.toHexString();if(ws(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(pu(e)){let r="0x";for(let n=0;n<e.length;n++){let o=e[n];r+=_m[(o&240)>>4]+_m[o&15]}return r}return ma.throwArgumentError("invalid hexlify value","value",e)}f();h();d();var S2="bignumber/5.7.0";var Sm=C2.default.BN,No=new gt(S2),bm={},E2=9007199254740991;var M2=!1,pr=class{constructor(t,r){t!==bm&&No.throwError("cannot call constructor directly; use BigNumber.from",gt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Jr(vt(this).fromTwos(t))}toTwos(t){return Jr(vt(this).toTwos(t))}abs(){return this._hex[0]==="-"?pr.from(this._hex.substring(1)):this}add(t){return Jr(vt(this).add(vt(t)))}sub(t){return Jr(vt(this).sub(vt(t)))}div(t){return pr.from(t).isZero()&&On("division-by-zero","div"),Jr(vt(this).div(vt(t)))}mul(t){return Jr(vt(this).mul(vt(t)))}mod(t){let r=vt(t);return r.isNeg()&&On("division-by-zero","mod"),Jr(vt(this).umod(r))}pow(t){let r=vt(t);return r.isNeg()&&On("negative-power","pow"),Jr(vt(this).pow(r))}and(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),Jr(vt(this).and(r))}or(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),Jr(vt(this).or(r))}xor(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),Jr(vt(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&On("negative-width","mask"),Jr(vt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&On("negative-width","shl"),Jr(vt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&On("negative-width","shr"),Jr(vt(this).shrn(t))}eq(t){return vt(this).eq(vt(t))}lt(t){return vt(this).lt(vt(t))}lte(t){return vt(this).lte(vt(t))}gt(t){return vt(this).gt(vt(t))}gte(t){return vt(this).gte(vt(t))}isNegative(){return this._hex[0]==="-"}isZero(){return vt(this).isZero()}toNumber(){try{return vt(this).toNumber()}catch(t){On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return No.throwError("this platform does not support BigInt",gt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?M2||(M2=!0,No.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?No.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",gt.errors.UNEXPECTED_ARGUMENT,{}):No.throwError("BigNumber.toString does not accept parameters",gt.errors.UNEXPECTED_ARGUMENT,{})),vt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof pr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new pr(bm,gu(t)):t.match(/^-?[0-9]+$/)?new pr(bm,gu(new Sm(t))):No.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&On("underflow","BigNumber.from",t),(t>=E2||t<=-E2)&&On("overflow","BigNumber.from",t),pr.from(String(t));let r=t;if(typeof r=="bigint")return pr.from(r.toString());if(pu(r))return pr.from(xs(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return pr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(ws(n)||n[0]==="-"&&ws(n.substring(1))))return pr.from(n)}return No.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function gu(e){if(typeof e!="string")return gu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&No.throwArgumentError("invalid hex","value",e),e=gu(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 pr.from(gu(e))}function vt(e){let t=pr.from(e).toHexString();return t[0]==="-"?new Sm("-"+t.substring(3),16):new Sm(t.substring(2),16)}function On(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),No.throwError(e,gt.errors.NUMERIC_FAULT,n)}f();h();d();f();h();d();f();h();d();var k2="strings/5.7.0";var T2=new gt(k2),vu;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(vu||(vu={}));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 p9(e,t,r,n,o){return T2.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function P2(e,t,r,n,o){if(e===ga.BAD_PREFIX||e===ga.UNEXPECTED_CONTINUE){let i=0;for(let a=t+1;a<r.length&&r[a]>>6===2;a++)i++;return i}return e===ga.OVERRUN?r.length-t-1:0}function m9(e,t,r,n,o){return e===ga.OVERLONG?(n.push(o),0):(n.push(65533),P2(e,t,r,n,o))}var g9=Object.freeze({error:p9,ignore:P2,replace:m9});function Em(e,t=vu.current){t!=vu.current&&(T2.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(o&63|128);else if((o&64512)==55296){n++;let i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");let a=65536+((o&1023)<<10)+(i&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128)}return cn(r)}f();h();d();var R2="solidity/5.7.0";var v9=new RegExp("^bytes([0-9]+)$"),y9=new RegExp("^(u?int)([0-9]*)$"),w9=new RegExp("^(.*)\\[([0-9]*)\\]$"),x9="0000000000000000000000000000000000000000000000000000000000000000",_s=new gt(R2);function A2(e,t,r){switch(e){case"address":return r?Mf(t,32):cn(t);case"string":return Em(t);case"bytes":return cn(t);case"bool":return t=t?"0x01":"0x00",r?Mf(t,32):cn(t)}let n=e.match(y9);if(n){let o=parseInt(n[2]||"256");return(n[2]&&String(o)!==n[2]||o%8!==0||o===0||o>256)&&_s.throwArgumentError("invalid number type","type",e),r&&(o=256),t=pr.from(t).toTwos(o),Mf(t,o/8)}if(n=e.match(v9),n){let o=parseInt(n[1]);return(String(o)!==n[1]||o===0||o>32)&&_s.throwArgumentError("invalid bytes type","type",e),cn(t).byteLength!==o&&_s.throwArgumentError(`invalid value for ${e}`,"value",t),r?cn((t+x9).substring(0,66)):t}if(n=e.match(w9),n&&Array.isArray(t)){let o=n[1];parseInt(n[2]||String(t.length))!=t.length&&_s.throwArgumentError(`invalid array length for ${e}`,"value",t);let a=[];return t.forEach(function(s){a.push(A2(o,s,!0))}),mu(a)}return _s.throwArgumentError("invalid type","type",e)}function I2(e,t){e.length!=t.length&&_s.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,o){r.push(A2(n,t[o]))}),xs(mu(r))}function yu(e){return Array.isArray(e)?_9(e):b2(e)?Mm(e):b9(e)}function _9(e){let[t,r]=e.reduce(([n,o],[i,a])=>(n.push(i),o.push(a),[n,o]),[[],[]]);return Mm(I2(t,r))}function b9(e){let t=C.from(e);return Mm(t)}function Mm(e){let t=BigInt(S9(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function S9(e){let t=xs(mu([cn(e)]));return"0x"+O2.default.keccak_256(cn(t))}var N2=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66};f();h();d();var Cm=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(Cm||{});f();h();d();f();h();d();var Tm=function(e,t){return Tm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Tm(e,t)};function E9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xt=function(){return xt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xt.apply(this,arguments)};function va(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(g){try{c(n.next(g))}catch(_){a(_)}}function l(g){try{c(n.throw(g))}catch(_){a(_)}}function c(g){g.done?i(g.value):o(g.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function ya(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(g){return l([c,g])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(g){c=[6,g],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function M9(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var lt;(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"})(lt||(lt={}));function C9(e,t){if(!e)throw new Error(t)}function k9(e){return e==null?void 0:e.replace(/\/+$/,"")}function T9(e,t){return t===void 0&&(t={}),va(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,g,_;return ya(this,function(k){switch(k.label){case 0:r=t.retryCount,n=r===void 0?3:r,o=t.retryDelay,i=o===void 0?5e3:o,a=t.retryCheck,s=a===void 0?function(){return!0}:a,l=null,c=0,k.label=1;case 1:if(!(c<n+1))return[3,8];k.label=2;case 2:return k.trys.push([2,4,,5]),[4,e()];case 3:return g=k.sent(),[2,g];case 4:if(_=k.sent(),l=_,!s(_))throw _;return[3,5];case 5:return[4,new Promise(function(R){return setTimeout(R,i)})];case 6:k.sent(),k.label=7;case 7:return c++,[3,1];case 8:throw l}})})}function D2(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 o=Math.random()*16;return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(r+o)%16|0,r=Math.floor(r/16)),(n==="x"?o:o&3|8).toString(16)})}function U2(){return new Date().getTime()}function L2(){return new Date().toISOString()}function F2(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var wu=String.fromCharCode,$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Cf={};function P9(e,t){if(!Cf[e]){Cf[e]={};for(var r=0;r<e.length;r++)Cf[e][e.charAt(r)]=r}return Cf[e][t]}var bu={compressToBase64:function(e){if(e==null)return"";var t=bu._compress(e,6,function(r){return $2.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:bu._decompress(e.length,32,function(t){return P9($2,e.charAt(t))})},compress:function(e){return bu._compress(e,16,function(t){return wu(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},o={},i=[],a,s,l="",c="",g="",_=2,k=3,R=2,I=0,V=0,j;for(j=0;j<e.length;j+=1)if(l=e.charAt(j),Object.prototype.hasOwnProperty.call(n,l)||(n[l]=k++,o[l]=!0),c=g+l,Object.prototype.hasOwnProperty.call(n,c))g=c;else{if(Object.prototype.hasOwnProperty.call(o,g)){if(g.charCodeAt(0)<256){for(a=0;a<R;a++)I=I<<1,V==t-1?(V=0,i.push(r(I)),I=0):V++;for(s=g.charCodeAt(0),a=0;a<8;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1}else{for(s=1,a=0;a<R;a++)I=I<<1|s,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=0;for(s=g.charCodeAt(0),a=0;a<16;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[g]}else for(s=n[g],a=0;a<R;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++),n[c]=k++,g=String(l)}if(g!==""){if(Object.prototype.hasOwnProperty.call(o,g)){if(g.charCodeAt(0)<256){for(a=0;a<R;a++)I=I<<1,V==t-1?(V=0,i.push(r(I)),I=0):V++;for(s=g.charCodeAt(0),a=0;a<8;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1}else{for(s=1,a=0;a<R;a++)I=I<<1|s,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=0;for(s=g.charCodeAt(0),a=0;a<16;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[g]}else for(s=n[g],a=0;a<R;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++)}for(s=2,a=0;a<R;a++)I=I<<1|s&1,V==t-1?(V=0,i.push(r(I)),I=0):V++,s=s>>1;for(;;)if(I=I<<1,V==t-1){i.push(r(I));break}else V++;return i.join("")},decompress:function(e){return e==null?"":e==""?null:bu._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],o=[],i={val:r(0),position:t,index:1},a=4,s=4,l=3,c="",g,_,k,R,I,V,j;for(g=0;g<3;g+=1)n[g]=g;for(k=0,I=Math.pow(2,2),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;switch(k){case 0:for(k=0,I=Math.pow(2,8),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;j=wu(k);break;case 1:for(k=0,I=Math.pow(2,16),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;j=wu(k);break;case 2:return""}for(n[3]=j,_=j,o.push(j);;){if(i.index>e)return"";for(k=0,I=Math.pow(2,l),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;switch(j=k){case 0:for(k=0,I=Math.pow(2,8),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;n[s++]=wu(k),j=s-1,a--;break;case 1:for(k=0,I=Math.pow(2,16),V=1;V!=I;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),k|=(R>0?1:0)*V,V<<=1;n[s++]=wu(k),j=s-1,a--;break;case 2:return o.join("")}if(a==0&&(a=Math.pow(2,l),l++),n[j])c=n[j];else if(j===s)c=_+_.charAt(0);else return null;o.push(c),n[s++]=_+c.charAt(0),a--,_=c,a==0&&(a=Math.pow(2,l),l++)}}},R9=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(o){return o!==r})}},e.prototype.emit=function(t,r){for(var n=0,o=this.events[t]||[];n<o.length;n++){var i=o[n];i(r)}for(var a=0,s=this.events["*"]||[];a<s.length;a++){var i=s[a];i(t,r)}},e}(),A9=function(){function e(t,r){var n=this,o,i,a,s,l,c;this.flagCallReported={},this._events=new R9,C9(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=k9((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=(o=r==null?void 0:r.flushInterval)!==null&&o!==void 0?o:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(i=r==null?void 0:r.sendFeatureFlagEvent)!==null&&i!==void 0?i:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(a=r==null?void 0:r.fetchRetryCount)!==null&&a!==void 0?a:3,retryDelay:(s=r==null?void 0:r.fetchRetryDelay)!==null&&s!==void 0?s:3e3},this.requestTimeout=(l=r==null?void 0:r.requestTimeout)!==null&&l!==void 0?l:1e4,this._sessionExpirationTimeSeconds=(c=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&c!==void 0?c:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&F2(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];r["$feature/".concat(a)]=s}return xt({$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,o,i;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(lt.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(lt.AnonymousId,t.bootstrap.distinctId)),!((o=t==null?void 0:t.bootstrap)===null||o===void 0)&&o.featureFlags){var a=Object.keys(((i=t.bootstrap)===null||i===void 0?void 0:i.featureFlags)||{}).filter(function(s){var l,c;return!!(!((c=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||c===void 0)&&c[s])}).reduce(function(s,l){var c,g;return s[l]=((g=(c=t.bootstrap)===null||c===void 0?void 0:c.featureFlags)===null||g===void 0?void 0:g[l])||!1,s},{});this.setKnownFeatureFlags(a)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(lt.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(lt.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(lt.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(lt.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=M9([lt.Queue],t||[],!0);this.clearProps();for(var n=0,o=Object.keys(lt);n<o.length;n++){var i=o[n];r.includes(lt[i])||this.setPersistedProperty(lt[i],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,o){return console.log("PostHog Debug",n,o)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:xt(xt(xt(xt({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(lt.SessionId),r=this.getPersistedProperty(lt.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=D2(globalThis),this.setPersistedProperty(lt.SessionId,t)),this.setPersistedProperty(lt.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(lt.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(lt.AnonymousId);return t||(t=D2(globalThis),this.setPersistedProperty(lt.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(lt.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=xt(xt({},this.props),t),this.setPersistedProperty(lt.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(lt.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 o=xt(xt({},this.buildPayload({distinct_id:t,event:"$identify",properties:xt(xt({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(lt.AnonymousId,n),this.setPersistedProperty(lt.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",o),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 o=this.buildPayload({event:t,properties:r});this.enqueue("capture",o)}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 o=this.buildPayload({event:"$autocapture",properties:xt(xt({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",o),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:xt(xt({},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 o;return this.groups((o={},o[t]=r,o)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var o={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:xt({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",o),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(lt.PersonProperties)||{};return this.setPersistedProperty(lt.PersonProperties,xt(xt({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(lt.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=xt(xt({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(lt.GroupProperties,xt(xt({},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),va(this,void 0,void 0,function(){var r,n,o,i,a,s,l=this;return ya(this,function(c){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),o=this.props.$groups||{},i=this.getPersistedProperty(lt.PersonProperties)||{},a=this.getPersistedProperty(lt.GroupProperties)||{},s={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:o,person_properties:i,group_properties:a})},this._decideResponsePromise=this.fetchWithRetry(r,s).then(function(g){return g.json()}).then(function(g){return g.featureFlags&&l.setKnownFeatureFlags(g.featureFlags),g}).finally(function(){l._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(lt.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(lt.FeatureFlags),r=this.getPersistedProperty(lt.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),va(this,void 0,void 0,function(){return ya(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 va(r,void 0,void 0,function(){var n;return ya(this,function(o){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return va(n,void 0,void 0,function(){var o;return ya(this,function(i){return o=this.getFeatureFlag(t),o!==void 0&&r(o),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(lt.OverrideFeatureFlags,null):this.setPersistedProperty(lt.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var o=n.buildPayload({event:t,properties:r});n.enqueue("capture",o)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var o=xt(xt({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:L2()});o.distinctId&&(o.distinct_id=o.distinctId,delete o.distinctId);var i=this.getPersistedProperty(lt.Queue)||[];i.push({message:o}),this.setPersistedProperty(lt.Queue,i),this._events.emit(t,o),i.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=F2(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(o,i){return o?n(o):r(i)})})},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(lt.Queue)||[];if(!n.length)return t==null?void 0:t();var o=n.splice(0,this.flushAt);this.setPersistedProperty(lt.Queue,n);var i=o.map(function(_){return _.message}),a={api_key:this.apiKey,batch:i,sent_at:L2()},s=function(_){t==null||t(_,i),r._events.emit("flush",i)};this.getCustomUserAgent();var l=JSON.stringify(a),c=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(U2(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),g=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(bu.compressToBase64(l)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:l};this.fetchWithRetry(c,g).then(function(){return s()}).catch(function(_){if(_.response){var k=new Error(_.response.statusText);return s(k)}s(_)})},e.prototype.fetchWithRetry=function(t,r,n){var o,i;return va(this,void 0,void 0,function(){var a=this;return ya(this,function(s){return(o=(i=AbortSignal).timeout)!==null&&o!==void 0||(i.timeout=function(c){var g=new AbortController;return setTimeout(function(){return g.abort()},c),g.signal}),[2,T9(function(){return a.fetch(t,xt({signal:AbortSignal.timeout(a.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return va(this,void 0,void 0,function(){return ya(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}(),j2="2.0.0";function I9(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=xt(xt({},t),{$os:N9(e),$browser:z2(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:L9(e.document.referrer),$device:D9(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:O9(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=xt(xt({},t),{$lib:"js",$lib_version:j2,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:U2()/1e3}),t}function Zt(e,t){return e.indexOf(t)>=0}function z2(e,t,r){return t=t||"",r||Zt(e," OPR/")?Zt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Zt(e,"IEMobile")||Zt(e,"WPDesktop")?"Internet Explorer Mobile":Zt(e,"SamsungBrowser/")?"Samsung Internet":Zt(e,"Edge")||Zt(e,"Edg/")?"Microsoft Edge":Zt(e,"FBIOS")?"Facebook Mobile":Zt(e,"Chrome")?"Chrome":Zt(e,"CriOS")?"Chrome iOS":Zt(e,"UCWEB")||Zt(e,"UCBrowser")?"UC Browser":Zt(e,"FxiOS")?"Firefox iOS":Zt(t,"Apple")?Zt(e,"Mobile")?"Mobile Safari":"Safari":Zt(e,"Android")?"Android Mobile":Zt(e,"Konqueror")?"Konqueror":Zt(e,"Firefox")?"Firefox":Zt(e,"MSIE")||Zt(e,"Trident/")?"Internet Explorer":Zt(e,"Gecko")?"Mozilla":""}function O9(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+)?)/},o=z2(e,t,r),i=n[o]||void 0;if(i===void 0)return null;var a=e.match(i);return a?parseFloat(a[a.length-2]):null}function N9(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 D9(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 L9(e){var t=e.split("/");return t.length>=3?t[2]:""}var H2={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch(i){}return null},setItem:function(e,t){try{var r="",n="",o="",i=e+"="+encodeURIComponent(t)+n+"; path=/"+r+o;document.cookie=i}catch(a){return}},removeItem:function(e){try{H2.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}},B2=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}}},V2=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}},km=void 0,xu=void 0,_u=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},F9=function(e,t){if(t){if(!localStorage){var r=B2(t.localStorage);km=V2(r)?r:void 0}if(!xu){var n=B2(t.sessionStorage);xu=V2(n)?n:void 0}}switch(e){case"cookie":return H2||km||xu||_u();case"localStorage":return km||xu||_u();case"sessionStorage":return xu||_u();case"memory":return _u();default:return _u()}},W2=function(e){E9(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),o._storage=F9((n==null?void 0:n.persistence)||"localStorage",window),o.setupBootstrap(n),o}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 j2},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return xt(xt({},e.prototype.getCommonEventProperties.call(this)),I9(window))},t}(A9);function $9(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function B9(e,t){try{return await fetch(e,t)}catch(r){throw $9(r)}}var tr=null;typeof globalThis.window<"u"&&(tr=new W2("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),tr.fetch=B9);var kf={version:"0.2.5",package:"idkit-js"},bs=()=>{var e;return(e=tr==null?void 0:tr.getDistinctId())!=null?e:""},q2=e=>{e?tr==null||tr.capture("idkit loaded",kf):tr==null||tr.optOut()},G2=()=>{tr==null||tr.capture("idkit opened",kf)},K2=()=>{tr==null||tr.capture("idkit phone typed",kf)},Y2=e=>{tr==null||tr.capture("idkit phone code retried",Se(oe({},kf),{channel:e}))};var V9=bf()((e,t)=>({open:!1,code:"",signal:"",result:null,actionId:"",theme:"light",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",methods:["orb","phone"],stage:"SELECT_METHOD",copy:{},computed:{canGoBack:r=>{switch(r){case"ENTER_PHONE":return t().methods.includes("orb");case"WORLD_ID":return t().methods.includes("phone");case"ENTER_CODE":case"PRIVACY":return!0;default:return!1}},getDefaultStage:r=>(r=r!=null?r:t().methods,r.length>1?"SELECT_METHOD":r[0]==="phone"?"ENTER_PHONE":"WORLD_ID")},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:"ENTER_PHONE",phoneNumber:"",errorState:null}),addSuccessCallback:(r,n)=>{e(o=>(o.successCallbacks[n]=r,o))},addVerificationCallback:(r,n)=>{e(o=>(o.verifyCallbacks[n]=r,o))},setOptions:({handleVerify:r,onSuccess:n,signal:o,actionId:i,autoClose:a,copy:s,theme:l,methods:c},g)=>{let _=typeof i=="string"?i:yu(i).digest;e(k=>({theme:l,signal:o,actionId:i,methods:c!=null?c:k.methods,stage:k.computed.getDefaultStage(c),autoClose:a,stringifiedActionId:_,copy:oe(oe({},k.copy),s)})),n&&t().addSuccessCallback(n,g),r&&t().addVerificationCallback(r,g)},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 o;n&&typeof n=="object"&&n.message&&(o=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:o}})})},onOpenChange:r=>{if(r)return G2(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result;n&&requestAnimationFrame(()=>Object.values(t().successCallbacks).map(o=>()=>o==null?void 0:o(n)))}e({open:r,code:"",result:null,phoneNumber:"",errorState:null,processing:!1,stage:t().computed.getDefaultStage()})}})),Lt=V9;f();h();d();var fn={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 YP=pe(vS(),1);f();h();d();var GP=pe(we(),1);f();h();d();f();h();d();var cr=pe(we()),CS=pe(Na()),Wo=pe(zv()),HI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function kS(e,t){return e(t={exports:{}},t.exports),t.exports}var WI=kS(function(e){(function(t){var r=function(j,L,D){if(!l(L)||g(L)||_(L)||k(L)||s(L))return L;var B,K=0,X=0;if(c(L))for(B=[],X=L.length;K<X;K++)B.push(r(j,L[K],D));else for(var ue in B={},L)Object.prototype.hasOwnProperty.call(L,ue)&&(B[j(ue,D)]=r(j,L[ue],D));return B},n=function(j){return R(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(L,D){return D?D.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},o=function(j){var L=n(j);return L.substr(0,1).toUpperCase()+L.substr(1)},i=function(j,L){return function(D,B){var K=(B=B||{}).separator||"_",X=B.split||/(?=[A-Z])/;return D.split(X).join(K)}(j,L).toLowerCase()},a=Object.prototype.toString,s=function(j){return typeof j=="function"},l=function(j){return j===Object(j)},c=function(j){return a.call(j)=="[object Array]"},g=function(j){return a.call(j)=="[object Date]"},_=function(j){return a.call(j)=="[object RegExp]"},k=function(j){return a.call(j)=="[object Boolean]"},R=function(j){return(j-=0)==j},I=function(j,L){var D=L&&"process"in L?L.process:L;return typeof D!="function"?j:function(B,K){return D(B,j,K)}},V={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(j,L){return r(I(n,L),j)},decamelizeKeys:function(j,L){return r(I(i,L),j,L)},pascalizeKeys:function(j,L){return r(I(o,L),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=V:t.humps=V})(HI)}).decamelize,qI=kS(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},t.apply(this,arguments)}e.exports=t}),GI=function(e){if(Array.isArray(e))return e},KI=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||s.return==null||s.return()}finally{if(o)throw i}}return r}},MS=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},YI=function(e,t){if(e){if(typeof e=="string")return MS(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)?MS(e,t):void 0}},ZI=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},QI=function(e,t){return GI(e)||KI(e,t)||YI(e,t)||ZI()},XI=function(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},JI=function(e,t){if(e==null)return{};var r,n,o=XI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},eO=(0,cr.createContext)(null);function Wv(e){var t=e.root,r=e.children;return(0,CS.createPortal)(r,t)}function tO(e){var t=(0,cr.forwardRef)(function(r,n){var o,i,a=r.mode,s=r.delegatesFocus,l=r.styleSheets,c=r.ssr,g=r.children,_=JI(r,["mode","delegatesFocus","styleSheets","ssr","children"]),k=(i=(0,cr.useRef)((o=n)&&o.current),(0,cr.useEffect)(function(){o&&(o.current=i.current)},[o]),i),R=(0,cr.useState)(null),I=QI(R,2),V=I[0],j=I[1],L="node_".concat(a).concat(s);return(0,cr.useEffect)(function(){if(k.current)try{if(typeof n=="function"&&n(k.current),c){var D=k.current.shadowRoot;return void j(D)}var B=k.current.attachShadow({mode:a,delegatesFocus:s});l.length>0&&(B.adoptedStyleSheets=l),j(B)}catch(K){(function(X){var ue=X.error,ae=X.styleSheets,ve=X.root;switch(ue.name){case"NotSupportedError":ae.length>0&&(ve.adoptedStyleSheets=ae);break;default:throw ue}})({error:K,styleSheets:l,root:V})}},[n,k,l]),cr.default.createElement(cr.default.Fragment,null,cr.default.createElement(e.tag,qI({key:L,ref:k},_),(V||c)&&cr.default.createElement(eO.Provider,{value:V},c?cr.default.createElement("template",{shadowroot:"open"},e.render({root:V,ssr:c,children:g})):cr.default.createElement(Wv,{root:V},e.render({root:V,ssr:c,children:g})))))});return t.propTypes={mode:Wo.default.oneOf(["open","closed"]),delegatesFocus:Wo.default.bool,styleSheets:Wo.default.arrayOf(Wo.default.instanceOf(globalThis.CSSStyleSheet)),ssr:Wo.default.bool,children:Wo.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Wv.propTypes={root:Wo.default.object.isRequired,children:Wo.default.node},Wv.defaultProps={children:null};var Hv=new Map;function rO(){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,o){var i=WI(o,{separator:"-"}),a="".concat(t,"-").concat(i);return Hv.has(a)||Hv.set(a,tO({tag:i,render:r})),Hv.get(a)}})}var nO=rO(),TS=nO;var WP=pe(we(),1);f();h();d();var oO=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
24
- /*! tailwindcss v3.2.4 | 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}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.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;top:0}.inset-0,.inset-x-0{left:0;right:0}.top-full{top:100%}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.z-20{z-index:20}.z-10{z-index:10}.z-0{z-index:0}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[2px\\]{margin-top:2px}.ml-2\\.5{margin-left:.625rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.mt-1\\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.-mt-6{margin-top:-1.5rem}.mt-4{margin-top:1rem}.mt-3{margin-top:.75rem}.-mt-1{margin-top:-.25rem}.mt-2{margin-top:.5rem}.-mt-5{margin-top:-1.25rem}.-ml-4{margin-left:-1rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.aspect-\\[6\\/7\\]{aspect-ratio:6/7}.h-8{height:2rem}.h-3{height:.75rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-auto{height:auto}.h-5{height:1.25rem}.h-24{height:6rem}.h-4{height:1rem}.h-px{height:1px}.h-12{height:3rem}.h-6{height:1.5rem}.h-20{height:5rem}.h-\\[202px\\]{height:202px}.max-h-\\[var\\(--max-h\\2c _0px\\)\\]{max-height:var(--max-h,0)}.min-h-full{min-height:100%}.w-8{width:2rem}.w-3{width:.75rem}.w-auto{width:auto}.w-full{width:100%}.w-10{width:2.5rem}.w-\\[34px\\]{width:34px}.w-4{width:1rem}.w-5{width:1.25rem}.w-24{width:6rem}.w-12{width:3rem}.w-6{width:1.5rem}.w-20{width:5rem}.w-\\[202px\\]{width:202px}.min-w-\\[calc\\(100vw_-_48px\\)\\]{min-width:calc(100vw - 48px)}.max-w-\\[15rem\\]{max-width:15rem}.max-w-xs{max-width:20rem}.flex-none{flex:none}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.basis-4{flex-basis:1rem}.-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%}.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))}.select-none{-webkit-user-select:none;user-select:none}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.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}.gap-4{gap:1rem}.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-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-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-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-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-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-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.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)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(3rem*var(--tw-space-y-reverse));margin-top:calc(3rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-2xl{border-radius:1rem}.rounded-xl{border-radius:.75rem}.rounded{border-radius:.25rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-0{border-width:0}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.bg-d3dfea\\/30{background-color:rgba(211,223,234,.3)}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.bg-0d151d\\/5{background-color:rgba(13,21,29,.05)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-\\[\\#fecaca\\]{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-f2f5f9{--tw-bg-opacity:1;background-color:rgb(242 245 249/var(--tw-bg-opacity))}.bg-ff6848\\/10{background-color:rgba(255,104,72,.1)}.bg-ff6848{--tw-bg-opacity:1;background-color:rgb(255 104 72/var(--tw-bg-opacity))}.bg-6445dd\\/10{background-color:rgba(100,69,221,.1)}.bg-6445dd{--tw-bg-opacity:1;background-color:rgb(100 69 221/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#FF6848\\]{--tw-gradient-from:#ff6848;--tw-gradient-to:rgba(255,104,72,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\\[\\#4940E0\\]{--tw-gradient-to:#4940e0}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pl-6{padding-left:1.5rem}.pt-6{padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.pl-4{padding-left:1rem}.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-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.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-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-4940e0{--tw-text-opacity:1;color:rgb(73 64 224/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-0d151d\\/70{color:rgba(13,21,29,.7)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.caret-transparent{caret-color:transparent}.opacity-100{opacity:1}.opacity-0{opacity:0}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-lg,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.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);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0}.ring-1{--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)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring{--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)}.ring-black\\/5{--tw-ring-color:rgba(0,0,0,.05)}.ring-transparent{--tw-ring-color:transparent}.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,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-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)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none}.placeholder\\:text-9eafc0::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.placeholder\\:text-9eafc0::placeholder{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.focus-within\\:border-0d151d:focus-within{--tw-border-opacity:1;border-color:rgb(13 21 29/var(--tw-border-opacity))}.focus-within\\:bg-white:focus-within{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:bg-transparent:focus{background-color:transparent}.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-transparent:focus{--tw-ring-color:transparent}.focus\\:ring-5b52f3:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(91 82 243/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-0d151d:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(13 21 29/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-wait:disabled{cursor:wait}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-d3dfea:disabled{--tw-bg-opacity:1;background-color:rgb(211 223 234/var(--tw-bg-opacity))}.disabled\\:text-gray-900:disabled{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.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-black\\/10{border-color:rgba(0,0,0,.1)}.dark .dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark .dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\\:bg-ece8fb\\/10{background-color:rgba(236,232,251,.1)}.dark .dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark .dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark .dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\\:text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.dark .dark\\:text-0d151d{--tw-text-opacity:1;color:rgb(13 21 29/var(--tw-text-opacity))}.dark .dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark .dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark .dark\\:text-596673{--tw-text-opacity:1;color:rgb(89 102 115/var(--tw-text-opacity))}.dark .dark\\:text-white\\/70{color:hsla(0,0%,100%,.7)}.dark .dark\\:text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.dark .dark\\:focus-within\\:border-white:focus-within{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\\:focus-within\\:bg-transparent:focus-within{background-color:transparent}.dark .dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}.dark .dark\\:focus\\:bg-ece8fb\\/25:focus{background-color:rgba(236,232,251,.25)}.dark .dark\\:disabled\\:bg-29343f:disabled{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark .dark\\:disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:414px){.xs\\:w-12{width:3rem}}@media (min-width:640px){.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:block{display:block}.md\\:hidden{display:none}.md\\:max-h-96{max-height:24rem}.md\\:min-w-\\[20rem\\]{min-width:20rem}.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}}.\\[\\&_\\*\\]\\: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))}`,PS=()=>v.createElement("style",null,oO);f();h();d();var Kd=pe(we(),1),iO=()=>{let[e,t]=(0,Kd.useState)("desktop");return(0,Kd.useEffect)(()=>{let r=window.matchMedia("(max-width: 768px)"),n=o=>t(o.matches?"mobile":"desktop");return n(r),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),e},Js=iO;f();h();d();var jt=(...e)=>e.filter(Boolean).join(" "),RS=(e,t)=>Math.floor(Math.random()*(t-e+1)+e);var em=pe(we(),1);f();h();d();var aO=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),v.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"})),el=aO;f();h();d();var sO=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),lO={["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"},uO=()=>{var r;let{retryFlow:e,errorState:t}=Lt(sO);return v.createElement("div",{className:"space-y-8"},v.createElement("div",{className:"-mt-5 flex items-center justify-center"},v.createElement("div",{className:"bg-ff6848/10 inline-flex items-center justify-center rounded-full p-5"},v.createElement("div",{className:"bg-ff6848 flex items-center justify-center rounded-full p-5"},v.createElement(el,{className:"w-8 text-white"})))),v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},lO[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),v.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),v.createElement("div",{className:"flex justify-center"},v.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")),v.createElement("div",null,v.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},AS=uO;f();h();d();f();h();d();f();h();d();f();h();d();var qv=pe(we(),1),$a=pe(we(),1);f();h();d();var IS=pe(we(),1),tl=(0,IS.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});f();h();d();var Yd=pe(we(),1),Da=(0,Yd.createContext)({});function OS(){return(0,Yd.useContext)(Da).visualElement}f();h();d();var Ni=pe(we(),1);f();h();d();var NS=pe(we(),1),So=(0,NS.createContext)(null);f();h();d();var Zd=pe(we(),1);f();h();d();var Un=typeof document<"u";var La=Un?Zd.useLayoutEffect:Zd.useEffect;f();h();d();var DS=pe(we(),1),Qd=(0,DS.createContext)({strict:!1});function LS(e,t,r,n){let o=OS(),i=(0,Ni.useContext)(Qd),a=(0,Ni.useContext)(So),s=(0,Ni.useContext)(tl).reducedMotion,l=(0,Ni.useRef)();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let c=l.current;return La(()=>{c&&c.render()}),(0,Ni.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),La(()=>()=>c&&c.notify("Unmount"),[]),c}f();h();d();var FS=pe(we(),1);f();h();d();function qo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $S(e,t,r){return(0,FS.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):qo(r)&&(r.current=n))},[t])}f();h();d();var Jd=pe(we(),1);f();h();d();f();h();d();function Go(e){return typeof e=="string"||Array.isArray(e)}f();h();d();f();h();d();function Di(e){return typeof e=="object"&&typeof e.start=="function"}var cO=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Fa(e){return Di(e.animate)||cO.some(t=>Go(e[t]))}function Xd(e){return Boolean(Fa(e)||e.variants)}function BS(e,t){if(Fa(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Go(r)?r:void 0,animate:Go(n)?n:void 0}}return e.inherit!==!1?t:{}}function US(e){let{initial:t,animate:r}=BS(e,(0,Jd.useContext)(Da));return(0,Jd.useMemo)(()=>({initial:t,animate:r}),[VS(t),VS(r)])}function VS(e){return Array.isArray(e)?e.join(" "):e}f();h();d();var Ko=e=>({isEnabled:t=>e.some(r=>!!t[r])}),Li={measureLayout:Ko(["layout","layoutId","drag"]),animation:Ko(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ko(["exit"]),drag:Ko(["drag","dragControls"]),focus:Ko(["whileFocus"]),hover:Ko(["whileHover","onHoverStart","onHoverEnd"]),tap:Ko(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ko(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ko(["whileInView","onViewportEnter","onViewportLeave"])};f();h();d();function jS(e){for(let t in e)t==="projectionNodeConstructor"?Li.projectionNodeConstructor=e[t]:Li[t].Component=e[t]}f();h();d();f();h();d();var zS=pe(we(),1);function Fi(e){let t=(0,zS.useRef)(null);return t.current===null&&(t.current=e()),t.current}f();h();d();var $i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var fO=1;function HS(){return Fi(()=>{if($i.hasEverUpdated)return fO++})}f();h();d();var WS=pe(we(),1),rl=(0,WS.createContext)({});f();h();d();var qS=pe(we(),1),eh=class extends qS.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};f();h();d();var GS=pe(we(),1),th=(0,GS.createContext)({});f();h();d();var KS=Symbol.for("motionComponentSymbol");function YS({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:o,Component:i}){e&&jS(e);function a(l,c){let g=Se(oe(oe({},(0,$a.useContext)(tl)),l),{layoutId:dO(l)}),{isStatic:_}=g,k=null,R=US(l),I=_?void 0:HS(),V=o(l,_);if(!_&&Un){R.visualElement=LS(i,V,g,t);let j=(0,$a.useContext)(Qd).strict,L=(0,$a.useContext)(th);R.visualElement&&(k=R.visualElement.loadFeatures(g,j,e,I,r||Li.projectionNodeConstructor,L))}return qv.createElement(eh,{visualElement:R.visualElement,props:g},k,qv.createElement(Da.Provider,{value:R},n(i,l,I,$S(V,R.visualElement,c),V,_,R.visualElement)))}let s=(0,$a.forwardRef)(a);return s[KS]=i,s}function dO({layoutId:e}){let t=(0,$a.useContext)(rl).id;return t&&e!==void 0?t+"-"+e:e}f();h();d();function ZS(e){function t(n,o={}){return YS(e(n,o))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}f();h();d();f();h();d();f();h();d();var QS=["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 nl(e){return typeof e!="string"||e.includes("-")?!1:!!(QS.indexOf(e)>-1||/[A-Z]/.test(e))}f();h();d();var y6=pe(we(),1);f();h();d();var s6=pe(we(),1);f();h();d();f();h();d();var ol={};function XS(e){Object.assign(ol,e)}f();h();d();var il=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(il);function rh(e,{layout:t,layoutId:r}){return jn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ol[e]||e==="opacity")}f();h();d();var vr=e=>!!(e!=null&&e.getVelocity);f();h();d();f();h();d();var hO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pO=(e,t)=>il.indexOf(e)-il.indexOf(t);function JS({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},o,i){let a="";t.sort(pO);for(let s of t)a+=`${hO[s]||s}(${e[s]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,o?"":a):n&&o&&(a="none"),a}f();h();d();function nh(e){return e.startsWith("--")}f();h();d();var e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;f();h();d();f();h();d();f();h();d();f();h();d();var oh=(e,t)=>r=>Math.max(Math.min(r,t),e),Bi=e=>e%1?Number(e.toFixed(5)):e,Vi=/(-)?([\d]*\.?[\d])+/g,ih=/(#[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,t6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Yo(e){return typeof e=="string"}var yn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zo=Object.assign(Object.assign({},yn),{transform:oh(0,1)}),al=Object.assign(Object.assign({},yn),{default:1});f();h();d();var pc=e=>({test:t=>Yo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),io=pc("deg"),Or=pc("%"),Ge=pc("px"),Gv=pc("vh"),Kv=pc("vw"),ah=Object.assign(Object.assign({},Or),{parse:e=>Or.parse(e)/100,transform:e=>Or.transform(e*100)});f();h();d();f();h();d();var sl=(e,t)=>r=>Boolean(Yo(r)&&t6.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),sh=(e,t,r)=>n=>{if(!Yo(n))return n;let[o,i,a,s]=n.match(Vi);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var Qo={test:sl("hsl","hue"),parse:sh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Or.transform(Bi(t))+", "+Or.transform(Bi(r))+", "+Bi(Zo.transform(n))+")"};f();h();d();var mO=oh(0,255),lh=Object.assign(Object.assign({},yn),{transform:e=>Math.round(mO(e))}),ao={test:sl("rgb","red"),parse:sh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lh.transform(e)+", "+lh.transform(t)+", "+lh.transform(r)+", "+Bi(Zo.transform(n))+")"};f();h();d();function gO(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var ll={test:sl("#"),parse:gO,transform:ao.transform};f();h();d();var Xt={test:e=>ao.test(e)||ll.test(e)||Qo.test(e),parse:e=>ao.test(e)?ao.parse(e):Qo.test(e)?Qo.parse(e):ll.parse(e),transform:e=>Yo(e)?e:e.hasOwnProperty("red")?ao.transform(e):Qo.transform(e)};f();h();d();var r6="${c}",n6="${n}";function vO(e){var t,r,n,o;return isNaN(e)&&Yo(e)&&((r=(t=e.match(Vi))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(ih))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function o6(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(ih);n&&(r=n.length,e=e.replace(ih,r6),t.push(...n.map(Xt.parse)));let o=e.match(Vi);return o&&(e=e.replace(Vi,n6),t.push(...o.map(yn.parse))),{values:t,numColors:r,tokenised:e}}function i6(e){return o6(e).values}function a6(e){let{values:t,numColors:r,tokenised:n}=o6(e),o=t.length;return i=>{let a=n;for(let s=0;s<o;s++)a=a.replace(s<r?r6:n6,s<r?Xt.transform(i[s]):Bi(i[s]));return a}}var yO=e=>typeof e=="number"?0:e;function wO(e){let t=i6(e);return a6(e)(t.map(yO))}var _r={test:vO,parse:i6,createTransformer:a6,getAnimatableNone:wO};f();h();d();var xO=new Set(["brightness","contrast","saturate","opacity"]);function _O(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Vi)||[];if(!n)return e;let o=r.replace(n,""),i=xO.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var bO=/([a-z-]*)\(.*?\)/g,ul=Object.assign(Object.assign({},_r),{getAnimatableNone:e=>{let t=e.match(bO);return t?t.map(_O).join(" "):e}});f();h();d();var Yv=Se(oe({},yn),{transform:Math.round});var uh={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,size:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,rotate:io,rotateX:io,rotateY:io,rotateZ:io,scale:al,scaleX:al,scaleY:al,scaleZ:al,skew:io,skewX:io,skewY:io,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Zo,originX:ah,originY:ah,originZ:Ge,zIndex:Yv,fillOpacity:Zo,strokeOpacity:Zo,numOctaves:Yv};function cl(e,t,r,n){let{style:o,vars:i,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let c=!1,g=!1,_=!0;for(let k in t){let R=t[k];if(nh(k)){i[k]=R;continue}let I=uh[k],V=e6(R,I);if(jn.has(k)){if(c=!0,a[k]=V,s.push(k),!_)continue;R!==(I.default||0)&&(_=!1)}else k.startsWith("origin")?(g=!0,l[k]=V):o[k]=V}if(t.transform||(c||n?o.transform=JS(e,r,_,n):o.transform&&(o.transform="none")),g){let{originX:k="50%",originY:R="50%",originZ:I=0}=l;o.transformOrigin=`${k} ${R} ${I}`}}f();h();d();var fl=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Zv(e,t,r){for(let n in t)!vr(t[n])&&!rh(n,r)&&(e[n]=t[n])}function SO({transformTemplate:e},t,r){return(0,s6.useMemo)(()=>{let n=fl();return cl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function EO(e,t,r){let n=e.style||{},o={};return Zv(o,n,e),Object.assign(o,SO(e,t,r)),e.transformValues?e.transformValues(o):o}function l6(e,t,r){let n={},o=EO(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=o,n}f();h();d();f();h();d();var MO=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],CO=["whileTap","onTap","onTapStart","onTapCancel"],kO=["onPan","onPanStart","onPanSessionStart","onPanEnd"],TO=["whileInView","onViewportEnter","onViewportLeave","viewport"],PO=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",...TO,...CO,...MO,...kO]);function mc(e){return PO.has(e)}var f6=e=>!mc(e);function DO(e){!e||(f6=t=>t.startsWith("on")?!mc(t):e(t))}try{DO(c6().default)}catch(e){}function d6(e,t,r){let n={};for(let o in e)(f6(o)||r===!0&&mc(o)||!t&&!mc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}f();h();d();var g6=pe(we(),1);f();h();d();f();h();d();function h6(e,t,r){return typeof e=="string"?e:Ge.transform(t+r*e)}function p6(e,t,r){let n=h6(t,e.x,e.width),o=h6(r,e.y,e.height);return`${n} ${o}`}f();h();d();var LO={offset:"stroke-dashoffset",array:"stroke-dasharray"},FO={offset:"strokeDashoffset",array:"strokeDasharray"};function m6(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?LO:FO;e[i.offset]=Ge.transform(-n);let a=Ge.transform(t),s=Ge.transform(r);e[i.array]=`${a} ${s}`}function dl(e,k,c,g,_){var R=k,{attrX:t,attrY:r,originX:n,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0}=R,l=Ae(R,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(cl(e,l,c,_),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:I,style:V,dimensions:j}=e;I.transform&&(j&&(V.transform=I.transform),delete I.transform),j&&(n!==void 0||o!==void 0||V.transform)&&(V.transformOrigin=p6(j,n!==void 0?n:.5,o!==void 0?o:.5)),t!==void 0&&(I.x=t),r!==void 0&&(I.y=r),i!==void 0&&m6(I,i,a,s,!1)}f();h();d();var ch=()=>Se(oe({},fl()),{attrs:{}});f();h();d();var hl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function v6(e,t,r,n){let o=(0,g6.useMemo)(()=>{let i=ch();return dl(i,t,{enableHardwareAcceleration:!1},hl(n),e.transformTemplate),Se(oe({},i.attrs),{style:oe({},i.style)})},[t]);if(e.style){let i={};Zv(i,e.style,e),o.style=oe(oe({},i),o.style)}return o}function w6(e=!1){return(r,n,o,i,{latestValues:a},s)=>{let c=(nl(r)?v6:l6)(n,a,s,r),g=d6(n,typeof r=="string",e),_=Se(oe(oe({},g),c),{ref:i});return o&&(_["data-projection-id"]=o),(0,y6.createElement)(r,_)}}f();h();d();f();h();d();f();h();d();var fh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();f();h();d();function dh(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let i in r)e.style.setProperty(i,r[i])}f();h();d();var hh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function ph(e,t,r,n){dh(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(hh.has(o)?o:fh(o),t.attrs[o])}f();h();d();f();h();d();function pl(e){let{style:t}=e,r={};for(let n in t)(vr(t[n])||rh(n,e))&&(r[n]=t[n]);return r}function mh(e){let t=pl(e);for(let r in e)if(vr(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}f();h();d();var Jv=pe(we(),1);f();h();d();function ml(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}f();h();d();f();h();d();f();h();d();var Xo=e=>Array.isArray(e);var x6=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),gh=e=>Xo(e)?e[e.length-1]||0:e;function gl(e){let t=vr(e)?e.get():e;return x6(t)?t.toValue():t}function $O({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let a={latestValues:BO(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}var vh=e=>(t,r)=>{let n=(0,Jv.useContext)(Da),o=(0,Jv.useContext)(So),i=()=>$O(e,t,n,o);return r?i():Fi(i)};function BO(e,t,r,n){let o={},i=n(e);for(let k in i)o[k]=gl(i[k]);let{initial:a,animate:s}=e,l=Fa(e),c=Xd(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let g=r?r.initial===!1:!1;g=g||a===!1;let _=g?s:a;return _&&typeof _!="boolean"&&!Di(_)&&(Array.isArray(_)?_:[_]).forEach(R=>{let I=ml(e,R);if(!I)return;let D=I,{transitionEnd:V,transition:j}=D,L=Ae(D,["transitionEnd","transition"]);for(let B in L){let K=L[B];if(Array.isArray(K)){let X=g?K.length-1:0;K=K[X]}K!==null&&(o[B]=K)}for(let B in V)o[B]=V[B]}),o}var _6={useVisualState:vh({scrapeMotionValuesFromProps:mh,createRenderState:ch,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}dl(r,n,{enableHardwareAcceleration:!1},hl(t.tagName),e.transformTemplate),ph(t,r)}})};f();h();d();var b6={useVisualState:vh({scrapeMotionValuesFromProps:pl,createRenderState:fl})};function S6(e,{forwardMotionProps:t=!1},r,n,o){let i=nl(e)?_6:b6;return Se(oe({},i),{preloadedFeatures:r,useRender:w6(t),createVisualElement:n,projectionNodeConstructor:o,Component:e})}f();h();d();f();h();d();f();h();d();var bt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(bt||(bt={}));f();h();d();var E6=pe(we(),1);function Ba(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function gc(e,t,r,n){(0,E6.useEffect)(()=>{let o=e.current;if(r&&o)return Ba(o,t,r,n)},[e,t,r,n])}function M6({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(bt.Focus,!0)},o=()=>{r&&r.setActive(bt.Focus,!1)};gc(t,"focus",e?n:void 0),gc(t,"blur",e?o:void 0)}f();h();d();f();h();d();function yh(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function wh(e){return!!e.touches}f();h();d();f();h();d();function VO(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var UO={pageX:0,pageY:0};function jO(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||UO;return{x:n[t+"X"],y:n[t+"Y"]}}function zO(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function vc(e,t="page"){return{point:wh(e)?jO(e,t):zO(e,t)}}var ey=(e,t=!1)=>{let r=n=>e(n,vc(n));return t?VO(r):r};f();h();d();var C6=()=>Un&&window.onpointerdown===null,k6=()=>Un&&window.ontouchstart===null,T6=()=>Un&&window.onmousedown===null;var HO={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},WO={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function P6(e){return C6()?e:k6()?WO[e]:T6()?HO[e]:e}function Jo(e,t,r,n){return Ba(e,P6(t),ey(r,t==="pointerdown"),n)}function Va(e,t,r,n){return gc(e,P6(t),r&&ey(r,t==="pointerdown"),n)}f();h();d();function I6(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var R6=I6("dragHorizontal"),A6=I6("dragVertical");function ty(e){let t=!1;if(e==="y")t=A6();else if(e==="x")t=R6();else{let r=R6(),n=A6();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function xh(){let e=ty(!0);return e?(e(),!1):!0}function O6(e,t,r){return(n,o)=>{!yh(n)||xh()||(e.animationState&&e.animationState.setActive(bt.Hover,t),r&&r(n,o))}}function N6({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Va(n,"pointerenter",e||r?O6(n,!0,e):void 0,{passive:!e}),Va(n,"pointerleave",t||r?O6(n,!1,t):void 0,{passive:!t})}f();h();d();var ny=pe(we(),1);f();h();d();var ry=(e,t)=>t?e===t?!0:ry(e,t.parentElement):!1;f();h();d();var D6=pe(we(),1);function vl(e){return(0,D6.useEffect)(()=>()=>e(),[])}f();h();d();var qO=(e,t)=>r=>t(e(r)),Ui=(...e)=>e.reduce(qO);function L6({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:o}){let i=e||t||r||n,a=(0,ny.useRef)(!1),s=(0,ny.useRef)(null),l={passive:!(t||e||r||R)};function c(){s.current&&s.current(),s.current=null}function g(){return c(),a.current=!1,o.animationState&&o.animationState.setActive(bt.Tap,!1),!xh()}function _(I,V){!g()||(ry(o.current,I.target)?e&&e(I,V):r&&r(I,V))}function k(I,V){!g()||r&&r(I,V)}function R(I,V){c(),!a.current&&(a.current=!0,s.current=Ui(Jo(window,"pointerup",_,l),Jo(window,"pointercancel",k,l)),o.animationState&&o.animationState.setActive(bt.Tap,!0),t&&t(I,V))}Va(o,"pointerdown",i?R:void 0,l),vl(c)}f();h();d();f();h();d();var GO="production",yl=typeof process>"u"||process.env===void 0?GO:"production";var yc=pe(we(),1);f();h();d();var F6=new Set;function _h(e,t,r){e||F6.has(t)||(console.warn(t),r&&console.warn(r),F6.add(t))}f();h();d();var iy=new WeakMap,oy=new WeakMap,KO=e=>{let t=iy.get(e.target);t&&t(e)},YO=e=>{e.forEach(KO)};function ZO(r){var n=r,{root:e}=n,t=Ae(n,["root"]);let o=e||document;oy.has(o)||oy.set(o,{});let i=oy.get(o),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(YO,oe({root:e},t))),i[a]}function $6(e,t,r){let n=ZO(t);return iy.set(e,r),n.observe(e),()=>{iy.delete(e),n.unobserve(e)}}function B6({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:o={}}){let i=(0,yc.useRef)({hasEnteredView:!1,isInView:!1}),a=Boolean(t||r||n);o.once&&i.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?JO:XO)(a,i.current,e,o)}var QO={some:0,all:1};function XO(e,t,r,{root:n,margin:o,amount:i="some",once:a}){(0,yc.useEffect)(()=>{if(!e||!r.current)return;let s={root:n==null?void 0:n.current,rootMargin:o,threshold:typeof i=="number"?i:QO[i]},l=c=>{let{isIntersecting:g}=c;if(t.isInView===g||(t.isInView=g,a&&!g&&t.hasEnteredView))return;g&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(bt.InView,g);let _=r.getProps(),k=g?_.onViewportEnter:_.onViewportLeave;k&&k(c)};return $6(r.current,s,l)},[e,n,o,i])}function JO(e,t,r,{fallback:n=!0}){(0,yc.useEffect)(()=>{!e||!n||(yl!=="production"&&_h(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:o}=r.getProps();o&&o(null),r.animationState&&r.animationState.setActive(bt.InView,!0)}))},[e])}f();h();d();var so=e=>t=>(e(t),null);var V6={inView:so(B6),tap:so(L6),focus:so(M6),hover:so(N6)};f();h();d();var Sc=pe(we(),1);f();h();d();var wl=pe(we(),1);function bh(){let e=(0,wl.useContext)(So);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,wl.useId)();return(0,wl.useEffect)(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}f();h();d();f();h();d();function ay(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}f();h();d();f();h();d();f();h();d();var xl=e=>e*1e3;f();h();d();f();h();d();var Ua=function(){},br=function(){};f();h();d();f();h();d();var _l=e=>e;var U6=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,eN=1e-7,tN=12;function rN(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=U6(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>eN&&++s<tN);return a}function j6(e,t,r,n){if(e===t&&r===n)return _l;let o=i=>rN(i,0,1,e,r);return i=>i===0||i===1?i:U6(o(i),t,n)}f();h();d();f();h();d();var bl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;f();h();d();var Sl=e=>t=>1-e(1-t);var Sh=e=>e*e,z6=Sl(Sh),Eh=bl(Sh);f();h();d();var sy=e=>1-Math.sin(Math.acos(e)),wc=Sl(sy),H6=bl(wc);f();h();d();var ly=(e=1.525)=>t=>t*t*((e+1)*t-e),Mh=ly(),W6=Sl(Mh),q6=bl(Mh);f();h();d();var nN=e=>{let t=ly(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},G6=nN();var K6={linear:_l,easeIn:Sh,easeInOut:Eh,easeOut:z6,circIn:sy,circInOut:H6,circOut:wc,backIn:Mh,backInOut:q6,backOut:W6,anticipate:G6},uy=e=>{if(Array.isArray(e)){br(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return j6(t,r,n,o)}else if(typeof e=="string")return br(K6[e]!==void 0,`Invalid easing type '${e}'`),K6[e];return e},Y6=e=>Array.isArray(e)&&typeof e[0]!="number";f();h();d();var cy=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&_r.test(t)&&!t.startsWith("url("));f();h();d();var ja=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Ch=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fy=()=>({type:"keyframes",ease:"linear",duration:.3}),oN=e=>({type:"keyframes",duration:.8,values:e}),Z6={x:ja,y:ja,z:ja,rotate:ja,rotateX:ja,rotateY:ja,rotateZ:ja,scaleX:Ch,scaleY:Ch,scale:Ch,opacity:fy,backgroundColor:fy,color:fy,default:Ch},Q6=(e,t)=>{let r;return Xo(t)?r=oN:r=Z6[e]||Z6.default,oe({to:t},r(t))};f();h();d();f();h();d();var iN=Se(oe({},uh),{color:Xt,backgroundColor:Xt,outlineColor:Xt,fill:Xt,stroke:Xt,borderColor:Xt,borderTopColor:Xt,borderRightColor:Xt,borderBottomColor:Xt,borderLeftColor:Xt,filter:ul,WebkitFilter:ul}),El=e=>iN[e];function xc(e,t){var r;let n=El(e);return n!==ul&&(n=_r),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}f();h();d();var X6={current:!1};f();h();d();f();h();d();f();h();d();var dy=16.666666666666668,aN=typeof performance<"u"?()=>performance.now():()=>Date.now(),hy=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(aN()),dy);f();h();d();function J6(e){let t=[],r=[],n=0,o=!1,i=!1,a=new WeakSet,s={schedule:(l,c=!1,g=!1)=>{let _=g&&o,k=_?t:r;return c&&a.add(l),k.indexOf(l)===-1&&(k.push(l),_&&o&&(n=t.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c<n;c++){let g=t[c];g(l),a.has(g)&&(s.schedule(g),e())}o=!1,i&&(i=!1,s.process(l))}};return s}var sN=40,py=!0,_c=!1,my=!1,Ml={delta:0,timestamp:0},bc=["read","update","preRender","render","postRender"],kh=bc.reduce((e,t)=>(e[t]=J6(()=>_c=!0),e),{}),lN=bc.reduce((e,t)=>{let r=kh[t];return e[t]=(n,o=!1,i=!1)=>(_c||cN(),r.schedule(n,o,i)),e},{}),wn=bc.reduce((e,t)=>(e[t]=kh[t].cancel,e),{}),Th=bc.reduce((e,t)=>(e[t]=()=>kh[t].process(Ml),e),{}),uN=e=>kh[e].process(Ml),e4=e=>{_c=!1,Ml.delta=py?dy:Math.max(Math.min(e-Ml.timestamp,sN),1),Ml.timestamp=e,my=!0,bc.forEach(uN),my=!1,_c&&(py=!1,hy(e4))},cN=()=>{_c=!0,py=!0,my||hy(e4)},za=()=>Ml,nr=lN;function Ph(e,t){let r=performance.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(wn.read(n),e(i-t))};return nr.read(n,!0),()=>wn.read(n)}f();h();d();f();h();d();f();h();d();f();h();d();f();h();d();var Ha=(e,t,r)=>Math.min(Math.max(r,e),t);f();h();d();var St=(e,t,r)=>-r*e+r*t+e;f();h();d();f();h();d();function gy(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 t4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=gy(l,s,e+1/3),i=gy(l,s,e),a=gy(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}var vy=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},fN=[ll,ao,Qo],dN=e=>fN.find(t=>t.test(e));function r4(e){let t=dN(e);br(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Qo&&(r=t4(r)),r}var Rh=(e,t)=>{let r=r4(e),n=r4(t),o=oe({},r);return i=>(o.red=vy(r.red,n.red,i),o.green=vy(r.green,n.green,i),o.blue=vy(r.blue,n.blue,i),o.alpha=St(r.alpha,n.alpha,i),ao.transform(o))};f();h();d();function o4(e,t){return typeof e=="number"?r=>St(e,t,r):Xt.test(e)?Rh(e,t):wy(e,t)}var yy=(e,t)=>{let r=[...e],n=r.length,o=e.map((i,a)=>o4(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}},i4=(e,t)=>{let r=oe(oe({},e),t),n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=o4(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}};function n4(e){let t=_r.parse(e),r=t.length,n=0,o=0;for(let i=0;i<r;i++)n||typeof t[i]=="number"?n++:o++;return{parsed:t,numNumbers:n,numColors:o}}var wy=(e,t)=>{let r=_r.createTransformer(t),n=n4(e),o=n4(t);return n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Ui(yy(n.parsed,o.parsed),r):(Ua(!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.`),a=>`${a>0?t:e}`)};f();h();d();var Wa=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var a4=(e,t)=>r=>St(e,t,r);function hN(e){return typeof e=="number"?a4:typeof e=="string"?Xt.test(e)?Rh:wy:Array.isArray(e)?yy:typeof e=="object"?i4:a4}function pN(e,t,r){let n=[],o=r||hN(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]:t;s=Ui(l,s)}n.push(s)}return n}function Ah(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;br(i===t.length,"Both input and output ranges must be the same length"),br(!n||!Array.isArray(n)||n.length===i-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[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=pN(t,n,o),s=a.length,l=c=>{let g=0;if(s>1)for(;g<e.length-2&&!(c<e[g+1]);g++);let _=Wa(e[g],e[g+1],c);return a[g](_)};return r?c=>l(Ha(e[0],e[i-1],c)):l}function mN(e,t){return e.map(()=>t||Eh).splice(0,e.length-1)}function gN(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function vN(e,t){return e.map(r=>r*t)}function s4({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){let i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=vN(n&&n.length===a.length?n:gN(a),o);function l(){return Ah(s,a,{ease:Array.isArray(r)?r:mN(a,r)})}let c=l();return{next:g=>(i.value=c(g),i.done=g>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}f();h();d();f();h();d();var xy=.001,yN=.01,l4=10,wN=.05,xN=1;function u4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Ua(e<=l4*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=Ha(wN,xN,a),e=Ha(yN,l4,e/1e3),a<1?(o=c=>{let g=c*a,_=g*e,k=g-r,R=Ih(c,a),I=Math.exp(-_);return xy-k/R*I},i=c=>{let _=c*a*e,k=_*r+r,R=Math.pow(a,2)*Math.pow(c,2)*e,I=Math.exp(-_),V=Ih(Math.pow(c,2),a);return(-o(c)+xy>0?-1:1)*((k-R)*I)/V}):(o=c=>{let g=Math.exp(-c*e),_=(c-r)*e+1;return-xy+g*_},i=c=>{let g=Math.exp(-c*e),_=(r-c)*(e*e);return g*_});let s=5/e,l=bN(o,i,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}var _N=12;function bN(e,t,r){let n=r;for(let o=1;o<_N;o++)n=n-e(n)/t(n);return n}function Ih(e,t){return e*Math.sqrt(1-t*t)}var SN=["duration","bounce"],EN=["stiffness","damping","mass"];function c4(e,t){return t.some(r=>e[r]!==void 0)}function MN(e){let t=oe({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!c4(e,EN)&&c4(e,SN)){let r=u4(e);t=Se(oe(oe({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function _y(i){var a=i,{from:e=0,to:t=1,restSpeed:r=2,restDelta:n=.01}=a,o=Ae(a,["from","to","restSpeed","restDelta"]);let s={done:!1,value:e},{stiffness:l,damping:c,mass:g,velocity:_,duration:k,isResolvedFromDuration:R}=MN(o),I=f4,V=f4;function j(){let L=_?-(_/1e3):0,D=t-e,B=c/(2*Math.sqrt(l*g)),K=Math.sqrt(l/g)/1e3;if(n===void 0&&(n=Math.min(Math.abs(t-e)/100,.4)),B<1){let X=Ih(K,B);I=ue=>{let ae=Math.exp(-B*K*ue);return t-ae*((L+B*K*D)/X*Math.sin(X*ue)+D*Math.cos(X*ue))},V=ue=>{let ae=Math.exp(-B*K*ue);return B*K*ae*(Math.sin(X*ue)*(L+B*K*D)/X+D*Math.cos(X*ue))-ae*(Math.cos(X*ue)*(L+B*K*D)-X*D*Math.sin(X*ue))}}else if(B===1)I=X=>t-Math.exp(-K*X)*(D+(L+K*D)*X);else{let X=K*Math.sqrt(B*B-1);I=ue=>{let ae=Math.exp(-B*K*ue),ve=Math.min(X*ue,300);return t-ae*((L+B*K*D)*Math.sinh(ve)+X*D*Math.cosh(ve))/X}}}return j(),{next:L=>{let D=I(L);if(R)s.done=L>=k;else{let B=V(L)*1e3,K=Math.abs(B)<=r,X=Math.abs(t-D)<=n;s.done=K&&X}return s.value=s.done?t:D,s},flipTarget:()=>{_=-_,[e,t]=[t,e],j()}}}_y.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var f4=e=>0;f();h();d();function d4({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){let a={done:!1,value:t},s=r*e,l=t+s,c=i===void 0?l:i(l);return c!==l&&(s=c-t),{next:g=>{let _=-s*Math.exp(-g/n);return a.done=!(_>o||_<-o),a.value=a.done?c:c+_,a},flipTarget:()=>{}}}var CN={decay:d4,keyframes:s4,spring:_y};function h4(e,t,r=0){return e-t-r}function kN(e,t=0,r=0,n=!0){return n?h4(t+-e,t,r):t-(e-t)+r}function TN(e,t,r,n){return n?e>=t+r:e<=-r}var PN=e=>{let t=({delta:r})=>e(r);return{start:()=>nr.update(t,!0),stop:()=>wn.update(t)}};function Oh(I){var V=I,{from:e,autoplay:t=!0,driver:r=PN,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:a=0,onPlay:s,onStop:l,onComplete:c,onRepeat:g,onUpdate:_,type:k="keyframes"}=V,R=Ae(V,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var j,L;let{to:D}=R,B,K=0,X=R.duration,ue,ae=!1,ve=!0,G,w=CN[Array.isArray(D)?"keyframes":k];!((L=(j=w).needsInterpolation)===null||L===void 0)&&L.call(j,e,D)&&(G=Ah([0,100],[e,D],{clamp:!1}),e=0,D=100);let T=w(Se(oe({},R),{from:e,to:D}));function A(){K++,i==="reverse"?(ve=K%2===0,n=kN(n,X,a,ve)):(n=h4(n,X,a),i==="mirror"&&T.flipTarget()),ae=!1,g&&g()}function b(){B.stop(),c&&c()}function u(y){if(ve||(y=-y),n+=y,!ae){let x=T.next(Math.max(0,n));ue=x.value,G&&(ue=G(ue)),ae=ve?x.done:n<=0}_==null||_(ue),ae&&(K===0&&(X!=null||(X=n)),K<o?TN(n,X,a,ve)&&A():b())}function m(){s==null||s(),B=r(u),B.start()}return t&&m(),{stop:()=>{l==null||l(),B.stop()}}}f();h();d();function Nh(e,t){return t?e*(1e3/t):0}function p4({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:g,onUpdate:_,onComplete:k,onStop:R}){let I;function V(B){return r!==void 0&&B<r||n!==void 0&&B>n}function j(B){return r===void 0?n:n===void 0||Math.abs(r-B)<Math.abs(n-B)?r:n}function L(B){I==null||I.stop(),I=Oh(Se(oe({},B),{driver:g,onUpdate:K=>{var X;_==null||_(K),(X=B.onUpdate)===null||X===void 0||X.call(B,K)},onComplete:k,onStop:R}))}function D(B){L(oe({type:"spring",stiffness:a,damping:s,restDelta:l},B))}if(V(e))D({from:e,velocity:t,to:j(e)});else{let B=o*t+e;typeof c<"u"&&(B=c(B));let K=j(B),X=K===r?-1:1,ue,ae,ve=G=>{ue=ae,ae=G,t=Nh(G-ue,za().delta),(X===1&&G>K||X===-1&&G<K)&&D({from:G,to:K,velocity:t})};L({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:V(B)?ve:void 0})}return{stop:()=>I==null?void 0:I.stop()}}function RN(g){var _=g,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l}=_,c=Ae(_,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(c).length}var m4=!1;function AN(a){var s=a,{ease:e,times:t,yoyo:r,flip:n,loop:o}=s,i=Ae(s,["ease","times","yoyo","flip","loop"]);let l=oe({},i);return t&&(l.offset=t),i.duration&&(l.duration=xl(i.duration)),i.repeatDelay&&(l.repeatDelay=xl(i.repeatDelay)),e&&(l.ease=Y6(e)?e.map(uy):uy(e)),i.type==="tween"&&(l.type="keyframes"),(r||o||n)&&(Ua(!m4,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),m4=!0,r?l.repeatType="reverse":o?l.repeatType="loop":n&&(l.repeatType="mirror"),l.repeat=o||r||n||i.repeat),i.type!=="spring"&&(l.type="keyframes"),l}function IN(e,t){var r,n;return(n=(r=(Dh(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function ON(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function NN(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),ON(t),RN(e)||(e=oe(oe({},e),Q6(r,t.to))),oe(oe({},t),AN(e))}function DN(e,t,r,n,o){let i=Dh(n,e)||{},a=i.from!==void 0?i.from:t.get(),s=cy(e,r);a==="none"&&s&&typeof r=="string"?a=xc(e,r):g4(a)&&typeof r=="string"?a=v4(r):!Array.isArray(r)&&g4(r)&&typeof a=="string"&&(r=v4(a));let l=cy(e,a);Ua(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`);function c(){let _={from:a,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:k=>t.set(k)};return i.type==="inertia"||i.type==="decay"?p4(oe(oe({},_),i)):Oh(Se(oe({},NN(i,_,e)),{onUpdate:k=>{_.onUpdate(k),i.onUpdate&&i.onUpdate(k)},onComplete:()=>{_.onComplete(),i.onComplete&&i.onComplete()}}))}function g(){let _=gh(r);return t.set(_),o(),i.onUpdate&&i.onUpdate(_),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!l||!s||i.type===!1?g:c}function g4(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function v4(e){return typeof e=="number"?0:xc("",e)}function Dh(e,t){return e[t]||e.default||e}function Cl(e,t,r,n={}){return X6.current&&(n={type:!1}),t.start(o=>{let i,a=DN(e,t,r,n,o),s=IN(n,e),l=()=>i=a(),c;return s?c=Ph(l,xl(s)):l(),()=>{c&&c(),i&&i.stop()}})}f();h();d();f();h();d();var y4=e=>/^\-?\d*\.?\d+$/.test(e);f();h();d();var w4=e=>/^0[^.\s]+$/.test(e);f();h();d();f();h();d();f();h();d();function kl(e,t){e.indexOf(t)===-1&&e.push(t)}function Tl(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Eo=class{constructor(){this.subscriptions=[]}add(t){return kl(this.subscriptions,t),()=>Tl(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let a=this.subscriptions[i];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var LN=e=>!isNaN(parseFloat(e)),by=class{constructor(t){this.version="7.6.19",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Eo,this.velocityUpdateSubscribers=new Eo,this.renderSubscribers=new Eo,this.canTrackVelocity=!1,this.updateAndNotify=(r,n=!0)=>{this.prev=this.current,this.current=r;let{delta:o,timestamp:i}=za();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,nr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),n&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>nr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=LN(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Nh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}};function Mo(e){return new by(e)}f();h();d();f();h();d();f();h();d();var Lh=e=>t=>t.test(e);f();h();d();var x4={test:e=>e==="auto",parse:e=>e};var Sy=[yn,Ge,Or,io,Kv,Gv,x4],Pl=e=>Sy.find(Lh(e));var FN=[...Sy,Xt,_r],_4=e=>FN.find(Lh(e));f();h();d();function $N(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function BN(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function qa(e,t,r){let n=e.getProps();return ml(n,t,r!==void 0?r:n.custom,$N(e),BN(e))}function VN(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Mo(r))}function b4(e,t){let r=qa(e,t),a=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:o={}}=a,i=Ae(a,["transitionEnd","transition"]);i=oe(oe({},i),n);for(let s in i){let l=gh(i[s]);VN(e,s,l)}}function S4(e,t,r){var n,o;let i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(!!a)for(let s=0;s<a;s++){let l=i[s],c=t[l],g=null;Array.isArray(c)&&(g=c[0]),g===null&&(g=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),g!=null&&(typeof g=="string"&&(y4(g)||w4(g))?g=parseFloat(g):!_4(g)&&_r.test(c)&&(g=xc(l,c)),e.addValue(l,Mo(g)),r[l]===void 0&&(r[l]=g),g!==null&&e.setBaseTarget(l,g))}}function UN(e,t){return t?(t[e]||t.default||t).from:void 0}function E4(e,t,r){var n;let o={};for(let i in e){let a=UN(i,t);o[i]=a!==void 0?a:(n=r.getValue(i))===null||n===void 0?void 0:n.get()}return o}f();h();d();function Ga(e){return Boolean(vr(e)&&e.add)}function M4(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>Ey(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Ey(e,t,r);else{let o=typeof t=="function"?qa(e,t,r.custom):t;n=C4(e,o,r)}return n.then(()=>e.notify("AnimationComplete",t))}function Ey(e,t,r={}){var n;let o=qa(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let a=o?()=>C4(e,o,r):()=>Promise.resolve(),s=!((n=e.variantChildren)===null||n===void 0)&&n.size?(c=0)=>{let{delayChildren:g=0,staggerChildren:_,staggerDirection:k}=i;return jN(e,t,g+c,_,k,r)}:()=>Promise.resolve(),{when:l}=i;if(l){let[c,g]=l==="beforeChildren"?[a,s]:[s,a];return c().then(g)}else return Promise.all([a(),s(r.delay)])}function C4(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let k=e.makeTargetAnimatable(t),{transition:a=e.getDefaultTransition(),transitionEnd:s}=k,l=Ae(k,["transition","transitionEnd"]),c=e.getValue("willChange");n&&(a=n);let g=[],_=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(let R in l){let I=e.getValue(R),V=l[R];if(!I||V===void 0||_&&HN(_,R))continue;let j=oe({delay:r},a);e.shouldReduceMotion&&jn.has(R)&&(j=Se(oe({},j),{type:!1,delay:0}));let L=Cl(R,I,V,j);Ga(c)&&(c.add(R),L=L.then(()=>c.remove(R))),g.push(L)}return Promise.all(g).then(()=>{s&&b4(e,s)})}function jN(e,t,r=0,n=0,o=1,i){let a=[],s=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>s-c*n;return Array.from(e.variantChildren).sort(zN).forEach((c,g)=>{a.push(Ey(c,t,Se(oe({},i),{delay:r+l(g)})).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function zN(e,t){return e.sortNodePosition(t)}function HN({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Fh=[bt.Animate,bt.InView,bt.Focus,bt.Hover,bt.Tap,bt.Drag,bt.Exit],WN=[...Fh].reverse(),qN=Fh.length;function GN(e){return t=>Promise.all(t.map(({animation:r,options:n})=>M4(e,r,n)))}function k4(e){let t=GN(e),r=YN(),n=!0,o=(l,c)=>{let g=qa(e,c);if(g){let _=g,{transition:k,transitionEnd:R}=_,I=Ae(_,["transition","transitionEnd"]);l=oe(oe(oe({},l),I),R)}return l};function i(l){t=l(e)}function a(l,c){var g;let _=e.getProps(),k=e.getVariantContext(!0)||{},R=[],I=new Set,V={},j=1/0;for(let D=0;D<qN;D++){let B=WN[D],K=r[B],X=(g=_[B])!==null&&g!==void 0?g:k[B],ue=Go(X),ae=B===c?K.isActive:null;ae===!1&&(j=D);let ve=X===k[B]&&X!==_[B]&&ue;if(ve&&n&&e.manuallyAnimateOnMount&&(ve=!1),K.protectedKeys=oe({},V),!K.isActive&&ae===null||!X&&!K.prevProp||Di(X)||typeof X=="boolean")continue;let G=KN(K.prevProp,X),w=G||B===c&&K.isActive&&!ve&&ue||D>j&&ue,T=Array.isArray(X)?X:[X],A=T.reduce(o,{});ae===!1&&(A={});let{prevResolvedValues:b={}}=K,u=oe(oe({},b),A),m=y=>{w=!0,I.delete(y),K.needsAnimating[y]=!0};for(let y in u){let x=A[y],p=b[y];V.hasOwnProperty(y)||(x!==p?Xo(x)&&Xo(p)?!ay(x,p)||G?m(y):K.protectedKeys[y]=!0:x!==void 0?m(y):I.add(y):x!==void 0&&I.has(y)?m(y):K.protectedKeys[y]=!0)}K.prevProp=X,K.prevResolvedValues=A,K.isActive&&(V=oe(oe({},V),A)),n&&e.blockInitialAnimation&&(w=!1),w&&!ve&&R.push(...T.map(y=>({animation:y,options:oe({type:B},l)})))}if(I.size){let D={};I.forEach(B=>{let K=e.getBaseTarget(B);K!==void 0&&(D[B]=K)}),R.push({animation:D})}let L=Boolean(R.length);return n&&_.initial===!1&&!e.manuallyAnimateOnMount&&(L=!1),n=!1,L?t(R):Promise.resolve()}function s(l,c,g){var _;if(r[l].isActive===c)return Promise.resolve();(_=e.variantChildren)===null||_===void 0||_.forEach(R=>{var I;return(I=R.animationState)===null||I===void 0?void 0:I.setActive(l,c)}),r[l].isActive=c;let k=a(g,l);for(let R in r)r[R].protectedKeys={};return k}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function KN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ay(t,e):!1}function Ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function YN(){return{[bt.Animate]:Ka(!0),[bt.InView]:Ka(),[bt.Hover]:Ka(),[bt.Tap]:Ka(),[bt.Drag]:Ka(),[bt.Focus]:Ka(),[bt.Exit]:Ka()}}var T4={animation:so(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=k4(e)),Di(t)&&(0,Sc.useEffect)(()=>t.subscribe(e),[t])}),exit:so(e=>{let{custom:t,visualElement:r}=e,[n,o]=bh(),i=(0,Sc.useContext)(So);(0,Sc.useEffect)(()=>{r.isPresent=n;let a=r.animationState&&r.animationState.setActive(bt.Exit,!n,{custom:i&&i.custom||t});a&&!n&&a.then(o)},[n])})};f();h();d();f();h();d();var Iy=pe(we(),1);f();h();d();f();h();d();f();h();d();var P4=(e,t)=>Math.abs(e-t);function R4(e,t){let r=P4(e.x,t.x),n=P4(e.y,t.y);return Math.sqrt(r**2+n**2)}var Rl=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 c=Cy(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=R4(c.offset,{x:0,y:0})>=3;if(!g&&!_)return;let{point:k}=c,{timestamp:R}=za();this.history.push(Se(oe({},k),{timestamp:R}));let{onStart:I,onMove:V}=this.handlers;g||(I&&I(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),V&&V(this.lastMoveEvent,c)},this.handlePointerMove=(c,g)=>{if(this.lastMoveEvent=c,this.lastMoveEventInfo=My(g,this.transformPagePoint),yh(c)&&c.buttons===0){this.handlePointerUp(c,g);return}nr.update(this.updatePoint,!0)},this.handlePointerUp=(c,g)=>{this.end();let{onEnd:_,onSessionEnd:k}=this.handlers,R=Cy(My(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(c,R),k&&k(c,R)},wh(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let o=vc(t),i=My(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=za();this.history=[Se(oe({},a),{timestamp:s})];let{onSessionStart:l}=r;l&&l(t,Cy(i,this.history)),this.removeListeners=Ui(Jo(window,"pointermove",this.handlePointerMove),Jo(window,"pointerup",this.handlePointerUp),Jo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),wn.update(this.updatePoint)}};function My(e,t){return t?{point:t(e.point)}:e}function A4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cy({point:e},t){return{point:e,delta:A4(e,I4(t)),offset:A4(e,ZN(t)),velocity:QN(t,.1)}}function ZN(e){return e[0]}function I4(e){return e[e.length-1]}function QN(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=I4(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>xl(t)));)r--;if(!n)return{x:0,y:0};let i=(o.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};let a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}f();h();d();f();h();d();function Sr(e){return e.max-e.min}function $h(e,t=0,r=.01){return Math.abs(e-t)<=r}function O4(e,t,r,n=.5){e.origin=n,e.originPoint=St(t.min,t.max,e.origin),e.scale=Sr(r)/Sr(t),($h(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=St(r.min,r.max,e.origin)-e.originPoint,($h(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Al(e,t,r,n){O4(e.x,t.x,r.x,n==null?void 0:n.originX),O4(e.y,t.y,r.y,n==null?void 0:n.originY)}function N4(e,t,r){e.min=r.min+t.min,e.max=e.min+Sr(t)}function L4(e,t,r){N4(e.x,t.x,r.x),N4(e.y,t.y,r.y)}function D4(e,t,r){e.min=t.min-r.min,e.max=e.min+Sr(t)}function Il(e,t,r){D4(e.x,t.x,r.x),D4(e.y,t.y,r.y)}function U4(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?St(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?St(r,e,n.max):Math.min(e,r)),e}function F4(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 j4(e,{top:t,left:r,bottom:n,right:o}){return{x:F4(e.x,r,o),y:F4(e.y,t,n)}}function $4(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 z4(e,t){return{x:$4(e.x,t.x),y:$4(e.y,t.y)}}function H4(e,t){let r=.5,n=Sr(e),o=Sr(t);return o>n?r=Wa(t.min,t.max-n,e.min):n>o&&(r=Wa(e.min,e.max-o,t.min)),Ha(0,1,r)}function W4(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 Bh=.35;function q4(e=Bh){return e===!1?e=0:e===!0&&(e=Bh),{x:B4(e,"left","right"),y:B4(e,"top","bottom")}}function B4(e,t,r){return{min:V4(e,t),max:V4(e,r)}}function V4(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}f();h();d();var G4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ol=()=>({x:G4(),y:G4()}),K4=()=>({min:0,max:0}),qt=()=>({x:K4(),y:K4()});f();h();d();function zn(e){return[e("x"),e("y")]}f();h();d();f();h();d();function Vh({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Y4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Z4(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}}f();h();d();f();h();d();function ky(e){return e===void 0||e===1}function Uh({scale:e,scaleX:t,scaleY:r}){return!ky(e)||!ky(t)||!ky(r)}function ei(e){return Uh(e)||Ty(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ty(e){return Q4(e.x)||Q4(e.y)}function Q4(e){return e&&e!=="0%"}function Ec(e,t,r){let n=e-r,o=t*n;return r+o}function X4(e,t,r,n,o){return o!==void 0&&(e=Ec(e,o,n)),Ec(e,r,n)+t}function Py(e,t=0,r=1,n,o){e.min=X4(e.min,t,r,n,o),e.max=X4(e.max,t,r,n,o)}function Ry(e,{x:t,y:r}){Py(e.x,t.translate,t.scale,t.originPoint),Py(e.y,r.translate,r.scale,r.originPoint)}function t5(e,t,r,n=!1){var o,i;let a=r.length;if(!a)return;t.x=t.y=1;let s,l;for(let c=0;c<a;c++)s=r[c],l=s.projectionDelta,((i=(o=s.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ya(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Ry(e,l)),n&&ei(s.latestValues)&&Ya(e,s.latestValues));t.x=J4(t.x),t.y=J4(t.y)}function J4(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Co(e,t){e.min=e.min+t,e.max=e.max+t}function e5(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,a=St(e.min,e.max,i);Py(e,t[r],t[n],a,t.scale)}var XN=["x","scaleX","originX"],JN=["y","scaleY","originY"];function Ya(e,t){e5(e.x,t,XN),e5(e.y,t,JN)}function Ay(e,t){return Vh(Z4(e.getBoundingClientRect(),t))}function r5(e,t,r){let n=Ay(e,r),{scroll:o}=t;return o&&(Co(n.x,o.offset.x),Co(n.y,o.offset.y)),n}var eD=new WeakMap,zh=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=qt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=s=>{this.stopAnimation(),r&&this.snapToCursor(vc(s,"page").point)},o=(s,l)=>{var c;let{drag:g,dragPropagation:_,onDragStart:k}=this.getProps();g&&!_&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ty(g),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zn(R=>{var I,V;let j=this.getAxisMotionValue(R).get()||0;if(Or.test(j)){let L=(V=(I=this.visualElement.projection)===null||I===void 0?void 0:I.layout)===null||V===void 0?void 0:V.layoutBox[R];L&&(j=Sr(L)*(parseFloat(j)/100))}this.originPoint[R]=j}),k==null||k(s,l),(c=this.visualElement.animationState)===null||c===void 0||c.setActive(bt.Drag,!0))},i=(s,l)=>{let{dragPropagation:c,dragDirectionLock:g,onDirectionLock:_,onDrag:k}=this.getProps();if(!c&&!this.openGlobalLock)return;let{offset:R}=l;if(g&&this.currentDirection===null){this.currentDirection=tD(R),this.currentDirection!==null&&(_==null||_(this.currentDirection));return}this.updateAxis("x",l.point,R),this.updateAxis("y",l.point,R),this.visualElement.render(),k==null||k(s,l)},a=(s,l)=>this.stop(s,l);this.panSession=new Rl(t,{onSessionStart:n,onStart:o,onMove:i,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i==null||i(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(bt.Drag,!1)}updateAxis(t,r,n){let{drag:o}=this.getProps();if(!n||!jh(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=U4(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&qo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=j4(n.layoutBox,t):this.constraints=!1,this.elastic=q4(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=W4(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!qo(t))return!1;let n=t.current;br(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=r5(n,o.root,this.visualElement.getTransformPagePoint()),a=z4(o.layout.layoutBox,i);if(r){let s=r(Y4(a));this.hasMutatedConstraints=!!s,s&&(a=Vh(s))}return a}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=zn(g=>{var _;if(!jh(g,r,this.currentDirection))return;let k=(_=l==null?void 0:l[g])!==null&&_!==void 0?_:{};a&&(k={min:0,max:0});let R=o?200:1e6,I=o?40:1e7,V=oe(oe({type:"inertia",velocity:n?t[g]:0,bounceStiffness:R,bounceDamping:I,timeConstant:750,restDelta:1,restSpeed:10},i),k);return this.startAxisValueAnimation(g,V)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return Cl(t,n,0,r)}stopAnimation(){zn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,n;let o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)}snapToCursor(t){zn(r=>{let{drag:n}=this.getProps();if(!jh(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){let{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-St(a,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!qo(n)||!o||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};zn(s=>{let l=this.getAxisMotionValue(s);if(l){let c=l.get();i[s]=H4({min:c,max:c},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),zn(s=>{if(!jh(s,r,null))return;let l=this.getAxisMotionValue(s),{min:c,max:g}=this.constraints[s];l.set(St(c,g,i[s]))})}addListeners(){var t;if(!this.visualElement.current)return;eD.set(this.visualElement,this);let r=this.visualElement.current,n=Jo(r,"pointerdown",c=>{let{drag:g,dragListener:_=!0}=this.getProps();g&&_&&this.start(c)}),o=()=>{let{dragConstraints:c}=this.getProps();qo(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();let s=Ba(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:g})=>{this.isDragging&&g&&(zn(_=>{let k=this.getAxisMotionValue(_);!k||(this.originPoint[_]+=c[_].translate,k.set(k.get()+c[_].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),l==null||l()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Bh,dragMomentum:s=!0}=t;return Se(oe({},t),{drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s})}};function jh(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function tD(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function n5(e){let{dragControls:t,visualElement:r}=e,n=Fi(()=>new zh(r));(0,Iy.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,Iy.useEffect)(()=>n.addListeners(),[n])}f();h();d();var Nl=pe(we(),1);function o5({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:o}){let i=e||t||r||n,a=(0,Nl.useRef)(null),{transformPagePoint:s}=(0,Nl.useContext)(tl),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(g,_)=>{a.current=null,r&&r(g,_)}};(0,Nl.useEffect)(()=>{a.current!==null&&a.current.updateHandlers(l)});function c(g){a.current=new Rl(g,l,{transformPagePoint:s})}Va(o,"pointerdown",i&&c),vl(()=>a.current&&a.current.end())}var i5={pan:so(o5),drag:so(n5)};f();h();d();f();h();d();f();h();d();f();h();d();f();h();d();function Oy(e){return typeof e=="string"&&e.startsWith("var(--")}var Dy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rD(e){let t=Dy.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var nD=4;function Ny(e,t,r=1){br(r<=nD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=rD(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():Oy(o)?Ny(o,t,r+1):o}function a5(e,n,r){var t=Ae(n,[]);let o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r=oe({},r)),e.values.forEach(i=>{let a=i.get();if(!Oy(a))return;let s=Ny(a,o);s&&i.set(s)});for(let i in t){let a=t[i];if(!Oy(a))continue;let s=Ny(a,o);!s||(t[i]=s,r&&r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}f();h();d();var oD=new Set(["width","height","top","left","right","bottom","x","y"]),f5=e=>oD.has(e),iD=e=>Object.keys(e).some(f5),d5=(e,t)=>{e.set(t,!1),e.set(t)},Hh=e=>e===yn||e===Ge,s5;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(s5||(s5={}));var l5=(e,t)=>parseFloat(e.split(", ")[t]),u5=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/);if(o)return l5(o[1],t);{let i=n.match(/^matrix\((.+)\)$/);return i?l5(i[1],e):0}},aD=new Set(["x","y","z"]),sD=il.filter(e=>!aD.has(e));function lD(e){let t=[];return sD.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 c5={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:u5(4,13),y:u5(5,14)},uD=(e,t,r)=>{let n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=c5[c](n,i)}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let g=t.getValue(c);d5(g,s[c]),e[c]=c5[c](l,i)}),e},cD=(e,t,r={},n={})=>{t=oe({},t),n=oe({},n);let o=Object.keys(t).filter(f5),i=[],a=!1,s=[];if(o.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let g=r[l],_=Pl(g),k=t[l],R;if(Xo(k)){let I=k.length,V=k[0]===null?1:0;g=k[V],_=Pl(g);for(let j=V;j<I;j++)R?br(Pl(k[j])===R,"All keyframes must be of the same type"):(R=Pl(k[j]),br(R===_||Hh(_)&&Hh(R),"Keyframes must be of the same dimension as the current value"))}else R=Pl(k);if(_!==R)if(Hh(_)&&Hh(R)){let I=c.get();typeof I=="string"&&c.set(parseFloat(I)),typeof k=="string"?t[l]=parseFloat(k):Array.isArray(k)&&R===Ge&&(t[l]=k.map(parseFloat))}else(_==null?void 0:_.transform)&&(R==null?void 0:R.transform)&&(g===0||k===0)?g===0?c.set(R.transform(g)):t[l]=_.transform(k):(a||(i=lD(e),a=!0),s.push(l),n[l]=n[l]!==void 0?n[l]:t[l],d5(c,k))}),s.length){let l=s.indexOf("height")>=0?window.pageYOffset:null,c=uD(t,e,s);return i.length&&i.forEach(([g,_])=>{e.getValue(g).set(_)}),e.render(),Un&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function h5(e,t,r,n){return iD(t)?cD(e,t,r,n):{target:t,transitionEnd:n}}var p5=(e,t,r,n)=>{let o=a5(e,t,n);return t=o.target,n=o.transitionEnd,h5(e,t,r,n)};f();h();d();var y5=pe(we(),1);f();h();d();f();h();d();var Mc={current:null},Wh={current:!1};function m5(){if(Wh.current=!0,!!Un)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mc.current=e.matches;e.addListener(t),t()}else Mc.current=!1}f();h();d();function g5(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],a=r[o];if(vr(i))e.addValue(o,i),Ga(n)&&n.add(o);else if(vr(a))e.addValue(o,Mo(i)),Ga(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){let s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{let s=e.getStaticValue(o);e.addValue(o,Mo(s!==void 0?s:i))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var w5=Object.keys(Li),fD=w5.length,v5=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qh=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:o},i={}){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=()=>nr.render(this.render,!1,!0);let{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget=oe({},a),this.initialValues=r.initial?oe({},a):{},this.renderState=s,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=Fa(r),this.isVariantNode=Xd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let g=this.scrapeMotionValuesFromProps(r),{willChange:l}=g,c=Ae(g,["willChange"]);for(let _ in c){let k=c[_];a[_]!==void 0&&vr(k)&&(k.set(a[_],!1),Ga(l)&&l.add(_))}}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,o)=>this.bindToMotionValue(o,n)),Wh.current||m5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mc.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(),wn.update(this.notifyUpdate),wn.render(this.render),this.valueSubscriptions.forEach(o=>o()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,r){let n=jn.has(t),o=r.onChange(a=>{this.latestValues[t]=a,this.props.onUpdate&&nr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,o,i,a){let s=[];yl!=="production"&&n&&r&&br(!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 l=0;l<fD;l++){let c=w5[l],{isEnabled:g,Component:_}=Li[c];g(t)&&_&&s.push((0,y5.createElement)(_,Se(oe({key:c},t),{visualElement:this})))}if(!this.projection&&i){this.projection=new i(o,this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:c,drag:g,dragConstraints:_,layoutScroll:k}=t;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:Boolean(g)||_&&qo(_),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:k})}return s}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}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<v5.length;r++){let n=v5[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=g5(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 i=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}let o={};for(let i=0;i<dD;i++){let a=x5[i],s=this.props[a];(Go(s)||s===!1)&&(o[a]=s)}return o}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=Mo(r),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,o=typeof n=="string"||typeof n=="object"?(r=ml(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Eo),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},x5=["initial",...Fh],dD=x5.length;var Dl=class extends qh{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(a,{transformValues:o},i){var s=a,{transition:t,transitionEnd:r}=s,n=Ae(s,["transition","transitionEnd"]);let l=E4(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),l&&(l=o(l))),i){S4(this,n,l);let c=p5(this,n,l,r);r=c.transitionEnd,n=c.target}return oe({transition:t,transitionEnd:r},n)}};function hD(e){return window.getComputedStyle(e)}var Gh=class extends Dl{readValueFromInstance(t,r){if(jn.has(r)){let n=El(r);return n&&n.default||0}else{let n=hD(t),o=(nh(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Ay(t,r)}build(t,r,n,o){cl(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return pl(t)}renderInstance(t,r,n,o){dh(t,r,n,o)}};f();h();d();var Kh=class extends Dl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return jn.has(r)?((n=El(r))===null||n===void 0?void 0:n.default)||0:(r=hh.has(r)?r:fh(r),t.getAttribute(r))}measureInstanceViewportBox(){return qt()}scrapeMotionValuesFromProps(t){return mh(t)}build(t,r,n,o){dl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){ph(t,r,n,o)}mount(t){this.isSVGTag=hl(t.tagName),super.mount(t)}};var _5=(e,t)=>nl(e)?new Kh(t,{enableHardwareAcceleration:!1}):new Gh(t,{enableHardwareAcceleration:!0});f();h();d();f();h();d();var Fl=pe(we(),1);f();h();d();function b5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ll={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;let r=b5(e,t.target.x),n=b5(e,t.target.y);return`${r}% ${n}%`}};f();h();d();var S5="_$css",E5={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=e.includes("var("),i=[];o&&(e=e.replace(Dy,R=>(i.push(R),S5)));let a=_r.parse(e);if(a.length>5)return n;let s=_r.createTransformer(e),l=typeof a[0]!="number"?1:0,c=r.x.scale*t.x,g=r.y.scale*t.y;a[0+l]/=c,a[1+l]/=g;let _=St(c,g,.5);typeof a[2+l]=="number"&&(a[2+l]/=_),typeof a[3+l]=="number"&&(a[3+l]/=_);let k=s(a);if(o){let R=0;k=k.replace(S5,()=>{let I=i[R];return R++,I})}return k}};var Ly=class extends Fl.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;XS(pD),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(Se(oe({},i.options),{onExitComplete:()=>this.safeToRemove()}))),$i.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||nr.postRender(()=>{var s;!((s=a.getStack())===null||s===void 0)&&s.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:o}=t;o&&(o.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(o),n!=null&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function M5(e){let[t,r]=bh(),n=(0,Fl.useContext)(rl);return Fl.default.createElement(Ly,Se(oe({},e),{layoutGroup:n,switchLayoutGroup:(0,Fl.useContext)(th),isPresent:t,safeToRemove:r}))}var pD={borderRadius:Se(oe({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:E5};var C5={measureLayout:M5};f();h();d();f();h();d();f();h();d();function k5(e,t,r={}){let n=vr(e)?e:Mo(e);return Cl("",n,t,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}f();h();d();var A5=["TopLeft","TopRight","BottomLeft","BottomRight"],mD=A5.length,T5=e=>typeof e=="string"?parseFloat(e):e,P5=e=>typeof e=="number"||Ge.test(e);function I5(e,t,r,n,o,i){var a,s,l,c;o?(e.opacity=St(0,(a=r.opacity)!==null&&a!==void 0?a:1,gD(n)),e.opacityExit=St((s=t.opacity)!==null&&s!==void 0?s:1,0,vD(n))):i&&(e.opacity=St((l=t.opacity)!==null&&l!==void 0?l:1,(c=r.opacity)!==null&&c!==void 0?c:1,n));for(let g=0;g<mD;g++){let _=`border${A5[g]}Radius`,k=R5(t,_),R=R5(r,_);if(k===void 0&&R===void 0)continue;k||(k=0),R||(R=0),k===0||R===0||P5(k)===P5(R)?(e[_]=Math.max(St(T5(k),T5(R),n),0),(Or.test(R)||Or.test(k))&&(e[_]+="%")):e[_]=R}(t.rotate||r.rotate)&&(e.rotate=St(t.rotate||0,r.rotate||0,n))}function R5(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var gD=O5(0,.5,wc),vD=O5(.5,.95,_l);function O5(e,t,r){return n=>n<e?0:n>t?1:r(Wa(e,t,n))}f();h();d();function N5(e,t){e.min=t.min,e.max=t.max}function Hn(e,t){N5(e.x,t.x),N5(e.y,t.y)}f();h();d();function D5(e,t,r,n,o){return e-=t,e=Ec(e,1/r,n),o!==void 0&&(e=Ec(e,1/o,n)),e}function yD(e,t=0,r=1,n=.5,o,i=e,a=e){if(Or.test(t)&&(t=parseFloat(t),t=St(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=St(i.min,i.max,n);e===i&&(s-=t),e.min=D5(e.min,t,r,s,o),e.max=D5(e.max,t,r,s,o)}function L5(e,t,[r,n,o],i,a){yD(e,t[r],t[n],t[o],t.scale,i,a)}var wD=["x","scaleX","originX"],xD=["y","scaleY","originY"];function Fy(e,t,r,n){L5(e.x,t,wD,r==null?void 0:r.x,n==null?void 0:n.x),L5(e.y,t,xD,r==null?void 0:r.y,n==null?void 0:n.y)}f();h();d();function F5(e){return e.translate===0&&e.scale===1}function $y(e){return F5(e.x)&&F5(e.y)}function By(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 Vy(e){return Sr(e.x)/Sr(e.y)}f();h();d();var Yh=class{constructor(){this.members=[]}add(t){kl(this.members,t),t.scheduleRender()}remove(t){if(Tl(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(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,o,i,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||a===void 0||a.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};f();h();d();function Uy(e,t,r){let n="",o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:g}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),g&&(n+=`rotateY(${g}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}f();h();d();f();h();d();var $5=(e,t)=>e.depth-t.depth;var Zh=class{constructor(){this.children=[],this.isDirty=!1}add(t){kl(this.children,t),this.isDirty=!0}remove(t){Tl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($5),this.isDirty=!1,this.children.forEach(t)}};var B5=["","X","Y","Z"],V5=1e3,_D=0;function Qh({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a,s={},l=t==null?void 0:t()){this.id=_D++,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(ED),this.nodes.forEach(kD),this.nodes.forEach(TD)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zh)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Eo),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l==null||l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}registerPotentialNode(a,s){this.potentialNodes.set(a,s)}mount(a,s=!1){var l;if(this.instance)return;this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;let{layoutId:c,layout:g,visualElement:_}=this.options;if(_&&!_.current&&_.mount(a),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),s&&(g||c)&&(this.isLayoutDirty=!0),e){let k,R=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,k&&k(),k=Ph(R,250),$i.hasAnimatedSinceResize&&($i.hasAnimatedSinceResize=!1,this.nodes.forEach(j5))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&_&&(c||g)&&this.addEventListener("didUpdate",({delta:k,hasLayoutChanged:R,hasRelativeTargetChanged:I,layout:V})=>{var j,L,D,B,K;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let X=(L=(j=this.options.transition)!==null&&j!==void 0?j:_.getDefaultTransition())!==null&&L!==void 0?L:OD,{onLayoutAnimationStart:ue,onLayoutAnimationComplete:ae}=_.getProps(),ve=!this.targetLayout||!By(this.targetLayout,V)||I,G=!R&&I;if(((D=this.resumeFrom)===null||D===void 0?void 0:D.instance)||G||R&&(ve||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(k,G);let w=Se(oe({},Dh(X,"layout")),{onPlay:ue,onComplete:ae});_.shouldReduceMotion&&(w.delay=0,w.type=!1),this.startAnimation(w)}else!R&&this.animationProgress===0&&j5(this),this.isLead()&&((K=(B=this.options).onExitComplete)===null||K===void 0||K.call(B));this.targetLayout=V})}unmount(){var a,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,wn.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(PD),this.animationId++)}willUpdate(a=!0){var s,l,c;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let R=0;R<this.path.length;R++){let I=this.path[R];I.shouldResetTransform=!0,I.updateScroll("snapshot")}let{layoutId:g,layout:_}=this.options;if(g===void 0&&!_)return;let k=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=k==null?void 0:k(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(U5);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ND),this.potentialNodes.clear()),this.nodes.forEach(CD),this.nodes.forEach(bD),this.nodes.forEach(SD),this.clearAllSnapshots(),Th.update(),Th.preRender(),Th.render())}clearAllSnapshots(){this.nodes.forEach(MD),this.sharedNodes.forEach(RD)}scheduleUpdateProjection(){nr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){nr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(a=this.options.visualElement)===null||a===void 0||a.notify("LayoutMeasure",this.layout.layoutBox,s==null?void 0:s.layoutBox)}updateScroll(a="measure"){let s=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var a;if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!$y(this.projectionDelta),c=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate,g=c==null?void 0:c(this.latestValues,""),_=g!==this.prevTransformTemplateValue;s&&(l||ei(this.latestValues)||_)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),DD(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return qt();let s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(Co(s.x,l.offset.x),Co(s.y,l.offset.y)),s}removeElementScroll(a){let s=qt();Hn(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:g,options:_}=c;if(c!==this.root&&g&&_.layoutScroll){if(g.isRoot){Hn(s,a);let{scroll:k}=this.root;k&&(Co(s.x,-k.offset.x),Co(s.y,-k.offset.y))}Co(s.x,g.offset.x),Co(s.y,g.offset.y)}}return s}applyTransform(a,s=!1){let l=qt();Hn(l,a);for(let c=0;c<this.path.length;c++){let g=this.path[c];!s&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Ya(l,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ei(g.latestValues)&&Ya(l,g.latestValues)}return ei(this.latestValues)&&Ya(l,this.latestValues),l}removeTransform(a){var s;let l=qt();Hn(l,a);for(let c=0;c<this.path.length;c++){let g=this.path[c];if(!g.instance||!ei(g.latestValues))continue;Uh(g.latestValues)&&g.updateSnapshot();let _=qt(),k=g.measurePageBox();Hn(_,k),Fy(l,g.latestValues,(s=g.snapshot)===null||s===void 0?void 0:s.layoutBox,_)}return ei(this.latestValues)&&Fy(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(a){this.options=Se(oe(oe({},this.options),a),{crossfade:a.crossfade!==void 0?a.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 a;let s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:l,layoutId:c}=this.options;if(!(!this.layout||!(l||c))){if(!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout?(this.relativeParent=g,this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),Il(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Hn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&((a=this.relativeParent)===null||a===void 0?void 0:a.target)?L4(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Hn(this.target,this.layout.layoutBox),Ry(this.target,this.targetDelta)):Hn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&Boolean(g.resumingFrom)===Boolean(this.resumingFrom)&&!g.options.layoutScroll&&g.target?(this.relativeParent=g,this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),Il(this.relativeTargetOrigin,this.target,g.target),Hn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Uh(this.parent.latestValues)||Ty(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var a;let{isProjectionDirty:s,isTransformDirty:l}=this;this.isProjectionDirty=this.isTransformDirty=!1;let c=this.getLead(),g=Boolean(this.resumingFrom)||this!==c,_=!0;if(s&&(_=!1),g&&l&&(_=!1),_)return;let{layout:k,layoutId:R}=this.options;if(this.isTreeAnimating=Boolean(((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(k||R))return;Hn(this.layoutCorrected,this.layout.layoutBox),t5(this.layoutCorrected,this.treeScale,this.path,g);let{target:I}=c;if(!I)return;this.projectionDelta||(this.projectionDelta=Ol(),this.projectionDeltaWithTransform=Ol());let V=this.treeScale.x,j=this.treeScale.y,L=this.projectionTransform;Al(this.projectionDelta,this.layoutCorrected,I,this.latestValues),this.projectionTransform=Uy(this.projectionDelta,this.treeScale),(this.projectionTransform!==L||this.treeScale.x!==V||this.treeScale.y!==j)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s,l,c;(l=(s=this.options).scheduleRender)===null||l===void 0||l.call(s),a&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){var l,c;let g=this.snapshot,_=(g==null?void 0:g.latestValues)||{},k=oe({},this.latestValues),R=Ol();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!s;let I=qt(),V=(g==null?void 0:g.source)!==((l=this.layout)===null||l===void 0?void 0:l.source),j=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,L=Boolean(V&&!j&&this.options.crossfade===!0&&!this.path.some(ID));this.animationProgress=0,this.mixTargetDelta=D=>{var B;let K=D/1e3;z5(R.x,a.x,K),z5(R.y,a.y,K),this.setTargetDelta(R),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((B=this.relativeParent)===null||B===void 0?void 0:B.layout)&&(Il(I,this.layout.layoutBox,this.relativeParent.layout.layoutBox),AD(this.relativeTarget,this.relativeTargetOrigin,I,K)),V&&(this.animationValues=k,I5(k,_,this.latestValues,K,L,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(0)}startAnimation(a){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(wn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=nr.update(()=>{$i.hasAnimatedSinceResize=!0,this.currentAnimation=k5(0,V5,Se(oe({},a),{onUpdate:c=>{var g;this.mixTargetDelta(c),(g=a.onUpdate)===null||g===void 0||g.call(a,c)},onComplete:()=>{var c;(c=a.onComplete)===null||c===void 0||c.call(a),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,V5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:g}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&q5(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||qt();let _=Sr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+_;let k=Sr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+k}Hn(s,l),Ya(s,g),Al(this.projectionDeltaWithTransform,this.layoutCorrected,s,g)}}registerSharedNode(a,s){var l,c,g;this.sharedNodes.has(a)||this.sharedNodes.set(a,new Yh),this.sharedNodes.get(a).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(g=(c=s.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(c,s)})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;let c={};for(let g=0;g<B5.length;g++){let _="rotate"+B5[g];l[_]&&(c[_]=l[_],a.setStaticValue(_,0))}a==null||a.render();for(let g in c)a.setStaticValue(g,c[g]);a.scheduleRender()}getProjectionStyles(a={}){var s,l,c;let g={};if(!this.instance||this.isSVG)return g;if(this.isVisible)g.visibility="";else return{visibility:"hidden"};let _=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=gl(a.pointerEvents)||"",g.transform=_?_(this.latestValues,""):"none",g;let k=this.getLead();if(!this.projectionDelta||!this.layout||!k.target){let j={};return this.options.layoutId&&(j.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,j.pointerEvents=gl(a.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(j.transform=_?_({},""):"none",this.hasProjected=!1),j}let R=k.animationValues||k.latestValues;this.applyTransformsToTarget(),g.transform=Uy(this.projectionDeltaWithTransform,this.treeScale,R),_&&(g.transform=_(R,g.transform));let{x:I,y:V}=this.projectionDelta;g.transformOrigin=`${I.origin*100}% ${V.origin*100}% 0`,k.animationValues?g.opacity=k===this?(c=(l=R.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:R.opacityExit:g.opacity=k===this?R.opacity!==void 0?R.opacity:"":R.opacityExit!==void 0?R.opacityExit:0;for(let j in ol){if(R[j]===void 0)continue;let{correct:L,applyTo:D}=ol[j],B=L(R[j],k);if(D){let K=D.length;for(let X=0;X<K;X++)g[D[X]]=B}else g[j]=B}return this.options.layoutId&&(g.pointerEvents=k===this?gl(a.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(U5),this.root.sharedNodes.clear()}}}function bD(e){e.updateLayout()}function SD(e){var t,r,n;let o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:a}=e.layout,{animationType:s}=e.options,l=o.source!==e.layout.source;s==="size"?zn(R=>{let I=l?o.measuredBox[R]:o.layoutBox[R],V=Sr(I);I.min=i[R].min,I.max=I.min+V}):q5(s,o.layoutBox,i)&&zn(R=>{let I=l?o.measuredBox[R]:o.layoutBox[R],V=Sr(i[R]);I.max=I.min+V});let c=Ol();Al(c,i,o.layoutBox);let g=Ol();l?Al(g,e.applyTransform(a,!0),o.measuredBox):Al(g,i,o.layoutBox);let _=!$y(c),k=!1;if(!e.resumeFrom){let R=e.getClosestProjectingParent();if(R&&!R.resumeFrom){let{snapshot:I,layout:V}=R;if(I&&V){let j=qt();Il(j,o.layoutBox,I.layoutBox);let L=qt();Il(L,i,V.layoutBox),By(j,L)||(k=!0)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:g,layoutDelta:c,hasLayoutChanged:_,hasRelativeTargetChanged:k})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function ED(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function MD(e){e.clearSnapshot()}function U5(e){e.clearMeasurements()}function CD(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function j5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function kD(e){e.resolveTargetDelta()}function TD(e){e.calcProjection()}function PD(e){e.resetRotation()}function RD(e){e.removeLeadSnapshot()}function z5(e,t,r){e.translate=St(t.translate,0,r),e.scale=St(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function H5(e,t,r,n){e.min=St(t.min,r.min,n),e.max=St(t.max,r.max,n)}function AD(e,t,r,n){H5(e.x,t.x,r.x,n),H5(e.y,t.y,r.y,n)}function ID(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var OD={duration:.45,ease:[.4,0,.1,1]};function ND(e,t){let r=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){r=e.path[i];break}let o=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function W5(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function DD(e){W5(e.x),W5(e.y)}function q5(e,t,r){return e==="position"||e==="preserve-aspect"&&!$h(Vy(t),Vy(r),.2)}f();h();d();var G5=Qh({attachResizeListener:(e,t)=>Ba(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var jy={current:void 0},K5=Qh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jy.current){let e=new G5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),jy.current=e}return jy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var LD=oe(oe(oe(oe({},T4),V6),i5),C5),kt=ZS((e,t)=>S6(e,t,LD,_5,K5));f();h();d();var ti=pe(we(),1),Wn=pe(we(),1);f();h();d();var Cc=pe(we(),1);f();h();d();var Y5=pe(we(),1);function Xh(){let e=(0,Y5.useRef)(!1);return La(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Z5(){let e=Xh(),[t,r]=(0,Cc.useState)(0),n=(0,Cc.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,Cc.useCallback)(()=>nr.postRender(n),[n]),t]}f();h();d();var kc=pe(we(),1),Tc=pe(we(),1);f();h();d();var $l=pe(we(),1),Za=pe(we(),1),zy=class extends $l.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 Q5({children:e,isPresent:t}){let r=(0,Za.useId)(),n=(0,Za.useRef)(null),o=(0,Za.useRef)({width:0,height:0,top:0,left:0});return(0,Za.useInsertionEffect)(()=>{let{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
25
- [data-motion-pop-id="${r}"] {
26
- position: absolute !important;
27
- width: ${i}px !important;
28
- height: ${a}px !important;
29
- top: ${s}px !important;
30
- left: ${l}px !important;
31
- }
32
- `),()=>{document.head.removeChild(c)}},[t]),$l.createElement(zy,{isPresent:t,childRef:n,sizeRef:o},$l.cloneElement(e,{ref:n}))}var Jh=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{let s=Fi(FD),l=(0,Tc.useId)(),c=(0,Tc.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:g=>{s.set(g,!0);for(let _ of s.values())if(!_)return;n&&n()},register:g=>(s.set(g,!1),()=>s.delete(g))}),i?void 0:[r]);return(0,Tc.useMemo)(()=>{s.forEach((g,_)=>s.set(_,!1))},[r]),kc.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=kc.createElement(Q5,{isPresent:r},e)),kc.createElement(So.Provider,{value:c},e)};function FD(){return new Map}var Bl=e=>e.key||"";function $D(e,t){e.forEach(r=>{let n=Bl(r);t.set(n,r)})}function BD(e){let t=[];return Wn.Children.forEach(e,r=>{(0,Wn.isValidElement)(r)&&t.push(r)}),t}var Vl=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{o&&(a="wait",_h(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Z5(),l=(0,Wn.useContext)(rl).forceRender;l&&(s=l);let c=Xh(),g=BD(e),_=g,k=new Set,R=(0,Wn.useRef)(_),I=(0,Wn.useRef)(new Map).current,V=(0,Wn.useRef)(!0);if(La(()=>{V.current=!1,$D(g,I),R.current=_}),vl(()=>{V.current=!0,I.clear(),k.clear()}),V.current)return ti.createElement(ti.Fragment,null,_.map(B=>ti.createElement(Jh,{key:Bl(B),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},B)));_=[..._];let j=R.current.map(Bl),L=g.map(Bl),D=j.length;for(let B=0;B<D;B++){let K=j[B];L.indexOf(K)===-1&&k.add(K)}return a==="wait"&&k.size&&(_=[]),k.forEach(B=>{if(L.indexOf(B)!==-1)return;let K=I.get(B);if(!K)return;let X=j.indexOf(B),ue=()=>{I.delete(B),k.delete(B);let ae=R.current.findIndex(ve=>ve.key===B);if(R.current.splice(ae,1),!k.size){if(R.current=g,c.current===!1)return;s(),n&&n()}};_.splice(X,0,ti.createElement(Jh,{key:Bl(K),isPresent:!1,onExitComplete:ue,custom:t,presenceAffectsLayout:i,mode:a},K))}),_=_.map(B=>{let K=B.key;return k.has(K)?B:ti.createElement(Jh,{key:Bl(B),isPresent:!0,presenceAffectsLayout:i,mode:a},B)}),yl!=="production"&&a==="wait"&&_.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.`),ti.createElement(ti.Fragment,null,k.size?_:_.map(B=>(0,Wn.cloneElement)(B)))};f();h();d();var xE=pe(wE(),1),{__extends:Ore,__assign:qn,__rest:np,__decorate:Nre,__param:Dre,__metadata:Lre,__awaiter:Fre,__generator:$re,__exportStar:Bre,__createBinding:Vre,__values:Ure,__read:jre,__spread:zre,__spreadArrays:Hre,__spreadArray:_E,__await:Wre,__asyncGenerator:qre,__asyncDelegator:Gre,__asyncValues:Kre,__makeTemplateObject:Yre,__importStar:Zre,__importDefault:Qre,__classPrivateFieldGet:Xre,__classPrivateFieldSet:Jre,__classPrivateFieldIn:ene}=xE.default;var VD=()=>v.createElement("div",{className:"space-y-6"},v.createElement("div",{className:"-mt-6"},v.createElement("p",{className:"text-center text-xl font-semibold text-gray-900 dark:text-white"},"Proving unique-humanness without compromising privacy."),v.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."),v.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."),v.createElement("p",{className:"text-70868f mt-3 text-center"},"Apps will never see your phone number or biometrics.")),v.createElement("div",null,v.createElement(kt.a,{layoutId:"submit-button",href:"https://id.worldcoin.org/",target:"_blank",transition:{layout:{duration:.15}},className:jt("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")},v.createElement(kt.span,{transition:{layout:{duration:.15}},layoutId:"button-text"},"Learn more")))),bE=VD;f();h();d();var jl={opacity:[1,.1,.2,.4,.6,.8]},zl={repeat:1/0,duration:1,type:"spring"},UD=({className:e=""})=>v.createElement("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",fill:"#6345DB",viewBox:"0 0 48 48"},v.createElement(kt.path,{animate:jl,transition:zl,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"}),v.createElement(kt.path,{animate:jl,transition:Se(oe({},zl),{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"}),v.createElement(kt.path,{animate:jl,transition:Se(oe({},zl),{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"}),v.createElement(kt.path,{animate:jl,transition:Se(oe({},zl),{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"}),v.createElement(kt.path,{animate:jl,transition:Se(oe({},zl),{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"}),v.createElement(kt.path,{animate:jl,transition:Se(oe({},zl),{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"})),ji=UD;f();h();d();f();h();d();function yt(){return yt=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},yt.apply(this,arguments)}var Ne=pe(we()),VE=pe(Na());f();h();d();function or(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}f();h();d();var SE=pe(we());function jD(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Wy(...e){return t=>e.forEach(r=>jD(r,t))}function Nr(...e){return(0,SE.useCallback)(Wy(...e),e)}f();h();d();var lo=pe(we());f();h();d();var jr=pe(we());function EE(e,t){let r=(0,jr.createContext)(t);function n(i){let c=i,{children:a}=c,s=Ae(c,["children"]),l=(0,jr.useMemo)(()=>s,Object.values(s));return(0,jr.createElement)(r.Provider,{value:l},a)}function o(i){let a=(0,jr.useContext)(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Hl(e,t=[]){let r=[];function n(i,a){let s=(0,jr.createContext)(a),l=r.length;r=[...r,a];function c(_){let L=_,{scope:k,children:R}=L,I=Ae(L,["scope","children"]),V=(k==null?void 0:k[e][l])||s,j=(0,jr.useMemo)(()=>I,Object.values(I));return(0,jr.createElement)(V.Provider,{value:j},R)}function g(_,k){let R=(k==null?void 0:k[e][l])||s,I=(0,jr.useContext)(R);if(I)return I;if(a!==void 0)return a;throw new Error(`\`${_}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,g]}let o=()=>{let i=r.map(a=>(0,jr.createContext)(a));return function(s){let l=(s==null?void 0:s[e])||i;return(0,jr.useMemo)(()=>({[`__scope${e}`]:Se(oe({},s),{[e]:l})}),[s,l])}};return o.scopeName=e,[n,zD(o,...t)]}function zD(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){let a=n.reduce((s,{useScope:l,scopeName:c})=>{let _=l(i)[`__scope${c}`];return oe(oe({},s),_)},{});return(0,jr.useMemo)(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}f();h();d();var Gt=pe(we());var zi=(0,Gt.forwardRef)((e,t)=>{let a=e,{children:r}=a,n=Ae(a,["children"]),o=Gt.Children.toArray(r),i=o.find(WD);if(i){let s=i.props.children,l=o.map(c=>c===i?Gt.Children.count(s)>1?Gt.Children.only(null):(0,Gt.isValidElement)(s)?s.props.children:null:c);return(0,Gt.createElement)(qy,yt({},n,{ref:t}),(0,Gt.isValidElement)(s)?(0,Gt.cloneElement)(s,void 0,l):null)}return(0,Gt.createElement)(qy,yt({},n,{ref:t}),r)});zi.displayName="Slot";var qy=(0,Gt.forwardRef)((e,t)=>{let o=e,{children:r}=o,n=Ae(o,["children"]);return(0,Gt.isValidElement)(r)?(0,Gt.cloneElement)(r,Se(oe({},qD(n,r.props)),{ref:Wy(t,r.ref)})):Gt.Children.count(r)>1?Gt.Children.only(null):null});qy.displayName="SlotClone";var HD=({children:e})=>(0,Gt.createElement)(Gt.Fragment,null,e);function WD(e){return(0,Gt.isValidElement)(e)&&e.type===HD}function qD(e,t){let r=oe({},t);for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]=oe(oe({},o),i):n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return oe(oe({},e),r)}function ME(e){let t=e+"CollectionProvider",[r,n]=Hl(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=R=>{let{scope:I,children:V}=R,j=lo.default.useRef(null),L=lo.default.useRef(new Map).current;return lo.default.createElement(o,{scope:I,itemMap:L,collectionRef:j},V)},s=e+"CollectionSlot",l=lo.default.forwardRef((R,I)=>{let{scope:V,children:j}=R,L=i(s,V),D=Nr(I,L.collectionRef);return lo.default.createElement(zi,{ref:D},j)}),c=e+"CollectionItemSlot",g="data-radix-collection-item",_=lo.default.forwardRef((R,I)=>{let X=R,{scope:V,children:j}=X,L=Ae(X,["scope","children"]),D=lo.default.useRef(null),B=Nr(I,D),K=i(c,V);return lo.default.useEffect(()=>(K.itemMap.set(D,oe({ref:D},L)),()=>void K.itemMap.delete(D))),lo.default.createElement(zi,{[g]:"",ref:B},j)});function k(R){let I=i(e+"CollectionConsumer",R);return lo.default.useCallback(()=>{let j=I.collectionRef.current;if(!j)return[];let L=Array.from(j.querySelectorAll(`[${g}]`));return Array.from(I.itemMap.values()).sort((K,X)=>L.indexOf(K.ref.current)-L.indexOf(X.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:a,Slot:l,ItemSlot:_},k,n]}f();h();d();var At=pe(we());f();h();d();var Wl=pe(we()),CE=pe(Na());var GD=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],fr=GD.reduce((e,t)=>{let r=(0,Wl.forwardRef)((n,o)=>{let l=n,{asChild:i}=l,a=Ae(l,["asChild"]),s=i?zi:t;return(0,Wl.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,Wl.createElement)(s,yt({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,Se(oe({},e),{[t]:r})},{});function op(e,t){e&&(0,CE.flushSync)(()=>e.dispatchEvent(t))}f();h();d();var ql=pe(we());function Dr(e){let t=(0,ql.useRef)(e);return(0,ql.useEffect)(()=>{t.current=e}),(0,ql.useMemo)(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}f();h();d();var kE=pe(we());function TE(e,t=globalThis==null?void 0:globalThis.document){let r=Dr(e);(0,kE.useEffect)(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Gy="dismissableLayer.update",KD="dismissableLayer.pointerDownOutside",YD="dismissableLayer.focusOutside",PE,AE=(0,At.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ky=(0,At.forwardRef)((e,t)=>{var r;let ve=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l}=ve,c=Ae(ve,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),g=(0,At.useContext)(AE),[_,k]=(0,At.useState)(null),R=(r=_==null?void 0:_.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,I]=(0,At.useState)({}),V=Nr(t,G=>k(G)),j=Array.from(g.layers),[L]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),D=j.indexOf(L),B=_?j.indexOf(_):-1,K=g.layersWithOutsidePointerEventsDisabled.size>0,X=B>=D,ue=QD(G=>{let w=G.target,T=[...g.branches].some(A=>A.contains(w));!X||T||(i==null||i(G),s==null||s(G),G.defaultPrevented||l==null||l())},R),ae=XD(G=>{let w=G.target;[...g.branches].some(A=>A.contains(w))||(a==null||a(G),s==null||s(G),G.defaultPrevented||l==null||l())},R);return TE(G=>{B===g.layers.size-1&&(o==null||o(G),!G.defaultPrevented&&l&&(G.preventDefault(),l()))},R),(0,At.useEffect)(()=>{if(!!_)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(PE=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(_)),g.layers.add(_),RE(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(R.body.style.pointerEvents=PE)}},[_,R,n,g]),(0,At.useEffect)(()=>()=>{!_||(g.layers.delete(_),g.layersWithOutsidePointerEventsDisabled.delete(_),RE())},[_,g]),(0,At.useEffect)(()=>{let G=()=>I({});return document.addEventListener(Gy,G),()=>document.removeEventListener(Gy,G)},[]),(0,At.createElement)(fr.div,yt({},c,{ref:V,style:oe({pointerEvents:K?X?"auto":"none":void 0},e.style),onFocusCapture:or(e.onFocusCapture,ae.onFocusCapture),onBlurCapture:or(e.onBlurCapture,ae.onBlurCapture),onPointerDownCapture:or(e.onPointerDownCapture,ue.onPointerDownCapture)}))});var ZD=(0,At.forwardRef)((e,t)=>{let r=(0,At.useContext)(AE),n=(0,At.useRef)(null),o=Nr(t,n);return(0,At.useEffect)(()=>{let i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,At.createElement)(fr.div,yt({},e,{ref:o}))});function QD(e,t=globalThis==null?void 0:globalThis.document){let r=Dr(e),n=(0,At.useRef)(!1),o=(0,At.useRef)(()=>{});return(0,At.useEffect)(()=>{let i=s=>{if(s.target&&!n.current){let c=function(){IE(KD,r,l,{discrete:!0})},l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function XD(e,t=globalThis==null?void 0:globalThis.document){let r=Dr(e),n=(0,At.useRef)(!1);return(0,At.useEffect)(()=>{let o=i=>{i.target&&!n.current&&IE(YD,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function RE(){let e=new CustomEvent(Gy);document.dispatchEvent(e)}function IE(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?op(o,i):o.dispatchEvent(i)}var OE=Ky,NE=ZD;f();h();d();var ip=pe(we()),DE=pe(Na());var ap=(0,ip.forwardRef)((e,t)=>{var r;let i=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=i,o=Ae(i,["container"]);return n?DE.default.createPortal((0,ip.createElement)(fr.div,yt({},o,{ref:t})),n):null});f();h();d();var Lr=pe(we()),FE=pe(Na());f();h();d();var LE=pe(we()),Qa=Boolean(globalThis==null?void 0:globalThis.document)?LE.useLayoutEffect:()=>{};function JD(e,t){return(0,Lr.useReducer)((r,n)=>{let o=t[r][n];return o!=null?o:r},e)}var Xa=e=>{let{present:t,children:r}=e,n=eL(t),o=typeof r=="function"?r({present:n.isPresent}):Lr.Children.only(r),i=Nr(n.ref,o.ref);return typeof r=="function"||n.isPresent?(0,Lr.cloneElement)(o,{ref:i}):null};Xa.displayName="Presence";function eL(e){let[t,r]=(0,Lr.useState)(),n=(0,Lr.useRef)({}),o=(0,Lr.useRef)(e),i=(0,Lr.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=JD(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,Lr.useEffect)(()=>{let c=sp(n.current);i.current=s==="mounted"?c:"none"},[s]),Qa(()=>{let c=n.current,g=o.current;if(g!==e){let k=i.current,R=sp(c);e?l("MOUNT"):R==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(g&&k!==R?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Qa(()=>{if(t){let c=_=>{let R=sp(n.current).includes(_.animationName);_.target===t&&R&&(0,FE.flushSync)(()=>l("ANIMATION_END"))},g=_=>{_.target===t&&(i.current=sp(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,Lr.useCallback)(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function sp(e){return(e==null?void 0:e.animationName)||"none"}f();h();d();var Hi=pe(we());function lp({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=tL({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=Dr(r),l=(0,Hi.useCallback)(c=>{if(i){let _=typeof c=="function"?c(e):c;_!==e&&s(_)}else o(c)},[i,e,o,s]);return[a,l]}function tL({defaultProp:e,onChange:t}){let r=(0,Hi.useState)(e),[n]=r,o=(0,Hi.useRef)(n),i=Dr(t);return(0,Hi.useEffect)(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}f();h();d();var up=pe(we());var Yy=(0,up.forwardRef)((e,t)=>(0,up.createElement)(fr.span,yt({},e,{ref:t,style:oe({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 UE="ToastProvider",[Jy,rL,nL]=ME("Toast"),[jE,aoe]=Hl("Toast",[nL]),[oL,fp]=jE(UE),zE=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=(0,Ne.useState)(null),[c,g]=(0,Ne.useState)(0),_=(0,Ne.useRef)(!1),k=(0,Ne.useRef)(!1);return(0,Ne.createElement)(Jy.Provider,{scope:t},(0,Ne.createElement)(oL,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:(0,Ne.useCallback)(()=>g(R=>R+1),[]),onToastRemove:(0,Ne.useCallback)(()=>g(R=>R-1),[]),isFocusedToastEscapeKeyDownRef:_,isClosePausedRef:k},a))};zE.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${UE}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};var iL="ToastViewport",aL=["F8"],Qy="toast.viewportPause",Xy="toast.viewportResume",sL=(0,Ne.forwardRef)((e,t)=>{let j=e,{__scopeToast:r,hotkey:n=aL,label:o="Notifications ({hotkey})"}=j,i=Ae(j,["__scopeToast","hotkey","label"]),a=fp(iL,r),s=rL(r),l=(0,Ne.useRef)(null),c=(0,Ne.useRef)(null),g=(0,Ne.useRef)(null),_=(0,Ne.useRef)(null),k=Nr(t,_,a.onViewportChange),R=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=a.toastCount>0;(0,Ne.useEffect)(()=>{let L=D=>{var B;n.every(X=>D[X]||D.code===X)&&((B=_.current)===null||B===void 0||B.focus())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[n]),(0,Ne.useEffect)(()=>{let L=l.current,D=_.current;if(I&&L&&D){let B=()=>{if(!a.isClosePausedRef.current){let ae=new CustomEvent(Qy);D.dispatchEvent(ae),a.isClosePausedRef.current=!0}},K=()=>{if(a.isClosePausedRef.current){let ae=new CustomEvent(Xy);D.dispatchEvent(ae),a.isClosePausedRef.current=!1}},X=ae=>{!L.contains(ae.relatedTarget)&&K()},ue=()=>{L.contains(document.activeElement)||K()};return L.addEventListener("focusin",B),L.addEventListener("focusout",X),L.addEventListener("pointermove",B),L.addEventListener("pointerleave",ue),window.addEventListener("blur",B),window.addEventListener("focus",K),()=>{L.removeEventListener("focusin",B),L.removeEventListener("focusout",X),L.removeEventListener("pointermove",B),L.removeEventListener("pointerleave",ue),window.removeEventListener("blur",B),window.removeEventListener("focus",K)}}},[I,a.isClosePausedRef]);let V=(0,Ne.useCallback)(({tabbingDirection:L})=>{let B=s().map(K=>{let X=K.ref.current,ue=[X,...SL(X)];return L==="forwards"?ue:ue.reverse()});return(L==="forwards"?B.reverse():B).flat()},[s]);return(0,Ne.useEffect)(()=>{let L=_.current;if(L){let D=B=>{let K=B.altKey||B.ctrlKey||B.metaKey;if(B.key==="Tab"&&!K){let G=document.activeElement,w=B.shiftKey;if(B.target===L&&w){var ue;(ue=c.current)===null||ue===void 0||ue.focus();return}let b=V({tabbingDirection:w?"backwards":"forwards"}),u=b.findIndex(m=>m===G);if(Zy(b.slice(u+1)))B.preventDefault();else{var ae,ve;w?(ae=c.current)===null||ae===void 0||ae.focus():(ve=g.current)===null||ve===void 0||ve.focus()}}};return L.addEventListener("keydown",D),()=>L.removeEventListener("keydown",D)}},[s,V]),(0,Ne.createElement)(NE,{ref:l,role:"region","aria-label":o.replace("{hotkey}",R),tabIndex:-1,style:{pointerEvents:I?void 0:"none"}},I&&(0,Ne.createElement)($E,{ref:c,onFocusFromOutsideViewport:()=>{let L=V({tabbingDirection:"forwards"});Zy(L)}}),(0,Ne.createElement)(Jy.Slot,{scope:r},(0,Ne.createElement)(fr.ol,yt({tabIndex:-1},i,{ref:k}))),I&&(0,Ne.createElement)($E,{ref:g,onFocusFromOutsideViewport:()=>{let L=V({tabbingDirection:"backwards"});Zy(L)}}))}),lL="ToastFocusProxy",$E=(0,Ne.forwardRef)((e,t)=>{let a=e,{__scopeToast:r,onFocusFromOutsideViewport:n}=a,o=Ae(a,["__scopeToast","onFocusFromOutsideViewport"]),i=fp(lL,r);return(0,Ne.createElement)(Yy,yt({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:s=>{var l;let c=s.relatedTarget;!((l=i.viewport)!==null&&l!==void 0&&l.contains(c))&&n()}}))}),dp="Toast",uL="toast.swipeStart",cL="toast.swipeMove",fL="toast.swipeCancel",dL="toast.swipeEnd",hL=(0,Ne.forwardRef)((e,t)=>{let c=e,{forceMount:r,open:n,defaultOpen:o,onOpenChange:i}=c,a=Ae(c,["forceMount","open","defaultOpen","onOpenChange"]),[s=!0,l]=lp({prop:n,defaultProp:o,onChange:i});return(0,Ne.createElement)(Xa,{present:r||s},(0,Ne.createElement)(HE,yt({open:s},a,{ref:t,onClose:()=>l(!1),onPause:Dr(e.onPause),onResume:Dr(e.onResume),onSwipeStart:or(e.onSwipeStart,g=>{g.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:or(e.onSwipeMove,g=>{let{x:_,y:k}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","move"),g.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${_}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${k}px`)}),onSwipeCancel:or(e.onSwipeCancel,g=>{g.currentTarget.setAttribute("data-swipe","cancel"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:or(e.onSwipeEnd,g=>{let{x:_,y:k}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","end"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${_}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${k}px`),l(!1)})})))}),[pL,mL]=jE(dp,{onClose(){}}),HE=(0,Ne.forwardRef)((e,t)=>{let u=e,{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:g,onSwipeMove:_,onSwipeCancel:k,onSwipeEnd:R}=u,I=Ae(u,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),V=fp(dp,r),[j,L]=(0,Ne.useState)(null),D=Nr(t,m=>L(m)),B=(0,Ne.useRef)(null),K=(0,Ne.useRef)(null),X=o||V.duration,ue=(0,Ne.useRef)(0),ae=(0,Ne.useRef)(X),ve=(0,Ne.useRef)(0),{onToastAdd:G,onToastRemove:w}=V,T=Dr(()=>{var m;(j==null?void 0:j.contains(document.activeElement))&&((m=V.viewport)===null||m===void 0||m.focus()),a()}),A=(0,Ne.useCallback)(m=>{!m||m===1/0||(window.clearTimeout(ve.current),ue.current=new Date().getTime(),ve.current=window.setTimeout(T,m))},[T]);(0,Ne.useEffect)(()=>{let m=V.viewport;if(m){let y=()=>{A(ae.current),c==null||c()},x=()=>{let p=new Date().getTime()-ue.current;ae.current=ae.current-p,window.clearTimeout(ve.current),l==null||l()};return m.addEventListener(Qy,x),m.addEventListener(Xy,y),()=>{m.removeEventListener(Qy,x),m.removeEventListener(Xy,y)}}},[V.viewport,X,l,c,A]),(0,Ne.useEffect)(()=>{i&&!V.isClosePausedRef.current&&A(X)},[i,X,V.isClosePausedRef,A]),(0,Ne.useEffect)(()=>(G(),()=>w()),[G,w]);let b=(0,Ne.useMemo)(()=>j?GE(j):null,[j]);return V.viewport?(0,Ne.createElement)(Ne.Fragment,null,b&&(0,Ne.createElement)(gL,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},b),(0,Ne.createElement)(pL,{scope:r,onClose:T},(0,VE.createPortal)((0,Ne.createElement)(Jy.ItemSlot,{scope:r},(0,Ne.createElement)(OE,{asChild:!0,onEscapeKeyDown:or(s,()=>{V.isFocusedToastEscapeKeyDownRef.current||T(),V.isFocusedToastEscapeKeyDownRef.current=!1})},(0,Ne.createElement)(fr.li,yt({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":V.swipeDirection},I,{ref:D,style:oe({userSelect:"none",touchAction:"none"},e.style),onKeyDown:or(e.onKeyDown,m=>{m.key==="Escape"&&(s==null||s(m.nativeEvent),m.nativeEvent.defaultPrevented||(V.isFocusedToastEscapeKeyDownRef.current=!0,T()))}),onPointerDown:or(e.onPointerDown,m=>{m.button===0&&(B.current={x:m.clientX,y:m.clientY})}),onPointerMove:or(e.onPointerMove,m=>{if(!B.current)return;let y=m.clientX-B.current.x,x=m.clientY-B.current.y,p=Boolean(K.current),E=["left","right"].includes(V.swipeDirection),q=["left","up"].includes(V.swipeDirection)?Math.min:Math.max,U=E?q(0,y):0,S=E?0:q(0,x),W=m.pointerType==="touch"?10:2,de={x:U,y:S},P={originalEvent:m,delta:de};p?(K.current=de,cp(cL,_,P,{discrete:!1})):BE(de,V.swipeDirection,W)?(K.current=de,cp(uL,g,P,{discrete:!1}),m.target.setPointerCapture(m.pointerId)):(Math.abs(y)>W||Math.abs(x)>W)&&(B.current=null)}),onPointerUp:or(e.onPointerUp,m=>{let y=K.current,x=m.target;if(x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),K.current=null,B.current=null,y){let p=m.currentTarget,E={originalEvent:m,delta:y};BE(y,V.swipeDirection,V.swipeThreshold)?cp(dL,R,E,{discrete:!0}):cp(fL,k,E,{discrete:!0}),p.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),V.viewport))):null});HE.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){let t=`Invalid prop \`type\` supplied to \`${dp}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};var gL=e=>{let c=e,{__scopeToast:t,children:r}=c,n=Ae(c,["__scopeToast","children"]),o=fp(dp,t),[i,a]=(0,Ne.useState)(!1),[s,l]=(0,Ne.useState)(!1);return _L(()=>a(!0)),(0,Ne.useEffect)(()=>{let g=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(g)},[]),s?null:(0,Ne.createElement)(ap,{asChild:!0},(0,Ne.createElement)(Yy,n,i&&(0,Ne.createElement)(Ne.Fragment,null,o.label," ",r)))};var vL=(0,Ne.forwardRef)((e,t)=>{let o=e,{__scopeToast:r}=o,n=Ae(o,["__scopeToast"]);return(0,Ne.createElement)(fr.div,yt({},n,{ref:t}))});var yL="ToastAction",WE=(0,Ne.forwardRef)((e,t)=>{let o=e,{altText:r}=o,n=Ae(o,["altText"]);return r?(0,Ne.createElement)(qE,{altText:r,asChild:!0},(0,Ne.createElement)(xL,yt({},n,{ref:t}))):null});WE.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${yL}\``)}};var wL="ToastClose",xL=(0,Ne.forwardRef)((e,t)=>{let i=e,{__scopeToast:r}=i,n=Ae(i,["__scopeToast"]),o=mL(wL,r);return(0,Ne.createElement)(qE,{asChild:!0},(0,Ne.createElement)(fr.button,yt({type:"button"},n,{ref:t,onClick:or(e.onClick,o.onClose)})))}),qE=(0,Ne.forwardRef)((e,t)=>{let i=e,{__scopeToast:r,altText:n}=i,o=Ae(i,["__scopeToast","altText"]);return(0,Ne.createElement)(fr.div,yt({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function GE(e){let t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bL(n)){let o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){let a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...GE(n))}}),t}function cp(e,t,r,{discrete:n}){let o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?op(o,i):o.dispatchEvent(i)}var BE=(e,t,r=0)=>{let n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function _L(e=()=>{}){let t=Dr(e);Qa(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bL(e){return e.nodeType===e.ELEMENT_NODE}function SL(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zy(e){let t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var KE=zE,YE=sL,ZE=hL,QE=vL;var XE=WE;f();h();d();f();h();d();var EL=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 11 8"}),v.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M9.868 1 3.771 7 1 4.273"})),hp=EL;var ML=e=>e.copy,CL=()=>{let e=Lt(ML);return v.createElement("div",{className:"space-y-6"},v.createElement("div",{className:"-mt-5 flex items-center justify-center"},v.createElement("div",{className:"bg-6445dd/10 inline-flex items-center justify-center rounded-full p-5"},v.createElement("div",{className:"bg-6445dd flex items-center justify-center rounded-full p-5"},v.createElement(hp,{className:"w-8 text-white"})))),v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Success! \u{1F389}"),v.createElement("p",{className:"text-70868f mt-2 text-center text-lg"},(e==null?void 0:e.success)||fn.success)))},eM=CL;f();h();d();f();h();d();var ok=pe(we(),1),ik=pe(we(),1),ak=pe(iM(),1);f();h();d();var Vc=pe(we(),1),ek=pe(aM(),1),tk=pe(QC(),1);f();h();d();var B$=e=>v.createElement("svg",Se(oe({},e),{viewBox:"0 0 46 46",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"}),v.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"})),XC=B$;var V$=window.btoa((0,tk.renderToString)(v.createElement(XC,{style:{color:"#6445DD"}}))),JC=new ek.default({width:200,height:200,type:"svg",image:`data:image/svg+xml;base64,${V$}`,cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"},dotsOptions:{color:"currentColor",type:"extra-rounded"},backgroundOptions:{color:"transparent"},imageOptions:{margin:4,hideBackgroundDots:!0}}),rk=({data:e,className:t=""})=>{let r=(0,Vc.useRef)(null);return(0,Vc.useEffect)(()=>{!r.current||JC.append(r.current)},[]),(0,Vc.useEffect)(()=>{JC.update({data:e})},[e]),v.createElement("div",{ref:r,className:jt(t,"relative z-0 flex items-center justify-center rounded border box-border border-white/10 dark:border-black/10 [&_*]:text-black dark:[&_*]:text-white")})};f();h();d();var U$=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}),v.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"})),nk=U$;var j$=({qrData:e,showQR:t,setShowQR:r})=>{let n=Js(),[o,i]=(0,ok.useState)(!1),a=(0,ik.useCallback)(()=>{var s;(0,ak.default)((s=e==null?void 0:e.default)!=null?s:""),i(!0),setTimeout(()=>i(!1),2e3)},[e]);return v.createElement(v.Fragment,null,v.createElement(Vl,null,(n=="desktop"||t)&&v.createElement("div",{className:"border-f1f5f8 dark:border-f1f5f8/10 relative inline-flex items-center justify-center rounded-2xl border p-2"},v.createElement("div",{className:"text-29343f dark:text-white"},e?v.createElement(rk,{data:n=="desktop"?e.default:e.mobile}):v.createElement("div",{className:"flex h-[202px] w-[202px] items-center justify-center"},v.createElement(ji,{className:"h-24 w-24"}))))),v.createElement("div",{className:"space-y-4"},v.createElement(kt.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:jt("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")},v.createElement(nk,{className:"h-5 w-5"}),v.createElement(kt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:n=="desktop"?void 0:"worldid-text"},"Open Worldcoin App")),v.createElement("div",{className:"space-x-2 md:hidden"},v.createElement(kt.button,{className:"text-9eafc0 text-sm",onClick:()=>r(s=>!s)},t?"Hide QR Code":"Show QR Code instead"),t&&v.createElement(v.Fragment,null,v.createElement("span",{className:"text-9eafc0"},"\xB7"),v.createElement("button",{className:"text-sm dark:text-white",onClick:a},o?"Copied!":"Copy QR Code")))))},sk=j$;var Gc=pe(we(),1);f();h();d();var $1=(s=>(s.ConnectionFailed="connection_failed",s.VerificationRejected="verification_rejected",s.AlreadySigned="already_signed",s.InvalidActionID="invalid_action_id",s.InvalidSignal="invalid_signal",s.UnexpectedResponse="unexpected_response",s.GenericError="generic_error",s))($1||{});f();h();d();var z$=()=>v.createElement("div",{className:"flex flex-col items-center justify-center space-y-12 pb-10"},v.createElement(ji,{className:"h-20 w-20"}),v.createElement("div",{className:"space-y-4"},v.createElement("p",{className:"mx-auto max-w-[15rem] text-center text-3xl font-semibold text-black dark:text-white"},"Confirm on the Worldcoin app"),v.createElement("p",{className:"mx-auto max-w-xs text-lg text-gray-400 dark:text-gray-600"},"Please confirm the request inside the Worldcoin app to continue."))),lk=z$;f();h();d();var DT=pe(we(),1);f();h();d();function B1(e,t){let r=new window.URL(e.bridge),n=new window.URL("https://worldcoin.org/verify");return n.searchParams.append("t",e.handshakeTopic),n.searchParams.append("k",e.key),n.searchParams.append("b",r.hostname),n.searchParams.append("v","1"),t&&n.searchParams.append("r",t),n.toString()}f();h();d();f();h();d();f();h();d();f();h();d();f();h();d();var vk=pe(fk()),qr=pe(dk());f();h();d();var fB=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n},dB=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var hB=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var pB=function(){function e(t,r,n,o){this.name=t,this.version=r,this.os=n,this.bot=o,this.type="bot-device"}return e}();var mB=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var gB=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var vB=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,yB=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,hk=3,wB=[["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|$)/],["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",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",vB]],pk=[["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/],["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 gk(e){return e?mk(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new gB:typeof navigator<"u"?mk(navigator.userAgent):bB()}function xB(e){return e!==""&&wB.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1)}function mk(e){var t=xB(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new mB;var o=n[1]&&n[1].split(/[._]/).slice(0,3);o?o.length<hk&&(o=fB(o,SB(hk-o.length))):o=[];var i=o.join("."),a=_B(e),s=yB.exec(e);return s&&s[1]?new pB(r,i,a,s[1]):new dB(r,i,a)}function _B(e){for(var t=0,r=pk.length;t<r;t++){var n=pk[t],o=n[0],i=n[1],a=i.exec(e);if(a)return o}return null}function bB(){var e=typeof process<"u"&&process.version;return e?new hB(process.version.slice(1)):null}function SB(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}function Wp(e){return gk(e)}function V1(){let e=Wp();return e&&e.os?e.os:void 0}function EB(){let e=V1();return e?e.toLowerCase().includes("android"):!1}function MB(){let e=V1();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yk(){return V1()?EB()||MB():!1}function CB(){let e=Wp();return e&&e.name?e.name.toLowerCase()==="node":!1}function wk(){return!CB()&&!!kB()}var kB=qr.getNavigator;var xk=qr.getLocation;var qp=qr.getLocalStorage;function U1(){return vk.getWindowMetadata()}f();h();d();f();h();d();function _k(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 bk(e){return typeof e=="string"?e:JSON.stringify(e)}var Sk=_k,Ek=bk;f();h();d();function j1(e,t){let r=Ek(t),n=qp();n&&n.setItem(e,r)}function Gp(e){let t=null,r=null,n=qp();return n&&(r=n.getItem(e)),t=r&&Sk(r),t}function Kp(e){let t=qp();t&&t.removeItem(e)}f();h();d();var z1="WALLETCONNECT_DEEPLINK_CHOICE";f();h();d();f();h();d();var Mk=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Yp=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];f();h();d();var Uk=pe(kk());f();h();d();var IB=pe(q1()),Ok=pe(Ik()),Nk="hex",Dk="utf8";var Zp="0";function Yi(e){return new Uint8Array(e)}function G1(e,t=!1){let r=e.toString(Nk);return t?ii(r):r}function Lk(e){return e.toString(Dk)}function Xl(e){return(0,Ok.default)(e)}function Zi(e,t=!1){return G1(Xl(e),t)}function K1(e){return Lk(Xl(e))}function Fk(e){return C.from(Gn(e),Nk)}function Qi(e){return Yi(Fk(e))}function Qp(e){return C.from(e,Dk)}function Y1(e){return Yi(Qp(e))}function $k(e,t=!1){return G1(Qp(e),t)}function Bk(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function Z1(...e){let t=[];return e.forEach(r=>t=t.concat(Array.from(r))),new Uint8Array([...t])}function OB(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function NB(e,t=8,r=Zp){return DB(e,OB(e.length,t),r)}function DB(e,t,r=Zp){return LB(e,t,!0,r)}function Gn(e){return e.replace(/^0x/,"")}function ii(e){return e.startsWith("0x")?e:`0x${e}`}function Xp(e){return e=Gn(e),e=NB(e,2),e&&(e=ii(e)),e}function Vk(e){let t=e.startsWith("0x");return e=Gn(e),e=e.startsWith(Zp)?e.substring(1):e,t?ii(e):e}function LB(e,t,r,n=Zp){let o=t-e.length,i=e;if(o>0){let a=n.repeat(o);i=r?a+e:e+a}return i}function e0(e){return Xl(new Uint8Array(e))}function jk(e,t){return Zi(new Uint8Array(e),!t)}function zk(e){return Yi(e).buffer}function Hk(e){return Qp(e)}function Wk(e,t){return $k(e,!t)}function qk(e){return Qi(e).buffer}function t0(e,t){let r=Gn(Xp(new Uk.default(e).toString(16)));return t?r:ii(r)}f();h();d();var $8=pe(gm());f();h();d();var Gr={};ms(Gr,{DEFAULT_ERROR:()=>jc,IBaseJsonRpcProvider:()=>h0,IEvents:()=>tu,IJsonRpcConnection:()=>ew,IJsonRpcProvider:()=>tw,INTERNAL_ERROR:()=>r0,INVALID_PARAMS:()=>Zk,INVALID_REQUEST:()=>Kk,METHOD_NOT_FOUND:()=>Yk,PARSE_ERROR:()=>Gk,RESERVED_ERROR_CODES:()=>Q1,SERVER_ERROR:()=>Uc,SERVER_ERROR_CODE_RANGE:()=>n0,STANDARD_ERROR_MAP:()=>Xi,formatErrorMessage:()=>k8,formatJsonRpcError:()=>HB,formatJsonRpcRequest:()=>jB,formatJsonRpcResult:()=>zB,getError:()=>i0,getErrorByCode:()=>a0,isHttpUrl:()=>QB,isJsonRpcError:()=>R8,isJsonRpcPayload:()=>rw,isJsonRpcRequest:()=>eV,isJsonRpcResponse:()=>tV,isJsonRpcResult:()=>P8,isJsonRpcValidationInvalid:()=>rV,isLocalhostUrl:()=>JB,isNodeJs:()=>C8,isReservedErrorCode:()=>o0,isServerErrorCode:()=>FB,isValidDefaultRoute:()=>f0,isValidErrorCode:()=>Qk,isValidLeadingWildcardRoute:()=>qB,isValidRoute:()=>WB,isValidTrailingWildcardRoute:()=>GB,isValidWildcardRoute:()=>d0,isWsUrl:()=>XB,parseConnectionError:()=>BB,payloadId:()=>c0,validateJsonRpcError:()=>$B});f();h();d();f();h();d();var Gk="PARSE_ERROR",Kk="INVALID_REQUEST",Yk="METHOD_NOT_FOUND",Zk="INVALID_PARAMS",r0="INTERNAL_ERROR",Uc="SERVER_ERROR",Q1=[-32700,-32600,-32601,-32602,-32603],n0=[-32e3,-32099],Xi={[Gk]:{code:-32700,message:"Parse error"},[Kk]:{code:-32600,message:"Invalid Request"},[Yk]:{code:-32601,message:"Method not found"},[Zk]:{code:-32602,message:"Invalid params"},[r0]:{code:-32603,message:"Internal error"},[Uc]:{code:-32e3,message:"Server error"}},jc=Uc;f();h();d();function FB(e){return e<=n0[0]&&e>=n0[1]}function o0(e){return Q1.includes(e)}function Qk(e){return typeof e=="number"}function i0(e){return Object.keys(Xi).includes(e)?Xi[e]:Xi[jc]}function a0(e){let t=Object.values(Xi).find(r=>r.code===e);return t||Xi[jc]}function $B(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(!Qk(e.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${e.error.code}`};if(o0(e.error.code)){let t=a0(e.error.code);if(t.message!==Xi[jc].message&&e.error.message===t.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${e.error.code}`}}return{valid:!0}}function BB(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}var Jt={};ms(Jt,{isNodeJs:()=>C8});f();h();d();var M8=pe(eu());rt(Jt,pe(eu()));var C8=M8.isNode;rt(Gr,Jt);f();h();d();function c0(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function jB(e,t,r){return{id:r||c0(),jsonrpc:"2.0",method:e,params:t}}function zB(e,t){return{id:e,jsonrpc:"2.0",result:t}}function HB(e,t,r){return{id:e,jsonrpc:"2.0",error:k8(t,r)}}function k8(e,t){return typeof e>"u"?i0(r0):(typeof e=="string"&&(e=Object.assign(Object.assign({},i0(Uc)),{message:e})),typeof t<"u"&&(e.data=t),o0(e.code)&&(e=a0(e.code)),e)}f();h();d();function WB(e){return e.includes("*")?d0(e):!/\W/g.test(e)}function f0(e){return e==="*"}function d0(e){return f0(e)?!0:!(!e.includes("*")||e.split("*").length!==2||e.split("*").filter(t=>t.trim()==="").length!==1)}function qB(e){return!f0(e)&&d0(e)&&!e.split("*")[0].trim()}function GB(e){return!f0(e)&&d0(e)&&!e.split("*")[1].trim()}f();h();d();f();h();d();f();h();d();f();h();d();var tu=class{};f();h();d();var ew=class extends tu{constructor(t){super()}},h0=class extends tu{constructor(){super()}},tw=class extends h0{constructor(t){super()}};f();h();d();f();h();d();var KB="^https?:",YB="^wss?:";function ZB(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function T8(e,t){let r=ZB(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function QB(e){return T8(e,KB)}function XB(e){return T8(e,YB)}function JB(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}f();h();d();function rw(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function eV(e){return rw(e)&&"method"in e}function tV(e){return rw(e)&&(P8(e)||R8(e))}function P8(e){return"result"in e}function R8(e){return"error"in e}function rV(e){return"error"in e&&e.valid===!1}function zc(e){return Xp(e)}function A8(e){return Vk(ii(e))}var I8=c0;function p0(){return((t,r)=>{for(r=t="";t++<36;r+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-");return r})()}f();h();d();function O8(e){return e===""||typeof e=="string"&&e.trim()===""}function N8(e){return!(e&&e.length)}function nw(e,t){return Bk(e,t)}function D8(e){return typeof e.method<"u"}function ss(e){return typeof e.result<"u"}function ru(e){return typeof e.error<"u"}function ow(e){return typeof e.event<"u"}function L8(e){return Mk.includes(e)||e.startsWith("wc_")}function F8(e){return e.method.startsWith("wc_")?!0:!Yp.includes(e.method)}function nV(e){e=Gn(e.toLowerCase());let t=Gn((0,$8.keccak_256)(Hk(e))),r="";for(let n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return ii(r)}var oV=e=>e?e.toLowerCase().substring(0,2)!=="0x"?!1:/^(0x)?[0-9a-f]{40}$/i.test(e)?/^(0x)?[0-9a-f]{40}$/.test(e)||/^(0x)?[0-9A-F]{40}$/.test(e)?!0:e===nV(e):!1:!1;function iw(e){return!N8(e)&&!nw(e[0])&&(e[0]=Wk(e[0])),e}function m0(e){if(typeof e.type<"u"&&e.type!=="0")return e;if(typeof e.from>"u"||!oV(e.from))throw new Error("Transaction object must include a valid 'from' value.");function t(o){let i=o;return(typeof o=="number"||typeof o=="string"&&!O8(o))&&(nw(o)?typeof o=="string"&&(i=zc(o)):i=t0(o)),typeof i=="string"&&(i=A8(i)),i}let r={from:zc(e.from),to:typeof e.to>"u"?void 0:zc(e.to),gasPrice:typeof e.gasPrice>"u"?"":t(e.gasPrice),gas:typeof e.gas>"u"?typeof e.gasLimit>"u"?"":t(e.gasLimit):t(e.gas),value:typeof e.value>"u"?"":t(e.value),nonce:typeof e.nonce>"u"?"":t(e.nonce),data:typeof e.data>"u"?"":zc(e.data)||"0x"},n=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach(o=>{(typeof r[o]>"u"||typeof r[o]=="string"&&!r[o].trim().length)&&n.includes(o)&&delete r[o]}),r}f();h();d();function B8(e){let t=e.message||"Failed or Rejected Request",r=-32e3;if(e&&!e.code)switch(t){case"Parse error":r=-32700;break;case"Invalid request":r=-32600;break;case"Method not found":r=-32601;break;case"Invalid params":r=-32602;break;case"Internal error":r=-32603;break;default:r=-32e3;break}let n={code:r,message:t};return e.data&&(n.data=e.data),n}f();h();d();f();h();d();var g0=pe(rT());function nT(e){let t=e.indexOf("?")!==-1?e.indexOf("?"):void 0;return typeof t<"u"?e.substr(t):""}function oT(e,t){let r=sw(e);return r=Object.assign(Object.assign({},r),t),e=hV(r),e}function sw(e){return g0.parse(e)}function hV(e){return g0.stringify(e)}function iT(e){return typeof e.bridge<"u"}function aT(e){let t=e.indexOf(":"),r=e.indexOf("?")!==-1?e.indexOf("?"):void 0,n=e.substring(0,t),o=e.substring(t+1,r);function i(_){let k="@",R=_.split(k);return{handshakeTopic:R[0],version:parseInt(R[1],10)}}let a=i(o),s=typeof r<"u"?e.substr(r):"";function l(_){let k=sw(_);return{key:k.key||"",bridge:k.bridge||""}}let c=l(s);return Object.assign(Object.assign({protocol:n},a),c)}f();h();d();f();h();d();var lw=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(t,r){this._eventEmitters.push({event:t,callback:r})}trigger(t){let r=[];t&&(r=this._eventEmitters.filter(n=>n.event===t)),r.forEach(n=>{n.callback()})}},sT=lw;var pV=typeof globalThis.WebSocket<"u"?globalThis.WebSocket:uT(),uw=class{constructor(t){if(this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new sT,!t.url||typeof t.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(t){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(t){}get connecting(){return this.readyState===0}set connected(t){}get connected(){return this.readyState===1}set closing(t){}get closing(){return this.readyState===2}set closed(t){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(t,r,n){if(!r||typeof r!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:r,type:"pub",payload:t,silent:!!n})}subscribe(t){this._socketSend({topic:t,type:"sub",payload:"",silent:!0})}on(t,r){this._events.push({event:t,callback:r})}_socketCreate(){if(this._nextSocket)return;let t=mV(this._url,this._protocol,this._version);if(this._nextSocket=new pV(t),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=r=>this._socketReceive(r),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=r=>this._socketError(r),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(t){let r=JSON.stringify(t);this._socket&&this._socket.readyState===1?this._socket.send(r):(this._setToQueue(t),this._socketCreate())}async _socketReceive(t){let r;try{r=JSON.parse(t.data)}catch(n){return}if(this._socketSend({topic:r.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(o=>o.event==="message");n&&n.length&&n.forEach(o=>o.callback(r))}}_socketError(t){let r=this._events.filter(n=>n.event==="error");r&&r.length&&r.forEach(n=>n.callback(t))}_queueSubscriptions(){this._subscriptions.forEach(r=>this._queue.push({topic:r,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(t){this._queue.push(t)}_pushQueue(){this._queue.forEach(r=>this._socketSend(r)),this._queue=[]}};function mV(e,t,r){var n,o;let a=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),s=wk()?{protocol:t,version:r,env:"browser",host:((n=xk())===null||n===void 0?void 0:n.host)||""}:{protocol:t,version:r,env:((o=Wp())===null||o===void 0?void 0:o.name)||""},l=oT(nT(a[1]||""),s);return a[0]+"?"+l}var cT=uw;f();h();d();var v0="Session currently connected",ta="Session currently disconnected",fT="Session Rejected",dT="Missing JSON RPC response",hT='JSON-RPC success response must include "result" field',pT='JSON-RPC error response must include "error" field',mT='JSON RPC request must have valid "method" value',gT='JSON RPC request must have valid "id" value',vT="Missing one of the required parameters: bridge / uri / session",cw="JSON RPC response format is invalid",yT="URI format is invalid",wT="QRCode Modal not provided",fw="User close QRCode Modal";f();h();d();var dw=class{constructor(){this._eventEmitters=[]}subscribe(t){this._eventEmitters.push(t)}unsubscribe(t){this._eventEmitters=this._eventEmitters.filter(r=>r.event!==t)}trigger(t){let r=[],n;D8(t)?n=t.method:ss(t)||ru(t)?n=`response:${t.id}`:ow(t)?n=t.event:n="",n&&(r=this._eventEmitters.filter(o=>o.event===n)),(!r||!r.length)&&!L8(n)&&!ow(n)&&(r=this._eventEmitters.filter(o=>o.event==="call_request")),r.forEach(o=>{if(ru(t)){let i=new Error(t.error.message);o.callback(i,null)}else o.callback(null,t)})}},xT=dw;f();h();d();var hw=class{constructor(t="walletconnect"){this.storageId=t}getSession(){let t=null,r=Gp(this.storageId);return r&&iT(r)&&(t=r),t}setSession(t){return j1(this.storageId,t),t}removeSession(){Kp(this.storageId)}},_T=hw;f();h();d();var gV="walletconnect.org",vV="abcdefghijklmnopqrstuvwxyz0123456789",bT=vV.split("").map(e=>`https://${e}.bridge.walletconnect.org`);function yV(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}function wV(e){return yV(e).split(".").slice(-2).join(".")}function xV(){return Math.floor(Math.random()*bT.length)}function _V(){return bT[xV()]}function bV(e){return wV(e)===gV}function ST(e){return bV(e)?_V():e}var pw=class{constructor(t){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new xT,this._clientMeta=U1()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new _T(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[...Yp,...t.connectorOpts.signingMethods||[]],!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error(vT);t.connectorOpts.bridge&&(this.bridge=ST(t.connectorOpts.bridge)),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);let r=t.connectorOpts.session||this._getStorageSession();r&&(this.session=r),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new cT({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}set bridge(t){!t||(this._bridge=t)}get bridge(){return this._bridge}set key(t){if(!t)return;let r=qk(t);this._key=r}get key(){return this._key?jk(this._key,!0):""}set clientId(t){!t||(this._clientId=t)}get clientId(){let t=this._clientId;return t||(t=this._clientId=p0()),this._clientId}set peerId(t){!t||(this._peerId=t)}get peerId(){return this._peerId}set clientMeta(t){}get clientMeta(){let t=this._clientMeta;return t||(t=this._clientMeta=U1()),t}set peerMeta(t){this._peerMeta=t}get peerMeta(){return this._peerMeta}set handshakeTopic(t){!t||(this._handshakeTopic=t)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(t){!t||(this._handshakeId=t)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(t){if(!t)return;let{handshakeTopic:r,bridge:n,key:o}=this._parseUri(t);this.handshakeTopic=r,this.bridge=n,this.key=o}set chainId(t){this._chainId=t}get chainId(){return this._chainId}set networkId(t){this._networkId=t}get networkId(){return this._networkId}set accounts(t){this._accounts=t}get accounts(){return this._accounts}set rpcUrl(t){this._rpcUrl=t}get rpcUrl(){return this._rpcUrl}set connected(t){}get connected(){return this._connected}set pending(t){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(t){!t||(this._connected=t.connected,this.accounts=t.accounts,this.chainId=t.chainId,this.bridge=t.bridge,this.key=t.key,this.clientId=t.clientId,this.clientMeta=t.clientMeta,this.peerId=t.peerId,this.peerMeta=t.peerMeta,this.handshakeId=t.handshakeId,this.handshakeTopic=t.handshakeTopic)}on(t,r){let n={event:t,callback:r};this._eventManager.subscribe(n)}off(t){this._eventManager.unsubscribe(t)}async createInstantRequest(t){this._key=await this._generateKey();let r=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]});this.handshakeId=r.id,this.handshakeTopic=p0(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(fw)});let n=()=>{this.killSession()};try{let o=await this._sendCallRequest(r);return o&&n(),o}catch(o){throw n(),o}}async connect(t){if(!this._qrcodeModal)throw new Error(wT);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(t),new Promise(async(r,n)=>{this.on("modal_closed",()=>n(new Error(fw))),this.on("connect",(o,i)=>{if(o)return n(o);r(i.params[0])})}))}async createSession(t){if(this._connected)throw new Error(v0);if(this.pending)return;this._key=await this._generateKey();let r=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]});this.handshakeId=r.id,this.handshakeTopic=p0(),this._sendSessionRequest(r,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(t){if(this._connected)throw new Error(v0);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";let r={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:r};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(t){if(this._connected)throw new Error(v0);let r=t&&t.message?t.message:fT,n=this._formatResponse({id:this.handshakeId,error:{message:r}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:r}]}),this._removeStorageSession()}updateSession(t){if(!this._connected)throw new Error(ta);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";let r={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[r]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(t){let r=t?t.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},o=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(o),this._handleSessionDisconnect(r)}async sendTransaction(t){if(!this._connected)throw new Error(ta);let r=m0(t),n=this._formatRequest({method:"eth_sendTransaction",params:[r]});return await this._sendCallRequest(n)}async signTransaction(t){if(!this._connected)throw new Error(ta);let r=m0(t),n=this._formatRequest({method:"eth_signTransaction",params:[r]});return await this._sendCallRequest(n)}async signMessage(t){if(!this._connected)throw new Error(ta);let r=this._formatRequest({method:"eth_sign",params:t});return await this._sendCallRequest(r)}async signPersonalMessage(t){if(!this._connected)throw new Error(ta);t=iw(t);let r=this._formatRequest({method:"personal_sign",params:t});return await this._sendCallRequest(r)}async signTypedData(t){if(!this._connected)throw new Error(ta);let r=this._formatRequest({method:"eth_signTypedData",params:t});return await this._sendCallRequest(r)}async updateChain(t){if(!this._connected)throw new Error("Session currently disconnected");let r=this._formatRequest({method:"wallet_updateChain",params:[t]});return await this._sendCallRequest(r)}unsafeSend(t,r){return this._sendRequest(t,r),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:r}]}),new Promise((n,o)=>{this._subscribeToResponse(t.id,(i,a)=>{if(i){o(i);return}if(!a)throw new Error(dT);n(a)})})}async sendCustomRequest(t,r){if(!this._connected)throw new Error(ta);switch(t.method){case"eth_accounts":return this.accounts;case"eth_chainId":return t0(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":t.params&&(t.params[0]=m0(t.params[0]));break;case"personal_sign":t.params&&(t.params=iw(t.params));break;default:break}let n=this._formatRequest(t);return await this._sendCallRequest(n,r)}approveRequest(t){if(ss(t)){let r=this._formatResponse(t);this._sendResponse(r)}else throw new Error(hT)}rejectRequest(t){if(ru(t)){let r=this._formatResponse(t);this._sendResponse(r)}else throw new Error(pT)}transportClose(){this._transport.close()}async _sendRequest(t,r){let n=this._formatRequest(t),o=await this._encrypt(n),i=typeof(r==null?void 0:r.topic)<"u"?r.topic:this.peerId,a=JSON.stringify(o),s=typeof(r==null?void 0:r.forcePushNotification)<"u"?!r.forcePushNotification:F8(n);this._transport.send(a,i,s)}async _sendResponse(t){let r=await this._encrypt(t),n=this.peerId,o=JSON.stringify(r),i=!0;this._transport.send(o,n,i)}async _sendSessionRequest(t,r,n){this._sendRequest(t,n),this._subscribeToSessionResponse(t.id,r)}_sendCallRequest(t,r){return this._sendRequest(t,r),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:r}]}),this._subscribeToCallResponse(t.id)}_formatRequest(t){if(typeof t.method>"u")throw new Error(mT);return{id:typeof t.id>"u"?I8():t.id,jsonrpc:"2.0",method:t.method,params:typeof t.params>"u"?[]:t.params}}_formatResponse(t){if(typeof t.id>"u")throw new Error(gT);let r={id:t.id,jsonrpc:"2.0"};if(ru(t)){let n=B8(t.error);return Object.assign(Object.assign(Object.assign({},r),t),{error:n})}else if(ss(t))return Object.assign(Object.assign({},r),t);throw new Error(cw)}_handleSessionDisconnect(t){let r=t||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Kp(z1)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:r}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(t,r){r?r.approved?(this._connected?(r.chainId&&(this.chainId=r.chainId),r.accounts&&(this.accounts=r.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,r.chainId&&(this.chainId=r.chainId),r.accounts&&(this.accounts=r.accounts),r.peerId&&!this.peerId&&(this.peerId=r.peerId),r.peerMeta&&!this.peerMeta&&(this.peerMeta=r.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(t):this._handleSessionDisconnect(t)}async _handleIncomingMessages(t){if(![this.clientId,this.handshakeTopic].includes(t.topic))return;let n;try{n=JSON.parse(t.payload)}catch(i){return}let o=await this._decrypt(n);o&&this._eventManager.trigger(o)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(t,r){this.on(`response:${t}`,r)}_subscribeToSessionResponse(t,r){this._subscribeToResponse(t,(n,o)=>{if(n){this._handleSessionResponse(n.message);return}ss(o)?this._handleSessionResponse(r,o.result):o.error&&o.error.message?this._handleSessionResponse(o.error.message):this._handleSessionResponse(r)})}_subscribeToCallResponse(t){return new Promise((r,n)=>{this._subscribeToResponse(t,(o,i)=>{if(o){n(o);return}ss(i)?r(i.result):i.error&&i.error.message?n(i.error):n(new Error(cw))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(t,r)=>{let{request:n}=r.params[0];if(yk()&&this._signingMethods.includes(n.method)){let o=Gp(z1);o&&(window.location.href=o.href)}}),this.on("wc_sessionRequest",(t,r)=>{t&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),this.handshakeId=r.id,this.peerId=r.params[0].peerId,this.peerMeta=r.params[0].peerMeta;let n=Object.assign(Object.assign({},r),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(t,r)=>{t&&this._handleSessionResponse(t.message),this._handleSessionResponse("Session disconnected",r.params[0])})}_initTransport(){this._transport.on("message",t=>this._handleIncomingMessages(t)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let t=this.protocol,r=this.handshakeTopic,n=this.version,o=encodeURIComponent(this.bridge),i=this.key;return`${t}:${r}@${n}?bridge=${o}&key=${i}`}_parseUri(t){let r=aT(t);if(r.protocol===this.protocol){if(!r.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=r.handshakeTopic;if(!r.bridge)throw Error("Invalid or missing bridge url parameter value");let o=decodeURIComponent(r.bridge);if(!r.key)throw Error("Invalid or missing key parameter value");let i=r.key;return{handshakeTopic:n,bridge:o,key:i}}else throw new Error(yT)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(t){let r=this._key;return this._cryptoLib&&r?await this._cryptoLib.encrypt(t,r):null}async _decrypt(t){let r=this._key;return this._cryptoLib&&r?await this._cryptoLib.decrypt(t,r):null}_getStorageSession(){let t=null;return this._sessionStorage&&(t=this._sessionStorage.getSession()),t}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(t){if(!t.url||typeof t.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!t.type||typeof t.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!t.token||typeof t.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let r={bridge:this.bridge,topic:this.clientId,type:t.type,token:t.token,peerName:"",language:t.language||""};this.on("connect",async(n,o)=>{if(n)throw n;if(t.peerMeta){let i=o.params[0].peerMeta.name;r.peerName=i}try{if(!(await(await fetch(`${t.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})).json()).success)throw Error("Failed to register in Push Server")}catch(i){throw Error("Failed to register in Push Server")}})}},ET=pw;var Rw={};ms(Rw,{decrypt:()=>YV,encrypt:()=>KV,generateKey:()=>IT,verifyHmac:()=>OT});f();h();d();var Cn={};ms(Cn,{AES_BROWSER_ALGO:()=>Ro,AES_LENGTH:()=>Wc,AES_NODE_ALGO:()=>kV,DECRYPT_OP:()=>Sw,ENCRYPT_OP:()=>bw,ERROR_BAD_MAC:()=>$V,HEX_ENC:()=>LV,HMAC_BROWSER:()=>ls,HMAC_BROWSER_ALGO:()=>ww,HMAC_LENGTH:()=>x0,HMAC_NODE_ALGO:()=>TV,IV_LENGTH:()=>NV,KEY_LENGTH:()=>OV,LENGTH_0:()=>SV,LENGTH_1:()=>gw,LENGTH_1024:()=>CV,LENGTH_128:()=>MV,LENGTH_16:()=>vw,LENGTH_256:()=>w0,LENGTH_32:()=>y0,LENGTH_512:()=>yw,LENGTH_64:()=>EV,MAC_LENGTH:()=>DV,PREFIX_LENGTH:()=>IV,RIPEMD160_NODE_ALGO:()=>AV,SHA256_BROWSER_ALGO:()=>xw,SHA256_NODE_ALGO:()=>PV,SHA512_BROWSER_ALGO:()=>_w,SHA512_NODE_ALGO:()=>RV,SIGN_OP:()=>Ew,UTF8_ENC:()=>FV,VERIFY_OP:()=>Mw,aesCbcDecrypt:()=>Pw,aesCbcEncrypt:()=>Tw,assert:()=>AT,hmacSha256Sign:()=>b0,hmacSha256Verify:()=>jV,hmacSha512Sign:()=>zV,hmacSha512Verify:()=>HV,isConstantTime:()=>qc,pkcs7:()=>RT,randomBytes:()=>mw,ripemd160:()=>GV,sha256:()=>WV,sha512:()=>qV});f();h();d();f();h();d();var MT=pe(eu());function mw(e){return MT.getBrowerCrypto().getRandomValues(new Uint8Array(e))}f();h();d();f();h();d();var ra=pe(eu());f();h();d();f();h();d();f();h();d();var SV=0,gw=1,vw=16,y0=32,EV=64,MV=128,w0=256,yw=512,CV=1024;var Wc=256,x0=256,Ro="AES-CBC",ww=`SHA-${Wc}`,ls="HMAC",xw="SHA-256",_w="SHA-512",kV=`aes-${Wc}-cbc`,TV=`sha${x0}`,PV="sha256",RV="sha512",AV="ripemd160",IV=1,OV=32,NV=16,DV=32;f();h();d();var LV="hex",FV="utf8";f();h();d();var $V="Bad MAC";f();h();d();var bw="encrypt",Sw="decrypt",Ew="sign",Mw="verify";function BV(e){return e===Ro?{length:Wc,name:Ro}:{hash:{name:ww},name:ls}}function VV(e){return e===Ro?[bw,Sw]:[Ew,Mw]}async function _0(e,t=Ro){return ra.getSubtleCrypto().importKey("raw",e,BV(t),!0,VV(t))}async function CT(e,t,r){let n=ra.getSubtleCrypto(),o=await _0(t,Ro),i=await n.encrypt({iv:e,name:Ro},o,r);return new Uint8Array(i)}async function kT(e,t,r){let n=ra.getSubtleCrypto(),o=await _0(t,Ro),i=await n.decrypt({iv:e,name:Ro},o,r);return new Uint8Array(i)}async function Cw(e,t){let r=ra.getSubtleCrypto(),n=await _0(e,ls),o=await r.sign({length:x0,name:ls},n,t);return new Uint8Array(o)}async function kw(e,t){let r=ra.getSubtleCrypto(),n=await _0(e,ls),o=await r.sign({length:512,name:ls},n,t);return new Uint8Array(o)}async function TT(e){let r=await ra.getSubtleCrypto().digest({name:xw},e);return new Uint8Array(r)}async function PT(e){let r=await ra.getSubtleCrypto().digest({name:_w},e);return new Uint8Array(r)}function Tw(e,t,r){return CT(e,t,r)}function Pw(e,t,r){return kT(e,t,r)}f();h();d();var er={};ms(er,{assert:()=>AT,isConstantTime:()=>qc,pkcs7:()=>RT});f();h();d();var Kr={};f();h();d();rt(Kr,pe(eu()));rt(er,Kr);f();h();d();var UV=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],RT={pad(e){let t=UV[e.byteLength%16||0],r=new Uint8Array(e.byteLength+t.length);return r.set(e),r.set(t,e.byteLength),r},unpad(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}};f();h();d();f();h();d();function AT(e,t){if(!e)throw new Error(t||"Assertion failed")}function qc(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return r===0}async function b0(e,t){return await Cw(e,t)}async function jV(e,t,r){let n=await Cw(e,t);return qc(n,r)}async function zV(e,t){return await kw(e,t)}async function HV(e,t,r){let n=await kw(e,t);return qc(n,r)}f();h();d();async function WV(e){return await TT(e)}async function qV(e){return await PT(e)}async function GV(e){throw new Error("Not supported for Browser async methods, use sync instead!")}rt(Cn,er);async function IT(e){let t=(e||256)/8,r=mw(t);return zk(Xl(r))}async function OT(e,t){let r=Qi(e.data),n=Qi(e.iv),o=Qi(e.hmac),i=Zi(o,!1),a=Z1(r,n),s=await b0(t,a),l=Zi(s,!1);return Gn(i)===Gn(l)}async function KV(e,t,r){let n=Yi(e0(t)),o=r||await IT(128),i=Yi(e0(o)),a=Zi(i,!1),s=JSON.stringify(e),l=Y1(s),c=await Tw(i,n,l),g=Zi(c,!1),_=Z1(c,i),k=await b0(n,_),R=Zi(k,!1);return{data:g,hmac:R,iv:a}}async function YV(e,t){let r=Yi(e0(t));if(!r)throw new Error("Missing key: required for decryption");if(!await OT(e,r))return null;let o=Qi(e.data),i=Qi(e.iv),a=await Pw(i,r,o),s=K1(a),l;try{l=JSON.parse(s)}catch(c){return null}return l}var Aw=class extends ET{constructor(t,r){super({cryptoLib:Rw,connectorOpts:t,pushServerOpts:r})}},NT=Aw;var uo;try{uo=new NT({bridge:"https://bridge.walletconnect.org"})}catch(e){console.error("Unable to create WalletConnect connector")}var QV=bf()((e,t)=>({qrData:null,config:null,result:null,connected:!1,connectorUri:"",errorCode:null,verificationState:"loading_widget",initConnection:async(r,n)=>{t().connectorUri||(uo.connected&&await uo.killSession(),e({config:{action_id:r,signal:n}}),await uo.createSession(),t().setConnectorUri(uo.uri),uo.on("connect",o=>{if(!o)return t().onConnectionEstablished();e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${o}`)}),uo.on("disconnect",o=>{o&&t().initConnection(r,n)}))},setConnectorUri:r=>{!r||e({connectorUri:r,verificationState:"awaiting_connection",qrData:{default:B1(uo),mobile:B1(uo,window.location.href)}})},onConnectionEstablished:()=>{e({verificationState:"awaiting_verification"}),uo.sendCustomRequest(XV(t().config.action_id,t().config.signal)).then(r=>{if(!JV(r))return e({errorCode:"unexpected_response"});e({result:r,verificationState:"confirmed"})}).catch(r=>{let n="generic_error",o=r.message;o&&Object.values($1).includes(o)&&(n=o),e({errorCode:n,verificationState:"failed"})}).finally(()=>void uo.killSession()).catch(r=>console.error("Unable to kill session",r))},resetConnection:()=>{e({result:null,config:null,qrData:null,errorCode:null,connected:!1,connectorUri:"",verificationState:"loading_widget"})}})),XV=(e,t)=>({jsonrpc:"2.0",method:"wld_worldIDVerification",id:RS(1e5,9999999),params:[{signal:yu(t).digest,action_id:yu(e).digest}]}),JV=e=>{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;for(let o of[r,n,t])if(!o||!N2(o))return!1;return!0},eU=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,initConnection:e.initConnection,verificationState:e.verificationState}),tU=(e,t)=>{let{result:r,verificationState:n,errorCode:o,qrData:i,initConnection:a,reset:s}=QV(eU);return(0,DT.useEffect)(()=>{!e||!t||a(e,t)},[e,a,t]),{result:r,reset:s,verificationState:n,errorCode:o,qrData:i}},LT=tU;f();h();d();f();h();d();var rU=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 14"}),v.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"})),FT=rU;f();h();d();var nU=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 14"}),v.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"}),v.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"})),$T=nU;var oU=({className:e})=>v.createElement("div",{className:jt(e,"space-y-4 text-left")},v.createElement("p",{className:"text-0d151d text-sm font-medium uppercase dark:text-white"},"What is World ID?"),v.createElement("div",{className:"space-y-3"},v.createElement(BT,{title:"Proving unique-humanness",icon:$T},v.createElement("p",null,"Human is doing an action only once."),v.createElement("p",null,"Stop bots, stop abouse.")),v.createElement(BT,{title:"Completely private",icon:FT},v.createElement("p",null,"Using Zero-knowledge proofs so no traceable information is ever public.")))),BT=({icon:e,title:t,children:r})=>v.createElement("div",{className:"flex space-x-6"},v.createElement("div",{className:"bg-d3dfea/30 dark:bg-29343f flex aspect-square h-8 w-8 items-center justify-center rounded-full"},v.createElement(e,{className:"text-0d151d h-3 w-3 dark:text-white"})),v.createElement("div",null,v.createElement("p",{className:"text-0d151d font-medium dark:text-white"},t),v.createElement("div",{className:"text-9eafc0 dark:text-9eafc0 mt-[2px] text-sm font-normal"},r))),nu=oU;f();h();d();var iU=e=>v.createElement("svg",Se(oe({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})),S0=iU;var sU=e=>({signal:e.signal,copy:e.copy,actionId:e.actionId,handleVerify:e.handleVerify,showAbout:e.methods.length==1,hasPhone:e.methods.includes("phone"),usePhone:()=>e.setStage("ENTER_PHONE")}),lU=()=>{let e=Js(),[t,r]=(0,Gc.useState)(!1),{actionId:n,copy:o,signal:i,handleVerify:a,showAbout:s,hasPhone:l,usePhone:c}=Lt(sU),{result:g,qrData:_,verificationState:k,reset:R}=LT(n,i);return(0,Gc.useEffect)(()=>R,[R]),(0,Gc.useEffect)(()=>{!g||a({signal_type:"orb",nullifier_hash:g.nullifier_hash,proof_payload:{proof:g.proof,merkle_root:g.merkle_root}})},[g,R,a]),v.createElement("div",{className:"-mt-6 space-y-6"},v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(o==null?void 0:o.heading)||fn.heading),v.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},(o==null?void 0:o.subheading)||fn.subheading)),k==="awaiting_verification"?v.createElement(lk,null):v.createElement(sk,{showQR:t,setShowQR:r,qrData:_}),s&&(e=="desktop"||!t)&&v.createElement(nu,null),l&&v.createElement("div",{className:"hidden space-y-3 md:block"},v.createElement("div",{className:"flex items-center justify-between space-x-6"},v.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"}),v.createElement("p",{className:"text-9eafc0 dark:text-596673 text-xs"},"or"),v.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"})),v.createElement("div",{className:"flex items-center justify-center"},v.createElement("button",{onClick:c,className:"flex items-center space-x-2"},v.createElement(S0,{className:"text-0d151d/70 h-6 w-6 dark:text-white/70"}),v.createElement("p",{className:"text-0d151d text-sm font-medium dark:text-white"},"Verify with Phone Number")))))},VT=lU;f();h();d();f();h();d();var UT="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 cU=n=>{var o=n,{border:e,size:t="sm"}=o,r=Ae(o,["border","size"]);let i=t==="md"?36:24;return v.createElement(v.Fragment,null,e&&v.createElement("svg",{className:jt(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"},v.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"})),v.createElement("img",Se(oe({src:UT},r),{alt:"Verified",width:i,height:i})))},na=cU;f();h();d();var fU=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"}),v.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"})),jT=fU;var dU=()=>v.createElement("div",{className:"-mt-6 flex flex-col items-center justify-center space-y-6"},v.createElement(na,{className:"h-12 w-12"}),v.createElement("p",{className:"text-center text-2xl font-semibold dark:text-white"},"IDKit and World ID are fully privacy preserving."),v.createElement("ul",{className:"mb-6 list-disc space-y-3 px-4"},v.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.",v.createElement("ul",{className:"text-9eafc0 dark:text-9eafc0 mt-3 list-disc pl-4"},v.createElement("li",null,"Apps only receive a hash-like nullifier which can't be reversed. Worldcoin or IDKit don't store nullifier hashes."))),v.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."),v.createElement("li",{className:"text-left dark:text-white"},"Our code is fully open source or source available on"," ",v.createElement("a",{href:"https://github.com/worldcoin/idkit-js",target:"_blank",className:"text-4940e0 underline",rel:"noreferrer"},"GitHub"),".")),v.createElement("div",{className:"-ml-4 flex items-center space-x-3"},v.createElement(jT,{className:"h-4 w-4 text-white"}),v.createElement("p",{className:"whitespace-nowrap text-sm font-medium text-white"},"Apps will never see your phone number or biometrics."))),zT=dU;f();h();d();var ot=pe(we());f();h();d();var Iw=pe(we());var hU=Iw["useId".toString()]||(()=>{}),pU=0;function E0(e){let[t,r]=Iw.useState(hU());return Qa(()=>{e||r(n=>n!=null?n:String(pU++))},[e]),e||(t?`radix-${t}`:"")}f();h();d();var ln=pe(we());var Ow="focusScope.autoFocusOnMount",Nw="focusScope.autoFocusOnUnmount",HT={bubbles:!1,cancelable:!0};var KT=(0,ln.forwardRef)((e,t)=>{let V=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i}=V,a=Ae(V,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[s,l]=(0,ln.useState)(null),c=Dr(o),g=Dr(i),_=(0,ln.useRef)(null),k=Nr(t,j=>l(j)),R=(0,ln.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,ln.useEffect)(()=>{if(n){let j=function(D){if(R.paused||!s)return;let B=D.target;s.contains(B)?_.current=B:us(_.current,{select:!0})},L=function(D){R.paused||!s||s.contains(D.relatedTarget)||us(_.current,{select:!0})};return document.addEventListener("focusin",j),document.addEventListener("focusout",L),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",L)}}},[n,s,R.paused]),(0,ln.useEffect)(()=>{if(s){qT.add(R);let j=document.activeElement;if(!s.contains(j)){let D=new CustomEvent(Ow,HT);s.addEventListener(Ow,c),s.dispatchEvent(D),D.defaultPrevented||(mU(xU(YT(s)),{select:!0}),document.activeElement===j&&us(s))}return()=>{s.removeEventListener(Ow,c),setTimeout(()=>{let D=new CustomEvent(Nw,HT);s.addEventListener(Nw,g),s.dispatchEvent(D),D.defaultPrevented||us(j!=null?j:document.body,{select:!0}),s.removeEventListener(Nw,g),qT.remove(R)},0)}}},[s,c,g,R]);let I=(0,ln.useCallback)(j=>{if(!r&&!n||R.paused)return;let L=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,D=document.activeElement;if(L&&D){let B=j.currentTarget,[K,X]=gU(B);K&&X?!j.shiftKey&&D===X?(j.preventDefault(),r&&us(K,{select:!0})):j.shiftKey&&D===K&&(j.preventDefault(),r&&us(X,{select:!0})):D===B&&j.preventDefault()}},[r,n,R.paused]);return(0,ln.createElement)(fr.div,yt({tabIndex:-1},a,{ref:k,onKeyDown:I}))});function mU(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(us(n,{select:t}),document.activeElement!==r)return}function gU(e){let t=YT(e),r=WT(t,e),n=WT(t.reverse(),e);return[r,n]}function YT(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function WT(e,t){for(let r of e)if(!vU(r,{upTo:t}))return r}function vU(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 yU(e){return e instanceof HTMLInputElement&&"select"in e}function us(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&yU(e)&&t&&e.select()}}var qT=wU();function wU(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=GT(e,t),e.unshift(t)},remove(t){var r;e=GT(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function GT(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function xU(e){return e.filter(t=>t.tagName!=="A")}f();h();d();var QT=pe(we()),Dw=0;function XT(){(0,QT.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:ZT()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:ZT()),Dw++,()=>{Dw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Dw--}},[])}function ZT(){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}f();h();d();f();h();d();var T0=pe(we());f();h();d();var Fr=pe(we());f();h();d();var cs="right-scroll-bar-position",fs="width-before-scroll-bar",Lw="with-scroll-bars-hidden",Fw="--removed-body-scroll-bar-size";f();h();d();f();h();d();function JT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}f();h();d();var e7=pe(we());function t7(e,t){var r=(0,e7.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}f();h();d();function $w(e,t){return t7(t||null,function(r){return e.forEach(function(n){return JT(n,r)})})}f();h();d();f();h();d();f();h();d();function _U(e){return e}function bU(e,t){t===void 0&&(t=_U);var r=[],n=!1,o={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(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var g=a;a=[],g.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(g){a.push(g),c()},filter:function(g){return a=a.filter(g),r}}}};return o}function Bw(e){e===void 0&&(e={});var t=bU(null);return t.options=qn({async:!0,ssr:!1},e),t}f();h();d();var r7=pe(we()),n7=function(e){var t=e.sideCar,r=np(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 r7.createElement(n,qn({},r))};n7.isSideCarExport=!0;function Vw(e,t){return e.useMedium(t),n7}var M0=Bw();var Uw=function(){},Kc=Fr.forwardRef(function(e,t){var r=Fr.useRef(null),n=Fr.useState({onScrollCapture:Uw,onWheelCapture:Uw,onTouchMoveCapture:Uw}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,g=e.enabled,_=e.shards,k=e.sideCar,R=e.noIsolation,I=e.inert,V=e.allowPinchZoom,j=e.as,L=j===void 0?"div":j,D=np(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),B=k,K=$w([r,t]),X=qn(qn({},D),o);return Fr.createElement(Fr.Fragment,null,g&&Fr.createElement(B,{sideCar:M0,removeScrollBar:c,shards:_,noIsolation:R,inert:I,setCallbacks:i,allowPinchZoom:!!V,lockRef:r}),a?Fr.cloneElement(Fr.Children.only(s),qn(qn({},X),{ref:K})):Fr.createElement(L,qn({},X,{className:l,ref:K}),s))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kc.classNames={fullWidth:fs,zeroRight:cs};f();h();d();f();h();d();var Vt=pe(we());f();h();d();f();h();d();var C0=pe(we());f();h();d();f();h();d();f();h();d();var a7=pe(we());f();h();d();f();h();d();var o7;var i7=function(){if(o7)return o7;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i7();return t&&e.setAttribute("nonce",t),e}function EU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function MU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jw=function(){var e=0,t=null;return{add:function(r){e==0&&(t=SU())&&(EU(t,r),MU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var zw=function(){var e=jw();return function(t,r){a7.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Yc=function(){var e=zw(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};f();h();d();var CU={left:0,top:0,right:0,gap:0},Hw=function(e){return parseInt(e||"",10)||0},kU=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Hw(r),Hw(n),Hw(o)]},Ww=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CU;var t=kU(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 TU=Yc(),PU=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
33
- .`.concat(Lw,` {
34
- overflow: hidden `).concat(n,`;
35
- padding-right: `).concat(s,"px ").concat(n,`;
36
- }
37
- body {
38
- overflow: hidden `).concat(n,`;
39
- overscroll-behavior: contain;
40
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
41
- padding-left: `.concat(o,`px;
42
- padding-top: `).concat(i,`px;
43
- padding-right: `).concat(a,`px;
44
- margin-left:0;
45
- margin-top:0;
46
- margin-right: `).concat(s,"px ").concat(n,`;
47
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
48
- }
49
-
50
- .`).concat(cs,` {
51
- right: `).concat(s,"px ").concat(n,`;
52
- }
53
-
54
- .`).concat(fs,` {
55
- margin-right: `).concat(s,"px ").concat(n,`;
56
- }
57
-
58
- .`).concat(cs," .").concat(cs,` {
59
- right: 0 `).concat(n,`;
60
- }
61
-
62
- .`).concat(fs," .").concat(fs,` {
63
- margin-right: 0 `).concat(n,`;
64
- }
65
-
66
- body {
67
- `).concat(Fw,": ").concat(s,`px;
68
- }
69
- `)},qw=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=C0.useMemo(function(){return Ww(o)},[o]);return C0.createElement(TU,{styles:PU(i,!t,o,r?"":"!important")})};f();h();d();var Gw=!1;if(typeof window<"u")try{Zc=Object.defineProperty({},"passive",{get:function(){return Gw=!0,!0}}),window.addEventListener("test",Zc,Zc),window.removeEventListener("test",Zc,Zc)}catch(e){Gw=!1}var Zc,ds=Gw?{passive:!1}:!1;f();h();d();var RU=function(e){return e.tagName==="TEXTAREA"},s7=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!RU(e)&&r[t]==="visible")},AU=function(e){return s7(e,"overflowY")},IU=function(e){return s7(e,"overflowX")},Kw=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=l7(e,r);if(n){var o=u7(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},OU=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},NU=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},l7=function(e,t){return e==="v"?AU(t):IU(t)},u7=function(e,t){return e==="v"?OU(t):NU(t)},DU=function(e,t){return e==="h"&&t==="rtl"?-1:1},c7=function(e,t,r,n,o){var i=DU(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,g=a>0,_=0,k=0;do{var R=u7(e,s),I=R[0],V=R[1],j=R[2],L=V-j-i*I;(I||L)&&l7(e,s)&&(_+=L,k+=I),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(g&&(o&&_===0||!o&&a>_)||!g&&(o&&k===0||!o&&-a>k))&&(c=!0),c};var k0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},f7=function(e){return[e.deltaX,e.deltaY]},d7=function(e){return e&&"current"in e?e.current:e},LU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FU=function(e){return`
70
- .block-interactivity-`.concat(e,` {pointer-events: none;}
71
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
72
- `)},$U=0,ou=[];function h7(e){var t=Vt.useRef([]),r=Vt.useRef([0,0]),n=Vt.useRef(),o=Vt.useState($U++)[0],i=Vt.useState(function(){return Yc()})[0],a=Vt.useRef(e);Vt.useEffect(function(){a.current=e},[e]),Vt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var V=_E([e.lockRef.current],(e.shards||[]).map(d7),!0).filter(Boolean);return V.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),V.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=Vt.useCallback(function(V,j){if("touches"in V&&V.touches.length===2)return!a.current.allowPinchZoom;var L=k0(V),D=r.current,B="deltaX"in V?V.deltaX:D[0]-L[0],K="deltaY"in V?V.deltaY:D[1]-L[1],X,ue=V.target,ae=Math.abs(B)>Math.abs(K)?"h":"v";if("touches"in V&&ae==="h"&&ue.type==="range")return!1;var ve=Kw(ae,ue);if(!ve)return!0;if(ve?X=ae:(X=ae==="v"?"h":"v",ve=Kw(ae,ue)),!ve)return!1;if(!n.current&&"changedTouches"in V&&(B||K)&&(n.current=X),!X)return!0;var G=n.current||X;return c7(G,j,V,G==="h"?B:K,!0)},[]),l=Vt.useCallback(function(V){var j=V;if(!(!ou.length||ou[ou.length-1]!==i)){var L="deltaY"in j?f7(j):k0(j),D=t.current.filter(function(X){return X.name===j.type&&X.target===j.target&&LU(X.delta,L)})[0];if(D&&D.should){j.cancelable&&j.preventDefault();return}if(!D){var B=(a.current.shards||[]).map(d7).filter(Boolean).filter(function(X){return X.contains(j.target)}),K=B.length>0?s(j,B[0]):!a.current.noIsolation;K&&j.cancelable&&j.preventDefault()}}},[]),c=Vt.useCallback(function(V,j,L,D){var B={name:V,delta:j,target:L,should:D};t.current.push(B),setTimeout(function(){t.current=t.current.filter(function(K){return K!==B})},1)},[]),g=Vt.useCallback(function(V){r.current=k0(V),n.current=void 0},[]),_=Vt.useCallback(function(V){c(V.type,f7(V),V.target,s(V,e.lockRef.current))},[]),k=Vt.useCallback(function(V){c(V.type,k0(V),V.target,s(V,e.lockRef.current))},[]);Vt.useEffect(function(){return ou.push(i),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:k}),document.addEventListener("wheel",l,ds),document.addEventListener("touchmove",l,ds),document.addEventListener("touchstart",g,ds),function(){ou=ou.filter(function(V){return V!==i}),document.removeEventListener("wheel",l,ds),document.removeEventListener("touchmove",l,ds),document.removeEventListener("touchstart",g,ds)}},[]);var R=e.removeScrollBar,I=e.inert;return Vt.createElement(Vt.Fragment,null,I?Vt.createElement(i,{styles:FU(o)}):null,R?Vt.createElement(qw,{gapMode:"margin"}):null)}var p7=Vw(M0,h7);var m7=T0.forwardRef(function(e,t){return T0.createElement(Kc,qn({},e,{ref:t,sideCar:p7}))});m7.classNames=Kc.classNames;var Yw=m7;f();h();d();var BU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},iu=new WeakMap,P0=new WeakMap,R0={},Zw=0,g7=function(e){return e&&(e.host||g7(e.parentNode))},VU=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=g7(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)})},UU=function(e,t,r,n){var o=VU(t,Array.isArray(e)?e:[e]);R0[r]||(R0[r]=new WeakMap);var i=R0[r],a=[],s=new Set,l=new Set(o),c=function(_){!_||s.has(_)||(s.add(_),c(_.parentNode))};o.forEach(c);var g=function(_){!_||l.has(_)||Array.prototype.forEach.call(_.children,function(k){if(s.has(k))g(k);else{var R=k.getAttribute(n),I=R!==null&&R!=="false",V=(iu.get(k)||0)+1,j=(i.get(k)||0)+1;iu.set(k,V),i.set(k,j),a.push(k),V===1&&I&&P0.set(k,!0),j===1&&k.setAttribute(r,"true"),I||k.setAttribute(n,"true")}})};return g(t),s.clear(),Zw++,function(){a.forEach(function(_){var k=iu.get(_)-1,R=i.get(_)-1;iu.set(_,k),i.set(_,R),k||(P0.has(_)||_.removeAttribute(n),P0.delete(_)),R||_.removeAttribute(r)}),Zw--,Zw||(iu=new WeakMap,iu=new WeakMap,P0=new WeakMap,R0={})}},v7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||BU(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),UU(n,o,r,"aria-hidden")):function(){return null}};var y7="Dialog",[w7,Aue]=Hl(y7),[jU,si]=w7(y7),zU=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=(0,ot.useRef)(null),l=(0,ot.useRef)(null),[c=!1,g]=lp({prop:n,defaultProp:o,onChange:i});return(0,ot.createElement)(jU,{scope:t,triggerRef:s,contentRef:l,contentId:E0(),titleId:E0(),descriptionId:E0(),open:c,onOpenChange:g,onOpenToggle:(0,ot.useCallback)(()=>g(_=>!_),[g]),modal:a},r)};var x7="DialogPortal",[HU,_7]=w7(x7,{forceMount:void 0}),WU=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=si(x7,t);return(0,ot.createElement)(HU,{scope:t,forceMount:r},ot.Children.map(n,a=>(0,ot.createElement)(Xa,{present:r||i.open},(0,ot.createElement)(ap,{asChild:!0,container:o},a))))},Qw="DialogOverlay",qU=(0,ot.forwardRef)((e,t)=>{let r=_7(Qw,e.__scopeDialog),a=e,{forceMount:n=r.forceMount}=a,o=Ae(a,["forceMount"]),i=si(Qw,e.__scopeDialog);return i.modal?(0,ot.createElement)(Xa,{present:n||i.open},(0,ot.createElement)(GU,yt({},o,{ref:t}))):null}),GU=(0,ot.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Ae(i,["__scopeDialog"]),o=si(Qw,r);return(0,ot.createElement)(Yw,{as:zi,allowPinchZoom:!0,shards:[o.contentRef]},(0,ot.createElement)(fr.div,yt({"data-state":E7(o.open)},n,{ref:t,style:oe({pointerEvents:"auto"},n.style)})))}),au="DialogContent",KU=(0,ot.forwardRef)((e,t)=>{let r=_7(au,e.__scopeDialog),a=e,{forceMount:n=r.forceMount}=a,o=Ae(a,["forceMount"]),i=si(au,e.__scopeDialog);return(0,ot.createElement)(Xa,{present:n||i.open},i.modal?(0,ot.createElement)(YU,yt({},o,{ref:t})):(0,ot.createElement)(ZU,yt({},o,{ref:t})))}),YU=(0,ot.forwardRef)((e,t)=>{let r=si(au,e.__scopeDialog),n=(0,ot.useRef)(null),o=Nr(t,r.contentRef,n);return(0,ot.useEffect)(()=>{let i=n.current;if(i)return v7(i)},[]),(0,ot.createElement)(b7,yt({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:or(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:or(e.onPointerDownOutside,i=>{let a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:or(e.onFocusOutside,i=>i.preventDefault())}))}),ZU=(0,ot.forwardRef)((e,t)=>{let r=si(au,e.__scopeDialog),n=(0,ot.useRef)(!1);return(0,ot.createElement)(b7,yt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);let s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),b7=(0,ot.forwardRef)((e,t)=>{let g=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i}=g,a=Ae(g,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),s=si(au,r),l=(0,ot.useRef)(null),c=Nr(t,l);return XT(),(0,ot.createElement)(ot.Fragment,null,(0,ot.createElement)(KT,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,ot.createElement)(Ky,yt({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":E7(s.open)},a,{ref:c,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),S7="DialogTitle",QU=(0,ot.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Ae(i,["__scopeDialog"]),o=si(S7,r);return(0,ot.createElement)(fr.h2,yt({id:o.titleId},n,{ref:t}))});var XU="DialogClose",JU=(0,ot.forwardRef)((e,t)=>{let i=e,{__scopeDialog:r}=i,n=Ae(i,["__scopeDialog"]),o=si(XU,r);return(0,ot.createElement)(fr.button,yt({type:"button"},n,{ref:t,onClick:or(e.onClick,()=>o.onOpenChange(!1))}))});function E7(e){return e?"open":"closed"}var ej="DialogTitleWarning",[Iue,Oue]=EE(ej,{contentName:au,titleName:S7,docsSlug:"dialog"});var M7=zU;var C7=WU,k7=qU,T7=KU,P7=QU;var R7=JU;f();h();d();var rj=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 84 16",clipRule:"evenodd",fillRule:"evenodd"}),v.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"})),A7=rj;f();h();d();f();h();d();var SP=pe(L7(),1);f();h();d();f();h();d();var ex=pe(we());function A0(){return A0=Object.assign||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},A0.apply(this,arguments)}function uj(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var cj=["cdnSuffix","cdnUrl","countryCode","style","svg"],fj="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/4.1.4/flags/4x3/",dj="svg",hj=127397,pj=function(t){var r=t.cdnSuffix,n=r===void 0?dj:r,o=t.cdnUrl,i=o===void 0?fj:o,a=t.countryCode,s=t.style,l=t.svg,c=l===void 0?!1:l,g=uj(t,cj);if(typeof a!="string")return null;if(c){var _=""+i+a.toLowerCase()+"."+n;return(0,ex.createElement)("img",Object.assign({},g,{src:_,style:A0({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},s)}))}var k=a.toUpperCase().replace(/./g,function(R){return String.fromCodePoint(R.charCodeAt(0)+hj)});return(0,ex.createElement)("span",Object.assign({role:"img"},g,{style:A0({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},s)}),k)},tx=pj;var mx=pe(U7(),1);f();h();d();var mj=e=>v.createElement("svg",Se(oe({},e),{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6"}),v.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.846",d:"m1.004 1 4 4 4-4"})),j7=mj;f();h();d();var H7=pe(we(),1);f();h();d();var D0=pe(we(),1);f();h();d();var N0=typeof window>"u"||typeof document>"u";var ir=N0?D0.useEffect:D0.useLayoutEffect;f();h();d();var z7=pe(we(),1);function Zr(e){let t=(0,z7.useRef)(e);return ir(()=>{t.current=e},[e]),t}function rx(e,t){let[r,n]=(0,H7.useState)(e),o=Zr(e);return ir(()=>n(o.current),[o,n,...t]),r}f();h();d();var L0=pe(we(),1);f();h();d();f();h();d();function W7(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function co(){let e=[],t=[],r={enqueue(n){t.push(n)},addEventListener(n,o,i,a){return n.addEventListener(o,i,a),r.add(()=>n.removeEventListener(o,i,a))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return W7(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0){let[i]=e.splice(o,1);i()}}},dispose(){for(let n of e.splice(0))n()},async workQueue(){for(let n of t.splice(0))await n()}};return r}function ci(){let[e]=(0,L0.useState)(co);return(0,L0.useEffect)(()=>()=>e.dispose(),[e]),e}f();h();d();var q7=pe(we(),1);var Et=function(e){let t=Zr(e);return q7.default.useCallback((...r)=>t.current(...r),[t])};f();h();d();var ox=pe(we(),1);f();h();d();var Jc=pe(we(),1),nx={serverHandoffComplete:!1};function ef(){let[e,t]=(0,Jc.useState)(nx.serverHandoffComplete);return(0,Jc.useEffect)(()=>{e!==!0&&t(!0)},[e]),(0,Jc.useEffect)(()=>{nx.serverHandoffComplete===!1&&(nx.serverHandoffComplete=!0)},[]),e}var G7,gj=0;function K7(){return++gj}var tf=(G7=ox.default.useId)!=null?G7:function(){let e=ef(),[t,r]=ox.default.useState(e?K7:null);return ir(()=>{t===null&&r(K7())},[t]),t!=null?""+t:void 0};f();h();d();var nf=pe(we(),1);f();h();d();f();h();d();function Kt(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Kt),n}f();h();d();function F0(e){return N0?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Y7=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),vj=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(vj||{}),yj=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(yj||{}),wj=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(wj||{});var rf=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rf||{});function $0(e,t=0){var r;return e===((r=F0(e))==null?void 0:r.body)?!1:Kt(t,{[0](){return e.matches(Y7)},[1](){let n=e;for(;n!==null;){if(n.matches(Y7))return!0;n=n.parentElement}return!1}})}var fce=["textarea","input"].join(",");function Z7(e,t=r=>r){return e.slice().sort((r,n)=>{let o=t(r),i=t(n);if(o===null||i===null)return 0;let a=o.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}f();h();d();var Q7=pe(we(),1);function B0(e,t,r){let n=Zr(t);(0,Q7.useEffect)(()=>{function o(i){n.current(i)}return document.addEventListener(e,o,r),()=>document.removeEventListener(e,o,r)},[e,r])}function X7(e,t,r=!0){let n=(0,nf.useRef)(!1);(0,nf.useEffect)(()=>{requestAnimationFrame(()=>{n.current=r})},[r]);function o(a,s){if(!n.current||a.defaultPrevented)return;let l=function g(_){return typeof _=="function"?g(_()):Array.isArray(_)||_ instanceof Set?_:[_]}(e),c=s(a);if(c!==null&&!!c.getRootNode().contains(c)){for(let g of l){if(g===null)continue;let _=g instanceof HTMLElement?g:g.current;if(_!=null&&_.contains(c)||a.composed&&a.composedPath().includes(_))return}return!$0(c,rf.Loose)&&c.tabIndex!==-1&&a.preventDefault(),t(a,c)}}let i=(0,nf.useRef)(null);B0("mousedown",a=>{var s,l;n.current&&(i.current=((l=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:l[0])||a.target)},!0),B0("click",a=>{!i.current||(o(a,()=>i.current),i.current=null)},!0),B0("blur",a=>o(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}f();h();d();var eP=pe(we(),1);function J7(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function tP(e,t){let[r,n]=(0,eP.useState)(()=>J7(e));return ir(()=>{n(J7(e))},[e.type,e.as]),ir(()=>{r||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}f();h();d();var V0=pe(we(),1);var xj=Symbol();function fi(...e){let t=(0,V0.useRef)(e);(0,V0.useEffect)(()=>{t.current=e},[e]);let r=Et(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[xj]))?void 0:r}f();h();d();function _j(e){throw new Error("Unexpected object: "+e)}var Qr=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Qr||{});function rP(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),o=n!=null?n:-1,i=(()=>{switch(e.focus){case 0:return r.findIndex(a=>!t.resolveDisabled(a));case 1:{let a=r.slice().reverse().findIndex((s,l,c)=>o!==-1&&c.length-l-1>=o?!1:!t.resolveDisabled(s));return a===-1?a:r.length-1-a}case 2:return r.findIndex((a,s)=>s<=o?!1:!t.resolveDisabled(a));case 3:{let a=r.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return a===-1?a:r.length-1-a}case 4:return r.findIndex(a=>t.resolveId(a)===e.id);case 5:return null;default:_j(e)}})();return i===-1?n:i}f();h();d();var Kn=pe(we(),1);var su=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(su||{}),Ao=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ao||{});function fo({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:a}){let s=nP(t,e);if(i)return U0(s,r,n,a);let l=o!=null?o:0;if(l&2){let c=s,{static:_=!1}=c,k=Ae(c,["static"]);if(_)return U0(k,r,n,a)}if(l&1){let g=s,{unmount:_=!0}=g,k=Ae(g,["unmount"]);return Kt(_?0:1,{[0](){return null},[1](){return U0(Se(oe({},k),{hidden:!0,style:{display:"none"}}),r,n,a)}})}return U0(s,r,n,a)}function U0(e,t={},r,n){let _=ix(e,["unmount","static"]),{as:o=r,children:i,refName:a="ref"}=_,s=Ae(_,["as","children","refName"]),l=e.ref!==void 0?{[a]:e.ref}:{},c=typeof i=="function"?i(t):i;s.className&&typeof s.className=="function"&&(s.className=s.className(t));let g={};if(t){let k=!1,R=[];for(let[I,V]of Object.entries(t))typeof V=="boolean"&&(k=!0),V===!0&&R.push(I);k&&(g["data-headlessui-state"]=R.join(" "))}if(o===Kn.Fragment&&Object.keys(j0(s)).length>0){if(!(0,Kn.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(k=>` - ${k}`).join(`
73
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(k=>` - ${k}`).join(`
74
- `)].join(`
75
- `));return(0,Kn.cloneElement)(c,Object.assign({},nP(c.props,j0(ix(s,["ref"]))),g,l,bj(c.ref,l.ref)))}return(0,Kn.createElement)(o,Object.assign({},ix(s,["ref"]),o!==Kn.Fragment&&l,o!==Kn.Fragment&&g),c)}function bj(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function nP(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let i in o)i.startsWith("on")&&typeof o[i]=="function"?((t=n[i])!=null||(n[i]=[]),n[i].push(o[i])):r[i]=o[i];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](i,...a){let s=n[o];for(let l of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return r}function Yn(e){var t;return Object.assign((0,Kn.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function j0(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ix(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}f();h();d();function oP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let n=(t==null?void 0:t.getAttribute("disabled"))==="";return n&&Sj(r)?!1:n}function Sj(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}f();h();d();function ax(e={},t=null,r=[]){for(let[n,o]of Object.entries(e))aP(r,iP(t,n),o);return r}function iP(e,t){return e?e+"["+t+"]":t}function aP(e,t,r){if(Array.isArray(r))for(let[n,o]of r.entries())aP(e,iP(t,n.toString()),o);else r instanceof Date?e.push([t,r.toISOString()]):typeof r=="boolean"?e.push([t,r?"1":"0"]):typeof r=="string"?e.push([t,r]):typeof r=="number"?e.push([t,`${r}`]):r==null?e.push([t,""]):ax(r,t,e)}f();h();d();var Ej="div",sx=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(sx||{}),sP=Yn(function(e,t){let i=e,{features:r=1}=i,n=Ae(i,["features"]),o={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:oe({position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},(r&4)===4&&(r&2)!==2&&{display:"none"})};return fo({ourProps:o,theirProps:n,slot:{},defaultTag:Ej,name:"Hidden"})});f();h();d();var lu=pe(we(),1),lx=(0,lu.createContext)(null);lx.displayName="OpenClosedContext";var Io=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Io||{});function of(){return(0,lu.useContext)(lx)}function z0({value:e,children:t}){return lu.default.createElement(lx.Provider,{value:e},t)}f();h();d();var dr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(dr||{});f();h();d();var uu=pe(we(),1);function lP(e,t,r){let[n,o]=(0,uu.useState)(r),i=e!==void 0,a=(0,uu.useRef)(i),s=(0,uu.useRef)(!1),l=(0,uu.useRef)(!1);return i&&!a.current&&!s.current?(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:n,Et(c=>(i||o(c),t==null?void 0:t(c)))]}f();h();d();var cP=pe(we(),1);function uP(e){return[e.screenX,e.screenY]}function fP(){let e=(0,cP.useRef)([-1,-1]);return{wasMoved(t){let r=uP(t);return e.current[0]===r[0]&&e.current[1]===r[1]?!1:(e.current=r,!0)},update(t){e.current=uP(t)}}}f();h();d();var dP=pe(we(),1);function H0(){let e=(0,dP.useRef)(!1);return ir(()=>(e.current=!0,()=>{e.current=!1}),[]),e}f();h();d();var ht=pe(we(),1);var Mj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Mj||{}),Cj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Cj||{}),kj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(kj||{}),Tj=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Tj||{});function ux(e,t=r=>r){let r=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,n=Z7(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=r?n.indexOf(r):null;return o===-1&&(o=null),{options:n,activeOptionIndex:o}}var Pj={[1](e){return e.dataRef.current.disabled||e.listboxState===1?e:Se(oe({},e),{activeOptionIndex:null,listboxState:1})},[0](e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,n=e.options.findIndex(o=>r(o.dataRef.current.value));return n!==-1&&(t=n),Se(oe({},e),{listboxState:0,activeOptionIndex:t})},[2](e,t){var r;if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=ux(e),o=rP(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return Se(oe(oe({},e),n),{searchQuery:"",activeOptionIndex:o,activationTrigger:(r=t.trigger)!=null?r:1})},[3]:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=e.searchQuery!==""?0:1,n=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(a=>{var s;return!a.dataRef.current.disabled&&((s=a.dataRef.current.textValue)==null?void 0:s.startsWith(n))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?Se(oe({},e),{searchQuery:n}):Se(oe({},e),{searchQuery:n,activeOptionIndex:i,activationTrigger:1})},[4](e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:Se(oe({},e),{searchQuery:""})},[5]:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},n=ux(e,o=>[...o,r]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(r)),oe(oe({},e),n)},[6]:(e,t)=>{let r=ux(e,n=>{let o=n.findIndex(i=>i.id===t.id);return o!==-1&&n.splice(o,1),n});return Se(oe(oe({},e),r),{activationTrigger:1})},[7]:(e,t)=>Se(oe({},e),{labelId:t.id})},cx=(0,ht.createContext)(null);cx.displayName="ListboxActionsContext";function af(e){let t=(0,ht.useContext)(cx);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,af),r}return t}var fx=(0,ht.createContext)(null);fx.displayName="ListboxDataContext";function sf(e){let t=(0,ht.useContext)(fx);if(t===null){let r=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,sf),r}return t}function Rj(e,t){return Kt(t.type,Pj,e,t)}var Aj=ht.Fragment,Ij=Yn(function(e,t){let W=e,{value:r,defaultValue:n,name:o,onChange:i,by:a=(de,P)=>de===P,disabled:s=!1,horizontal:l=!1,multiple:c=!1}=W,g=Ae(W,["value","defaultValue","name","onChange","by","disabled","horizontal","multiple"]),_=l?"horizontal":"vertical",k=fi(t),[R=c?[]:void 0,I]=lP(r,i,n),[V,j]=(0,ht.useReducer)(Rj,{dataRef:(0,ht.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),L=(0,ht.useRef)({static:!1,hold:!1}),D=(0,ht.useRef)(null),B=(0,ht.useRef)(null),K=(0,ht.useRef)(null),X=Et(typeof a=="string"?(de,P)=>{let ee=a;return(de==null?void 0:de[ee])===(P==null?void 0:P[ee])}:a),ue=(0,ht.useCallback)(de=>Kt(ae.mode,{[1]:()=>R.some(P=>X(P,de)),[0]:()=>X(R,de)}),[R]),ae=(0,ht.useMemo)(()=>Se(oe({},V),{value:R,disabled:s,mode:c?1:0,orientation:_,compare:X,isSelected:ue,optionsPropsRef:L,labelRef:D,buttonRef:B,optionsRef:K}),[R,s,c,V]);ir(()=>{V.dataRef.current=ae},[ae]),X7([ae.buttonRef,ae.optionsRef],(de,P)=>{var ee;j({type:1}),$0(P,rf.Loose)||(de.preventDefault(),(ee=ae.buttonRef.current)==null||ee.focus())},ae.listboxState===0);let ve=(0,ht.useMemo)(()=>({open:ae.listboxState===0,disabled:s,value:R}),[ae,s,R]),G=Et(de=>{let P=ae.options.find(ee=>ee.id===de);!P||y(P.dataRef.current.value)}),w=Et(()=>{if(ae.activeOptionIndex!==null){let{dataRef:de,id:P}=ae.options[ae.activeOptionIndex];y(de.current.value),j({type:2,focus:Qr.Specific,id:P})}}),T=Et(()=>j({type:0})),A=Et(()=>j({type:1})),b=Et((de,P,ee)=>de===Qr.Specific?j({type:2,focus:Qr.Specific,id:P,trigger:ee}):j({type:2,focus:de,trigger:ee})),u=Et((de,P)=>(j({type:5,id:de,dataRef:P}),()=>j({type:6,id:de}))),m=Et(de=>(j({type:7,id:de}),()=>j({type:7,id:null}))),y=Et(de=>Kt(ae.mode,{[0](){return I==null?void 0:I(de)},[1](){let P=ae.value.slice(),ee=P.findIndex(ie=>X(ie,de));return ee===-1?P.push(de):P.splice(ee,1),I==null?void 0:I(P)}})),x=Et(de=>j({type:3,value:de})),p=Et(()=>j({type:4})),E=(0,ht.useMemo)(()=>({onChange:y,registerOption:u,registerLabel:m,goToOption:b,closeListbox:A,openListbox:T,selectActiveOption:w,selectOption:G,search:x,clearSearch:p}),[]),q={ref:k},U=(0,ht.useRef)(null),S=ci();return(0,ht.useEffect)(()=>{!U.current||n!==void 0&&S.addEventListener(U.current,"reset",()=>{y(n)})},[U,y]),ht.default.createElement(cx.Provider,{value:E},ht.default.createElement(fx.Provider,{value:ae},ht.default.createElement(z0,{value:Kt(ae.listboxState,{[0]:Io.Open,[1]:Io.Closed})},o!=null&&R!=null&&ax({[o]:R}).map(([de,P],ee)=>ht.default.createElement(sP,oe({features:sx.Hidden,ref:ee===0?ie=>{var ce;U.current=(ce=ie==null?void 0:ie.closest("form"))!=null?ce:null}:void 0},j0({key:de,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:de,value:P})))),fo({ourProps:q,theirProps:g,slot:ve,defaultTag:Aj,name:"Listbox"}))))}),Oj="button",Nj=Yn(function(e,t){var r;let n=tf(),j=e,{id:o=`headlessui-listbox-button-${n}`}=j,i=Ae(j,["id"]),a=sf("Listbox.Button"),s=af("Listbox.Button"),l=fi(a.buttonRef,t),c=ci(),g=Et(L=>{switch(L.key){case dr.Space:case dr.Enter:case dr.ArrowDown:L.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(Qr.First)});break;case dr.ArrowUp:L.preventDefault(),s.openListbox(),c.nextFrame(()=>{a.value||s.goToOption(Qr.Last)});break}}),_=Et(L=>{switch(L.key){case dr.Space:L.preventDefault();break}}),k=Et(L=>{if(oP(L.currentTarget))return L.preventDefault();a.listboxState===0?(s.closeListbox(),c.nextFrame(()=>{var D;return(D=a.buttonRef.current)==null?void 0:D.focus({preventScroll:!0})})):(L.preventDefault(),s.openListbox())}),R=rx(()=>{if(a.labelId)return[a.labelId,o].join(" ")},[a.labelId,o]),I=(0,ht.useMemo)(()=>({open:a.listboxState===0,disabled:a.disabled,value:a.value}),[a]),V={ref:l,id:o,type:tP(e,a.buttonRef),"aria-haspopup":!0,"aria-controls":(r=a.optionsRef.current)==null?void 0:r.id,"aria-expanded":a.disabled?void 0:a.listboxState===0,"aria-labelledby":R,disabled:a.disabled,onKeyDown:g,onKeyUp:_,onClick:k};return fo({ourProps:V,theirProps:i,slot:I,defaultTag:Oj,name:"Listbox.Button"})}),Dj="label",Lj=Yn(function(e,t){let r=tf(),g=e,{id:n=`headlessui-listbox-label-${r}`}=g,o=Ae(g,["id"]),i=sf("Listbox.Label"),a=af("Listbox.Label"),s=fi(i.labelRef,t);ir(()=>a.registerLabel(n),[n]);let l=Et(()=>{var _;return(_=i.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})}),c=(0,ht.useMemo)(()=>({open:i.listboxState===0,disabled:i.disabled}),[i]);return fo({ourProps:{ref:s,id:n,onClick:l},theirProps:o,slot:c,defaultTag:Dj,name:"Listbox.Label"})}),Fj="ul",$j=su.RenderStrategy|su.Static,Bj=Yn(function(e,t){var r;let n=tf(),L=e,{id:o=`headlessui-listbox-options-${n}`}=L,i=Ae(L,["id"]),a=sf("Listbox.Options"),s=af("Listbox.Options"),l=fi(a.optionsRef,t),c=ci(),g=ci(),_=of(),k=(()=>_!==null?_===Io.Open:a.listboxState===0)();(0,ht.useEffect)(()=>{var D;let B=a.optionsRef.current;!B||a.listboxState===0&&B!==((D=F0(B))==null?void 0:D.activeElement)&&B.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let R=Et(D=>{switch(g.dispose(),D.key){case dr.Space:if(a.searchQuery!=="")return D.preventDefault(),D.stopPropagation(),s.search(D.key);case dr.Enter:if(D.preventDefault(),D.stopPropagation(),a.activeOptionIndex!==null){let{dataRef:B}=a.options[a.activeOptionIndex];s.onChange(B.current.value)}a.mode===0&&(s.closeListbox(),co().nextFrame(()=>{var B;return(B=a.buttonRef.current)==null?void 0:B.focus({preventScroll:!0})}));break;case Kt(a.orientation,{vertical:dr.ArrowDown,horizontal:dr.ArrowRight}):return D.preventDefault(),D.stopPropagation(),s.goToOption(Qr.Next);case Kt(a.orientation,{vertical:dr.ArrowUp,horizontal:dr.ArrowLeft}):return D.preventDefault(),D.stopPropagation(),s.goToOption(Qr.Previous);case dr.Home:case dr.PageUp:return D.preventDefault(),D.stopPropagation(),s.goToOption(Qr.First);case dr.End:case dr.PageDown:return D.preventDefault(),D.stopPropagation(),s.goToOption(Qr.Last);case dr.Escape:return D.preventDefault(),D.stopPropagation(),s.closeListbox(),c.nextFrame(()=>{var B;return(B=a.buttonRef.current)==null?void 0:B.focus({preventScroll:!0})});case dr.Tab:D.preventDefault(),D.stopPropagation();break;default:D.key.length===1&&(s.search(D.key),g.setTimeout(()=>s.clearSearch(),350));break}}),I=rx(()=>{var D,B,K;return(K=(D=a.labelRef.current)==null?void 0:D.id)!=null?K:(B=a.buttonRef.current)==null?void 0:B.id},[a.labelRef.current,a.buttonRef.current]),V=(0,ht.useMemo)(()=>({open:a.listboxState===0}),[a]),j={"aria-activedescendant":a.activeOptionIndex===null||(r=a.options[a.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":a.mode===1?!0:void 0,"aria-labelledby":I,"aria-orientation":a.orientation,id:o,onKeyDown:R,role:"listbox",tabIndex:0,ref:l};return fo({ourProps:j,theirProps:i,slot:V,defaultTag:Fj,features:$j,visible:k,name:"Listbox.Options"})}),Vj="li",Uj=Yn(function(e,t){let r=tf(),X=e,{id:n=`headlessui-listbox-option-${r}`,disabled:o=!1,value:i}=X,a=Ae(X,["id","disabled","value"]),s=sf("Listbox.Option"),l=af("Listbox.Option"),c=s.activeOptionIndex!==null?s.options[s.activeOptionIndex].id===n:!1,g=s.isSelected(i),_=(0,ht.useRef)(null),k=Zr({disabled:o,value:i,domRef:_,get textValue(){var ue,ae;return(ae=(ue=_.current)==null?void 0:ue.textContent)==null?void 0:ae.toLowerCase()}}),R=fi(t,_);ir(()=>{if(s.listboxState!==0||!c||s.activationTrigger===0)return;let ue=co();return ue.requestAnimationFrame(()=>{var ae,ve;(ve=(ae=_.current)==null?void 0:ae.scrollIntoView)==null||ve.call(ae,{block:"nearest"})}),ue.dispose},[_,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),ir(()=>l.registerOption(n,k),[k,n]);let I=Et(ue=>{if(o)return ue.preventDefault();l.onChange(i),s.mode===0&&(l.closeListbox(),co().nextFrame(()=>{var ae;return(ae=s.buttonRef.current)==null?void 0:ae.focus({preventScroll:!0})}))}),V=Et(()=>{if(o)return l.goToOption(Qr.Nothing);l.goToOption(Qr.Specific,n)}),j=fP(),L=Et(ue=>j.update(ue)),D=Et(ue=>{!j.wasMoved(ue)||o||c||l.goToOption(Qr.Specific,n,0)}),B=Et(ue=>{!j.wasMoved(ue)||o||!c||l.goToOption(Qr.Nothing)}),K=(0,ht.useMemo)(()=>({active:c,selected:g,disabled:o}),[c,g,o]);return fo({ourProps:{id:n,ref:R,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":g,disabled:void 0,onClick:I,onFocus:V,onPointerEnter:L,onMouseEnter:L,onPointerMove:D,onMouseMove:D,onPointerLeave:B,onMouseLeave:B},theirProps:a,slot:K,defaultTag:Vj,name:"Listbox.Option"})}),cu=Object.assign(Ij,{Button:Nj,Label:Lj,Options:Bj,Option:Uj});f();h();d();var et=pe(we(),1);f();h();d();f();h();d();f();h();d();function hP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function dx(e,...t){e&&t.length>0&&e.classList.add(...t)}function hx(e,...t){e&&t.length>0&&e.classList.remove(...t)}function jj(e,t){let r=co();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,a]=[n,o].map(s=>{let[l=0]=s.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,g)=>g-c);return l});if(i+a!==0){let s=r.addEventListener(e,"transitionend",l=>{l.target===l.currentTarget&&(t(),s())})}else t();return r.add(()=>t()),r.dispose}function pP(e,t,r,n){let o=r?"enter":"leave",i=co(),a=n!==void 0?hP(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Kt(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Kt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Kt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return hx(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),dx(e,...s,...c),i.nextFrame(()=>{hx(e,...c),dx(e,...l),jj(e,()=>(hx(e,...s),dx(e,...t.entered),a()))}),i.dispose}function mP({container:e,direction:t,classes:r,onStart:n,onStop:o}){let i=H0(),a=ci(),s=Zr(t);ir(()=>{let l=co();a.add(l.dispose);let c=e.current;if(!!c&&s.current!=="idle"&&!!i.current)return l.dispose(),n.current(s.current),l.add(pP(c,r.current,s.current==="enter",()=>{l.dispose(),o.current(s.current)})),l.dispose},[t])}f();h();d();function gP(...e){return e.filter(Boolean).join(" ")}function ps(e=""){return e.split(" ").filter(t=>t.trim().length>1)}var W0=(0,et.createContext)(null);W0.displayName="TransitionContext";var zj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zj||{});function Hj(){let e=(0,et.useContext)(W0);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Wj(){let e=(0,et.useContext)(q0);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}var q0=(0,et.createContext)(null);q0.displayName="NestingContext";function G0(e){return"children"in e?G0(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function yP(e,t){let r=Zr(e),n=(0,et.useRef)([]),o=H0(),i=ci(),a=Et((R,I=Ao.Hidden)=>{let V=n.current.findIndex(({el:j})=>j===R);V!==-1&&(Kt(I,{[Ao.Unmount](){n.current.splice(V,1)},[Ao.Hidden](){n.current[V].state="hidden"}}),i.microTask(()=>{var j;!G0(n)&&o.current&&((j=r.current)==null||j.call(r))}))}),s=Et(R=>{let I=n.current.find(({el:V})=>V===R);return I?I.state!=="visible"&&(I.state="visible"):n.current.push({el:R,state:"visible"}),()=>a(R,Ao.Unmount)}),l=(0,et.useRef)([]),c=(0,et.useRef)(Promise.resolve()),g=(0,et.useRef)({enter:[],leave:[],idle:[]}),_=Et((R,I,V)=>{l.current.splice(0),t&&(t.chains.current[I]=t.chains.current[I].filter(([j])=>j!==R)),t==null||t.chains.current[I].push([R,new Promise(j=>{l.current.push(j)})]),t==null||t.chains.current[I].push([R,new Promise(j=>{Promise.all(g.current[I].map(([L,D])=>D)).then(()=>j())})]),I==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>V(I)):V(I)}),k=Et((R,I,V)=>{Promise.all(g.current[I].splice(0).map(([j,L])=>L)).then(()=>{var j;(j=l.current.shift())==null||j()}).then(()=>V(I))});return(0,et.useMemo)(()=>({children:n,register:s,unregister:a,onStart:_,onStop:k,wait:c,chains:g}),[s,a,n,_,k,g,c])}function qj(){}var Gj=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function vP(e){var t;let r={};for(let n of Gj)r[n]=(t=e[n])!=null?t:qj;return r}function Kj(e){let t=(0,et.useRef)(vP(e));return(0,et.useEffect)(()=>{t.current=vP(e)},[e]),t}var Yj="div",wP=su.RenderStrategy,xP=Yn(function(e,t){let q=e,{beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i,enter:a,enterFrom:s,enterTo:l,entered:c,leave:g,leaveFrom:_,leaveTo:k}=q,R=Ae(q,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),I=(0,et.useRef)(null),V=fi(I,t),j=R.unmount?Ao.Unmount:Ao.Hidden,{show:L,appear:D,initial:B}=Hj(),[K,X]=(0,et.useState)(L?"visible":"hidden"),ue=Wj(),{register:ae,unregister:ve}=ue,G=(0,et.useRef)(null);(0,et.useEffect)(()=>ae(I),[ae,I]),(0,et.useEffect)(()=>{if(j===Ao.Hidden&&!!I.current){if(L&&K!=="visible"){X("visible");return}return Kt(K,{hidden:()=>ve(I),visible:()=>ae(I)})}},[K,I,ae,ve,L,j]);let w=Zr({enter:ps(a),enterFrom:ps(s),enterTo:ps(l),entered:ps(c),leave:ps(g),leaveFrom:ps(_),leaveTo:ps(k)}),T=Kj({beforeEnter:r,afterEnter:n,beforeLeave:o,afterLeave:i}),A=ef();(0,et.useEffect)(()=>{if(A&&K==="visible"&&I.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[I,K,A]);let b=B&&!D,u=(()=>!A||b||G.current===L?"idle":L?"enter":"leave")(),m=Et(U=>Kt(U,{enter:()=>T.current.beforeEnter(),leave:()=>T.current.beforeLeave(),idle:()=>{}})),y=Et(U=>Kt(U,{enter:()=>T.current.afterEnter(),leave:()=>T.current.afterLeave(),idle:()=>{}})),x=yP(()=>{X("hidden"),ve(I)},ue);mP({container:I,classes:w,direction:u,onStart:Zr(U=>{x.onStart(I,U,m)}),onStop:Zr(U=>{x.onStop(I,U,y),U==="leave"&&!G0(x)&&(X("hidden"),ve(I))})}),(0,et.useEffect)(()=>{!b||(j===Ao.Hidden?G.current=null:G.current=L)},[L,b,K]);let p=R,E={ref:V};return D&&L&&(typeof window>"u"||typeof document>"u")&&(p=Se(oe({},p),{className:gP(R.className,...w.current.enter,...w.current.enterFrom)})),et.default.createElement(q0.Provider,{value:x},et.default.createElement(z0,{value:Kt(K,{visible:Io.Open,hidden:Io.Closed})},fo({ourProps:E,theirProps:p,defaultTag:Yj,features:wP,visible:K==="visible",name:"Transition.Child"})))}),px=Yn(function(e,t){let L=e,{show:r,appear:n=!1,unmount:o}=L,i=Ae(L,["show","appear","unmount"]),a=(0,et.useRef)(null),s=fi(a,t);ef();let l=of();if(r===void 0&&l!==null&&(r=Kt(l,{[Io.Open]:!0,[Io.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,g]=(0,et.useState)(r?"visible":"hidden"),_=yP(()=>{g("hidden")}),[k,R]=(0,et.useState)(!0),I=(0,et.useRef)([r]);ir(()=>{k!==!1&&I.current[I.current.length-1]!==r&&(I.current.push(r),R(!1))},[I,r]);let V=(0,et.useMemo)(()=>({show:r,appear:n,initial:k}),[r,n,k]);(0,et.useEffect)(()=>{if(r)g("visible");else if(!G0(_))g("hidden");else{let D=a.current;if(!D)return;let B=D.getBoundingClientRect();B.x===0&&B.y===0&&B.width===0&&B.height===0&&g("hidden")}},[r,_]);let j={unmount:o};return et.default.createElement(q0.Provider,{value:_},et.default.createElement(W0.Provider,{value:V},fo({ourProps:Se(oe({},j),{as:et.Fragment,children:et.default.createElement(xP,oe(oe({ref:s},j),i))}),theirProps:{},defaultTag:et.Fragment,features:wP,visible:c==="visible",name:"Transition"})))}),Zj=Yn(function(e,t){let r=(0,et.useContext)(W0)!==null,n=of()!==null;return et.default.createElement(et.default.Fragment,null,!r&&n?et.default.createElement(px,oe({ref:t},e)):et.default.createElement(xP,oe({ref:t},e)))}),_P=Object.assign(px,{Child:Zj,Root:px});var ho=pe(we(),1),Qj=({value:e,onChange:t})=>{let[r,n]=(0,ho.useState)("us"),o=(0,ho.useRef)(null);(0,ho.useEffect)(()=>{let a=o.current;if(!a)return;let s=0,l=_=>{a.scrollTop+=_.deltaY},c=_=>{s=a.scrollTop+_.touches[0].pageY},g=_=>{a.scrollTop=s-_.touches[0].pageY};return a.addEventListener("wheel",l),a.addEventListener("touchstart",c),a.addEventListener("touchmove",g),()=>{a.removeEventListener("wheel",l),a.removeEventListener("touchstart",c),a.removeEventListener("touchmove",g)}},[]);let i=(0,ho.useCallback)(()=>{let a=o.current;if(!a)return;let s=a.getBoundingClientRect();a.style.maxHeight=`${window.innerHeight-s.top-12}px`},[]);return(0,ho.useEffect)(()=>{t(mx.allCountries.find(a=>a.iso2===r).dialCode)},[r,t]),v.createElement(cu,{value:r,onChange:n},({open:a})=>v.createElement(v.Fragment,null,v.createElement(cu.Label,{className:"sr-only block text-sm font-medium text-gray-700"},"Country Code"),v.createElement(cu.Button,{className:"relative z-20 flex flex-none items-center"},v.createElement(tx,{svg:!0,countryCode:r,style:{width:24,height:24,flexShrink:0,objectFit:"cover",borderRadius:"50%"}}),v.createElement("p",{className:"ml-2.5 mr-1 dark:text-white"},"+",e),v.createElement(j7,{className:"text-9eafc0 h-1.5 w-auto shrink-0 basis-4","aria-hidden":"true"})),v.createElement(_P,{show:a,as:ho.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",beforeEnter:i,unmount:!1},v.createElement(cu.Options,{ref:o,className:"dark:bg-29343f absolute inset-x-0 top-full z-10 mt-1.5 max-h-[var(--max-h,_0px)] w-full min-w-[calc(100vw_-_48px)] overflow-hidden rounded-2xl bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-none sm:text-sm md:max-h-96 md:min-w-[20rem]",unmount:!1},v.createElement("div",{className:"overflow-y-scroll px-2 py-1"},mx.allCountries.map(s=>v.createElement(cu.Option,{key:s.iso2,className:({selected:l,active:c})=>jt("dark:text-white",l?"bg-0d151d dark:bg-white text-white dark:text-0d151d font-medium":c?"bg-0d151d/5 dark:bg-ece8fb/10":"text-gray-900 dark:text-white","relative flex items-center justify-between px-2 py-2 w-full rounded-xl text-sm focus:bg-gray-100 dark:focus:bg-ece8fb/25","focus:outline-none select-none"),value:s.iso2},({selected:l})=>v.createElement(v.Fragment,null,v.createElement("div",{className:"flex items-center"},v.createElement(tx,{svg:!0,countryCode:s.iso2,style:{width:24,height:24,flexShrink:0}}),v.createElement("p",{className:"mx-2 whitespace-pre-wrap"},s.name),l?v.createElement("span",{className:"text-white"},v.createElement(hp,{className:"h-auto w-3","aria-hidden":"true"})):null),v.createElement("span",{className:jt("font-medium",l?"text-white dark:text-0d151d":"text-0d151d dark:text-white")},"+",s.dialCode)))))))))},bP=Qj;var di=pe(we(),1),Xj=({setPhoneNumber:e})=>({setFullPhone:e}),Jj=({disabled:e,onSubmit:t})=>{let{setFullPhone:r}=Lt(Xj),[n,o]=(0,di.useState)("1"),[i,a]=(0,di.useState)("");return(0,di.useEffect)(()=>{let s=(0,SP.phone)(`+${n} ${i}`);if(!s.isValid){r("");return}r(s.phoneNumber)},[n,i,r]),v.createElement(di.Fragment,null,v.createElement("label",{htmlFor:"phone-number",className:"sr-only block text-sm font-medium text-gray-700"},"Phone Number"),v.createElement("div",{className:"dark:bg-29343f focus-within:border-0d151d relative mt-1 flex rounded-2xl border-2 border-transparent bg-gray-100 py-2 px-3 shadow-sm transition-colors focus-within:bg-white dark:focus-within:border-white dark:focus-within:bg-transparent"},v.createElement("div",{className:"flex items-center"},v.createElement("label",{htmlFor:"country",className:"sr-only"},"Country"),v.createElement(bP,{value:n,onChange:o})),v.createElement("input",{type:"tel",id:"phone-number",name:"phone-number",value:i,placeholder:"Phone number",onChange:s=>a(s.target.value),className:"placeholder:text-9eafc0 block w-full rounded-md border-transparent bg-transparent pl-6 focus:border-transparent focus:ring-transparent dark:text-white sm:text-sm",disabled:e,onKeyDown:s=>s.key==="Enter"&&void(t==null?void 0:t())})))},EP=(0,di.memo)(Jj);f();h();d();var ez="https://developer.worldcoin.org/api/v1";async function K0(e,t,r,n){let o=await kP("/phone/request",{phone_number:e,action_id:t,channel:r,ph_distinct_id:n});if(!o.ok)throw await o.json()}async function MP(e,t,r,n){let o=await kP("/phone/verify",{phone_number:e,code:t,action_id:r,ph_distinct_id:n});if(!o.ok)throw await o.json();return o.json()}function Y0(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")&&Object.prototype.hasOwnProperty.call(e,"detail")}function CP(e){return typeof e=="object"&&e!==null&&Object.prototype.hasOwnProperty.call(e,"code")}var kP=(e,t)=>fetch(`${ez}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});var rz=({processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,setStage:o,methods:i,setProcessing:a,setErrorState:s,copy:l})=>({copy:l,processing:e,errorState:t,phoneNumber:r,stringifiedActionId:n,showAbout:i.length==1,hasWorldID:i.includes("orb"),useWorldID:()=>o("WORLD_ID"),onSubmit:async()=>{try{a(!0),s(null),await K0(r,n,"sms",bs()),K2(),a(!1),o("ENTER_CODE")}catch(c){console.error(c),a(!1);let g;Y0(c)?(g=Object.values(Cm).includes(c.code)&&c.detail||void 0,c.code!=="timeout"&&o("ERROR")):o("ERROR"),s({code:"PHONE_OTP_REQUEST_ERROR",message:g})}},onResetErrorState:()=>{s(null)}}),nz=()=>{let{copy:e,phoneNumber:t,processing:r,showAbout:n,onSubmit:o,errorState:i,onResetErrorState:a,hasWorldID:s,useWorldID:l}=Lt(rz);return v.createElement("div",{className:"-mt-6 space-y-6"},v.createElement(ZE,{className:"absolute -mt-1 flex gap-4 rounded-md bg-[#fecaca] p-3 shadow-lg",open:!!i,onOpenChange:a,asChild:!0},v.createElement(kt.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},transition:{duration:.3}},v.createElement(QE,{className:"text-xs font-medium text-red-600"},(i==null?void 0:i.message)||"Unable to send code. Please try again."),v.createElement(XE,{altText:"Close"},v.createElement(el,{className:"h-4 w-4"})))),v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(e==null?void 0:e.heading)||fn.heading),v.createElement("p",{className:"text-70868f mt-3 text-center md:mt-2"},(e==null?void 0:e.subheading)||fn.subheading)),v.createElement("div",{className:"mt-2 space-y-2"},v.createElement(EP,{disabled:r,onSubmit:o}),v.createElement("p",{className:"text-9eafc0 dark:text-9eafc0 text-center text-xs"},"We'll call or text to confirm your number. No data is stored.")),v.createElement("div",{className:"mt-4 flex justify-center"},v.createElement(kt.button,{animate:{opacity:t?1:.4},type:"button",whileTap:{scale:t?.95:1},whileHover:{scale:t?1.05:1},transition:{layout:{duration:.15}},onClick:()=>void o(),layoutId:"phone-button",disabled:!t||r,className:jt("flex w-full items-center justify-center px-8 py-4 border border-transparent font-medium rounded-xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500","disabled:cursor-not-allowed disabled:bg-d3dfea dark:disabled:bg-29343f")},v.createElement(kt.span,{transition:{layout:{duration:.15}},layoutId:"phone-text"},"Continue"))),n&&v.createElement(nu,null),s&&v.createElement("div",{className:"hidden space-y-3 md:block"},v.createElement("div",{className:"flex items-center justify-between space-x-6"},v.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"}),v.createElement("p",{className:"text-9eafc0 dark:text-596673 text-xs"},"or"),v.createElement("div",{className:"bg-f2f5f9 dark:bg-29343f h-px flex-1"})),v.createElement("div",{className:"flex items-center justify-center"},v.createElement("button",{onClick:l,className:"flex items-center space-x-2"},v.createElement(na,null),v.createElement("p",{className:"text-0d151d text-sm font-medium dark:text-white"},"Verify with World ID")))))},TP=nz;f();h();d();var J0=pe(we(),1);f();h();d();var Q0=pe(we(),1);f();h();d();var po=pe(we()),Ct=pe(zv());function RP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function AP(e,t,r){return t&&PP(e.prototype,t),r&&PP(e,r),e}function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gx(e,t)}function Z0(e){return Z0=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Z0(e)}function gx(e,t){return gx=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},gx(e,t)}function oz(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function iz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function az(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:iz(e)}function OP(e){var t=oz();return function(){var n=Z0(e),o;if(t){var i=Z0(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return az(this,o)}}function sz(e){return lz(e)||uz(e)||cz(e)||fz()}function lz(e){if(Array.isArray(e))return vx(e)}function uz(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cz(e,t){if(!!e){if(typeof e=="string")return vx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vx(e,t)}}function vx(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}function fz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
76
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=String(e);if(t===0)return r;var n=r.match(/(.*?)([0-9]+)(.*)/),o=n?n[1]:"",i=n?n[3]:"",a=n?n[2]:r,s=a.length>=t?a:(sz(Array(t)).map(function(){return"0"}).join("")+a).slice(t*-1);return"".concat(o).concat(s).concat(i)}var NP={daysInHours:!1,zeroPadTime:2};function dz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.now,n=r===void 0?Date.now:r,o=t.precision,i=o===void 0?0:o,a=t.controlled,s=t.offsetTime,l=s===void 0?0:s,c=t.overtime,g;typeof e=="string"?g=new Date(e).getTime():e instanceof Date?g=e.getTime():g=e,a||(g+=l);var _=a?g:g-n(),k=Math.min(20,Math.max(0,i)),R=Math.round(parseFloat(((c?_:Math.max(0,_))/1e3).toFixed(k))*1e3),I=Math.abs(R)/1e3;return{total:R,days:Math.floor(I/(3600*24)),hours:Math.floor(I/3600%24),minutes:Math.floor(I/60%60),seconds:Math.floor(I%60),milliseconds:Number((I%1*1e3).toFixed()),completed:R<=0}}function hz(e,t){var r=e.days,n=e.hours,o=e.minutes,i=e.seconds,a=Object.assign(Object.assign({},NP),t),s=a.daysInHours,l=a.zeroPadTime,c=a.zeroPadDays,g=c===void 0?l:c,_=Math.min(2,l),k=s?lf(n+r*24,l):lf(n,_);return{days:s?"":lf(r,g),hours:k,minutes:lf(o,_),seconds:lf(i,_)}}var DP=function(e){IP(r,e);var t=OP(r);function r(){var n;return RP(this,r),n=t.apply(this,arguments),n.state={count:n.props.count||3},n.startCountdown=function(){n.interval=window.setInterval(function(){var o=n.state.count-1;o===0?(n.stopCountdown(),n.props.onComplete&&n.props.onComplete()):n.setState(function(i){return{count:i.count-1}})},1e3)},n.stopCountdown=function(){clearInterval(n.interval)},n.addTime=function(o){n.stopCountdown(),n.setState(function(i){return{count:i.count+o}},n.startCountdown)},n}return AP(r,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,po.cloneElement)(this.props.children,{count:this.state.count}):null}}]),r}(po.Component);DP.propTypes={count:Ct.number,children:Ct.element,onComplete:Ct.func};var yx=function(e){IP(r,e);var t=OP(r);function r(n){var o;if(RP(this,r),o=t.call(this,n),o.mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=(0,po.createRef)(),o.tick=function(){var a=o.calcTimeDelta(),s=a.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(a,void 0,s)},o.start=function(){if(!o.isStarted()){var a=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=a?o.calcOffsetStartTimestamp()-a:0;var s=o.calcTimeDelta();o.setTimeDeltaState(s,"STARTED",o.props.onStart),!o.props.controlled&&(!s.completed||o.props.overtime)&&(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},n.date){var i=o.calcTimeDelta();o.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return AP(r,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(o){this.legacyMode||this.props.date!==o.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var o=this.props,i=o.date,a=o.now,s=o.precision,l=o.controlled,c=o.overtime;return dz(i,{now:a,precision:s,controlled:l,offsetTime:this.offsetTime,overtime:c})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(o){this.legacyCountdownRef.current.addTime(o)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(o){return this.state.status===o}},{key:"setTimeDeltaState",value:function(o,i,a){var s=this;if(!!this.mounted){var l=o.completed&&!this.state.timeDelta.completed,c=o.completed&&i==="STARTED";l&&!this.props.overtime&&this.clearTimer();var g=function(){a&&a(s.state.timeDelta),s.props.onComplete&&(l||c)&&s.props.onComplete(o,c)};return this.setState(function(_){var k=i||_.status;return o.completed&&!s.props.overtime?k="COMPLETED":!i&&k==="COMPLETED"&&(k="STOPPED"),{timeDelta:o,status:k}},g)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var o=this.props,i=o.daysInHours,a=o.zeroPadTime,s=o.zeroPadDays,l=this.state.timeDelta;return Object.assign(Object.assign({},l),{api:this.getApi(),props:this.props,formatted:hz(l,{daysInHours:i,zeroPadTime:a,zeroPadDays:s})})}},{key:"render",value:function(){if(this.legacyMode){var o=this.props,i=o.count,a=o.children,s=o.onComplete;return(0,po.createElement)(DP,{ref:this.legacyCountdownRef,count:i,onComplete:s},a)}var l=this.props,c=l.className,g=l.overtime,_=l.children,k=l.renderer,R=this.getRenderProps();if(k)return k(R);if(_&&this.state.timeDelta.completed&&!g)return(0,po.cloneElement)(_,{countdown:R});var I=R.formatted,V=I.days,j=I.hours,L=I.minutes,D=I.seconds;return(0,po.createElement)("span",{className:c},R.total<0?"-":"",V,V?":":"",j,":",L,":",D)}}]),r}(po.Component);yx.defaultProps=Object.assign(Object.assign({},NP),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});yx.propTypes={date:(0,Ct.oneOfType)([(0,Ct.instanceOf)(Date),Ct.string,Ct.number]),daysInHours:Ct.bool,zeroPadTime:Ct.number,zeroPadDays:Ct.number,controlled:Ct.bool,intervalDelay:Ct.number,precision:Ct.number,autoStart:Ct.bool,overtime:Ct.bool,className:Ct.string,children:Ct.element,renderer:Ct.func,now:Ct.func,onMount:Ct.func,onStart:Ct.func,onPause:Ct.func,onStop:Ct.func,onTick:Ct.func,onComplete:Ct.func};var LP=yx;var FP=59*1e3,pz=({minutes:e,seconds:t,completed:r})=>{if(!r)return v.createElement("span",null,"in ",e,":",t<10?`0${t}`:t)},mz=()=>{let{phoneNumber:e,stringifiedActionId:t,setProcessing:r,setStage:n,setErrorState:o}=Lt(),[i,a]=(0,Q0.useState)(new Date().getTime()+FP),s=async l=>{a(new Date().getTime()+FP);try{r(!0),await K0(e,t,l,bs()),Y2(l),r(!1)}catch(c){r(!1),a(void 0),Y0(c)&&c.code!=="server_error"?(o({code:"GENERIC_ERROR"}),console.error(c)):n("ERROR")}};return v.createElement(v.Fragment,null,v.createElement("button",{type:"button",disabled:!!i,className:"font-medium text-indigo-500 disabled:cursor-wait disabled:text-gray-900 dark:disabled:text-white",onClick:()=>void s("sms")},"Resend"," ",i&&v.createElement(LP,{onComplete:()=>a(void 0),date:i,renderer:pz}))," ","or"," ",v.createElement("button",{type:"button",className:"font-medium text-indigo-500 disabled:cursor-wait disabled:text-gray-900 dark:disabled:text-white",disabled:!!i,onClick:()=>void s("call")},"Call me"))},$P=(0,Q0.memo)(mz);f();h();d();var ar=pe(we(),1),X0=e=>new Array(6).fill("").map((t,r)=>e[r]||""),gz=({code:e,setCode:t})=>({code:e,setCode:t}),vz=({submitRef:e,disabled:t})=>{let{code:r,setCode:n}=Lt(gz),o=(0,ar.useMemo)(()=>new Array(6).fill(null).map(()=>(0,ar.createRef)()),[]),[i,a]=(0,ar.useState)(X0("")),[s,l]=(0,ar.useState)(-1);(0,ar.useEffect)(()=>{r||a(X0(""))},[r]);let c=(0,ar.useCallback)(L=>{requestAnimationFrame(()=>{var D;(D=o[L].current)==null||D.select()})},[o]),g=(0,ar.useCallback)((L,D)=>{let B=[...i];B[D]=L,a(B);let K=B.join("");n(""),K.length===6&&n(K)},[n,i]),_=(0,ar.useCallback)(L=>{requestAnimationFrame(()=>{var D,B;(B=(D=o[L])==null?void 0:D.current)==null||B.focus()})},[o]),k=(0,ar.useCallback)(L=>{requestAnimationFrame(()=>{var D;(D=o[L].current)==null||D.blur()})},[o]),R=L=>{var D;!((D=o[L])!=null&&D.current)||(l(L),c(L))},I=(0,ar.useCallback)((L,D)=>{let B=L.target.value.replace(i[D],"");if(!/^\d/.test(B))return c(D);if(B.length>1)return a(X0(L.target.value)),L.target.value.length!==6?void 0:(n(L.target.value),k(D));g(B,D),D===5?requestAnimationFrame(()=>{var K;(K=e.current)==null||K.focus()}):_(D+1)},[k,e,_,c,n,g,i]),V=(0,ar.useCallback)((L,D)=>{if(L.key==="Backspace"||L.key==="Delete")return L.preventDefault(),g("",s),_(D-1);if(L.key===i[D]){if(D===5)return k(D);_(D+1)}},[_,k,s,g,i]),j=(0,ar.useCallback)((L,D)=>{L.preventDefault();let K=L.clipboardData.getData("text").slice(0,6);if(!!/^\d/.test(K)){if(a(X0(K)),K.length!==6)return _(K.length);n(K),k(D)}},[k,_,n]);return(0,ar.useEffect)(()=>{_(0)},[_,o]),v.createElement("fieldset",{className:"flex items-center justify-center space-x-3"},v.createElement("legend",{className:"sr-only"},"Enter your SMS code"),o.map((L,D)=>v.createElement("input",{ref:L,key:D,maxLength:1,type:"number",pattern:"[0-9]*",value:i[D],inputMode:"numeric",autoComplete:"one-time-code",autoFocus:D===0,onFocus:()=>R(D),onPaste:B=>j(B,D),onChange:B=>I(B,D),onKeyDown:B=>V(B,D),className:jt("w-10 xs:w-12 aspect-[6/7] border-0 outline-0 rounded-xl text-center caret-transparent text-29343f dark:text-white","bg-gray-100 dark:bg-29343f focus:bg-transparent","ring ring-transparent focus:ring-5b52f3"),disabled:t})))},BP=(0,ar.memo)(vz);var yz=({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,setStage:o,setProcessing:i,setCode:a,copy:s,handleVerify:l,setErrorState:c,errorState:g})=>({processing:e,phoneNumber:t,code:r,stringifiedActionId:n,errorState:g,setCode:a,setErrorState:c,copy:s,onSubmit:async()=>{try{c(null),i(!0);let _=await MP(t,r,n,bs()),{nullifier_hash:k}=_,R=Ae(_,["nullifier_hash"]);l({signal_type:"phone",nullifier_hash:k,proof_payload:R})}catch(k){i(!1),a(""),CP(k)?(c({code:"INVALID_CODE"}),console.error(k)):o("ERROR")}},useWorldID:()=>o("WORLD_ID")}),wz=()=>{let e=(0,J0.useRef)(null),{phoneNumber:t,processing:r,code:n,onSubmit:o,useWorldID:i,errorState:a}=Lt(yz),s=(0,J0.useMemo)(()=>{if(!r&&a)return{x:[0,-16,16,-8,8,0]}},[r,a]);return v.createElement("div",{className:"space-y-6"},v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},"Enter your 6-digit code to complete the verification."),v.createElement("p",{className:"text-70868f mt-2 text-center"},"Code has been sent to ",v.createElement("span",{className:"font-medium"},t))),v.createElement("form",{className:"mt-2 space-y-2"},v.createElement(kt.div,{animate:s,transition:{type:"spring",stiffness:30}},v.createElement(BP,{submitRef:e,disabled:r})),v.createElement("p",{className:"text-70868f text-center text-xs"},a?v.createElement("span",{className:"text-red-400"},"That code is invalid. Please try again."):"Did not receive a code?"," ",v.createElement($P,null))),v.createElement("div",{className:"flex items-center justify-center space-x-1"},v.createElement("div",{className:"flex items-center space-x-2"},v.createElement(na,null),v.createElement("p",{className:"text-70868f font-medium"},"I have World ID")),v.createElement("span",{className:"font-medium text-gray-400"},"\u2022"),v.createElement("button",{type:"button",onClick:i,className:"bg-gradient-to-r from-[#FF6848] to-[#4940E0] bg-clip-text font-medium text-transparent"},"Verify human")),v.createElement("div",{className:"mt-4 flex justify-center"},v.createElement(kt.button,{layoutId:"phone-button",type:"button",whileTap:{scale:t?.95:1},whileHover:{scale:t?1.05:1},animate:{opacity:n?1:.4},transition:{layout:{duration:.15}},onClick:()=>void o(),disabled:!n||r,ref:e,className:jt("flex w-full items-center justify-center px-8 py-4 border border-transparent font-medium rounded-xl shadow-sm","bg-0d151d dark:bg-white text-white dark:text-0d151d","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-0d151d","disabled:cursor-not-allowed disabled:bg-d3dfea dark:disabled:bg-29343f")},v.createElement(kt.span,{transition:{layout:{duration:.15}},layoutId:"phone-text"},"Continue"))))},VP=wz;f();h();d();var xz=e=>v.createElement("svg",Se(oe({},e),{fill:"none",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),v.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 15.75L3 12m0 0l3.75-3.75M3 12h18"})),UP=xz;f();h();d();var _z=({setStage:e,methods:t,copy:r})=>({copy:r,methods:t,setStage:e}),bz=()=>{let{copy:e,setStage:t,methods:r}=Lt(_z);return v.createElement("div",{className:"-mt-6 space-y-6"},v.createElement("div",null,v.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},(e==null?void 0:e.heading)||fn.heading),v.createElement("p",{className:"text-70868f mt-3 text-center md:mt-2"},(e==null?void 0:e.subheading)||fn.subheading)),v.createElement("div",{className:"space-y-3"},r.map((n,o)=>v.createElement(Sz,{primary:o==0,key:n,method:n,setStage:t}))),r.includes("orb")&&v.createElement("div",{className:"mt-4 flex justify-center"},v.createElement("p",{className:"text-70868f text-sm"},"Don't have your World ID yet?"," ",v.createElement("a",{className:"text-4940e0 font-medium",target:"_blank",href:"https://worldcoin.org/download",rel:"noreferrer"},"Download Now"))),v.createElement(nu,{className:"mt-8"}))},Sz=({method:e,primary:t,setStage:r})=>v.createElement(kt.button,{whileTap:{scale:.95},whileHover:{scale:1.05},transition:{layout:{duration:.15}},layoutId:e=="orb"?"worldid-button":"phone-button",onClick:()=>r(e=="orb"?"WORLD_ID":"ENTER_PHONE"),className:jt("flex w-full space-x-2 items-center px-4 py-4 border border-transparent font-medium rounded-2xl shadow-sm",t?"bg-0d151d dark:bg-white text-white dark:text-0d151d":"bg-d3dfea/30 dark:bg-29343f text-0d151d dark:text-white")},e=="orb"?v.createElement(na,{className:"h-5 w-5 text-gray-400"}):v.createElement(S0,{className:"h-5 w-5 text-gray-400"}),v.createElement(kt.span,{className:"flex-1 text-center",transition:{layout:{duration:.15}},layoutId:e=="orb"?"worldid-text":"phone-text"},e=="orb"?"Verify with World ID":"Verify with Phone Number")),jP=bz;f();h();d();var zP=pe(we(),1);var Ez=()=>v.createElement("div",{className:"space-y-6"},v.createElement("div",{className:"flex justify-center"},v.createElement(ji,{className:"h-24 w-24"})),v.createElement("div",{className:"text-70868f mt-4"},"Transmitting verification to host app. Please wait...")),HP=(0,zP.memo)(Ez);var Cz=({copy:e,open:t,processing:r,onOpenChange:n,stage:o,setStage:i,theme:a,computed:s,setOptions:l})=>({copy:e,stage:o,theme:a,setStage:i,processing:r,setOptions:l,isOpen:t,onOpenChange:n,canGoBack:s.canGoBack(o),defaultStage:s.getDefaultStage()}),kz=({children:e,actionId:t,theme:r,methods:n,signal:o,handleVerify:i,onSuccess:a,autoClose:s,copy:l})=>{let{isOpen:c,onOpenChange:g,processing:_,stage:k,setStage:R,canGoBack:I,defaultStage:V,setOptions:j,copy:L,theme:D}=Lt(Cz),B=Js();(0,em.useEffect)(()=>{j({actionId:t,signal:o,methods:n,onSuccess:a,handleVerify:i,autoClose:s,copy:l,theme:r},"props")},[t,o,n,a,r,i,s,l,j]);let K=(0,em.useMemo)(()=>{switch(k){case"SELECT_METHOD":return jP;case"ENTER_PHONE":return TP;case"WORLD_ID":return VT;case"ENTER_CODE":return VP;case"SUCCESS":return eM;case"ERROR":return AS;case"ABOUT":return bE;case"PRIVACY":return zT;case"HOST_APP_VERIFICATION":return HP;default:throw new Error("Invalid IDKitStage.")}},[k]);return v.createElement(M7,{open:c,onOpenChange:g},e==null?void 0:e({open:()=>g(!0)}),v.createElement(C7,{forceMount:!0},v.createElement(WP.Fragment,null,v.createElement(Vl,null,c&&v.createElement(TS.div,{mode:"open",id:"idkit-widget"},v.createElement(PS,null),v.createElement("div",{id:"modal",className:jt(D=="dark"&&"dark","fixed z-10 font-sans")},v.createElement(k7,{asChild:!0},v.createElement(kt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/50 backdrop-blur-lg"})),v.createElement("div",{className:"fixed inset-0 z-10 overflow-y-hidden md:overflow-y-auto"},v.createElement("div",{className:"flex min-h-full items-end justify-center text-center md:items-center md:p-4"},v.createElement(T7,{asChild:!0},v.createElement(kt.div,{layout:B=="mobile"?"position":!0,exit:B=="mobile"?"initMob":"init",initial:B=="mobile"?"initMob":"init",animate:B=="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"},v.createElement(KE,null,v.createElement(YE,{className:"flex justify-center"}),v.createElement("div",{className:"mx-6 mb-12 flex items-center justify-between"},v.createElement("button",{onClick:()=>R(V),disabled:!I,className:jt(!I&&"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")},v.createElement(UP,{className:"w-4"})),v.createElement(P7,{className:"dark:text-d3dfea font-medium text-gray-900"},k!="ABOUT"&&((L==null?void 0:L.title)||fn.title)),v.createElement(R7,{className:"dark:bg-d3dfea/15 flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 dark:text-white"},v.createElement(el,{className:"h-5 w-5"}))),v.createElement("div",{className:"relative"},v.createElement(kt.div,{className:"mx-6 mb-6",layout:"position",animate:{visibility:_?"hidden":"visible"},transition:{layout:{duration:.15}}},v.createElement(K,null)),v.createElement(Vl,null,_&&v.createElement(kt.div,{className:"absolute inset-0 flex items-center justify-center pb-10",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},v.createElement(ji,{className:"h-24 w-24"})))),v.createElement("div",{className:"flex items-center justify-between py-3 px-5 md:rounded-b-3xl"},v.createElement("p",{className:"text-9eafc0 flex items-center gap-1 text-sm"},v.createElement("span",null,"Verified with"),v.createElement("a",{href:"https://id.worldcoin.org",target:"_blank",rel:"noreferrer"},v.createElement(A7,{className:"text-0d151d h-4 dark:text-white"}))),k!="PRIVACY"?v.createElement("button",{onClick:()=>R("PRIVACY"),className:"text-9eafc0 text-sm hover:underline"},"Privacy"):v.createElement("a",{target:"_blank",href:"https://id.worldcoin.org/privacy",className:"text-0d151d dark:text-9eafc0 text-sm",rel:"noreferrer"},"Learn More \u2192")))))))))))))},qP=kz;var KP=(0,GP.memo)(qP);var wx,fu=!1,Tz=e=>{if(fu)throw new Error("IDKit is already initialized");if(!e.actionId)throw new Error("You must provide your Action ID");let t=()=>{try{if(!fu){let r=document.createElement("div");document.body.appendChild(r),wx=(0,YP.createRoot)(r),wx.render(v.createElement(KP,oe({},e))),q2(e.enableTelemetry),fu=!0}}catch(r){console.error("Error while rendering Widget",r)}};/complete|interactive|loaded/.test(document.readyState)?t():document.addEventListener("DOMContentLoaded",t,!1)},Pz=e=>{if(!fu)throw new Error("IDKit is not initialized");Lt.getState().setOptions(e,"props")},Rz=()=>new Promise((e,t)=>{if(!fu)return t("IDKitWidget is not initialized");Lt.getState().addSuccessCallback(e,"manual"),Lt.setState({open:!0})}),Az=()=>{console.warn("Advanced method intended for internal use! Avoid calling this method directly."),wx.unmount(),fu=!1,Lt.destroy()};return rR(Iz);})();
77
- /*!
78
- * The buffer module from node.js, for the browser.
79
- *
80
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
81
- * @license MIT
82
- */
83
- /*! *****************************************************************************
84
- Copyright (c) Microsoft Corporation.
85
-
86
- Permission to use, copy, modify, and/or distribute this software for any
87
- purpose with or without fee is hereby granted.
88
-
89
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
90
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
91
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
93
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
94
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
95
- PERFORMANCE OF THIS SOFTWARE.
96
- ***************************************************************************** */
97
- /**
98
- * @license React
99
- * react-dom-server-legacy.browser.production.min.js
100
- *
101
- * Copyright (c) Facebook, Inc. and its affiliates.
102
- *
103
- * This source code is licensed under the MIT license found in the
104
- * LICENSE file in the root directory of this source tree.
105
- */
106
- /**
107
- * @license React
108
- * react-dom-server.browser.production.min.js
109
- *
110
- * Copyright (c) Facebook, Inc. and its affiliates.
111
- *
112
- * This source code is licensed under the MIT license found in the
113
- * LICENSE file in the root directory of this source tree.
114
- */
115
- /**
116
- * @license React
117
- * react-dom.production.min.js
118
- *
119
- * Copyright (c) Facebook, Inc. and its affiliates.
120
- *
121
- * This source code is licensed under the MIT license found in the
122
- * LICENSE file in the root directory of this source tree.
123
- */
124
- /**
125
- * @license React
126
- * react.production.min.js
127
- *
128
- * Copyright (c) Facebook, Inc. and its affiliates.
129
- *
130
- * This source code is licensed under the MIT license found in the
131
- * LICENSE file in the root directory of this source tree.
132
- */
133
- /**
134
- * @license React
135
- * scheduler.production.min.js
136
- *
137
- * Copyright (c) Facebook, Inc. and its affiliates.
138
- *
139
- * This source code is licensed under the MIT license found in the
140
- * LICENSE file in the root directory of this source tree.
141
- */
142
- /**
143
- * @license React
144
- * use-sync-external-store-shim.production.min.js
145
- *
146
- * Copyright (c) Facebook, Inc. and its affiliates.
147
- *
148
- * This source code is licensed under the MIT license found in the
149
- * LICENSE file in the root directory of this source tree.
150
- */
151
- /**
152
- * @license React
153
- * use-sync-external-store-shim/with-selector.production.min.js
154
- *
155
- * Copyright (c) Facebook, Inc. and its affiliates.
156
- *
157
- * This source code is licensed under the MIT license found in the
158
- * LICENSE file in the root directory of this source tree.
159
- */
160
- /**
161
- * [js-sha3]{@link https://github.com/emn178/js-sha3}
162
- *
163
- * @version 0.8.0
164
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
165
- * @copyright Chen, Yi-Cyuan 2015-2018
166
- * @license MIT
167
- */