@worldcoin/idkit 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/idkit-js.js +2 -2
- package/build/index.js +2 -2
- package/build/index.js.map +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/idkit-js.js
CHANGED
|
@@ -19,7 +19,7 @@ Error generating stack: `+i.message+`
|
|
|
19
19
|
`),MF=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,lC=new Map;function Po(e){var t=lC.get(e);if(t===void 0){if(!MF.test(e))throw Error(ut(65,e));t=Oe("<"+e),lC.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
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(sC),null;case"menuitem":e.push(Po("menuitem"));for(var C in r)if(sn.call(r,C)&&(i=r[C],i!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(ut(400));default:bn(e,n,C,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
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(sC),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":PC(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:TC(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 uC(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"),RC=Symbol.for("react.portal"),AC=Symbol.for("react.fragment"),IC=Symbol.for("react.strict_mode"),OC=Symbol.for("react.profiler"),NC=Symbol.for("react.provider"),DC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),FC=Symbol.for("react.suspense"),$C=Symbol.for("react.suspense_list"),BC=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"),cC=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 AC:return"Fragment";case RC:return"Portal";case OC:return"Profiler";case IC:return"StrictMode";case FC:return"Suspense";case $C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DC:return(e.displayName||"Context")+".Consumer";case NC:return(e._context.displayName||"Context")+".Provider";case LC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BC: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 VC={};function fC(e,t){if(e=e.contextTypes,!e)return VC;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 UC(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&UC(e)}function jC(e){var t=e.parent;t!==null&&jC(t),e.context._currentValue=e.value}function zC(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(ut(402));e.depth===t.depth?Up(e,t):zC(e,t)}function HC(e,t){var r=t.parent;if(r===null)throw Error(ut(402));e.depth===r.depth?Up(e,r):HC(e,r),t.context._currentValue=t.value}function Lp(e){var t=ns;t!==e&&(t===null?jC(e):e===null?UC(t):t.depth===e.depth?Up(t,e):t.depth>e.depth?zC(t,e):HC(t,e),ns=e)}var dC={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 hC(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=dC,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&&dC.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 pC(){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=pC()):(Dc=!0,Ot=Np):Ot.next===null?(Dc=!1,Ot=Ot.next=pC()):(Dc=!0,Ot=Ot.next),Ot}function N1(){I1=oi=null,Fp=!1,Np=null,jp=0,Ot=Ki=null}function WC(e,t){return typeof t=="function"?t(e):t}function mC(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===WC?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 gC(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 vC={readContext:function(e){return e._currentValue},useContext:function(e){return rs(),e._currentValue},useMemo:gC,useReducer:mC,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 mC(WC,e)},useInsertionEffect:Pp,useLayoutEffect:function(){},useCallback:function(e,t){return gC(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=MC.__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,VC,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&&KC(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,kC(e.destination,t)):(e.status=1,e.fatalError=t)}function yC(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 wC(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 xC(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=fC(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),hC(i,r,n,o),wC(e,t,i,r)}else{i=fC(r,t.legacyContext),o=yC(e,t,r,n,i);var a=$c!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)hC(o,r,n,i),wC(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 IC:case OC:case AC:Mn(e,t,n.children);return;case $C:Mn(e,t,n.children);return;case E$:throw Error(ut(343));case FC: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 LC:if(n=yC(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 BC:r=r.type,n=xC(r,n),C1(e,t,r,n,o);return;case NC: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 DC:n=n.children,n=n(r._currentValue),Mn(e,t,n);return;case A1:o=r._init,r=o(r._payload),n=xC(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 RC:throw Error(ut(257));case A1:var n=r._init;r=n(r._payload),Mn(e,t,r);return}if(S1(r)){_C(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=cC&&r[cC]||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);_C(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=nC(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=nC(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function _C(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,GC(this,t,e)}function qC(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 qC(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 GC(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 KC(e){if(e.status!==2){var t=ns,r=b1.current;b1.current=vC;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,GC(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,C=Bc(s,_);if(g===null?Bp(s,_):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=C,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===vC&&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,uC(t,e.responseState,n),Rp(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),uC(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 bC(e,t,r){return l$(t,e.responseState,r.formatContext,r.id),zp(e,t,r),u$(t,r.formatContext)}function SC(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)YC(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 YC(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 bC(e,t,n)}return bC(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 C=e.completedBoundaries;for(i=0;i<C.length;i++)if(!SC(e,t,C[i])){e.destination=null,i++,C.splice(0,i);return}C.splice(0,i),JM(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(!YC(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(!SC(e,t,L[i])){e.destination=null,i++,L.splice(0,i);return}L.splice(0,i)}finally{JM(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function EC(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return qC(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,kC(_,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=_;try{L1(s,_)}catch(C){Bc(s,C),Bp(s,C)}}},cancel:function(){EC(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(){EC(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}KC(s)})};F1.version="18.2.0"});var XC=Qe(os=>{"use strict";d();p();h();var Yl,QC;Yl=XM(),QC=ZC();os.version=Yl.version;os.renderToString=Yl.renderToString;os.renderToStaticMarkup=Yl.renderToStaticMarkup;os.renderToNodeStream=Yl.renderToNodeStream;os.renderToStaticNodeStream=Yl.renderToStaticNodeStream;os.renderToReadableStream=QC.renderToReadableStream});var uk=Qe(Nt=>{"use strict";d();p();h();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 z$(){return Zl("document")}Nt.getDocumentOrThrow=z$;function H$(){return is("document")}Nt.getDocument=H$;function W$(){return Zl("navigator")}Nt.getNavigatorOrThrow=W$;function q$(){return is("navigator")}Nt.getNavigator=q$;function G$(){return Zl("location")}Nt.getLocationOrThrow=G$;function K$(){return is("location")}Nt.getLocation=K$;function Y$(){return Zl("crypto")}Nt.getCryptoOrThrow=Y$;function Z$(){return is("crypto")}Nt.getCrypto=Z$;function Q$(){return Zl("localStorage")}Nt.getLocalStorageOrThrow=Q$;function X$(){return is("localStorage")}Nt.getLocalStorage=X$});var fk=Qe(Hp=>{"use strict";d();p();h();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.getWindowMetadata=void 0;var ck=uk();function J$(){let e,t;try{e=ck.getDocumentOrThrow(),t=ck.getLocationOrThrow()}catch(_){return null}function r(){let _=e.getElementsByTagName("link"),C=[];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}C.push(L)}else if(j.indexOf("//")===0){let L=t.protocol+j;C.push(L)}else C.push(j)}}return C}function n(..._){let C=e.getElementsByTagName("meta");for(let R=0;R<C.length;R++){let I=C[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=J$});var dk=Qe(Dt=>{"use strict";d();p();h();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 eB(){return Ql("document")}Dt.getDocumentOrThrow=eB;function tB(){return as("document")}Dt.getDocument=tB;function rB(){return Ql("navigator")}Dt.getNavigatorOrThrow=rB;function nB(){return as("navigator")}Dt.getNavigator=nB;function oB(){return Ql("location")}Dt.getLocationOrThrow=oB;function iB(){return as("location")}Dt.getLocation=iB;function aB(){return Ql("crypto")}Dt.getCryptoOrThrow=aB;function sB(){return as("crypto")}Dt.getCrypto=sB;function lB(){return Ql("localStorage")}Dt.getLocalStorageOrThrow=lB;function uB(){return as("localStorage")}Dt.getLocalStorage=uB});var kk=Qe((Ck,H1)=>{d();p();h();(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,f=0,E=A;E<x;E+=b)f=s(w,E,E+b,T),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(y!==0){var q=1;for(f=s(w,E,w.length,T),E=0;E<y;E++)q*=T;this.imuln(q),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},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 f=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[f-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,f,E=this.clone();if(m){for(f=0;!E.isZero();f++)x=E.andln(255),E.iushrn(8),y[f]=x;for(;f<u;f++)y[f]=0}else{for(f=0;f<u-b;f++)y[f]=0;for(f=0;!E.isZero();f++)x=E.andln(255),E.iushrn(8),y[u-f-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 C(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 f=1;f<A;f++){for(var E=x>>>26,q=x&67108863,U=Math.min(f,w.length-1),S=Math.max(0,f-G.length+1);S<=U;S++){var W=f-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[f]=q|0,x=E|0}return x!==0?T.words[f]=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,f,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),f=Math.imul(U,he),f=f+Math.imul(S,me)|0,E=Math.imul(S,he);var at=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(at>>>26)|0,at&=67108863,x=Math.imul(de,me),f=Math.imul(de,he),f=f+Math.imul(P,me)|0,E=Math.imul(P,he),x=x+Math.imul(U,ke)|0,f=f+Math.imul(U,De)|0,f=f+Math.imul(S,ke)|0,E=E+Math.imul(S,De)|0;var sr=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(sr>>>26)|0,sr&=67108863,x=Math.imul(ie,me),f=Math.imul(ie,he),f=f+Math.imul(ce,me)|0,E=Math.imul(ce,he),x=x+Math.imul(de,ke)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(P,ke)|0,E=E+Math.imul(P,De)|0,x=x+Math.imul(U,Ie)|0,f=f+Math.imul(U,_e)|0,f=f+Math.imul(S,Ie)|0,E=E+Math.imul(S,_e)|0;var st=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(Z,me),f=Math.imul(Z,he),f=f+Math.imul(J,me)|0,E=Math.imul(J,he),x=x+Math.imul(ie,ke)|0,f=f+Math.imul(ie,De)|0,f=f+Math.imul(ce,ke)|0,E=E+Math.imul(ce,De)|0,x=x+Math.imul(de,Ie)|0,f=f+Math.imul(de,_e)|0,f=f+Math.imul(P,Ie)|0,E=E+Math.imul(P,_e)|0,x=x+Math.imul(U,ye)|0,f=f+Math.imul(U,Re)|0,f=f+Math.imul(S,ye)|0,E=E+Math.imul(S,Re)|0;var dt=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(fe,me),f=Math.imul(fe,he),f=f+Math.imul(te,me)|0,E=Math.imul(te,he),x=x+Math.imul(Z,ke)|0,f=f+Math.imul(Z,De)|0,f=f+Math.imul(J,ke)|0,E=E+Math.imul(J,De)|0,x=x+Math.imul(ie,Ie)|0,f=f+Math.imul(ie,_e)|0,f=f+Math.imul(ce,Ie)|0,E=E+Math.imul(ce,_e)|0,x=x+Math.imul(de,ye)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(P,ye)|0,E=E+Math.imul(P,Re)|0,x=x+Math.imul(U,Ke)|0,f=f+Math.imul(U,Fe)|0,f=f+Math.imul(S,Ke)|0,E=E+Math.imul(S,Fe)|0;var kn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(kn>>>26)|0,kn&=67108863,x=Math.imul(Ve,me),f=Math.imul(Ve,he),f=f+Math.imul(Me,me)|0,E=Math.imul(Me,he),x=x+Math.imul(fe,ke)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(te,ke)|0,E=E+Math.imul(te,De)|0,x=x+Math.imul(Z,Ie)|0,f=f+Math.imul(Z,_e)|0,f=f+Math.imul(J,Ie)|0,E=E+Math.imul(J,_e)|0,x=x+Math.imul(ie,ye)|0,f=f+Math.imul(ie,Re)|0,f=f+Math.imul(ce,ye)|0,E=E+Math.imul(ce,Re)|0,x=x+Math.imul(de,Ke)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(P,Ke)|0,E=E+Math.imul(P,Fe)|0,x=x+Math.imul(U,be)|0,f=f+Math.imul(U,Ue)|0,f=f+Math.imul(S,be)|0,E=E+Math.imul(S,Ue)|0;var Tn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,x=Math.imul(We,me),f=Math.imul(We,he),f=f+Math.imul(Y,me)|0,E=Math.imul(Y,he),x=x+Math.imul(Ve,ke)|0,f=f+Math.imul(Ve,De)|0,f=f+Math.imul(Me,ke)|0,E=E+Math.imul(Me,De)|0,x=x+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,_e)|0,f=f+Math.imul(te,Ie)|0,E=E+Math.imul(te,_e)|0,x=x+Math.imul(Z,ye)|0,f=f+Math.imul(Z,Re)|0,f=f+Math.imul(J,ye)|0,E=E+Math.imul(J,Re)|0,x=x+Math.imul(ie,Ke)|0,f=f+Math.imul(ie,Fe)|0,f=f+Math.imul(ce,Ke)|0,E=E+Math.imul(ce,Fe)|0,x=x+Math.imul(de,be)|0,f=f+Math.imul(de,Ue)|0,f=f+Math.imul(P,be)|0,E=E+Math.imul(P,Ue)|0,x=x+Math.imul(U,it)|0,f=f+Math.imul(U,Ye)|0,f=f+Math.imul(S,it)|0,E=E+Math.imul(S,Ye)|0;var Pn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(F,me),f=Math.imul(F,he),f=f+Math.imul(N,me)|0,E=Math.imul(N,he),x=x+Math.imul(We,ke)|0,f=f+Math.imul(We,De)|0,f=f+Math.imul(Y,ke)|0,E=E+Math.imul(Y,De)|0,x=x+Math.imul(Ve,Ie)|0,f=f+Math.imul(Ve,_e)|0,f=f+Math.imul(Me,Ie)|0,E=E+Math.imul(Me,_e)|0,x=x+Math.imul(fe,ye)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(te,ye)|0,E=E+Math.imul(te,Re)|0,x=x+Math.imul(Z,Ke)|0,f=f+Math.imul(Z,Fe)|0,f=f+Math.imul(J,Ke)|0,E=E+Math.imul(J,Fe)|0,x=x+Math.imul(ie,be)|0,f=f+Math.imul(ie,Ue)|0,f=f+Math.imul(ce,be)|0,E=E+Math.imul(ce,Ue)|0,x=x+Math.imul(de,it)|0,f=f+Math.imul(de,Ye)|0,f=f+Math.imul(P,it)|0,E=E+Math.imul(P,Ye)|0,x=x+Math.imul(U,pt)|0,f=f+Math.imul(U,qe)|0,f=f+Math.imul(S,pt)|0,E=E+Math.imul(S,qe)|0;var Rn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,x=Math.imul(z,me),f=Math.imul(z,he),f=f+Math.imul(H,me)|0,E=Math.imul(H,he),x=x+Math.imul(F,ke)|0,f=f+Math.imul(F,De)|0,f=f+Math.imul(N,ke)|0,E=E+Math.imul(N,De)|0,x=x+Math.imul(We,Ie)|0,f=f+Math.imul(We,_e)|0,f=f+Math.imul(Y,Ie)|0,E=E+Math.imul(Y,_e)|0,x=x+Math.imul(Ve,ye)|0,f=f+Math.imul(Ve,Re)|0,f=f+Math.imul(Me,ye)|0,E=E+Math.imul(Me,Re)|0,x=x+Math.imul(fe,Ke)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(te,Ke)|0,E=E+Math.imul(te,Fe)|0,x=x+Math.imul(Z,be)|0,f=f+Math.imul(Z,Ue)|0,f=f+Math.imul(J,be)|0,E=E+Math.imul(J,Ue)|0,x=x+Math.imul(ie,it)|0,f=f+Math.imul(ie,Ye)|0,f=f+Math.imul(ce,it)|0,E=E+Math.imul(ce,Ye)|0,x=x+Math.imul(de,pt)|0,f=f+Math.imul(de,qe)|0,f=f+Math.imul(P,pt)|0,E=E+Math.imul(P,qe)|0,x=x+Math.imul(U,Mt)|0,f=f+Math.imul(U,He)|0,f=f+Math.imul(S,Mt)|0,E=E+Math.imul(S,He)|0;var An=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(An>>>26)|0,An&=67108863,x=Math.imul(re,me),f=Math.imul(re,he),f=f+Math.imul(se,me)|0,E=Math.imul(se,he),x=x+Math.imul(z,ke)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(H,ke)|0,E=E+Math.imul(H,De)|0,x=x+Math.imul(F,Ie)|0,f=f+Math.imul(F,_e)|0,f=f+Math.imul(N,Ie)|0,E=E+Math.imul(N,_e)|0,x=x+Math.imul(We,ye)|0,f=f+Math.imul(We,Re)|0,f=f+Math.imul(Y,ye)|0,E=E+Math.imul(Y,Re)|0,x=x+Math.imul(Ve,Ke)|0,f=f+Math.imul(Ve,Fe)|0,f=f+Math.imul(Me,Ke)|0,E=E+Math.imul(Me,Fe)|0,x=x+Math.imul(fe,be)|0,f=f+Math.imul(fe,Ue)|0,f=f+Math.imul(te,be)|0,E=E+Math.imul(te,Ue)|0,x=x+Math.imul(Z,it)|0,f=f+Math.imul(Z,Ye)|0,f=f+Math.imul(J,it)|0,E=E+Math.imul(J,Ye)|0,x=x+Math.imul(ie,pt)|0,f=f+Math.imul(ie,qe)|0,f=f+Math.imul(ce,pt)|0,E=E+Math.imul(ce,qe)|0,x=x+Math.imul(de,Mt)|0,f=f+Math.imul(de,He)|0,f=f+Math.imul(P,Mt)|0,E=E+Math.imul(P,He)|0,x=x+Math.imul(U,Je)|0,f=f+Math.imul(U,$e)|0,f=f+Math.imul(S,Je)|0,E=E+Math.imul(S,$e)|0;var oa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,x=Math.imul(re,ke),f=Math.imul(re,De),f=f+Math.imul(se,ke)|0,E=Math.imul(se,De),x=x+Math.imul(z,Ie)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(H,Ie)|0,E=E+Math.imul(H,_e)|0,x=x+Math.imul(F,ye)|0,f=f+Math.imul(F,Re)|0,f=f+Math.imul(N,ye)|0,E=E+Math.imul(N,Re)|0,x=x+Math.imul(We,Ke)|0,f=f+Math.imul(We,Fe)|0,f=f+Math.imul(Y,Ke)|0,E=E+Math.imul(Y,Fe)|0,x=x+Math.imul(Ve,be)|0,f=f+Math.imul(Ve,Ue)|0,f=f+Math.imul(Me,be)|0,E=E+Math.imul(Me,Ue)|0,x=x+Math.imul(fe,it)|0,f=f+Math.imul(fe,Ye)|0,f=f+Math.imul(te,it)|0,E=E+Math.imul(te,Ye)|0,x=x+Math.imul(Z,pt)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(J,pt)|0,E=E+Math.imul(J,qe)|0,x=x+Math.imul(ie,Mt)|0,f=f+Math.imul(ie,He)|0,f=f+Math.imul(ce,Mt)|0,E=E+Math.imul(ce,He)|0,x=x+Math.imul(de,Je)|0,f=f+Math.imul(de,$e)|0,f=f+Math.imul(P,Je)|0,E=E+Math.imul(P,$e)|0;var ia=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ia>>>26)|0,ia&=67108863,x=Math.imul(re,Ie),f=Math.imul(re,_e),f=f+Math.imul(se,Ie)|0,E=Math.imul(se,_e),x=x+Math.imul(z,ye)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(H,ye)|0,E=E+Math.imul(H,Re)|0,x=x+Math.imul(F,Ke)|0,f=f+Math.imul(F,Fe)|0,f=f+Math.imul(N,Ke)|0,E=E+Math.imul(N,Fe)|0,x=x+Math.imul(We,be)|0,f=f+Math.imul(We,Ue)|0,f=f+Math.imul(Y,be)|0,E=E+Math.imul(Y,Ue)|0,x=x+Math.imul(Ve,it)|0,f=f+Math.imul(Ve,Ye)|0,f=f+Math.imul(Me,it)|0,E=E+Math.imul(Me,Ye)|0,x=x+Math.imul(fe,pt)|0,f=f+Math.imul(fe,qe)|0,f=f+Math.imul(te,pt)|0,E=E+Math.imul(te,qe)|0,x=x+Math.imul(Z,Mt)|0,f=f+Math.imul(Z,He)|0,f=f+Math.imul(J,Mt)|0,E=E+Math.imul(J,He)|0,x=x+Math.imul(ie,Je)|0,f=f+Math.imul(ie,$e)|0,f=f+Math.imul(ce,Je)|0,E=E+Math.imul(ce,$e)|0;var aa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(aa>>>26)|0,aa&=67108863,x=Math.imul(re,ye),f=Math.imul(re,Re),f=f+Math.imul(se,ye)|0,E=Math.imul(se,Re),x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Fe)|0,f=f+Math.imul(H,Ke)|0,E=E+Math.imul(H,Fe)|0,x=x+Math.imul(F,be)|0,f=f+Math.imul(F,Ue)|0,f=f+Math.imul(N,be)|0,E=E+Math.imul(N,Ue)|0,x=x+Math.imul(We,it)|0,f=f+Math.imul(We,Ye)|0,f=f+Math.imul(Y,it)|0,E=E+Math.imul(Y,Ye)|0,x=x+Math.imul(Ve,pt)|0,f=f+Math.imul(Ve,qe)|0,f=f+Math.imul(Me,pt)|0,E=E+Math.imul(Me,qe)|0,x=x+Math.imul(fe,Mt)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(te,Mt)|0,E=E+Math.imul(te,He)|0,x=x+Math.imul(Z,Je)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(J,Je)|0,E=E+Math.imul(J,$e)|0;var sa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(re,Ke),f=Math.imul(re,Fe),f=f+Math.imul(se,Ke)|0,E=Math.imul(se,Fe),x=x+Math.imul(z,be)|0,f=f+Math.imul(z,Ue)|0,f=f+Math.imul(H,be)|0,E=E+Math.imul(H,Ue)|0,x=x+Math.imul(F,it)|0,f=f+Math.imul(F,Ye)|0,f=f+Math.imul(N,it)|0,E=E+Math.imul(N,Ye)|0,x=x+Math.imul(We,pt)|0,f=f+Math.imul(We,qe)|0,f=f+Math.imul(Y,pt)|0,E=E+Math.imul(Y,qe)|0,x=x+Math.imul(Ve,Mt)|0,f=f+Math.imul(Ve,He)|0,f=f+Math.imul(Me,Mt)|0,E=E+Math.imul(Me,He)|0,x=x+Math.imul(fe,Je)|0,f=f+Math.imul(fe,$e)|0,f=f+Math.imul(te,Je)|0,E=E+Math.imul(te,$e)|0;var la=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(la>>>26)|0,la&=67108863,x=Math.imul(re,be),f=Math.imul(re,Ue),f=f+Math.imul(se,be)|0,E=Math.imul(se,Ue),x=x+Math.imul(z,it)|0,f=f+Math.imul(z,Ye)|0,f=f+Math.imul(H,it)|0,E=E+Math.imul(H,Ye)|0,x=x+Math.imul(F,pt)|0,f=f+Math.imul(F,qe)|0,f=f+Math.imul(N,pt)|0,E=E+Math.imul(N,qe)|0,x=x+Math.imul(We,Mt)|0,f=f+Math.imul(We,He)|0,f=f+Math.imul(Y,Mt)|0,E=E+Math.imul(Y,He)|0,x=x+Math.imul(Ve,Je)|0,f=f+Math.imul(Ve,$e)|0,f=f+Math.imul(Me,Je)|0,E=E+Math.imul(Me,$e)|0;var ua=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ua>>>26)|0,ua&=67108863,x=Math.imul(re,it),f=Math.imul(re,Ye),f=f+Math.imul(se,it)|0,E=Math.imul(se,Ye),x=x+Math.imul(z,pt)|0,f=f+Math.imul(z,qe)|0,f=f+Math.imul(H,pt)|0,E=E+Math.imul(H,qe)|0,x=x+Math.imul(F,Mt)|0,f=f+Math.imul(F,He)|0,f=f+Math.imul(N,Mt)|0,E=E+Math.imul(N,He)|0,x=x+Math.imul(We,Je)|0,f=f+Math.imul(We,$e)|0,f=f+Math.imul(Y,Je)|0,E=E+Math.imul(Y,$e)|0;var ca=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ca>>>26)|0,ca&=67108863,x=Math.imul(re,pt),f=Math.imul(re,qe),f=f+Math.imul(se,pt)|0,E=Math.imul(se,qe),x=x+Math.imul(z,Mt)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(H,Mt)|0,E=E+Math.imul(H,He)|0,x=x+Math.imul(F,Je)|0,f=f+Math.imul(F,$e)|0,f=f+Math.imul(N,Je)|0,E=E+Math.imul(N,$e)|0;var fa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(fa>>>26)|0,fa&=67108863,x=Math.imul(re,Mt),f=Math.imul(re,He),f=f+Math.imul(se,Mt)|0,E=Math.imul(se,He),x=x+Math.imul(z,Je)|0,f=f+Math.imul(z,$e)|0,f=f+Math.imul(H,Je)|0,E=E+Math.imul(H,$e)|0;var da=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(da>>>26)|0,da&=67108863,x=Math.imul(re,Je),f=Math.imul(re,$e),f=f+Math.imul(se,Je)|0,E=Math.imul(se,$e);var ha=(y+x|0)+((f&8191)<<13)|0;return y=(E+(f>>>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=C);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),f=Math.max(0,u-G.length+1);f<=x;f++){var E=u-f,q=G.words[E]|0,U=w.words[f]|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=C(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,f=Math.cos(2*Math.PI/x),E=Math.sin(2*Math.PI/x),q=0;q<u;q+=x)for(var U=f,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=f*U-E*S,S=f*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),f=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,f,b,u),this.transform(E,m,q,U,b,u);for(var W=0;W<b;W++){var de=x[W]*q[W]-f[W]*U[W];f[W]=x[W]*U[W]+f[W]*q[W],x[W]=de}return this.conjugate(x,f,b),this.transform(x,f,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 f=0;f<m;f++)x.words[f]=this.words[f];x.length=m}if(m!==0)if(this.length>m)for(this.length-=m,f=0;f<this.length;f++)this.words[f]=this.words[f+m];else this.words[0]=0,this.length=1;var E=0;for(f=this.length-1;f>=0&&(E!==0||f>=b);f--){var q=this.words[f]|0;this.words[f]=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,f;if(T!=="mod"){f=new o(null),f.length=x+1,f.words=new Array(f.length);for(var E=0;E<f.length;E++)f.words[E]=0}var q=b.clone()._ishlnsubmul(u,1,x);q.negative===0&&(b=q,f&&(f.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);f&&(f.words[U]=S)}return f&&f.strip(),b.strip(),T!=="div"&&A!==0&&b.iushrn(A),{div:f||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 f=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(f),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(f),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 f=0,E=1;(A.words[0]&E)===0&&f<26;++f,E<<=1);if(f>0)for(A.iushrn(f);f-- >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),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,x).cmp(y)!==0;)f.redIAdd(y);for(var E=this.pow(f,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,f=T.bitLength()%26;for(f===0&&(f=26),u=T.length-1;u>=0;u--){for(var E=T.words[u],q=f-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)}f=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((Qoe,Rk)=>{d();p();h();Rk.exports=W1;W1.strict=Tk;W1.loose=Pk;var TB=Object.prototype.toString,PB={"[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 PB[TB.call(e)]}});var Ik=Qe((Xoe,Ak)=>{d();p();h();var RB=q1().strict;Ak.exports=function(t){if(RB(t)){var r=k.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(r=r.slice(t.byteOffset,t.byteOffset+t.byteLength)),r}else return k.from(t)}});var y8=Qe((uie,l0)=>{d();p();h();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(C){try{_(i.next(C))}catch(R){l(R)}}function g(C){try{_(i.throw(C))}catch(R){l(R)}}function _(C){C.done?s(C.value):a(C.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(C){return g([_,C])}}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(C){_=[6,C],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(_,C):R(s[0][2],I)}function _(I){c("next",I)}function C(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";d();p();h();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 BB(){return!!J1()&&!!w8()}Ji.isBrowserCryptoAvailable=BB});var S8=Qe(ea=>{"use strict";d();p();h();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 VB(){return!_8()&&!b8()}ea.isBrowser=VB});var eu=Qe(u0=>{"use strict";d();p();h();Object.defineProperty(u0,"__esModule",{value:!0});var E8=y8();E8.__exportStar(x8(),u0);E8.__exportStar(S8(),u0)});var U8=Qe((eae,V8)=>{"use strict";d();p();h();V8.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var q8=Qe((tae,W8)=>{"use strict";d();p();h();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 oV(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 iV(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=oV(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 iV(e)}}});var K8=Qe((rae,G8)=>{"use strict";d();p();h();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";d();p();h();var aV=U8(),sV=q8(),Z8=K8(),lV=e=>e==null;function uV(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 cV(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?aV(e):encodeURIComponent(e):e}function Hc(e,t){return t.decode?sV(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 fV(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=cV(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&&lV(e[a])||t.skipEmptyString&&e[a]==="",n=uV(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=fV(e.url);return e.fragmentIdentifier&&(s=`#${kr(e.fragmentIdentifier,t)}`),`${r}${a}${s}`}});var uT=Qe((yae,lT)=>{"use strict";d();p();h();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";d();p();h();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";d();p();h();var rj=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=rj(Jw());function nj(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=nj;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 oj(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=oj;function ij(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=ij});var L7=Qe(li=>{"use strict";d();p();h();var aj=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 sj=aj(Jw());li.countryPhoneData=sj.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:C}=(0,Xc.findCountryPhoneDataByPhoneNumber)(i,r);_?l=_:C&&!n?(l=C,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((Fue,V7)=>{"use strict";d();p();h();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 Az={};ms(Az,{init:()=>kz,open:()=>Pz,reset:()=>Rz,update:()=>Tz});d();p();h();d();p();h();d();p();h();d();p();h();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(C=>C(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;d();p();h();var O2=pe(gm(),1);d();p();h();d();p();h();d();p();h();var C2=pe(d2());d();p();h();d();p();h();d();p();h();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;d();p();h();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)}d();p();h();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)}d();p();h();d();p();h();d();p();h();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)}d();p();h();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=k.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};d();p();h();var Cm=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(Cm||{});d();p();h();d();p();h();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(C){switch(C.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,C.label=1;case 1:if(!(c<n+1))return[3,8];C.label=2;case 2:return C.trys.push([2,4,,5]),[4,e()];case 3:return g=C.sent(),[2,g];case 4:if(_=C.sent(),l=_,!s(_))throw _;return[3,5];case 5:return[4,new Promise(function(R){return setTimeout(R,i)})];case 6:C.sent(),C.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,C=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]=C++,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]=C++,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,_,C,R,I,V,j;for(g=0;g<3;g+=1)n[g]=g;for(C=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++)),C|=(R>0?1:0)*V,V<<=1;switch(C){case 0:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;j=wu(C);break;case 1:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;j=wu(C);break;case 2:return""}for(n[3]=j,_=j,o.push(j);;){if(i.index>e)return"";for(C=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++)),C|=(R>0?1:0)*V,V<<=1;switch(j=C){case 0:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;n[s++]=wu(C),j=s-1,a--;break;case 1:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;n[s++]=wu(C),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 C=new Error(_.response.statusText);return s(C)}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.11",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(C=>({theme:l,signal:o,actionId:i,methods:c!=null?c:C.methods,stage:C.computed.getDefaultStage(c),autoClose:a,stringifiedActionId:_,copy:oe(oe({},C.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;d();p();h();var Z2={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(yS(),1);d();p();h();var GP=pe(we(),1);d();p();h();d();p();h();var cr=pe(we()),kS=pe(Na()),Wo=pe(zv()),HI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function TS(e,t){return e(t={exports:{}},t.exports),t.exports}var WI=TS(function(e){(function(t){var r=function(j,L,D){if(!l(L)||g(L)||_(L)||C(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]"},C=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=TS(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}},CS=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 CS(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)?CS(e,t):void 0}},ZI=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
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(sC),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":PC(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:TC(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 uC(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"),RC=Symbol.for("react.portal"),AC=Symbol.for("react.fragment"),IC=Symbol.for("react.strict_mode"),OC=Symbol.for("react.profiler"),NC=Symbol.for("react.provider"),DC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),FC=Symbol.for("react.suspense"),$C=Symbol.for("react.suspense_list"),BC=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"),cC=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 AC:return"Fragment";case RC:return"Portal";case OC:return"Profiler";case IC:return"StrictMode";case FC:return"Suspense";case $C:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DC:return(e.displayName||"Context")+".Consumer";case NC:return(e._context.displayName||"Context")+".Provider";case LC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BC: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 VC={};function fC(e,t){if(e=e.contextTypes,!e)return VC;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 UC(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&UC(e)}function jC(e){var t=e.parent;t!==null&&jC(t),e.context._currentValue=e.value}function zC(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(ut(402));e.depth===t.depth?Up(e,t):zC(e,t)}function HC(e,t){var r=t.parent;if(r===null)throw Error(ut(402));e.depth===r.depth?Up(e,r):HC(e,r),t.context._currentValue=t.value}function Lp(e){var t=ns;t!==e&&(t===null?jC(e):e===null?UC(t):t.depth===e.depth?Up(t,e):t.depth>e.depth?zC(t,e):HC(t,e),ns=e)}var dC={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 hC(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=dC,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&&dC.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 pC(){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=pC()):(Dc=!0,Ot=Np):Ot.next===null?(Dc=!1,Ot=Ot.next=pC()):(Dc=!0,Ot=Ot.next),Ot}function N1(){I1=oi=null,Fp=!1,Np=null,jp=0,Ot=Ki=null}function WC(e,t){return typeof t=="function"?t(e):t}function mC(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===WC?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 gC(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 vC={readContext:function(e){return e._currentValue},useContext:function(e){return rs(),e._currentValue},useMemo:gC,useReducer:mC,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 mC(WC,e)},useInsertionEffect:Pp,useLayoutEffect:function(){},useCallback:function(e,t){return gC(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=MC.__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,VC,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&&KC(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,kC(e.destination,t)):(e.status=1,e.fatalError=t)}function yC(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 wC(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 xC(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=fC(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),hC(i,r,n,o),wC(e,t,i,r)}else{i=fC(r,t.legacyContext),o=yC(e,t,r,n,i);var a=$c!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)hC(o,r,n,i),wC(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 IC:case OC:case AC:Mn(e,t,n.children);return;case $C:Mn(e,t,n.children);return;case E$:throw Error(ut(343));case FC: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 LC:if(n=yC(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 BC:r=r.type,n=xC(r,n),C1(e,t,r,n,o);return;case NC: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 DC:n=n.children,n=n(r._currentValue),Mn(e,t,n);return;case A1:o=r._init,r=o(r._payload),n=xC(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 RC:throw Error(ut(257));case A1:var n=r._init;r=n(r._payload),Mn(e,t,r);return}if(S1(r)){_C(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=cC&&r[cC]||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);_C(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=nC(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=nC(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function _C(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,GC(this,t,e)}function qC(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 qC(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 GC(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 KC(e){if(e.status!==2){var t=ns,r=b1.current;b1.current=vC;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,GC(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,C=Bc(s,_);if(g===null?Bp(s,_):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=C,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===vC&&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,uC(t,e.responseState,n),Rp(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),uC(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 bC(e,t,r){return l$(t,e.responseState,r.formatContext,r.id),zp(e,t,r),u$(t,r.formatContext)}function SC(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)YC(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 YC(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 bC(e,t,n)}return bC(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 C=e.completedBoundaries;for(i=0;i<C.length;i++)if(!SC(e,t,C[i])){e.destination=null,i++,C.splice(0,i);return}C.splice(0,i),JM(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(!YC(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(!SC(e,t,L[i])){e.destination=null,i++,L.splice(0,i);return}L.splice(0,i)}finally{JM(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function EC(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return qC(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,kC(_,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=_;try{L1(s,_)}catch(C){Bc(s,C),Bp(s,C)}}},cancel:function(){EC(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(){EC(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}KC(s)})};F1.version="18.2.0"});var XC=Qe(os=>{"use strict";d();p();h();var Yl,QC;Yl=XM(),QC=ZC();os.version=Yl.version;os.renderToString=Yl.renderToString;os.renderToStaticMarkup=Yl.renderToStaticMarkup;os.renderToNodeStream=Yl.renderToNodeStream;os.renderToStaticNodeStream=Yl.renderToStaticNodeStream;os.renderToReadableStream=QC.renderToReadableStream});var uk=Qe(Nt=>{"use strict";d();p();h();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 z$(){return Zl("document")}Nt.getDocumentOrThrow=z$;function H$(){return is("document")}Nt.getDocument=H$;function W$(){return Zl("navigator")}Nt.getNavigatorOrThrow=W$;function q$(){return is("navigator")}Nt.getNavigator=q$;function G$(){return Zl("location")}Nt.getLocationOrThrow=G$;function K$(){return is("location")}Nt.getLocation=K$;function Y$(){return Zl("crypto")}Nt.getCryptoOrThrow=Y$;function Z$(){return is("crypto")}Nt.getCrypto=Z$;function Q$(){return Zl("localStorage")}Nt.getLocalStorageOrThrow=Q$;function X$(){return is("localStorage")}Nt.getLocalStorage=X$});var fk=Qe(Hp=>{"use strict";d();p();h();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.getWindowMetadata=void 0;var ck=uk();function J$(){let e,t;try{e=ck.getDocumentOrThrow(),t=ck.getLocationOrThrow()}catch(_){return null}function r(){let _=e.getElementsByTagName("link"),C=[];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}C.push(L)}else if(j.indexOf("//")===0){let L=t.protocol+j;C.push(L)}else C.push(j)}}return C}function n(..._){let C=e.getElementsByTagName("meta");for(let R=0;R<C.length;R++){let I=C[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=J$});var dk=Qe(Dt=>{"use strict";d();p();h();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 eB(){return Ql("document")}Dt.getDocumentOrThrow=eB;function tB(){return as("document")}Dt.getDocument=tB;function rB(){return Ql("navigator")}Dt.getNavigatorOrThrow=rB;function nB(){return as("navigator")}Dt.getNavigator=nB;function oB(){return Ql("location")}Dt.getLocationOrThrow=oB;function iB(){return as("location")}Dt.getLocation=iB;function aB(){return Ql("crypto")}Dt.getCryptoOrThrow=aB;function sB(){return as("crypto")}Dt.getCrypto=sB;function lB(){return Ql("localStorage")}Dt.getLocalStorageOrThrow=lB;function uB(){return as("localStorage")}Dt.getLocalStorage=uB});var kk=Qe((Ck,H1)=>{d();p();h();(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,f=0,E=A;E<x;E+=b)f=s(w,E,E+b,T),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(y!==0){var q=1;for(f=s(w,E,w.length,T),E=0;E<y;E++)q*=T;this.imuln(q),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},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 f=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[f-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,f,E=this.clone();if(m){for(f=0;!E.isZero();f++)x=E.andln(255),E.iushrn(8),y[f]=x;for(;f<u;f++)y[f]=0}else{for(f=0;f<u-b;f++)y[f]=0;for(f=0;!E.isZero();f++)x=E.andln(255),E.iushrn(8),y[u-f-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 C(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 f=1;f<A;f++){for(var E=x>>>26,q=x&67108863,U=Math.min(f,w.length-1),S=Math.max(0,f-G.length+1);S<=U;S++){var W=f-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[f]=q|0,x=E|0}return x!==0?T.words[f]=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,f,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),f=Math.imul(U,he),f=f+Math.imul(S,me)|0,E=Math.imul(S,he);var at=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(at>>>26)|0,at&=67108863,x=Math.imul(de,me),f=Math.imul(de,he),f=f+Math.imul(P,me)|0,E=Math.imul(P,he),x=x+Math.imul(U,ke)|0,f=f+Math.imul(U,De)|0,f=f+Math.imul(S,ke)|0,E=E+Math.imul(S,De)|0;var sr=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(sr>>>26)|0,sr&=67108863,x=Math.imul(ie,me),f=Math.imul(ie,he),f=f+Math.imul(ce,me)|0,E=Math.imul(ce,he),x=x+Math.imul(de,ke)|0,f=f+Math.imul(de,De)|0,f=f+Math.imul(P,ke)|0,E=E+Math.imul(P,De)|0,x=x+Math.imul(U,Ie)|0,f=f+Math.imul(U,_e)|0,f=f+Math.imul(S,Ie)|0,E=E+Math.imul(S,_e)|0;var st=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(Z,me),f=Math.imul(Z,he),f=f+Math.imul(J,me)|0,E=Math.imul(J,he),x=x+Math.imul(ie,ke)|0,f=f+Math.imul(ie,De)|0,f=f+Math.imul(ce,ke)|0,E=E+Math.imul(ce,De)|0,x=x+Math.imul(de,Ie)|0,f=f+Math.imul(de,_e)|0,f=f+Math.imul(P,Ie)|0,E=E+Math.imul(P,_e)|0,x=x+Math.imul(U,ye)|0,f=f+Math.imul(U,Re)|0,f=f+Math.imul(S,ye)|0,E=E+Math.imul(S,Re)|0;var dt=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(fe,me),f=Math.imul(fe,he),f=f+Math.imul(te,me)|0,E=Math.imul(te,he),x=x+Math.imul(Z,ke)|0,f=f+Math.imul(Z,De)|0,f=f+Math.imul(J,ke)|0,E=E+Math.imul(J,De)|0,x=x+Math.imul(ie,Ie)|0,f=f+Math.imul(ie,_e)|0,f=f+Math.imul(ce,Ie)|0,E=E+Math.imul(ce,_e)|0,x=x+Math.imul(de,ye)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(P,ye)|0,E=E+Math.imul(P,Re)|0,x=x+Math.imul(U,Ke)|0,f=f+Math.imul(U,Fe)|0,f=f+Math.imul(S,Ke)|0,E=E+Math.imul(S,Fe)|0;var kn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(kn>>>26)|0,kn&=67108863,x=Math.imul(Ve,me),f=Math.imul(Ve,he),f=f+Math.imul(Me,me)|0,E=Math.imul(Me,he),x=x+Math.imul(fe,ke)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(te,ke)|0,E=E+Math.imul(te,De)|0,x=x+Math.imul(Z,Ie)|0,f=f+Math.imul(Z,_e)|0,f=f+Math.imul(J,Ie)|0,E=E+Math.imul(J,_e)|0,x=x+Math.imul(ie,ye)|0,f=f+Math.imul(ie,Re)|0,f=f+Math.imul(ce,ye)|0,E=E+Math.imul(ce,Re)|0,x=x+Math.imul(de,Ke)|0,f=f+Math.imul(de,Fe)|0,f=f+Math.imul(P,Ke)|0,E=E+Math.imul(P,Fe)|0,x=x+Math.imul(U,be)|0,f=f+Math.imul(U,Ue)|0,f=f+Math.imul(S,be)|0,E=E+Math.imul(S,Ue)|0;var Tn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,x=Math.imul(We,me),f=Math.imul(We,he),f=f+Math.imul(Y,me)|0,E=Math.imul(Y,he),x=x+Math.imul(Ve,ke)|0,f=f+Math.imul(Ve,De)|0,f=f+Math.imul(Me,ke)|0,E=E+Math.imul(Me,De)|0,x=x+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,_e)|0,f=f+Math.imul(te,Ie)|0,E=E+Math.imul(te,_e)|0,x=x+Math.imul(Z,ye)|0,f=f+Math.imul(Z,Re)|0,f=f+Math.imul(J,ye)|0,E=E+Math.imul(J,Re)|0,x=x+Math.imul(ie,Ke)|0,f=f+Math.imul(ie,Fe)|0,f=f+Math.imul(ce,Ke)|0,E=E+Math.imul(ce,Fe)|0,x=x+Math.imul(de,be)|0,f=f+Math.imul(de,Ue)|0,f=f+Math.imul(P,be)|0,E=E+Math.imul(P,Ue)|0,x=x+Math.imul(U,it)|0,f=f+Math.imul(U,Ye)|0,f=f+Math.imul(S,it)|0,E=E+Math.imul(S,Ye)|0;var Pn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(F,me),f=Math.imul(F,he),f=f+Math.imul(N,me)|0,E=Math.imul(N,he),x=x+Math.imul(We,ke)|0,f=f+Math.imul(We,De)|0,f=f+Math.imul(Y,ke)|0,E=E+Math.imul(Y,De)|0,x=x+Math.imul(Ve,Ie)|0,f=f+Math.imul(Ve,_e)|0,f=f+Math.imul(Me,Ie)|0,E=E+Math.imul(Me,_e)|0,x=x+Math.imul(fe,ye)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(te,ye)|0,E=E+Math.imul(te,Re)|0,x=x+Math.imul(Z,Ke)|0,f=f+Math.imul(Z,Fe)|0,f=f+Math.imul(J,Ke)|0,E=E+Math.imul(J,Fe)|0,x=x+Math.imul(ie,be)|0,f=f+Math.imul(ie,Ue)|0,f=f+Math.imul(ce,be)|0,E=E+Math.imul(ce,Ue)|0,x=x+Math.imul(de,it)|0,f=f+Math.imul(de,Ye)|0,f=f+Math.imul(P,it)|0,E=E+Math.imul(P,Ye)|0,x=x+Math.imul(U,pt)|0,f=f+Math.imul(U,qe)|0,f=f+Math.imul(S,pt)|0,E=E+Math.imul(S,qe)|0;var Rn=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,x=Math.imul(z,me),f=Math.imul(z,he),f=f+Math.imul(H,me)|0,E=Math.imul(H,he),x=x+Math.imul(F,ke)|0,f=f+Math.imul(F,De)|0,f=f+Math.imul(N,ke)|0,E=E+Math.imul(N,De)|0,x=x+Math.imul(We,Ie)|0,f=f+Math.imul(We,_e)|0,f=f+Math.imul(Y,Ie)|0,E=E+Math.imul(Y,_e)|0,x=x+Math.imul(Ve,ye)|0,f=f+Math.imul(Ve,Re)|0,f=f+Math.imul(Me,ye)|0,E=E+Math.imul(Me,Re)|0,x=x+Math.imul(fe,Ke)|0,f=f+Math.imul(fe,Fe)|0,f=f+Math.imul(te,Ke)|0,E=E+Math.imul(te,Fe)|0,x=x+Math.imul(Z,be)|0,f=f+Math.imul(Z,Ue)|0,f=f+Math.imul(J,be)|0,E=E+Math.imul(J,Ue)|0,x=x+Math.imul(ie,it)|0,f=f+Math.imul(ie,Ye)|0,f=f+Math.imul(ce,it)|0,E=E+Math.imul(ce,Ye)|0,x=x+Math.imul(de,pt)|0,f=f+Math.imul(de,qe)|0,f=f+Math.imul(P,pt)|0,E=E+Math.imul(P,qe)|0,x=x+Math.imul(U,Mt)|0,f=f+Math.imul(U,He)|0,f=f+Math.imul(S,Mt)|0,E=E+Math.imul(S,He)|0;var An=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(An>>>26)|0,An&=67108863,x=Math.imul(re,me),f=Math.imul(re,he),f=f+Math.imul(se,me)|0,E=Math.imul(se,he),x=x+Math.imul(z,ke)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(H,ke)|0,E=E+Math.imul(H,De)|0,x=x+Math.imul(F,Ie)|0,f=f+Math.imul(F,_e)|0,f=f+Math.imul(N,Ie)|0,E=E+Math.imul(N,_e)|0,x=x+Math.imul(We,ye)|0,f=f+Math.imul(We,Re)|0,f=f+Math.imul(Y,ye)|0,E=E+Math.imul(Y,Re)|0,x=x+Math.imul(Ve,Ke)|0,f=f+Math.imul(Ve,Fe)|0,f=f+Math.imul(Me,Ke)|0,E=E+Math.imul(Me,Fe)|0,x=x+Math.imul(fe,be)|0,f=f+Math.imul(fe,Ue)|0,f=f+Math.imul(te,be)|0,E=E+Math.imul(te,Ue)|0,x=x+Math.imul(Z,it)|0,f=f+Math.imul(Z,Ye)|0,f=f+Math.imul(J,it)|0,E=E+Math.imul(J,Ye)|0,x=x+Math.imul(ie,pt)|0,f=f+Math.imul(ie,qe)|0,f=f+Math.imul(ce,pt)|0,E=E+Math.imul(ce,qe)|0,x=x+Math.imul(de,Mt)|0,f=f+Math.imul(de,He)|0,f=f+Math.imul(P,Mt)|0,E=E+Math.imul(P,He)|0,x=x+Math.imul(U,Je)|0,f=f+Math.imul(U,$e)|0,f=f+Math.imul(S,Je)|0,E=E+Math.imul(S,$e)|0;var oa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,x=Math.imul(re,ke),f=Math.imul(re,De),f=f+Math.imul(se,ke)|0,E=Math.imul(se,De),x=x+Math.imul(z,Ie)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(H,Ie)|0,E=E+Math.imul(H,_e)|0,x=x+Math.imul(F,ye)|0,f=f+Math.imul(F,Re)|0,f=f+Math.imul(N,ye)|0,E=E+Math.imul(N,Re)|0,x=x+Math.imul(We,Ke)|0,f=f+Math.imul(We,Fe)|0,f=f+Math.imul(Y,Ke)|0,E=E+Math.imul(Y,Fe)|0,x=x+Math.imul(Ve,be)|0,f=f+Math.imul(Ve,Ue)|0,f=f+Math.imul(Me,be)|0,E=E+Math.imul(Me,Ue)|0,x=x+Math.imul(fe,it)|0,f=f+Math.imul(fe,Ye)|0,f=f+Math.imul(te,it)|0,E=E+Math.imul(te,Ye)|0,x=x+Math.imul(Z,pt)|0,f=f+Math.imul(Z,qe)|0,f=f+Math.imul(J,pt)|0,E=E+Math.imul(J,qe)|0,x=x+Math.imul(ie,Mt)|0,f=f+Math.imul(ie,He)|0,f=f+Math.imul(ce,Mt)|0,E=E+Math.imul(ce,He)|0,x=x+Math.imul(de,Je)|0,f=f+Math.imul(de,$e)|0,f=f+Math.imul(P,Je)|0,E=E+Math.imul(P,$e)|0;var ia=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ia>>>26)|0,ia&=67108863,x=Math.imul(re,Ie),f=Math.imul(re,_e),f=f+Math.imul(se,Ie)|0,E=Math.imul(se,_e),x=x+Math.imul(z,ye)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(H,ye)|0,E=E+Math.imul(H,Re)|0,x=x+Math.imul(F,Ke)|0,f=f+Math.imul(F,Fe)|0,f=f+Math.imul(N,Ke)|0,E=E+Math.imul(N,Fe)|0,x=x+Math.imul(We,be)|0,f=f+Math.imul(We,Ue)|0,f=f+Math.imul(Y,be)|0,E=E+Math.imul(Y,Ue)|0,x=x+Math.imul(Ve,it)|0,f=f+Math.imul(Ve,Ye)|0,f=f+Math.imul(Me,it)|0,E=E+Math.imul(Me,Ye)|0,x=x+Math.imul(fe,pt)|0,f=f+Math.imul(fe,qe)|0,f=f+Math.imul(te,pt)|0,E=E+Math.imul(te,qe)|0,x=x+Math.imul(Z,Mt)|0,f=f+Math.imul(Z,He)|0,f=f+Math.imul(J,Mt)|0,E=E+Math.imul(J,He)|0,x=x+Math.imul(ie,Je)|0,f=f+Math.imul(ie,$e)|0,f=f+Math.imul(ce,Je)|0,E=E+Math.imul(ce,$e)|0;var aa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(aa>>>26)|0,aa&=67108863,x=Math.imul(re,ye),f=Math.imul(re,Re),f=f+Math.imul(se,ye)|0,E=Math.imul(se,Re),x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Fe)|0,f=f+Math.imul(H,Ke)|0,E=E+Math.imul(H,Fe)|0,x=x+Math.imul(F,be)|0,f=f+Math.imul(F,Ue)|0,f=f+Math.imul(N,be)|0,E=E+Math.imul(N,Ue)|0,x=x+Math.imul(We,it)|0,f=f+Math.imul(We,Ye)|0,f=f+Math.imul(Y,it)|0,E=E+Math.imul(Y,Ye)|0,x=x+Math.imul(Ve,pt)|0,f=f+Math.imul(Ve,qe)|0,f=f+Math.imul(Me,pt)|0,E=E+Math.imul(Me,qe)|0,x=x+Math.imul(fe,Mt)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(te,Mt)|0,E=E+Math.imul(te,He)|0,x=x+Math.imul(Z,Je)|0,f=f+Math.imul(Z,$e)|0,f=f+Math.imul(J,Je)|0,E=E+Math.imul(J,$e)|0;var sa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(re,Ke),f=Math.imul(re,Fe),f=f+Math.imul(se,Ke)|0,E=Math.imul(se,Fe),x=x+Math.imul(z,be)|0,f=f+Math.imul(z,Ue)|0,f=f+Math.imul(H,be)|0,E=E+Math.imul(H,Ue)|0,x=x+Math.imul(F,it)|0,f=f+Math.imul(F,Ye)|0,f=f+Math.imul(N,it)|0,E=E+Math.imul(N,Ye)|0,x=x+Math.imul(We,pt)|0,f=f+Math.imul(We,qe)|0,f=f+Math.imul(Y,pt)|0,E=E+Math.imul(Y,qe)|0,x=x+Math.imul(Ve,Mt)|0,f=f+Math.imul(Ve,He)|0,f=f+Math.imul(Me,Mt)|0,E=E+Math.imul(Me,He)|0,x=x+Math.imul(fe,Je)|0,f=f+Math.imul(fe,$e)|0,f=f+Math.imul(te,Je)|0,E=E+Math.imul(te,$e)|0;var la=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(la>>>26)|0,la&=67108863,x=Math.imul(re,be),f=Math.imul(re,Ue),f=f+Math.imul(se,be)|0,E=Math.imul(se,Ue),x=x+Math.imul(z,it)|0,f=f+Math.imul(z,Ye)|0,f=f+Math.imul(H,it)|0,E=E+Math.imul(H,Ye)|0,x=x+Math.imul(F,pt)|0,f=f+Math.imul(F,qe)|0,f=f+Math.imul(N,pt)|0,E=E+Math.imul(N,qe)|0,x=x+Math.imul(We,Mt)|0,f=f+Math.imul(We,He)|0,f=f+Math.imul(Y,Mt)|0,E=E+Math.imul(Y,He)|0,x=x+Math.imul(Ve,Je)|0,f=f+Math.imul(Ve,$e)|0,f=f+Math.imul(Me,Je)|0,E=E+Math.imul(Me,$e)|0;var ua=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ua>>>26)|0,ua&=67108863,x=Math.imul(re,it),f=Math.imul(re,Ye),f=f+Math.imul(se,it)|0,E=Math.imul(se,Ye),x=x+Math.imul(z,pt)|0,f=f+Math.imul(z,qe)|0,f=f+Math.imul(H,pt)|0,E=E+Math.imul(H,qe)|0,x=x+Math.imul(F,Mt)|0,f=f+Math.imul(F,He)|0,f=f+Math.imul(N,Mt)|0,E=E+Math.imul(N,He)|0,x=x+Math.imul(We,Je)|0,f=f+Math.imul(We,$e)|0,f=f+Math.imul(Y,Je)|0,E=E+Math.imul(Y,$e)|0;var ca=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(ca>>>26)|0,ca&=67108863,x=Math.imul(re,pt),f=Math.imul(re,qe),f=f+Math.imul(se,pt)|0,E=Math.imul(se,qe),x=x+Math.imul(z,Mt)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(H,Mt)|0,E=E+Math.imul(H,He)|0,x=x+Math.imul(F,Je)|0,f=f+Math.imul(F,$e)|0,f=f+Math.imul(N,Je)|0,E=E+Math.imul(N,$e)|0;var fa=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(fa>>>26)|0,fa&=67108863,x=Math.imul(re,Mt),f=Math.imul(re,He),f=f+Math.imul(se,Mt)|0,E=Math.imul(se,He),x=x+Math.imul(z,Je)|0,f=f+Math.imul(z,$e)|0,f=f+Math.imul(H,Je)|0,E=E+Math.imul(H,$e)|0;var da=(y+x|0)+((f&8191)<<13)|0;y=(E+(f>>>13)|0)+(da>>>26)|0,da&=67108863,x=Math.imul(re,Je),f=Math.imul(re,$e),f=f+Math.imul(se,Je)|0,E=Math.imul(se,$e);var ha=(y+x|0)+((f&8191)<<13)|0;return y=(E+(f>>>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=C);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),f=Math.max(0,u-G.length+1);f<=x;f++){var E=u-f,q=G.words[E]|0,U=w.words[f]|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=C(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,f=Math.cos(2*Math.PI/x),E=Math.sin(2*Math.PI/x),q=0;q<u;q+=x)for(var U=f,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=f*U-E*S,S=f*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),f=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,f,b,u),this.transform(E,m,q,U,b,u);for(var W=0;W<b;W++){var de=x[W]*q[W]-f[W]*U[W];f[W]=x[W]*U[W]+f[W]*q[W],x[W]=de}return this.conjugate(x,f,b),this.transform(x,f,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 f=0;f<m;f++)x.words[f]=this.words[f];x.length=m}if(m!==0)if(this.length>m)for(this.length-=m,f=0;f<this.length;f++)this.words[f]=this.words[f+m];else this.words[0]=0,this.length=1;var E=0;for(f=this.length-1;f>=0&&(E!==0||f>=b);f--){var q=this.words[f]|0;this.words[f]=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,f;if(T!=="mod"){f=new o(null),f.length=x+1,f.words=new Array(f.length);for(var E=0;E<f.length;E++)f.words[E]=0}var q=b.clone()._ishlnsubmul(u,1,x);q.negative===0&&(b=q,f&&(f.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);f&&(f.words[U]=S)}return f&&f.strip(),b.strip(),T!=="div"&&A!==0&&b.iushrn(A),{div:f||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 f=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(f),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(f),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 f=0,E=1;(A.words[0]&E)===0&&f<26;++f,E<<=1);if(f>0)for(A.iushrn(f);f-- >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),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,x).cmp(y)!==0;)f.redIAdd(y);for(var E=this.pow(f,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,f=T.bitLength()%26;for(f===0&&(f=26),u=T.length-1;u>=0;u--){for(var E=T.words[u],q=f-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)}f=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((Qoe,Rk)=>{d();p();h();Rk.exports=W1;W1.strict=Tk;W1.loose=Pk;var TB=Object.prototype.toString,PB={"[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 PB[TB.call(e)]}});var Ik=Qe((Xoe,Ak)=>{d();p();h();var RB=q1().strict;Ak.exports=function(t){if(RB(t)){var r=k.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(r=r.slice(t.byteOffset,t.byteOffset+t.byteLength)),r}else return k.from(t)}});var y8=Qe((uie,l0)=>{d();p();h();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(C){try{_(i.next(C))}catch(R){l(R)}}function g(C){try{_(i.throw(C))}catch(R){l(R)}}function _(C){C.done?s(C.value):a(C.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(C){return g([_,C])}}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(C){_=[6,C],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(_,C):R(s[0][2],I)}function _(I){c("next",I)}function C(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";d();p();h();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 BB(){return!!J1()&&!!w8()}Ji.isBrowserCryptoAvailable=BB});var S8=Qe(ea=>{"use strict";d();p();h();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 VB(){return!_8()&&!b8()}ea.isBrowser=VB});var eu=Qe(u0=>{"use strict";d();p();h();Object.defineProperty(u0,"__esModule",{value:!0});var E8=y8();E8.__exportStar(x8(),u0);E8.__exportStar(S8(),u0)});var U8=Qe((eae,V8)=>{"use strict";d();p();h();V8.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var q8=Qe((tae,W8)=>{"use strict";d();p();h();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 oV(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 iV(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=oV(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 iV(e)}}});var K8=Qe((rae,G8)=>{"use strict";d();p();h();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";d();p();h();var aV=U8(),sV=q8(),Z8=K8(),lV=e=>e==null;function uV(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 cV(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?aV(e):encodeURIComponent(e):e}function Hc(e,t){return t.decode?sV(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 fV(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=cV(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&&lV(e[a])||t.skipEmptyString&&e[a]==="",n=uV(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=fV(e.url);return e.fragmentIdentifier&&(s=`#${kr(e.fragmentIdentifier,t)}`),`${r}${a}${s}`}});var uT=Qe((yae,lT)=>{"use strict";d();p();h();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";d();p();h();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";d();p();h();var rj=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=rj(Jw());function nj(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=nj;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 oj(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=oj;function ij(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=ij});var L7=Qe(li=>{"use strict";d();p();h();var aj=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 sj=aj(Jw());li.countryPhoneData=sj.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:C}=(0,Xc.findCountryPhoneDataByPhoneNumber)(i,r);_?l=_:C&&!n?(l=C,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((Fue,V7)=>{"use strict";d();p();h();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 Az={};ms(Az,{init:()=>kz,open:()=>Pz,reset:()=>Rz,update:()=>Tz});d();p();h();d();p();h();d();p();h();d();p();h();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(C=>C(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;d();p();h();var O2=pe(gm(),1);d();p();h();d();p();h();d();p();h();var C2=pe(d2());d();p();h();d();p();h();d();p();h();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;d();p();h();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)}d();p();h();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)}d();p();h();d();p();h();d();p();h();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)}d();p();h();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=k.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};d();p();h();var Cm=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(Cm||{});d();p();h();d();p();h();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(C){switch(C.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,C.label=1;case 1:if(!(c<n+1))return[3,8];C.label=2;case 2:return C.trys.push([2,4,,5]),[4,e()];case 3:return g=C.sent(),[2,g];case 4:if(_=C.sent(),l=_,!s(_))throw _;return[3,5];case 5:return[4,new Promise(function(R){return setTimeout(R,i)})];case 6:C.sent(),C.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,C=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]=C++,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]=C++,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,_,C,R,I,V,j;for(g=0;g<3;g+=1)n[g]=g;for(C=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++)),C|=(R>0?1:0)*V,V<<=1;switch(C){case 0:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;j=wu(C);break;case 1:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;j=wu(C);break;case 2:return""}for(n[3]=j,_=j,o.push(j);;){if(i.index>e)return"";for(C=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++)),C|=(R>0?1:0)*V,V<<=1;switch(j=C){case 0:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;n[s++]=wu(C),j=s-1,a--;break;case 1:for(C=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++)),C|=(R>0?1:0)*V,V<<=1;n[s++]=wu(C),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 C=new Error(_.response.statusText);return s(C)}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.13",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(C=>({theme:l,signal:o,actionId:i,methods:c!=null?c:C.methods,stage:C.computed.getDefaultStage(c),autoClose:a,stringifiedActionId:_,copy:oe(oe({},C.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;d();p();h();var Z2={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(yS(),1);d();p();h();var GP=pe(we(),1);d();p();h();d();p();h();var cr=pe(we()),kS=pe(Na()),Wo=pe(zv()),HI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function TS(e,t){return e(t={exports:{}},t.exports),t.exports}var WI=TS(function(e){(function(t){var r=function(j,L,D){if(!l(L)||g(L)||_(L)||C(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]"},C=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=TS(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}},CS=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 CS(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)?CS(e,t):void 0}},ZI=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
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,kS.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"]),C=(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(C.current)try{if(typeof n=="function"&&n(C.current),c){var D=C.current.shadowRoot;return void j(D)}var B=C.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,C,l]),cr.default.createElement(cr.default.Fragment,null,cr.default.createElement(e.tag,qI({key:L,ref:C},_),(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(),PS=nO;var WP=pe(we(),1);d();p();h();var oO=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
|
|
24
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%;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::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;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::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;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: }::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}.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-20{height:5rem}.h-6{height:1.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-20{width:5rem}.w-6{width:1.5rem}.w-\\[202px\\]{width:202px}.min-w-\\[calc\\(100vw_-_48px\\)\\]{min-width:calc(100vw - 48px)}.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{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{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))}.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-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-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}.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)}.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{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,transform,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-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{appearance:none}.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\\: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))}`,RS=()=>v.createElement("style",null,oO);d();p();h();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;var em=pe(we(),1);d();p();h();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;d();p();h();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:"inline-flex aspect-square items-center justify-center rounded-full bg-red-100 p-5"},v.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-red-500 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;d();p();h();d();p();h();d();p();h();d();p();h();var qv=pe(we(),1),$a=pe(we(),1);d();p();h();var IS=pe(we(),1),tl=(0,IS.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});d();p();h();var Yd=pe(we(),1),Da=(0,Yd.createContext)({});function OS(){return(0,Yd.useContext)(Da).visualElement}d();p();h();var Ni=pe(we(),1);d();p();h();var NS=pe(we(),1),So=(0,NS.createContext)(null);d();p();h();var Zd=pe(we(),1);d();p();h();var Un=typeof document<"u";var La=Un?Zd.useLayoutEffect:Zd.useEffect;d();p();h();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}d();p();h();var FS=pe(we(),1);d();p();h();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])}d();p();h();var Jd=pe(we(),1);d();p();h();d();p();h();function Go(e){return typeof e=="string"||Array.isArray(e)}d();p();h();d();p();h();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}d();p();h();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"])};d();p();h();function jS(e){for(let t in e)t==="projectionNodeConstructor"?Li.projectionNodeConstructor=e[t]:Li[t].Component=e[t]}d();p();h();d();p();h();var zS=pe(we(),1);function Fi(e){let t=(0,zS.useRef)(null);return t.current===null&&(t.current=e()),t.current}d();p();h();var $i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var fO=1;function HS(){return Fi(()=>{if($i.hasEverUpdated)return fO++})}d();p();h();var WS=pe(we(),1),rl=(0,WS.createContext)({});d();p();h();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}};d();p();h();var GS=pe(we(),1),th=(0,GS.createContext)({});d();p();h();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,C=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&&(C=R.visualElement.loadFeatures(g,j,e,I,r||Li.projectionNodeConstructor,L))}return qv.createElement(eh,{visualElement:R.visualElement,props:g},C,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}d();p();h();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))})}d();p();h();d();p();h();d();p();h();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))}d();p();h();var y6=pe(we(),1);d();p();h();var s6=pe(we(),1);d();p();h();d();p();h();var ol={};function XS(e){Object.assign(ol,e)}d();p();h();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")}d();p();h();var vr=e=>!!(e!=null&&e.getVelocity);d();p();h();d();p();h();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}d();p();h();function nh(e){return e.startsWith("--")}d();p();h();var e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;d();p();h();d();p();h();d();p();h();d();p();h();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 vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zo=Object.assign(Object.assign({},vn),{transform:oh(0,1)}),al=Object.assign(Object.assign({},vn),{default:1});d();p();h();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)});d();p();h();d();p();h();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))+")"};d();p();h();var mO=oh(0,255),lh=Object.assign(Object.assign({},vn),{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))+")"};d();p();h();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};d();p();h();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)};d();p();h();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(vn.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};d();p();h();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}});d();p();h();var Yv=Se(oe({},vn),{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 C in t){let R=t[C];if(nh(C)){i[C]=R;continue}let I=uh[C],V=e6(R,I);if(jn.has(C)){if(c=!0,a[C]=V,s.push(C),!_)continue;R!==(I.default||0)&&(_=!1)}else C.startsWith("origin")?(g=!0,l[C]=V):o[C]=V}if(t.transform||(c||n?o.transform=JS(e,r,_,n):o.transform&&(o.transform="none")),g){let{originX:C="50%",originY:R="50%",originZ:I=0}=l;o.transformOrigin=`${C} ${R} ${I}`}}d();p();h();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}d();p();h();d();p();h();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}d();p();h();var g6=pe(we(),1);d();p();h();d();p();h();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}`}d();p();h();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,C,c,g,_){var R=C,{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)}d();p();h();var ch=()=>Se(oe({},fl()),{attrs:{}});d();p();h();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,_)}}d();p();h();d();p();h();d();p();h();var fh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();d();p();h();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])}d();p();h();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])}d();p();h();d();p();h();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}d();p();h();var Jv=pe(we(),1);d();p();h();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}d();p();h();d();p();h();d();p();h();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 C in i)o[C]=gl(i[C]);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)}})};d();p();h();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})}d();p();h();d();p();h();d();p();h();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={}));d();p();h();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)}d();p();h();d();p();h();function yh(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function wh(e){return!!e.touches}d();p();h();d();p();h();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};d();p();h();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)}d();p();h();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})}d();p();h();var ny=pe(we(),1);d();p();h();var ry=(e,t)=>t?e===t?!0:ry(e,t.parentElement):!1;d();p();h();var D6=pe(we(),1);function vl(e){return(0,D6.useEffect)(()=>()=>e(),[])}d();p();h();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 C(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",C,l)),o.animationState&&o.animationState.setActive(bt.Tap,!0),t&&t(I,V))}Va(o,"pointerdown",i?R:void 0,l),vl(c)}d();p();h();d();p();h();var GO="production",yl=typeof process>"u"||process.env===void 0?GO:"production";var yc=pe(we(),1);d();p();h();var F6=new Set;function _h(e,t,r){e||F6.has(t)||(console.warn(t),r&&console.warn(r),F6.add(t))}d();p();h();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(),C=g?_.onViewportEnter:_.onViewportLeave;C&&C(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])}d();p();h();var so=e=>t=>(e(t),null);var V6={inView:so(B6),tap:so(L6),focus:so(M6),hover:so(N6)};d();p();h();var Sc=pe(we(),1);d();p();h();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]}d();p();h();d();p();h();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}d();p();h();d();p();h();d();p();h();var xl=e=>e*1e3;d();p();h();d();p();h();var Ua=function(){},br=function(){};d();p();h();d();p();h();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)}d();p();h();d();p();h();var bl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;d();p();h();var Sl=e=>t=>1-e(1-t);var Sh=e=>e*e,z6=Sl(Sh),Eh=bl(Sh);d();p();h();var sy=e=>1-Math.sin(Math.acos(e)),wc=Sl(sy),H6=bl(wc);d();p();h();var ly=(e=1.525)=>t=>t*t*((e+1)*t-e),Mh=ly(),W6=Sl(Mh),q6=bl(Mh);d();p();h();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";d();p();h();var cy=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&_r.test(t)&&!t.startsWith("url("));d();p();h();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))};d();p();h();d();p();h();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)}d();p();h();var X6={current:!1};d();p();h();d();p();h();d();p();h();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);d();p();h();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,C=_?t:r;return c&&a.add(l),C.indexOf(l)===-1&&(C.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},{}),yn=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&&(yn.read(n),e(i-t))};return nr.read(n,!0),()=>yn.read(n)}d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();var Ha=(e,t,r)=>Math.min(Math.max(r,e),t);d();p();h();var St=(e,t,r)=>-r*e+r*t+e;d();p();h();d();p();h();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))};d();p();h();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}`)};d();p();h();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()}}}d();p();h();d();p();h();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,C=g-r,R=Ih(c,a),I=Math.exp(-_);return xy-C/R*I},i=c=>{let _=c*a*e,C=_*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)*((C-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:C,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>=C;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;d();p();h();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:()=>yn.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:C="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":C];!((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()}}}d();p();h();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:C,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:C,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:C=>t.set(C)};return i.type==="inertia"||i.type==="decay"?p4(oe(oe({},_),i)):Oh(Se(oe({},NN(i,_,e)),{onUpdate:C=>{_.onUpdate(C),i.onUpdate&&i.onUpdate(C)},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()}})}d();p();h();d();p();h();var y4=e=>/^\-?\d*\.?\d+$/.test(e);d();p();h();var w4=e=>/^0[^.\s]+$/.test(e);d();p();h();d();p();h();d();p();h();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)}d();p();h();d();p();h();d();p();h();var Lh=e=>t=>t.test(e);d();p();h();var x4={test:e=>e==="auto",parse:e=>e};var Sy=[vn,Ge,Or,io,Kv,Gv,x4],Pl=e=>Sy.find(Lh(e));var FN=[...Sy,Xt,_r],_4=e=>FN.find(Lh(e));d();p();h();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}d();p();h();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:C}=i;return jN(e,t,g+c,_,C,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 C=e.makeTargetAnimatable(t),{transition:a=e.getDefaultTransition(),transitionEnd:s}=C,l=Ae(C,["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:C,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(),C=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:C[B],ue=Go(X),ae=B===c?K.isActive:null;ae===!1&&(j=D);let ve=X===C[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],f=b[y];V.hasOwnProperty(y)||(x!==f?Xo(x)&&Xo(f)?!ay(x,f)||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 C=a(g,l);for(let R in r)r[R].protectedKeys={};return C}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])})};d();p();h();d();p();h();var Iy=pe(we(),1);d();p();h();d();p();h();d();p();h();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:C}=c,{timestamp:R}=za();this.history.push(Se(oe({},C),{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:C}=this.handlers,R=Cy(My(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(c,R),C&&C(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(),yn.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}d();p();h();d();p();h();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}d();p();h();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()});d();p();h();function zn(e){return[e("x"),e("y")]}d();p();h();d();p();h();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}}d();p();h();d();p();h();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:C}=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}),C==null||C(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:C}=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(),C==null||C(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 C=(_=l==null?void 0:l[g])!==null&&_!==void 0?_:{};a&&(C={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),C);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 C=this.getAxisMotionValue(_);!C||(this.originPoint[_]+=c[_].translate,C.set(C.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])}d();p();h();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)};d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();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}}d();p();h();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===vn||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),C=t[l],R;if(Xo(C)){let I=C.length,V=C[0]===null?1:0;g=C[V],_=Pl(g);for(let j=V;j<I;j++)R?br(Pl(C[j])===R,"All keyframes must be of the same type"):(R=Pl(C[j]),br(R===_||Hh(_)&&Hh(R),"Keyframes must be of the same dimension as the current value"))}else R=Pl(C);if(_!==R)if(Hh(_)&&Hh(R)){let I=c.get();typeof I=="string"&&c.set(parseFloat(I)),typeof C=="string"?t[l]=parseFloat(C):Array.isArray(C)&&R===Ge&&(t[l]=C.map(parseFloat))}else(_==null?void 0:_.transform)&&(R==null?void 0:R.transform)&&(g===0||C===0)?g===0?c.set(R.transform(g)):t[l]=_.transform(C):(a||(i=lD(e),a=!0),s.push(l),n[l]=n[l]!==void 0?n[l]:t[l],d5(c,C))}),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)};d();p();h();var y5=pe(we(),1);d();p();h();d();p();h();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}d();p();h();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 C=c[_];a[_]!==void 0&&vr(C)&&(C.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(),yn.update(this.notifyUpdate),yn.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:C}=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:C})}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)}};d();p();h();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});d();p();h();d();p();h();var Fl=pe(we(),1);d();p();h();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}%`}};d();p();h();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 C=s(a);if(o){let R=0;C=C.replace(S5,()=>{let I=i[R];return R++,I})}return C}};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};d();p();h();d();p();h();d();p();h();function k5(e,t,r={}){let n=vr(e)?e:Mo(e);return Cl("",n,t,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}d();p();h();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`,C=R5(t,_),R=R5(r,_);if(C===void 0&&R===void 0)continue;C||(C=0),R||(R=0),C===0||R===0||P5(C)===P5(R)?(e[_]=Math.max(St(T5(C),T5(R),n),0),(Or.test(R)||Or.test(C))&&(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))}d();p();h();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)}d();p();h();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)}d();p();h();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)}d();p();h();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)}};d();p();h();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"}d();p();h();d();p();h();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 C,R=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,C&&C(),C=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:C,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(C,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,yn.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 C=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=C==null?void 0:C(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:C}=this.root;C&&(Co(s.x,-C.offset.x),Co(s.y,-C.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(),C=g.measurePageBox();Hn(_,C),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:C,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||!(C||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)||{},C=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=C,I5(C,_,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&&(yn.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 C=Sr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+C}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 C=this.getLead();if(!this.projectionDelta||!this.layout||!C.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=C.animationValues||C.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`,C.animationValues?g.opacity=C===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=C===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],C);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=C===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),C=!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)||(C=!0)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:g,layoutDelta:c,hasLayoutChanged:_,hasRelativeTargetChanged:C})}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)}d();p();h();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));d();p();h();var ti=pe(we(),1),Wn=pe(we(),1);d();p();h();var Cc=pe(we(),1);d();p();h();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]}d();p();h();var kc=pe(we(),1),Tc=pe(we(),1);d();p();h();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
25
|
[data-motion-pop-id="${r}"] {
|
|
@@ -29,7 +29,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
29
29
|
top: ${s}px !important;
|
|
30
30
|
left: ${l}px !important;
|
|
31
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,C=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(),C.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&&C.add(K)}return a==="wait"&&C.size&&(_=[]),C.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),C.delete(B);let ae=R.current.findIndex(ve=>ve.key===B);if(R.current.splice(ae,1),!C.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 C.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,C.size?_:_.map(B=>(0,Wn.cloneElement)(B)))};d();p();h();var xE=pe(wE(),1),{__extends:Are,__assign:qn,__rest:np,__decorate:Ire,__param:Ore,__metadata:Nre,__awaiter:Dre,__generator:Lre,__exportStar:Fre,__createBinding:$re,__values:Bre,__read:Vre,__spread:Ure,__spreadArrays:jre,__spreadArray:_E,__await:zre,__asyncGenerator:Hre,__asyncDelegator:Wre,__asyncValues:qre,__makeTemplateObject:Gre,__importStar:Kre,__importDefault:Yre,__classPrivateFieldGet:Zre,__classPrivateFieldSet:Qre,__classPrivateFieldIn:Xre}=xE.default;d();p();h();var jt=(...e)=>e.filter(Boolean).join(" "),bE=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),wn=(e,t)=>e!=null&&e[t]?e[t]:Z2[t];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")))),SE=VD;d();p();h();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;d();p();h();d();p();h();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()),UE=pe(Na());d();p();h();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)}}d();p();h();var EE=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,EE.useCallback)(Wy(...e),e)}d();p();h();var lo=pe(we());d();p();h();var jr=pe(we());function ME(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:C,children:R}=L,I=Ae(L,["scope","children"]),V=(C==null?void 0:C[e][l])||s,j=(0,jr.useMemo)(()=>I,Object.values(I));return(0,jr.createElement)(V.Provider,{value:j},R)}function g(_,C){let R=(C==null?void 0:C[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}d();p();h();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 CE(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 C(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:_},C,n]}d();p();h();var At=pe(we());d();p();h();var Wl=pe(we()),kE=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,kE.flushSync)(()=>e.dispatchEvent(t))}d();p();h();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)},[])}d();p();h();var TE=pe(we());function PE(e,t=globalThis==null?void 0:globalThis.document){let r=Dr(e);(0,TE.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",RE,IE=(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)(IE),[_,C]=(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=>C(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 PE(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&&(RE=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(_)),g.layers.add(_),AE(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(R.body.style.pointerEvents=RE)}},[_,R,n,g]),(0,At.useEffect)(()=>()=>{!_||(g.layers.delete(_),g.layersWithOutsidePointerEventsDisabled.delete(_),AE())},[_,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)(IE),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(){OE(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&&OE(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 AE(){let e=new CustomEvent(Gy);document.dispatchEvent(e)}function OE(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 NE=Ky,DE=ZD;d();p();h();var ip=pe(we()),LE=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?LE.default.createPortal((0,ip.createElement)(fr.div,yt({},o,{ref:t})),n):null});d();p();h();var Lr=pe(we()),$E=pe(Na());d();p();h();var FE=pe(we()),Qa=Boolean(globalThis==null?void 0:globalThis.document)?FE.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 C=i.current,R=sp(c);e?l("MOUNT"):R==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(g&&C!==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,$E.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"}d();p();h();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}d();p();h();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 jE="ToastProvider",[Jy,rL,nL]=CE("Toast"),[zE,aoe]=Hl("Toast",[nL]),[oL,fp]=zE(jE),HE=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),C=(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:C},a))};HE.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${jE}\`. 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),C=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)(DE,{ref:l,role:"region","aria-label":o.replace("{hotkey}",R),tabIndex:-1,style:{pointerEvents:I?void 0:"none"}},I&&(0,Ne.createElement)(BE,{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:C}))),I&&(0,Ne.createElement)(BE,{ref:g,onFocusFromOutsideViewport:()=>{let L=V({tabbingDirection:"backwards"});Zy(L)}}))}),lL="ToastFocusProxy",BE=(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)(WE,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:C}=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",`${C}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:C}=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",`${C}px`),l(!1)})})))}),[pL,mL]=zE(dp,{onClose(){}}),WE=(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:C,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 f=new Date().getTime()-ue.current;ae.current=ae.current-f,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?KE(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,UE.createPortal)((0,Ne.createElement)(Jy.ItemSlot,{scope:r},(0,Ne.createElement)(NE,{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,f=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};f?(K.current=de,cp(cL,_,P,{discrete:!1})):VE(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 f=m.currentTarget,E={originalEvent:m,delta:y};VE(y,V.swipeDirection,V.swipeThreshold)?cp(dL,R,E,{discrete:!0}):cp(fL,C,E,{discrete:!0}),f.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),V.viewport))):null});WE.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",qE=(0,Ne.forwardRef)((e,t)=>{let o=e,{altText:r}=o,n=Ae(o,["altText"]);return r?(0,Ne.createElement)(GE,{altText:r,asChild:!0},(0,Ne.createElement)(xL,yt({},n,{ref:t}))):null});qE.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)(GE,{asChild:!0},(0,Ne.createElement)(fr.button,yt({type:"button"},n,{ref:t,onClick:or(e.onClick,o.onClose)})))}),GE=(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 KE(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(...KE(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 VE=(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 YE=HE,ZE=sL,QE=hL,XE=vL;var JE=qE;d();p();h();d();p();h();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:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},v.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 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"},wn(e,"success"))))},tM=CL;d();p();h();d();p();h();var ik=pe(we(),1),ak=pe(we(),1),sk=pe(aM(),1);d();p();h();var Vc=pe(we(),1),tk=pe(sM(),1),rk=pe(XC(),1);d();p();h();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"})),JC=B$;var V$=window.btoa((0,rk.renderToString)(v.createElement(JC,{style:{color:"#6445DD"}}))),ek=new tk.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}}),nk=({data:e,className:t=""})=>{let r=(0,Vc.useRef)(null);return(0,Vc.useEffect)(()=>{!r.current||ek.append(r.current)},[]),(0,Vc.useEffect)(()=>{ek.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")})};d();p();h();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"})),ok=U$;var j$=({qrData:e,showQR:t,setShowQR:r})=>{let n=Js(),[o,i]=(0,ik.useState)(!1),a=(0,ak.useCallback)(()=>{var s;(0,sk.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(nk,{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(ok,{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")))))},lk=j$;var Gc=pe(we(),1);d();p();h();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||{});d();p();h();var DT=pe(we(),1);d();p();h();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()}d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();var vk=pe(fk()),qr=pe(dk());d();p();h();var cB=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},fB=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var dB=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var hB=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 pB=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var mB=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var gB=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,vB=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,hk=3,yB=[["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",gB]],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 mB:typeof navigator<"u"?mk(navigator.userAgent):_B()}function wB(e){return e!==""&&yB.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=wB(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new pB;var o=n[1]&&n[1].split(/[._]/).slice(0,3);o?o.length<hk&&(o=cB(o,bB(hk-o.length))):o=[];var i=o.join("."),a=xB(e),s=vB.exec(e);return s&&s[1]?new hB(r,i,a,s[1]):new fB(r,i,a)}function xB(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 _B(){var e=typeof process<"u"&&process.version;return e?new dB(process.version.slice(1)):null}function bB(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 SB(){let e=V1();return e?e.toLowerCase().includes("android"):!1}function EB(){let e=V1();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yk(){return V1()?SB()||EB():!1}function MB(){let e=Wp();return e&&e.name?e.name.toLowerCase()==="node":!1}function wk(){return!MB()&&!!CB()}var CB=qr.getNavigator;var xk=qr.getLocation;var qp=qr.getLocalStorage;function U1(){return vk.getWindowMetadata()}d();p();h();d();p();h();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;d();p();h();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)}d();p();h();var z1="WALLETCONNECT_DEEPLINK_CHOICE";d();p();h();d();p();h();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"];d();p();h();var Uk=pe(kk());d();p();h();var AB=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 k.from(Gn(e),Nk)}function Qi(e){return Yi(Fk(e))}function Qp(e){return k.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 IB(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function OB(e,t=8,r=Zp){return NB(e,IB(e.length,t),r)}function NB(e,t,r=Zp){return DB(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=OB(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 DB(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)}d();p();h();var $8=pe(gm());d();p();h();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:()=>zB,formatJsonRpcRequest:()=>UB,formatJsonRpcResult:()=>jB,getError:()=>i0,getErrorByCode:()=>a0,isHttpUrl:()=>ZB,isJsonRpcError:()=>R8,isJsonRpcPayload:()=>rw,isJsonRpcRequest:()=>JB,isJsonRpcResponse:()=>eV,isJsonRpcResult:()=>P8,isJsonRpcValidationInvalid:()=>tV,isLocalhostUrl:()=>XB,isNodeJs:()=>C8,isReservedErrorCode:()=>o0,isServerErrorCode:()=>LB,isValidDefaultRoute:()=>f0,isValidErrorCode:()=>Qk,isValidLeadingWildcardRoute:()=>WB,isValidRoute:()=>HB,isValidTrailingWildcardRoute:()=>qB,isValidWildcardRoute:()=>d0,isWsUrl:()=>QB,parseConnectionError:()=>$B,payloadId:()=>c0,validateJsonRpcError:()=>FB});d();p();h();d();p();h();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;d();p();h();function LB(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 FB(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 $B(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});d();p();h();var M8=pe(eu());rt(Jt,pe(eu()));var C8=M8.isNode;rt(Gr,Jt);d();p();h();function c0(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function UB(e,t,r){return{id:r||c0(),jsonrpc:"2.0",method:e,params:t}}function jB(e,t){return{id:e,jsonrpc:"2.0",result:t}}function zB(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)}d();p();h();function HB(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 WB(e){return!f0(e)&&d0(e)&&!e.split("*")[0].trim()}function qB(e){return!f0(e)&&d0(e)&&!e.split("*")[1].trim()}d();p();h();d();p();h();d();p();h();d();p();h();var tu=class{};d();p();h();var ew=class extends tu{constructor(t){super()}},h0=class extends tu{constructor(){super()}},tw=class extends h0{constructor(t){super()}};d();p();h();d();p();h();var GB="^https?:",KB="^wss?:";function YB(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function T8(e,t){let r=YB(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function ZB(e){return T8(e,GB)}function QB(e){return T8(e,KB)}function XB(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}d();p();h();function rw(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function JB(e){return rw(e)&&"method"in e}function eV(e){return rw(e)&&(P8(e)||R8(e))}function P8(e){return"result"in e}function R8(e){return"error"in e}function tV(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})()}d();p();h();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 rV(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 nV=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===rV(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"||!nV(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}d();p();h();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}d();p();h();d();p();h();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=dV(r),e}function sw(e){return g0.parse(e)}function dV(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 C="@",R=_.split(C);return{handshakeTopic:R[0],version:parseInt(R[1],10)}}let a=i(o),s=typeof r<"u"?e.substr(r):"";function l(_){let C=sw(_);return{key:C.key||"",bridge:C.bridge||""}}let c=l(s);return Object.assign(Object.assign({protocol:n},a),c)}d();p();h();d();p();h();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 hV=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=pV(this._url,this._protocol,this._version);if(this._nextSocket=new hV(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 pV(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;d();p();h();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";d();p();h();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;d();p();h();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;d();p();h();var mV="walletconnect.org",gV="abcdefghijklmnopqrstuvwxyz0123456789",bT=gV.split("").map(e=>`https://${e}.bridge.walletconnect.org`);function vV(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}function yV(e){return vV(e).split(".").slice(-2).join(".")}function wV(){return Math.floor(Math.random()*bT.length)}function xV(){return bT[wV()]}function _V(e){return yV(e)===mV}function ST(e){return _V(e)?xV():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:()=>KV,encrypt:()=>GV,generateKey:()=>IT,verifyHmac:()=>OT});d();p();h();var Cn={};ms(Cn,{AES_BROWSER_ALGO:()=>Ro,AES_LENGTH:()=>Wc,AES_NODE_ALGO:()=>CV,DECRYPT_OP:()=>Sw,ENCRYPT_OP:()=>bw,ERROR_BAD_MAC:()=>FV,HEX_ENC:()=>DV,HMAC_BROWSER:()=>ls,HMAC_BROWSER_ALGO:()=>ww,HMAC_LENGTH:()=>x0,HMAC_NODE_ALGO:()=>kV,IV_LENGTH:()=>OV,KEY_LENGTH:()=>IV,LENGTH_0:()=>bV,LENGTH_1:()=>gw,LENGTH_1024:()=>MV,LENGTH_128:()=>EV,LENGTH_16:()=>vw,LENGTH_256:()=>w0,LENGTH_32:()=>y0,LENGTH_512:()=>yw,LENGTH_64:()=>SV,MAC_LENGTH:()=>NV,PREFIX_LENGTH:()=>AV,RIPEMD160_NODE_ALGO:()=>RV,SHA256_BROWSER_ALGO:()=>xw,SHA256_NODE_ALGO:()=>TV,SHA512_BROWSER_ALGO:()=>_w,SHA512_NODE_ALGO:()=>PV,SIGN_OP:()=>Ew,UTF8_ENC:()=>LV,VERIFY_OP:()=>Mw,aesCbcDecrypt:()=>Pw,aesCbcEncrypt:()=>Tw,assert:()=>AT,hmacSha256Sign:()=>b0,hmacSha256Verify:()=>UV,hmacSha512Sign:()=>jV,hmacSha512Verify:()=>zV,isConstantTime:()=>qc,pkcs7:()=>RT,randomBytes:()=>mw,ripemd160:()=>qV,sha256:()=>HV,sha512:()=>WV});d();p();h();d();p();h();var MT=pe(eu());function mw(e){return MT.getBrowerCrypto().getRandomValues(new Uint8Array(e))}d();p();h();d();p();h();var ra=pe(eu());d();p();h();d();p();h();d();p();h();var bV=0,gw=1,vw=16,y0=32,SV=64,EV=128,w0=256,yw=512,MV=1024;var Wc=256,x0=256,Ro="AES-CBC",ww=`SHA-${Wc}`,ls="HMAC",xw="SHA-256",_w="SHA-512",CV=`aes-${Wc}-cbc`,kV=`sha${x0}`,TV="sha256",PV="sha512",RV="ripemd160",AV=1,IV=32,OV=16,NV=32;d();p();h();var DV="hex",LV="utf8";d();p();h();var FV="Bad MAC";d();p();h();var bw="encrypt",Sw="decrypt",Ew="sign",Mw="verify";function $V(e){return e===Ro?{length:Wc,name:Ro}:{hash:{name:ww},name:ls}}function BV(e){return e===Ro?[bw,Sw]:[Ew,Mw]}async function _0(e,t=Ro){return ra.getSubtleCrypto().importKey("raw",e,$V(t),!0,BV(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)}d();p();h();var er={};ms(er,{assert:()=>AT,isConstantTime:()=>qc,pkcs7:()=>RT});d();p();h();var Kr={};d();p();h();rt(Kr,pe(eu()));rt(er,Kr);d();p();h();var VV=[[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=VV[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])}};d();p();h();d();p();h();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 UV(e,t,r){let n=await Cw(e,t);return qc(n,r)}async function jV(e,t){return await kw(e,t)}async function zV(e,t,r){let n=await kw(e,t);return qc(n,r)}d();p();h();async function HV(e){return await TT(e)}async function WV(e){return await PT(e)}async function qV(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 GV(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),C=await b0(n,_),R=Zi(C,!1);return{data:g,hmac:R,iv:a}}async function KV(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 ZV=bf()((e,t)=>({qrData:null,config:null,result:null,connected:!1,connectorUri:"",errorCode:null,verificationState:"loading_widget",initConnection:async(r,n)=>{console.log("initConnection called"),!t().connectorUri&&(console.log("initConnection processed"),uo.connected&&await uo.killSession(),e({config:{action_id:r,signal:n}}),await uo.createSession(),t().setConnectorUri(uo.uri),uo.on("connect",o=>{if(console.log("connect event",o),!o)return t().onConnectionEstablished();e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${o}`)}),uo.on("disconnect",()=>{t().resetConnection(),t().initConnection(r,n)}))},setConnectorUri:r=>{console.log("setConnectorUri called",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(QV(t().config.action_id,t().config.signal)).then(r=>{if(!XV(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:()=>{console.log("reset called"),e({result:null,config:null,qrData:null,errorCode:null,connected:!1,connectorUri:"",verificationState:"loading_widget"})}})),QV=(e,t)=>({jsonrpc:"2.0",method:"wld_worldIDVerification",id:bE(1e5,9999999),params:[{signal:yu(t).digest,action_id:yu(e).digest}]}),XV=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},JV=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,initConnection:e.initConnection,verificationState:e.verificationState}),eU=(e,t)=>{let{result:r,verificationState:n,errorCode:o,qrData:i,initConnection:a,reset:s}=ZV(JV);return(0,DT.useEffect)(()=>{if(!(!e||!t))return a(e,t),s},[e,a,t,s]),{result:r,reset:s,verificationState:n,errorCode:o,qrData:i}},LT=eU;d();p();h();d();p();h();var tU=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=tU;d();p();h();var rU=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=rU;var nU=({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=nU;d();p();h();var oU=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=oU;var aU=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")}),sU=()=>{let e=Js(),[t,r]=(0,Gc.useState)(!1),{actionId:n,copy:o,signal:i,handleVerify:a,showAbout:s,hasPhone:l,usePhone:c}=Lt(aU),{result:g,qrData:_,verificationState:C,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"},C==="awaiting_verification"?"Confirm on the Worldcoin app":wn(o,"heading")),v.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},C==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":wn(o,"subheading"))),C==="awaiting_verification"?v.createElement("div",{className:"flex items-center justify-center"},v.createElement(ji,{className:"h-20 w-20"})):v.createElement(lk,{showQR:t,setShowQR:r,qrData:_}),s&&(e=="desktop"||!t)&&v.createElement(nu,null),l&&C=="awaiting_connection"&&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=sU;d();p();h();d();p();h();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 uU=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=uU;d();p();h();var cU=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=cU;var fU=()=>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=fU;d();p();h();var ot=pe(we());d();p();h();var Iw=pe(we());var dU=Iw["useId".toString()]||(()=>{}),hU=0;function E0(e){let[t,r]=Iw.useState(dU());return Qa(()=>{e||r(n=>n!=null?n:String(hU++))},[e]),e||(t?`radix-${t}`:"")}d();p();h();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),C=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||(pU(wU(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]=mU(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:C,onKeyDown:I}))});function pU(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(us(n,{select:t}),document.activeElement!==r)return}function mU(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(!gU(r,{upTo:t}))return r}function gU(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 vU(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&&vU(e)&&t&&e.select()}}var qT=yU();function yU(){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 wU(e){return e.filter(t=>t.tagName!=="A")}d();p();h();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}d();p();h();d();p();h();var T0=pe(we());d();p();h();var Fr=pe(we());d();p();h();var cs="right-scroll-bar-position",fs="width-before-scroll-bar",Lw="with-scroll-bars-hidden",Fw="--removed-body-scroll-bar-size";d();p();h();d();p();h();function JT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}d();p();h();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}d();p();h();function $w(e,t){return t7(t||null,function(r){return e.forEach(function(n){return JT(n,r)})})}d();p();h();d();p();h();d();p();h();function xU(e){return e}function _U(e,t){t===void 0&&(t=xU);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=_U(null);return t.options=qn({async:!0,ssr:!1},e),t}d();p();h();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,C=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=C,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};d();p();h();d();p();h();var Vt=pe(we());d();p();h();d();p();h();var C0=pe(we());d();p();h();d();p();h();d();p();h();var a7=pe(we());d();p();h();d();p();h();var o7;var i7=function(){if(o7)return o7;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i7();return t&&e.setAttribute("nonce",t),e}function SU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EU(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=bU())&&(SU(t,r),EU(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};d();p();h();var MU={left:0,top:0,right:0,gap:0},Hw=function(e){return parseInt(e||"",10)||0},CU=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 MU;var t=CU(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 kU=Yc(),TU=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
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,C=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(),C.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&&C.add(K)}return a==="wait"&&C.size&&(_=[]),C.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),C.delete(B);let ae=R.current.findIndex(ve=>ve.key===B);if(R.current.splice(ae,1),!C.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 C.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,C.size?_:_.map(B=>(0,Wn.cloneElement)(B)))};d();p();h();var xE=pe(wE(),1),{__extends:Are,__assign:qn,__rest:np,__decorate:Ire,__param:Ore,__metadata:Nre,__awaiter:Dre,__generator:Lre,__exportStar:Fre,__createBinding:$re,__values:Bre,__read:Vre,__spread:Ure,__spreadArrays:jre,__spreadArray:_E,__await:zre,__asyncGenerator:Hre,__asyncDelegator:Wre,__asyncValues:qre,__makeTemplateObject:Gre,__importStar:Kre,__importDefault:Yre,__classPrivateFieldGet:Zre,__classPrivateFieldSet:Qre,__classPrivateFieldIn:Xre}=xE.default;d();p();h();var jt=(...e)=>e.filter(Boolean).join(" "),bE=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),wn=(e,t)=>e!=null&&e[t]?e[t]:Z2[t];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")))),SE=VD;d();p();h();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;d();p();h();d();p();h();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()),UE=pe(Na());d();p();h();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)}}d();p();h();var EE=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,EE.useCallback)(Wy(...e),e)}d();p();h();var lo=pe(we());d();p();h();var jr=pe(we());function ME(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:C,children:R}=L,I=Ae(L,["scope","children"]),V=(C==null?void 0:C[e][l])||s,j=(0,jr.useMemo)(()=>I,Object.values(I));return(0,jr.createElement)(V.Provider,{value:j},R)}function g(_,C){let R=(C==null?void 0:C[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}d();p();h();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 CE(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 C(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:_},C,n]}d();p();h();var At=pe(we());d();p();h();var Wl=pe(we()),kE=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,kE.flushSync)(()=>e.dispatchEvent(t))}d();p();h();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)},[])}d();p();h();var TE=pe(we());function PE(e,t=globalThis==null?void 0:globalThis.document){let r=Dr(e);(0,TE.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",RE,IE=(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)(IE),[_,C]=(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=>C(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 PE(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&&(RE=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(_)),g.layers.add(_),AE(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(R.body.style.pointerEvents=RE)}},[_,R,n,g]),(0,At.useEffect)(()=>()=>{!_||(g.layers.delete(_),g.layersWithOutsidePointerEventsDisabled.delete(_),AE())},[_,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)(IE),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(){OE(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&&OE(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 AE(){let e=new CustomEvent(Gy);document.dispatchEvent(e)}function OE(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 NE=Ky,DE=ZD;d();p();h();var ip=pe(we()),LE=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?LE.default.createPortal((0,ip.createElement)(fr.div,yt({},o,{ref:t})),n):null});d();p();h();var Lr=pe(we()),$E=pe(Na());d();p();h();var FE=pe(we()),Qa=Boolean(globalThis==null?void 0:globalThis.document)?FE.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 C=i.current,R=sp(c);e?l("MOUNT"):R==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(g&&C!==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,$E.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"}d();p();h();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}d();p();h();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 jE="ToastProvider",[Jy,rL,nL]=CE("Toast"),[zE,aoe]=Hl("Toast",[nL]),[oL,fp]=zE(jE),HE=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),C=(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:C},a))};HE.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){let t=`Invalid prop \`label\` supplied to \`${jE}\`. 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),C=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)(DE,{ref:l,role:"region","aria-label":o.replace("{hotkey}",R),tabIndex:-1,style:{pointerEvents:I?void 0:"none"}},I&&(0,Ne.createElement)(BE,{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:C}))),I&&(0,Ne.createElement)(BE,{ref:g,onFocusFromOutsideViewport:()=>{let L=V({tabbingDirection:"backwards"});Zy(L)}}))}),lL="ToastFocusProxy",BE=(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)(WE,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:C}=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",`${C}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:C}=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",`${C}px`),l(!1)})})))}),[pL,mL]=zE(dp,{onClose(){}}),WE=(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:C,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 f=new Date().getTime()-ue.current;ae.current=ae.current-f,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?KE(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,UE.createPortal)((0,Ne.createElement)(Jy.ItemSlot,{scope:r},(0,Ne.createElement)(NE,{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,f=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};f?(K.current=de,cp(cL,_,P,{discrete:!1})):VE(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 f=m.currentTarget,E={originalEvent:m,delta:y};VE(y,V.swipeDirection,V.swipeThreshold)?cp(dL,R,E,{discrete:!0}):cp(fL,C,E,{discrete:!0}),f.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),V.viewport))):null});WE.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",qE=(0,Ne.forwardRef)((e,t)=>{let o=e,{altText:r}=o,n=Ae(o,["altText"]);return r?(0,Ne.createElement)(GE,{altText:r,asChild:!0},(0,Ne.createElement)(xL,yt({},n,{ref:t}))):null});qE.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)(GE,{asChild:!0},(0,Ne.createElement)(fr.button,yt({type:"button"},n,{ref:t,onClick:or(e.onClick,o.onClose)})))}),GE=(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 KE(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(...KE(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 VE=(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 YE=HE,ZE=sL,QE=hL,XE=vL;var JE=qE;d();p();h();d();p();h();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:"inline-flex aspect-square items-center justify-center rounded-full bg-green-100 p-5"},v.createElement("div",{className:"flex aspect-square items-center justify-center rounded-full bg-green-500 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"},wn(e,"success"))))},tM=CL;d();p();h();d();p();h();var ik=pe(we(),1),ak=pe(we(),1),sk=pe(aM(),1);d();p();h();var Vc=pe(we(),1),tk=pe(sM(),1),rk=pe(XC(),1);d();p();h();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"})),JC=B$;var V$=window.btoa((0,rk.renderToString)(v.createElement(JC,{style:{color:"#6445DD"}}))),ek=new tk.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}}),nk=({data:e,className:t=""})=>{let r=(0,Vc.useRef)(null);return(0,Vc.useEffect)(()=>{!r.current||ek.append(r.current)},[]),(0,Vc.useEffect)(()=>{ek.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")})};d();p();h();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"})),ok=U$;var j$=({qrData:e,showQR:t,setShowQR:r})=>{let n=Js(),[o,i]=(0,ik.useState)(!1),a=(0,ak.useCallback)(()=>{var s;(0,sk.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(nk,{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(ok,{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")))))},lk=j$;var Gc=pe(we(),1);d();p();h();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||{});d();p();h();var DT=pe(we(),1);d();p();h();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()}d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();var vk=pe(fk()),qr=pe(dk());d();p();h();var cB=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},fB=function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e}();var dB=function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e}();var hB=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 pB=function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e}();var mB=function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e}();var gB=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,vB=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,hk=3,yB=[["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",gB]],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 mB:typeof navigator<"u"?mk(navigator.userAgent):_B()}function wB(e){return e!==""&&yB.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=wB(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new pB;var o=n[1]&&n[1].split(/[._]/).slice(0,3);o?o.length<hk&&(o=cB(o,bB(hk-o.length))):o=[];var i=o.join("."),a=xB(e),s=vB.exec(e);return s&&s[1]?new hB(r,i,a,s[1]):new fB(r,i,a)}function xB(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 _B(){var e=typeof process<"u"&&process.version;return e?new dB(process.version.slice(1)):null}function bB(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 SB(){let e=V1();return e?e.toLowerCase().includes("android"):!1}function EB(){let e=V1();return e?e.toLowerCase().includes("ios")||e.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function yk(){return V1()?SB()||EB():!1}function MB(){let e=Wp();return e&&e.name?e.name.toLowerCase()==="node":!1}function wk(){return!MB()&&!!CB()}var CB=qr.getNavigator;var xk=qr.getLocation;var qp=qr.getLocalStorage;function U1(){return vk.getWindowMetadata()}d();p();h();d();p();h();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;d();p();h();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)}d();p();h();var z1="WALLETCONNECT_DEEPLINK_CHOICE";d();p();h();d();p();h();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"];d();p();h();var Uk=pe(kk());d();p();h();var AB=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 k.from(Gn(e),Nk)}function Qi(e){return Yi(Fk(e))}function Qp(e){return k.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 IB(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function OB(e,t=8,r=Zp){return NB(e,IB(e.length,t),r)}function NB(e,t,r=Zp){return DB(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=OB(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 DB(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)}d();p();h();var $8=pe(gm());d();p();h();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:()=>zB,formatJsonRpcRequest:()=>UB,formatJsonRpcResult:()=>jB,getError:()=>i0,getErrorByCode:()=>a0,isHttpUrl:()=>ZB,isJsonRpcError:()=>R8,isJsonRpcPayload:()=>rw,isJsonRpcRequest:()=>JB,isJsonRpcResponse:()=>eV,isJsonRpcResult:()=>P8,isJsonRpcValidationInvalid:()=>tV,isLocalhostUrl:()=>XB,isNodeJs:()=>C8,isReservedErrorCode:()=>o0,isServerErrorCode:()=>LB,isValidDefaultRoute:()=>f0,isValidErrorCode:()=>Qk,isValidLeadingWildcardRoute:()=>WB,isValidRoute:()=>HB,isValidTrailingWildcardRoute:()=>qB,isValidWildcardRoute:()=>d0,isWsUrl:()=>QB,parseConnectionError:()=>$B,payloadId:()=>c0,validateJsonRpcError:()=>FB});d();p();h();d();p();h();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;d();p();h();function LB(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 FB(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 $B(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});d();p();h();var M8=pe(eu());rt(Jt,pe(eu()));var C8=M8.isNode;rt(Gr,Jt);d();p();h();function c0(){let e=Date.now()*Math.pow(10,3),t=Math.floor(Math.random()*Math.pow(10,3));return e+t}function UB(e,t,r){return{id:r||c0(),jsonrpc:"2.0",method:e,params:t}}function jB(e,t){return{id:e,jsonrpc:"2.0",result:t}}function zB(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)}d();p();h();function HB(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 WB(e){return!f0(e)&&d0(e)&&!e.split("*")[0].trim()}function qB(e){return!f0(e)&&d0(e)&&!e.split("*")[1].trim()}d();p();h();d();p();h();d();p();h();d();p();h();var tu=class{};d();p();h();var ew=class extends tu{constructor(t){super()}},h0=class extends tu{constructor(){super()}},tw=class extends h0{constructor(t){super()}};d();p();h();d();p();h();var GB="^https?:",KB="^wss?:";function YB(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function T8(e,t){let r=YB(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function ZB(e){return T8(e,GB)}function QB(e){return T8(e,KB)}function XB(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}d();p();h();function rw(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function JB(e){return rw(e)&&"method"in e}function eV(e){return rw(e)&&(P8(e)||R8(e))}function P8(e){return"result"in e}function R8(e){return"error"in e}function tV(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})()}d();p();h();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 rV(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 nV=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===rV(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"||!nV(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}d();p();h();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}d();p();h();d();p();h();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=dV(r),e}function sw(e){return g0.parse(e)}function dV(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 C="@",R=_.split(C);return{handshakeTopic:R[0],version:parseInt(R[1],10)}}let a=i(o),s=typeof r<"u"?e.substr(r):"";function l(_){let C=sw(_);return{key:C.key||"",bridge:C.bridge||""}}let c=l(s);return Object.assign(Object.assign({protocol:n},a),c)}d();p();h();d();p();h();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 hV=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=pV(this._url,this._protocol,this._version);if(this._nextSocket=new hV(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 pV(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;d();p();h();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";d();p();h();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;d();p();h();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;d();p();h();var mV="walletconnect.org",gV="abcdefghijklmnopqrstuvwxyz0123456789",bT=gV.split("").map(e=>`https://${e}.bridge.walletconnect.org`);function vV(e){let t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return t=t.split(":")[0],t=t.split("?")[0],t}function yV(e){return vV(e).split(".").slice(-2).join(".")}function wV(){return Math.floor(Math.random()*bT.length)}function xV(){return bT[wV()]}function _V(e){return yV(e)===mV}function ST(e){return _V(e)?xV():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:()=>KV,encrypt:()=>GV,generateKey:()=>IT,verifyHmac:()=>OT});d();p();h();var Cn={};ms(Cn,{AES_BROWSER_ALGO:()=>Ro,AES_LENGTH:()=>Wc,AES_NODE_ALGO:()=>CV,DECRYPT_OP:()=>Sw,ENCRYPT_OP:()=>bw,ERROR_BAD_MAC:()=>FV,HEX_ENC:()=>DV,HMAC_BROWSER:()=>ls,HMAC_BROWSER_ALGO:()=>ww,HMAC_LENGTH:()=>x0,HMAC_NODE_ALGO:()=>kV,IV_LENGTH:()=>OV,KEY_LENGTH:()=>IV,LENGTH_0:()=>bV,LENGTH_1:()=>gw,LENGTH_1024:()=>MV,LENGTH_128:()=>EV,LENGTH_16:()=>vw,LENGTH_256:()=>w0,LENGTH_32:()=>y0,LENGTH_512:()=>yw,LENGTH_64:()=>SV,MAC_LENGTH:()=>NV,PREFIX_LENGTH:()=>AV,RIPEMD160_NODE_ALGO:()=>RV,SHA256_BROWSER_ALGO:()=>xw,SHA256_NODE_ALGO:()=>TV,SHA512_BROWSER_ALGO:()=>_w,SHA512_NODE_ALGO:()=>PV,SIGN_OP:()=>Ew,UTF8_ENC:()=>LV,VERIFY_OP:()=>Mw,aesCbcDecrypt:()=>Pw,aesCbcEncrypt:()=>Tw,assert:()=>AT,hmacSha256Sign:()=>b0,hmacSha256Verify:()=>UV,hmacSha512Sign:()=>jV,hmacSha512Verify:()=>zV,isConstantTime:()=>qc,pkcs7:()=>RT,randomBytes:()=>mw,ripemd160:()=>qV,sha256:()=>HV,sha512:()=>WV});d();p();h();d();p();h();var MT=pe(eu());function mw(e){return MT.getBrowerCrypto().getRandomValues(new Uint8Array(e))}d();p();h();d();p();h();var ra=pe(eu());d();p();h();d();p();h();d();p();h();var bV=0,gw=1,vw=16,y0=32,SV=64,EV=128,w0=256,yw=512,MV=1024;var Wc=256,x0=256,Ro="AES-CBC",ww=`SHA-${Wc}`,ls="HMAC",xw="SHA-256",_w="SHA-512",CV=`aes-${Wc}-cbc`,kV=`sha${x0}`,TV="sha256",PV="sha512",RV="ripemd160",AV=1,IV=32,OV=16,NV=32;d();p();h();var DV="hex",LV="utf8";d();p();h();var FV="Bad MAC";d();p();h();var bw="encrypt",Sw="decrypt",Ew="sign",Mw="verify";function $V(e){return e===Ro?{length:Wc,name:Ro}:{hash:{name:ww},name:ls}}function BV(e){return e===Ro?[bw,Sw]:[Ew,Mw]}async function _0(e,t=Ro){return ra.getSubtleCrypto().importKey("raw",e,$V(t),!0,BV(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)}d();p();h();var er={};ms(er,{assert:()=>AT,isConstantTime:()=>qc,pkcs7:()=>RT});d();p();h();var Kr={};d();p();h();rt(Kr,pe(eu()));rt(er,Kr);d();p();h();var VV=[[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=VV[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])}};d();p();h();d();p();h();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 UV(e,t,r){let n=await Cw(e,t);return qc(n,r)}async function jV(e,t){return await kw(e,t)}async function zV(e,t,r){let n=await kw(e,t);return qc(n,r)}d();p();h();async function HV(e){return await TT(e)}async function WV(e){return await PT(e)}async function qV(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 GV(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),C=await b0(n,_),R=Zi(C,!1);return{data:g,hmac:R,iv:a}}async function KV(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 ZV=bf()((e,t)=>({qrData:null,config:null,result:null,connected:!1,connectorUri:"",errorCode:null,verificationState:"loading_widget",initConnection:async(r,n)=>{console.log("initConnection called"),!t().connectorUri&&(console.log("initConnection processed"),uo.connected&&await uo.killSession(),e({config:{action_id:r,signal:n}}),await uo.createSession(),t().setConnectorUri(uo.uri),uo.on("connect",o=>{if(console.log("connect event",o),!o)return t().onConnectionEstablished();e({errorCode:"connection_failed"}),console.error(`Unable to establish a connection with the WLD app: ${o}`)}),uo.on("disconnect",()=>{t().resetConnection(),t().initConnection(r,n)}))},setConnectorUri:r=>{console.log("setConnectorUri called",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(QV(t().config.action_id,t().config.signal)).then(r=>{if(!XV(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:()=>{console.log("reset called"),e({result:null,config:null,qrData:null,errorCode:null,connected:!1,connectorUri:"",verificationState:"loading_widget"})}})),QV=(e,t)=>({jsonrpc:"2.0",method:"wld_worldIDVerification",id:bE(1e5,9999999),params:[{signal:yu(t).digest,action_id:yu(e).digest}]}),XV=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},JV=e=>({qrData:e.qrData,result:e.result,errorCode:e.errorCode,reset:e.resetConnection,initConnection:e.initConnection,verificationState:e.verificationState}),eU=(e,t)=>{let{result:r,verificationState:n,errorCode:o,qrData:i,initConnection:a,reset:s}=ZV(JV);return(0,DT.useEffect)(()=>{!e||!t||a(e,t)},[e,t]),{result:r,reset:s,verificationState:n,errorCode:o,qrData:i}},LT=eU;d();p();h();d();p();h();var tU=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=tU;d();p();h();var rU=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=rU;var nU=({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=nU;d();p();h();var oU=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=oU;var aU=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")}),sU=()=>{let e=Js(),[t,r]=(0,Gc.useState)(!1),{actionId:n,copy:o,signal:i,handleVerify:a,showAbout:s,hasPhone:l,usePhone:c}=Lt(aU),{result:g,qrData:_,verificationState:C,reset:R}=LT(n,i);return(0,Gc.useEffect)(()=>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"},C==="awaiting_verification"?"Confirm on the Worldcoin app":wn(o,"heading")),v.createElement("p",{className:"text-70868f dark:text-9eafc0 mt-3 text-center md:mt-2"},C==="awaiting_verification"?"Please confirm the request inside the Worldcoin app to continue.":wn(o,"subheading"))),C==="awaiting_verification"?v.createElement("div",{className:"flex items-center justify-center"},v.createElement(ji,{className:"h-20 w-20"})):v.createElement(lk,{showQR:t,setShowQR:r,qrData:_}),s&&(e=="desktop"||!t)&&v.createElement(nu,null),l&&C=="awaiting_connection"&&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=sU;d();p();h();d();p();h();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 uU=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=uU;d();p();h();var cU=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=cU;var fU=()=>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=fU;d();p();h();var ot=pe(we());d();p();h();var Iw=pe(we());var dU=Iw["useId".toString()]||(()=>{}),hU=0;function E0(e){let[t,r]=Iw.useState(dU());return Qa(()=>{e||r(n=>n!=null?n:String(hU++))},[e]),e||(t?`radix-${t}`:"")}d();p();h();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),C=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||(pU(wU(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]=mU(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:C,onKeyDown:I}))});function pU(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(us(n,{select:t}),document.activeElement!==r)return}function mU(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(!gU(r,{upTo:t}))return r}function gU(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 vU(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&&vU(e)&&t&&e.select()}}var qT=yU();function yU(){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 wU(e){return e.filter(t=>t.tagName!=="A")}d();p();h();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}d();p();h();d();p();h();var T0=pe(we());d();p();h();var Fr=pe(we());d();p();h();var cs="right-scroll-bar-position",fs="width-before-scroll-bar",Lw="with-scroll-bars-hidden",Fw="--removed-body-scroll-bar-size";d();p();h();d();p();h();function JT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}d();p();h();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}d();p();h();function $w(e,t){return t7(t||null,function(r){return e.forEach(function(n){return JT(n,r)})})}d();p();h();d();p();h();d();p();h();function xU(e){return e}function _U(e,t){t===void 0&&(t=xU);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=_U(null);return t.options=qn({async:!0,ssr:!1},e),t}d();p();h();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,C=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=C,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};d();p();h();d();p();h();var Vt=pe(we());d();p();h();d();p();h();var C0=pe(we());d();p();h();d();p();h();d();p();h();var a7=pe(we());d();p();h();d();p();h();var o7;var i7=function(){if(o7)return o7;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i7();return t&&e.setAttribute("nonce",t),e}function SU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function EU(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=bU())&&(SU(t,r),EU(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};d();p();h();var MU={left:0,top:0,right:0,gap:0},Hw=function(e){return parseInt(e||"",10)||0},CU=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 MU;var t=CU(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 kU=Yc(),TU=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
33
|
.`.concat(Lw,` {
|
|
34
34
|
overflow: hidden `).concat(n,`;
|
|
35
35
|
padding-right: `).concat(s,"px ").concat(n,`;
|