mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-08-10 15:30:46 -04:00
2095 lines
270 KiB
JavaScript
2095 lines
270 KiB
JavaScript
var Wp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var dw=Wp((ww,Vr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var no={},Yp={get exports(){return no},set exports(e){no=e}},nl={},k={},Xp={get exports(){return k},set exports(e){k=e}},U={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var bo=Symbol.for("react.element"),Zp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Jp=Symbol.for("react.strict_mode"),e0=Symbol.for("react.profiler"),t0=Symbol.for("react.provider"),n0=Symbol.for("react.context"),r0=Symbol.for("react.forward_ref"),o0=Symbol.for("react.suspense"),i0=Symbol.for("react.memo"),l0=Symbol.for("react.lazy"),Ha=Symbol.iterator;function s0(e){return e===null||typeof e!="object"?null:(e=Ha&&e[Ha]||e["@@iterator"],typeof e=="function"?e:null)}var Ef={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sf=Object.assign,bf={};function kr(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Ef}kr.prototype.isReactComponent={};kr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cf(){}Cf.prototype=kr.prototype;function xu(e,t,n){this.props=e,this.context=t,this.refs=bf,this.updater=n||Ef}var ku=xu.prototype=new Cf;ku.constructor=xu;Sf(ku,kr.prototype);ku.isPureReactComponent=!0;var za=Array.isArray,_f=Object.prototype.hasOwnProperty,Eu={current:null},Tf={key:!0,ref:!0,__self:!0,__source:!0};function Af(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)_f.call(t,r)&&!Tf.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:bo,type:e,key:i,ref:l,props:o,_owner:Eu.current}}function u0(e,t){return{$$typeof:bo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Su(e){return typeof e=="object"&&e!==null&&e.$$typeof===bo}function a0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Oa=/\/+/g;function Il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?a0(""+e.key):t.toString(36)}function ci(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case bo:case Zp:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Il(l,0):r,za(o)?(n="",e!=null&&(n=e.replace(Oa,"$&/")+"/"),ci(o,t,n,"",function(a){return a})):o!=null&&(Su(o)&&(o=u0(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Oa,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",za(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+Il(i,s);l+=ci(i,t,n,u,o)}else if(u=s0(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+Il(i,s++),l+=ci(i,t,n,u,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Uo(e,t,n){if(e==null)return e;var r=[],o=0;return ci(e,r,"","",function(i){return t.call(n,i,o++)}),r}function c0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _e={current:null},fi={transition:null},f0={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:fi,ReactCurrentOwner:Eu};U.Children={map:Uo,forEach:function(e,t,n){Uo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Uo(e,function(){t++}),t},toArray:function(e){return Uo(e,function(t){return t})||[]},only:function(e){if(!Su(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=kr;U.Fragment=qp;U.Profiler=e0;U.PureComponent=xu;U.StrictMode=Jp;U.Suspense=o0;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f0;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Sf({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Eu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)_f.call(t,u)&&!Tf.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:bo,type:e.type,key:o,ref:i,props:r,_owner:l}};U.createContext=function(e){return e={$$typeof:n0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t0,_context:e},e.Consumer=e};U.createElement=Af;U.createFactory=function(e){var t=Af.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:r0,render:e}};U.isValidElement=Su;U.lazy=function(e){return{$$typeof:l0,_payload:{_status:-1,_result:e},_init:c0}};U.memo=function(e,t){return{$$typeof:i0,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=fi.transition;fi.transition={};try{e()}finally{fi.transition=t}};U.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};U.useCallback=function(e,t){return _e.current.useCallback(e,t)};U.useContext=function(e){return _e.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return _e.current.useDeferredValue(e)};U.useEffect=function(e,t){return _e.current.useEffect(e,t)};U.useId=function(){return _e.current.useId()};U.useImperativeHandle=function(e,t,n){return _e.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return _e.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return _e.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return _e.current.useMemo(e,t)};U.useReducer=function(e,t,n){return _e.current.useReducer(e,t,n)};U.useRef=function(e){return _e.current.useRef(e)};U.useState=function(e){return _e.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return _e.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return _e.current.useTransition()};U.version="18.2.0";(function(e){e.exports=U})(Xp);const de=Qp(k);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var d0=k,h0=Symbol.for("react.element"),p0=Symbol.for("react.fragment"),m0=Object.prototype.hasOwnProperty,y0=d0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g0={key:!0,ref:!0,__self:!0,__source:!0};function Nf(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)m0.call(t,r)&&!g0.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:h0,type:e,key:i,ref:l,props:o,_owner:y0.current}}nl.Fragment=p0;nl.jsx=Nf;nl.jsxs=Nf;(function(e){e.exports=nl})(Yp);const If=no.Fragment,$=no.jsx,ke=no.jsxs;var ps={},ms={},v0={get exports(){return ms},set exports(e){ms=e}},De={},ys={},w0={get exports(){return ys},set exports(e){ys=e}},Lf={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(N,z){var H=N.length;N.push(z);e:for(;0<H;){var re=H-1>>>1,ae=N[re];if(0<o(ae,z))N[re]=z,N[H]=ae,H=re;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var z=N[0],H=N.pop();if(H!==z){N[0]=H;e:for(var re=0,ae=N.length,Oo=ae>>>1;re<Oo;){var mn=2*(re+1)-1,Nl=N[mn],yn=mn+1,Bo=N[yn];if(0>o(Nl,H))yn<ae&&0>o(Bo,Nl)?(N[re]=Bo,N[yn]=H,re=yn):(N[re]=Nl,N[mn]=H,re=mn);else if(yn<ae&&0>o(Bo,H))N[re]=Bo,N[yn]=H,re=yn;else break e}}return z}function o(N,z){var H=N.sortIndex-z.sortIndex;return H!==0?H:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],f=1,c=null,d=3,p=!1,w=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(N){for(var z=n(a);z!==null;){if(z.callback===null)r(a);else if(z.startTime<=N)r(a),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(a)}}function g(N){if(v=!1,y(N),!w)if(n(u)!==null)w=!0,pn(x);else{var z=n(a);z!==null&&$t(g,z.startTime-N)}}function x(N,z){w=!1,v&&(v=!1,m(T),T=-1),p=!0;var H=d;try{for(y(z),c=n(u);c!==null&&(!(c.expirationTime>z)||N&&!L());){var re=c.callback;if(typeof re=="function"){c.callback=null,d=c.priorityLevel;var ae=re(c.expirationTime<=z);z=e.unstable_now(),typeof ae=="function"?c.callback=ae:c===n(u)&&r(u),y(z)}else r(u);c=n(u)}if(c!==null)var Oo=!0;else{var mn=n(a);mn!==null&&$t(g,mn.startTime-z),Oo=!1}return Oo}finally{c=null,d=H,p=!1}}var C=!1,S=null,T=-1,R=5,b=-1;function L(){return!(e.unstable_now()-b<R)}function P(){if(S!==null){var N=e.unstable_now();b=N;var z=!0;try{z=S(!0,N)}finally{z?W():(C=!1,S=null)}}else C=!1}var W;if(typeof h=="function")W=function(){h(P)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ut=ne.port2;ne.port1.onmessage=P,W=function(){ut.postMessage(null)}}else W=function(){E(P,0)};function pn(N){S=N,C||(C=!0,W())}function $t(N,z){T=E(function(){N(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,pn(x))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(N){switch(d){case 1:case 2:case 3:var z=3;break;default:z=d}var H=d;d=z;try{return N()}finally{d=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var H=d;d=N;try{return z()}finally{d=H}},e.unstable_scheduleCallback=function(N,z,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?re+H:re):H=re,N){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=H+ae,N={id:f++,callback:z,priorityLevel:N,startTime:H,expirationTime:ae,sortIndex:-1},H>re?(N.sortIndex=H,t(a,N),n(u)===null&&N===n(a)&&(v?(m(T),T=-1):v=!0,$t(g,H-re))):(N.sortIndex=ae,t(u,N),w||p||(w=!0,pn(x))),N},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(N){var z=d;return function(){var H=d;d=z;try{return N.apply(this,arguments)}finally{d=H}}}})(Lf);(function(e){e.exports=Lf})(w0);/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Pf=k,Fe=ys;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $f=new Set,ro={};function Rn(e,t){sr(e,t),sr(e+"Capture",t)}function sr(e,t){for(ro[e]=t,e=0;e<t.length;e++)$f.add(t[e])}var _t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=Object.prototype.hasOwnProperty,x0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ba={},Ua={};function k0(e){return gs.call(Ua,e)?!0:gs.call(Ba,e)?!1:x0.test(e)?Ua[e]=!0:(Ba[e]=!0,!1)}function E0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function S0(e,t,n,r){if(t===null||typeof t>"u"||E0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new Te(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ve[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var bu=/[\-:]([a-z])/g;function Cu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bu,Cu);ve[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bu,Cu);ve[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bu,Cu);ve[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function _u(e,t,n,r){var o=ve.hasOwnProperty(t)?ve[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(S0(t,n,o,r)&&(n=null),r||o===null?k0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Lt=Pf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fo=Symbol.for("react.element"),Fn=Symbol.for("react.portal"),Dn=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),vs=Symbol.for("react.profiler"),Rf=Symbol.for("react.provider"),Hf=Symbol.for("react.context"),Au=Symbol.for("react.forward_ref"),ws=Symbol.for("react.suspense"),xs=Symbol.for("react.suspense_list"),Nu=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),zf=Symbol.for("react.offscreen"),Fa=Symbol.iterator;function Ar(e){return e===null||typeof e!="object"?null:(e=Fa&&e[Fa]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,Ll;function Fr(e){if(Ll===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ll=t&&t[1]||""}return`
|
||
`+Ll+e}var Pl=!1;function $l(e,t){if(!e||Pl)return"";Pl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(`
|
||
`),i=r.stack.split(`
|
||
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var u=`
|
||
`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{Pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fr(e):""}function b0(e){switch(e.tag){case 5:return Fr(e.type);case 16:return Fr("Lazy");case 13:return Fr("Suspense");case 19:return Fr("SuspenseList");case 0:case 2:case 15:return e=$l(e.type,!1),e;case 11:return e=$l(e.type.render,!1),e;case 1:return e=$l(e.type,!0),e;default:return""}}function ks(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 Dn:return"Fragment";case Fn:return"Portal";case vs:return"Profiler";case Tu:return"StrictMode";case ws:return"Suspense";case xs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hf:return(e.displayName||"Context")+".Consumer";case Rf:return(e._context.displayName||"Context")+".Provider";case Au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nu:return t=e.displayName||null,t!==null?t:ks(e.type)||"Memo";case Dt:t=e._payload,e=e._init;try{return ks(e(t))}catch{}}return null}function C0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ks(t);case 8:return t===Tu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Of(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _0(e){var t=Of(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Do(e){e._valueTracker||(e._valueTracker=_0(e))}function Bf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Of(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Es(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Uf(e,t){t=t.checked,t!=null&&_u(e,"checked",t,!1)}function Ss(e,t){Uf(e,t);var n=ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bs(e,t.type,n):t.hasOwnProperty("defaultValue")&&bs(e,t.type,ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ja(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bs(e,t,n){(t!=="number"||Si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Jn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ln(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Cs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ma(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Dr(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function Ff(e,t){var n=ln(t.value),r=ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Va(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Df(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _s(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Df(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var jo,jf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(jo=jo||document.createElement("div"),jo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=jo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T0=["Webkit","ms","Moz","O"];Object.keys(Kr).forEach(function(e){T0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kr[t]=Kr[e]})});function Mf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kr.hasOwnProperty(e)&&Kr[e]?(""+t).trim():t+"px"}function Vf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Mf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var A0=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ts(e,t){if(t){if(A0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function As(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ns=null;function Iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Is=null,er=null,tr=null;function Ka(e){if(e=To(e)){if(typeof Is!="function")throw Error(_(280));var t=e.stateNode;t&&(t=sl(t),Is(e.stateNode,e.type,t))}}function Kf(e){er?tr?tr.push(e):tr=[e]:er=e}function Wf(){if(er){var e=er,t=tr;if(tr=er=null,Ka(e),t)for(e=0;e<t.length;e++)Ka(t[e])}}function Qf(e,t){return e(t)}function Gf(){}var Rl=!1;function Yf(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return Qf(e,t,n)}finally{Rl=!1,(er!==null||tr!==null)&&(Gf(),Wf())}}function io(e,t){var n=e.stateNode;if(n===null)return null;var r=sl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Ls=!1;if(_t)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){Ls=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{Ls=!1}function N0(e,t,n,r,o,i,l,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var Wr=!1,bi=null,Ci=!1,Ps=null,I0={onError:function(e){Wr=!0,bi=e}};function L0(e,t,n,r,o,i,l,s,u){Wr=!1,bi=null,N0.apply(I0,arguments)}function P0(e,t,n,r,o,i,l,s,u){if(L0.apply(this,arguments),Wr){if(Wr){var a=bi;Wr=!1,bi=null}else throw Error(_(198));Ci||(Ci=!0,Ps=a)}}function Hn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xf(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wa(e){if(Hn(e)!==e)throw Error(_(188))}function $0(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Wa(o),e;if(i===r)return Wa(o),t;i=i.sibling}throw Error(_(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Zf(e){return e=$0(e),e!==null?qf(e):null}function qf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qf(e);if(t!==null)return t;e=e.sibling}return null}var Jf=Fe.unstable_scheduleCallback,Qa=Fe.unstable_cancelCallback,R0=Fe.unstable_shouldYield,H0=Fe.unstable_requestPaint,oe=Fe.unstable_now,z0=Fe.unstable_getCurrentPriorityLevel,Lu=Fe.unstable_ImmediatePriority,ed=Fe.unstable_UserBlockingPriority,_i=Fe.unstable_NormalPriority,O0=Fe.unstable_LowPriority,td=Fe.unstable_IdlePriority,rl=null,ht=null;function B0(e){if(ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(rl,e,void 0,(e.current.flags&128)===128)}catch{}}var ot=Math.clz32?Math.clz32:D0,U0=Math.log,F0=Math.LN2;function D0(e){return e>>>=0,e===0?32:31-(U0(e)/F0|0)|0}var Mo=64,Vo=4194304;function jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ti(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=jr(s):(i&=l,i!==0&&(r=jr(i)))}else l=n&~o,l!==0?r=jr(l):i!==0&&(r=jr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ot(t),o=1<<n,r|=e[n],t&=~o;return r}function j0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function M0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-ot(i),s=1<<l,u=o[l];u===-1?(!(s&n)||s&r)&&(o[l]=j0(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function $s(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nd(){var e=Mo;return Mo<<=1,!(Mo&4194240)&&(Mo=64),e}function Hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Co(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ot(t),e[t]=n}function V0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Pu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var K=0;function rd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var od,$u,id,ld,sd,Rs=!1,Ko=[],Yt=null,Xt=null,Zt=null,lo=new Map,so=new Map,Vt=[],K0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ga(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Zt=null;break;case"pointerover":case"pointerout":lo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(t.pointerId)}}function Ir(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=To(t),t!==null&&$u(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function W0(e,t,n,r,o){switch(t){case"focusin":return Yt=Ir(Yt,e,t,n,r,o),!0;case"dragenter":return Xt=Ir(Xt,e,t,n,r,o),!0;case"mouseover":return Zt=Ir(Zt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return lo.set(i,Ir(lo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,so.set(i,Ir(so.get(i)||null,e,t,n,r,o)),!0}return!1}function ud(e){var t=kn(e.target);if(t!==null){var n=Hn(t);if(n!==null){if(t=n.tag,t===13){if(t=Xf(n),t!==null){e.blockedOn=t,sd(e.priority,function(){id(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ns=r,n.target.dispatchEvent(r),Ns=null}else return t=To(n),t!==null&&$u(t),e.blockedOn=n,!1;t.shift()}return!0}function Ya(e,t,n){di(e)&&n.delete(t)}function Q0(){Rs=!1,Yt!==null&&di(Yt)&&(Yt=null),Xt!==null&&di(Xt)&&(Xt=null),Zt!==null&&di(Zt)&&(Zt=null),lo.forEach(Ya),so.forEach(Ya)}function Lr(e,t){e.blockedOn===t&&(e.blockedOn=null,Rs||(Rs=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Q0)))}function uo(e){function t(o){return Lr(o,e)}if(0<Ko.length){Lr(Ko[0],e);for(var n=1;n<Ko.length;n++){var r=Ko[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&Lr(Yt,e),Xt!==null&&Lr(Xt,e),Zt!==null&&Lr(Zt,e),lo.forEach(t),so.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)ud(n),n.blockedOn===null&&Vt.shift()}var nr=Lt.ReactCurrentBatchConfig,Ai=!0;function G0(e,t,n,r){var o=K,i=nr.transition;nr.transition=null;try{K=1,Ru(e,t,n,r)}finally{K=o,nr.transition=i}}function Y0(e,t,n,r){var o=K,i=nr.transition;nr.transition=null;try{K=4,Ru(e,t,n,r)}finally{K=o,nr.transition=i}}function Ru(e,t,n,r){if(Ai){var o=Hs(e,t,n,r);if(o===null)Kl(e,t,r,Ni,n),Ga(e,r);else if(W0(o,e,t,n,r))r.stopPropagation();else if(Ga(e,r),t&4&&-1<K0.indexOf(e)){for(;o!==null;){var i=To(o);if(i!==null&&od(i),i=Hs(e,t,n,r),i===null&&Kl(e,t,r,Ni,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Kl(e,t,r,null,n)}}var Ni=null;function Hs(e,t,n,r){if(Ni=null,e=Iu(r),e=kn(e),e!==null)if(t=Hn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ni=e,null}function ad(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(z0()){case Lu:return 1;case ed:return 4;case _i:case O0:return 16;case td:return 536870912;default:return 16}default:return 16}}var Wt=null,Hu=null,hi=null;function cd(){if(hi)return hi;var e,t=Hu,n=t.length,r,o="value"in Wt?Wt.value:Wt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return hi=o.slice(e,1<r?1-r:void 0)}function pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wo(){return!0}function Xa(){return!1}function je(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wo:Xa,this.isPropagationStopped=Xa,this}return ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wo)},persist:function(){},isPersistent:Wo}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zu=je(Er),_o=ee({},Er,{view:0,detail:0}),X0=je(_o),zl,Ol,Pr,ol=ee({},_o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(zl=e.screenX-Pr.screenX,Ol=e.screenY-Pr.screenY):Ol=zl=0,Pr=e),zl)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),Za=je(ol),Z0=ee({},ol,{dataTransfer:0}),q0=je(Z0),J0=ee({},_o,{relatedTarget:0}),Bl=je(J0),em=ee({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),tm=je(em),nm=ee({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rm=je(nm),om=ee({},Er,{data:0}),qa=je(om),im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function um(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function Ou(){return um}var am=ee({},_o,{key:function(e){if(e.key){var t=im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cm=je(am),fm=ee({},ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ja=je(fm),dm=ee({},_o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),hm=je(dm),pm=ee({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=je(pm),ym=ee({},ol,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gm=je(ym),vm=[9,13,27,32],Bu=_t&&"CompositionEvent"in window,Qr=null;_t&&"documentMode"in document&&(Qr=document.documentMode);var wm=_t&&"TextEvent"in window&&!Qr,fd=_t&&(!Bu||Qr&&8<Qr&&11>=Qr),ec=String.fromCharCode(32),tc=!1;function dd(e,t){switch(e){case"keyup":return vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function xm(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(tc=!0,ec);case"textInput":return e=t.data,e===ec&&tc?null:e;default:return null}}function km(e,t){if(jn)return e==="compositionend"||!Bu&&dd(e,t)?(e=cd(),hi=Hu=Wt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return fd&&t.locale!=="ko"?null:t.data;default:return null}}var Em={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Em[e.type]:t==="textarea"}function pd(e,t,n,r){Kf(r),t=Ii(t,"onChange"),0<t.length&&(n=new zu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gr=null,ao=null;function Sm(e){Cd(e,0)}function il(e){var t=Kn(e);if(Bf(t))return e}function bm(e,t){if(e==="change")return t}var md=!1;if(_t){var Ul;if(_t){var Fl="oninput"in document;if(!Fl){var rc=document.createElement("div");rc.setAttribute("oninput","return;"),Fl=typeof rc.oninput=="function"}Ul=Fl}else Ul=!1;md=Ul&&(!document.documentMode||9<document.documentMode)}function oc(){Gr&&(Gr.detachEvent("onpropertychange",yd),ao=Gr=null)}function yd(e){if(e.propertyName==="value"&&il(ao)){var t=[];pd(t,ao,e,Iu(e)),Yf(Sm,t)}}function Cm(e,t,n){e==="focusin"?(oc(),Gr=t,ao=n,Gr.attachEvent("onpropertychange",yd)):e==="focusout"&&oc()}function _m(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return il(ao)}function Tm(e,t){if(e==="click")return il(t)}function Am(e,t){if(e==="input"||e==="change")return il(t)}function Nm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lt=typeof Object.is=="function"?Object.is:Nm;function co(e,t){if(lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!gs.call(t,o)||!lt(e[o],t[o]))return!1}return!0}function ic(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lc(e,t){var n=ic(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ic(n)}}function gd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vd(){for(var e=window,t=Si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Si(e.document)}return t}function Uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Im(e){var t=vd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gd(n.ownerDocument.documentElement,n)){if(r!==null&&Uu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lc(n,i);var l=lc(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Lm=_t&&"documentMode"in document&&11>=document.documentMode,Mn=null,zs=null,Yr=null,Os=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Os||Mn==null||Mn!==Si(r)||(r=Mn,"selectionStart"in r&&Uu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&co(Yr,r)||(Yr=r,r=Ii(zs,"onSelect"),0<r.length&&(t=new zu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Mn)))}function Qo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vn={animationend:Qo("Animation","AnimationEnd"),animationiteration:Qo("Animation","AnimationIteration"),animationstart:Qo("Animation","AnimationStart"),transitionend:Qo("Transition","TransitionEnd")},Dl={},wd={};_t&&(wd=document.createElement("div").style,"AnimationEvent"in window||(delete Vn.animationend.animation,delete Vn.animationiteration.animation,delete Vn.animationstart.animation),"TransitionEvent"in window||delete Vn.transitionend.transition);function ll(e){if(Dl[e])return Dl[e];if(!Vn[e])return e;var t=Vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wd)return Dl[e]=t[n];return e}var xd=ll("animationend"),kd=ll("animationiteration"),Ed=ll("animationstart"),Sd=ll("transitionend"),bd=new Map,uc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function cn(e,t){bd.set(e,t),Rn(t,[e])}for(var jl=0;jl<uc.length;jl++){var Ml=uc[jl],Pm=Ml.toLowerCase(),$m=Ml[0].toUpperCase()+Ml.slice(1);cn(Pm,"on"+$m)}cn(xd,"onAnimationEnd");cn(kd,"onAnimationIteration");cn(Ed,"onAnimationStart");cn("dblclick","onDoubleClick");cn("focusin","onFocus");cn("focusout","onBlur");cn(Sd,"onTransitionEnd");sr("onMouseEnter",["mouseout","mouseover"]);sr("onMouseLeave",["mouseout","mouseover"]);sr("onPointerEnter",["pointerout","pointerover"]);sr("onPointerLeave",["pointerout","pointerover"]);Rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function ac(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,P0(r,t,void 0,e),e.currentTarget=null}function Cd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;ac(o,s,a),i=u}else for(l=0;l<r.length;l++){if(s=r[l],u=s.instance,a=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;ac(o,s,a),i=u}}}if(Ci)throw e=Ps,Ci=!1,Ps=null,e}function G(e,t){var n=t[js];n===void 0&&(n=t[js]=new Set);var r=e+"__bubble";n.has(r)||(_d(t,e,2,!1),n.add(r))}function Vl(e,t,n){var r=0;t&&(r|=4),_d(n,e,r,t)}var Go="_reactListening"+Math.random().toString(36).slice(2);function fo(e){if(!e[Go]){e[Go]=!0,$f.forEach(function(n){n!=="selectionchange"&&(Rm.has(n)||Vl(n,!1,e),Vl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Go]||(t[Go]=!0,Vl("selectionchange",!1,t))}}function _d(e,t,n,r){switch(ad(t)){case 1:var o=G0;break;case 4:o=Y0;break;default:o=Ru}n=o.bind(null,t,n,e),o=void 0,!Ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Kl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;l=l.return}for(;s!==null;){if(l=kn(s),l===null)return;if(u=l.tag,u===5||u===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Yf(function(){var a=i,f=Iu(n),c=[];e:{var d=bd.get(e);if(d!==void 0){var p=zu,w=e;switch(e){case"keypress":if(pi(n)===0)break e;case"keydown":case"keyup":p=cm;break;case"focusin":w="focus",p=Bl;break;case"focusout":w="blur",p=Bl;break;case"beforeblur":case"afterblur":p=Bl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Za;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=q0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=hm;break;case xd:case kd:case Ed:p=tm;break;case Sd:p=mm;break;case"scroll":p=X0;break;case"wheel":p=gm;break;case"copy":case"cut":case"paste":p=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ja}var v=(t&4)!==0,E=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var h=a,y;h!==null;){y=h;var g=y.stateNode;if(y.tag===5&&g!==null&&(y=g,m!==null&&(g=io(h,m),g!=null&&v.push(ho(h,g,y)))),E)break;h=h.return}0<v.length&&(d=new p(d,w,null,n,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Ns&&(w=n.relatedTarget||n.fromElement)&&(kn(w)||w[Tt]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=a,w=w?kn(w):null,w!==null&&(E=Hn(w),w!==E||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=a),p!==w)){if(v=Za,g="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ja,g="onPointerLeave",m="onPointerEnter",h="pointer"),E=p==null?d:Kn(p),y=w==null?d:Kn(w),d=new v(g,h+"leave",p,n,f),d.target=E,d.relatedTarget=y,g=null,kn(f)===a&&(v=new v(m,h+"enter",w,n,f),v.target=y,v.relatedTarget=E,g=v),E=g,p&&w)t:{for(v=p,m=w,h=0,y=v;y;y=On(y))h++;for(y=0,g=m;g;g=On(g))y++;for(;0<h-y;)v=On(v),h--;for(;0<y-h;)m=On(m),y--;for(;h--;){if(v===m||m!==null&&v===m.alternate)break t;v=On(v),m=On(m)}v=null}else v=null;p!==null&&cc(c,d,p,v,!1),w!==null&&E!==null&&cc(c,E,w,v,!0)}}e:{if(d=a?Kn(a):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var x=bm;else if(nc(d))if(md)x=Am;else{x=_m;var C=Cm}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=Tm);if(x&&(x=x(e,a))){pd(c,x,n,f);break e}C&&C(e,d,a),e==="focusout"&&(C=d._wrapperState)&&C.controlled&&d.type==="number"&&bs(d,"number",d.value)}switch(C=a?Kn(a):window,e){case"focusin":(nc(C)||C.contentEditable==="true")&&(Mn=C,zs=a,Yr=null);break;case"focusout":Yr=zs=Mn=null;break;case"mousedown":Os=!0;break;case"contextmenu":case"mouseup":case"dragend":Os=!1,sc(c,n,f);break;case"selectionchange":if(Lm)break;case"keydown":case"keyup":sc(c,n,f)}var S;if(Bu)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else jn?dd(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(fd&&n.locale!=="ko"&&(jn||T!=="onCompositionStart"?T==="onCompositionEnd"&&jn&&(S=cd()):(Wt=f,Hu="value"in Wt?Wt.value:Wt.textContent,jn=!0)),C=Ii(a,T),0<C.length&&(T=new qa(T,e,null,n,f),c.push({event:T,listeners:C}),S?T.data=S:(S=hd(n),S!==null&&(T.data=S)))),(S=wm?xm(e,n):km(e,n))&&(a=Ii(a,"onBeforeInput"),0<a.length&&(f=new qa("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=S))}Cd(c,t)})}function ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ii(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=io(e,n),i!=null&&r.unshift(ho(e,i,o)),i=io(e,t),i!=null&&r.push(ho(e,i,o))),e=e.return}return r}function On(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cc(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,o?(u=io(n,i),u!=null&&l.unshift(ho(n,u,s))):o||(u=io(n,i),u!=null&&l.push(ho(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Hm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function fc(e){return(typeof e=="string"?e:""+e).replace(Hm,`
|
||
`).replace(zm,"")}function Yo(e,t,n){if(t=fc(t),fc(e)!==t&&n)throw Error(_(425))}function Li(){}var Bs=null,Us=null;function Fs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ds=typeof setTimeout=="function"?setTimeout:void 0,Om=typeof clearTimeout=="function"?clearTimeout:void 0,dc=typeof Promise=="function"?Promise:void 0,Bm=typeof queueMicrotask=="function"?queueMicrotask:typeof dc<"u"?function(e){return dc.resolve(null).then(e).catch(Um)}:Ds;function Um(e){setTimeout(function(){throw e})}function Wl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),uo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);uo(t)}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Sr=Math.random().toString(36).slice(2),dt="__reactFiber$"+Sr,po="__reactProps$"+Sr,Tt="__reactContainer$"+Sr,js="__reactEvents$"+Sr,Fm="__reactListeners$"+Sr,Dm="__reactHandles$"+Sr;function kn(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hc(e);e!==null;){if(n=e[dt])return n;e=hc(e)}return t}e=n,n=e.parentNode}return null}function To(e){return e=e[dt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function sl(e){return e[po]||null}var Ms=[],Wn=-1;function fn(e){return{current:e}}function Y(e){0>Wn||(e.current=Ms[Wn],Ms[Wn]=null,Wn--)}function Q(e,t){Wn++,Ms[Wn]=e.current,e.current=t}var sn={},Se=fn(sn),Le=fn(!1),An=sn;function ur(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function Pi(){Y(Le),Y(Se)}function pc(e,t,n){if(Se.current!==sn)throw Error(_(168));Q(Se,t),Q(Le,n)}function Td(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(_(108,C0(e)||"Unknown",o));return ee({},n,r)}function $i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,An=Se.current,Q(Se,e),Q(Le,Le.current),!0}function mc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Td(e,t,An),r.__reactInternalMemoizedMergedChildContext=e,Y(Le),Y(Se),Q(Se,e)):Y(Le),Q(Le,n)}var xt=null,ul=!1,Ql=!1;function Ad(e){xt===null?xt=[e]:xt.push(e)}function jm(e){ul=!0,Ad(e)}function dn(){if(!Ql&&xt!==null){Ql=!0;var e=0,t=K;try{var n=xt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,ul=!1}catch(o){throw xt!==null&&(xt=xt.slice(e+1)),Jf(Lu,dn),o}finally{K=t,Ql=!1}}return null}var Qn=[],Gn=0,Ri=null,Hi=0,Ke=[],We=0,Nn=null,kt=1,Et="";function vn(e,t){Qn[Gn++]=Hi,Qn[Gn++]=Ri,Ri=e,Hi=t}function Nd(e,t,n){Ke[We++]=kt,Ke[We++]=Et,Ke[We++]=Nn,Nn=e;var r=kt;e=Et;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var i=32-ot(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,kt=1<<32-ot(t)+o|n<<o|r,Et=i+e}else kt=1<<i|n<<o|r,Et=e}function Fu(e){e.return!==null&&(vn(e,1),Nd(e,1,0))}function Du(e){for(;e===Ri;)Ri=Qn[--Gn],Qn[Gn]=null,Hi=Qn[--Gn],Qn[Gn]=null;for(;e===Nn;)Nn=Ke[--We],Ke[We]=null,Et=Ke[--We],Ke[We]=null,kt=Ke[--We],Ke[We]=null}var Ue=null,Be=null,Z=!1,nt=null;function Id(e,t){var n=Ge(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ue=e,Be=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ue=e,Be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nn!==null?{id:kt,overflow:Et}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ge(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ue=e,Be=null,!0):!1;default:return!1}}function Vs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ks(e){if(Z){var t=Be;if(t){var n=t;if(!yc(e,t)){if(Vs(e))throw Error(_(418));t=qt(n.nextSibling);var r=Ue;t&&yc(e,t)?Id(r,n):(e.flags=e.flags&-4097|2,Z=!1,Ue=e)}}else{if(Vs(e))throw Error(_(418));e.flags=e.flags&-4097|2,Z=!1,Ue=e}}}function gc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ue=e}function Xo(e){if(e!==Ue)return!1;if(!Z)return gc(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fs(e.type,e.memoizedProps)),t&&(t=Be)){if(Vs(e))throw Ld(),Error(_(418));for(;t;)Id(e,t),t=qt(t.nextSibling)}if(gc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Be=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Be=null}}else Be=Ue?qt(e.stateNode.nextSibling):null;return!0}function Ld(){for(var e=Be;e;)e=qt(e.nextSibling)}function ar(){Be=Ue=null,Z=!1}function ju(e){nt===null?nt=[e]:nt.push(e)}var Mm=Lt.ReactCurrentBatchConfig;function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var zi=fn(null),Oi=null,Yn=null,Mu=null;function Vu(){Mu=Yn=Oi=null}function Ku(e){var t=zi.current;Y(zi),e._currentValue=t}function Ws(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rr(e,t){Oi=e,Mu=Yn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Mu!==e)if(e={context:e,memoizedValue:t,next:null},Yn===null){if(Oi===null)throw Error(_(308));Yn=e,Oi.dependencies={lanes:0,firstContext:e}}else Yn=Yn.next=e;return t}var En=null;function Wu(e){En===null?En=[e]:En.push(e)}function Pd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wu(t)):(n.next=o.next,o.next=n),t.interleaved=n,At(e,r)}function At(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jt=!1;function Qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,At(e,n)}return o=r.interleaved,o===null?(t.next=t,Wu(r)):(t.next=o.next,o.next=t),r.interleaved=t,At(e,n)}function mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pu(e,n)}}function vc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bi(e,t,n,r){var o=e.updateQueue;jt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;l=0,f=a=u=null,s=i;do{var d=s.lane,p=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(d=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){c=w.call(p,c,d);break e}c=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,d=typeof w=="function"?w.call(p,c,d):w,d==null)break e;c=ee({},c,d);break e;case 2:jt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=p,u=c):f=f.next=p,l|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ln|=l,e.lanes=l,e.memoizedState=c}}function wc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(_(191,o));o.call(r)}}}var Rd=new Pf.Component().refs;function Qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var al={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),o=tn(e),i=bt(r,o);i.payload=t,n!=null&&(i.callback=n),t=Jt(e,i,o),t!==null&&(it(t,e,o,r),mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),o=tn(e),i=bt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Jt(e,i,o),t!==null&&(it(t,e,o,r),mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=tn(e),o=bt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Jt(e,o,r),t!==null&&(it(t,e,r,n),mi(t,e,r))}};function xc(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!co(n,r)||!co(o,i):!0}function Hd(e,t,n){var r=!1,o=sn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ze(i):(o=Pe(t)?An:Se.current,r=t.contextTypes,i=(r=r!=null)?ur(e,o):sn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=al,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function kc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&al.enqueueReplaceState(t,t.state,null)}function Gs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Rd,Qu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ze(i):(i=Pe(t)?An:Se.current,o.context=ur(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qs(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&al.enqueueReplaceState(o,o.state,null),Bi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function $r(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;s===Rd&&(s=o.refs={}),l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Zo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ec(e){var t=e._init;return t(e._payload)}function zd(e){function t(m,h){if(e){var y=m.deletions;y===null?(m.deletions=[h],m.flags|=16):y.push(h)}}function n(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function r(m,h){for(m=new Map;h!==null;)h.key!==null?m.set(h.key,h):m.set(h.index,h),h=h.sibling;return m}function o(m,h){return m=nn(m,h),m.index=0,m.sibling=null,m}function i(m,h,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<h?(m.flags|=2,h):y):(m.flags|=2,h)):(m.flags|=1048576,h)}function l(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,h,y,g){return h===null||h.tag!==6?(h=es(y,m.mode,g),h.return=m,h):(h=o(h,y),h.return=m,h)}function u(m,h,y,g){var x=y.type;return x===Dn?f(m,h,y.props.children,g,y.key):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Dt&&Ec(x)===h.type)?(g=o(h,y.props),g.ref=$r(m,h,y),g.return=m,g):(g=ki(y.type,y.key,y.props,null,m.mode,g),g.ref=$r(m,h,y),g.return=m,g)}function a(m,h,y,g){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=ts(y,m.mode,g),h.return=m,h):(h=o(h,y.children||[]),h.return=m,h)}function f(m,h,y,g,x){return h===null||h.tag!==7?(h=_n(y,m.mode,g,x),h.return=m,h):(h=o(h,y),h.return=m,h)}function c(m,h,y){if(typeof h=="string"&&h!==""||typeof h=="number")return h=es(""+h,m.mode,y),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Fo:return y=ki(h.type,h.key,h.props,null,m.mode,y),y.ref=$r(m,null,h),y.return=m,y;case Fn:return h=ts(h,m.mode,y),h.return=m,h;case Dt:var g=h._init;return c(m,g(h._payload),y)}if(Dr(h)||Ar(h))return h=_n(h,m.mode,y,null),h.return=m,h;Zo(m,h)}return null}function d(m,h,y,g){var x=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return x!==null?null:s(m,h,""+y,g);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Fo:return y.key===x?u(m,h,y,g):null;case Fn:return y.key===x?a(m,h,y,g):null;case Dt:return x=y._init,d(m,h,x(y._payload),g)}if(Dr(y)||Ar(y))return x!==null?null:f(m,h,y,g,null);Zo(m,y)}return null}function p(m,h,y,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return m=m.get(y)||null,s(h,m,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fo:return m=m.get(g.key===null?y:g.key)||null,u(h,m,g,x);case Fn:return m=m.get(g.key===null?y:g.key)||null,a(h,m,g,x);case Dt:var C=g._init;return p(m,h,y,C(g._payload),x)}if(Dr(g)||Ar(g))return m=m.get(y)||null,f(h,m,g,x,null);Zo(h,g)}return null}function w(m,h,y,g){for(var x=null,C=null,S=h,T=h=0,R=null;S!==null&&T<y.length;T++){S.index>T?(R=S,S=null):R=S.sibling;var b=d(m,S,y[T],g);if(b===null){S===null&&(S=R);break}e&&S&&b.alternate===null&&t(m,S),h=i(b,h,T),C===null?x=b:C.sibling=b,C=b,S=R}if(T===y.length)return n(m,S),Z&&vn(m,T),x;if(S===null){for(;T<y.length;T++)S=c(m,y[T],g),S!==null&&(h=i(S,h,T),C===null?x=S:C.sibling=S,C=S);return Z&&vn(m,T),x}for(S=r(m,S);T<y.length;T++)R=p(S,m,T,y[T],g),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?T:R.key),h=i(R,h,T),C===null?x=R:C.sibling=R,C=R);return e&&S.forEach(function(L){return t(m,L)}),Z&&vn(m,T),x}function v(m,h,y,g){var x=Ar(y);if(typeof x!="function")throw Error(_(150));if(y=x.call(y),y==null)throw Error(_(151));for(var C=x=null,S=h,T=h=0,R=null,b=y.next();S!==null&&!b.done;T++,b=y.next()){S.index>T?(R=S,S=null):R=S.sibling;var L=d(m,S,b.value,g);if(L===null){S===null&&(S=R);break}e&&S&&L.alternate===null&&t(m,S),h=i(L,h,T),C===null?x=L:C.sibling=L,C=L,S=R}if(b.done)return n(m,S),Z&&vn(m,T),x;if(S===null){for(;!b.done;T++,b=y.next())b=c(m,b.value,g),b!==null&&(h=i(b,h,T),C===null?x=b:C.sibling=b,C=b);return Z&&vn(m,T),x}for(S=r(m,S);!b.done;T++,b=y.next())b=p(S,m,T,b.value,g),b!==null&&(e&&b.alternate!==null&&S.delete(b.key===null?T:b.key),h=i(b,h,T),C===null?x=b:C.sibling=b,C=b);return e&&S.forEach(function(P){return t(m,P)}),Z&&vn(m,T),x}function E(m,h,y,g){if(typeof y=="object"&&y!==null&&y.type===Dn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fo:e:{for(var x=y.key,C=h;C!==null;){if(C.key===x){if(x=y.type,x===Dn){if(C.tag===7){n(m,C.sibling),h=o(C,y.props.children),h.return=m,m=h;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Dt&&Ec(x)===C.type){n(m,C.sibling),h=o(C,y.props),h.ref=$r(m,C,y),h.return=m,m=h;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===Dn?(h=_n(y.props.children,m.mode,g,y.key),h.return=m,m=h):(g=ki(y.type,y.key,y.props,null,m.mode,g),g.ref=$r(m,h,y),g.return=m,m=g)}return l(m);case Fn:e:{for(C=y.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=o(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ts(y,m.mode,g),h.return=m,m=h}return l(m);case Dt:return C=y._init,E(m,h,C(y._payload),g)}if(Dr(y))return w(m,h,y,g);if(Ar(y))return v(m,h,y,g);Zo(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,y),h.return=m,m=h):(n(m,h),h=es(y,m.mode,g),h.return=m,m=h),l(m)):n(m,h)}return E}var cr=zd(!0),Od=zd(!1),Ao={},pt=fn(Ao),mo=fn(Ao),yo=fn(Ao);function Sn(e){if(e===Ao)throw Error(_(174));return e}function Gu(e,t){switch(Q(yo,t),Q(mo,e),Q(pt,Ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_s(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_s(t,e)}Y(pt),Q(pt,t)}function fr(){Y(pt),Y(mo),Y(yo)}function Bd(e){Sn(yo.current);var t=Sn(pt.current),n=_s(t,e.type);t!==n&&(Q(mo,e),Q(pt,n))}function Yu(e){mo.current===e&&(Y(pt),Y(mo))}var q=fn(0);function Ui(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gl=[];function Xu(){for(var e=0;e<Gl.length;e++)Gl[e]._workInProgressVersionPrimary=null;Gl.length=0}var yi=Lt.ReactCurrentDispatcher,Yl=Lt.ReactCurrentBatchConfig,In=0,J=null,le=null,ce=null,Fi=!1,Xr=!1,go=0,Vm=0;function we(){throw Error(_(321))}function Zu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lt(e[n],t[n]))return!1;return!0}function qu(e,t,n,r,o,i){if(In=i,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yi.current=e===null||e.memoizedState===null?Gm:Ym,e=n(r,o),Xr){i=0;do{if(Xr=!1,go=0,25<=i)throw Error(_(301));i+=1,ce=le=null,t.updateQueue=null,yi.current=Xm,e=n(r,o)}while(Xr)}if(yi.current=Di,t=le!==null&&le.next!==null,In=0,ce=le=J=null,Fi=!1,t)throw Error(_(300));return e}function Ju(){var e=go!==0;return go=0,e}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?J.memoizedState=ce=e:ce=ce.next=e,ce}function qe(){if(le===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=ce===null?J.memoizedState:ce.next;if(t!==null)ce=t,le=e;else{if(e===null)throw Error(_(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},ce===null?J.memoizedState=ce=e:ce=ce.next=e}return ce}function vo(e,t){return typeof t=="function"?t(e):t}function Xl(e){var t=qe(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=le,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,u=null,a=i;do{var f=a.lane;if((In&f)===f)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=c,l=r):u=u.next=c,J.lanes|=f,Ln|=f}a=a.next}while(a!==null&&a!==i);u===null?l=r:u.next=s,lt(r,t.memoizedState)||(Ne=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,J.lanes|=i,Ln|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zl(e){var t=qe(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);lt(i,t.memoizedState)||(Ne=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ud(){}function Fd(e,t){var n=J,r=qe(),o=t(),i=!lt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ne=!0),r=r.queue,ea(Md.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,wo(9,jd.bind(null,n,r,o,t),void 0,null),he===null)throw Error(_(349));In&30||Dd(n,t,o)}return o}function Dd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function jd(e,t,n,r){t.value=n,t.getSnapshot=r,Vd(t)&&Kd(e)}function Md(e,t,n){return n(function(){Vd(t)&&Kd(e)})}function Vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lt(e,n)}catch{return!0}}function Kd(e){var t=At(e,1);t!==null&&it(t,e,1,-1)}function Sc(e){var t=ft();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Qm.bind(null,J,e),[t.memoizedState,e]}function wo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Wd(){return qe().memoizedState}function gi(e,t,n,r){var o=ft();J.flags|=e,o.memoizedState=wo(1|t,n,void 0,r===void 0?null:r)}function cl(e,t,n,r){var o=qe();r=r===void 0?null:r;var i=void 0;if(le!==null){var l=le.memoizedState;if(i=l.destroy,r!==null&&Zu(r,l.deps)){o.memoizedState=wo(t,n,i,r);return}}J.flags|=e,o.memoizedState=wo(1|t,n,i,r)}function bc(e,t){return gi(8390656,8,e,t)}function ea(e,t){return cl(2048,8,e,t)}function Qd(e,t){return cl(4,2,e,t)}function Gd(e,t){return cl(4,4,e,t)}function Yd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xd(e,t,n){return n=n!=null?n.concat([e]):null,cl(4,4,Yd.bind(null,t,e),n)}function ta(){}function Zd(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qd(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jd(e,t,n){return In&21?(lt(n,t)||(n=nd(),J.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ne=!0),e.memoizedState=n)}function Km(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=Yl.transition;Yl.transition={};try{e(!1),t()}finally{K=n,Yl.transition=r}}function eh(){return qe().memoizedState}function Wm(e,t,n){var r=tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},th(e))nh(t,n);else if(n=Pd(e,t,n,r),n!==null){var o=Ce();it(n,e,r,o),rh(n,t,r)}}function Qm(e,t,n){var r=tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(th(e))nh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,lt(s,l)){var u=t.interleaved;u===null?(o.next=o,Wu(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Pd(e,t,o,r),n!==null&&(o=Ce(),it(n,e,r,o),rh(n,t,r))}}function th(e){var t=e.alternate;return e===J||t!==null&&t===J}function nh(e,t){Xr=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pu(e,n)}}var Di={readContext:Ze,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},Gm={readContext:Ze,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:bc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gi(4194308,4,Yd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var n=ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wm.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:Sc,useDebugValue:ta,useDeferredValue:function(e){return ft().memoizedState=e},useTransition:function(){var e=Sc(!1),t=e[0];return e=Km.bind(null,e[1]),ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,o=ft();if(Z){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),he===null)throw Error(_(349));In&30||Dd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,bc(Md.bind(null,r,i,e),[e]),r.flags|=2048,wo(9,jd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ft(),t=he.identifierPrefix;if(Z){var n=Et,r=kt;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=go++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ym={readContext:Ze,useCallback:Zd,useContext:Ze,useEffect:ea,useImperativeHandle:Xd,useInsertionEffect:Qd,useLayoutEffect:Gd,useMemo:qd,useReducer:Xl,useRef:Wd,useState:function(){return Xl(vo)},useDebugValue:ta,useDeferredValue:function(e){var t=qe();return Jd(t,le.memoizedState,e)},useTransition:function(){var e=Xl(vo)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Ud,useSyncExternalStore:Fd,useId:eh,unstable_isNewReconciler:!1},Xm={readContext:Ze,useCallback:Zd,useContext:Ze,useEffect:ea,useImperativeHandle:Xd,useInsertionEffect:Qd,useLayoutEffect:Gd,useMemo:qd,useReducer:Zl,useRef:Wd,useState:function(){return Zl(vo)},useDebugValue:ta,useDeferredValue:function(e){var t=qe();return le===null?t.memoizedState=e:Jd(t,le.memoizedState,e)},useTransition:function(){var e=Zl(vo)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Ud,useSyncExternalStore:Fd,useId:eh,unstable_isNewReconciler:!1};function dr(e,t){try{var n="",r=t;do n+=b0(r),r=r.return;while(r);var o=n}catch(i){o=`
|
||
Error generating stack: `+i.message+`
|
||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ys(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zm=typeof WeakMap=="function"?WeakMap:Map;function oh(e,t,n){n=bt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mi||(Mi=!0,iu=r),Ys(e,t)},n}function ih(e,t,n){n=bt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ys(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ys(e,t),typeof r!="function"&&(en===null?en=new Set([this]):en.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Cc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=fy.bind(null,e,t,n),t.then(e,e))}function _c(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Tc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bt(-1,1),t.tag=2,Jt(n,t,1))),n.lanes|=1),e)}var qm=Lt.ReactCurrentOwner,Ne=!1;function be(e,t,n,r){t.child=e===null?Od(t,null,n,r):cr(t,e.child,n,r)}function Ac(e,t,n,r,o){n=n.render;var i=t.ref;return rr(t,o),r=qu(e,t,n,r,i,o),n=Ju(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nt(e,t,o)):(Z&&n&&Fu(t),t.flags|=1,be(e,t,r,o),t.child)}function Nc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!aa(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,lh(e,t,i,r,o)):(e=ki(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:co,n(l,r)&&e.ref===t.ref)return Nt(e,t,o)}return t.flags|=1,e=nn(i,r),e.ref=t.ref,e.return=t,t.child=e}function lh(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(co(i,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Nt(e,t,o)}return Xs(e,t,n,r,o)}function sh(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Zn,ze),ze|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Zn,ze),ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Q(Zn,ze),ze|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Q(Zn,ze),ze|=r;return be(e,t,o,n),t.child}function uh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xs(e,t,n,r,o){var i=Pe(n)?An:Se.current;return i=ur(t,i),rr(t,o),n=qu(e,t,n,r,i,o),r=Ju(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Nt(e,t,o)):(Z&&r&&Fu(t),t.flags|=1,be(e,t,n,o),t.child)}function Ic(e,t,n,r,o){if(Pe(n)){var i=!0;$i(t)}else i=!1;if(rr(t,o),t.stateNode===null)vi(e,t),Hd(t,n,r),Gs(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ze(a):(a=Pe(n)?An:Se.current,a=ur(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||u!==a)&&kc(t,l,r,a),jt=!1;var d=t.memoizedState;l.state=d,Bi(t,r,l,o),u=t.memoizedState,s!==r||d!==u||Le.current||jt?(typeof f=="function"&&(Qs(t,n,f,r),u=t.memoizedState),(s=jt||xc(t,n,s,r,d,u,a))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=a,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,$d(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:et(t.type,s),l.props=a,c=t.pendingProps,d=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ze(u):(u=Pe(n)?An:Se.current,u=ur(t,u));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==c||d!==u)&&kc(t,l,r,u),jt=!1,d=t.memoizedState,l.state=d,Bi(t,r,l,o);var w=t.memoizedState;s!==c||d!==w||Le.current||jt?(typeof p=="function"&&(Qs(t,n,p,r),w=t.memoizedState),(a=jt||xc(t,n,a,r,d,w,u)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=u,r=a):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Zs(e,t,n,r,i,o)}function Zs(e,t,n,r,o,i){uh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&mc(t,n,!1),Nt(e,t,i);r=t.stateNode,qm.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=cr(t,e.child,null,i),t.child=cr(t,null,s,i)):be(e,t,s,i),t.memoizedState=r.state,o&&mc(t,n,!0),t.child}function ah(e){var t=e.stateNode;t.pendingContext?pc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pc(e,t.context,!1),Gu(e,t.containerInfo)}function Lc(e,t,n,r,o){return ar(),ju(o),t.flags|=256,be(e,t,n,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function ch(e,t,n){var r=t.pendingProps,o=q.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Q(q,o&1),e===null)return Ks(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=hl(l,r,0,null),e=_n(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Js(n),t.memoizedState=qs,e):na(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Jm(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=nn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=nn(s,i):(i=_n(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=qs,r}return i=e.child,e=i.sibling,r=nn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function na(e,t){return t=hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qo(e,t,n,r){return r!==null&&ju(r),cr(t,e.child,null,n),e=na(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jm(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=ql(Error(_(422))),qo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=hl({mode:"visible",children:r.children},o,0,null),i=_n(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&cr(t,e.child,null,l),t.child.memoizedState=Js(l),t.memoizedState=qs,i);if(!(t.mode&1))return qo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(_(419)),r=ql(i,r,void 0),qo(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ne||s){if(r=he,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,At(e,o),it(r,e,o,-1))}return ua(),r=ql(Error(_(421))),qo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=dy.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Be=qt(o.nextSibling),Ue=t,Z=!0,nt=null,e!==null&&(Ke[We++]=kt,Ke[We++]=Et,Ke[We++]=Nn,kt=e.id,Et=e.overflow,Nn=t),t=na(t,r.children),t.flags|=4096,t)}function Pc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ws(e.return,t,n)}function Jl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function fh(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(be(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pc(e,n,t);else if(e.tag===19)Pc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(q,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ui(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Jl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ui(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Jl(t,!0,n,null,i);break;case"together":Jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ey(e,t,n){switch(t.tag){case 3:ah(t),ar();break;case 5:Bd(t);break;case 1:Pe(t.type)&&$i(t);break;case 4:Gu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Q(zi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?ch(e,t,n):(Q(q,q.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);Q(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,sh(e,t,n)}return Nt(e,t,n)}var dh,eu,hh,ph;dh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};eu=function(){};hh=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sn(pt.current);var i=null;switch(n){case"input":o=Es(e,o),r=Es(e,r),i=[];break;case"select":o=ee({},o,{value:void 0}),r=ee({},r,{value:void 0}),i=[];break;case"textarea":o=Cs(e,o),r=Cs(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Li)}Ts(n,r);var l;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var s=o[a];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(ro.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(ro.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&G("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};ph=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rr(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ty(e,t,n){var r=t.pendingProps;switch(Du(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Pe(t.type)&&Pi(),xe(t),null;case 3:return r=t.stateNode,fr(),Y(Le),Y(Se),Xu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(uu(nt),nt=null))),eu(e,t),xe(t),null;case 5:Yu(t);var o=Sn(yo.current);if(n=t.type,e!==null&&t.stateNode!=null)hh(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return xe(t),null}if(e=Sn(pt.current),Xo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dt]=t,r[po]=i,e=(t.mode&1)!==0,n){case"dialog":G("cancel",r),G("close",r);break;case"iframe":case"object":case"embed":G("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)G(Mr[o],r);break;case"source":G("error",r);break;case"img":case"image":case"link":G("error",r),G("load",r);break;case"details":G("toggle",r);break;case"input":Da(r,i),G("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},G("invalid",r);break;case"textarea":Ma(r,i),G("invalid",r)}Ts(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Yo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Yo(r.textContent,s,e),o=["children",""+s]):ro.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&G("scroll",r)}switch(n){case"input":Do(r),ja(r,i,!0);break;case"textarea":Do(r),Va(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Li)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Df(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[dt]=t,e[po]=r,dh(e,t,!1,!1),t.stateNode=e;e:{switch(l=As(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)G(Mr[o],e);o=r;break;case"source":G("error",e),o=r;break;case"img":case"image":case"link":G("error",e),G("load",e),o=r;break;case"details":G("toggle",e),o=r;break;case"input":Da(e,r),o=Es(e,r),G("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ee({},r,{value:void 0}),G("invalid",e);break;case"textarea":Ma(e,r),o=Cs(e,r),G("invalid",e);break;default:o=r}Ts(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?Vf(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&jf(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&oo(e,u):typeof u=="number"&&oo(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ro.hasOwnProperty(i)?u!=null&&i==="onScroll"&&G("scroll",e):u!=null&&_u(e,i,u,l))}switch(n){case"input":Do(e),ja(e,r,!1);break;case"textarea":Do(e),Va(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Jn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Jn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Li)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)ph(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Sn(yo.current),Sn(pt.current),Xo(t)){if(r=t.stateNode,n=t.memoizedProps,r[dt]=t,(i=r.nodeValue!==n)&&(e=Ue,e!==null))switch(e.tag){case 3:Yo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r}return xe(t),null;case 13:if(Y(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Be!==null&&t.mode&1&&!(t.flags&128))Ld(),ar(),t.flags|=98560,i=!1;else if(i=Xo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(_(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(_(317));i[dt]=t}else ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),i=!1}else nt!==null&&(uu(nt),nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?ue===0&&(ue=3):ua())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return fr(),eu(e,t),e===null&&fo(t.stateNode.containerInfo),xe(t),null;case 10:return Ku(t.type._context),xe(t),null;case 17:return Pe(t.type)&&Pi(),xe(t),null;case 19:if(Y(q),i=t.memoizedState,i===null)return xe(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)Rr(i,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Ui(e),l!==null){for(t.flags|=128,Rr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(q,q.current&1|2),t.child}e=e.sibling}i.tail!==null&&oe()>hr&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ui(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Z)return xe(t),null}else 2*oe()-i.renderingStartTime>hr&&n!==1073741824&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=oe(),t.sibling=null,n=q.current,Q(q,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function ny(e,t){switch(Du(t),t.tag){case 1:return Pe(t.type)&&Pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),Y(Le),Y(Se),Xu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(Y(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(q),null;case 4:return fr(),null;case 10:return Ku(t.type._context),null;case 22:case 23:return sa(),null;case 24:return null;default:return null}}var Jo=!1,Ee=!1,ry=typeof WeakSet=="function"?WeakSet:Set,I=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){te(e,t,r)}}var $c=!1;function oy(e,t){if(Bs=Ai,e=vd(),Uu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++a===o&&(s=l),d===i&&++f===r&&(u=l),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},Ai=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,E=w.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),E);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(g){te(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=$c,$c=!1,w}function Zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tu(t,n,i)}o=o.next}while(o!==r)}}function fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mh(e){var t=e.alternate;t!==null&&(e.alternate=null,mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[po],delete t[js],delete t[Fm],delete t[Dm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yh(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Li));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function ou(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}var pe=null,tt=!1;function Rt(e,t,n){for(n=n.child;n!==null;)gh(e,t,n),n=n.sibling}function gh(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:Ee||Xn(n,t);case 6:var r=pe,o=tt;pe=null,Rt(e,t,n),pe=r,tt=o,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?Wl(e.parentNode,n):e.nodeType===1&&Wl(e,n),uo(e)):Wl(pe,n.stateNode));break;case 4:r=pe,o=tt,pe=n.stateNode.containerInfo,tt=!0,Rt(e,t,n),pe=r,tt=o;break;case 0:case 11:case 14:case 15:if(!Ee&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&tu(n,t,l),o=o.next}while(o!==r)}Rt(e,t,n);break;case 1:if(!Ee&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Ee=(r=Ee)||n.memoizedState!==null,Rt(e,t,n),Ee=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function Hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ry),t.forEach(function(r){var o=hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:pe=s.stateNode,tt=!1;break e;case 3:pe=s.stateNode.containerInfo,tt=!0;break e;case 4:pe=s.stateNode.containerInfo,tt=!0;break e}s=s.return}if(pe===null)throw Error(_(160));gh(i,l,o),pe=null,tt=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(a){te(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vh(t,e),t=t.sibling}function vh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),at(e),r&4){try{Zr(3,e,e.return),fl(3,e)}catch(v){te(e,e.return,v)}try{Zr(5,e,e.return)}catch(v){te(e,e.return,v)}}break;case 1:Je(t,e),at(e),r&512&&n!==null&&Xn(n,n.return);break;case 5:if(Je(t,e),at(e),r&512&&n!==null&&Xn(n,n.return),e.flags&32){var o=e.stateNode;try{oo(o,"")}catch(v){te(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Uf(o,i),As(s,l);var a=As(s,i);for(l=0;l<u.length;l+=2){var f=u[l],c=u[l+1];f==="style"?Vf(o,c):f==="dangerouslySetInnerHTML"?jf(o,c):f==="children"?oo(o,c):_u(o,f,c,a)}switch(s){case"input":Ss(o,i);break;case"textarea":Ff(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Jn(o,!!i.multiple,p,!1):d!==!!i.multiple&&(i.defaultValue!=null?Jn(o,!!i.multiple,i.defaultValue,!0):Jn(o,!!i.multiple,i.multiple?[]:"",!1))}o[po]=i}catch(v){te(e,e.return,v)}}break;case 6:if(Je(t,e),at(e),r&4){if(e.stateNode===null)throw Error(_(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){te(e,e.return,v)}}break;case 3:if(Je(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{uo(t.containerInfo)}catch(v){te(e,e.return,v)}break;case 4:Je(t,e),at(e);break;case 13:Je(t,e),at(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ia=oe())),r&4&&Hc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ee=(a=Ee)||f,Je(t,e),Ee=a):Je(t,e),at(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(I=e,f=e.child;f!==null;){for(c=I=f;I!==null;){switch(d=I,p=d.child,d.tag){case 0:case 11:case 14:case 15:Zr(4,d,d.return);break;case 1:Xn(d,d.return);var w=d.stateNode;if(typeof w.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){te(r,n,v)}}break;case 5:Xn(d,d.return);break;case 22:if(d.memoizedState!==null){Oc(c);continue}}p!==null?(p.return=d,I=p):Oc(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{o=c.stateNode,a?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=c.stateNode,u=c.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Mf("display",l))}catch(v){te(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(v){te(e,e.return,v)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Je(t,e),at(e),r&4&&Hc(e);break;case 21:break;default:Je(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yh(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(oo(o,""),r.flags&=-33);var i=Rc(e);ou(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Rc(e);ru(e,s,l);break;default:throw Error(_(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iy(e,t,n){I=e,wh(e)}function wh(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var o=I,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Jo;if(!l){var s=o.alternate,u=s!==null&&s.memoizedState!==null||Ee;s=Jo;var a=Ee;if(Jo=l,(Ee=u)&&!a)for(I=o;I!==null;)l=I,u=l.child,l.tag===22&&l.memoizedState!==null?Bc(o):u!==null?(u.return=l,I=u):Bc(o);for(;i!==null;)I=i,wh(i),i=i.sibling;I=o,Jo=s,Ee=a}zc(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,I=i):zc(e)}}function zc(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ee||fl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ee)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&wc(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}wc(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&uo(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Ee||t.flags&512&&nu(t)}catch(d){te(t,t.return,d)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Oc(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function Bc(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fl(4,t)}catch(u){te(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){te(t,o,u)}}var i=t.return;try{nu(t)}catch(u){te(t,i,u)}break;case 5:var l=t.return;try{nu(t)}catch(u){te(t,l,u)}}}catch(u){te(t,t.return,u)}if(t===e){I=null;break}var s=t.sibling;if(s!==null){s.return=t.return,I=s;break}I=t.return}}var ly=Math.ceil,ji=Lt.ReactCurrentDispatcher,ra=Lt.ReactCurrentOwner,Xe=Lt.ReactCurrentBatchConfig,D=0,he=null,ie=null,ge=0,ze=0,Zn=fn(0),ue=0,xo=null,Ln=0,dl=0,oa=0,qr=null,Ae=null,ia=0,hr=1/0,wt=null,Mi=!1,iu=null,en=null,ei=!1,Qt=null,Vi=0,Jr=0,lu=null,wi=-1,xi=0;function Ce(){return D&6?oe():wi!==-1?wi:wi=oe()}function tn(e){return e.mode&1?D&2&&ge!==0?ge&-ge:Mm.transition!==null?(xi===0&&(xi=nd()),xi):(e=K,e!==0||(e=window.event,e=e===void 0?16:ad(e.type)),e):1}function it(e,t,n,r){if(50<Jr)throw Jr=0,lu=null,Error(_(185));Co(e,n,r),(!(D&2)||e!==he)&&(e===he&&(!(D&2)&&(dl|=n),ue===4&&Kt(e,ge)),$e(e,r),n===1&&D===0&&!(t.mode&1)&&(hr=oe()+500,ul&&dn()))}function $e(e,t){var n=e.callbackNode;M0(e,t);var r=Ti(e,e===he?ge:0);if(r===0)n!==null&&Qa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qa(n),t===1)e.tag===0?jm(Uc.bind(null,e)):Ad(Uc.bind(null,e)),Bm(function(){!(D&6)&&dn()}),n=null;else{switch(rd(r)){case 1:n=Lu;break;case 4:n=ed;break;case 16:n=_i;break;case 536870912:n=td;break;default:n=_i}n=Th(n,xh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xh(e,t){if(wi=-1,xi=0,D&6)throw Error(_(327));var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var r=Ti(e,e===he?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ki(e,r);else{t=r;var o=D;D|=2;var i=Eh();(he!==e||ge!==t)&&(wt=null,hr=oe()+500,Cn(e,t));do try{ay();break}catch(s){kh(e,s)}while(1);Vu(),ji.current=i,D=o,ie!==null?t=0:(he=null,ge=0,t=ue)}if(t!==0){if(t===2&&(o=$s(e),o!==0&&(r=o,t=su(e,o))),t===1)throw n=xo,Cn(e,0),Kt(e,r),$e(e,oe()),n;if(t===6)Kt(e,r);else{if(o=e.current.alternate,!(r&30)&&!sy(o)&&(t=Ki(e,r),t===2&&(i=$s(e),i!==0&&(r=i,t=su(e,i))),t===1))throw n=xo,Cn(e,0),Kt(e,r),$e(e,oe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:wn(e,Ae,wt);break;case 3:if(Kt(e,r),(r&130023424)===r&&(t=ia+500-oe(),10<t)){if(Ti(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ce(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ds(wn.bind(null,e,Ae,wt),t);break}wn(e,Ae,wt);break;case 4:if(Kt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-ot(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ly(r/1960))-r,10<r){e.timeoutHandle=Ds(wn.bind(null,e,Ae,wt),r);break}wn(e,Ae,wt);break;case 5:wn(e,Ae,wt);break;default:throw Error(_(329))}}}return $e(e,oe()),e.callbackNode===n?xh.bind(null,e):null}function su(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(Cn(e,t).flags|=256),e=Ki(e,t),e!==2&&(t=Ae,Ae=n,t!==null&&uu(t)),e}function uu(e){Ae===null?Ae=e:Ae.push.apply(Ae,e)}function sy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Kt(e,t){for(t&=~oa,t&=~dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function Uc(e){if(D&6)throw Error(_(327));or();var t=Ti(e,0);if(!(t&1))return $e(e,oe()),null;var n=Ki(e,t);if(e.tag!==0&&n===2){var r=$s(e);r!==0&&(t=r,n=su(e,r))}if(n===1)throw n=xo,Cn(e,0),Kt(e,t),$e(e,oe()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wn(e,Ae,wt),$e(e,oe()),null}function la(e,t){var n=D;D|=1;try{return e(t)}finally{D=n,D===0&&(hr=oe()+500,ul&&dn())}}function Pn(e){Qt!==null&&Qt.tag===0&&!(D&6)&&or();var t=D;D|=1;var n=Xe.transition,r=K;try{if(Xe.transition=null,K=1,e)return e()}finally{K=r,Xe.transition=n,D=t,!(D&6)&&dn()}}function sa(){ze=Zn.current,Y(Zn)}function Cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Om(n)),ie!==null)for(n=ie.return;n!==null;){var r=n;switch(Du(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pi();break;case 3:fr(),Y(Le),Y(Se),Xu();break;case 5:Yu(r);break;case 4:fr();break;case 13:Y(q);break;case 19:Y(q);break;case 10:Ku(r.type._context);break;case 22:case 23:sa()}n=n.return}if(he=e,ie=e=nn(e.current,null),ge=ze=t,ue=0,xo=null,oa=dl=Ln=0,Ae=qr=null,En!==null){for(t=0;t<En.length;t++)if(n=En[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}En=null}return e}function kh(e,t){do{var n=ie;try{if(Vu(),yi.current=Di,Fi){for(var r=J.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fi=!1}if(In=0,ce=le=J=null,Xr=!1,go=0,ra.current=null,n===null||n.return===null){ue=1,xo=t,ie=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=ge,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=_c(l);if(p!==null){p.flags&=-257,Tc(p,l,s,i,t),p.mode&1&&Cc(i,a,t),t=p,u=a;var w=t.updateQueue;if(w===null){var v=new Set;v.add(u),t.updateQueue=v}else w.add(u);break e}else{if(!(t&1)){Cc(i,a,t),ua();break e}u=Error(_(426))}}else if(Z&&s.mode&1){var E=_c(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Tc(E,l,s,i,t),ju(dr(u,s));break e}}i=u=dr(u,s),ue!==4&&(ue=2),qr===null?qr=[i]:qr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=oh(i,u,t);vc(i,m);break e;case 1:s=u;var h=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(en===null||!en.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var g=ih(i,s,t);vc(i,g);break e}}i=i.return}while(i!==null)}bh(n)}catch(x){t=x,ie===n&&n!==null&&(ie=n=n.return);continue}break}while(1)}function Eh(){var e=ji.current;return ji.current=Di,e===null?Di:e}function ua(){(ue===0||ue===3||ue===2)&&(ue=4),he===null||!(Ln&268435455)&&!(dl&268435455)||Kt(he,ge)}function Ki(e,t){var n=D;D|=2;var r=Eh();(he!==e||ge!==t)&&(wt=null,Cn(e,t));do try{uy();break}catch(o){kh(e,o)}while(1);if(Vu(),D=n,ji.current=r,ie!==null)throw Error(_(261));return he=null,ge=0,ue}function uy(){for(;ie!==null;)Sh(ie)}function ay(){for(;ie!==null&&!R0();)Sh(ie)}function Sh(e){var t=_h(e.alternate,e,ze);e.memoizedProps=e.pendingProps,t===null?bh(e):ie=t,ra.current=null}function bh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ny(n,t),n!==null){n.flags&=32767,ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,ie=null;return}}else if(n=ty(n,t,ze),n!==null){ie=n;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);ue===0&&(ue=5)}function wn(e,t,n){var r=K,o=Xe.transition;try{Xe.transition=null,K=1,cy(e,t,n,r)}finally{Xe.transition=o,K=r}return null}function cy(e,t,n,r){do or();while(Qt!==null);if(D&6)throw Error(_(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(V0(e,i),e===he&&(ie=he=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ei||(ei=!0,Th(_i,function(){return or(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Xe.transition,Xe.transition=null;var l=K;K=1;var s=D;D|=4,ra.current=null,oy(e,n),vh(n,e),Im(Us),Ai=!!Bs,Us=Bs=null,e.current=n,iy(n),H0(),D=s,K=l,Xe.transition=i}else e.current=n;if(ei&&(ei=!1,Qt=e,Vi=o),i=e.pendingLanes,i===0&&(en=null),B0(n.stateNode),$e(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Mi)throw Mi=!1,e=iu,iu=null,e;return Vi&1&&e.tag!==0&&or(),i=e.pendingLanes,i&1?e===lu?Jr++:(Jr=0,lu=e):Jr=0,dn(),null}function or(){if(Qt!==null){var e=rd(Vi),t=Xe.transition,n=K;try{if(Xe.transition=null,K=16>e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,Vi=0,D&6)throw Error(_(331));var o=D;for(D|=4,I=e.current;I!==null;){var i=I,l=i.child;if(I.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(I=a;I!==null;){var f=I;switch(f.tag){case 0:case 11:case 15:Zr(8,f,i)}var c=f.child;if(c!==null)c.return=f,I=c;else for(;I!==null;){f=I;var d=f.sibling,p=f.return;if(mh(f),f===a){I=null;break}if(d!==null){d.return=p,I=d;break}I=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}I=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,I=l;else e:for(;I!==null;){if(i=I,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Zr(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,I=m;break e}I=i.return}}var h=e.current;for(I=h;I!==null;){l=I;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,I=y;else e:for(l=h;I!==null;){if(s=I,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:fl(9,s)}}catch(x){te(s,s.return,x)}if(s===l){I=null;break e}var g=s.sibling;if(g!==null){g.return=s.return,I=g;break e}I=s.return}}if(D=o,dn(),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(rl,e)}catch{}r=!0}return r}finally{K=n,Xe.transition=t}}return!1}function Fc(e,t,n){t=dr(n,t),t=oh(e,t,1),e=Jt(e,t,1),t=Ce(),e!==null&&(Co(e,1,t),$e(e,t))}function te(e,t,n){if(e.tag===3)Fc(e,e,n);else for(;t!==null;){if(t.tag===3){Fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(en===null||!en.has(r))){e=dr(n,e),e=ih(t,e,1),t=Jt(t,e,1),e=Ce(),t!==null&&(Co(t,1,e),$e(t,e));break}}t=t.return}}function fy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,he===e&&(ge&n)===n&&(ue===4||ue===3&&(ge&130023424)===ge&&500>oe()-ia?Cn(e,0):oa|=n),$e(e,t)}function Ch(e,t){t===0&&(e.mode&1?(t=Vo,Vo<<=1,!(Vo&130023424)&&(Vo=4194304)):t=1);var n=Ce();e=At(e,t),e!==null&&(Co(e,t,n),$e(e,n))}function dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ch(e,n)}function hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Ch(e,n)}var _h;_h=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,ey(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,Z&&t.flags&1048576&&Nd(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vi(e,t),e=t.pendingProps;var o=ur(t,Se.current);rr(t,n),o=qu(null,t,r,e,o,n);var i=Ju();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(i=!0,$i(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Qu(t),o.updater=al,t.stateNode=o,o._reactInternals=t,Gs(t,r,e,n),t=Zs(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&Fu(t),be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=my(r),e=et(r,e),o){case 0:t=Xs(null,t,r,e,n);break e;case 1:t=Ic(null,t,r,e,n);break e;case 11:t=Ac(null,t,r,e,n);break e;case 14:t=Nc(null,t,r,et(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Xs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Ic(e,t,r,o,n);case 3:e:{if(ah(t),e===null)throw Error(_(387));r=t.pendingProps,i=t.memoizedState,o=i.element,$d(e,t),Bi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=dr(Error(_(423)),t),t=Lc(e,t,r,n,o);break e}else if(r!==o){o=dr(Error(_(424)),t),t=Lc(e,t,r,n,o);break e}else for(Be=qt(t.stateNode.containerInfo.firstChild),Ue=t,Z=!0,nt=null,n=Od(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ar(),r===o){t=Nt(e,t,n);break e}be(e,t,r,n)}t=t.child}return t;case 5:return Bd(t),e===null&&Ks(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Fs(r,o)?l=null:i!==null&&Fs(r,i)&&(t.flags|=32),uh(e,t),be(e,t,l,n),t.child;case 6:return e===null&&Ks(t),null;case 13:return ch(e,t,n);case 4:return Gu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Ac(e,t,r,o,n);case 7:return be(e,t,t.pendingProps,n),t.child;case 8:return be(e,t,t.pendingProps.children,n),t.child;case 12:return be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Q(zi,r._currentValue),r._currentValue=l,i!==null)if(lt(i.value,l)){if(i.children===o.children&&!Le.current){t=Nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=bt(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ws(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(_(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ws(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,rr(t,n),o=Ze(o),r=r(o),t.flags|=1,be(e,t,r,n),t.child;case 14:return r=t.type,o=et(r,t.pendingProps),o=et(r.type,o),Nc(e,t,r,o,n);case 15:return lh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),vi(e,t),t.tag=1,Pe(r)?(e=!0,$i(t)):e=!1,rr(t,n),Hd(t,r,o),Gs(t,r,o,n),Zs(null,t,r,!0,e,n);case 19:return fh(e,t,n);case 22:return sh(e,t,n)}throw Error(_(156,t.tag))};function Th(e,t){return Jf(e,t)}function py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new py(e,t,n,r)}function aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function my(e){if(typeof e=="function")return aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Au)return 11;if(e===Nu)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")aa(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Dn:return _n(n.children,o,i,t);case Tu:l=8,o|=8;break;case vs:return e=Ge(12,n,t,o|2),e.elementType=vs,e.lanes=i,e;case ws:return e=Ge(13,n,t,o),e.elementType=ws,e.lanes=i,e;case xs:return e=Ge(19,n,t,o),e.elementType=xs,e.lanes=i,e;case zf:return hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rf:l=10;break e;case Hf:l=9;break e;case Au:l=11;break e;case Nu:l=14;break e;case Dt:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ge(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function _n(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=zf,e.lanes=n,e.stateNode={isHidden:!1},e}function es(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function ts(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ca(e,t,n,r,o,i,l,s,u){return e=new yy(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qu(i),e}function gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ah(e){if(!e)return sn;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Pe(n))return Td(e,n,t)}return t}function Nh(e,t,n,r,o,i,l,s,u){return e=ca(n,r,!0,e,o,i,l,s,u),e.context=Ah(null),n=e.current,r=Ce(),o=tn(n),i=bt(r,o),i.callback=t??null,Jt(n,i,o),e.current.lanes=o,Co(e,o,r),$e(e,r),e}function pl(e,t,n,r){var o=t.current,i=Ce(),l=tn(o);return n=Ah(n),t.context===null?t.context=n:t.pendingContext=n,t=bt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jt(o,t,l),e!==null&&(it(e,o,l,i),mi(e,o,l)),l}function Wi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fa(e,t){Dc(e,t),(e=e.alternate)&&Dc(e,t)}function vy(){return null}var Ih=typeof reportError=="function"?reportError:function(e){console.error(e)};function da(e){this._internalRoot=e}ml.prototype.render=da.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));pl(e,t,null,null)};ml.prototype.unmount=da.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){pl(null,e,null,null)}),t[Tt]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var t=ld();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&ud(e)}};function ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function wy(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var a=Wi(l);i.call(a)}}var l=Nh(t,r,e,0,null,!1,!1,"",jc);return e._reactRootContainer=l,e[Tt]=l.current,fo(e.nodeType===8?e.parentNode:e),Pn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var a=Wi(u);s.call(a)}}var u=ca(e,0,!1,null,null,!1,!1,"",jc);return e._reactRootContainer=u,e[Tt]=u.current,fo(e.nodeType===8?e.parentNode:e),Pn(function(){pl(t,u,n,r)}),u}function gl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var u=Wi(l);s.call(u)}}pl(t,l,e,o)}else l=wy(n,t,e,o,r);return Wi(l)}od=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=jr(t.pendingLanes);n!==0&&(Pu(t,n|1),$e(t,oe()),!(D&6)&&(hr=oe()+500,dn()))}break;case 13:Pn(function(){var r=At(e,1);if(r!==null){var o=Ce();it(r,e,1,o)}}),fa(e,1)}};$u=function(e){if(e.tag===13){var t=At(e,134217728);if(t!==null){var n=Ce();it(t,e,134217728,n)}fa(e,134217728)}};id=function(e){if(e.tag===13){var t=tn(e),n=At(e,t);if(n!==null){var r=Ce();it(n,e,t,r)}fa(e,t)}};ld=function(){return K};sd=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};Is=function(e,t,n){switch(t){case"input":if(Ss(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=sl(r);if(!o)throw Error(_(90));Bf(r),Ss(r,o)}}}break;case"textarea":Ff(e,n);break;case"select":t=n.value,t!=null&&Jn(e,!!n.multiple,t,!1)}};Qf=la;Gf=Pn;var xy={usingClientEntryPoint:!1,Events:[To,Kn,sl,Kf,Wf,la]},Hr={findFiberByHostInstance:kn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ky={bundleType:Hr.bundleType,version:Hr.version,rendererPackageName:Hr.rendererPackageName,rendererConfig:Hr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zf(e),e===null?null:e.stateNode},findFiberByHostInstance:Hr.findFiberByHostInstance||vy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ti=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ti.isDisabled&&ti.supportsFiber)try{rl=ti.inject(ky),ht=ti}catch{}}De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xy;De.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ha(t))throw Error(_(200));return gy(e,t,null,n)};De.createRoot=function(e,t){if(!ha(e))throw Error(_(299));var n=!1,r="",o=Ih;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=ca(e,1,!1,null,null,n,!1,r,o),e[Tt]=t.current,fo(e.nodeType===8?e.parentNode:e),new da(t)};De.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Zf(t),e=e===null?null:e.stateNode,e};De.flushSync=function(e){return Pn(e)};De.hydrate=function(e,t,n){if(!yl(t))throw Error(_(200));return gl(null,e,t,!0,n)};De.hydrateRoot=function(e,t,n){if(!ha(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Ih;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Nh(t,null,e,1,n??null,o,!1,i,l),e[Tt]=t.current,fo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ml(t)};De.render=function(e,t,n){if(!yl(t))throw Error(_(200));return gl(null,e,t,!1,n)};De.unmountComponentAtNode=function(e){if(!yl(e))throw Error(_(40));return e._reactRootContainer?(Pn(function(){gl(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1};De.unstable_batchedUpdates=la;De.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yl(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return gl(e,t,n,!1,r)};De.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=De})(v0);var Mc=ms;ps.createRoot=Mc.createRoot,ps.hydrateRoot=Mc.hydrateRoot;let ko=navigator.languages===void 0?[navigator.language]:navigator.languages;typeof ko>"u"&&(ko=["en-US"]);ko=ko.filter(e=>e.length>2).map(e=>e.replace("_","-"));function Ey(e,t=ko){const n=new Date().toLocaleDateString()===e.toLocaleDateString();return new Intl.DateTimeFormat(t,{dateStyle:n?void 0:"short",timeStyle:n?"medium":"short"}).format(e)}function Vc(...e){return e.filter(Boolean).join(" ")}const Sy={},by=Object.freeze(Object.defineProperty({__proto__:null,default:Sy},Symbol.toStringTag,{value:"Module"}));/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */const F=BigInt(0),X=BigInt(1),Gt=BigInt(2),eo=BigInt(3),Cy=BigInt(8),M=Object.freeze({a:F,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:X,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function Kc(e){const{a:t,b:n}=M,r=A(e*e),o=A(r*e);return A(o+t*e+n)}const ni=M.a===F;class pa extends Error{constructor(t){super(t)}}class V{constructor(t,n,r){this.x=t,this.y=n,this.z=r}static fromAffine(t){if(!(t instanceof j))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new V(t.x,t.y,X)}static toAffineBatch(t){const n=Iy(t.map(r=>r.z));return t.map((r,o)=>r.toAffine(n[o]))}static normalizeZ(t){return V.toAffineBatch(t).map(V.fromAffine)}equals(t){if(!(t instanceof V))throw new TypeError("JacobianPoint expected");const{x:n,y:r,z:o}=this,{x:i,y:l,z:s}=t,u=A(o*o),a=A(s*s),f=A(n*a),c=A(i*u),d=A(A(r*s)*a),p=A(A(l*o)*u);return f===c&&d===p}negate(){return new V(this.x,A(-this.y),this.z)}double(){const{x:t,y:n,z:r}=this,o=A(t*t),i=A(n*n),l=A(i*i),s=t+i,u=A(Gt*(A(s*s)-o-l)),a=A(eo*o),f=A(a*a),c=A(f-Gt*u),d=A(a*(u-c)-Cy*l),p=A(Gt*n*r);return new V(c,d,p)}add(t){if(!(t instanceof V))throw new TypeError("JacobianPoint expected");const{x:n,y:r,z:o}=this,{x:i,y:l,z:s}=t;if(i===F||l===F)return this;if(n===F||r===F)return t;const u=A(o*o),a=A(s*s),f=A(n*a),c=A(i*u),d=A(A(r*s)*a),p=A(A(l*o)*u),w=A(c-f),v=A(p-d);if(w===F)return v===F?this.double():V.ZERO;const E=A(w*w),m=A(w*E),h=A(f*E),y=A(v*v-m-Gt*h),g=A(v*(h-y)-d*m),x=A(o*s*w);return new V(y,g,x)}subtract(t){return this.add(t.negate())}multiplyUnsafe(t){const n=V.ZERO;if(typeof t=="bigint"&&t===F)return n;let r=Gc(t);if(r===X)return this;if(!ni){let c=n,d=this;for(;r>F;)r&X&&(c=c.add(d)),d=d.double(),r>>=X;return c}let{k1neg:o,k1:i,k2neg:l,k2:s}=Xc(r),u=n,a=n,f=this;for(;i>F||s>F;)i&X&&(u=u.add(f)),s&X&&(a=a.add(f)),f=f.double(),i>>=X,s>>=X;return o&&(u=u.negate()),l&&(a=a.negate()),a=new V(A(a.x*M.beta),a.y,a.z),u.add(a)}precomputeWindow(t){const n=ni?128/t+1:256/t+1,r=[];let o=this,i=o;for(let l=0;l<n;l++){i=o,r.push(i);for(let s=1;s<2**(t-1);s++)i=i.add(o),r.push(i);o=i.double()}return r}wNAF(t,n){!n&&this.equals(V.BASE)&&(n=j.BASE);const r=n&&n._WINDOW_SIZE||1;if(256%r)throw new Error("Point#wNAF: Invalid precomputation window, must be power of 2");let o=n&&au.get(n);o||(o=this.precomputeWindow(r),n&&r!==1&&(o=V.normalizeZ(o),au.set(n,o)));let i=V.ZERO,l=V.ZERO;const s=1+(ni?128/r:256/r),u=2**(r-1),a=BigInt(2**r-1),f=2**r,c=BigInt(r);for(let d=0;d<s;d++){const p=d*u;let w=Number(t&a);if(t>>=c,w>u&&(w-=f,t+=X),w===0){let v=o[p];d%2&&(v=v.negate()),l=l.add(v)}else{let v=o[p+Math.abs(w)-1];w<0&&(v=v.negate()),i=i.add(v)}}return{p:i,f:l}}multiply(t,n){let r=Gc(t),o,i;if(ni){const{k1neg:l,k1:s,k2neg:u,k2:a}=Xc(r);let{p:f,f:c}=this.wNAF(s,n),{p:d,f:p}=this.wNAF(a,n);l&&(f=f.negate()),u&&(d=d.negate()),d=new V(A(d.x*M.beta),d.y,d.z),o=f.add(d),i=c.add(p)}else{const{p:l,f:s}=this.wNAF(r,n);o=l,i=s}return V.normalizeZ([o,i])[0]}toAffine(t=br(this.z)){const{x:n,y:r,z:o}=this,i=t,l=A(i*i),s=A(l*i),u=A(n*l),a=A(r*s);if(A(o*i)!==X)throw new Error("invZ was invalid");return new j(u,a)}}V.BASE=new V(M.Gx,M.Gy,X);V.ZERO=new V(F,X,F);const au=new WeakMap;class j{constructor(t,n){this.x=t,this.y=n}_setWindowSize(t){this._WINDOW_SIZE=t,au.delete(this)}hasEvenY(){return this.y%Gt===F}static fromCompressedHex(t){const n=t.length===32,r=Re(n?t:t.subarray(1));if(!Ei(r))throw new Error("Point is not on curve");const o=Kc(r);let i=Ny(o);const l=(i&X)===X;n?l&&(i=A(-i)):(t[0]&1)===1!==l&&(i=A(-i));const s=new j(r,i);return s.assertValidity(),s}static fromUncompressedHex(t){const n=Re(t.subarray(1,33)),r=Re(t.subarray(33,65)),o=new j(n,r);return o.assertValidity(),o}static fromHex(t){const n=mt(t),r=n.length,o=n[0];if(r===32||r===33&&(o===2||o===3))return this.fromCompressedHex(n);if(r===65&&o===4)return this.fromUncompressedHex(n);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${r}`)}static fromPrivateKey(t){return j.BASE.multiply($n(t))}static fromSignature(t,n,r){t=mt(t);const o=Lh(t),{r:i,s:l}=Ph(n);if(r!==0&&r!==1)throw new Error("Cannot recover signature: invalid recovery bit");const s=r&1?"03":"02",u=j.fromHex(s+rn(i)),{n:a}=M,f=br(i,a),c=A(-o*f,a),d=A(l*f,a),p=j.BASE.multiplyAndAddUnsafe(u,c,d);if(!p)throw new Error("Cannot recover signature: point at infinify");return p.assertValidity(),p}toRawBytes(t=!1){return on(this.toHex(t))}toHex(t=!1){const n=rn(this.x);return t?`${this.hasEvenY()?"02":"03"}${n}`:`04${n}${rn(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const t="Point is not on elliptic curve",{x:n,y:r}=this;if(!Ei(n)||!Ei(r))throw new Error(t);const o=A(r*r),i=Kc(n);if(A(o-i)!==F)throw new Error(t)}equals(t){return this.x===t.x&&this.y===t.y}negate(){return new j(this.x,A(-this.y))}double(){return V.fromAffine(this).double().toAffine()}add(t){return V.fromAffine(this).add(V.fromAffine(t)).toAffine()}subtract(t){return this.add(t.negate())}multiply(t){return V.fromAffine(this).multiply(t,this).toAffine()}multiplyAndAddUnsafe(t,n,r){const o=V.fromAffine(this),i=n===F||n===X||this!==j.BASE?o.multiplyUnsafe(n):o.multiply(n),l=V.fromAffine(t).multiplyUnsafe(r),s=i.add(l);return s.equals(V.ZERO)?void 0:s.toAffine()}}j.BASE=new j(M.Gx,M.Gy);j.ZERO=new j(F,F);function Wc(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Qc(e){if(e.length<2||e[0]!==2)throw new Error(`Invalid signature integer tag: ${pr(e)}`);const t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(n[0]===0&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Re(n),left:e.subarray(t+2)}}function _y(e){if(e.length<2||e[0]!=48)throw new Error(`Invalid signature tag: ${pr(e)}`);if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");const{data:t,left:n}=Qc(e.subarray(2)),{data:r,left:o}=Qc(n);if(o.length)throw new Error(`Invalid signature: left bytes after parsing: ${pr(o)}`);return{r:t,s:r}}class Ct{constructor(t,n){this.r=t,this.s=n,this.assertValidity()}static fromCompact(t){const n=t instanceof Uint8Array,r="Signature.fromCompact";if(typeof t!="string"&&!n)throw new TypeError(`${r}: Expected string or Uint8Array`);const o=n?pr(t):t;if(o.length!==128)throw new Error(`${r}: Expected 64-byte hex`);return new Ct(Qi(o.slice(0,64)),Qi(o.slice(64,128)))}static fromDER(t){const n=t instanceof Uint8Array;if(typeof t!="string"&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r,s:o}=_y(n?t:on(t));return new Ct(r,o)}static fromHex(t){return this.fromDER(t)}assertValidity(){const{r:t,s:n}=this;if(!yr(t))throw new Error("Invalid Signature: r must be 0 < r < n");if(!yr(n))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const t=M.n>>X;return this.s>t}normalizeS(){return this.hasHighS()?new Ct(this.r,M.n-this.s):this}toDERRawBytes(t=!1){return on(this.toDERHex(t))}toDERHex(t=!1){const n=Wc(zr(this.s));if(t)return n;const r=Wc(zr(this.r)),o=zr(r.length/2),i=zr(n.length/2);return`30${zr(r.length/2+n.length/2+4)}02${o}${r}02${i}${n}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return on(this.toCompactHex())}toCompactHex(){return rn(this.r)+rn(this.s)}}function Bn(...e){if(!e.every(r=>r instanceof Uint8Array))throw new Error("Uint8Array list expected");if(e.length===1)return e[0];const t=e.reduce((r,o)=>r+o.length,0),n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){const i=e[r];n.set(i,o),o+=i.length}return n}const Ty=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function pr(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");let t="";for(let n=0;n<e.length;n++)t+=Ty[e[n]];return t}const Ay=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000");function rn(e){if(typeof e!="bigint")throw new Error("Expected bigint");if(!(F<=e&&e<Ay))throw new Error("Expected number < 2^256");return e.toString(16).padStart(64,"0")}function mr(e){const t=on(rn(e));if(t.length!==32)throw new Error("Error: expected 32 bytes");return t}function zr(e){const t=e.toString(16);return t.length&1?`0${t}`:t}function Qi(e){if(typeof e!="string")throw new TypeError("hexToNumber: expected string, got "+typeof e);return BigInt(`0x${e}`)}function on(e){if(typeof e!="string")throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex"+e.length);const t=new Uint8Array(e.length/2);for(let n=0;n<t.length;n++){const r=n*2,o=e.slice(r,r+2),i=Number.parseInt(o,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");t[n]=i}return t}function Re(e){return Qi(pr(e))}function mt(e){return e instanceof Uint8Array?Uint8Array.from(e):on(e)}function Gc(e){if(typeof e=="number"&&Number.isSafeInteger(e)&&e>0)return BigInt(e);if(typeof e=="bigint"&&yr(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function A(e,t=M.P){const n=e%t;return n>=F?n:t+n}function Me(e,t){const{P:n}=M;let r=e;for(;t-- >F;)r*=r,r%=n;return r}function Ny(e){const{P:t}=M,n=BigInt(6),r=BigInt(11),o=BigInt(22),i=BigInt(23),l=BigInt(44),s=BigInt(88),u=e*e*e%t,a=u*u*e%t,f=Me(a,eo)*a%t,c=Me(f,eo)*a%t,d=Me(c,Gt)*u%t,p=Me(d,r)*d%t,w=Me(p,o)*p%t,v=Me(w,l)*w%t,E=Me(v,s)*v%t,m=Me(E,l)*w%t,h=Me(m,eo)*a%t,y=Me(h,i)*p%t,g=Me(y,n)*u%t;return Me(g,Gt)}function br(e,t=M.P){if(e===F||t<=F)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=A(e,t),r=t,o=F,i=X;for(;n!==F;){const s=r/n,u=r%n,a=o-i*s;r=n,n=u,o=i,i=a}if(r!==X)throw new Error("invert: does not exist");return A(o,t)}function Iy(e,t=M.P){const n=new Array(e.length),r=e.reduce((i,l,s)=>l===F?i:(n[s]=i,A(i*l,t)),X),o=br(r,t);return e.reduceRight((i,l,s)=>l===F?i:(n[s]=A(i*n[s],t),A(i*l,t)),o),n}const Yc=(e,t)=>(e+t/Gt)/t,Ly={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-X*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function Xc(e){const{n:t}=M,{a1:n,b1:r,a2:o,b2:i,POW_2_128:l}=Ly,s=Yc(i*e,t),u=Yc(-r*e,t);let a=A(e-s*n-u*o,t),f=A(-s*r-u*i,t);const c=a>l,d=f>l;if(c&&(a=t-a),d&&(f=t-f),a>l||f>l)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:c,k1:a,k2neg:d,k2:f}}function Lh(e){const{n:t}=M,r=e.length*8-256;let o=Re(e);return r>0&&(o=o>>BigInt(r)),o>=t&&(o-=t),o}let ir,to;class Py{constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...t){return B.hmacSha256(this.k,...t)}hmacSync(...t){return to(this.k,...t)}checkSync(){if(typeof to!="function")throw new pa("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(t=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),t),this.v=await this.hmac(this.v),t.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),t),this.v=await this.hmac(this.v))}reseedSync(t=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),t),this.v=this.hmacSync(this.v),t.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),t),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function yr(e){return F<e&&e<M.n}function Ei(e){return F<e&&e<M.P}function $y(e,t,n){const r=Re(e);if(!yr(r))return;const{n:o}=M,i=j.BASE.multiply(r),l=A(i.x,o);if(l===F)return;const s=A(br(r,o)*A(t+n*l,o),o);if(s===F)return;const u=new Ct(l,s),a=(i.x===u.r?0:2)|Number(i.y&X);return{sig:u,recovery:a}}function $n(e){let t;if(typeof e=="bigint")t=e;else if(typeof e=="number"&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if(typeof e=="string"){if(e.length!==64)throw new Error("Expected 32 bytes of private key");t=Qi(e)}else if(e instanceof Uint8Array){if(e.length!==32)throw new Error("Expected 32 bytes of private key");t=Re(e)}else throw new TypeError("Expected valid private key");if(!yr(t))throw new Error("Expected private key: 0 < key < n");return t}function ma(e){return e instanceof j?(e.assertValidity(),e):j.fromHex(e)}function Ph(e){if(e instanceof Ct)return e.assertValidity(),e;try{return Ct.fromDER(e)}catch{return Ct.fromCompact(e)}}function Ry(e,t=!1){return j.fromPrivateKey(e).toRawBytes(t)}function Zc(e){const t=e instanceof Uint8Array,n=typeof e=="string",r=(t||n)&&e.length;return t?r===33||r===65:n?r===66||r===130:e instanceof j}function $h(e,t,n=!1){if(Zc(e))throw new TypeError("getSharedSecret: first arg must be private key");if(!Zc(t))throw new TypeError("getSharedSecret: second arg must be public key");const r=ma(t);return r.assertValidity(),r.multiply($n(e)).toRawBytes(n)}function Rh(e){const t=e.length>32?e.slice(0,32):e;return Re(t)}function Hy(e){const t=Rh(e),n=A(t,M.n);return Hh(n<F?t:n)}function Hh(e){return mr(e)}function zy(e,t,n){if(e==null)throw new Error(`sign: expected valid message hash, not "${e}"`);const r=mt(e),o=$n(t),i=[Hh(o),Hy(r)];if(n!=null){n===!0&&(n=B.randomBytes(32));const u=mt(n);if(u.length!==32)throw new Error("sign: Expected 32 bytes of extra data");i.push(u)}const l=Bn(...i),s=Rh(r);return{seed:l,m:s,d:o}}function Oy(e,t){let{sig:n,recovery:r}=e;const{canonical:o,der:i,recovered:l}=Object.assign({canonical:!0,der:!0},t);o&&n.hasHighS()&&(n=n.normalizeS(),r^=1);const s=i?n.toDERRawBytes():n.toCompactRawBytes();return l?[s,r]:s}function By(e,t,n={}){const{seed:r,m:o,d:i}=zy(e,t,n.extraEntropy);let l;const s=new Py;for(s.reseedSync(r);!(l=$y(s.generateSync(),o,i));)s.reseedSync();return Oy(l,n)}const Uy={strict:!0};function Fy(e,t,n,r=Uy){let o;try{o=Ph(e),t=mt(t)}catch{return!1}const{r:i,s:l}=o;if(r.strict&&o.hasHighS())return!1;const s=Lh(t);let u;try{u=ma(n)}catch{return!1}const{n:a}=M,f=br(l,a),c=A(s*f,a),d=A(i*f,a),p=j.BASE.multiplyAndAddUnsafe(u,c,d);return p?A(p.x,a)===i:!1}function Gi(e){return A(Re(e),M.n)}class gr{constructor(t,n){this.r=t,this.s=n,this.assertValidity()}static fromHex(t){const n=mt(t);if(n.length!==64)throw new TypeError(`SchnorrSignature.fromHex: expected 64 bytes, not ${n.length}`);const r=Re(n.subarray(0,32)),o=Re(n.subarray(32,64));return new gr(r,o)}assertValidity(){const{r:t,s:n}=this;if(!Ei(t)||!yr(n))throw new Error("Invalid signature")}toHex(){return rn(this.r)+rn(this.s)}toRawBytes(){return on(this.toHex())}}function Dy(e){return j.fromPrivateKey(e).toRawX()}class zh{constructor(t,n,r=B.randomBytes()){if(t==null)throw new TypeError(`sign: Expected valid message, not "${t}"`);this.m=mt(t);const{x:o,scalar:i}=this.getScalar($n(n));if(this.px=o,this.d=i,this.rand=mt(r),this.rand.length!==32)throw new TypeError("sign: Expected 32 bytes of aux randomness")}getScalar(t){const n=j.fromPrivateKey(t),r=n.hasEvenY()?t:M.n-t;return{point:n,scalar:r,x:n.toRawX()}}initNonce(t,n){return mr(t^Re(n))}finalizeNonce(t){const n=A(Re(t),M.n);if(n===F)throw new Error("sign: Creation of signature failed. k is zero");const{point:r,x:o,scalar:i}=this.getScalar(n);return{R:r,rx:o,k:i}}finalizeSig(t,n,r,o){return new gr(t.x,A(n+r*o,M.n)).toRawBytes()}error(){throw new Error("sign: Invalid signature produced")}async calc(){const{m:t,d:n,px:r,rand:o}=this,i=B.taggedHash,l=this.initNonce(n,await i(Mt.aux,o)),{R:s,rx:u,k:a}=this.finalizeNonce(await i(Mt.nonce,l,r,t)),f=Gi(await i(Mt.challenge,u,r,t)),c=this.finalizeSig(s,a,f,n);return await Uh(c,t,r)||this.error(),c}calcSync(){const{m:t,d:n,px:r,rand:o}=this,i=B.taggedHashSync,l=this.initNonce(n,i(Mt.aux,o)),{R:s,rx:u,k:a}=this.finalizeNonce(i(Mt.nonce,l,r,t)),f=Gi(i(Mt.challenge,u,r,t)),c=this.finalizeSig(s,a,f,n);return Fh(c,t,r)||this.error(),c}}async function jy(e,t,n){return new zh(e,t,n).calc()}function My(e,t,n){return new zh(e,t,n).calcSync()}function Oh(e,t,n){const r=e instanceof gr,o=r?e:gr.fromHex(e);return r&&o.assertValidity(),{...o,m:mt(t),P:ma(n)}}function Bh(e,t,n,r){const o=j.BASE.multiplyAndAddUnsafe(t,$n(n),A(-r,M.n));return!(!o||!o.hasEvenY()||o.x!==e)}async function Uh(e,t,n){try{const{r,s:o,m:i,P:l}=Oh(e,t,n),s=Gi(await B.taggedHash(Mt.challenge,mr(r),l.toRawX(),i));return Bh(r,l,o,s)}catch{return!1}}function Fh(e,t,n){try{const{r,s:o,m:i,P:l}=Oh(e,t,n),s=Gi(B.taggedHashSync(Mt.challenge,mr(r),l.toRawX(),i));return Bh(r,l,o,s)}catch(r){if(r instanceof pa)throw r;return!1}}const No={Signature:gr,getPublicKey:Dy,sign:jy,verify:Uh,signSync:My,verifySync:Fh};j.BASE._setWindowSize(8);const He={node:by,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0},Mt={challenge:"BIP0340/challenge",aux:"BIP0340/aux",nonce:"BIP0340/nonce"},ri={},B={bytesToHex:pr,hexToBytes:on,concatBytes:Bn,mod:A,invert:br,isValidPrivateKey(e){try{return $n(e),!0}catch{return!1}},_bigintTo32Bytes:mr,_normalizePrivateKey:$n,hashToPrivateKey:e=>{if(e=mt(e),e.length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");const t=A(Re(e),M.n-X)+X;return mr(t)},randomBytes:(e=32)=>{if(He.web)return He.web.getRandomValues(new Uint8Array(e));if(He.node){const{randomBytes:t}=He.node;return Uint8Array.from(t(e))}else throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>B.hashToPrivateKey(B.randomBytes(40)),sha256:async(...e)=>{if(He.web){const t=await He.web.subtle.digest("SHA-256",Bn(...e));return new Uint8Array(t)}else if(He.node){const{createHash:t}=He.node,n=t("sha256");return e.forEach(r=>n.update(r)),Uint8Array.from(n.digest())}else throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(e,...t)=>{if(He.web){const n=await He.web.subtle.importKey("raw",e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),r=Bn(...t),o=await He.web.subtle.sign("HMAC",n,r);return new Uint8Array(o)}else if(He.node){const{createHmac:n}=He.node,r=n("sha256",e);return t.forEach(o=>r.update(o)),Uint8Array.from(r.digest())}else throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(e,...t)=>{let n=ri[e];if(n===void 0){const r=await B.sha256(Uint8Array.from(e,o=>o.charCodeAt(0)));n=Bn(r,r),ri[e]=n}return B.sha256(n,...t)},taggedHashSync:(e,...t)=>{if(typeof ir!="function")throw new pa("sha256Sync is undefined, you need to set it");let n=ri[e];if(n===void 0){const r=ir(Uint8Array.from(e,o=>o.charCodeAt(0)));n=Bn(r,r),ri[e]=n}return ir(n,...t)},precompute(e=8,t=j.BASE){const n=t===j.BASE?t:new j(t.x,t.y);return n._setWindowSize(e),n.multiply(eo),n}};Object.defineProperties(B,{sha256Sync:{configurable:!1,get(){return ir},set(e){ir||(ir=e)}},hmacSha256Sync:{configurable:!1,get(){return to},set(e){to||(to=e)}}});const qc={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0};/*! noble-hashes - MIT License (c) 2021 Paul Miller (paulmillr.com) */const ns=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),ct=(e,t)=>e<<32-t|e>>>t,Vy=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Vy)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));(()=>{const e=typeof Vr<"u"&&typeof Vr.require=="function"&&Vr.require.bind(Vr);try{if(e){const{setImmediate:t}=e("timers");return()=>new Promise(n=>t(n))}}catch{}return()=>new Promise(t=>setTimeout(t,0))})();function Ky(e){if(typeof e!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}function ya(e){if(typeof e=="string"&&(e=Ky(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}function Jc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Wy(e){if(typeof e!="function"||typeof e.init!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Jc(e.outputLen),Jc(e.blockLen)}let cu=class{clone(){return this._cloneInto()}};function Qy(e){const t=r=>e().update(ya(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t.init=t.create,t}function Gy(e=32){if(qc.web)return qc.web.getRandomValues(new Uint8Array(e));throw new Error("The environment doesn't have randomBytes function")}function Yy(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),l=Number(n>>o&i),s=Number(n&i),u=r?4:0,a=r?0:4;e.setUint32(t+u,l,r),e.setUint32(t+a,s,r)}let Xy=class extends cu{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ns(this.buffer)}update(t){if(this.destroyed)throw new Error("instance is destroyed");const{view:n,buffer:r,blockLen:o,finished:i}=this;if(i)throw new Error("digest() was already called");t=ya(t);const l=t.length;for(let s=0;s<l;){const u=Math.min(o-this.pos,l-s);if(u===o){const a=ns(t);for(;o<=l-s;s+=o)this.process(a,s);continue}r.set(t.subarray(s,s+u),this.pos),this.pos+=u,s+=u,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){if(this.destroyed)throw new Error("instance is destroyed");if(!(t instanceof Uint8Array)||t.length<this.outputLen)throw new Error("_Sha2: Invalid output buffer");if(this.finished)throw new Error("digest() was already called");this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let u=l;u<o;u++)n[u]=0;Yy(r,o-8,BigInt(this.length*8),i),this.process(r,0);const s=ns(t);this.get().forEach((u,a)=>s.setUint32(4*a,u,i))}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:l,pos:s}=this;return t.length=o,t.pos=s,t.finished=i,t.destroyed=l,o%n&&t.buffer.set(r),t}};const Zy=(e,t,n)=>e&t^~e&n,qy=(e,t,n)=>e&t^e&n^t&n,Jy=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ht=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),zt=new Uint32Array(64);let eg=class extends Xy{constructor(){super(64,32,8,!1),this.A=Ht[0]|0,this.B=Ht[1]|0,this.C=Ht[2]|0,this.D=Ht[3]|0,this.E=Ht[4]|0,this.F=Ht[5]|0,this.G=Ht[6]|0,this.H=Ht[7]|0}get(){const{A:t,B:n,C:r,D:o,E:i,F:l,G:s,H:u}=this;return[t,n,r,o,i,l,s,u]}set(t,n,r,o,i,l,s,u){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=l|0,this.G=s|0,this.H=u|0}process(t,n){for(let c=0;c<16;c++,n+=4)zt[c]=t.getUint32(n,!1);for(let c=16;c<64;c++){const d=zt[c-15],p=zt[c-2],w=ct(d,7)^ct(d,18)^d>>>3,v=ct(p,17)^ct(p,19)^p>>>10;zt[c]=v+zt[c-7]+w+zt[c-16]|0}let{A:r,B:o,C:i,D:l,E:s,F:u,G:a,H:f}=this;for(let c=0;c<64;c++){const d=ct(s,6)^ct(s,11)^ct(s,25),p=f+d+Zy(s,u,a)+Jy[c]+zt[c]|0,v=(ct(r,2)^ct(r,13)^ct(r,22))+qy(r,o,i)|0;f=a,a=u,u=s,s=l+p|0,l=i,i=o,o=r,r=p+v|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,l=l+this.D|0,s=s+this.E|0,u=u+this.F|0,a=a+this.G|0,f=f+this.H|0,this.set(r,o,i,l,s,u,a,f)}roundClean(){zt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const Io=Qy(()=>new eg);/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function hn(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function st(...e){const t=(o,i)=>l=>o(i(l)),n=Array.from(e).reverse().reduce((o,i)=>o?t(o,i.encode):i.encode,void 0),r=e.reduce((o,i)=>o?t(o,i.decode):i.decode,void 0);return{encode:n,decode:r}}function yt(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(n=>{if(hn(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})}}}function gt(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of t)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function Lo(e,t="="){if(hn(e),typeof t!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let o of n)if(typeof o!="string")throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function Dh(e){if(typeof e!="function")throw new Error("normalize fn should be function");return{encode:t=>t,decode:t=>e(t)}}function ef(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let r=0;const o=[],i=Array.from(e);for(i.forEach(l=>{if(hn(l),l<0||l>=t)throw new Error(`Wrong integer: ${l}`)});;){let l=0,s=!0;for(let u=r;u<i.length;u++){const a=i[u],f=t*l+a;if(!Number.isSafeInteger(f)||t*l/t!==l||f-a!==t*l)throw new Error("convertRadix: carry overflow");if(l=f%n,i[u]=Math.floor(f/n),!Number.isSafeInteger(i[u])||i[u]*n+l!==f)throw new Error("convertRadix: carry overflow");if(s)i[u]?s=!1:r=u;else continue}if(o.push(l),s)break}for(let l=0;l<e.length-1&&e[l]===0;l++)o.push(0);return o.reverse()}const jh=(e,t)=>t?jh(t,e%t):e,Yi=(e,t)=>e+(t-jh(e,t));function fu(e,t,n,r){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(Yi(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${Yi(t,n)}`);let o=0,i=0;const l=2**n-1,s=[];for(const u of e){if(hn(u),u>=2**t)throw new Error(`convertRadix2: invalid data word=${u} from=${t}`);if(o=o<<t|u,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)s.push((o>>i-n&l)>>>0);o&=2**i-1}if(o=o<<n-i&l,!r&&i>=t)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&s.push(o>>>0),s}function Mh(e){return hn(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return ef(Array.from(t),2**8,e)},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(ef(t,e,2**8))}}}function Pt(e,t=!1){if(hn(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(Yi(8,e)>32||Yi(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return fu(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(fu(n,e,8,t))}}}function tf(e){if(typeof e!="function")throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch{}}}function Vh(e,t){if(hn(e),typeof t!="function")throw new Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const r=t(n).slice(0,e),o=new Uint8Array(n.length+e);return o.set(n),o.set(r,n.length),o},decode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-e),o=t(r).slice(0,e),i=n.slice(-e);for(let l=0;l<e;l++)if(o[l]!==i[l])throw new Error("Invalid checksum");return r}}}const tg={alphabet:yt,chain:st,checksum:Vh,radix:Mh,radix2:Pt,join:gt,padding:Lo},Kh=st(Pt(4),yt("0123456789ABCDEF"),gt("")),Wh=st(Pt(5),yt("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Lo(5),gt("")),ng=st(Pt(5),yt("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Lo(5),gt("")),rg=st(Pt(5),yt("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),gt(""),Dh(e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),vr=st(Pt(6),yt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Lo(6),gt("")),Qh=st(Pt(6),yt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Lo(6),gt("")),ga=e=>st(Mh(58),yt(e),gt("")),Eo=ga("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),og=ga("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),ig=ga("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),nf=[0,2,3,5,6,7,9,10,11],Gh={encode(e){let t="";for(let n=0;n<e.length;n+=8){const r=e.subarray(n,n+8);t+=Eo.encode(r).padStart(nf[r.length],"1")}return t},decode(e){let t=[];for(let n=0;n<e.length;n+=11){const r=e.slice(n,n+11),o=nf.indexOf(r.length),i=Eo.decode(r);for(let l=0;l<i.length-o;l++)if(i[l]!==0)throw new Error("base58xmr: wrong padding");t=t.concat(Array.from(i.slice(i.length-o)))}return Uint8Array.from(t)}},Yh=e=>st(Vh(4,t=>e(e(t))),Eo),du=st(yt("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),gt("")),rf=[996825010,642813549,513874426,1027748829,705979059];function Or(e){const t=e>>25;let n=(e&33554431)<<5;for(let r=0;r<rf.length;r++)(t>>r&1)===1&&(n^=rf[r]);return n}function of(e,t,n=1){const r=e.length;let o=1;for(let i=0;i<r;i++){const l=e.charCodeAt(i);if(l<33||l>126)throw new Error(`Invalid prefix (${e})`);o=Or(o)^l>>5}o=Or(o);for(let i=0;i<r;i++)o=Or(o)^e.charCodeAt(i)&31;for(let i of t)o=Or(o)^i;for(let i=0;i<6;i++)o=Or(o);return o^=n,du.encode(fu([o%2**30],30,5,!1))}function Xh(e){const t=e==="bech32"?1:734539939,n=Pt(5),r=n.decode,o=n.encode,i=tf(r);function l(f,c,d=90){if(typeof f!="string")throw new Error(`bech32.encode prefix should be string, not ${typeof f}`);if(!Array.isArray(c)||c.length&&typeof c[0]!="number")throw new Error(`bech32.encode words should be array of numbers, not ${typeof c}`);const p=f.length+7+c.length;if(d!==!1&&p>d)throw new TypeError(`Length ${p} exceeds limit ${d}`);return f=f.toLowerCase(),`${f}1${du.encode(c)}${of(f,c,t)}`}function s(f,c=90){if(typeof f!="string")throw new Error(`bech32.decode input should be string, not ${typeof f}`);if(f.length<8||c!==!1&&f.length>c)throw new TypeError(`Wrong string length: ${f.length} (${f}). Expected (8..${c})`);const d=f.toLowerCase();if(f!==d&&f!==f.toUpperCase())throw new Error("String must be lowercase or uppercase");f=d;const p=f.lastIndexOf("1");if(p===0||p===-1)throw new Error('Letter "1" must be present between prefix and data only');const w=f.slice(0,p),v=f.slice(p+1);if(v.length<6)throw new Error("Data must be at least 6 characters long");const E=du.decode(v).slice(0,-6),m=of(w,E,t);if(!v.endsWith(m))throw new Error(`Invalid checksum in ${f}: expected "${m}"`);return{prefix:w,words:E}}const u=tf(s);function a(f){const{prefix:c,words:d}=s(f,!1);return{prefix:c,words:d,bytes:r(d)}}return{encode:l,decode:s,decodeToBytes:a,decodeUnsafe:u,fromWords:r,fromWordsUnsafe:i,toWords:o}}const It=Xh("bech32"),lg=Xh("bech32m"),Zh={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)},qh=st(Pt(4),yt("0123456789abcdef"),gt(""),Dh(e=>{if(typeof e!="string"||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),So={utf8:Zh,hex:qh,base16:Kh,base32:Wh,base64:vr,base64url:Qh,base58:Eo,base58xmr:Gh},Jh=`Invalid encoding type. Available types: ${Object.keys(So).join(", ")}`,ep=(e,t)=>{if(typeof e!="string"||!So.hasOwnProperty(e))throw new TypeError(Jh);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return So[e].encode(t)},sg=ep,tp=(e,t)=>{if(!So.hasOwnProperty(e))throw new TypeError(Jh);if(typeof t!="string")throw new TypeError("stringToBytes() expects string");return So[e].decode(t)},ug=tp,ag=Object.freeze(Object.defineProperty({__proto__:null,assertNumber:hn,base16:Kh,base32:Wh,base32crockford:rg,base32hex:ng,base58:Eo,base58check:Yh,base58flickr:og,base58xmr:Gh,base58xrp:ig,base64:vr,base64url:Qh,bech32:It,bech32m:lg,bytes:ug,bytesToString:ep,hex:qh,str:sg,stringToBytes:tp,utf8:Zh,utils:tg},Symbol.toStringTag,{value:"Module"}));var va={};Object.defineProperty(va,"__esModule",{value:!0});var wa=va.wordlist=void 0;wa=va.wordlist=`abandon
|
||
ability
|
||
able
|
||
about
|
||
above
|
||
absent
|
||
absorb
|
||
abstract
|
||
absurd
|
||
abuse
|
||
access
|
||
accident
|
||
account
|
||
accuse
|
||
achieve
|
||
acid
|
||
acoustic
|
||
acquire
|
||
across
|
||
act
|
||
action
|
||
actor
|
||
actress
|
||
actual
|
||
adapt
|
||
add
|
||
addict
|
||
address
|
||
adjust
|
||
admit
|
||
adult
|
||
advance
|
||
advice
|
||
aerobic
|
||
affair
|
||
afford
|
||
afraid
|
||
again
|
||
age
|
||
agent
|
||
agree
|
||
ahead
|
||
aim
|
||
air
|
||
airport
|
||
aisle
|
||
alarm
|
||
album
|
||
alcohol
|
||
alert
|
||
alien
|
||
all
|
||
alley
|
||
allow
|
||
almost
|
||
alone
|
||
alpha
|
||
already
|
||
also
|
||
alter
|
||
always
|
||
amateur
|
||
amazing
|
||
among
|
||
amount
|
||
amused
|
||
analyst
|
||
anchor
|
||
ancient
|
||
anger
|
||
angle
|
||
angry
|
||
animal
|
||
ankle
|
||
announce
|
||
annual
|
||
another
|
||
answer
|
||
antenna
|
||
antique
|
||
anxiety
|
||
any
|
||
apart
|
||
apology
|
||
appear
|
||
apple
|
||
approve
|
||
april
|
||
arch
|
||
arctic
|
||
area
|
||
arena
|
||
argue
|
||
arm
|
||
armed
|
||
armor
|
||
army
|
||
around
|
||
arrange
|
||
arrest
|
||
arrive
|
||
arrow
|
||
art
|
||
artefact
|
||
artist
|
||
artwork
|
||
ask
|
||
aspect
|
||
assault
|
||
asset
|
||
assist
|
||
assume
|
||
asthma
|
||
athlete
|
||
atom
|
||
attack
|
||
attend
|
||
attitude
|
||
attract
|
||
auction
|
||
audit
|
||
august
|
||
aunt
|
||
author
|
||
auto
|
||
autumn
|
||
average
|
||
avocado
|
||
avoid
|
||
awake
|
||
aware
|
||
away
|
||
awesome
|
||
awful
|
||
awkward
|
||
axis
|
||
baby
|
||
bachelor
|
||
bacon
|
||
badge
|
||
bag
|
||
balance
|
||
balcony
|
||
ball
|
||
bamboo
|
||
banana
|
||
banner
|
||
bar
|
||
barely
|
||
bargain
|
||
barrel
|
||
base
|
||
basic
|
||
basket
|
||
battle
|
||
beach
|
||
bean
|
||
beauty
|
||
because
|
||
become
|
||
beef
|
||
before
|
||
begin
|
||
behave
|
||
behind
|
||
believe
|
||
below
|
||
belt
|
||
bench
|
||
benefit
|
||
best
|
||
betray
|
||
better
|
||
between
|
||
beyond
|
||
bicycle
|
||
bid
|
||
bike
|
||
bind
|
||
biology
|
||
bird
|
||
birth
|
||
bitter
|
||
black
|
||
blade
|
||
blame
|
||
blanket
|
||
blast
|
||
bleak
|
||
bless
|
||
blind
|
||
blood
|
||
blossom
|
||
blouse
|
||
blue
|
||
blur
|
||
blush
|
||
board
|
||
boat
|
||
body
|
||
boil
|
||
bomb
|
||
bone
|
||
bonus
|
||
book
|
||
boost
|
||
border
|
||
boring
|
||
borrow
|
||
boss
|
||
bottom
|
||
bounce
|
||
box
|
||
boy
|
||
bracket
|
||
brain
|
||
brand
|
||
brass
|
||
brave
|
||
bread
|
||
breeze
|
||
brick
|
||
bridge
|
||
brief
|
||
bright
|
||
bring
|
||
brisk
|
||
broccoli
|
||
broken
|
||
bronze
|
||
broom
|
||
brother
|
||
brown
|
||
brush
|
||
bubble
|
||
buddy
|
||
budget
|
||
buffalo
|
||
build
|
||
bulb
|
||
bulk
|
||
bullet
|
||
bundle
|
||
bunker
|
||
burden
|
||
burger
|
||
burst
|
||
bus
|
||
business
|
||
busy
|
||
butter
|
||
buyer
|
||
buzz
|
||
cabbage
|
||
cabin
|
||
cable
|
||
cactus
|
||
cage
|
||
cake
|
||
call
|
||
calm
|
||
camera
|
||
camp
|
||
can
|
||
canal
|
||
cancel
|
||
candy
|
||
cannon
|
||
canoe
|
||
canvas
|
||
canyon
|
||
capable
|
||
capital
|
||
captain
|
||
car
|
||
carbon
|
||
card
|
||
cargo
|
||
carpet
|
||
carry
|
||
cart
|
||
case
|
||
cash
|
||
casino
|
||
castle
|
||
casual
|
||
cat
|
||
catalog
|
||
catch
|
||
category
|
||
cattle
|
||
caught
|
||
cause
|
||
caution
|
||
cave
|
||
ceiling
|
||
celery
|
||
cement
|
||
census
|
||
century
|
||
cereal
|
||
certain
|
||
chair
|
||
chalk
|
||
champion
|
||
change
|
||
chaos
|
||
chapter
|
||
charge
|
||
chase
|
||
chat
|
||
cheap
|
||
check
|
||
cheese
|
||
chef
|
||
cherry
|
||
chest
|
||
chicken
|
||
chief
|
||
child
|
||
chimney
|
||
choice
|
||
choose
|
||
chronic
|
||
chuckle
|
||
chunk
|
||
churn
|
||
cigar
|
||
cinnamon
|
||
circle
|
||
citizen
|
||
city
|
||
civil
|
||
claim
|
||
clap
|
||
clarify
|
||
claw
|
||
clay
|
||
clean
|
||
clerk
|
||
clever
|
||
click
|
||
client
|
||
cliff
|
||
climb
|
||
clinic
|
||
clip
|
||
clock
|
||
clog
|
||
close
|
||
cloth
|
||
cloud
|
||
clown
|
||
club
|
||
clump
|
||
cluster
|
||
clutch
|
||
coach
|
||
coast
|
||
coconut
|
||
code
|
||
coffee
|
||
coil
|
||
coin
|
||
collect
|
||
color
|
||
column
|
||
combine
|
||
come
|
||
comfort
|
||
comic
|
||
common
|
||
company
|
||
concert
|
||
conduct
|
||
confirm
|
||
congress
|
||
connect
|
||
consider
|
||
control
|
||
convince
|
||
cook
|
||
cool
|
||
copper
|
||
copy
|
||
coral
|
||
core
|
||
corn
|
||
correct
|
||
cost
|
||
cotton
|
||
couch
|
||
country
|
||
couple
|
||
course
|
||
cousin
|
||
cover
|
||
coyote
|
||
crack
|
||
cradle
|
||
craft
|
||
cram
|
||
crane
|
||
crash
|
||
crater
|
||
crawl
|
||
crazy
|
||
cream
|
||
credit
|
||
creek
|
||
crew
|
||
cricket
|
||
crime
|
||
crisp
|
||
critic
|
||
crop
|
||
cross
|
||
crouch
|
||
crowd
|
||
crucial
|
||
cruel
|
||
cruise
|
||
crumble
|
||
crunch
|
||
crush
|
||
cry
|
||
crystal
|
||
cube
|
||
culture
|
||
cup
|
||
cupboard
|
||
curious
|
||
current
|
||
curtain
|
||
curve
|
||
cushion
|
||
custom
|
||
cute
|
||
cycle
|
||
dad
|
||
damage
|
||
damp
|
||
dance
|
||
danger
|
||
daring
|
||
dash
|
||
daughter
|
||
dawn
|
||
day
|
||
deal
|
||
debate
|
||
debris
|
||
decade
|
||
december
|
||
decide
|
||
decline
|
||
decorate
|
||
decrease
|
||
deer
|
||
defense
|
||
define
|
||
defy
|
||
degree
|
||
delay
|
||
deliver
|
||
demand
|
||
demise
|
||
denial
|
||
dentist
|
||
deny
|
||
depart
|
||
depend
|
||
deposit
|
||
depth
|
||
deputy
|
||
derive
|
||
describe
|
||
desert
|
||
design
|
||
desk
|
||
despair
|
||
destroy
|
||
detail
|
||
detect
|
||
develop
|
||
device
|
||
devote
|
||
diagram
|
||
dial
|
||
diamond
|
||
diary
|
||
dice
|
||
diesel
|
||
diet
|
||
differ
|
||
digital
|
||
dignity
|
||
dilemma
|
||
dinner
|
||
dinosaur
|
||
direct
|
||
dirt
|
||
disagree
|
||
discover
|
||
disease
|
||
dish
|
||
dismiss
|
||
disorder
|
||
display
|
||
distance
|
||
divert
|
||
divide
|
||
divorce
|
||
dizzy
|
||
doctor
|
||
document
|
||
dog
|
||
doll
|
||
dolphin
|
||
domain
|
||
donate
|
||
donkey
|
||
donor
|
||
door
|
||
dose
|
||
double
|
||
dove
|
||
draft
|
||
dragon
|
||
drama
|
||
drastic
|
||
draw
|
||
dream
|
||
dress
|
||
drift
|
||
drill
|
||
drink
|
||
drip
|
||
drive
|
||
drop
|
||
drum
|
||
dry
|
||
duck
|
||
dumb
|
||
dune
|
||
during
|
||
dust
|
||
dutch
|
||
duty
|
||
dwarf
|
||
dynamic
|
||
eager
|
||
eagle
|
||
early
|
||
earn
|
||
earth
|
||
easily
|
||
east
|
||
easy
|
||
echo
|
||
ecology
|
||
economy
|
||
edge
|
||
edit
|
||
educate
|
||
effort
|
||
egg
|
||
eight
|
||
either
|
||
elbow
|
||
elder
|
||
electric
|
||
elegant
|
||
element
|
||
elephant
|
||
elevator
|
||
elite
|
||
else
|
||
embark
|
||
embody
|
||
embrace
|
||
emerge
|
||
emotion
|
||
employ
|
||
empower
|
||
empty
|
||
enable
|
||
enact
|
||
end
|
||
endless
|
||
endorse
|
||
enemy
|
||
energy
|
||
enforce
|
||
engage
|
||
engine
|
||
enhance
|
||
enjoy
|
||
enlist
|
||
enough
|
||
enrich
|
||
enroll
|
||
ensure
|
||
enter
|
||
entire
|
||
entry
|
||
envelope
|
||
episode
|
||
equal
|
||
equip
|
||
era
|
||
erase
|
||
erode
|
||
erosion
|
||
error
|
||
erupt
|
||
escape
|
||
essay
|
||
essence
|
||
estate
|
||
eternal
|
||
ethics
|
||
evidence
|
||
evil
|
||
evoke
|
||
evolve
|
||
exact
|
||
example
|
||
excess
|
||
exchange
|
||
excite
|
||
exclude
|
||
excuse
|
||
execute
|
||
exercise
|
||
exhaust
|
||
exhibit
|
||
exile
|
||
exist
|
||
exit
|
||
exotic
|
||
expand
|
||
expect
|
||
expire
|
||
explain
|
||
expose
|
||
express
|
||
extend
|
||
extra
|
||
eye
|
||
eyebrow
|
||
fabric
|
||
face
|
||
faculty
|
||
fade
|
||
faint
|
||
faith
|
||
fall
|
||
false
|
||
fame
|
||
family
|
||
famous
|
||
fan
|
||
fancy
|
||
fantasy
|
||
farm
|
||
fashion
|
||
fat
|
||
fatal
|
||
father
|
||
fatigue
|
||
fault
|
||
favorite
|
||
feature
|
||
february
|
||
federal
|
||
fee
|
||
feed
|
||
feel
|
||
female
|
||
fence
|
||
festival
|
||
fetch
|
||
fever
|
||
few
|
||
fiber
|
||
fiction
|
||
field
|
||
figure
|
||
file
|
||
film
|
||
filter
|
||
final
|
||
find
|
||
fine
|
||
finger
|
||
finish
|
||
fire
|
||
firm
|
||
first
|
||
fiscal
|
||
fish
|
||
fit
|
||
fitness
|
||
fix
|
||
flag
|
||
flame
|
||
flash
|
||
flat
|
||
flavor
|
||
flee
|
||
flight
|
||
flip
|
||
float
|
||
flock
|
||
floor
|
||
flower
|
||
fluid
|
||
flush
|
||
fly
|
||
foam
|
||
focus
|
||
fog
|
||
foil
|
||
fold
|
||
follow
|
||
food
|
||
foot
|
||
force
|
||
forest
|
||
forget
|
||
fork
|
||
fortune
|
||
forum
|
||
forward
|
||
fossil
|
||
foster
|
||
found
|
||
fox
|
||
fragile
|
||
frame
|
||
frequent
|
||
fresh
|
||
friend
|
||
fringe
|
||
frog
|
||
front
|
||
frost
|
||
frown
|
||
frozen
|
||
fruit
|
||
fuel
|
||
fun
|
||
funny
|
||
furnace
|
||
fury
|
||
future
|
||
gadget
|
||
gain
|
||
galaxy
|
||
gallery
|
||
game
|
||
gap
|
||
garage
|
||
garbage
|
||
garden
|
||
garlic
|
||
garment
|
||
gas
|
||
gasp
|
||
gate
|
||
gather
|
||
gauge
|
||
gaze
|
||
general
|
||
genius
|
||
genre
|
||
gentle
|
||
genuine
|
||
gesture
|
||
ghost
|
||
giant
|
||
gift
|
||
giggle
|
||
ginger
|
||
giraffe
|
||
girl
|
||
give
|
||
glad
|
||
glance
|
||
glare
|
||
glass
|
||
glide
|
||
glimpse
|
||
globe
|
||
gloom
|
||
glory
|
||
glove
|
||
glow
|
||
glue
|
||
goat
|
||
goddess
|
||
gold
|
||
good
|
||
goose
|
||
gorilla
|
||
gospel
|
||
gossip
|
||
govern
|
||
gown
|
||
grab
|
||
grace
|
||
grain
|
||
grant
|
||
grape
|
||
grass
|
||
gravity
|
||
great
|
||
green
|
||
grid
|
||
grief
|
||
grit
|
||
grocery
|
||
group
|
||
grow
|
||
grunt
|
||
guard
|
||
guess
|
||
guide
|
||
guilt
|
||
guitar
|
||
gun
|
||
gym
|
||
habit
|
||
hair
|
||
half
|
||
hammer
|
||
hamster
|
||
hand
|
||
happy
|
||
harbor
|
||
hard
|
||
harsh
|
||
harvest
|
||
hat
|
||
have
|
||
hawk
|
||
hazard
|
||
head
|
||
health
|
||
heart
|
||
heavy
|
||
hedgehog
|
||
height
|
||
hello
|
||
helmet
|
||
help
|
||
hen
|
||
hero
|
||
hidden
|
||
high
|
||
hill
|
||
hint
|
||
hip
|
||
hire
|
||
history
|
||
hobby
|
||
hockey
|
||
hold
|
||
hole
|
||
holiday
|
||
hollow
|
||
home
|
||
honey
|
||
hood
|
||
hope
|
||
horn
|
||
horror
|
||
horse
|
||
hospital
|
||
host
|
||
hotel
|
||
hour
|
||
hover
|
||
hub
|
||
huge
|
||
human
|
||
humble
|
||
humor
|
||
hundred
|
||
hungry
|
||
hunt
|
||
hurdle
|
||
hurry
|
||
hurt
|
||
husband
|
||
hybrid
|
||
ice
|
||
icon
|
||
idea
|
||
identify
|
||
idle
|
||
ignore
|
||
ill
|
||
illegal
|
||
illness
|
||
image
|
||
imitate
|
||
immense
|
||
immune
|
||
impact
|
||
impose
|
||
improve
|
||
impulse
|
||
inch
|
||
include
|
||
income
|
||
increase
|
||
index
|
||
indicate
|
||
indoor
|
||
industry
|
||
infant
|
||
inflict
|
||
inform
|
||
inhale
|
||
inherit
|
||
initial
|
||
inject
|
||
injury
|
||
inmate
|
||
inner
|
||
innocent
|
||
input
|
||
inquiry
|
||
insane
|
||
insect
|
||
inside
|
||
inspire
|
||
install
|
||
intact
|
||
interest
|
||
into
|
||
invest
|
||
invite
|
||
involve
|
||
iron
|
||
island
|
||
isolate
|
||
issue
|
||
item
|
||
ivory
|
||
jacket
|
||
jaguar
|
||
jar
|
||
jazz
|
||
jealous
|
||
jeans
|
||
jelly
|
||
jewel
|
||
job
|
||
join
|
||
joke
|
||
journey
|
||
joy
|
||
judge
|
||
juice
|
||
jump
|
||
jungle
|
||
junior
|
||
junk
|
||
just
|
||
kangaroo
|
||
keen
|
||
keep
|
||
ketchup
|
||
key
|
||
kick
|
||
kid
|
||
kidney
|
||
kind
|
||
kingdom
|
||
kiss
|
||
kit
|
||
kitchen
|
||
kite
|
||
kitten
|
||
kiwi
|
||
knee
|
||
knife
|
||
knock
|
||
know
|
||
lab
|
||
label
|
||
labor
|
||
ladder
|
||
lady
|
||
lake
|
||
lamp
|
||
language
|
||
laptop
|
||
large
|
||
later
|
||
latin
|
||
laugh
|
||
laundry
|
||
lava
|
||
law
|
||
lawn
|
||
lawsuit
|
||
layer
|
||
lazy
|
||
leader
|
||
leaf
|
||
learn
|
||
leave
|
||
lecture
|
||
left
|
||
leg
|
||
legal
|
||
legend
|
||
leisure
|
||
lemon
|
||
lend
|
||
length
|
||
lens
|
||
leopard
|
||
lesson
|
||
letter
|
||
level
|
||
liar
|
||
liberty
|
||
library
|
||
license
|
||
life
|
||
lift
|
||
light
|
||
like
|
||
limb
|
||
limit
|
||
link
|
||
lion
|
||
liquid
|
||
list
|
||
little
|
||
live
|
||
lizard
|
||
load
|
||
loan
|
||
lobster
|
||
local
|
||
lock
|
||
logic
|
||
lonely
|
||
long
|
||
loop
|
||
lottery
|
||
loud
|
||
lounge
|
||
love
|
||
loyal
|
||
lucky
|
||
luggage
|
||
lumber
|
||
lunar
|
||
lunch
|
||
luxury
|
||
lyrics
|
||
machine
|
||
mad
|
||
magic
|
||
magnet
|
||
maid
|
||
mail
|
||
main
|
||
major
|
||
make
|
||
mammal
|
||
man
|
||
manage
|
||
mandate
|
||
mango
|
||
mansion
|
||
manual
|
||
maple
|
||
marble
|
||
march
|
||
margin
|
||
marine
|
||
market
|
||
marriage
|
||
mask
|
||
mass
|
||
master
|
||
match
|
||
material
|
||
math
|
||
matrix
|
||
matter
|
||
maximum
|
||
maze
|
||
meadow
|
||
mean
|
||
measure
|
||
meat
|
||
mechanic
|
||
medal
|
||
media
|
||
melody
|
||
melt
|
||
member
|
||
memory
|
||
mention
|
||
menu
|
||
mercy
|
||
merge
|
||
merit
|
||
merry
|
||
mesh
|
||
message
|
||
metal
|
||
method
|
||
middle
|
||
midnight
|
||
milk
|
||
million
|
||
mimic
|
||
mind
|
||
minimum
|
||
minor
|
||
minute
|
||
miracle
|
||
mirror
|
||
misery
|
||
miss
|
||
mistake
|
||
mix
|
||
mixed
|
||
mixture
|
||
mobile
|
||
model
|
||
modify
|
||
mom
|
||
moment
|
||
monitor
|
||
monkey
|
||
monster
|
||
month
|
||
moon
|
||
moral
|
||
more
|
||
morning
|
||
mosquito
|
||
mother
|
||
motion
|
||
motor
|
||
mountain
|
||
mouse
|
||
move
|
||
movie
|
||
much
|
||
muffin
|
||
mule
|
||
multiply
|
||
muscle
|
||
museum
|
||
mushroom
|
||
music
|
||
must
|
||
mutual
|
||
myself
|
||
mystery
|
||
myth
|
||
naive
|
||
name
|
||
napkin
|
||
narrow
|
||
nasty
|
||
nation
|
||
nature
|
||
near
|
||
neck
|
||
need
|
||
negative
|
||
neglect
|
||
neither
|
||
nephew
|
||
nerve
|
||
nest
|
||
net
|
||
network
|
||
neutral
|
||
never
|
||
news
|
||
next
|
||
nice
|
||
night
|
||
noble
|
||
noise
|
||
nominee
|
||
noodle
|
||
normal
|
||
north
|
||
nose
|
||
notable
|
||
note
|
||
nothing
|
||
notice
|
||
novel
|
||
now
|
||
nuclear
|
||
number
|
||
nurse
|
||
nut
|
||
oak
|
||
obey
|
||
object
|
||
oblige
|
||
obscure
|
||
observe
|
||
obtain
|
||
obvious
|
||
occur
|
||
ocean
|
||
october
|
||
odor
|
||
off
|
||
offer
|
||
office
|
||
often
|
||
oil
|
||
okay
|
||
old
|
||
olive
|
||
olympic
|
||
omit
|
||
once
|
||
one
|
||
onion
|
||
online
|
||
only
|
||
open
|
||
opera
|
||
opinion
|
||
oppose
|
||
option
|
||
orange
|
||
orbit
|
||
orchard
|
||
order
|
||
ordinary
|
||
organ
|
||
orient
|
||
original
|
||
orphan
|
||
ostrich
|
||
other
|
||
outdoor
|
||
outer
|
||
output
|
||
outside
|
||
oval
|
||
oven
|
||
over
|
||
own
|
||
owner
|
||
oxygen
|
||
oyster
|
||
ozone
|
||
pact
|
||
paddle
|
||
page
|
||
pair
|
||
palace
|
||
palm
|
||
panda
|
||
panel
|
||
panic
|
||
panther
|
||
paper
|
||
parade
|
||
parent
|
||
park
|
||
parrot
|
||
party
|
||
pass
|
||
patch
|
||
path
|
||
patient
|
||
patrol
|
||
pattern
|
||
pause
|
||
pave
|
||
payment
|
||
peace
|
||
peanut
|
||
pear
|
||
peasant
|
||
pelican
|
||
pen
|
||
penalty
|
||
pencil
|
||
people
|
||
pepper
|
||
perfect
|
||
permit
|
||
person
|
||
pet
|
||
phone
|
||
photo
|
||
phrase
|
||
physical
|
||
piano
|
||
picnic
|
||
picture
|
||
piece
|
||
pig
|
||
pigeon
|
||
pill
|
||
pilot
|
||
pink
|
||
pioneer
|
||
pipe
|
||
pistol
|
||
pitch
|
||
pizza
|
||
place
|
||
planet
|
||
plastic
|
||
plate
|
||
play
|
||
please
|
||
pledge
|
||
pluck
|
||
plug
|
||
plunge
|
||
poem
|
||
poet
|
||
point
|
||
polar
|
||
pole
|
||
police
|
||
pond
|
||
pony
|
||
pool
|
||
popular
|
||
portion
|
||
position
|
||
possible
|
||
post
|
||
potato
|
||
pottery
|
||
poverty
|
||
powder
|
||
power
|
||
practice
|
||
praise
|
||
predict
|
||
prefer
|
||
prepare
|
||
present
|
||
pretty
|
||
prevent
|
||
price
|
||
pride
|
||
primary
|
||
print
|
||
priority
|
||
prison
|
||
private
|
||
prize
|
||
problem
|
||
process
|
||
produce
|
||
profit
|
||
program
|
||
project
|
||
promote
|
||
proof
|
||
property
|
||
prosper
|
||
protect
|
||
proud
|
||
provide
|
||
public
|
||
pudding
|
||
pull
|
||
pulp
|
||
pulse
|
||
pumpkin
|
||
punch
|
||
pupil
|
||
puppy
|
||
purchase
|
||
purity
|
||
purpose
|
||
purse
|
||
push
|
||
put
|
||
puzzle
|
||
pyramid
|
||
quality
|
||
quantum
|
||
quarter
|
||
question
|
||
quick
|
||
quit
|
||
quiz
|
||
quote
|
||
rabbit
|
||
raccoon
|
||
race
|
||
rack
|
||
radar
|
||
radio
|
||
rail
|
||
rain
|
||
raise
|
||
rally
|
||
ramp
|
||
ranch
|
||
random
|
||
range
|
||
rapid
|
||
rare
|
||
rate
|
||
rather
|
||
raven
|
||
raw
|
||
razor
|
||
ready
|
||
real
|
||
reason
|
||
rebel
|
||
rebuild
|
||
recall
|
||
receive
|
||
recipe
|
||
record
|
||
recycle
|
||
reduce
|
||
reflect
|
||
reform
|
||
refuse
|
||
region
|
||
regret
|
||
regular
|
||
reject
|
||
relax
|
||
release
|
||
relief
|
||
rely
|
||
remain
|
||
remember
|
||
remind
|
||
remove
|
||
render
|
||
renew
|
||
rent
|
||
reopen
|
||
repair
|
||
repeat
|
||
replace
|
||
report
|
||
require
|
||
rescue
|
||
resemble
|
||
resist
|
||
resource
|
||
response
|
||
result
|
||
retire
|
||
retreat
|
||
return
|
||
reunion
|
||
reveal
|
||
review
|
||
reward
|
||
rhythm
|
||
rib
|
||
ribbon
|
||
rice
|
||
rich
|
||
ride
|
||
ridge
|
||
rifle
|
||
right
|
||
rigid
|
||
ring
|
||
riot
|
||
ripple
|
||
risk
|
||
ritual
|
||
rival
|
||
river
|
||
road
|
||
roast
|
||
robot
|
||
robust
|
||
rocket
|
||
romance
|
||
roof
|
||
rookie
|
||
room
|
||
rose
|
||
rotate
|
||
rough
|
||
round
|
||
route
|
||
royal
|
||
rubber
|
||
rude
|
||
rug
|
||
rule
|
||
run
|
||
runway
|
||
rural
|
||
sad
|
||
saddle
|
||
sadness
|
||
safe
|
||
sail
|
||
salad
|
||
salmon
|
||
salon
|
||
salt
|
||
salute
|
||
same
|
||
sample
|
||
sand
|
||
satisfy
|
||
satoshi
|
||
sauce
|
||
sausage
|
||
save
|
||
say
|
||
scale
|
||
scan
|
||
scare
|
||
scatter
|
||
scene
|
||
scheme
|
||
school
|
||
science
|
||
scissors
|
||
scorpion
|
||
scout
|
||
scrap
|
||
screen
|
||
script
|
||
scrub
|
||
sea
|
||
search
|
||
season
|
||
seat
|
||
second
|
||
secret
|
||
section
|
||
security
|
||
seed
|
||
seek
|
||
segment
|
||
select
|
||
sell
|
||
seminar
|
||
senior
|
||
sense
|
||
sentence
|
||
series
|
||
service
|
||
session
|
||
settle
|
||
setup
|
||
seven
|
||
shadow
|
||
shaft
|
||
shallow
|
||
share
|
||
shed
|
||
shell
|
||
sheriff
|
||
shield
|
||
shift
|
||
shine
|
||
ship
|
||
shiver
|
||
shock
|
||
shoe
|
||
shoot
|
||
shop
|
||
short
|
||
shoulder
|
||
shove
|
||
shrimp
|
||
shrug
|
||
shuffle
|
||
shy
|
||
sibling
|
||
sick
|
||
side
|
||
siege
|
||
sight
|
||
sign
|
||
silent
|
||
silk
|
||
silly
|
||
silver
|
||
similar
|
||
simple
|
||
since
|
||
sing
|
||
siren
|
||
sister
|
||
situate
|
||
six
|
||
size
|
||
skate
|
||
sketch
|
||
ski
|
||
skill
|
||
skin
|
||
skirt
|
||
skull
|
||
slab
|
||
slam
|
||
sleep
|
||
slender
|
||
slice
|
||
slide
|
||
slight
|
||
slim
|
||
slogan
|
||
slot
|
||
slow
|
||
slush
|
||
small
|
||
smart
|
||
smile
|
||
smoke
|
||
smooth
|
||
snack
|
||
snake
|
||
snap
|
||
sniff
|
||
snow
|
||
soap
|
||
soccer
|
||
social
|
||
sock
|
||
soda
|
||
soft
|
||
solar
|
||
soldier
|
||
solid
|
||
solution
|
||
solve
|
||
someone
|
||
song
|
||
soon
|
||
sorry
|
||
sort
|
||
soul
|
||
sound
|
||
soup
|
||
source
|
||
south
|
||
space
|
||
spare
|
||
spatial
|
||
spawn
|
||
speak
|
||
special
|
||
speed
|
||
spell
|
||
spend
|
||
sphere
|
||
spice
|
||
spider
|
||
spike
|
||
spin
|
||
spirit
|
||
split
|
||
spoil
|
||
sponsor
|
||
spoon
|
||
sport
|
||
spot
|
||
spray
|
||
spread
|
||
spring
|
||
spy
|
||
square
|
||
squeeze
|
||
squirrel
|
||
stable
|
||
stadium
|
||
staff
|
||
stage
|
||
stairs
|
||
stamp
|
||
stand
|
||
start
|
||
state
|
||
stay
|
||
steak
|
||
steel
|
||
stem
|
||
step
|
||
stereo
|
||
stick
|
||
still
|
||
sting
|
||
stock
|
||
stomach
|
||
stone
|
||
stool
|
||
story
|
||
stove
|
||
strategy
|
||
street
|
||
strike
|
||
strong
|
||
struggle
|
||
student
|
||
stuff
|
||
stumble
|
||
style
|
||
subject
|
||
submit
|
||
subway
|
||
success
|
||
such
|
||
sudden
|
||
suffer
|
||
sugar
|
||
suggest
|
||
suit
|
||
summer
|
||
sun
|
||
sunny
|
||
sunset
|
||
super
|
||
supply
|
||
supreme
|
||
sure
|
||
surface
|
||
surge
|
||
surprise
|
||
surround
|
||
survey
|
||
suspect
|
||
sustain
|
||
swallow
|
||
swamp
|
||
swap
|
||
swarm
|
||
swear
|
||
sweet
|
||
swift
|
||
swim
|
||
swing
|
||
switch
|
||
sword
|
||
symbol
|
||
symptom
|
||
syrup
|
||
system
|
||
table
|
||
tackle
|
||
tag
|
||
tail
|
||
talent
|
||
talk
|
||
tank
|
||
tape
|
||
target
|
||
task
|
||
taste
|
||
tattoo
|
||
taxi
|
||
teach
|
||
team
|
||
tell
|
||
ten
|
||
tenant
|
||
tennis
|
||
tent
|
||
term
|
||
test
|
||
text
|
||
thank
|
||
that
|
||
theme
|
||
then
|
||
theory
|
||
there
|
||
they
|
||
thing
|
||
this
|
||
thought
|
||
three
|
||
thrive
|
||
throw
|
||
thumb
|
||
thunder
|
||
ticket
|
||
tide
|
||
tiger
|
||
tilt
|
||
timber
|
||
time
|
||
tiny
|
||
tip
|
||
tired
|
||
tissue
|
||
title
|
||
toast
|
||
tobacco
|
||
today
|
||
toddler
|
||
toe
|
||
together
|
||
toilet
|
||
token
|
||
tomato
|
||
tomorrow
|
||
tone
|
||
tongue
|
||
tonight
|
||
tool
|
||
tooth
|
||
top
|
||
topic
|
||
topple
|
||
torch
|
||
tornado
|
||
tortoise
|
||
toss
|
||
total
|
||
tourist
|
||
toward
|
||
tower
|
||
town
|
||
toy
|
||
track
|
||
trade
|
||
traffic
|
||
tragic
|
||
train
|
||
transfer
|
||
trap
|
||
trash
|
||
travel
|
||
tray
|
||
treat
|
||
tree
|
||
trend
|
||
trial
|
||
tribe
|
||
trick
|
||
trigger
|
||
trim
|
||
trip
|
||
trophy
|
||
trouble
|
||
truck
|
||
true
|
||
truly
|
||
trumpet
|
||
trust
|
||
truth
|
||
try
|
||
tube
|
||
tuition
|
||
tumble
|
||
tuna
|
||
tunnel
|
||
turkey
|
||
turn
|
||
turtle
|
||
twelve
|
||
twenty
|
||
twice
|
||
twin
|
||
twist
|
||
two
|
||
type
|
||
typical
|
||
ugly
|
||
umbrella
|
||
unable
|
||
unaware
|
||
uncle
|
||
uncover
|
||
under
|
||
undo
|
||
unfair
|
||
unfold
|
||
unhappy
|
||
uniform
|
||
unique
|
||
unit
|
||
universe
|
||
unknown
|
||
unlock
|
||
until
|
||
unusual
|
||
unveil
|
||
update
|
||
upgrade
|
||
uphold
|
||
upon
|
||
upper
|
||
upset
|
||
urban
|
||
urge
|
||
usage
|
||
use
|
||
used
|
||
useful
|
||
useless
|
||
usual
|
||
utility
|
||
vacant
|
||
vacuum
|
||
vague
|
||
valid
|
||
valley
|
||
valve
|
||
van
|
||
vanish
|
||
vapor
|
||
various
|
||
vast
|
||
vault
|
||
vehicle
|
||
velvet
|
||
vendor
|
||
venture
|
||
venue
|
||
verb
|
||
verify
|
||
version
|
||
very
|
||
vessel
|
||
veteran
|
||
viable
|
||
vibrant
|
||
vicious
|
||
victory
|
||
video
|
||
view
|
||
village
|
||
vintage
|
||
violin
|
||
virtual
|
||
virus
|
||
visa
|
||
visit
|
||
visual
|
||
vital
|
||
vivid
|
||
vocal
|
||
voice
|
||
void
|
||
volcano
|
||
volume
|
||
vote
|
||
voyage
|
||
wage
|
||
wagon
|
||
wait
|
||
walk
|
||
wall
|
||
walnut
|
||
want
|
||
warfare
|
||
warm
|
||
warrior
|
||
wash
|
||
wasp
|
||
waste
|
||
water
|
||
wave
|
||
way
|
||
wealth
|
||
weapon
|
||
wear
|
||
weasel
|
||
weather
|
||
web
|
||
wedding
|
||
weekend
|
||
weird
|
||
welcome
|
||
west
|
||
wet
|
||
whale
|
||
what
|
||
wheat
|
||
wheel
|
||
when
|
||
where
|
||
whip
|
||
whisper
|
||
wide
|
||
width
|
||
wife
|
||
wild
|
||
will
|
||
win
|
||
window
|
||
wine
|
||
wing
|
||
wink
|
||
winner
|
||
winter
|
||
wire
|
||
wisdom
|
||
wise
|
||
wish
|
||
witness
|
||
wolf
|
||
woman
|
||
wonder
|
||
wood
|
||
wool
|
||
word
|
||
work
|
||
world
|
||
worry
|
||
worth
|
||
wrap
|
||
wreck
|
||
wrestle
|
||
wrist
|
||
write
|
||
wrong
|
||
yard
|
||
year
|
||
yellow
|
||
you
|
||
young
|
||
youth
|
||
zebra
|
||
zero
|
||
zone
|
||
zoo`.split(`
|
||
`);var Oe={},fe={};Object.defineProperty(fe,"__esModule",{value:!0});fe.output=fe.exists=fe.hash=Un=fe.bytes=fe.bool=fe.number=void 0;function Xi(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}fe.number=Xi;function np(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}fe.bool=np;function xa(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}var Un=fe.bytes=xa;function rp(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Xi(e.outputLen),Xi(e.blockLen)}fe.hash=rp;function op(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}fe.exists=op;function ip(e,t){xa(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}fe.output=ip;const cg={number:Xi,bool:np,bytes:xa,hash:rp,exists:op,output:ip};fe.default=cg;var wr={},lp={},ye={},vl={};Object.defineProperty(vl,"__esModule",{value:!0});vl.crypto=void 0;vl.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0};(function(e){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const t=vl,n=g=>new Uint8Array(g.buffer,g.byteOffset,g.byteLength);e.u8=n;const r=g=>new Uint32Array(g.buffer,g.byteOffset,Math.floor(g.byteLength/4));e.u32=r;const o=g=>new DataView(g.buffer,g.byteOffset,g.byteLength);e.createView=o;const i=(g,x)=>g<<32-x|g>>>x;if(e.rotr=i,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const l=Array.from({length:256},(g,x)=>x.toString(16).padStart(2,"0"));function s(g){if(!(g instanceof Uint8Array))throw new Error("Uint8Array expected");let x="";for(let C=0;C<g.length;C++)x+=l[g[C]];return x}e.bytesToHex=s;function u(g){if(typeof g!="string")throw new TypeError("hexToBytes: expected string, got "+typeof g);if(g.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const x=new Uint8Array(g.length/2);for(let C=0;C<x.length;C++){const S=C*2,T=g.slice(S,S+2),R=Number.parseInt(T,16);if(Number.isNaN(R)||R<0)throw new Error("Invalid byte sequence");x[C]=R}return x}e.hexToBytes=u;const a=async()=>{};e.nextTick=a;async function f(g,x,C){let S=Date.now();for(let T=0;T<g;T++){C(T);const R=Date.now()-S;R>=0&&R<x||(await(0,e.nextTick)(),S+=R)}}e.asyncLoop=f;function c(g){if(typeof g!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof g}`);return new TextEncoder().encode(g)}e.utf8ToBytes=c;function d(g){if(typeof g=="string"&&(g=c(g)),!(g instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof g})`);return g}e.toBytes=d;function p(...g){if(!g.every(S=>S instanceof Uint8Array))throw new Error("Uint8Array list expected");if(g.length===1)return g[0];const x=g.reduce((S,T)=>S+T.length,0),C=new Uint8Array(x);for(let S=0,T=0;S<g.length;S++){const R=g[S];C.set(R,T),T+=R.length}return C}e.concatBytes=p;class w{clone(){return this._cloneInto()}}e.Hash=w;const v=g=>Object.prototype.toString.call(g)==="[object Object]"&&g.constructor===Object;function E(g,x){if(x!==void 0&&(typeof x!="object"||!v(x)))throw new TypeError("Options should be object or undefined");return Object.assign(g,x)}e.checkOpts=E;function m(g){const x=S=>g().update(d(S)).digest(),C=g();return x.outputLen=C.outputLen,x.blockLen=C.blockLen,x.create=()=>g(),x}e.wrapConstructor=m;function h(g){const x=(S,T)=>g(T).update(d(S)).digest(),C=g({});return x.outputLen=C.outputLen,x.blockLen=C.blockLen,x.create=S=>g(S),x}e.wrapConstructorWithOpts=h;function y(g=32){if(t.crypto.web)return t.crypto.web.getRandomValues(new Uint8Array(g));if(t.crypto.node)return new Uint8Array(t.crypto.node.randomBytes(g).buffer);throw new Error("The environment doesn't have randomBytes function")}e.randomBytes=y})(ye);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const t=fe,n=ye;class r extends n.Hash{constructor(l,s){super(),this.finished=!1,this.destroyed=!1,t.default.hash(l);const u=(0,n.toBytes)(s);if(this.iHash=l.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,f=new Uint8Array(a);f.set(u.length>a?l.create().update(u).digest():u);for(let c=0;c<f.length;c++)f[c]^=54;this.iHash.update(f),this.oHash=l.create();for(let c=0;c<f.length;c++)f[c]^=106;this.oHash.update(f),f.fill(0)}update(l){return t.default.exists(this),this.iHash.update(l),this}digestInto(l){t.default.exists(this),t.default.bytes(l,this.outputLen),this.finished=!0,this.iHash.digestInto(l),this.oHash.update(l),this.oHash.digestInto(l),this.destroy()}digest(){const l=new Uint8Array(this.oHash.outputLen);return this.digestInto(l),l}_cloneInto(l){l||(l=Object.create(Object.getPrototypeOf(this),{}));const{oHash:s,iHash:u,finished:a,destroyed:f,blockLen:c,outputLen:d}=this;return l=l,l.finished=a,l.destroyed=f,l.blockLen=c,l.outputLen=d,l.oHash=s._cloneInto(l.oHash),l.iHash=u._cloneInto(l.iHash),l}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const o=(i,l,s)=>new r(i,l).update(s).digest();e.hmac=o,e.hmac.create=(i,l)=>new r(i,l)})(lp);Object.defineProperty(wr,"__esModule",{value:!0});wr.pbkdf2Async=wr.pbkdf2=void 0;const oi=fe,fg=lp,lr=ye;function sp(e,t,n,r){oi.default.hash(e);const o=(0,lr.checkOpts)({dkLen:32,asyncTick:10},r),{c:i,dkLen:l,asyncTick:s}=o;if(oi.default.number(i),oi.default.number(l),oi.default.number(s),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const u=(0,lr.toBytes)(t),a=(0,lr.toBytes)(n),f=new Uint8Array(l),c=fg.hmac.create(e,u),d=c._cloneInto().update(a);return{c:i,dkLen:l,asyncTick:s,DK:f,PRF:c,PRFSalt:d}}function up(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),o.fill(0),n}function dg(e,t,n,r){const{c:o,dkLen:i,DK:l,PRF:s,PRFSalt:u}=sp(e,t,n,r);let a;const f=new Uint8Array(4),c=(0,lr.createView)(f),d=new Uint8Array(s.outputLen);for(let p=1,w=0;w<i;p++,w+=s.outputLen){const v=l.subarray(w,w+s.outputLen);c.setInt32(0,p,!1),(a=u._cloneInto(a)).update(f).digestInto(d),v.set(d.subarray(0,v.length));for(let E=1;E<o;E++){s._cloneInto(a).update(d).digestInto(d);for(let m=0;m<v.length;m++)v[m]^=d[m]}}return up(s,u,l,a,d)}wr.pbkdf2=dg;async function hg(e,t,n,r){const{c:o,dkLen:i,asyncTick:l,DK:s,PRF:u,PRFSalt:a}=sp(e,t,n,r);let f;const c=new Uint8Array(4),d=(0,lr.createView)(c),p=new Uint8Array(u.outputLen);for(let w=1,v=0;v<i;w++,v+=u.outputLen){const E=s.subarray(v,v+u.outputLen);d.setInt32(0,w,!1),(f=a._cloneInto(f)).update(c).digestInto(p),E.set(p.subarray(0,E.length)),await(0,lr.asyncLoop)(o-1,l,m=>{u._cloneInto(f).update(p).digestInto(p);for(let h=0;h<E.length;h++)E[h]^=p[h]})}return up(u,a,s,f,p)}wr.pbkdf2Async=hg;var xr={},Po={};Object.defineProperty(Po,"__esModule",{value:!0});Po.SHA2=void 0;const rs=fe,Br=ye;function pg(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),l=Number(n>>o&i),s=Number(n&i),u=r?4:0,a=r?0:4;e.setUint32(t+u,l,r),e.setUint32(t+a,s,r)}let mg=class extends Br.Hash{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,Br.createView)(this.buffer)}update(t){rs.default.exists(this);const{view:n,buffer:r,blockLen:o}=this;t=(0,Br.toBytes)(t);const i=t.length;for(let l=0;l<i;){const s=Math.min(o-this.pos,i-l);if(s===o){const u=(0,Br.createView)(t);for(;o<=i-l;l+=o)this.process(u,l);continue}r.set(t.subarray(l,l+s),this.pos),this.pos+=s,l+=s,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){rs.default.exists(this),rs.default.output(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let c=l;c<o;c++)n[c]=0;pg(r,o-8,BigInt(this.length*8),i),this.process(r,0);const s=(0,Br.createView)(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const a=u/4,f=this.get();if(a>f.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<a;c++)s.setUint32(4*c,f[c],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:l,pos:s}=this;return t.length=o,t.pos=s,t.finished=i,t.destroyed=l,o%n&&t.buffer.set(r),t}};Po.SHA2=mg;Object.defineProperty(xr,"__esModule",{value:!0});xr.sha224=wl=xr.sha256=void 0;const yg=Po,Ve=ye,gg=(e,t,n)=>e&t^~e&n,vg=(e,t,n)=>e&t^e&n^t&n,wg=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Bt=new Uint32Array(64);class ap extends yg.SHA2{constructor(){super(64,32,8,!1),this.A=Ot[0]|0,this.B=Ot[1]|0,this.C=Ot[2]|0,this.D=Ot[3]|0,this.E=Ot[4]|0,this.F=Ot[5]|0,this.G=Ot[6]|0,this.H=Ot[7]|0}get(){const{A:t,B:n,C:r,D:o,E:i,F:l,G:s,H:u}=this;return[t,n,r,o,i,l,s,u]}set(t,n,r,o,i,l,s,u){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=l|0,this.G=s|0,this.H=u|0}process(t,n){for(let c=0;c<16;c++,n+=4)Bt[c]=t.getUint32(n,!1);for(let c=16;c<64;c++){const d=Bt[c-15],p=Bt[c-2],w=(0,Ve.rotr)(d,7)^(0,Ve.rotr)(d,18)^d>>>3,v=(0,Ve.rotr)(p,17)^(0,Ve.rotr)(p,19)^p>>>10;Bt[c]=v+Bt[c-7]+w+Bt[c-16]|0}let{A:r,B:o,C:i,D:l,E:s,F:u,G:a,H:f}=this;for(let c=0;c<64;c++){const d=(0,Ve.rotr)(s,6)^(0,Ve.rotr)(s,11)^(0,Ve.rotr)(s,25),p=f+d+gg(s,u,a)+wg[c]+Bt[c]|0,v=((0,Ve.rotr)(r,2)^(0,Ve.rotr)(r,13)^(0,Ve.rotr)(r,22))+vg(r,o,i)|0;f=a,a=u,u=s,s=l+p|0,l=i,i=o,o=r,r=p+v|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,l=l+this.D|0,s=s+this.E|0,u=u+this.F|0,a=a+this.G|0,f=f+this.H|0,this.set(r,o,i,l,s,u,a,f)}roundClean(){Bt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class xg extends ap{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}var wl=xr.sha256=(0,Ve.wrapConstructor)(()=>new ap);xr.sha224=(0,Ve.wrapConstructor)(()=>new xg);var Qe={},cp={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const t=BigInt(2**32-1),n=BigInt(32);function r(b,L=!1){return L?{h:Number(b&t),l:Number(b>>n&t)}:{h:Number(b>>n&t)|0,l:Number(b&t)|0}}e.fromBig=r;function o(b,L=!1){let P=new Uint32Array(b.length),W=new Uint32Array(b.length);for(let ne=0;ne<b.length;ne++){const{h:ut,l:pn}=r(b[ne],L);[P[ne],W[ne]]=[ut,pn]}return[P,W]}e.split=o;const i=(b,L)=>BigInt(b>>>0)<<n|BigInt(L>>>0);e.toBig=i;const l=(b,L,P)=>b>>>P,s=(b,L,P)=>b<<32-P|L>>>P,u=(b,L,P)=>b>>>P|L<<32-P,a=(b,L,P)=>b<<32-P|L>>>P,f=(b,L,P)=>b<<64-P|L>>>P-32,c=(b,L,P)=>b>>>P-32|L<<64-P,d=(b,L)=>L,p=(b,L)=>b,w=(b,L,P)=>b<<P|L>>>32-P,v=(b,L,P)=>L<<P|b>>>32-P,E=(b,L,P)=>L<<P-32|b>>>64-P,m=(b,L,P)=>b<<P-32|L>>>64-P;function h(b,L,P,W){const ne=(L>>>0)+(W>>>0);return{h:b+P+(ne/2**32|0)|0,l:ne|0}}e.add=h;const y=(b,L,P)=>(b>>>0)+(L>>>0)+(P>>>0),g=(b,L,P,W)=>L+P+W+(b/2**32|0)|0,x=(b,L,P,W)=>(b>>>0)+(L>>>0)+(P>>>0)+(W>>>0),C=(b,L,P,W,ne)=>L+P+W+ne+(b/2**32|0)|0,S=(b,L,P,W,ne)=>(b>>>0)+(L>>>0)+(P>>>0)+(W>>>0)+(ne>>>0),T=(b,L,P,W,ne,ut)=>L+P+W+ne+ut+(b/2**32|0)|0,R={fromBig:r,split:o,toBig:e.toBig,shrSH:l,shrSL:s,rotrSH:u,rotrSL:a,rotrBH:f,rotrBL:c,rotr32H:d,rotr32L:p,rotlSH:w,rotlSL:v,rotlBH:E,rotlBL:m,add:h,add3L:y,add3H:g,add4L:x,add4H:C,add5H:T,add5L:S};e.default=R})(cp);Object.defineProperty(Qe,"__esModule",{value:!0});Qe.sha384=Qe.sha512_256=Qe.sha512_224=hu=Qe.sha512=Qe.SHA512=void 0;const kg=Po,O=cp,xl=ye,[Eg,Sg]=O.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Ut=new Uint32Array(80),Ft=new Uint32Array(80);class $o extends kg.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:n,Bh:r,Bl:o,Ch:i,Cl:l,Dh:s,Dl:u,Eh:a,El:f,Fh:c,Fl:d,Gh:p,Gl:w,Hh:v,Hl:E}=this;return[t,n,r,o,i,l,s,u,a,f,c,d,p,w,v,E]}set(t,n,r,o,i,l,s,u,a,f,c,d,p,w,v,E){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=o|0,this.Ch=i|0,this.Cl=l|0,this.Dh=s|0,this.Dl=u|0,this.Eh=a|0,this.El=f|0,this.Fh=c|0,this.Fl=d|0,this.Gh=p|0,this.Gl=w|0,this.Hh=v|0,this.Hl=E|0}process(t,n){for(let y=0;y<16;y++,n+=4)Ut[y]=t.getUint32(n),Ft[y]=t.getUint32(n+=4);for(let y=16;y<80;y++){const g=Ut[y-15]|0,x=Ft[y-15]|0,C=O.default.rotrSH(g,x,1)^O.default.rotrSH(g,x,8)^O.default.shrSH(g,x,7),S=O.default.rotrSL(g,x,1)^O.default.rotrSL(g,x,8)^O.default.shrSL(g,x,7),T=Ut[y-2]|0,R=Ft[y-2]|0,b=O.default.rotrSH(T,R,19)^O.default.rotrBH(T,R,61)^O.default.shrSH(T,R,6),L=O.default.rotrSL(T,R,19)^O.default.rotrBL(T,R,61)^O.default.shrSL(T,R,6),P=O.default.add4L(S,L,Ft[y-7],Ft[y-16]),W=O.default.add4H(P,C,b,Ut[y-7],Ut[y-16]);Ut[y]=W|0,Ft[y]=P|0}let{Ah:r,Al:o,Bh:i,Bl:l,Ch:s,Cl:u,Dh:a,Dl:f,Eh:c,El:d,Fh:p,Fl:w,Gh:v,Gl:E,Hh:m,Hl:h}=this;for(let y=0;y<80;y++){const g=O.default.rotrSH(c,d,14)^O.default.rotrSH(c,d,18)^O.default.rotrBH(c,d,41),x=O.default.rotrSL(c,d,14)^O.default.rotrSL(c,d,18)^O.default.rotrBL(c,d,41),C=c&p^~c&v,S=d&w^~d&E,T=O.default.add5L(h,x,S,Sg[y],Ft[y]),R=O.default.add5H(T,m,g,C,Eg[y],Ut[y]),b=T|0,L=O.default.rotrSH(r,o,28)^O.default.rotrBH(r,o,34)^O.default.rotrBH(r,o,39),P=O.default.rotrSL(r,o,28)^O.default.rotrBL(r,o,34)^O.default.rotrBL(r,o,39),W=r&i^r&s^i&s,ne=o&l^o&u^l&u;m=v|0,h=E|0,v=p|0,E=w|0,p=c|0,w=d|0,{h:c,l:d}=O.default.add(a|0,f|0,R|0,b|0),a=s|0,f=u|0,s=i|0,u=l|0,i=r|0,l=o|0;const ut=O.default.add3L(b,P,ne);r=O.default.add3H(ut,R,L,W),o=ut|0}({h:r,l:o}=O.default.add(this.Ah|0,this.Al|0,r|0,o|0)),{h:i,l}=O.default.add(this.Bh|0,this.Bl|0,i|0,l|0),{h:s,l:u}=O.default.add(this.Ch|0,this.Cl|0,s|0,u|0),{h:a,l:f}=O.default.add(this.Dh|0,this.Dl|0,a|0,f|0),{h:c,l:d}=O.default.add(this.Eh|0,this.El|0,c|0,d|0),{h:p,l:w}=O.default.add(this.Fh|0,this.Fl|0,p|0,w|0),{h:v,l:E}=O.default.add(this.Gh|0,this.Gl|0,v|0,E|0),{h:m,l:h}=O.default.add(this.Hh|0,this.Hl|0,m|0,h|0),this.set(r,o,i,l,s,u,a,f,c,d,p,w,v,E,m,h)}roundClean(){Ut.fill(0),Ft.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}Qe.SHA512=$o;class bg extends $o{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class Cg extends $o{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class _g extends $o{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}var hu=Qe.sha512=(0,xl.wrapConstructor)(()=>new $o);Qe.sha512_224=(0,xl.wrapConstructor)(()=>new bg);Qe.sha512_256=(0,xl.wrapConstructor)(()=>new Cg);Qe.sha384=(0,xl.wrapConstructor)(()=>new _g);const Tg=Gp(ag);Object.defineProperty(Oe,"__esModule",{value:!0});var fp=Oe.mnemonicToSeedSync=Oe.mnemonicToSeed=kp=Oe.validateMnemonic=Oe.entropyToMnemonic=Oe.mnemonicToEntropy=gp=Oe.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */const dp=fe,hp=wr,Ag=xr,pp=Qe,Ng=ye,ii=Tg,Ig=e=>e[0]==="あいこくしん";function mp(e){if(typeof e!="string")throw new TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function ka(e){const t=mp(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}function yp(e){dp.default.bytes(e,16,20,24,28,32)}function Lg(e,t=128){if(dp.default.number(t),t%32!==0||t>256)throw new TypeError("Invalid entropy");return xp((0,Ng.randomBytes)(t/8),e)}var gp=Oe.generateMnemonic=Lg;const Pg=e=>{const t=8-e.length/4;return new Uint8Array([(0,Ag.sha256)(e)[0]>>t<<t])};function vp(e){if(!Array.isArray(e)||e.length!==2**11||typeof e[0]!="string")throw new Error("Worlist: expected array of 2048 strings");return e.forEach(t=>{if(typeof t!="string")throw new Error(`Wordlist: non-string element: ${t}`)}),ii.utils.chain(ii.utils.checksum(1,Pg),ii.utils.radix2(11,!0),ii.utils.alphabet(e))}function wp(e,t){const{words:n}=ka(e),r=vp(t).decode(n);return yp(r),r}Oe.mnemonicToEntropy=wp;function xp(e,t){return yp(e),vp(t).encode(e).join(Ig(t)?" ":" ")}Oe.entropyToMnemonic=xp;function $g(e,t){try{wp(e,t)}catch{return!1}return!0}var kp=Oe.validateMnemonic=$g;const Ep=e=>mp(`mnemonic${e}`);function Rg(e,t=""){return(0,hp.pbkdf2Async)(pp.sha512,ka(e).nfkd,Ep(t),{c:2048,dkLen:64})}Oe.mnemonicToSeed=Rg;function Hg(e,t=""){return(0,hp.pbkdf2)(pp.sha512,ka(e).nfkd,Ep(t),{c:2048,dkLen:64})}fp=Oe.mnemonicToSeedSync=Hg;function pu(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function zg(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function Sp(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Og(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");pu(e.outputLen),pu(e.blockLen)}function Bg(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ug(e,t){Sp(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const bn={number:pu,bool:zg,bytes:Sp,hash:Og,exists:Bg,output:Ug};/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const os=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Fg=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Fg)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Dg(e){if(typeof e!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof e}`);return new TextEncoder().encode(e)}function Ea(e){if(typeof e=="string"&&(e=Dg(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}class bp{clone(){return this._cloneInto()}}function jg(e){const t=r=>e().update(Ea(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}let Cp=class extends bp{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,bn.hash(t);const r=Ea(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let l=0;l<i.length;l++)i[l]^=54;this.iHash.update(i),this.oHash=t.create();for(let l=0;l<i.length;l++)i[l]^=106;this.oHash.update(i),i.fill(0)}update(t){return bn.exists(this),this.iHash.update(t),this}digestInto(t){bn.exists(this),bn.bytes(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:l,outputLen:s}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=l,t.outputLen=s,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};const Zi=(e,t,n)=>new Cp(e,t).update(n).digest();Zi.create=(e,t)=>new Cp(e,t);function Mg(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),l=Number(n>>o&i),s=Number(n&i),u=r?4:0,a=r?0:4;e.setUint32(t+u,l,r),e.setUint32(t+a,s,r)}class Vg extends bp{constructor(t,n,r,o){super(),this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=os(this.buffer)}update(t){bn.exists(this);const{view:n,buffer:r,blockLen:o}=this;t=Ea(t);const i=t.length;for(let l=0;l<i;){const s=Math.min(o-this.pos,i-l);if(s===o){const u=os(t);for(;o<=i-l;l+=o)this.process(u,l);continue}r.set(t.subarray(l,l+s),this.pos),this.pos+=s,l+=s,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){bn.exists(this),bn.output(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let c=l;c<o;c++)n[c]=0;Mg(r,o-8,BigInt(this.length*8),i),this.process(r,0);const s=os(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const a=u/4,f=this.get();if(a>f.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<a;c++)s.setUint32(4*c,f[c],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:l,pos:s}=this;return t.length=o,t.pos=s,t.finished=i,t.destroyed=l,o%n&&t.buffer.set(r),t}}const Kg=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),_p=Uint8Array.from({length:16},(e,t)=>t),Wg=_p.map(e=>(9*e+5)%16);let Sa=[_p],ba=[Wg];for(let e=0;e<4;e++)for(let t of[Sa,ba])t.push(t[e].map(n=>Kg[n]));const Tp=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),Qg=Sa.map((e,t)=>e.map(n=>Tp[t][n])),Gg=ba.map((e,t)=>e.map(n=>Tp[t][n])),Yg=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Xg=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),li=(e,t)=>e<<t|e>>>32-t;function lf(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}const si=new Uint32Array(16);class Zg extends Vg{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:n,h2:r,h3:o,h4:i}=this;return[t,n,r,o,i]}set(t,n,r,o,i){this.h0=t|0,this.h1=n|0,this.h2=r|0,this.h3=o|0,this.h4=i|0}process(t,n){for(let p=0;p<16;p++,n+=4)si[p]=t.getUint32(n,!0);let r=this.h0|0,o=r,i=this.h1|0,l=i,s=this.h2|0,u=s,a=this.h3|0,f=a,c=this.h4|0,d=c;for(let p=0;p<5;p++){const w=4-p,v=Yg[p],E=Xg[p],m=Sa[p],h=ba[p],y=Qg[p],g=Gg[p];for(let x=0;x<16;x++){const C=li(r+lf(p,i,s,a)+si[m[x]]+v,y[x])+c|0;r=c,c=a,a=li(s,10)|0,s=i,i=C}for(let x=0;x<16;x++){const C=li(o+lf(w,l,u,f)+si[h[x]]+E,g[x])+d|0;o=d,d=f,f=li(u,10)|0,u=l,l=C}}this.set(this.h1+s+f|0,this.h2+a+d|0,this.h3+c+o|0,this.h4+r+l|0,this.h0+i+u|0)}roundClean(){si.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const qg=jg(()=>new Zg);B.hmacSha256Sync=(e,...t)=>Zi(wl,e,B.concatBytes(...t));const is=Yh(wl);function sf(e){return BigInt(`0x${ye.bytesToHex(e)}`)}function Jg(e){return ye.hexToBytes(e.toString(16).padStart(64,"0"))}const e1=ye.utf8ToBytes("Bitcoin seed"),ls={private:76066276,public:76067358},ss=2147483648,t1=e=>qg(wl(e)),n1=e=>ye.createView(e).getUint32(0,!1),ui=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);const t=new Uint8Array(4);return ye.createView(t).setUint32(0,e,!1),t};class xn{constructor(t){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!t||typeof t!="object")throw new Error("HDKey.constructor must not be called directly");if(this.versions=t.versions||ls,this.depth=t.depth||0,this.chainCode=t.chainCode,this.index=t.index||0,this.parentFingerprint=t.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(t.publicKey&&t.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(t.privateKey){if(!B.isValidPrivateKey(t.privateKey))throw new Error("Invalid private key");this.privKey=typeof t.privateKey=="bigint"?t.privateKey:sf(t.privateKey),this.privKeyBytes=Jg(this.privKey),this.pubKey=Ry(t.privateKey,!0)}else if(t.publicKey)this.pubKey=j.fromHex(t.publicKey).toRawBytes(!0);else throw new Error("HDKey: no public or private key provided");this.pubHash=t1(this.pubKey)}get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return n1(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const t=this.privateKey;if(!t)throw new Error("No private key");return is.encode(this.serialize(this.versions.private,ye.concatBytes(new Uint8Array([0]),t)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return is.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(t,n=ls){if(Un(t),8*t.length<128||8*t.length>512)throw new Error(`HDKey: wrong seed length=${t.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const r=Zi(hu,e1,t);return new xn({versions:n,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(t,n=ls){const r=is.decode(t),o=ye.createView(r),i=o.getUint32(0,!1),l={versions:n,depth:r[4],parentFingerprint:o.getUint32(5,!1),index:o.getUint32(9,!1),chainCode:r.slice(13,45)},s=r.slice(45),u=s[0]===0;if(i!==n[u?"private":"public"])throw new Error("Version mismatch");return u?new xn({...l,privateKey:s.slice(1)}):new xn({...l,publicKey:s})}static fromJSON(t){return xn.fromExtendedKey(t.xpriv)}derive(t){if(!/^[mM]'?/.test(t))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(t))return this;const n=t.replace(/^[mM]'?\//,"").split("/");let r=this;for(const o of n){const i=/^(\d+)('?)$/.exec(o);if(!i||i.length!==3)throw new Error(`Invalid child index: ${o}`);let l=+i[1];if(!Number.isSafeInteger(l)||l>=ss)throw new Error("Invalid index");i[2]==="'"&&(l+=ss),r=r.deriveChild(l)}return r}deriveChild(t){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let n=ui(t);if(t>=ss){const s=this.privateKey;if(!s)throw new Error("Could not derive hardened child key");n=ye.concatBytes(new Uint8Array([0]),s,n)}else n=ye.concatBytes(this.pubKey,n);const r=Zi(hu,this.chainCode,n),o=sf(r.slice(0,32)),i=r.slice(32);if(!B.isValidPrivateKey(o))throw new Error("Tweak bigger than curve order");const l={versions:this.versions,chainCode:i,depth:this.depth+1,parentFingerprint:this.fingerprint,index:t};try{if(this.privateKey){const s=B.mod(this.privKey+o,M.n);if(!B.isValidPrivateKey(s))throw new Error("The tweak was out of range or the resulted private key is invalid");l.privateKey=s}else l.publicKey=j.fromHex(this.pubKey).add(j.fromPrivateKey(o)).toRawBytes(!0);return new xn(l)}catch{return this.deriveChild(t+1)}}sign(t){if(!this.privateKey)throw new Error("No privateKey set!");return Un(t,32),By(t,this.privKey,{canonical:!0,der:!1})}verify(t,n){if(Un(t,32),Un(n,64),!this.publicKey)throw new Error("No publicKey set!");let r;try{r=Ct.fromCompact(n)}catch{return!1}return Fy(r,t,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(t,n){if(!this.chainCode)throw new Error("No chainCode set");return Un(n,33),ye.concatBytes(ui(t),new Uint8Array([this.depth]),ui(this.parentFingerprint),ui(this.index),this.chainCode,n)}}class Ap extends cu{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,Wy(t);const r=ya(n);if(this.iHash=t.create(),!(this.iHash instanceof cu))throw new TypeError("Expected instance of class which extends utils.Hash");const o=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const i=new Uint8Array(o);i.set(r.length>this.iHash.blockLen?t.create().update(r).digest():r);for(let l=0;l<i.length;l++)i[l]^=54;this.iHash.update(i),this.oHash=t.create();for(let l=0;l<i.length;l++)i[l]^=106;this.oHash.update(i),i.fill(0)}update(t){if(this.destroyed)throw new Error("instance is destroyed");return this.iHash.update(t),this}digestInto(t){if(this.destroyed)throw new Error("instance is destroyed");if(!(t instanceof Uint8Array)||t.length!==this.outputLen)throw new Error("HMAC: Invalid output buffer");if(this.finished)throw new Error("digest() was already called");this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:l,outputLen:s}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=l,t.outputLen=s,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const qi=(e,t,n)=>new Ap(e,t).update(n).digest();qi.create=(e,t)=>new Ap(e,t);qi.init=qi.create;var r1=Object.defineProperty,Ro=(e,t)=>{for(var n in t)r1(e,n,{get:t[n],enumerable:!0})};function Np(){return B.bytesToHex(B.randomPrivateKey())}function Ji(e){return B.bytesToHex(No.getPublicKey(e))}var mu=new TextDecoder("utf-8"),Cr=new TextEncoder;function o1(){return{kind:255,pubkey:"",content:"",tags:[],created_at:0}}function i1(e){return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}function kl(e){let t=Io(Cr.encode(i1(e)));return B.bytesToHex(t)}function l1(e){if(e.id!==kl(e)||typeof e.content!="string"||typeof e.created_at!="number"||!Array.isArray(e.tags))return!1;for(let t=0;t<e.tags.length;t++){let n=e.tags[t];if(!Array.isArray(n))return!1;for(let r=0;r<n.length;r++)if(typeof n[r]=="object")return!1}return!0}function s1(e){return No.verifySync(e.sig,e.id,e.pubkey)}function yu(e,t){return B.bytesToHex(No.signSync(kl(e),t))}function u1(e,t){if(e.ids&&e.ids.indexOf(t.id)===-1||e.kinds&&e.kinds.indexOf(t.kind)===-1||e.authors&&e.authors.indexOf(t.pubkey)===-1)return!1;for(let n in e)if(n[0]==="#"){let r=n.slice(1),o=e[`#${r}`];if(o&&!t.tags.find(([i,l])=>i===n.slice(1)&&o.indexOf(l)!==-1))return!1}return!(e.since&&t.created_at<e.since||e.until&&t.created_at>=e.until)}function a1(e,t){for(let n=0;n<e.length;n++)if(u1(e[n],t))return!0;return!1}function c1(e){var t,n,r,o={},i={connect:[],disconnect:[],error:[],notice:[]},l={},s={};async function u(){return new Promise((d,p)=>{t=new WebSocket(e),t.onopen=()=>{i.connect.forEach(w=>w()),d()},t.onerror=()=>{i.error.forEach(w=>w()),p()},t.onclose=async()=>{i.disconnect.forEach(w=>w()),n&&n()},t.onmessage=async w=>{var E,m,h,y;var v;try{v=JSON.parse(w.data)}catch{v=w.data}if(v.length>=1)switch(v[0]){case"EVENT":if(v.length!==3)return;let g=v[1],x=v[2];l1(x)&&o[g]&&(o[g].skipVerification||s1(x))&&a1(o[g].filters,x)&&(o[g],(((E=l[g])==null?void 0:E.event)||[]).forEach(S=>S(x)));return;case"EOSE":{if(v.length!==2)return;let S=v[1];(((m=l[S])==null?void 0:m.eose)||[]).forEach(T=>T());return}case"OK":{if(v.length<3)return;let S=v[1],T=v[2],R=v[3]||"";T?(h=s[S])==null||h.ok.forEach(b=>b()):(y=s[S])==null||y.failed.forEach(b=>b(R));return}case"NOTICE":if(v.length!==2)return;let C=v[1];i.notice.forEach(S=>S(C));return}}})}async function a(){t!=null&&t.readyState&&t.readyState===1||await u()}async function f(d){let p=JSON.stringify(d);await r,t.send(p)}const c=(d,{skipVerification:p=!1,id:w=Math.random().toString().slice(2)}={})=>{let v=w;return o[v]={id:v,filters:d,skipVerification:p},f(["REQ",v,...d]),{sub:(E,m={})=>c(E||d,{skipVerification:m.skipVerification||p,id:v}),unsub:()=>{delete o[v],delete l[v],f(["CLOSE",v])},on:(E,m)=>{l[v]=l[v]||{event:[],eose:[]},l[v][E].push(m)},off:(E,m)=>{let h=l[v],y=h[E].indexOf(m);y>=0&&h[E].splice(y,1)}}};return{url:e,sub:c,on:(d,p)=>{i[d].push(p),d==="connect"&&(t==null?void 0:t.readyState)===1&&p()},off:(d,p)=>{let w=i[d].indexOf(p);w!==-1&&i[d].splice(w,1)},publish(d){if(!d.id)throw new Error(`event ${d} has no id`);let p=d.id;var w=!1,v=!1;f(["EVENT",d]).then(()=>{w=!0,v&&(E(),v=!1)}).catch(()=>{});const E=()=>{let m=c([{ids:[p]}],{id:`monitor-${p.slice(0,5)}`}),h=setTimeout(()=>{var y;(((y=s[p])==null?void 0:y.failed)||[]).forEach(g=>g("event not seen after 5 seconds")),m.unsub()},5e3);m.on("event",()=>{var y;clearTimeout(h),(((y=s[p])==null?void 0:y.seen)||[]).forEach(g=>g())})};return{on:(m,h)=>{s[p]=s[p]||{ok:[],seen:[],failed:[]},s[p][m].push(h),m==="seen"&&(w?E():v=!0)},off:(m,h)=>{let y=s[p];if(!y)return;let g=y[m].indexOf(h);g>=0&&y[m].splice(g,1)}}},connect:a,close(){return t.close(),new Promise(d=>{n=d})},get status(){return(t==null?void 0:t.readyState)??3}}}var f1={};Ro(f1,{decrypt:()=>h1,encrypt:()=>d1});async function d1(e,t,n){const r=$h(e,"02"+t),o=Ip(r);let i=Uint8Array.from(Gy(16)),l=Cr.encode(n),s=await crypto.subtle.importKey("raw",o,{name:"AES-CBC"},!1,["encrypt"]),u=await crypto.subtle.encrypt({name:"AES-CBC",iv:i},s,l),a=vr.encode(new Uint8Array(u)),f=vr.encode(new Uint8Array(i.buffer));return`${a}?iv=${f}`}async function h1(e,t,n){let[r,o]=n.split("?iv="),i=$h(e,"02"+t),l=Ip(i),s=await crypto.subtle.importKey("raw",l,{name:"AES-CBC"},!1,["decrypt"]),u=vr.decode(r),a=vr.decode(o),f=await crypto.subtle.decrypt({name:"AES-CBC",iv:a},s,u);return mu.decode(f)}function Ip(e){return e.slice(1,33)}var p1={};Ro(p1,{queryProfile:()=>g1,searchDomain:()=>y1,useFetchImplementation:()=>m1});var El;try{El=fetch}catch{}function m1(e){El=e}async function y1(e,t=""){try{return(await(await El(`https://${e}/.well-known/nostr.json?name=${t}`)).json()).names}catch{return{}}}async function g1(e){var l,s;let[t,n]=e.split("@");if(n||(n=t,t="_"),!t.match(/^[a-z0-9-_]+$/))return null;let r=await(await El(`https://${n}/.well-known/nostr.json?name=${t}`)).json();if(!((l=r==null?void 0:r.names)!=null&&l[t]))return null;let o=r.names[t],i=((s=r.relays)==null?void 0:s[o])||[];return{pubkey:o,relays:i}}var v1={};Ro(v1,{generateSeedWords:()=>x1,privateKeyFromSeedWords:()=>w1,validateWords:()=>k1});function w1(e){let n=xn.fromMasterSeed(fp(e)).derive("m/44'/1237'/0'/0/0").privateKey;if(!n)throw new Error("could not derive private key");return B.bytesToHex(n)}function x1(){return gp(wa)}function k1(e){return kp(e,wa)}var E1={};Ro(E1,{decode:()=>S1,neventEncode:()=>A1,noteEncode:()=>_1,nprofileEncode:()=>T1,npubEncode:()=>C1,nsecEncode:()=>b1});function S1(e){var o,i;let{prefix:t,words:n}=It.decode(e,1e3),r=new Uint8Array(It.fromWords(n));if(t==="nprofile"){let l=uf(r);if(!((o=l[0])!=null&&o[0]))throw new Error("missing TLV 0 for nprofile");if(l[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:B.bytesToHex(l[0][0]),relays:l[1].map(s=>mu.decode(s))}}}if(t==="nevent"){let l=uf(r);if(!((i=l[0])!=null&&i[0]))throw new Error("missing TLV 0 for nevent");if(l[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nevent",data:{id:B.bytesToHex(l[0][0]),relays:l[1].map(s=>mu.decode(s))}}}if(t==="nsec"||t==="npub"||t==="note")return{type:t,data:B.bytesToHex(r)};throw new Error(`unknown prefix ${t}`)}function uf(e){let t={},n=e;for(;n.length>0;){let r=n[0],o=n[1],i=n.slice(2,2+o);n=n.slice(2+o),!(i.length<o)&&(t[r]=t[r]||[],t[r].push(i))}return t}function b1(e){return Ca("nsec",e)}function C1(e){return Ca("npub",e)}function _1(e){return Ca("note",e)}function Ca(e,t){let n=B.hexToBytes(t),r=It.toWords(n);return It.encode(e,r,1e3)}function T1(e){let t=Lp({0:[B.hexToBytes(e.pubkey)],1:(e.relays||[]).map(r=>Cr.encode(r))}),n=It.toWords(t);return It.encode("nprofile",n,1e3)}function A1(e){let t=Lp({0:[B.hexToBytes(e.id)],1:(e.relays||[]).map(r=>Cr.encode(r))}),n=It.toWords(t);return It.encode("nevent",n,1e3)}function Lp(e){let t=[];return Object.entries(e).forEach(([n,r])=>{r.forEach(o=>{let i=new Uint8Array(o.length+2);i.set([parseInt(n)],0),i.set([o.length],1),i.set(o,2),t.push(i)})}),B.concatBytes(...t)}var N1={};Ro(N1,{createDelegation:()=>I1,getDelegator:()=>L1});function I1(e,t){let n=[];(t.kind||-1)>=0&&n.push(`kind=${t.kind}`),t.until&&n.push(`created_at<${t.until}`),t.since&&n.push(`created_at>${t.since}`);let r=n.join("&");if(r==="")throw new Error("refusing to create a delegation without any conditions");let o=Io(Cr.encode(`nostr:delegation:${t.pubkey}:${r}`)),i=B.bytesToHex(No.signSync(o,e));return{from:Ji(e),to:t.pubkey,cond:r,sig:i}}function L1(e){let t=e.tags.find(s=>s[0]==="delegation"&&s.length>=4);if(!t)return null;let n=t[1],r=t[2],o=t[3],i=r.split("&");for(let s=0;s<i.length;s++){let[u,a,f]=i[s].split(/\b/);if(!(u==="kind"&&a==="="&&e.kind===parseInt(f))){if(u==="created_at"&&a==="<"&&e.created_at<parseInt(f))continue;if(u==="created_at"&&a===">"&&e.created_at>parseInt(f))continue;return null}}let l=Io(Cr.encode(`nostr:delegation:${e.pubkey}:${r}`));return No.verifySync(o,l,n)?n:null}B.hmacSha256Sync=(e,...t)=>qi(Io,e,B.concatBytes(...t));B.sha256Sync=(...e)=>Io(B.concatBytes(...e));const Ho=e=>e.map(n=>c1(n)),Pp=(e,t,n)=>new Promise((r,o)=>{const{relays:i}=e,l=Ho(i);let s=[],u=0,a={};localStorage.getItem(`e:${t.id}`)&&(a=JSON.parse(localStorage.getItem(`e:${t.id}`)),s=a.comments,s&&!n&&r(s),u=n?0:a.updated_at);let f=!1;l.map(async c=>{try{await c.connect();const d=c.sub([{limit:100,kinds:[1],since:u,"#e":[t.id]}]);d.on("event",p=>{s.push(p),localStorage.getItem(`e:${p.id}`)||localStorage.setItem(`e:${p.id}`,JSON.stringify(p))}),d.on("eose",()=>{const p=s.filter((v,E,m)=>E===m.findIndex(h=>h.id===v.id)),w=Math.floor(new Date().getTime()/1e3);(!(a!=null&&a.updated_at)||(a==null?void 0:a.updated_at)<w)&&(localStorage.setItem(`e:${t.id}`,JSON.stringify({...a,updated_at:w,comments:p})),a.update_at=w,r(p),f=!0),d.unsub()})}catch(d){console.log(d==null?void 0:d.message)}})}),el=(e,t)=>new Promise((n,r)=>{let o={pubkey:e,created_at:0};if(localStorage.getItem(`p:${e}`)&&(o=JSON.parse(localStorage.getItem(`p:${e}`)),o.created_at>0)){n(o);return}Ho(t).map(async l=>{await l.connect();const s=l.sub([{kinds:[0],authors:[e]}]);s.on("event",u=>{(!o.created_at||u.created_at>o.created_at)&&(o={...o,...JSON.parse(u.content),created_at:u.created_at},localStorage.setItem(`p:${e}`,JSON.stringify(o)),n(o))}),s.on("eose",()=>{s.unsub(),l.close()})})}),P1=(e,t)=>new Promise((n,r)=>{const{pubkey:o,title:i,description:l,canonical:s,relays:u}=e,a=[];let f=i;o&&(a.push(["p",o]),f+=` by #[${a.length-1}]`),l&&(f+=`
|
||
${l}`),f+=`
|
||
More: ${s}
|
||
|
||
Comments powered by Disgus`,a.push(["r",s]),a.push(["client","Disgus"]);const c={content:f,tags:a},d=Np(),p=Ji(d);c.pubkey=p,$p(c,{pubkey:p,privateKey:d},u).then(w=>{localStorage.setItem(`r:${s}`,JSON.stringify(w)),n(w)})}),$1=e=>new Promise(async(t,n)=>{const{pubkey:r,canonical:o,relays:i}=e,l=Ho(i);if(localStorage.getItem(`r:${o}`)){t(JSON.parse(localStorage.getItem(`r:${o}`)));return}const s={"#r":[o]};r&&(s["#p"]=[r]),l.map(async(u,a)=>{await u.connect();const f=u.sub([{limit:1,kinds:[1],...s}]);f.on("event",c=>{localStorage.setItem(`r:${o}`,JSON.stringify(c)),t(c)}),f.on("eose",()=>{f.unsub(),u.close()})})}),$p=(e,t,n)=>new Promise(async(r,o)=>{const i=Ho(n);if(e.kind=1,e.created_at=Math.floor(Date.now()/1e3),e.id=kl(e),t&&t.privateKey)e.sig=yu(e,t.privateKey);else if(window.nostr){const{sig:s}=await window.nostr.signEvent(e);e.sig=s}else prompt("Enter your private key",""),e.sig=yu(e,t.privateKey);let l=!1;i.map(async s=>{await s.connect();const u=s.publish(e);u.on("seen",a=>{l||(r(e),l=!0)}),u.on("failed",a=>{alert(a.message)})})});function R1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M15.75 2.25H21a.75.75 0 01.75.75v5.25a.75.75 0 01-1.5 0V4.81L8.03 17.03a.75.75 0 01-1.06-1.06L19.19 3.75h-3.44a.75.75 0 010-1.5zm-10.5 4.5a1.5 1.5 0 00-1.5 1.5v10.5a1.5 1.5 0 001.5 1.5h10.5a1.5 1.5 0 001.5-1.5V10.5a.75.75 0 011.5 0v8.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V8.25a3 3 0 013-3h8.25a.75.75 0 010 1.5H5.25z",clipRule:"evenodd"}))}const H1=k.forwardRef(R1),z1=H1;function O1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M15 3.75A5.25 5.25 0 009.75 9v10.19l4.72-4.72a.75.75 0 111.06 1.06l-6 6a.75.75 0 01-1.06 0l-6-6a.75.75 0 111.06-1.06l4.72 4.72V9a6.75 6.75 0 0113.5 0v3a.75.75 0 01-1.5 0V9c0-2.9-2.35-5.25-5.25-5.25z",clipRule:"evenodd"}))}const B1=k.forwardRef(O1),U1=B1;function F1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M8.603 3.799A4.49 4.49 0 0112 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 013.498 1.307 4.491 4.491 0 011.307 3.497A4.49 4.49 0 0121.75 12a4.49 4.49 0 01-1.549 3.397 4.491 4.491 0 01-1.307 3.497 4.491 4.491 0 01-3.497 1.307A4.49 4.49 0 0112 21.75a4.49 4.49 0 01-3.397-1.549 4.49 4.49 0 01-3.498-1.306 4.491 4.491 0 01-1.307-3.498A4.49 4.49 0 012.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 011.307-3.497 4.49 4.49 0 013.497-1.307zm7.007 6.387a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const D1=k.forwardRef(F1),j1=D1;function M1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z",clipRule:"evenodd"}))}const V1=k.forwardRef(M1),K1=V1;function W1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M4.5 12a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0zm6 0a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z",clipRule:"evenodd"}))}const Q1=k.forwardRef(W1),G1=Q1;function Y1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M3.75 12a.75.75 0 01.75-.75h15a.75.75 0 010 1.5h-15a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const X1=k.forwardRef(Y1),Z1=X1;function q1({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{fillRule:"evenodd",d:"M11.484 2.17a.75.75 0 011.032 0 11.209 11.209 0 007.877 3.08.75.75 0 01.722.515 12.74 12.74 0 01.635 3.985c0 5.942-4.064 10.933-9.563 12.348a.749.749 0 01-.374 0C6.314 20.683 2.25 15.692 2.25 9.75c0-1.39.223-2.73.635-3.985a.75.75 0 01.722-.516l.143.001c2.996 0 5.718-1.17 7.734-3.08zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zM12 15a.75.75 0 00-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 00.75-.75v-.008a.75.75 0 00-.75-.75H12z",clipRule:"evenodd"}))}const J1=k.forwardRef(q1),ev=J1;function tv({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}const nv=k.forwardRef(tv),rv=nv;function ov({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}const iv=k.forwardRef(ov),lv=iv;function sv({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"}))}const uv=k.forwardRef(sv),av=uv,zo=de.createContext({}),cv=({config:e,children:t})=>{const[n,r]=k.useState(!1),[o,i]=k.useState(!1);return k.useEffect(()=>{n?Pp(e,n).then(l=>{i(l)}):$1(e).then(l=>{r(l)})},[n]),$(zo.Provider,{value:{config:e,rootEvent:n,setRootEvent:r,comments:o,setComments:i},children:t})},fv=zo.Consumer;function _a(){const{config:e,rootEvent:t,setRootEvent:n,comments:r,setComments:o}=k.useContext(zo);return{config:e,rootEvent:t,createRoot:()=>new Promise((s,u)=>{P1(e).then(a=>{n(a),s(a)})}),comments:r,refreshComments:()=>{Pp(e,t,!0).then(s=>{o(s)})}}}function dv({comment:e}){const{id:t,pubkey:n,content:r,tags:o,created_at:i}=e,{config:l,rootEvent:s}=_a(),[u,a]=k.useState(!1),f=new Date(i*1e3);k.useState();const[c,d]=k.useState();return k.useEffect(()=>{(!u||u.pubkey!==n)&&el(n,l.relays).then(p=>{a(p)})},[u,n]),k.useEffect(()=>{if(!c){const p=[],w=[];let v=r;o.forEach((E,m)=>{switch(v=v.replace(`#[${m}]`,`<a href="#${E[0]}:${E[1]}">@${E[1]}</a>`),E[0]){case"e":p.push(E[1]);break;case"p":w.push(E[1]);break}}),d(p[p.length-1])}},[c]),$("div",{className:"p-2 mx-auto",children:ke("div",{className:`flex items-top justify-between ${c!==s.id?"ml-14 sm:ml-20":""}`,children:[$("figure",{className:"w-12 sm:w-16 avatar flex-basis",style:{flexGrow:0,flexShrink:0},children:u&&u.picture?$("img",{className:`${c!==s.id?"w-10 h-10 sm:w-10 sm:h-10":"w-12 h-12 sm:w-12 sm:h-12"} object-cover rounded-full ring-2 ring-black`,src:u.picture,style:{backgroundColor:`#${n.substr(0,6)}`,lineHeight:0}}):$("div",{className:`${c!==s.id?"w-10 h-10 sm:w-10 sm:h-10":"w-12 h-12 sm:w-12 sm:h-12"} flex items-center justify-center ring-2 ring-black rounded-full uppercase text-black`,style:{backgroundColor:`#${n.substr(0,6)}`,lineHeight:0,verticalAlign:"center"},children:$("span",{className:"text-3xl",children:n.substr(0,2)})})}),ke("div",{className:"flex-grow flex-shrink overflow-hidden",children:[ke("div",{className:"flex items-top justify-between",children:[ke("div",{className:"flex-shrink flex-grow overflow-hidden",children:[ke("a",{href:`https://snort.social/p/${n}`,target:"_blank",title:n,className:"text-lg block truncate",children:[c!==s.id?$(U1,{className:"inline w-4 h-4 -mt-1 mr-1 rotate-180"}):"",$("b",{children:u.display_name||u.name||n}),u.nip05?$("abbr",{title:u.nip05.replace("_@","@"),children:$(j1,{color:"purple",className:"-mt-1 mx-1 w-4 h-4 inline-block"})}):$("abbr",{className:"opacity-70",title:`No-NIP05 ${n}`,children:$(ev,{className:"-mt-1 mx-1 w-4 h-4 inline-block"})})]}),$("a",{href:`https://snort.social/e/${t}`,tit:!0,target:"_blank",le:t,className:"text-xs block whitespace-nowrap truncate opacity-70",children:ke("time",{dateTime:f.toISOString(),children:[$(rv,{className:"w-3 h-3 inline"})," ",Ey(f)]})})]}),ke("div",{className:"flex-basis ml-2 text-right",children:[$(Z1,{className:"w-6 h-6 hidden inline-block"}),$(G1,{className:"w-6 h-6 inline-block hidden"})]})]}),$("div",{className:"mt-2 text-md",children:$("p",{children:r})}),$("div",{className:"mt-2 text-md",children:ke("a",{href:`https://snort.social/e/${t}`,tit:!0,target:"_blank",le:t,className:"text-xs block whitespace-nowrap truncate opacity-70",children:["Reply on nostr",$(z1,{className:"w-3 h-3 inline-block ml-1"})]})})]})]})})}const qn="disgusUser",Ta=de.createContext(),hv=({children:e})=>{const{config:t}=k.useContext(zo),[n,r]=k.useState(!1);return k.useEffect(()=>{if(!n&&localStorage.getItem(qn)){const o=JSON.parse(localStorage.getItem(qn));r(o),el(o.pubkey,t.relays).then(i=>r({...o,...i}))}},[!n]),$(Ta.Provider,{value:{user:n,setUser:r},children:e})};Ta.Consumer;function Rp(){const{config:e}=k.useContext(zo),{relays:t}=e,{user:n,setUser:r}=k.useContext(Ta);return{user:n,signIn:()=>{if(!n)if(window.nostr)window.nostr.getPublicKey().then(s=>{el(s,t).then(u=>{localStorage.setItem(qn,JSON.stringify(u)),r(u)})});else{let s=prompt("Enter your private key","");Ji(s)?el(publicKey,t).then(a=>{localStorage.setItem(qn,JSON.stringify(a)),r({...s,_user:a})}):alert("Incorrect key.")}},signOut:()=>{localStorage.removeItem(qn),r(!1)},signInRandom:s=>{if(n)return;let u=s||prompt("What's your name?","Randy Rando");if(!u||u.length<=0)return;const a=Np(),f=Ji(a),c={name:u,about:"Random Guest"},d=o1();d.kind=0,d.pubkey=f,d.content=JSON.stringify(c),d.tags=[["client","Disgus"]],d.created_at=Math.floor(Date.now()/1e3),d.id=kl(d),d.sig=yu(d,a),Ho(t).map(async w=>{await w.connect();const v=w.publish(d);v.on("seen",()=>{n||(localStorage.setItem(qn,JSON.stringify({pubkey:f,privateKey:a,created_at:d.created_at,...c})),r({pubkey:f,privateKey:a,created_at:d.created_at,...c})),w.close()}),v.on("failed",()=>{w.close()})})}}}function af({children:e,Component:t="button",variant:n,className:r,...o}){let i=["rounded"];switch(n){case"primary":i.push("py-2","px-4","whitespace-nowrap","bg-black","text-white","font-bold");break;case"secondary":i.push("py-1","px-2","hover:ring","hover:ring-gray-300");break;default:i.push("");break}return r&&i.push(r),$(t,{className:i.join(" "),...o,children:e})}function pv(){const{config:e,rootEvent:t,createRoot:n,refreshComments:r}=_a(),{pubkey:o,relays:i}=e,[l,s]=k.useState(""),[u,a]=k.useState(!1),{user:f,signIn:c,signInRandom:d}=Rp(),p=async v=>{const E=[["e",v,i[0],"root"]];o&&E.push(["p",o]),E.push(["client","Disgus"]),l.length>0&&$p({pubkey:f.pubkey,content:l,tags:E},f,i).then(()=>{s(""),r()})};let w=setTimeout(()=>{},0);return $(If,{children:ke("form",{className:"relative appearance-none bg-gray-300/10 bg-opacity-65 backdrop-blur-md font-mono rounded","aria-disabled":!f,onSubmit:async v=>{v.preventDefault(),t?await p(t.id):n().then(async E=>{await p(E.id)})},onFocus:v=>{clearTimeout(w),a(!0)},onBlur:v=>{w=setTimeout(()=>a(!1),100)},children:[$("textarea",{className:"w-full p-2 m-0 bg-gray-300/10 bg-opacity-65 backdrop-blur-md focus:outline-none rounded-lg",id:"comment",placeholder:"Join the discussion...",value:l,rows:u||l.length>0?3:1,onChange:v=>{s(v.target.value)}}),(u||l.length>0)&&ke("div",{className:"bg-none text-white/75 m-0 px-2 py-1 flex items-center justify-between",children:[t?ke("a",{className:"block whitespace-nowrap truncate",rel:"nostr:event",href:`nostr:e:${t.id}`,title:`re: ${t.id}`,children:[$(av,{className:"inline-block",width:18})," ",t.id]}):$(lv,{width:18}),f?$(af,{type:"submit",variant:"primary",children:"Comment"}):$("div",{className:"whitespace-nowrap",children:$(af,{type:"button",variant:"primary",className:"mr-2 bg-lime-600 text-black",onClick:v=>{v.preventDefault(),c()},children:"Sign In"},"plugin")})]})]})})}const Hp=typeof window>"u"||typeof document>"u";let Ye=Hp?k.useEffect:k.useLayoutEffect;function Tn(e){let t=k.useRef(e);return Ye(()=>{t.current=e},[e]),t}function mv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function un(){let e=[],t=[],n={enqueue(r){t.push(r)},addEventListener(r,o,i,l){return r.addEventListener(o,i,l),n.add(()=>r.removeEventListener(o,i,l))},requestAnimationFrame(...r){let o=requestAnimationFrame(...r);return n.add(()=>cancelAnimationFrame(o))},nextFrame(...r){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...r))},setTimeout(...r){let o=setTimeout(...r);return n.add(()=>clearTimeout(o))},microTask(...r){let o={current:!0};return mv(()=>{o.current&&r[0]()}),n.add(()=>{o.current=!1})},add(r){return e.push(r),()=>{let o=e.indexOf(r);if(o>=0){let[i]=e.splice(o,1);i()}}},dispose(){for(let r of e.splice(0))r()},async workQueue(){for(let r of t.splice(0))await r()}};return n}function Sl(){let[e]=k.useState(un);return k.useEffect(()=>()=>e.dispose(),[e]),e}let se=function(e){let t=Tn(e);return de.useCallback((...n)=>t.current(...n),[t])},us={serverHandoffComplete:!1};function Aa(){let[e,t]=k.useState(us.serverHandoffComplete);return k.useEffect(()=>{e!==!0&&t(!0)},[e]),k.useEffect(()=>{us.serverHandoffComplete===!1&&(us.serverHandoffComplete=!0)},[]),e}var cf;let yv=0;function ff(){return++yv}let Na=(cf=de.useId)!=null?cf:function(){let e=Aa(),[t,n]=de.useState(e?ff:null);return Ye(()=>{t===null&&n(ff())},[t]),t!=null?""+t:void 0};function Ie(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ie),r}function bl(e){return Hp?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let gu=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var vu=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(vu||{}),gv=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(gv||{}),vv=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(vv||{});function zp(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(gu)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ia=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ia||{});function La(e,t=0){var n;return e===((n=bl(e))==null?void 0:n.body)?!1:Ie(t,{[0](){return e.matches(gu)},[1](){let r=e;for(;r!==null;){if(r.matches(gu))return!0;r=r.parentElement}return!1}})}function Op(e){let t=bl(e);un().nextFrame(()=>{t&&!La(t.activeElement,0)&&wv(e)})}function wv(e){e==null||e.focus({preventScroll:!0})}let xv=["textarea","input"].join(",");function kv(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,xv))!=null?n:!1}function Bp(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ev(e,t){return Sv(zp(),t,{relativeTo:e})}function Sv(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,l=Array.isArray(e)?n?Bp(e):e:zp(e);o.length>0&&(l=l.filter(p=>!o.includes(p))),r=r??i.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),a=t&32?{preventScroll:!0}:{},f=0,c=l.length,d;do{if(f>=c||f+c<=0)return 0;let p=u+f;if(t&16)p=(p+c)%c;else{if(p<0)return 3;if(p>=c)return 1}d=l[p],d==null||d.focus(a),f+=s}while(d!==i.activeElement);return t&6&&kv(d)&&d.select(),d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),2}function as(e,t,n){let r=Tn(t);k.useEffect(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function bv(e,t,n=!0){let r=k.useRef(!1);k.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(l,s){if(!r.current||l.defaultPrevented)return;let u=function f(c){return typeof c=="function"?f(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e),a=s(l);if(a!==null&&a.getRootNode().contains(a)){for(let f of u){if(f===null)continue;let c=f instanceof HTMLElement?f:f.current;if(c!=null&&c.contains(a)||l.composed&&l.composedPath().includes(c))return}return!La(a,Ia.Loose)&&a.tabIndex!==-1&&l.preventDefault(),t(l,a)}}let i=k.useRef(null);as("mousedown",l=>{var s,u;r.current&&(i.current=((u=(s=l.composedPath)==null?void 0:s.call(l))==null?void 0:u[0])||l.target)},!0),as("click",l=>{!i.current||(o(l,()=>i.current),i.current=null)},!0),as("blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function df(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Cv(e,t){let[n,r]=k.useState(()=>df(e));return Ye(()=>{r(df(e))},[e.type,e.as]),Ye(()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let _v=Symbol();function _r(...e){let t=k.useRef(e);k.useEffect(()=>{t.current=e},[e]);let n=se(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[_v]))?void 0:n}function Tv({container:e,accept:t,walk:n,enabled:r=!0}){let o=k.useRef(t),i=k.useRef(n);k.useEffect(()=>{o.current=t,i.current=n},[t,n]),Ye(()=>{if(!e||!r)return;let l=bl(e);if(!l)return;let s=o.current,u=i.current,a=Object.assign(c=>s(c),{acceptNode:s}),f=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a,!1);for(;f.nextNode();)u(f.currentNode)},[e,r,o,i])}function Av(e){throw new Error("Unexpected object: "+e)}var rt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(rt||{});function Nv(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1,i=(()=>{switch(e.focus){case 0:return n.findIndex(l=>!t.resolveDisabled(l));case 1:{let l=n.slice().reverse().findIndex((s,u,a)=>o!==-1&&a.length-u-1>=o?!1:!t.resolveDisabled(s));return l===-1?l:n.length-1-l}case 2:return n.findIndex((l,s)=>s<=o?!1:!t.resolveDisabled(l));case 3:{let l=n.slice().reverse().findIndex(s=>!t.resolveDisabled(s));return l===-1?l:n.length-1-l}case 4:return n.findIndex(l=>t.resolveId(l)===e.id);case 5:return null;default:Av(e)}})();return i===-1?r:i}var tl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(tl||{}),St=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(St||{});function Tr({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l}){let s=Up(t,e);if(i)return ai(s,n,r,l);let u=o??0;if(u&2){let{static:a=!1,...f}=s;if(a)return ai(f,n,r,l)}if(u&1){let{unmount:a=!0,...f}=s;return Ie(a?0:1,{[0](){return null},[1](){return ai({...f,hidden:!0,style:{display:"none"}},n,r,l)}})}return ai(s,n,r,l)}function ai(e,t={},n,r){let{as:o=n,children:i,refName:l="ref",...s}=cs(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},a=typeof i=="function"?i(t):i;s.className&&typeof s.className=="function"&&(s.className=s.className(t));let f={};if(t){let c=!1,d=[];for(let[p,w]of Object.entries(t))typeof w=="boolean"&&(c=!0),w===!0&&d.push(p);c&&(f["data-headlessui-state"]=d.join(" "))}if(o===k.Fragment&&Object.keys(hf(s)).length>0){if(!k.isValidElement(a)||Array.isArray(a)&&a.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map(c=>` - ${c}`).join(`
|
||
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(c=>` - ${c}`).join(`
|
||
`)].join(`
|
||
`));return k.cloneElement(a,Object.assign({},Up(a.props,hf(cs(s,["ref"]))),f,u,Iv(a.ref,u.ref)))}return k.createElement(o,Object.assign({},cs(s,["ref"]),o!==k.Fragment&&u,o!==k.Fragment&&f),a)}function Iv(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Up(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let s of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function zn(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function hf(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function cs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Lv(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Pv(n)?!1:r}function Pv(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Pa=k.createContext(null);Pa.displayName="OpenClosedContext";var an=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(an||{});function $a(){return k.useContext(Pa)}function Fp({value:e,children:t}){return de.createElement(Pa.Provider,{value:e},t)}var me=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(me||{});function pf(e){return[e.screenX,e.screenY]}function $v(){let e=k.useRef([-1,-1]);return{wasMoved(t){let n=pf(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=pf(t)}}}function Dp(){let e=k.useRef(!1);return Ye(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Rv(...e){return k.useMemo(()=>bl(...e),[...e])}var Hv=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Hv||{}),zv=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(zv||{}),Ov=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Ov||{});function fs(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Bp(t(e.items.slice()),i=>i.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{items:r,activeItemIndex:o}}let Bv={[1](e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},[0](e){return e.menuState===0?e:{...e,menuState:0}},[2]:(e,t)=>{var n;let r=fs(e),o=Nv(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:(n=t.trigger)!=null?n:1}},[3]:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(l=>{var s;return((s=l.dataRef.current.textValue)==null?void 0:s.startsWith(r))&&!l.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return i===-1||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},[4](e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},[5]:(e,t)=>{let n=fs(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},[6]:(e,t)=>{let n=fs(e,r=>{let o=r.findIndex(i=>i.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...n,activationTrigger:1}}},Ra=k.createContext(null);Ra.displayName="MenuContext";function Cl(e){let t=k.useContext(Ra);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Cl),n}return t}function Uv(e,t){return Ie(t.type,Bv,e,t)}let Fv=k.Fragment,Dv=zn(function(e,t){let n=k.useReducer(Uv,{menuState:1,buttonRef:k.createRef(),itemsRef:k.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:r,itemsRef:o,buttonRef:i},l]=n,s=_r(t);bv([i,o],(d,p)=>{var w;l({type:1}),La(p,Ia.Loose)||(d.preventDefault(),(w=i.current)==null||w.focus())},r===0);let u=se(()=>{l({type:1})}),a=k.useMemo(()=>({open:r===0,close:u}),[r,u]),f=e,c={ref:s};return de.createElement(Ra.Provider,{value:n},de.createElement(Fp,{value:Ie(r,{[0]:an.Open,[1]:an.Closed})},Tr({ourProps:c,theirProps:f,slot:a,defaultTag:Fv,name:"Menu"})))}),jv="button",Mv=zn(function(e,t){var n;let r=Na(),{id:o=`headlessui-menu-button-${r}`,...i}=e,[l,s]=Cl("Menu.Button"),u=_r(l.buttonRef,t),a=Sl(),f=se(v=>{switch(v.key){case me.Space:case me.Enter:case me.ArrowDown:v.preventDefault(),v.stopPropagation(),s({type:0}),a.nextFrame(()=>s({type:2,focus:rt.First}));break;case me.ArrowUp:v.preventDefault(),v.stopPropagation(),s({type:0}),a.nextFrame(()=>s({type:2,focus:rt.Last}));break}}),c=se(v=>{switch(v.key){case me.Space:v.preventDefault();break}}),d=se(v=>{if(Lv(v.currentTarget))return v.preventDefault();e.disabled||(l.menuState===0?(s({type:1}),a.nextFrame(()=>{var E;return(E=l.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})})):(v.preventDefault(),s({type:0})))}),p=k.useMemo(()=>({open:l.menuState===0}),[l]),w={ref:u,id:o,type:Cv(e,l.buttonRef),"aria-haspopup":"menu","aria-controls":(n=l.itemsRef.current)==null?void 0:n.id,"aria-expanded":e.disabled?void 0:l.menuState===0,onKeyDown:f,onKeyUp:c,onClick:d};return Tr({ourProps:w,theirProps:i,slot:p,defaultTag:jv,name:"Menu.Button"})}),Vv="div",Kv=tl.RenderStrategy|tl.Static,Wv=zn(function(e,t){var n,r;let o=Na(),{id:i=`headlessui-menu-items-${o}`,...l}=e,[s,u]=Cl("Menu.Items"),a=_r(s.itemsRef,t),f=Rv(s.itemsRef),c=Sl(),d=$a(),p=(()=>d!==null?d===an.Open:s.menuState===0)();k.useEffect(()=>{let h=s.itemsRef.current;!h||s.menuState===0&&h!==(f==null?void 0:f.activeElement)&&h.focus({preventScroll:!0})},[s.menuState,s.itemsRef,f]),Tv({container:s.itemsRef.current,enabled:s.menuState===0,accept(h){return h.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:h.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(h){h.setAttribute("role","none")}});let w=se(h=>{var y,g;switch(c.dispose(),h.key){case me.Space:if(s.searchQuery!=="")return h.preventDefault(),h.stopPropagation(),u({type:3,value:h.key});case me.Enter:if(h.preventDefault(),h.stopPropagation(),u({type:1}),s.activeItemIndex!==null){let{dataRef:x}=s.items[s.activeItemIndex];(g=(y=x.current)==null?void 0:y.domRef.current)==null||g.click()}Op(s.buttonRef.current);break;case me.ArrowDown:return h.preventDefault(),h.stopPropagation(),u({type:2,focus:rt.Next});case me.ArrowUp:return h.preventDefault(),h.stopPropagation(),u({type:2,focus:rt.Previous});case me.Home:case me.PageUp:return h.preventDefault(),h.stopPropagation(),u({type:2,focus:rt.First});case me.End:case me.PageDown:return h.preventDefault(),h.stopPropagation(),u({type:2,focus:rt.Last});case me.Escape:h.preventDefault(),h.stopPropagation(),u({type:1}),un().nextFrame(()=>{var x;return(x=s.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});break;case me.Tab:h.preventDefault(),h.stopPropagation(),u({type:1}),un().nextFrame(()=>{Ev(s.buttonRef.current,h.shiftKey?vu.Previous:vu.Next)});break;default:h.key.length===1&&(u({type:3,value:h.key}),c.setTimeout(()=>u({type:4}),350));break}}),v=se(h=>{switch(h.key){case me.Space:h.preventDefault();break}}),E=k.useMemo(()=>({open:s.menuState===0}),[s]),m={"aria-activedescendant":s.activeItemIndex===null||(n=s.items[s.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=s.buttonRef.current)==null?void 0:r.id,id:i,onKeyDown:w,onKeyUp:v,role:"menu",tabIndex:0,ref:a};return Tr({ourProps:m,theirProps:l,slot:E,defaultTag:Vv,features:Kv,visible:p,name:"Menu.Items"})}),Qv=k.Fragment,Gv=zn(function(e,t){let n=Na(),{id:r=`headlessui-menu-item-${n}`,disabled:o=!1,...i}=e,[l,s]=Cl("Menu.Item"),u=l.activeItemIndex!==null?l.items[l.activeItemIndex].id===r:!1,a=k.useRef(null),f=_r(t,a);Ye(()=>{if(l.menuState!==0||!u||l.activationTrigger===0)return;let g=un();return g.requestAnimationFrame(()=>{var x,C;(C=(x=a.current)==null?void 0:x.scrollIntoView)==null||C.call(x,{block:"nearest"})}),g.dispose},[a,u,l.menuState,l.activationTrigger,l.activeItemIndex]);let c=k.useRef({disabled:o,domRef:a});Ye(()=>{c.current.disabled=o},[c,o]),Ye(()=>{var g,x;c.current.textValue=(x=(g=a.current)==null?void 0:g.textContent)==null?void 0:x.toLowerCase()},[c,a]),Ye(()=>(s({type:5,id:r,dataRef:c}),()=>s({type:6,id:r})),[c,r]);let d=se(()=>{s({type:1})}),p=se(g=>{if(o)return g.preventDefault();s({type:1}),Op(l.buttonRef.current)}),w=se(()=>{if(o)return s({type:2,focus:rt.Nothing});s({type:2,focus:rt.Specific,id:r})}),v=$v(),E=se(g=>v.update(g)),m=se(g=>{!v.wasMoved(g)||o||u||s({type:2,focus:rt.Specific,id:r,trigger:0})}),h=se(g=>{!v.wasMoved(g)||o||!u||s({type:2,focus:rt.Nothing})}),y=k.useMemo(()=>({active:u,disabled:o,close:d}),[u,o,d]);return Tr({ourProps:{id:r,ref:f,role:"menuitem",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,disabled:void 0,onClick:p,onFocus:w,onPointerEnter:E,onMouseEnter:E,onPointerMove:m,onMouseMove:m,onPointerLeave:h,onMouseLeave:h},theirProps:i,slot:y,defaultTag:Qv,name:"Menu.Item"})}),Ur=Object.assign(Dv,{Button:Mv,Items:Wv,Item:Gv});function Yv(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ds(e,...t){e&&t.length>0&&e.classList.add(...t)}function hs(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Xv(e,t){let n=un();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,l]=[r,o].map(s=>{let[u=0]=s.split(",").filter(Boolean).map(a=>a.includes("ms")?parseFloat(a):parseFloat(a)*1e3).sort((a,f)=>f-a);return u});if(i+l!==0){let s=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),s())})}else t();return n.add(()=>t()),n.dispose}function Zv(e,t,n,r){let o=n?"enter":"leave",i=un(),l=r!==void 0?Yv(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Ie(o,{enter:()=>t.enter,leave:()=>t.leave}),u=Ie(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),a=Ie(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return hs(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ds(e,...s,...a),i.nextFrame(()=>{hs(e,...a),ds(e,...u),Xv(e,()=>(hs(e,...s),ds(e,...t.entered),l()))}),i.dispose}function qv({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Dp(),l=Sl(),s=Tn(t);Ye(()=>{let u=un();l.add(u.dispose);let a=e.current;if(a&&s.current!=="idle"&&i.current)return u.dispose(),r.current(s.current),u.add(Zv(a,n.current,s.current==="enter",()=>{u.dispose(),o.current(s.current)})),u.dispose},[t])}function Jv(...e){return e.filter(Boolean).join(" ")}function gn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let _l=k.createContext(null);_l.displayName="TransitionContext";var ew=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ew||{});function tw(){let e=k.useContext(_l);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function nw(){let e=k.useContext(Tl);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Tl=k.createContext(null);Tl.displayName="NestingContext";function Al(e){return"children"in e?Al(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function jp(e,t){let n=Tn(e),r=k.useRef([]),o=Dp(),i=Sl(),l=se((p,w=St.Hidden)=>{let v=r.current.findIndex(({el:E})=>E===p);v!==-1&&(Ie(w,{[St.Unmount](){r.current.splice(v,1)},[St.Hidden](){r.current[v].state="hidden"}}),i.microTask(()=>{var E;!Al(r)&&o.current&&((E=n.current)==null||E.call(n))}))}),s=se(p=>{let w=r.current.find(({el:v})=>v===p);return w?w.state!=="visible"&&(w.state="visible"):r.current.push({el:p,state:"visible"}),()=>l(p,St.Unmount)}),u=k.useRef([]),a=k.useRef(Promise.resolve()),f=k.useRef({enter:[],leave:[],idle:[]}),c=se((p,w,v)=>{u.current.splice(0),t&&(t.chains.current[w]=t.chains.current[w].filter(([E])=>E!==p)),t==null||t.chains.current[w].push([p,new Promise(E=>{u.current.push(E)})]),t==null||t.chains.current[w].push([p,new Promise(E=>{Promise.all(f.current[w].map(([m,h])=>h)).then(()=>E())})]),w==="enter"?a.current=a.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(w)):v(w)}),d=se((p,w,v)=>{Promise.all(f.current[w].splice(0).map(([E,m])=>m)).then(()=>{var E;(E=u.current.shift())==null||E()}).then(()=>v(w))});return k.useMemo(()=>({children:r,register:s,unregister:l,onStart:c,onStop:d,wait:a,chains:f}),[s,l,r,c,d,f,a])}function rw(){}let ow=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mf(e){var t;let n={};for(let r of ow)n[r]=(t=e[r])!=null?t:rw;return n}function iw(e){let t=k.useRef(mf(e));return k.useEffect(()=>{t.current=mf(e)},[e]),t}let lw="div",Mp=tl.RenderStrategy,Vp=zn(function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:l,enterFrom:s,enterTo:u,entered:a,leave:f,leaveFrom:c,leaveTo:d,...p}=e,w=k.useRef(null),v=_r(w,t),E=p.unmount?St.Unmount:St.Hidden,{show:m,appear:h,initial:y}=tw(),[g,x]=k.useState(m?"visible":"hidden"),C=nw(),{register:S,unregister:T}=C,R=k.useRef(null);k.useEffect(()=>S(w),[S,w]),k.useEffect(()=>{if(E===St.Hidden&&w.current){if(m&&g!=="visible"){x("visible");return}return Ie(g,{hidden:()=>T(w),visible:()=>S(w)})}},[g,w,S,T,m,E]);let b=Tn({enter:gn(l),enterFrom:gn(s),enterTo:gn(u),entered:gn(a),leave:gn(f),leaveFrom:gn(c),leaveTo:gn(d)}),L=iw({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),P=Aa();k.useEffect(()=>{if(P&&g==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,g,P]);let W=y&&!h,ne=(()=>!P||W||R.current===m?"idle":m?"enter":"leave")(),ut=se(H=>Ie(H,{enter:()=>L.current.beforeEnter(),leave:()=>L.current.beforeLeave(),idle:()=>{}})),pn=se(H=>Ie(H,{enter:()=>L.current.afterEnter(),leave:()=>L.current.afterLeave(),idle:()=>{}})),$t=jp(()=>{x("hidden"),T(w)},C);qv({container:w,classes:b,direction:ne,onStart:Tn(H=>{$t.onStart(w,H,ut)}),onStop:Tn(H=>{$t.onStop(w,H,pn),H==="leave"&&!Al($t)&&(x("hidden"),T(w))})}),k.useEffect(()=>{!W||(E===St.Hidden?R.current=null:R.current=m)},[m,W,g]);let N=p,z={ref:v};return h&&m&&(typeof window>"u"||typeof document>"u")&&(N={...N,className:Jv(p.className,...b.current.enter,...b.current.enterFrom)}),de.createElement(Tl.Provider,{value:$t},de.createElement(Fp,{value:Ie(g,{visible:an.Open,hidden:an.Closed})},Tr({ourProps:z,theirProps:N,defaultTag:lw,features:Mp,visible:g==="visible",name:"Transition.Child"})))}),wu=zn(function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,l=k.useRef(null),s=_r(l,t);Aa();let u=$a();if(n===void 0&&u!==null&&(n=Ie(u,{[an.Open]:!0,[an.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[a,f]=k.useState(n?"visible":"hidden"),c=jp(()=>{f("hidden")}),[d,p]=k.useState(!0),w=k.useRef([n]);Ye(()=>{d!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),p(!1))},[w,n]);let v=k.useMemo(()=>({show:n,appear:r,initial:d}),[n,r,d]);k.useEffect(()=>{if(n)f("visible");else if(!Al(c))f("hidden");else{let m=l.current;if(!m)return;let h=m.getBoundingClientRect();h.x===0&&h.y===0&&h.width===0&&h.height===0&&f("hidden")}},[n,c]);let E={unmount:o};return de.createElement(Tl.Provider,{value:c},de.createElement(_l.Provider,{value:v},Tr({ourProps:{...E,as:k.Fragment,children:de.createElement(Vp,{ref:s,...E,...i})},theirProps:{},defaultTag:k.Fragment,features:Mp,visible:a==="visible",name:"Transition"})))}),sw=zn(function(e,t){let n=k.useContext(_l)!==null,r=$a()!==null;return de.createElement(de.Fragment,null,!n&&r?de.createElement(wu,{ref:t,...e}):de.createElement(Vp,{ref:t,...e}))}),uw=Object.assign(wu,{Child:sw,Root:wu});function aw(){const{comments:e}=_a(),{user:t,signInRandom:n,signIn:r,signOut:o}=Rp();return ke("div",{className:"flex items-center justify-between",children:[$("div",{className:"whitespace-nowrap truncate",children:ke("b",{children:[e.length," Comments"]})}),ke(Ur,{as:"div",className:"relative block text-right",children:[$("div",{children:ke(Ur.Button,{className:"inline-flex align-center justify-center px-4 py-2",children:[$("figure",{className:"avatar placeholder mr-2",children:t&&t.picture?$("img",{className:"object-cover rounded-full w-6 h-6 ring-1 ring-black",src:t.picture,style:{backgroundColor:`#${t.pubkey.substr(0,6)}`,lineHeight:0}}):$("div",{className:"flex items-center justify-center w-6 h-6 ring-1 ring-black rounded-full uppercase text-black",style:{backgroundColor:`#${t.pubkey?t.pubkey.substr(0,6):"ffffff"}`,lineHeight:0,verticalAlign:"center"},children:$("span",{className:"text-md",children:t.pubkey?t.pubkey.substr(0,2):"?"})})}),t?$("b",{className:"inline-block whitespace-nowrap w-auto truncate",style:{maxWidth:"250px"},children:t.display_name||t.name||t.pubkey}):$("b",{children:"Login"}),$(K1,{className:"-mr-1 ml-1 w-4","aria-hidden":"true"})]})}),$(uw,{as:k.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:$(Ur.Items,{className:"absolute right-0 z-10 mt-2 w-56 origin-top-right rounded-md bg-white ring-1 ring-black ring-opacity-5 focus:outline-none",children:t?$("div",{className:"py-1",children:$(Ur.Item,{children:({active:i})=>$("a",{onClick:l=>{l.preventDefault(),o()},className:Vc(i?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm"),children:"Sign Out"})})}):$("div",{className:"py-1",children:$(Ur.Item,{children:({active:i})=>$("a",{onClick:l=>{l.preventDefault(),r()},className:Vc(i?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm"),children:"Sign In"})})})})})]})]})}function cw({config:e}){return $(cv,{config:e,children:$(hv,{children:ke("div",{className:"relative text-left overflow-hidden mx-auto px-2 sm:px-4",children:[$(aw,{}),$(pv,{}),$("div",{children:$(fv,{children:({comments:t})=>{if(t&&t.length>0){const n={},r=t.filter((s,u,a)=>(n[s.id]=s.created_at,u===a.findIndex(f=>f.id===s.id))),o=r.filter(s=>s.tags.filter(u=>u[0]==="e").length<=1),i=r.filter(s=>s.tags.filter(u=>u[0]==="e").length>1);o.sort((s,u)=>u.created_at-s.created_at),i.sort((s,u)=>{const a=s.tags.filter(c=>c[0]==="e").map(c=>c[1]),f=a[a.length-1];return u.created_at-(n[f]-1)});const l=[];return o.forEach(s=>{l.push(s);const u=i.filter(a=>a.tags.filter(c=>c[0]==="e").map(c=>c[1]).includes(s.id));l.push(...u)}),l.map((s,u)=>$(dv,{comment:s},u))}return $(If,{})}})})]})})})}const Kp=window.top||window,vt=Kp.document;var gf,vf,wf,xf,kf;const fw={domRoot:vt.getElementById("disgus"),relays:Array.from(vt.querySelectorAll('meta[property="nostr:relay"]')).map(e=>e.getAttribute("content"))||["wss://brb.io","wss://relay.nosphr.com"],pubkey:((gf=vt.querySelector('meta[property="nostr:pubkey"]'))==null?void 0:gf.getAttribute("content"))||!1,event_id:((vf=vt.querySelector('meta[property="nostr:event_id"]'))==null?void 0:vf.getAttribute("content"))||!1,canonical:((wf=vt.querySelector('meta[property="og:url"]'))==null?void 0:wf.getAttribute("content"))||((xf=vt.querySelector('link[rel="canonical"]'))==null?void 0:xf.href)||vt.location.href,title:((kf=vt.querySelector('meta[property="og:title"]'))==null?void 0:kf.getAttribute("content"))||vt.title},yf={...fw,...Kp.disgusConfig};ps.createRoot(yf.domRoot).render($(de.StrictMode,{children:$(cw,{config:yf})}))});export default dw();
|