PageSourceSearch

https://durbonca-eth-transfer.netlify.app/assets/vendor.a6fe7a7b.js

js durbonca-eth-transfer.netlify.app collected 2026-10-03 10:40:16 UTC 397,154 bytes, 48 lines download raw bytes

vendor: 1,046 bytes, lines 1-5
1var cc=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Es={exports:{}},ce={};/*
2object-assign
3(c) Sindre Sorhus
4@license MIT
5*/var hc=Object.getOwnPropertySymbols,M1=Object.prototype.hasOwnProperty,P1=Object.prototype.propertyIsEnumerable;function R1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function T1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var dc=T1()?Object.assign:function(t,e){for(var r,n=R1(t),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var s in r)M1.call(r,s)&&
vendor: 37,108 bytes, lines 5-30
5(n[s]=r[s]);if(hc){i=hc(r);for(var l=0;l<i.length;l++)P1.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n};/** @license React v17.0.2
6 * react.production.min.js
7 *
8 * Copyright (c) Facebook, Inc. and its affiliates.
9 *
10 * This source code is licensed under the MIT license found in the
11 * LICENSE file in the root directory of this source tree.
12 */var gu=dc,li=60103,pc=60106;ce.Fragment=60107;ce.StrictMode=60108;ce.Profiler=60114;var mc=60109,gc=60110,vc=60112;ce.Suspense=60113;var yc=60115,wc=60116;if(typeof Symbol=="function"&&Symbol.for){var Yt=Symbol.for;li=Yt("react.element"),pc=Yt("react.portal"),ce.Fragment=Yt("react.fragment"),ce.StrictMode=Yt("react.strict_mode"),ce.Profiler=Yt("react.profiler"),mc=Yt("react.provider"),gc=Yt("react.context"),vc=Yt("react.forward_ref"),ce.Suspense=Yt("react.suspense"),yc=Yt("react.memo"),wc=Yt("react.lazy")}var xc=typeof Symbol=="function"&&Symbol.iterator;function I1(t){return t===null||typeof t!="object"?null:(t=xc&&t[xc]||t["@@iterator"],typeof t=="function"?t:null)}function oo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ec={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_c={};function ui(t,e,r){this.props=t,this.context=e,this.refs=_c,this.updater=r||Ec}ui.prototype.isReactComponent={};ui.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(oo(85));this.updater.enqueueSetState(this,t,e,"setState")};ui.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function bc(){}bc.prototype=ui.prototype;function vu(t,e,r){this.props=t,this.context=e,this.refs=_c,this.updater=r||Ec}var yu=vu.prototype=new bc;yu.constructor=vu;gu(yu,ui.prototype);yu.isPureReactComponent=!0;var wu={current:null},Sc=Object.prototype.hasOwnProperty,kc={key:!0,ref:!0,__self:!0,__source:!0};function Ac(t,e,r){var n,i={},o=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)Sc.call(e,n)&&!kc.hasOwnProperty(n)&&(i[n]=e[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}if(t&&t.defaultProps)for(n in l=t.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:li,type:t,key:o,ref:s,props:i,_owner:wu.current}}function C1(t,e){return{$$typeof:li,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function xu(t){return typeof t=="object"&&t!==null&&t.$$typeof===li}function O1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Nc=/\/+/g;function Eu(t,e){return typeof t=="object"&&t!==null&&t.key!=null?O1(""+t.key):e.toString(36)}function _s(t,e,r,n,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case li:case pc:s=!0}}if(s)return s=t,i=i(s),t=n===""?"."+Eu(s,0):n,Array.isArray(i)?(r="",t!=null&&(r=t.replace(Nc,"$&/")+"/"),_s(i,e,r,"",function(c){return c})):i!=null&&(xu(i)&&(i=C1(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Nc,"$&/")+"/")+t)),e.push(i)),1;if(s=0,n=n===""?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){o=t[l];var a=n+Eu(o,l);s+=_s(o,e,r,a,i)}else if(a=I1(t),typeof a=="function")for(t=a.call(t),l=0;!(o=t.next()).done;)o=o.value,a=n+Eu(o,l++),s+=_s(o,e,r,a,i);else if(o==="object")throw e=""+t,Error(oo(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function bs(t,e,r){if(t==null)return t;var n=[],i=0;return _s(t,n,"","",function(o){return e.call(r,o,i++)}),n}function B1(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(r){t._status===0&&(r=r.default,t._status=1,t._result=r)},function(r){t._status===0&&(t._status=2,t._result=r)})}if(t._status===1)return t._result;throw t._result}var Mc={current:null};function Pr(){var t=Mc.current;if(t===null)throw Error(oo(321));return t}var L1={ReactCurrentDispatcher:Mc,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:wu,IsSomeRendererActing:{current:!1},assign:gu};ce.Children={map:bs,forEach:function(t,e,r){bs(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return bs(t,function(){e++}),e},toArray:function(t){return bs(t,function(e){return e})||[]},only:function(t){if(!xu(t))throw Error(oo(143));return t}};ce.Component=ui;ce.PureComponent=vu;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L1;ce.cloneElement=function(t,e,r){if(t==null)throw Error(oo(267,t));var n=gu({},t.props),i=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=wu.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(a in e)Sc.call(e,a)&&!kc.hasOwnProperty(a)&&(n[a]=e[a]===void 0&&l!==void 0?l[a]:e[a])}var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:li,type:t.type,key:i,ref:o,props:n,_owner:s}};ce.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:gc,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:mc,_context:t},t.Consumer=t};ce.createElement=Ac;ce.createFactory=function(t){var e=Ac.bind(null,t);return e.type=t,e};ce.createRef=function(){return{current:null}};ce.forwardRef=function(t){return{$$typeof:vc,render:t}};ce.isValidElement=xu;ce.lazy=function(t){return{$$typeof:wc,_payload:{_status:-1,_result:t},_init:B1}};ce.memo=function(t,e){return{$$typeof:yc,type:t,compare:e===void 0?null:e}};ce.useCallback=function(t,e){return Pr().useCallback(t,e)};ce.useContext=function(t,e){return Pr().useContext(t,e)};ce.useDebugValue=function(){};ce.useEffect=function(t,e){return Pr().useEffect(t,e)};ce.useImperativeHandle=function(t,e,r){return Pr().useImperativeHandle(t,e,r)};ce.useLayoutEffect=function(t,e){return Pr().useLayoutEffect(t,e)};ce.useMemo=function(t,e){return Pr().useMemo(t,e)};ce.useReducer=function(t,e,r){return Pr().useReducer(t,e,r)};ce.useRef=function(t){return Pr().useRef(t)};ce.useState=function(t){return Pr().useState(t)};ce.version="17.0.2";Es.exports=ce;var $n=Es.exports,Pc={exports:{}},jt={},Rc={exports:{}},Tc={};/** @license React v0.20.2
13 * scheduler.production.min.js
14 *
15 * Copyright (c) Facebook, Inc. and its affiliates.
16 *
17 * This source code is licensed under the MIT license found in the
18 * LICENSE file in the root directory of this source tree.
19 */(function(t){var e,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if(typeof window=="undefined"||typeof MessageChannel!="function"){var a=null,c=null,p=function(){if(a!==null)try{var g=t.unstable_now();a(!0,g),a=null}catch(B){throw setTimeout(p,0),B}};e=function(g){a!==null?setTimeout(e,0,g):(a=g,setTimeout(p,0))},r=function(g,B){c=setTimeout(g,B)},n=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var E=window.setTimeout,_=window.clearTimeout;if(typeof console!="undefined"){var N=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof N!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var P=!1,O=null,b=-1,y=5,k=0;t.unstable_shouldYield=function(){return t.unstable_now()>=k},i=function(){},t.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<g?Math.floor(1e3/g):5};var R=new MessageChannel,T=R.port2;R.port1.onmessage=function(){if(O!==null){var g=t.unstable_now();k=g+y;try{O(!0,g)?T.postMessage(null):(P=!1,O=null)}catch(B){throw T.postMessage(null),B}}else P=!1},e=function(g){O=g,P||(P=!0,T.postMessage(null))},r=function(g,B){b=E(function(){g(t.unstable_now())},B)},n=function(){_(b),b=-1}}function H(g,B){var F=g.length;g.push(B);e:for(;;){var q=F-1>>>1,d=g[q];if(d!==void 0&&0<Q(d,B))g[q]=B,g[F]=d,F=q;else break e}}function D(g){return g=g[0],g===void 0?null:g}function J(g){var B=g[0];if(B!==void 0){var F=g.pop();if(F!==B){g[0]=F;e:for(var q=0,d=g.length;q<d;){var C=2*(q+1)-1,L=g[C],U=C+1,z=g[U];if(L!==void 0&&0>Q(L,F))z!==void 0&&0>Q(z,L)?(g[q]=z,g[U]=F,q=U):(g[q]=L,g[C]=F,q=C);else if(z!==void 0&&0>Q(z,F))g[q]=z,g[U]=F,q=U;else break e}}return B}return null}function Q(g,B){var F=g.sortIndex-B.sortIndex;return F!==0?F:g.id-B.id}var j=[],pe=[],S=1,u=null,h=3,m=!1,v=!1,x=!1;function A(g){for(var B=D(pe);B!==null;){if(B.callback===null)J(pe);else if(B.startTime<=g)J(pe),B.sortIndex=B.expirationTime,H(j,B);else break;B=D(pe)}}function M(g){if(x=!1,A(g),!v)if(D(j)!==null)v=!0,e(w);else{var B=D(pe);B!==null&&r(M,B.startTime-g)}}function w(g,B){v=!1,x&&(x=!1,n()),m=!0;var F=h;try{for(A(B),u=D(j);u!==null&&(!(u.expirationTime>B)||g&&!t.unstable_shouldYield());){var q=u.callback;if(typeof q=="function"){u.callback=null,h=u.priorityLevel;var d=q(u.expirationTime<=B);B=t.unstable_now(),typeof d=="function"?u.callback=d:u===D(j)&&J(j),A(B)}else J(j);u=D(j)}if(u!==null)var C=!0;else{var L=D(pe);L!==null&&r(M,L.startTime-B),C=!1}return C}finally{u=null,h=F,m=!1}}var f=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(g){g.callback=null},t.unstable_continueExecution=function(){v||m||(v=!0,e(w))},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return D(j)},t.unstable_next=function(g){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var F=h;h=B;try{return g()}finally{h=F}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=f,t.unstable_runWithPriority=function(g,B){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var F=h;h=g;try{return B()}finally{h=F}},t.unstable_scheduleCallback=function(g,B,F){var q=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?q+F:q):F=q,g){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1e4;break;default:d=5e3}return d=F+d,g={id:S++,callback:B,priorityLevel:g,startTime:F,expirationTime:d,sortIndex:-1},F>q?(g.sortIndex=F,H(pe,g),D(j)===null&&g===D(pe)&&(x?n():x=!0,r(M,F-q))):(g.sortIndex=d,H(j,g),v||m||(v=!0,e(w))),g},t.unstable_wrapCallback=function(g){var B=h;return function(){var F=h;h=B;try{return g.apply(this,arguments)}finally{h=F}}}})(Tc);Rc.exports=Tc;/** @license React v17.0.2
20 * react-dom.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var Ss=Es.exports,Xe=dc,ut=Rc.exports;function V(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Ss)throw Error(V(227));var Ic=new Set,so={};function jn(t,e){ai(t,e),ai(t+"Capture",e)}function ai(t,e){for(so[t]=e,t=0;t<e.length;t++)Ic.add(e[t])}var Rr=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),F1=/^[: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]*$/,Cc=Object.prototype.hasOwnProperty,Oc={},Bc={};function U1(t){return Cc.call(Bc,t)?!0:Cc.call(Oc,t)?!1:F1.test(t)?Bc[t]=!0:(Oc[t]=!0,!1)}function z1(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function D1(t,e,r,n){if(e===null||typeof e=="undefined"||z1(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Nt(t,e,r,n,i,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){pt[t]=new Nt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];pt[e]=new Nt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){pt[t]=new Nt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){pt[t]=new Nt(t,2,!1,t,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(t){pt[t]=new Nt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){pt[t]=new Nt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){pt[t]=new Nt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){pt[t]=new Nt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){pt[t]=new Nt(t,5,!1,t.toLowerCase(),null,!1,!1)});var _u=/[\-:]([a-z])/g;function bu(t){return t[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(t){var e=t.replace(_u,bu);pt[e]=new Nt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(_u,bu);pt[e]=new Nt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(_u,bu);pt[e]=new Nt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){pt[t]=new Nt(t,1,!1,t.toLowerCase(),null,!1,!1)});pt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){pt[t]=new Nt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Su(t,e,r,n){var i=pt.hasOwnProperty(e)?pt[e]:null,o=i!==null?i.type===0:n?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");o||(D1(e,r,i,n)&&(r=null),n||i===null?U1(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=r===null?i.type===3?!1:"":r:(e=i.attributeName,n=i.attributeNamespace,r===null?t.removeAttribute(e):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var Vn=Ss.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,lo=60103,Hn=60106,Yr=60107,ku=60108,uo=60114,Au=60109,Nu=60110,ks=60112,ao=60113,As=60120,Ns=60115,Mu=60116,Pu=60121,Ru=60128,Lc=60129,Tu=60130,Iu=60131;if(typeof Symbol=="function"&&Symbol.for){var at=Symbol.for;lo=at("react.element"),Hn=at("react.portal"),Yr=at("react.fragment"),ku=at("react.strict_mode"),uo=at("react.profiler"),Au=at("react.provider"),Nu=at("react.context"),ks=at("react.forward_ref"),ao=at("react.suspense"),As=at("react.suspense_list"),Ns=at("react.memo"),Mu=at("react.lazy"),Pu=at("react.block"),at("react.scope"),Ru=at("react.opaque.id"),Lc=at("react.debug_trace_mode"),Tu=at("react.offscreen"),Iu=at("react.legacy_hidden")}var Fc=typeof Symbol=="function"&&Symbol.iterator;function fo(t){return t===null||typeof t!="object"?null:(t=Fc&&t[Fc]||t["@@iterator"],typeof t=="function"?t:null)}var Cu;function co(t){if(Cu===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Cu=e&&e[1]||""}return`
27`+Cu+t}var Ou=!1;function Ms(t,e){if(!t||Ou)return"";Ou=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(a){var n=a}Reflect.construct(t,[],e)}else{try{e.call()}catch(a){n=a}t.call(e.prototype)}else{try{throw Error()}catch(a){n=a}t()}}catch(a){if(a&&n&&typeof a.stack=="string"){for(var i=a.stack.split(`
28`),o=n.stack.split(`
29`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l])return`
30`+i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{Ou=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?co(t):""}function $1(t){switch(t.tag){case 5:return co(t.type);case 16:return co("Lazy");case 13:return co("Suspense");case 19:return co("SuspenseList");case 0:case 2:case 15:return t=Ms(t.type,!1),t;case 11:return t=Ms(t.type.render,!1),t;case 22:return t=Ms(t.type._render,!1),t;case 1:return t=Ms(t.type,!0),t;default:return""}}function fi(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Yr:return"Fragment";case Hn:return"Portal";case uo:return"Profiler";case ku:return"StrictMode";case ao:return"Suspense";case As:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Nu:return(t.displayName||"Context")+".Consumer";case Au:return(t._context.displayName||"Context")+".Provider";case ks:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Ns:return fi(t.type);case Pu:return fi(t._render);case Mu:e=t._payload,t=t._init;try{return fi(t(e))}catch{}}return null}function en(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Uc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function j1(t){var e=Uc(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ps(t){t._valueTracker||(t._valueTracker=j1(t))}function zc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Uc(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Rs(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch{return t.body}}function Bu(t,e){var r=e.checked;return Xe({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function Dc(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=en(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $c(t,e){e=e.checked,e!=null&&Su(t,"checked",e,!1)}function Lu(t,e){$c(t,e);var r=en(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Fu(t,e.type,r):e.hasOwnProperty("defaultValue")&&Fu(t,e.type,en(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function jc(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Fu(t,e,r){(e!=="number"||Rs(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}function V1(t){var e="";return Ss.Children.forEach(t,function(r){r!=null&&(e+=r)}),e}function Uu(t,e){return t=Xe({children:void 0},e),(e=V1(e.children))&&(t.children=e),t}function ci(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+en(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function zu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(V(91));return Xe({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Vc(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(V(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(V(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:en(r)}}function Hc(t,e){var r=en(e.value),n=en(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function qc(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Du={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Gc(t){switch(t){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 $u(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Gc(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Ts,Wc=function(t){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!==Du.svg||"innerHTML"in t)t.innerHTML=e;else{for(Ts=Ts||document.createElement("div"),Ts.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ts.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ho(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var po={animationIterationCount:!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},H1=["Webkit","ms","Moz","O"];Object.keys(po).forEach(function(t){H1.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),po[e]=po[t]})});function Kc(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||po.hasOwnProperty(t)&&po[t]?(""+e).trim():e+"px"}function Jc(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Kc(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var q1=Xe({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 ju(t,e){if(e){if(q1[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(V(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(V(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(V(61))}if(e.style!=null&&typeof e.style!="object")throw Error(V(62))}}function Vu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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}}function Hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var qu=null,hi=null,di=null;function Xc(t){if(t=Co(t)){if(typeof qu!="function")throw Error(V(280));var e=t.stateNode;e&&(e=Js(e),qu(t.stateNode,t.type,e))}}function Zc(t){hi?di?di.push(t):di=[t]:hi=t}function Qc(){if(hi){var t=hi,e=di;if(di=hi=null,Xc(t),e)for(t=0;t<e.length;t++)Xc(e[t])}}function Gu(t,e){return t(e)}function Yc(t,e,r,n,i){return t(e,r,n,i)}function Wu(){}var eh=Gu,qn=!1,Ku=!1;function Ju(){(hi!==null||di!==null)&&(Wu(),Qc())}function G1(t,e,r){if(Ku)return t(e,r);Ku=!0;try{return eh(t,e,r)}finally{Ku=!1,Ju()}}function mo(t,e){var r=t.stateNode;if(r===null)return null;var n=Js(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(V(231,e,typeof r));return r}var Xu=!1;if(Rr)try{var go={};Object.defineProperty(go,"passive",{get:function(){Xu=!0}}),window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{Xu=!1}function W1(t,e,r,n,i,o,s,l,a){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(p){this.onError(p)}}var vo=!1,Is=null,Cs=!1,Zu=null,K1={onError:function(t){vo=!0,Is=t}};function J1(t,e,r,n,i,o,s,l,a){vo=!1,Is=null,W1.apply(K1,arguments)}function X1(t,e,r,n,i,o,s,l,a){if(J1.apply(this,arguments),vo){if(vo){var c=Is;vo=!1,Is=null}else throw Error(V(198));Cs||(Cs=!0,Zu=c)}}function Gn(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&1026)!=0&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function th(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function rh(t){if(Gn(t)!==t)throw Error(V(188))}function Z1(t){var e=t.alternate;if(!e){if(e=Gn(t),e===null)throw Error(V(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return rh(i),t;if(o===n)return rh(i),e;o=o.sibling}throw Error(V(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s)throw Error(V(189))}}if(r.alternate!==n)throw Error(V(190))}if(r.tag!==3)throw Error(V(188));return r.stateNode.current===r?t:e}function nh(t){if(t=Z1(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ih(t,e){for(var r=t.alternate;e!==null;){if(e===t||e===r)return!0;e=e.return}return!1}var oh,Qu,sh,lh,Yu=!1,ur=[],tn=null,rn=null,nn=null,yo=new Map,wo=new Map,xo=[],uh="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 ea(t,e,r,n,i){return{blockedOn:t,domEventName:e,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function ah(t,e){switch(t){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":rn=null;break;case"mouseover":case"mouseout":nn=null;break;case"pointerover":case"pointerout":yo.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(e.pointerId)}}function Eo(t,e,r,n,i,o){return t===null||t.nativeEvent!==o?(t=ea(e,r,n,i,o),e!==null&&(e=Co(e),e!==null&&Qu(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Q1(t,e,r,n,i){switch(e){case"focusin":return tn=Eo(tn,t,e,r,n,i),!0;case"dragenter":return rn=Eo(rn,t,e,r,n,i),!0;case"mouseover":return nn=Eo(nn,t,e,r,n,i),!0;case"pointerover":var o=i.pointerId;return yo.set(o,Eo(yo.get(o)||null,t,e,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,wo.set(o,Eo(wo.get(o)||null,t,e,r,n,i)),!0}return!1}function Y1(t){var e=Wn(t.target);if(e!==null){var r=Gn(e);if(r!==null){if(e=r.tag,e===13){if(e=th(r),e!==null){t.blockedOn=e,lh(t.lanePriority,function(){ut.unstable_runWithPriority(t.priority,function(){sh(r)})});return}}else if(e===3&&r.stateNode.hydrate){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Os(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=sa(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r!==null)return e=Co(r),e!==null&&Qu(e),t.blockedOn=r,!1;e.shift()}return!0}function fh(t,e,r){Os(t)&&r.delete(e)}function em(){for(Yu=!1;0<ur.length;){var t=ur[0];if(t.blockedOn!==null){t=Co(t.blockedOn),t!==null&&oh(t);break}for(var e=t.targetContainers;0<e.length;){var r=sa(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r!==null){t.blockedOn=r;break}e.shift()}t.blockedOn===null&&ur.shift()}tn!==null&&Os(tn)&&(tn=null),rn!==null&&Os(rn)&&(rn=null),nn!==null&&Os(nn)&&(nn=null),yo.forEach(fh),wo.forEach(fh)}function _o(t,e){t.blockedOn===e&&(t.blockedOn=null,Yu||(Yu=!0,ut.unstable_scheduleCallback(ut.unstable_NormalPriority,em)))}function ch(t){function e(i){return _o(i,t)}if(0<ur.length){_o(ur[0],t);for(var r=1;r<ur.length;r++){var n=ur[r];n.blockedOn===t&&(n.blockedOn=null)}}for(tn!==null&&_o(tn,t),rn!==null&&_o(rn,t),nn!==null&&_o(nn,t),yo.forEach(e),wo.forEach(e),r=0;r<xo.length;r++)n=xo[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<xo.length&&(r=xo[0],r.blockedOn===null);)Y1(r),r.blockedOn===null&&xo.shift()}function Bs(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var pi={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},ta={},hh={};Rr&&(hh=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Ls(t){if(ta[t])return ta[t];if(!pi[t])return t;var e=pi[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in hh)return ta[t]=e[r];return t}var dh=Ls("animationend"),ph=Ls("animationiteration"),mh=Ls("animationstart"),gh=Ls("transitionend"),vh=new Map,ra=new Map,tm=["abort","abort",dh,"animationEnd",ph,"animationIteration",mh,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",gh,"transitionEnd","waiting","waiting"];function na(t,e){for(var r=0;r<t.length;r+=2){var n=t[r],i=t[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),ra.set(n,e),vh.set(n,i),jn(i,[n])}}var rm=ut.unstable_now;rm();var ge=8;function mi(t){if((1&t)!=0)return ge=15,1;if((2&t)!=0)return ge=14,2;if((4&t)!=0)return ge=13,4;var e=24&t;return e!==0?(ge=12,e):(t&32)!=0?(ge=11,32):(e=192&t,e!==0?(ge=10,e):(t&256)!=0?(ge=9,256):(e=3584&t,e!==0?(ge=8,e):(t&4096)!=0?(ge=7,4096):(e=4186112&t,e!==0?(ge=6,e):(e=62914560&t,e!==0?(ge=5,e):t&67108864?(ge=4,67108864):(t&134217728)!=0?(ge=3,134217728):(e=805306368&t,e!==0?(ge=2,e):(1073741824&t)!=0?(ge=1,1073741824):(ge=8,t))))))}function nm(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function im(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(V(358,t))}}function bo(t,e){var r=t.pendingLanes;if(r===0)return ge=0;var n=0,i=0,o=t.expiredLanes,s=t.suspendedLanes,l=t.pingedLanes;if(o!==0)n=o,i=ge=15;else if(o=r&134217727,o!==0){var a=o&~s;a!==0?(n=mi(a),i=ge):(l&=o,l!==0&&(n=mi(l),i=ge))}else o=r&~s,o!==0?(n=mi(o),i=ge):l!==0&&(n=mi(l),i=ge);if(n===0)return 0;if(n=31-on(n),n=r&((0>n?0:1<<n)<<1)-1,e!==0&&e!==n&&(e&s)==0){if(mi(e),i<=ge)return e;ge=i}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-on(e),i=1<<r,n|=t[r],e&=~i;return n}function yh(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Fs(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=gi(24&~e),t===0?Fs(10,e):t;case 10:return t=gi(192&~e),t===0?Fs(8,e):t;case 8:return t=gi(3584&~e),t===0&&(t=gi(4186112&~e),t===0&&(t=512)),t;case 2:return e=gi(805306368&~e),e===0&&(e=268435456),e}throw Error(V(358,t))}function gi(t){return t&-t}function ia(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Us(t,e,r){t.pendingLanes|=e;var n=e-1;t.suspendedLanes&=n,t.pingedLanes&=n,t=t.eventTimes,e=31-on(e),t[e]=r}var on=Math.clz32?Math.clz32:lm,om=Math.log,sm=Math.LN2;function lm(t){return t===0?32:31-(om(t)/sm|0)|0}var um=ut.unstable_UserBlockingPriority,am=ut.unstable_runWithPriority,zs=!0;function fm(t,e,r,n){qn||Wu();var i=oa,o=qn;qn=!0;try{Yc(i,t,e,r,n)}finally{(qn=o)||Ju()}}function cm(t,e,r,n){am(um,oa.bind(null,t,e,r,n))}function oa(t,e,r,n){if(zs){var i;if((i=(e&4)==0)&&0<ur.length&&-1<uh.indexOf(t))t=ea(null,t,e,r,n),ur.push(t);else{var o=sa(t,e,r,n);if(o===null)i&&ah(t,n);else{if(i){if(-1<uh.indexOf(t)){t=ea(o,t,e,r,n),ur.push(t);return}if(Q1(o,t,e,r,n))return;ah(t,n)}Kh(t,e,n,null,r)}}}}function sa(t,e,r,n){var i=Hu(n);if(i=Wn(i),i!==null){var o=Gn(i);if(o===null)i=null;else{var s=o.tag;if(s===13){if(i=th(o),i!==null)return i;i=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Kh(t,e,n,i,r),null}var sn=null,la=null,Ds=null;function wh(){if(Ds)return Ds;var t,e=la,r=e.length,n,i="value"in sn?sn.value:sn.textContent,o=i.length;for(t=0;t<r&&e[t]===i[t];t++);var s=r-t;for(n=1;n<=s&&e[r-n]===i[o-n];n++);return Ds=i.slice(t,1<n?1-n:void 0)}function $s(t){var e=t.keyCode;
vendor: 5,856 bytes, line 30
30return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function js(){return!0}function xh(){return!1}function Bt(t){function e(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(r=t[l],this[l]=r?r(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?js:xh,this.isPropagationStopped=xh,this}return Xe(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=js)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),e}var vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ua=Bt(vi),So=Xe({},vi,{view:0,detail:0}),hm=Bt(So),aa,fa,ko,Vs=Xe({},So,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ha,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ko&&(ko&&t.type==="mousemove"?(aa=t.screenX-ko.screenX,fa=t.screenY-ko.screenY):fa=aa=0,ko=t),aa)},movementY:function(t){return"movementY"in t?t.movementY:fa}}),Eh=Bt(Vs),dm=Xe({},Vs,{dataTransfer:0}),pm=Bt(dm),mm=Xe({},So,{relatedTarget:0}),ca=Bt(mm),gm=Xe({},vi,{animationName:0,elapsedTime:0,pseudoElement:0}),vm=Bt(gm),ym=Xe({},vi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),wm=Bt(ym),xm=Xe({},vi,{data:0}),_h=Bt(xm),Em={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_m={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"},bm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=bm[t])?!!e[t]:!1}function ha(){return Sm}var km=Xe({},So,{key:function(t){if(t.key){var e=Em[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$s(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_m[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ha,charCode:function(t){return t.type==="keypress"?$s(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$s(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Am=Bt(km),Nm=Xe({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bh=Bt(Nm),Mm=Xe({},So,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ha}),Pm=Bt(Mm),Rm=Xe({},vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tm=Bt(Rm),Im=Xe({},Vs,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Cm=Bt(Im),Om=[9,13,27,32],da=Rr&&"CompositionEvent"in window,Ao=null;Rr&&"documentMode"in document&&(Ao=document.documentMode);var Bm=Rr&&"TextEvent"in window&&!Ao,Sh=Rr&&(!da||Ao&&8<Ao&&11>=Ao),kh=String.fromCharCode(32),Ah=!1;function Nh(t,e){switch(t){case"keyup":return Om.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var yi=!1;function Lm(t,e){switch(t){case"compositionend":return Mh(e);case"keypress":return e.which!==32?null:(Ah=!0,kh);case"textInput":return t=e.data,t===kh&&Ah?null:t;default:return null}}function Fm(t,e){if(yi)return t==="compositionend"||!da&&Nh(t,e)?(t=wh(),Ds=la=sn=null,yi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Sh&&e.locale!=="ko"?null:e.data;default:return null}}var Um={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 Ph(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Um[t.type]:e==="textarea"}function Rh(t,e,r,n){Zc(n),e=qs(e,"onChange"),0<e.length&&(r=new ua("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var No=null,Mo=null;function zm(t){Vh(t,0)}function Hs(t){var e=bi(t);if(zc(e))return t}function Dm(t,e){if(t==="change")return e}var Th=!1;if(Rr){var pa;if(Rr){var ma="oninput"in document;if(!ma){var Ih=document.createElement("div");Ih.setAttribute("oninput","return;"),ma=typeof Ih.oninput=="function"}pa=ma}else pa=!1;Th=pa&&(!document.documentMode||9<document.documentMode)}function Ch(){No&&(No.detachEvent("onpropertychange",Oh),Mo=No=null)}function Oh(t){if(t.propertyName==="value"&&Hs(Mo)){var e=[];
vendor: 5,945 bytes, line 30
30if(Rh(e,Mo,t,Hu(t)),t=zm,qn)t(e);else{qn=!0;try{Gu(t,e)}finally{qn=!1,Ju()}}}}function $m(t,e,r){t==="focusin"?(Ch(),No=e,Mo=r,No.attachEvent("onpropertychange",Oh)):t==="focusout"&&Ch()}function jm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hs(Mo)}function Vm(t,e){if(t==="click")return Hs(e)}function Hm(t,e){if(t==="input"||t==="change")return Hs(e)}function qm(t,e){return t===e&&(t!==0||1/t==1/e)||t!==t&&e!==e}var Vt=typeof Object.is=="function"?Object.is:qm,Gm=Object.prototype.hasOwnProperty;function Po(t,e){if(Vt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Gm.call(e,r[n])||!Vt(t[r[n]],e[r[n]]))return!1;return!0}function Bh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Lh(t,e){var r=Bh(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Bh(r)}}function Fh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Fh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Uh(){for(var t=window,e=Rs();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Rs(t.document)}return e}function ga(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Wm=Rr&&"documentMode"in document&&11>=document.documentMode,wi=null,va=null,Ro=null,ya=!1;function zh(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ya||wi==null||wi!==Rs(n)||(n=wi,"selectionStart"in n&&ga(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ro&&Po(Ro,n)||(Ro=n,n=qs(va,"onSelect"),0<n.length&&(e=new ua("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=wi)))}na("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);na("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);na(tm,2);for(var Dh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wa=0;wa<Dh.length;wa++)ra.set(Dh[wa],0);ai("onMouseEnter",["mouseout","mouseover"]);ai("onMouseLeave",["mouseout","mouseover"]);ai("onPointerEnter",["pointerout","pointerover"]);ai("onPointerLeave",["pointerout","pointerover"]);jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));jn("onBeforeInput",["compositionend","keypress","textInput","paste"]);jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var To="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),$h=new Set("cancel close invalid load scroll toggle".split(" ").concat(To));function jh(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,X1(n,e,void 0,t),t.currentTarget=null}function Vh(t,e){e=(e&4)!=0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;e:{var o=void 0;if(e)for(var s=n.length-1;0<=s;s--){var l=n[s],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;jh(i,l,c),o=a}else for(s=0;s<n.length;s++){if(l=n[s],a=l.instance,c=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;jh(i,l,c),o=a}}}if(Cs)throw t=Zu,Cs=!1,Zu=null,t}function Ke(t,e){var r=e0(e),n=t+"__bubble";r.has(n)||(Wh(e,t,2,!1),r.add(n))}var Hh="_reactListening"+Math.random().toString(36).slice(2);function qh(t){t[Hh]||(t[Hh]=!0,Ic.forEach(function(e){$h.has(e)||Gh(e,!1,t,null),Gh(e,!0,t,null)}))}function Gh(t,e,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(t==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!e&&$h.has(t)){if(t!=="scroll")return;i|=2,o=n}var s=e0(o),l=t+"__"+(e?"capture":"bubble");s.has(l)||(e&&(i|=4),Wh(o,t,i,e),s.add(l))}function Wh(t,e,r,n){var i=ra.get(e);switch(i===void 0?2:i){case 0:i=fm;break;case 1:i=cm;break;default:i=oa}r=i.bind(null,e,r,t),i=void 0,!Xu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function Kh(t,e,r,n,i){var o=n;if((e&1)==0&&(e&2)==0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;
vendor: 2,531 bytes, line 30
30if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Wn(l),s===null)return;if(a=s.tag,a===5||a===6){n=o=s;continue e}l=l.parentNode}}n=n.return}G1(function(){var c=o,p=Hu(r),E=[];e:{var _=vh.get(t);if(_!==void 0){var N=ua,P=t;switch(t){case"keypress":if($s(r)===0)break e;case"keydown":case"keyup":N=Am;break;case"focusin":P="focus",N=ca;break;case"focusout":P="blur",N=ca;break;case"beforeblur":case"afterblur":N=ca;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=pm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Pm;break;case dh:case ph:case mh:N=vm;break;case gh:N=Tm;break;case"scroll":N=hm;break;case"wheel":N=Cm;break;case"copy":case"cut":case"paste":N=wm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=bh}var O=(e&4)!=0,b=!O&&t==="scroll",y=O?_!==null?_+"Capture":null:_;O=[];for(var k=c,R;k!==null;){R=k;var T=R.stateNode;if(R.tag===5&&T!==null&&(R=T,y!==null&&(T=mo(k,y),T!=null&&O.push(Io(k,T,R)))),b)break;k=k.return}0<O.length&&(_=new N(_,P,null,r,p),E.push({event:_,listeners:O}))}}if((e&7)==0){e:{if(_=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",_&&(e&16)==0&&(P=r.relatedTarget||r.fromElement)&&(Wn(P)||P[_i]))break e;if((N||_)&&(_=p.window===p?p:(_=p.ownerDocument)?_.defaultView||_.parentWindow:window,N?(P=r.relatedTarget||r.toElement,N=c,P=P?Wn(P):null,P!==null&&(b=Gn(P),P!==b||P.tag!==5&&P.tag!==6)&&(P=null)):(N=null,P=c),N!==P)){if(O=Eh,T="onMouseLeave",y="onMouseEnter",k="mouse",(t==="pointerout"||t==="pointerover")&&(O=bh,T="onPointerLeave",y="onPointerEnter",k="pointer"),b=N==null?_:bi(N),R=P==null?_:bi(P),_=new O(T,k+"leave",N,r,p),_.target=b,_.relatedTarget=R,T=null,Wn(p)===c&&(O=new O(y,k+"enter",P,r,p),O.target=R,O.relatedTarget=b,T=O),b=T,N&&P)t:{for(O=N,y=P,k=0,R=O;R;R=xi(R))k++;for(R=0,T=y;T;T=xi(T))R++;for(;0<k-R;)O=xi(O),k--;for(;0<R-k;)y=xi(y),R--;for(;k--;){if(O===y||y!==null&&O===y.alternate)break t;O=xi(O),y=xi(y)}O=null}else O=null;N!==null&&Jh(E,_,N,O,!1),P!==null&&b!==null&&Jh(E,b,P,O,!0)}}
vendor: 40,601 bytes, line 30
30e:{if(_=c?bi(c):window,N=_.nodeName&&_.nodeName.toLowerCase(),N==="select"||N==="input"&&_.type==="file")var H=Dm;else if(Ph(_))if(Th)H=Hm;else{H=jm;var D=$m}else(N=_.nodeName)&&N.toLowerCase()==="input"&&(_.type==="checkbox"||_.type==="radio")&&(H=Vm);if(H&&(H=H(t,c))){Rh(E,H,r,p);break e}D&&D(t,_,c),t==="focusout"&&(D=_._wrapperState)&&D.controlled&&_.type==="number"&&Fu(_,"number",_.value)}switch(D=c?bi(c):window,t){case"focusin":(Ph(D)||D.contentEditable==="true")&&(wi=D,va=c,Ro=null);break;case"focusout":Ro=va=wi=null;break;case"mousedown":ya=!0;break;case"contextmenu":case"mouseup":case"dragend":ya=!1,zh(E,r,p);break;case"selectionchange":if(Wm)break;case"keydown":case"keyup":zh(E,r,p)}var J;if(da)e:{switch(t){case"compositionstart":var Q="onCompositionStart";break e;case"compositionend":Q="onCompositionEnd";break e;case"compositionupdate":Q="onCompositionUpdate";break e}Q=void 0}else yi?Nh(t,r)&&(Q="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(Q="onCompositionStart");Q&&(Sh&&r.locale!=="ko"&&(yi||Q!=="onCompositionStart"?Q==="onCompositionEnd"&&yi&&(J=wh()):(sn=p,la="value"in sn?sn.value:sn.textContent,yi=!0)),D=qs(c,Q),0<D.length&&(Q=new _h(Q,t,null,r,p),E.push({event:Q,listeners:D}),J?Q.data=J:(J=Mh(r),J!==null&&(Q.data=J)))),(J=Bm?Lm(t,r):Fm(t,r))&&(c=qs(c,"onBeforeInput"),0<c.length&&(p=new _h("onBeforeInput","beforeinput",null,r,p),E.push({event:p,listeners:c}),p.data=J))}Vh(E,e)})}function Io(t,e,r){return{instance:t,listener:e,currentTarget:r}}function qs(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=mo(t,r),o!=null&&n.unshift(Io(t,o,i)),o=mo(t,e),o!=null&&n.push(Io(t,o,i))),t=t.return}return n}function xi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Jh(t,e,r,n,i){for(var o=e._reactName,s=[];r!==null&&r!==n;){var l=r,a=l.alternate,c=l.stateNode;if(a!==null&&a===n)break;l.tag===5&&c!==null&&(l=c,i?(a=mo(r,o),a!=null&&s.unshift(Io(r,a,l))):i||(a=mo(r,o),a!=null&&s.push(Io(r,a,l)))),r=r.return}s.length!==0&&t.push({event:e,listeners:s})}function Gs(){}var xa=null,Ea=null;function Xh(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function _a(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Zh=typeof setTimeout=="function"?setTimeout:void 0,Km=typeof clearTimeout=="function"?clearTimeout:void 0;function ba(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Ei(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Qh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Sa=0;function Jm(t){return{$$typeof:Ru,toString:t,valueOf:t}}var Ws=Math.random().toString(36).slice(2),ln="__reactFiber$"+Ws,Ks="__reactProps$"+Ws,_i="__reactContainer$"+Ws,Yh="__reactEvents$"+Ws;function Wn(t){var e=t[ln];if(e)return e;for(var r=t.parentNode;r;){if(e=r[_i]||r[ln]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Qh(t);t!==null;){if(r=t[ln])return r;t=Qh(t)}return e}t=r,r=t.parentNode}return null}function Co(t){return t=t[ln]||t[_i],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function bi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(V(33))}function Js(t){return t[Ks]||null}function e0(t){var e=t[Yh];return e===void 0&&(e=t[Yh]=new Set),e}var ka=[],Si=-1;function un(t){return{current:t}}function Je(t){0>Si||(t.current=ka[Si],ka[Si]=null,Si--)}function et(t,e){Si++,ka[Si]=t.current,t.current=e}var an={},xt=un(an),Pt=un(!1),Kn=an;function ki(t,e){var r=t.type.contextTypes;if(!r)return an;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Rt(t){return t=t.childContextTypes,t!=null}function Xs(){Je(Pt),Je(xt)}function t0(t,e,r){if(xt.current!==an)throw Error(V(168));et(xt,e),et(Pt,r)}function r0(t,e,r){var n=t.stateNode;if(t=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(V(108,fi(e)||"Unknown",i));return Xe({},r,n)}function Zs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||an,Kn=xt.current,et(xt,t),et(Pt,Pt.current),!0}function n0(t,e,r){var n=t.stateNode;if(!n)throw Error(V(169));r?(t=r0(t,e,Kn),n.__reactInternalMemoizedMergedChildContext=t,Je(Pt),Je(xt),et(xt,t)):Je(Pt),et(Pt,r)}var Aa=null,Jn=null,Xm=ut.unstable_runWithPriority,Na=ut.unstable_scheduleCallback,Ma=ut.unstable_cancelCallback,Zm=ut.unstable_shouldYield,i0=ut.unstable_requestPaint,Pa=ut.unstable_now,Qm=ut.unstable_getCurrentPriorityLevel,Qs=ut.unstable_ImmediatePriority,o0=ut.unstable_UserBlockingPriority,s0=ut.unstable_NormalPriority,l0=ut.unstable_LowPriority,u0=ut.unstable_IdlePriority,Ra={},Ym=i0!==void 0?i0:function(){},Tr=null,Ys=null,Ta=!1,a0=Pa(),Et=1e4>a0?Pa:function(){return Pa()-a0};function Ai(){switch(Qm()){case Qs:return 99;case o0:return 98;case s0:return 97;case l0:return 96;case u0:return 95;default:throw Error(V(332))}}function f0(t){switch(t){case 99:return Qs;case 98:return o0;case 97:return s0;case 96:return l0;case 95:return u0;default:throw Error(V(332))}}function Xn(t,e){return t=f0(t),Xm(t,e)}function Oo(t,e,r){return t=f0(t),Na(t,e,r)}function ar(){if(Ys!==null){var t=Ys;Ys=null,Ma(t)}c0()}function c0(){if(!Ta&&Tr!==null){Ta=!0;var t=0;try{var e=Tr;Xn(99,function(){for(;t<e.length;t++){var r=e[t];do r=r(!0);while(r!==null)}}),Tr=null}catch(r){throw Tr!==null&&(Tr=Tr.slice(t+1)),Na(Qs,ar),r}finally{Ta=!1}}}var eg=Vn.ReactCurrentBatchConfig;function er(t,e){if(t&&t.defaultProps){e=Xe({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var el=un(null),tl=null,Ni=null,rl=null;function Ia(){rl=Ni=tl=null}function Ca(t){var e=el.current;Je(el),t.type._context._currentValue=e}function h0(t,e){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)===e){if(r===null||(r.childLanes&e)===e)break;r.childLanes|=e}else t.childLanes|=e,r!==null&&(r.childLanes|=e);t=t.return}}function Mi(t,e){tl=t,rl=Ni=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!=0&&(tr=!0),t.firstContext=null)}function Ht(t,e){if(rl!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(rl=t,e=1073741823),e={context:t,observedBits:e,next:null},Ni===null){if(tl===null)throw Error(V(308));Ni=e,tl.dependencies={lanes:0,firstContext:e,responders:null}}else Ni=Ni.next=e;return t._currentValue}var fn=!1;function Oa(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function d0(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function cn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function hn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}}function p0(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=e:o=o.next=e}else i=o=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Bo(t,e,r,n){var i=t.updateQueue;fn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var p=t.alternate;if(p!==null){p=p.updateQueue;var E=p.lastBaseUpdate;E!==s&&(E===null?p.firstBaseUpdate=c:E.next=c,p.lastBaseUpdate=a)}}if(o!==null){E=i.baseState,s=0,p=c=a=null;do{l=o.lane;var _=o.eventTime;if((n&l)===l){p!==null&&(p=p.next={eventTime:_,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var N=t,P=o;switch(l=e,_=r,P.tag){case 1:if(N=P.payload,typeof N=="function"){E=N.call(_,E,l);break e}E=N;break e;case 3:N.flags=N.flags&-4097|64;case 0:if(N=P.payload,l=typeof N=="function"?N.call(_,E,l):N,l==null)break e;E=Xe({},E,l);break e;case 2:fn=!0}}o.callback!==null&&(t.flags|=32,l=i.effects,l===null?i.effects=[o]:l.push(o))}else _={eventTime:_,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(c=p=_,a=E):p=p.next=_,s|=l;if(o=o.next,o===null){if(l=i.shared.pending,l===null)break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);p===null&&(a=E),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=p,Wo|=s,t.lanes=s,t.memoizedState=E}}function m0(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(V(191,i));i.call(n)}}}var g0=new Ss.Component().refs;function nl(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Xe({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var il={isMounted:function(t){return(t=t._reactInternals)?Gn(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Lt(),i=mn(t),o=cn(n,i);o.payload=e,r!=null&&(o.callback=r),hn(t,o),gn(t,i,n)},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Lt(),i=mn(t),o=cn(n,i);o.tag=1,o.payload=e,r!=null&&(o.callback=r),hn(t,o),gn(t,i,n)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Lt(),n=mn(t),i=cn(r,n);i.tag=2,e!=null&&(i.callback=e),hn(t,i),gn(t,n,r)}};function v0(t,e,r,n,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,o,s):e.prototype&&e.prototype.isPureReactComponent?!Po(r,n)||!Po(i,o):!0}function y0(t,e,r){var n=!1,i=an,o=e.contextType;return typeof o=="object"&&o!==null?o=Ht(o):(i=Rt(e)?Kn:xt.current,n=e.contextTypes,o=(n=n!=null)?ki(t,i):an),e=new e(r,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=il,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function w0(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&il.enqueueReplaceState(e,e.state,null)}function Ba(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs=g0,Oa(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=Ht(o):(o=Rt(e)?Kn:xt.current,i.context=ki(t,o)),Bo(t,r,i,n),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(nl(t,e,o,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&il.enqueueReplaceState(i,i.state,null),Bo(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4)}var ol=Array.isArray;function Lo(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(V(309));var n=r.stateNode}if(!n)throw Error(V(147,t));var i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var s=n.refs;s===g0&&(s=n.refs={}),o===null?delete s[i]:s[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(V(284));if(!r._owner)throw Error(V(290,t))}return t}function sl(t,e){if(t.type!=="textarea")throw Error(V(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function x0(t){function e(b,y){if(t){var k=b.lastEffect;k!==null?(k.nextEffect=y,b.lastEffect=y):b.firstEffect=b.lastEffect=y,y.nextEffect=null,y.flags=8}}function r(b,y){if(!t)return null;for(;y!==null;)e(b,y),y=y.sibling;return null}function n(b,y){for(b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function i(b,y){return b=wn(b,y),b.index=0,b.sibling=null,b}function o(b,y,k){return b.index=k,t?(k=b.alternate,k!==null?(k=k.index,k<y?(b.flags=2,y):k):(b.flags=2,y)):y}function s(b){return t&&b.alternate===null&&(b.flags=2),b}function l(b,y,k,R){return y===null||y.tag!==6?(y=yf(k,b.mode,R),y.return=b,y):(y=i(y,k),y.return=b,y)}function a(b,y,k,R){return y!==null&&y.elementType===k.type?(R=i(y,k.props),R.ref=Lo(b,y,k),R.return=b,R):(R=Sl(k.type,k.key,k.props,null,b.mode,R),R.ref=Lo(b,y,k),R.return=b,R)}function c(b,y,k,R){return y===null||y.tag!==4||y.stateNode.containerInfo!==k.containerInfo||y.stateNode.implementation!==k.implementation?(y=wf(k,b.mode,R),y.return=b,y):(y=i(y,k.children||[]),y.return=b,y)}function p(b,y,k,R,T){return y===null||y.tag!==7?(y=Li(k,b.mode,R,T),y.return=b,y):(y=i(y,k),y.return=b,y)}function E(b,y,k){if(typeof y=="string"||typeof y=="number")return y=yf(""+y,b.mode,k),y.return=b,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case lo:return k=Sl(y.type,y.key,y.props,null,b.mode,k),k.ref=Lo(b,null,y),k.return=b,k;case Hn:return y=wf(y,b.mode,k),y.return=b,y}if(ol(y)||fo(y))return y=Li(y,b.mode,k,null),y.return=b,y;sl(b,y)}return null}function _(b,y,k,R){var T=y!==null?y.key:null;if(typeof k=="string"||typeof k=="number")return T!==null?null:l(b,y,""+k,R);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case lo:return k.key===T?k.type===Yr?p(b,y,k.props.children,R,T):a(b,y,k,R):null;case Hn:return k.key===T?c(b,y,k,R):null}if(ol(k)||fo(k))return T!==null?null:p(b,y,k,R,null);sl(b,k)}return null}function N(b,y,k,R,T){if(typeof R=="string"||typeof R=="number")return b=b.get(k)||null,l(y,b,""+R,T);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case lo:return b=b.get(R.key===null?k:R.key)||null,R.type===Yr?p(y,b,R.props.children,T,R.key):a(y,b,R,T);case Hn:return b=b.get(R.key===null?k:R.key)||null,c(y,b,R,T)}if(ol(R)||fo(R))return b=b.get(k)||null,p(y,b,R,T,null);sl(y,R)}return null}function P(b,y,k,R){for(var T=null,H=null,D=y,J=y=0,Q=null;D!==null&&J<k.length;J++){D.index>J?(Q=D,D=null):Q=D.sibling;var j=_(b,D,k[J],R);if(j===null){D===null&&(D=Q);break}t&&D&&j.alternate===null&&e(b,D),y=o(j,y,J),H===null?T=j:H.sibling=j,H=j,D=Q}if(J===k.length)return r(b,D),T;if(D===null){for(;J<k.length;J++)D=E(b,k[J],R),D!==null&&(y=o(D,y,J),H===null?T=D:H.sibling=D,H=D);return T}for(D=n(b,D);J<k.length;J++)Q=N(D,b,J,k[J],R),Q!==null&&(t&&Q.alternate!==null&&D.delete(Q.key===null?J:Q.key),y=o(Q,y,J),H===null?T=Q:H.sibling=Q,H=Q);return t&&D.forEach(function(pe){return e(b,pe)}),T}function O(b,y,k,R){var T=fo(k);if(typeof T!="function")throw Error(V(150));if(k=T.call(k),k==null)throw Error(V(151));for(var H=T=null,D=y,J=y=0,Q=null,j=k.next();D!==null&&!j.done;J++,j=k.next()){D.index>J?(Q=D,D=null):Q=D.sibling;var pe=_(b,D,j.value,R);if(pe===null){D===null&&(D=Q);break}t&&D&&pe.alternate===null&&e(b,D),y=o(pe,y,J),H===null?T=pe:H.sibling=pe,H=pe,D=Q}if(j.done)return r(b,D),T;if(D===null){for(;!j.done;J++,j=k.next())j=E(b,j.value,R),j!==null&&(y=o(j,y,J),H===null?T=j:H.sibling=j,H=j);return T}for(D=n(b,D);!j.done;J++,j=k.next())j=N(D,b,J,j.value,R),j!==null&&(t&&j.alternate!==null&&D.delete(j.key===null?J:j.key),y=o(j,y,J),H===null?T=j:H.sibling=j,H=j);return t&&D.forEach(function(S){return e(b,S)}),T}return function(b,y,k,R){var T=typeof k=="object"&&k!==null&&k.type===Yr&&k.key===null;T&&(k=k.props.children);var H=typeof k=="object"&&k!==null;if(H)switch(k.$$typeof){case lo:e:{for(H=k.key,T=y;T!==null;){if(T.key===H){switch(T.tag){case 7:if(k.type===Yr){r(b,T.sibling),y=i(T,k.props.children),y.return=b,b=y;break e}break;default:if(T.elementType===k.type){r(b,T.sibling),y=i(T,k.props),y.ref=Lo(b,T,k),y.return=b,b=y;break e}}r(b,T);break}else e(b,T);T=T.sibling}k.type===Yr?(y=Li(k.props.children,b.mode,R,k.key),y.return=b,b=y):(R=Sl(k.type,k.key,k.props,null,b.mode,R),R.ref=Lo(b,y,k),R.return=b,b=R)}return s(b);case Hn:e:{for(T=k.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===k.containerInfo&&y.stateNode.implementation===k.implementation){r(b,y.sibling),y=i(y,k.children||[]),y.return=b,b=y;break e}else{r(b,y);break}else e(b,y);y=y.sibling}y=wf(k,b.mode,R),y.return=b,b=y}return s(b)}if(typeof k=="string"||typeof k=="number")return k=""+k,y!==null&&y.tag===6?(r(b,y.sibling),y=i(y,k),y.return=b,b=y):(r(b,y),y=yf(k,b.mode,R),y.return=b,b=y),s(b);if(ol(k))return P(b,y,k,R);if(fo(k))return O(b,y,k,R);if(H&&sl(b,k),typeof k=="undefined"&&!T)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(V(152,fi(b.type)||"Component"))}return r(b,y)}}var ll=x0(!0),E0=x0(!1),Fo={},fr=un(Fo),Uo=un(Fo),zo=un(Fo);function Zn(t){if(t===Fo)throw Error(V(174));return t}function La(t,e){switch(et(zo,e),et(Uo,t),et(fr,Fo),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:$u(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=$u(e,t)}Je(fr),et(fr,e)}function Pi(){Je(fr),Je(Uo),Je(zo)}function _0(t){Zn(zo.current);var e=Zn(fr.current),r=$u(e,t.type);e!==r&&(et(Uo,t),et(fr,r))}function Fa(t){Uo.current===t&&(Je(fr),Je(Uo))}var tt=un(0);function ul(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&64)!=0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ir=null,dn=null,cr=!1;function b0(t,e){var r=Wt(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=e,r.return=t,r.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r}function S0(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function Ua(t){if(cr){var e=dn;if(e){var r=e;if(!S0(t,e)){if(e=Ei(r.nextSibling),!e||!S0(t,e)){t.flags=t.flags&-1025|2,cr=!1,Ir=t;return}b0(Ir,r)}Ir=t,dn=Ei(e.firstChild)}else t.flags=t.flags&-1025|2,cr=!1,Ir=t}}function k0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ir=t}function al(t){if(t!==Ir)return!1;if(!cr)return k0(t),cr=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!_a(e,t.memoizedProps))for(e=dn;e;)b0(t,e),e=Ei(e.nextSibling);if(k0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(V(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){dn=Ei(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}dn=null}}else dn=Ir?Ei(t.stateNode.nextSibling):null;return!0}function za(){dn=Ir=null,cr=!1}var Ri=[];function Da(){for(var t=0;t<Ri.length;t++)Ri[t]._workInProgressVersionPrimary=null;Ri.length=0}var Do=Vn.ReactCurrentDispatcher,qt=Vn.ReactCurrentBatchConfig,$o=0,it=null,_t=null,mt=null,fl=!1,jo=!1;function Tt(){throw Error(V(321))}function $a(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Vt(t[r],e[r]))return!1;return!0}function ja(t,e,r,n,i,o){if($o=o,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Do.current=t===null||t.memoizedState===null?rg:ng,t=r(n,i),jo){o=0;do{if(jo=!1,!(25>o))throw Error(V(301));o+=1,mt=_t=null,e.updateQueue=null,Do.current=ig,t=r(n,i)}while(jo)}if(Do.current=pl,e=_t!==null&&_t.next!==null,$o=0,mt=_t=it=null,fl=!1,e)throw Error(V(300));return t}function Qn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?it.memoizedState=mt=t:mt=mt.next=t,mt}function Yn(){if(_t===null){var t=it.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var e=mt===null?it.memoizedState:mt.next;if(e!==null)mt=e,_t=t;else{if(t===null)throw Error(V(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},mt===null?it.memoizedState=mt=t:mt=mt.next=t}return mt}function hr(t,e){return typeof e=="function"?e(t):e}function Vo(t){var e=Yn(),r=e.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=t;var n=_t,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=s=o=null,a=i;do{var c=a.lane;if(($o&c)===c)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),n=a.eagerReducer===t?a.eagerState:t(n,a.action);else{var p={lane:c,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(s=l=p,o=n):l=l.next=p,it.lanes|=c,Wo|=c}a=a.next}while(a!==null&&a!==i);l===null?o=n:l.next=s,Vt(n,e.memoizedState)||(tr=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=l,r.lastRenderedState=n}return[e.memoizedState,r.dispatch]}function Ho(t){var e=Yn(),r=e.queue;if(r===null)throw Error(V(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,o=e.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Vt(o,e.memoizedState)||(tr=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function A0(t,e,r){var n=e._getVersion;n=n(e._source);var i=e._workInProgressVersionPrimary;if(i!==null?t=i===n:(t=t.mutableReadLanes,(t=($o&t)===t)&&(e._workInProgressVersionPrimary=n,Ri.push(e))),t)return r(e._source);throw Ri.push(e),Error(V(350))}function N0(t,e,r,n){var i=Mt;if(i===null)throw Error(V(349));var o=e._getVersion,s=o(e._source),l=Do.current,a=l.useState(function(){return A0(i,e,r)}),c=a[1],p=a[0];a=mt;var E=t.memoizedState,_=E.refs,N=_.getSnapshot,P=E.source;E=E.subscribe;var O=it;return t.memoizedState={refs:_,source:e,subscribe:n},l.useEffect(function(){_.getSnapshot=r,_.setSnapshot=c;var b=o(e._source);if(!Vt(s,b)){b=r(e._source),Vt(p,b)||(c(b),b=mn(O),i.mutableReadLanes|=b&i.pendingLanes),b=i.mutableReadLanes,i.entangledLanes|=b;for(var y=i.entanglements,k=b;0<k;){var R=31-on(k),T=1<<R;y[R]|=b,k&=~T}}},[r,e,n]),l.useEffect(function(){return n(e._source,function(){var b=_.getSnapshot,y=_.setSnapshot;try{y(b(e._source));var k=mn(O);i.mutableReadLanes|=k&i.pendingLanes}catch(R){y(function(){throw R})}})},[e,n]),Vt(N,r)&&Vt(P,e)&&Vt(E,n)||(t={pending:null,dispatch:null,lastRenderedReducer:hr,lastRenderedState:p},t.dispatch=c=Ga.bind(null,it,t),a.queue=t,a.baseQueue=null,p=A0(i,e,r),a.memoizedState=a.baseState=p),p}function M0(t,e,r){var n=Yn();return N0(n,t,e,r)}function qo(t){var e=Qn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:hr,lastRenderedState:t},t=t.dispatch=Ga.bind(null,it,t),[e.memoizedState,t]}function cl(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=it.updateQueue,e===null?(e={lastEffect:null},it.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function P0(t){var e=Qn();return t={current:t},e.memoizedState=t}function hl(){return Yn().memoizedState}function Va(t,e,r,n){var i=Qn();it.flags|=t,i.memoizedState=cl(1|e,r,void 0,n===void 0?null:n)}function Ha(t,e,r,n){var i=Yn();n=n===void 0?null:n;var o=void 0;if(_t!==null){var s=_t.memoizedState;if(o=s.destroy,n!==null&&$a(n,s.deps)){cl(e,r,o,n);return}}it.flags|=t,i.memoizedState=cl(1|e,r,o,n)}function R0(t,e){return Va(516,4,t,e)}function dl(t,e){return Ha(516,4,t,e)}function T0(t,e){return Ha(4,2,t,e)}function I0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function C0(t,e,r){return r=r!=null?r.concat([t]):null,Ha(4,2,I0.bind(null,e,t),r)}function qa(){}function O0(t,e){var r=Yn();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&$a(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function B0(t,e){var r=Yn();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&$a(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function tg(t,e){var r=Ai();Xn(98>r?98:r,function(){t(!0)}),Xn(97<r?97:r,function(){var n=qt.transition;qt.transition=1;try{t(!1),e()}finally{qt.transition=n}})}function Ga(t,e,r){var n=Lt(),i=mn(t),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),e.pending=o,s=t.alternate,t===it||s!==null&&s===it)jo=fl=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var l=e.lastRenderedState,a=s(l,r);if(o.eagerReducer=s,o.eagerState=a,Vt(a,l))return}catch{}finally{}gn(t,i,n)}}var pl={readContext:Ht,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useOpaqueIdentifier:Tt,unstable_isNewReconciler:!1},rg={readContext:Ht,useCallback:function(t,e){return Qn().memoizedState=[t,e===void 0?null:e],t},useContext:Ht,useEffect:R0,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Va(4,2,I0.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Va(4,2,t,e)},useMemo:function(t,e){var r=Qn();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Qn();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t=n.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=Ga.bind(null,it,t),[n.memoizedState,t]},useRef:P0,useState:qo,useDebugValue:qa,useDeferredValue:function(t){var e=qo(t),r=e[0],n=e[1];return R0(function(){var i=qt.transition;qt.transition=1;try{n(t)}finally{qt.transition=i}},[t]),r},useTransition:function(){var t=qo(!1),e=t[0];return t=tg.bind(null,t[1]),P0(t),[t,e]},useMutableSource:function(t,e,r){var n=Qn();return n.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:r},N0(n,t,e,r)},useOpaqueIdentifier:function(){if(cr){var t=!1,e=Jm(function(){throw t||(t=!0,r("r:"+(Sa++).toString(36))),Error(V(355))}),r=qo(e)[1];return(it.mode&2)==0&&(it.flags|=516,cl(5,function(){r("r:"+(Sa++).toString(36))},void 0,null)),e}return e="r:"+(Sa++).toString(36),qo(e),e},unstable_isNewReconciler:!1},ng={readContext:Ht,useCallback:O0,useContext:Ht,useEffect:dl,useImperativeHandle:C0,useLayoutEffect:T0,useMemo:B0,useReducer:Vo,useRef:hl,useState:function(){return Vo(hr)},useDebugValue:qa,useDeferredValue:function(t){var e=Vo(hr),r=e[0],n=e[1];return dl(function(){var i=qt.transition;qt.transition=1;try{n(t)}finally{qt.transition=i}},[t]),r},useTransition:function(){var t=Vo(hr)[0];return[hl().current,t]},useMutableSource:M0,useOpaqueIdentifier:function(){return Vo(hr)[0]},unstable_isNewReconciler:!1},ig={readContext:Ht,useCallback:O0,useContext:Ht,useEffect:dl,useImperativeHandle:C0,useLayoutEffect:T0,useMemo:B0,useReducer:Ho,useRef:hl,useState:function(){return Ho(hr)},useDebugValue:qa,useDeferredValue:function(t){var e=Ho(hr),r=e[0],n=e[1];return dl(function(){var i=qt.transition;qt.transition=1;try{n(t)}finally{qt.transition=i}},[t]),r},useTransition:function(){var t=Ho(hr)[0];return[hl().current,t]},useMutableSource:M0,useOpaqueIdentifier:function(){return Ho(hr)[0]},unstable_isNewReconciler:!1},og=Vn.ReactCurrentOwner,tr=!1;function It(t,e,r,n){e.child=t===null?E0(e,null,r,n):ll(e,t.child,r,n)}function L0(t,e,r,n,i){r=r.render;var o=e.ref;return Mi(e,i),n=ja(t,e,r,n,o,i),t!==null&&!tr?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,Cr(t,e,i)):(e.flags|=1,It(t,e,n,i),e.child)}function F0(t,e,r,n,i,o){if(t===null){var s=r.type;return typeof s=="function"&&!gf(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,U0(t,e,s,n,i,o)):(t=Sl(r.type,null,n,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,(i&o)==0&&(i=s.memoizedProps,r=r.compare,r=r!==null?r:Po,r(i,n)&&t.ref===e.ref)?Cr(t,e,o):(e.flags|=1,t=wn(s,n),t.ref=e.ref,t.return=e,e.child=t)}function U0(t,e,r,n,i,o){if(t!==null&&Po(t.memoizedProps,n)&&t.ref===e.ref)if(tr=!1,(o&i)!=0)(t.flags&16384)!=0&&(tr=!0);else return e.lanes=t.lanes,Cr(t,e,o);return Ka(t,e,r,n,o)}function Wa(t,e,r){var n=e.pendingProps,i=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if((e.mode&4)==0)e.memoizedState={baseLanes:0},bl(e,r);else if((r&1073741824)!=0)e.memoizedState={baseLanes:0},bl(e,o!==null?o.baseLanes:r);else return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},bl(e,t),null;else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,bl(e,n);return It(t,e,i,r),e.child}function z0(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=128)}function Ka(t,e,r,n,i){var o=Rt(r)?Kn:xt.current;return o=ki(e,o),Mi(e,i),r=ja(t,e,r,n,o,i),t!==null&&!tr?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,Cr(t,e,i)):(e.flags|=1,It(t,e,r,i),e.child)}function D0(t,e,r,n,i){if(Rt(r)){var o=!0;Zs(e)}else o=!1;if(Mi(e,i),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),y0(e,r,n),Ba(e,r,n,i),n=!0;else if(t===null){var s=e.stateNode,l=e.memoizedProps;s.props=l;var a=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ht(c):(c=Rt(r)?Kn:xt.current,c=ki(e,c));var p=r.getDerivedStateFromProps,E=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";E||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||a!==c)&&w0(e,s,n,c),fn=!1;var _=e.memoizedState;s.state=_,Bo(e,n,s,i),a=e.memoizedState,l!==n||_!==a||Pt.current||fn?(typeof p=="function"&&(nl(e,r,p,n),a=e.memoizedState),(l=fn||v0(e,r,l,n,_,a,c))?(E||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=n,e.memoizedState=a),s.props=n,s.state=a,s.context=c,n=l):(typeof s.componentDidMount=="function"&&(e.flags|=4),n=!1)}else{s=e.stateNode,d0(t,e),l=e.memoizedProps,c=e.type===e.elementType?l:er(e.type,l),s.props=c,E=e.pendingProps,_=s.context,a=r.contextType,typeof a=="object"&&a!==null?a=Ht(a):(a=Rt(r)?Kn:xt.current,a=ki(e,a));var N=r.getDerivedStateFromProps;(p=typeof N=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==E||_!==a)&&w0(e,s,n,a),fn=!1,_=e.memoizedState,s.state=_,Bo(e,n,s,i);var P=e.memoizedState;l!==E||_!==P||Pt.current||fn?(typeof N=="function"&&(nl(e,r,N,n),P=e.memoizedState),(c=fn||v0(e,r,c,n,_,P,a))?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,P,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,P,a)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||l===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&_===t.memoizedState||(e.flags|=256),e.memoizedProps=n,e.memoizedState=P),s.props=n,s.state=P,s.context=a,n=c):(typeof s.componentDidUpdate!="function"||l===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&_===t.memoizedState||(e.flags|=256),n=!1)}return Ja(t,e,r,n,o,i)}function Ja(t,e,r,n,i,o){z0(t,e);var s=(e.flags&64)!=0;if(!n&&!s)return i&&n0(e,r,!1),Cr(t,e,o);n=e.stateNode,og.current=e;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&s?(e.child=ll(e,t.child,null,o),e.child=ll(e,null,l,o)):It(t,e,l,o),e.memoizedState=n.state,i&&n0(e,r,!0),e.child}function $0(t){var e=t.stateNode;e.pendingContext?t0(t,e.pendingContext,e.pendingContext!==e.context):e.context&&t0(t,e.context,!1),La(t,e.containerInfo)}var ml={dehydrated:null,retryLane:0};function j0(t,e,r){var n=e.pendingProps,i=tt.current,o=!1,s;return(s=(e.flags&64)!=0)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!=0),s?(o=!0,e.flags&=-65):t!==null&&t.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),et(tt,i&1),t===null?(n.fallback!==void 0&&Ua(e),t=n.children,i=n.fallback,o?(t=V0(e,t,i,r),e.child.memoizedState={baseLanes:r},e.memoizedState=ml,t):typeof n.unstable_expectedLoadTime=="number"?(t=V0(e,t,i,r),e.child.memoizedState={baseLanes:r},e.memoizedState=ml,e.lanes=33554432,t):(r=vf({mode:"visible",children:t},e.mode,r,null),r.return=e,e.child=r)):t.memoizedState!==null?o?(n=q0(t,e,n.children,n.fallback,r),o=e.child,i=t.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=t.childLanes&~r,e.memoizedState=ml,n):(r=H0(t,e,n.children,r),e.memoizedState=null,r):o?(n=q0(t,e,n.children,n.fallback,r),o=e.child,i=t.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=t.childLanes&~r,e.memoizedState=ml,n):(r=H0(t,e,n.children,r),e.memoizedState=null,r)}function V0(t,e,r,n){var i=t.mode,o=t.child;return e={mode:"hidden",children:e},(i&2)==0&&o!==null?(o.childLanes=0,o.pendingProps=e):o=vf(e,i,0,null),r=Li(r,i,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r}function H0(t,e,r,n){var i=t.child;return t=i.sibling,r=wn(i,{mode:"visible",children:r}),(e.mode&2)==0&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=r}function q0(t,e,r,n,i){var o=e.mode,s=t.child;t=s.sibling;var l={mode:"hidden",children:r};return(o&2)==0&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=l,s=r.lastEffect,s!==null?(e.firstEffect=r.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):r=wn(s,l),t!==null?n=wn(t,n):(n=Li(n,o,i,null),n.flags|=2),n.return=e,r.return=e,r.sibling=n,e.child=r,n}function G0(t,e){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),h0(t.return,e)}function Xa(t,e,r,n,i,o){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i,s.lastEffect=o)}function W0(t,e,r){var n=e.pendingProps,i=n.revealOrder,o=n.tail;if(It(t,e,n.children,r),n=tt.current,(n&2)!=0)n=n&1|2,e.flags|=64;else{if(t!==null&&(t.flags&64)!=0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&G0(t,r);else if(t.tag===19)G0(t,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(et(tt,n),(e.mode&2)==0)e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&ul(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),Xa(e,!1,i,r,o,e.lastEffect);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&ul(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}Xa(e,!0,r,null,o,e.lastEffect);break;case"together":Xa(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Cr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Wo|=e.lanes,(r&e.childLanes)!=0){if(t!==null&&e.child!==t.child)throw Error(V(153));if(e.child!==null){for(t=e.child,r=wn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=wn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}return null}var K0,Za,J0,X0;K0=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Za=function(){};J0=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Zn(fr.current);var o=null;switch(r){case"input":i=Bu(t,i),n=Bu(t,n),o=[];break;case"option":i=Uu(t,i),n=Uu(t,n),o=[];break;case"select":i=Xe({},i,{value:void 0}),n=Xe({},n,{value:void 0}),o=[];break;case"textarea":i=zu(t,i),n=zu(t,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Gs)}ju(r,n);var s;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(so.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var a=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(r||(r={}),r[s]=a[s])}else r||(o||(o=[]),o.push(c,r)),r=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(so.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&Ke("scroll",t),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Ru?a.toString():(o=o||[]).push(c,a))}r&&(o=o||[]).push("style",r);var c=o;(e.updateQueue=c)&&(e.flags|=4)}};X0=function(t,e,r,n){r!==n&&(e.flags|=4)};function Go(t,e){if(!cr)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function sg(t,e,r){var n=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Rt(e.type)&&Xs(),null;case 3:return Pi(),Je(Pt),Je(xt),Da(),n=e.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(al(e)?e.flags|=4:n.hydrate||(e.flags|=256)),Za(e),null;case 5:Fa(e);var i=Zn(zo.current);if(r=e.type,t!==null&&e.stateNode!=null)J0(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=128);else{if(!n){if(e.stateNode===null)throw Error(V(166));return null}if(t=Zn(fr.current),al(e)){n=e.stateNode,r=e.type;var o=e.memoizedProps;switch(n[ln]=e,n[Ks]=o,r){case"dialog":Ke("cancel",n),Ke("close",n);break;case"iframe":case"object":case"embed":Ke("load",n);break;case"video":case"audio":for(t=0;t<To.length;t++)Ke(To[t],n);break;case"source":Ke("error",n);break;case"img":case"image":case"link":Ke("error",n),Ke("load",n);break;case"details":Ke("toggle",n);break;case"input":Dc(n,o),Ke("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Ke("invalid",n);break;case"textarea":Vc(n,o),Ke("invalid",n)}ju(r,o),t=null;for(var s in o)o.hasOwnProperty(s)&&(i=o[s],s==="children"?typeof i=="string"?n.textContent!==i&&(t=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(t=["children",""+i]):so.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Ke("scroll",n));switch(r){case"input":Ps(n),jc(n,o,!0);break;case"textarea":Ps(n),qc(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Gs)}n=t,e.updateQueue=n,n!==null&&(e.flags|=4)}else{switch(s=i.nodeType===9?i:i.ownerDocument,t===Du.html&&(t=Gc(r)),t===Du.html?r==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>
30",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=s.createElement(r,{is:n.is}):(t=s.createElement(r),r==="select"&&(s=t,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):t=s.createElementNS(t,r),t[ln]=e,t[Ks]=n,K0(t,e,!1,!1),e.stateNode=t,s=Vu(r,n),r){case"dialog":Ke("cancel",t),Ke("close",t),i=n;break;case"iframe":case"object":case"embed":Ke("load",t),i=n;break;case"video":case"audio":for(i=0;i<To.length;i++)Ke(To[i],t);i=n;break;case"source":Ke("error",t),i=n;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),i=n;break;case"details":Ke("toggle",t),i=n;break;case"input":Dc(t,n),i=Bu(t,n),Ke("invalid",t);break;case"option":i=Uu(t,n);break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=Xe({},n,{value:void 0}),Ke("invalid",t);break;case"textarea":Vc(t,n),i=zu(t,n),Ke("invalid",t);break;default:i=n}ju(r,i);var l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Jc(t,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Wc(t,a)):o==="children"?typeof a=="string"?(r!=="textarea"||a!=="")&&ho(t,a):typeof a=="number"&&ho(t,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(so.hasOwnProperty(o)?a!=null&&o==="onScroll"&&Ke("scroll",t):a!=null&&Su(t,o,a,s))}switch(r){case"input":Ps(t),jc(t,n,!1);break;case"textarea":Ps(t),qc(t);break;case"option":n.value!=null&&t.setAttribute("value",""+en(n.value));break;case"select":t.multiple=!!n.multiple,o=n.value,o!=null?ci(t,!!n.multiple,o,!1):n.defaultValue!=null&&ci(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Gs)}Xh(r,n)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)X0(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(V(166));r=Zn(zo.current),Zn(fr.current),al(e)?(n=e.stateNode,r=e.memoizedProps,n[ln]=e,n.nodeValue!==r&&(e.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ln]=e,e.stateNode=n)}return null;case 13:return Je(tt),n=e.memoizedState,(e.flags&64)!=0?(e.lanes=r,e):(n=n!==null,r=!1,t===null?e.memoizedProps.fallback!==void 0&&al(e):r=t.memoizedState!==null,n&&!r&&(e.mode&2)!=0&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||(tt.current&1)!=0?gt===0&&(gt=3):((gt===0||gt===3)&&(gt=4),Mt===null||(Wo&134217727)==0&&(Ii&134217727)==0||Oi(Mt,bt))),(n||r)&&(e.flags|=4),null);case 4:return Pi(),Za(e),t===null&&qh(e.stateNode.containerInfo),null;case 10:return Ca(e),null;case 17:return Rt(e.type)&&Xs(),null;case 19:if(Je(tt),n=e.memoizedState,n===null)return null;if(o=(e.flags&64)!=0,s=n.rendering,s===null)if(o)Go(n,!1);else{if(gt!==0||t!==null&&(t.flags&64)!=0)for(t=e.child;t!==null;){if(s=ul(t),s!==null){for(e.flags|=64,Go(n,!1),o=s.updateQueue,o!==null&&(e.updateQueue=o,e.flags|=4),n.lastEffect===null&&(e.firstEffect=null),e.lastEffect=n.lastEffect,n=r,r=e.child;r!==null;)o=r,t=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return et(tt,tt.current&1|2),e.child}t=t.sibling}n.tail!==null&&Et()>af&&(e.flags|=64,o=!0,Go(n,!1),e.lanes=33554432)}else{if(!o)if(t=ul(s),t!==null){if(e.flags|=64,o=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Go(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!cr)return e=e.lastEffect=n.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Et()-n.renderingStartTime>af&&r!==1073741824&&(e.flags|=64,o=!0,Go(n,!1),e.lanes=33554432);n.isBackwards?(s.sibling=e.child,e.child=s):(r=n.last,r!==null?r.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=e.lastEffect,n.renderingStartTime=Et(),r.sibling=null,e=tt.current,et(tt,o?e&1|2:e&1),r):null;case 23:case 24:return mf(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(V(156,e.tag))}function lg(t){switch(t.tag){case 1:Rt(t.type)&&Xs();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Pi(),Je(Pt),Je(xt),Da(),e=t.flags,(e&64)!=0)throw Error(V(285));return t.flags=e&-4097|64,t;case 5:return Fa(t),null;case 13:return Je(tt),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return Je(tt),null;case 4:return Pi(),null;case 10:return Ca(t),null;case 23:case 24:return mf(),null;default:return null}}function Qa(t,e){try{var r="",n=e;do r+=$1(n),n=n.return;while(n);var i=r}catch(o){i=`
31Error generating stack: `+o.message+`
32`+o.stack}return{value:t,source:e,stack:i}}function Ya(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var ug=typeof WeakMap=="function"?WeakMap:Map;function Z0(t,e,r){r=cn(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){yl||(yl=!0,ff=n),Ya(t,e)},r}function Q0(t,e,r){r=cn(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return Ya(t,e),n(i)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(dr===null?dr=new Set([this]):dr.add(this),Ya(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),r}var ag=typeof WeakSet=="function"?WeakSet:Set;function Y0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(r){yn(t,r)}else e.current=null}function fg(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var r=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?r:er(e.type,r),n),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&ba(e.stateNode.containerInfo);return;
vendor: 31,552 bytes, lines 32-34
32case 5:case 6:case 4:case 17:return}throw Error(V(163))}function cg(t,e,r){switch(r.tag){case 0:case 11:case 15:case 22:if(e=r.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)==3){var n=t.create;t.destroy=n()}t=t.next}while(t!==e)}if(e=r.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var i=t;n=i.next,i=i.tag,(i&4)!=0&&(i&1)!=0&&(pd(r,t),wg(r,t)),t=n}while(t!==e)}return;case 1:t=r.stateNode,r.flags&4&&(e===null?t.componentDidMount():(n=r.elementType===r.type?e.memoizedProps:er(r.type,e.memoizedProps),t.componentDidUpdate(n,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=r.updateQueue,e!==null&&m0(r,e,t);return;case 3:if(e=r.updateQueue,e!==null){if(t=null,r.child!==null)switch(r.child.tag){case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}m0(r,e,t)}return;case 5:t=r.stateNode,e===null&&r.flags&4&&Xh(r.type,r.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&ch(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(V(163))}function ed(t,e){for(var r=t;;){if(r.tag===5){var n=r.stateNode;if(e)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=Kc("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=e?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function td(t,e){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Aa,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var r=t=t.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!=0)pd(e,r);else{n=e;try{i()}catch(o){yn(n,o)}}r=r.next}while(r!==t)}break;case 1:if(Y0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(o){yn(e,o)}break;case 5:Y0(e);break;case 4:od(t,e)}}function rd(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function nd(t){return t.tag===5||t.tag===3||t.tag===4}function id(t){e:{for(var e=t.return;e!==null;){if(nd(e))break e;e=e.return}throw Error(V(160))}var r=e;switch(e=r.stateNode,r.tag){case 5:var n=!1;break;case 3:e=e.containerInfo,n=!0;break;case 4:e=e.containerInfo,n=!0;break;default:throw Error(V(161))}r.flags&16&&(ho(e,""),r.flags&=-17);e:t:for(r=t;;){for(;r.sibling===null;){if(r.return===null||nd(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?ef(t,r,e):tf(t,r,e)}function ef(t,e,r){var n=t.tag,i=n===5||n===6;if(i)t=i?t.stateNode:t.stateNode.instance,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Gs));else if(n!==4&&(t=t.child,t!==null))for(ef(t,e,r),t=t.sibling;t!==null;)ef(t,e,r),t=t.sibling}function tf(t,e,r){var n=t.tag,i=n===5||n===6;if(i)t=i?t.stateNode:t.stateNode.instance,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(tf(t,e,r),t=t.sibling;t!==null;)tf(t,e,r),t=t.sibling}function od(t,e){for(var r=e,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(V(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var s=t,l=r,a=l;;)if(td(s,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(s=i,l=r.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(td(t,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function rf(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)==3&&(t=n.destroy,n.destroy=void 0,t!==void 0&&t()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=e.stateNode,r!=null){n=e.memoizedProps;var i=t!==null?t.memoizedProps:n;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,o!==null){for(r[Ks]=n,t==="input"&&n.type==="radio"&&n.name!=null&&$c(r,n),Vu(t,i),e=Vu(t,n),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];s==="style"?Jc(r,l):s==="dangerouslySetInnerHTML"?Wc(r,l):s==="children"?ho(r,l):Su(r,s,l,e)}switch(t){case"input":Lu(r,n);break;case"textarea":Hc(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?ci(r,!!n.multiple,o,!1):t!==!!n.multiple&&(n.defaultValue!=null?ci(r,!!n.multiple,n.defaultValue,!0):ci(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(V(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:r=e.stateNode,r.hydrate&&(r.hydrate=!1,ch(r.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(uf=Et(),ed(e.child,!0)),sd(e);return;case 19:sd(e);return;case 17:return;case 23:case 24:ed(e,e.memoizedState!==null);return}throw Error(V(163))}function sd(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new ag),e.forEach(function(n){var i=_g.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function hg(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var dg=Math.ceil,gl=Vn.ReactCurrentDispatcher,nf=Vn.ReactCurrentOwner,ne=0,Mt=null,st=null,bt=0,ei=0,of=un(0),gt=0,vl=null,Ti=0,Wo=0,Ii=0,sf=0,lf=null,uf=0,af=1/0;function Ci(){af=Et()+500}var X=null,yl=!1,ff=null,dr=null,pn=!1,Ko=null,Jo=90,cf=[],hf=[],Or=null,Xo=0,df=null,wl=-1,Br=0,xl=0,Zo=null,El=!1;function Lt(){return(ne&48)!=0?Et():wl!==-1?wl:wl=Et()}function mn(t){if(t=t.mode,(t&2)==0)return 1;if((t&4)==0)return Ai()===99?1:2;if(Br===0&&(Br=Ti),eg.transition!==0){xl!==0&&(xl=lf!==null?lf.pendingLanes:0),t=Br;var e=4186112&~xl;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Ai(),(ne&4)!=0&&t===98?t=Fs(12,Br):(t=nm(t),t=Fs(t,Br)),t}function gn(t,e,r){if(50<Xo)throw Xo=0,df=null,Error(V(185));if(t=_l(t,e),t===null)return null;Us(t,e,r),t===Mt&&(Ii|=e,gt===4&&Oi(t,bt));var n=Ai();e===1?(ne&8)!=0&&(ne&48)==0?pf(t):(Gt(t,r),ne===0&&(Ci(),ar())):((ne&4)==0||n!==98&&n!==99||(Or===null?Or=new Set([t]):Or.add(t)),Gt(t,r)),lf=t}function _l(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}function Gt(t,e){for(var r=t.callbackNode,n=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes;0<s;){var l=31-on(s),a=1<<l,c=o[l];if(c===-1){if((a&n)==0||(a&i)!=0){c=e,mi(a);var p=ge;o[l]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=e&&(t.expiredLanes|=a);s&=~a}if(n=bo(t,t===Mt?bt:0),e=ge,n===0)r!==null&&(r!==Ra&&Ma(r),t.callbackNode=null,t.callbackPriority=0);else{if(r!==null){if(t.callbackPriority===e)return;r!==Ra&&Ma(r)}e===15?(r=pf.bind(null,t),Tr===null?(Tr=[r],Ys=Na(Qs,c0)):Tr.push(r),r=Ra):e===14?r=Oo(99,pf.bind(null,t)):(r=im(e),r=Oo(r,ld.bind(null,t))),t.callbackPriority=e,t.callbackNode=r}}function ld(t){if(wl=-1,xl=Br=0,(ne&48)!=0)throw Error(V(327));var e=t.callbackNode;if(vn()&&t.callbackNode!==e)return null;var r=bo(t,t===Mt?bt:0);if(r===0)return null;var n=r,i=ne;ne|=16;var o=cd();(Mt!==t||bt!==n)&&(Ci(),Bi(t,n));do try{gg();break}catch(l){fd(t,l)}while(1);if(Ia(),gl.current=o,ne=i,st!==null?n=0:(Mt=null,bt=0,n=gt),(Ti&Ii)!=0)Bi(t,0);else if(n!==0){if(n===2&&(ne|=64,t.hydrate&&(t.hydrate=!1,ba(t.containerInfo)),r=yh(t),r!==0&&(n=Qo(t,r))),n===1)throw e=vl,Bi(t,0),Oi(t,r),Gt(t,Et()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=r,n){case 0:case 1:throw Error(V(345));case 2:ti(t);break;case 3:if(Oi(t,r),(r&62914560)===r&&(n=uf+500-Et(),10<n)){if(bo(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Lt(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Zh(ti.bind(null,t),n);break}ti(t);break;case 4:if(Oi(t,r),(r&4186112)===r)break;for(n=t.eventTimes,i=-1;0<r;){var s=31-on(r);o=1<<s,s=n[s],s>i&&(i=s),r&=~o}if(r=i,r=Et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dg(r/1960))-r,10<r){t.timeoutHandle=Zh(ti.bind(null,t),r);break}ti(t);break;case 5:ti(t);break;default:throw Error(V(329))}}return Gt(t,Et()),t.callbackNode===e?ld.bind(null,t):null}function Oi(t,e){for(e&=~sf,e&=~Ii,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-on(e),n=1<<r;t[r]=-1,e&=~n}}function pf(t){if((ne&48)!=0)throw Error(V(327));if(vn(),t===Mt&&(t.expiredLanes&bt)!=0){var e=bt,r=Qo(t,e);(Ti&Ii)!=0&&(e=bo(t,e),r=Qo(t,e))}else e=bo(t,0),r=Qo(t,e);if(t.tag!==0&&r===2&&(ne|=64,t.hydrate&&(t.hydrate=!1,ba(t.containerInfo)),e=yh(t),e!==0&&(r=Qo(t,e))),r===1)throw r=vl,Bi(t,0),Oi(t,e),Gt(t,Et()),r;return t.finishedWork=t.current.alternate,t.finishedLanes=e,ti(t),Gt(t,Et()),null}function pg(){if(Or!==null){var t=Or;Or=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Gt(e,Et())})}ar()}function ud(t,e){var r=ne;ne|=1;try{return t(e)}finally{ne=r,ne===0&&(Ci(),ar())}}function ad(t,e){var r=ne;ne&=-2,ne|=8;try{return t(e)}finally{ne=r,ne===0&&(Ci(),ar())}}function bl(t,e){et(of,ei),ei|=e,Ti|=e}function mf(){ei=of.current,Je(of)}function Bi(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,Km(r)),st!==null)for(r=st.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&Xs();break;case 3:Pi(),Je(Pt),Je(xt),Da();break;case 5:Fa(n);break;case 4:Pi();break;case 13:Je(tt);break;case 19:Je(tt);break;case 10:Ca(n);break;case 23:case 24:mf()}r=r.return}Mt=t,st=wn(t.current,null),bt=ei=Ti=e,gt=0,vl=null,sf=Ii=Wo=0}function fd(t,e){do{var r=st;try{if(Ia(),Do.current=pl,fl){for(var n=it.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}fl=!1}if($o=0,mt=_t=it=null,jo=!1,nf.current=null,r===null||r.return===null){gt=1,vl=e,st=null;break}e:{var o=t,s=r.return,l=r,a=e;if(e=bt,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a;if((l.mode&2)==0){var p=l.alternate;p?(l.updateQueue=p.updateQueue,l.memoizedState=p.memoizedState,l.lanes=p.lanes):(l.updateQueue=null,l.memoizedState=null)}var E=(tt.current&1)!=0,_=s;do{var N;if(N=_.tag===13){var P=_.memoizedState;if(P!==null)N=P.dehydrated!==null;else{var O=_.memoizedProps;N=O.fallback===void 0?!1:O.unstable_avoidThisFallback!==!0?!0:!E}}if(N){var b=_.updateQueue;if(b===null){var y=new Set;y.add(c),_.updateQueue=y}else b.add(c);if((_.mode&2)==0){if(_.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var k=cn(-1,1);k.tag=2,hn(l,k)}l.lanes|=1;break e}a=void 0,l=e;var R=o.pingCache;if(R===null?(R=o.pingCache=new ug,a=new Set,R.set(c,a)):(a=R.get(c),a===void 0&&(a=new Set,R.set(c,a))),!a.has(l)){a.add(l);var T=Eg.bind(null,o,c,l);c.then(T,T)}_.flags|=4096,_.lanes=e;break e}_=_.return}while(_!==null);a=Error((fi(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
33
34Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}gt!==5&&(gt=2),a=Qa(a,l),_=s;do{switch(_.tag){case 3:o=a,_.flags|=4096,e&=-e,_.lanes|=e;var H=Z0(_,o,e);p0(_,H);break e;case 1:o=a;var D=_.type,J=_.stateNode;if((_.flags&64)==0&&(typeof D.getDerivedStateFromError=="function"||J!==null&&typeof J.componentDidCatch=="function"&&(dr===null||!dr.has(J)))){_.flags|=4096,e&=-e,_.lanes|=e;var Q=Q0(_,o,e);p0(_,Q);break e}}_=_.return}while(_!==null)}dd(r)}catch(j){e=j,st===r&&r!==null&&(st=r=r.return);continue}break}while(1)}function cd(){var t=gl.current;return gl.current=pl,t===null?pl:t}function Qo(t,e){var r=ne;ne|=16;var n=cd();Mt===t&&bt===e||Bi(t,e);do try{mg();break}catch(i){fd(t,i)}while(1);if(Ia(),ne=r,gl.current=n,st!==null)throw Error(V(261));return Mt=null,bt=0,gt}function mg(){for(;st!==null;)hd(st)}function gg(){for(;st!==null&&!Zm();)hd(st)}function hd(t){var e=gd(t.alternate,t,ei);t.memoizedProps=t.pendingProps,e===null?dd(t):st=e,nf.current=null}function dd(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&2048)==0){if(r=sg(r,e,ei),r!==null){st=r;return}if(r=e,r.tag!==24&&r.tag!==23||r.memoizedState===null||(ei&1073741824)!=0||(r.mode&4)==0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}t!==null&&(t.flags&2048)==0&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}else{if(r=lg(e),r!==null){r.flags&=2047,st=r;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}if(e=e.sibling,e!==null){st=e;return}st=e=t}while(e!==null);gt===0&&(gt=5)}function ti(t){var e=Ai();return Xn(99,vg.bind(null,t,e)),null}function vg(t,e){do vn();while(Ko!==null);if((ne&48)!=0)throw Error(V(327));var r=t.finishedWork;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(V(177));t.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;for(var s=t.eventTimes,l=t.expirationTimes;0<o;){var a=31-on(o),c=1<<a;i[a]=0,s[a]=-1,l[a]=-1,o&=~c}if(Or!==null&&(n&24)==0&&Or.has(t)&&Or.delete(t),t===Mt&&(st=Mt=null,bt=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=ne,ne|=32,nf.current=null,xa=zs,s=Uh(),ga(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&c.rangeCount!==0){l=c.anchorNode,o=c.anchorOffset,a=c.focusNode,c=c.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var p=0,E=-1,_=-1,N=0,P=0,O=s,b=null;t:for(;;){for(var y;O!==l||o!==0&&O.nodeType!==3||(E=p+o),O!==a||c!==0&&O.nodeType!==3||(_=p+c),O.nodeType===3&&(p+=O.nodeValue.length),(y=O.firstChild)!==null;)b=O,O=y;for(;;){if(O===s)break t;if(b===l&&++N===o&&(E=p),b===a&&++P===c&&(_=p),(y=O.nextSibling)!==null)break;O=b,b=O.parentNode}O=y}l=E===-1||_===-1?null:{start:E,end:_}}else l=null;l=l||{start:0,end:0}}else l=null;Ea={focusedElem:s,selectionRange:l},zs=!1,Zo=null,El=!1,X=n;do try{yg()}catch(j){if(X===null)throw Error(V(330));yn(X,j),X=X.nextEffect}while(X!==null);Zo=null,X=n;do try{for(s=t;X!==null;){var k=X.flags;if(k&16&&ho(X.stateNode,""),k&128){var R=X.alternate;if(R!==null){var T=R.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(k&1038){case 2:id(X),X.flags&=-3;break;case 6:id(X),X.flags&=-3,rf(X.alternate,X);break;case 1024:X.flags&=-1025;break;case 1028:X.flags&=-1025,rf(X.alternate,X);break;case 4:rf(X.alternate,X);break;case 8:l=X,od(s,l);var H=l.alternate;rd(l),H!==null&&rd(H)}X=X.nextEffect}}catch(j){if(X===null)throw Error(V(330));yn(X,j),X=X.nextEffect}while(X!==null);if(T=Ea,R=Uh(),k=T.focusedElem,s=T.selectionRange,R!==k&&k&&k.ownerDocument&&Fh(k.ownerDocument.documentElement,k)){for(s!==null&&ga(k)&&(R=s.start,T=s.end,T===void 0&&(T=R),"selectionStart"in k?(k.selectionStart=R,k.selectionEnd=Math.min(T,k.value.length)):(T=(R=k.ownerDocument||document)&&R.defaultView||window,T.getSelection&&(T=T.getSelection(),l=k.textContent.length,H=Math.min(s.start,l),s=s.end===void 0?H:Math.min(s.end,l),!T.extend&&H>s&&(l=s,s=H,H=l),l=Lh(k,H),o=Lh(k,s),l&&o&&(T.rangeCount!==1||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==o.node||T.focusOffset!==o.offset)&&(R=R.createRange(),R.setStart(l.node,l.offset),T.removeAllRanges(),H>s?(T.addRange(R),T.extend(o.node,o.offset)):(R.setEnd(o.node,o.offset),T.addRange(R)))))),R=[],T=k;T=T.parentNode;)T.nodeType===1&&R.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<R.length;k++)T=R[k],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}zs=!!xa,Ea=xa=null,t.current=r,X=n;do try{for(k=t;X!==null;){var D=X.flags;if(D&36&&cg(k,X.alternate,X),D&128){R=void 0;var J=X.ref;if(J!==null){var Q=X.stateNode;switch(X.tag){case 5:R=Q;break;default:R=Q}typeof J=="function"?J(R):J.current=R}}X=X.nextEffect}}catch(j){if(X===null)throw Error(V(330));yn(X,j),X=X.nextEffect}while(X!==null);X=null,Ym(),ne=i}else t.current=r;if(pn)pn=!1,Ko=t,Jo=e;else for(X=n;X!==null;)e=X.nextEffect,X.nextEffect=null,X.flags&8&&(D=X,D.sibling=null,D.stateNode=null),X=e;if(n=t.pendingLanes,n===0&&(dr=null),n===1?t===df?Xo++:(Xo=0,df=t):Xo=0,r=r.stateNode,Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Aa,r,void 0,(r.current.flags&64)==64)}catch{}if(Gt(t,Et()),yl)throw yl=!1,t=ff,ff=null,t;return(ne&8)!=0||ar(),null}function yg(){for(;X!==null;){var t=X.alternate;El||Zo===null||((X.flags&8)!=0?ih(X,Zo)&&(El=!0):X.tag===13&&hg(t,X)&&ih(X,Zo)&&(El=!0));var e=X.flags;(e&256)!=0&&fg(t,X),(e&512)==0||pn||(pn=!0,Oo(97,function(){return vn(),null})),X=X.nextEffect}}function vn(){if(Jo!==90){var t=97<Jo?97:Jo;return Jo=90,Xn(t,xg)}return!1}function wg(t,e){cf.push(e,t),pn||(pn=!0,Oo(97,function(){return vn(),null}))}function pd(t,e){hf.push(e,t),pn||(pn=!0,Oo(97,function(){return vn(),null}))}function xg(){if(Ko===null)return!1;var t=Ko;if(Ko=null,(ne&48)!=0)throw Error(V(331));var e=ne;ne|=32;var r=hf;hf=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],s=i.destroy;if(i.destroy=void 0,typeof s=="function")try{s()}catch(a){if(o===null)throw Error(V(330));yn(o,a)}}for(r=cf,cf=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var l=i.create;i.destroy=l()}catch(a){if(o===null)throw Error(V(330));yn(o,a)}}for(l=t.current.firstEffect;l!==null;)t=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=t;return ne=e,ar(),!0}function md(t,e,r){e=Qa(r,e),e=Z0(t,e,1),hn(t,e),e=Lt(),t=_l(t,1),t!==null&&(Us(t,1,e),Gt(t,e))}function yn(t,e){if(t.tag===3)md(t,t,e);else for(var r=t.return;r!==null;){if(r.tag===3){md(r,t,e);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(dr===null||!dr.has(n))){t=Qa(e,t);var i=Q0(r,t,1);if(hn(r,i),i=Lt(),r=_l(r,1),r!==null)Us(r,1,i),Gt(r,i);else if(typeof n.componentDidCatch=="function"&&(dr===null||!dr.has(n)))try{n.componentDidCatch(e,t)}catch{}break}}r=r.return}}function Eg(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Lt(),t.pingedLanes|=t.suspendedLanes&r,Mt===t&&(bt&r)===r&&(gt===4||gt===3&&(bt&62914560)===bt&&500>Et()-uf?Bi(t,0):sf|=r),Gt(t,e)}function _g(t,e){var r=t.stateNode;r!==null&&r.delete(e),e=0,e===0&&(e=t.mode,(e&2)==0?e=1:(e&4)==0?e=Ai()===99?1:2:(Br===0&&(Br=Ti),e=gi(62914560&~Br),e===0&&(e=4194304))),r=Lt(),t=_l(t,e),t!==null&&(Us(t,e,r),Gt(t,r))}var gd;gd=function(t,e,r){var n=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Pt.current)tr=!0;else if((r&n)!=0)tr=(t.flags&16384)!=0;else{switch(tr=!1,e.tag){case 3:$0(e),za();break;case 5:_0(e);break;case 1:Rt(e.type)&&Zs(e);break;case 4:La(e,e.stateNode.containerInfo);break;case 10:n=e.memoizedProps.value;var i=e.type._context;et(el,i._currentValue),i._currentValue=n;break;case 13:if(e.memoizedState!==null)return(r&e.child.childLanes)!=0?j0(t,e,r):(et(tt,tt.current&1),e=Cr(t,e,r),e!==null?e.sibling:null);et(tt,tt.current&1);break;case 19:if(n=(r&e.childLanes)!=0,(t.flags&64)!=0){if(n)return W0(t,e,r);e.flags|=64}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),et(tt,tt.current),n)break;return null;case 23:case 24:return e.lanes=0,Wa(t,e,r)}return Cr(t,e,r)}else tr=!1;switch(e.lanes=0,e.tag){case 2:if(n=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=ki(e,xt.current),Mi(e,r),i=ja(null,e,n,t,i,r),e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Rt(n)){var o=!0;Zs(e)}else o=!1;e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Oa(e);var s=n.getDerivedStateFromProps;typeof s=="function"&&nl(e,n,s,t),i.updater=il,e.stateNode=i,i._reactInternals=e,Ba(e,n,t,r),e=Ja(null,e,n,!0,o,r)}else e.tag=0,It(null,e,i,r),e=e.child;return e;case 16:i=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,o=i._init,i=o(i._payload),e.type=i,o=e.tag=Sg(i),t=er(i,t),o){case 0:e=Ka(null,e,i,t,r);break e;case 1:e=D0(null,e,i,t,r);break e;case 11:e=L0(null,e,i,t,r);break e;case 14:e=F0(null,e,i,er(i.type,t),n,r);break e}throw Error(V(306,i,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:er(n,i),Ka(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:er(n,i),D0(t,e,n,i,r);case 3:if($0(e),n=e.updateQueue,t===null||n===null)throw Error(V(282));if(n=e.pendingProps,i=e.memoizedState,i=i!==null?i.element:null,d0(t,e),Bo(e,n,null,r),n=e.memoizedState.element,n===i)za(),e=Cr(t,e,r);else{if(i=e.stateNode,(o=i.hydrate)&&(dn=Ei(e.stateNode.containerInfo.firstChild),Ir=e,o=cr=!0),o){if(t=i.mutableSourceEagerHydrationData,t!=null)for(i=0;i<t.length;i+=2)o=t[i],o._workInProgressVersionPrimary=t[i+1],Ri.push(o);for(r=E0(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else It(t,e,n,r),za();e=e.child}return e;case 5:return _0(e),t===null&&Ua(e),n=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,s=i.children,_a(n,i)?s=null:o!==null&&_a(n,o)&&(e.flags|=16),z0(t,e),It(t,e,s,r),e.child;case 6:return t===null&&Ua(e),null;case 13:return j0(t,e,r);case 4:return La(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=ll(e,null,n,r):It(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:er(n,i),L0(t,e,n,i,r);case 7:return It(t,e,e.pendingProps,r),e.child;case 8:return It(t,e,e.pendingProps.children,r),e.child;case 12:return It(t,e,e.pendingProps.children,r),e.child;case 10:e:{n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var l=e.type._context;if(et(el,l._currentValue),l._currentValue=o,s!==null)if(l=s.value,o=Vt(l,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,o):1073741823)|0,o===0){if(s.children===i.children&&!Pt.current){e=Cr(t,e,r);break e}}else for(l=e.child,l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var c=a.firstContext;c!==null;){if(c.context===n&&(c.observedBits&o)!=0){l.tag===1&&(c=cn(-1,r&-r),c.tag=2,hn(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),h0(l.return,r),a.lanes|=r;break}c=c.next}}else s=l.tag===10&&l.type===e.type?null:l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}It(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,o=e.pendingProps,n=o.children,Mi(e,r),i=Ht(i,o.unstable_observedBits),n=n(i),e.flags|=1,It(t,e,n,r),e.child;case 14:return i=e.type,o=er(i,e.pendingProps),o=er(i.type,o),F0(t,e,i,o,n,r);case 15:return U0(t,e,e.type,e.pendingProps,n,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:er(n,i),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Rt(n)?(t=!0,Zs(e)):t=!1,Mi(e,r),y0(e,n,i),Ba(e,n,i,r),Ja(null,e,n,!0,t,r);case 19:return W0(t,e,r);case 23:return Wa(t,e,r);case 24:return Wa(t,e,r)}throw Error(V(156,e.tag))};function bg(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(t,e,r,n){return new bg(t,e,r,n)}function gf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Sg(t){if(typeof t=="function")return gf(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ks)return 11;if(t===Ns)return 14}return 2}function wn(t,e){var r=t.alternate;return r===null?(r=Wt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Sl(t,e,r,n,i,o){var s=2;if(n=t,typeof t=="function")gf(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case Yr:return Li(r.children,i,o,e);case Lc:s=8,i|=16;break;case ku:s=8,i|=1;break;case uo:return t=Wt(12,r,e,i|8),t.elementType=uo,t.type=uo,t.lanes=o,t;case ao:return t=Wt(13,r,e,i),t.type=ao,t.elementType=ao,t.lanes=o,t;case As:return t=Wt(19,r,e,i),t.elementType=As,t.lanes=o,t;case Tu:return vf(r,i,o,e);case Iu:return t=Wt(24,r,e,i),t.elementType=Iu,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Au:s=10;break e;case Nu:s=9;break e;case ks:s=11;break e;case Ns:s=14;break e;case Mu:s=16,n=null;break e;case Pu:s=22;break e}throw Error(V(130,t==null?t:typeof t,""))}return e=Wt(s,r,e,i),e.elementType=t,e.type=n,e.lanes=o,e}function Li(t,e,r,n){return t=Wt(7,t,n,e),t.lanes=r,t}function vf(t,e,r,n){return t=Wt(23,t,n,e),t.elementType=Tu,t.lanes=r,t}function yf(t,e,r){return t=Wt(6,t,null,e),t.lanes=r,t}function wf(t,e,r){return e=Wt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function kg(t,e,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ia(0),this.expirationTimes=ia(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ia(0),this.mutableSourceEagerHydrationData=null}function Ag(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function kl(t,e,r,n){var i=e.current,o=Lt(),s=mn(i);e:if(r){r=r._reactInternals;t:{if(Gn(r)!==r||r.tag!==1)throw Error(V(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Rt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(V(171))}if(r.tag===1){var a=r.type;if(Rt(a)){r=r0(r,a,l);break e}}r=l}else r=an;return e.context===null?e.context=r:e.pendingContext=r,e=cn(o,s),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),hn(i,e),gn(i,s,o),s}function xf(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function vd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Ef(t,e){vd(t,e),(t=t.alternate)&&vd(t,e)}function Ng(){return null}function _f(t,e,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new kg(t,e,r!=null&&r.hydrate===!0),e=Wt(3,null,null,e===2?7:e===1?3:0),r.current=e,e.stateNode=r,Oa(e),t[_i]=r.current,qh(t.nodeType===8?t.parentNode:t),n)for(t=0;t<n.length;t++){e=n[t];var i=e._getVersion;i=i(e._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[e,i]:r.mutableSourceEagerHydrationData.push(e,i)}this._internalRoot=r}_f.prototype.render=function(t){kl(t,this._internalRoot,null,null)};_f.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;kl(null,t,null,function(){e[_i]=null})};function Yo(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Mg(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var r;r=t.lastChild;)t.removeChild(r);return new _f(t,0,e?{hydrate:!0}:void 0)}function Al(t,e,r,n,i){var o=r._reactRootContainer;if(o){var s=o._internalRoot;if(typeof i=="function"){var l=i;i=function(){var c=xf(s);l.call(c)}}kl(e,s,t,i)}else{if(o=r._reactRootContainer=Mg(r,n),s=o._internalRoot,typeof i=="function"){var a=i;i=function(){var c=xf(s);a.call(c)}}ad(function(){kl(e,s,t,i)})}return xf(s)}oh=function(t){if(t.tag===13){var e=Lt();gn(t,4,e),Ef(t,4)}};Qu=function(t){if(t.tag===13){var e=Lt();gn(t,67108864,e),Ef(t,67108864)}};sh=function(t){if(t.tag===13){var e=Lt(),r=mn(t);gn(t,r,e),Ef(t,r)}};lh=function(t,e){return e()};qu=function(t,e,r){switch(e){case"input":if(Lu(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=Js(n);if(!i)throw Error(V(90));zc(n),Lu(n,i)}}}break;case"textarea":Hc(t,r);break;case"select":e=r.value,e!=null&&ci(t,!!r.multiple,e,!1)}};Gu=ud;Yc=function(t,e,r,n,i){var o=ne;ne|=4;try{return Xn(98,t.bind(null,e,r,n,i))}finally{ne=o,ne===0&&(Ci(),ar())}};Wu=function(){(ne&49)==0&&(pg(),vn())};eh=function(t,e){var r=ne;ne|=2;try{return t(e)}finally{ne=r,ne===0&&(Ci(),ar())}};function yd(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yo(e))throw Error(V(200));return Ag(t,e,null,r)}var Pg={Events:[Co,bi,Js,Zc,Qc,vn,{current:!1}]},es={findFiberByHostInstance:Wn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},Rg={bundleType:es.bundleType,version:es.version,rendererPackageName:es.rendererPackageName,rendererConfig:es.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=nh(t),t===null?null:t.stateNode},findFiberByHostInstance:es.findFiberByHostInstance||Ng,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Nl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nl.isDisabled&&Nl.supportsFiber)try{Aa=Nl.inject(Rg),Jn=Nl}catch{}}
34jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pg;jt.createPortal=yd;jt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(V(188)):Error(V(268,Object.keys(t)));return t=nh(e),t=t===null?null:t.stateNode,t};jt.flushSync=function(t,e){var r=ne;if((r&48)!=0)return t(e);ne|=1;try{if(t)return Xn(99,t.bind(null,e))}finally{ne=r,ar()}};jt.hydrate=function(t,e,r){if(!Yo(e))throw Error(V(200));return Al(null,t,e,!0,r)};jt.render=function(t,e,r){if(!Yo(e))throw Error(V(200));return Al(null,t,e,!1,r)};jt.unmountComponentAtNode=function(t){if(!Yo(t))throw Error(V(40));return t._reactRootContainer?(ad(function(){Al(null,null,t,!1,function(){t._reactRootContainer=null,t[_i]=null})}),!0):!1};jt.unstable_batchedUpdates=ud;jt.unstable_createPortal=function(t,e){return yd(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};jt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Yo(r))throw Error(V(200));if(t==null||t._reactInternals===void 0)throw Error(V(38));return Al(t,e,r,!1,n)};jt.version="17.0.2";function wd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wd)}catch(t){console.error(t)}}wd(),Pc.exports=jt;var Hw=Pc.exports,Tg={exports:{}},ts={};/** @license React v17.0.2
35 * react-jsx-runtime.production.min.js
36 *
37 * Copyright (c) Facebook, Inc. and its affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var Ig=Es.exports,xd=60103;ts.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ed=Symbol.for;xd=Ed("react.element"),ts.Fragment=Ed("react.fragment")}var Cg=Ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Og=Object.prototype.hasOwnProperty,Bg={key:!0,ref:!0,__self:!0,__source:!0};function _d(t,e,r){var n,i={},o=null,s=null;r!==void 0&&(o=""+r),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)Og.call(e,n)&&!Bg.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:xd,type:t,key:o,ref:s,props:i,_owner:Cg.current}}ts.jsx=_d;ts.jsxs=_d;Tg.exports=ts;var bd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Sd=$n.createContext&&$n.createContext(bd),xn=globalThis&&globalThis.__assign||function(){return xn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xn.apply(this,arguments)},Lg=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};function kd(t){return t&&t.map(function(e,r){return $n.createElement(e.tag,xn({key:r},e.attr),kd(e.child))})}function ri(t){return function(e){return $n.createElement(Fg,xn({attr:xn({},t.attr)},e),kd(t.child))}}function Fg(t){var e=function(r){var n=t.attr,i=t.size,o=t.title,s=Lg(t,["attr","size","title"]),l=i||r.size||"1em",a;return r.className&&(a=r.className),t.className&&(a=(a?a+" ":"")+t.className),$n.createElement("svg",xn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:a,style:xn(xn({color:t.color||r.color},r.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&$n.createElement("title",null,o),t.children)};return Sd!==void 0?$n.createElement(Sd.Consumer,null,function(r){return e(r)}):e(bd)}function qw(t){return ri({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 7a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 13a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(t)}function Gw(t){return ri({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]})(t)}function Ww(t){return ri({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}}]})(t)}function Kw(t){return ri({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"}}]})(t)}function Jw(t){return ri({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}},{tag:"path",attr:{d:"M11.412 8.586c.379.38.588.882.588 1.414h2a3.977 3.977 0 0 0-1.174-2.828c-1.514-1.512-4.139-1.512-5.652 0l1.412 1.416c.76-.758 2.07-.756 2.826-.002z"}}]})(t)}function Xw(t){return ri({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0H24V24H0z"}},{tag:"path",attr:{d:"M20.243 4.757c2.262 2.268 2.34 5.88.236 8.236l-8.48 8.492-8.478-8.492c-2.104-2.356-2.025-5.974.236-8.236C5.515 3 8.093 2.56 10.261 3.44L6.343 7.358l1.414 1.415L12 4.53l-.013-.014.014.013c2.349-2.109 5.979-2.039 8.242.228z"}}]}]})(t)}var Ad={exports:{}};(function(t){(function(e,r){function n(S,u){if(!S)throw new Error(u||"Assertion failed")}function i(S,u){S.super_=u;var h=function(){};h.prototype=u.prototype,S.prototype=new h,S.prototype.constructor=S}function o(S,u,h){if(o.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&((u==="le"||u==="be")&&(h=u,u=10),this._init(S||0,u||10,h||"be"))}
vendor: 25,446 bytes, line 41
41typeof e=="object"?e.exports=o:r.BN=o,o.BN=o,o.wordSize=26;var s;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?s=window.Buffer:s=require("buffer").Buffer}catch{}o.isBN=function(u){return u instanceof o?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===o.wordSize&&Array.isArray(u.words)},o.max=function(u,h){return u.cmp(h)>0?u:h},o.min=function(u,h){return u.cmp(h)<0?u:h},o.prototype._init=function(u,h,m){if(typeof u=="number")return this._initNumber(u,h,m);if(typeof u=="object")return this._initArray(u,h,m);h==="hex"&&(h=16),n(h===(h|0)&&h>=2&&h<=36),u=u.toString().replace(/\s+/g,"");var v=0;u[0]==="-"&&(v++,this.negative=1),v<u.length&&(h===16?this._parseHex(u,v,m):(this._parseBase(u,h,v),m==="le"&&this._initArray(this.toArray(),h,m)))},o.prototype._initNumber=function(u,h,m){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(n(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),h,m)},o.prototype._initArray=function(u,h,m){if(n(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x,A,M=0;if(m==="be")for(v=u.length-1,x=0;v>=0;v-=3)A=u[v]|u[v-1]<<8|u[v-2]<<16,this.words[x]|=A<<M&67108863,this.words[x+1]=A>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);else if(m==="le")for(v=0,x=0;v<u.length;v+=3)A=u[v]|u[v+1]<<8|u[v+2]<<16,this.words[x]|=A<<M&67108863,this.words[x+1]=A>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);return this.strip()};function l(S,u){var h=S.charCodeAt(u);return h>=65&&h<=70?h-55:h>=97&&h<=102?h-87:h-48&15}function a(S,u,h){var m=l(S,h);return h-1>=u&&(m|=l(S,h-1)<<4),m}o.prototype._parseHex=function(u,h,m){this.length=Math.ceil((u.length-h)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x=0,A=0,M;if(m==="be")for(v=u.length-1;v>=h;v-=2)M=a(u,h,v)<<x,this.words[A]|=M&67108863,x>=18?(x-=18,A+=1,this.words[A]|=M>>>26):x+=8;else{var w=u.length-h;for(v=w%2==0?h+1:h;v<u.length;v+=2)M=a(u,h,v)<<x,this.words[A]|=M&67108863,x>=18?(x-=18,A+=1,this.words[A]|=M>>>26):x+=8}this.strip()};function c(S,u,h,m){for(var v=0,x=Math.min(S.length,h),A=u;A<x;A++){var M=S.charCodeAt(A)-48;v*=m,M>=49?v+=M-49+10:M>=17?v+=M-17+10:v+=M}return v}o.prototype._parseBase=function(u,h,m){this.words=[0],this.length=1;for(var v=0,x=1;x<=67108863;x*=h)v++;v--,x=x/h|0;for(var A=u.length-m,M=A%v,w=Math.min(A,A-M)+m,f=0,g=m;g<w;g+=v)f=c(u,g,g+v,h),this.imuln(x),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(M!==0){var B=1;for(f=c(u,g,u.length,h),g=0;g<M;g++)B*=h;this.imuln(B),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},o.prototype.copy=function(u){u.words=new Array(this.length);for(var h=0;h<this.length;h++)u.words[h]=this.words[h];u.length=this.length,u.negative=this.negative,u.red=this.red},o.prototype.clone=function(){var u=new o(null);return this.copy(u),u},o.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(u,h){u=u||10,h=h|0||1;var m;if(u===16||u==="hex"){m="";for(var v=0,x=0,A=0;A<this.length;A++){var M=this.words[A],w=((M<<v|x)&16777215).toString(16);x=M>>>24-v&16777215,x!==0||A!==this.length-1?m=p[6-w.length]+w+m:m=w+m,v+=2,v>=26&&(v-=26,A--)}for(x!==0&&(m=x.toString(16)+m);m.length%h!=0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(u===(u|0)&&u>=2&&u<=36){var f=E[u],g=_[u];m="";var B=this.clone();for(B.negative=0;!B.isZero();){var F=B.modn(g).toString(u);B=B.idivn(g),B.isZero()?m=F+m:m=p[f-F.length]+F+m}for(this.isZero()&&(m="0"+m);m.length%h!=0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(u,h){return n(typeof s!="undefined"),this.toArrayLike(s,u,h)},o.prototype.toArray=function(u,h){return this.toArrayLike(Array,u,h)},o.prototype.toArrayLike=function(u,h,m){var v=this.byteLength(),x=m||Math.max(1,v);n(v<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0"),this.strip();var A=h==="le",M=new u(x),w,f,g=this.clone();if(A){for(f=0;!g.isZero();f++)w=g.andln(255),g.iushrn(8),M[f]=w;for(;f<x;f++)M[f]=0}else{for(f=0;f<x-v;f++)M[f]=0;for(f=0;!g.isZero();f++)w=g.andln(255),g.iushrn(8),M[x-f-1]=w}return M},Math.clz32?o.prototype._countBits=function(u){return 32-Math.clz32(u)}:o.prototype._countBits=function(u){var h=u,m=0;return h>=4096&&(m+=13,h>>>=13),h>=64&&(m+=7,h>>>=7),h>=8&&(m+=4,h>>>=4),h>=2&&(m+=2,h>>>=2),m+h},o.prototype._zeroBits=function(u){if(u===0)return 26;var h=u,m=0;return(h&8191)==0&&(m+=13,h>>>=13),(h&127)==0&&(m+=7,h>>>=7),(h&15)==0&&(m+=4,h>>>=4),(h&3)==0&&(m+=2,h>>>=2),(h&1)==0&&m++,m},o.prototype.bitLength=function(){var u=this.words[this.length-1],h=this._countBits(u);return(this.length-1)*26+h};function N(S){for(var u=new Array(S.bitLength()),h=0;h<u.length;h++){var m=h/26|0,v=h%26;u[h]=(S.words[m]&1<<v)>>>v}return u}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,h=0;h<this.length;h++){var m=this._zeroBits(this.words[h]);if(u+=m,m!==26)break}return u},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},o.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var h=0;h<u.length;h++)this.words[h]=this.words[h]|u.words[h];return this.strip()},o.prototype.ior=function(u){return n((this.negative|u.negative)==0),this.iuor(u)},o.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var h;this.length>u.length?h=u:h=this;for(var m=0;m<h.length;m++)this.words[m]=this.words[m]&u.words[m];return this.length=h.length,this.strip()},o.prototype.iand=function(u){return n((this.negative|u.negative)==0),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var h,m;this.length>u.length?(h=this,m=u):(h=u,m=this);for(var v=0;v<m.length;v++)this.words[v]=h.words[v]^m.words[v];if(this!==h)for(;v<h.length;v++)this.words[v]=h.words[v];return this.length=h.length,this.strip()},o.prototype.ixor=function(u){return n((this.negative|u.negative)==0),this.iuxor(u)},o.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){n(typeof u=="number"&&u>=0);var h=Math.ceil(u/26)|0,m=u%26;this._expand(h),m>0&&h--;for(var v=0;v<h;v++)this.words[v]=~this.words[v]&67108863;return m>0&&(this.words[v]=~this.words[v]&67108863>>26-m),this.strip()},o.prototype.notn=function(u){return this.clone().inotn(u)},o.prototype.setn=function(u,h){n(typeof u=="number"&&u>=0);var m=u/26|0,v=u%26;return this._expand(m+1),h?this.words[m]=this.words[m]|1<<v:this.words[m]=this.words[m]&~(1<<v),this.strip()},o.prototype.iadd=function(u){var h;if(this.negative!==0&&u.negative===0)return this.negative=0,h=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,h=this.isub(u),u.negative=1,h._normSign();var m,v;this.length>u.length?(m=this,v=u):(m=u,v=this);for(var x=0,A=0;A<v.length;A++)h=(m.words[A]|0)+(v.words[A]|0)+x,this.words[A]=h&67108863,x=h>>>26;for(;x!==0&&A<m.length;A++)h=(m.words[A]|0)+x,this.words[A]=h&67108863,x=h>>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;A<m.length;A++)this.words[A]=m.words[A];return this},o.prototype.add=function(u){var h;return u.negative!==0&&this.negative===0?(u.negative=0,h=this.sub(u),u.negative^=1,h):u.negative===0&&this.negative!==0?(this.negative=0,h=u.sub(this),this.negative=1,h):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var h=this.iadd(u);return u.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var m=this.cmp(u);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,x;m>0?(v=this,x=u):(v=u,x=this);for(var A=0,M=0;M<x.length;M++)h=(v.words[M]|0)-(x.words[M]|0)+A,A=h>>26,this.words[M]=h&67108863;for(;A!==0&&M<v.length;M++)h=(v.words[M]|0)+A,A=h>>26,this.words[M]=h&67108863;if(A===0&&M<v.length&&v!==this)for(;M<v.length;M++)this.words[M]=v.words[M];return this.length=Math.max(this.length,M),v!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(u){return this.clone().isub(u)};function P(S,u,h){h.negative=u.negative^S.negative;var m=S.length+u.length|0;h.length=m,m=m-1|0;var v=S.words[0]|0,x=u.words[0]|0,A=v*x,M=A&67108863,w=A/67108864|0;h.words[0]=M;for(var f=1;f<m;f++){for(var g=w>>>26,B=w&67108863,F=Math.min(f,u.length-1),q=Math.max(0,f-S.length+1);q<=F;q++){var d=f-q|0;v=S.words[d]|0,x=u.words[q]|0,A=v*x+B,g+=A/67108864|0,B=A&67108863}h.words[f]=B|0,w=g|0}return w!==0?h.words[f]=w|0:h.length--,h.strip()}var O=function(u,h,m){var v=u.words,x=h.words,A=m.words,M=0,w,f,g,B=v[0]|0,F=B&8191,q=B>>>13,d=v[1]|0,C=d&8191,L=d>>>13,U=v[2]|0,z=U&8191,W=U>>>13,ee=v[3]|0,K=ee&8191,se=ee>>>13,re=v[4]|0,ie=re&8191,ve=re>>>13,An=v[5]|0,ye=An&8191,we=An>>>13,Nn=v[6]|0,xe=Nn&8191,Ee=Nn>>>13,Mn=v[7]|0,_e=Mn&8191,be=Mn>>>13,Pn=v[8]|0,Se=Pn&8191,ke=Pn>>>13,Rn=v[9]|0,Ae=Rn&8191,Ne=Rn>>>13,Tn=x[0]|0,Me=Tn&8191,Pe=Tn>>>13,In=x[1]|0,Re=In&8191,Te=In>>>13,Cn=x[2]|0,Ie=Cn&8191,Ce=Cn>>>13,On=x[3]|0,Oe=On&8191,Be=On>>>13,Bn=x[4]|0,Le=Bn&8191,Fe=Bn>>>13,Ln=x[5]|0,Ue=Ln&8191,ze=Ln>>>13,Fn=x[6]|0,De=Fn&8191,$e=Fn>>>13,Un=x[7]|0,je=Un&8191,Ve=Un>>>13,zn=x[8]|0,He=zn&8191,qe=zn>>>13,Dn=x[9]|0,Ge=Dn&8191,We=Dn>>>13;m.negative=u.negative^h.negative,m.length=19,w=Math.imul(F,Me),f=Math.imul(F,Pe),f=f+Math.imul(q,Me)|0,g=Math.imul(q,Pe);var Gr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,w=Math.imul(C,Me),f=Math.imul(C,Pe),f=f+Math.imul(L,Me)|0,g=Math.imul(L,Pe),w=w+Math.imul(F,Re)|0,f=f+Math.imul(F,Te)|0,f=f+Math.imul(q,Re)|0,g=g+Math.imul(q,Te)|0;var Wr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,w=Math.imul(z,Me),f=Math.imul(z,Pe),f=f+Math.imul(W,Me)|0,g=Math.imul(W,Pe),w=w+Math.imul(C,Re)|0,f=f+Math.imul(C,Te)|0,f=f+Math.imul(L,Re)|0,g=g+Math.imul(L,Te)|0,w=w+Math.imul(F,Ie)|0,f=f+Math.imul(F,Ce)|0,f=f+Math.imul(q,Ie)|0,g=g+Math.imul(q,Ce)|0;var Kr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,w=Math.imul(K,Me),f=Math.imul(K,Pe),f=f+Math.imul(se,Me)|0,g=Math.imul(se,Pe),w=w+Math.imul(z,Re)|0,f=f+Math.imul(z,Te)|0,f=f+Math.imul(W,Re)|0,g=g+Math.imul(W,Te)|0,w=w+Math.imul(C,Ie)|0,f=f+Math.imul(C,Ce)|0,f=f+Math.imul(L,Ie)|0,g=g+Math.imul(L,Ce)|0,w=w+Math.imul(F,Oe)|0,f=f+Math.imul(F,Be)|0,f=f+Math.imul(q,Oe)|0,g=g+Math.imul(q,Be)|0;var Jr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,w=Math.imul(ie,Me),f=Math.imul(ie,Pe),f=f+Math.imul(ve,Me)|0,g=Math.imul(ve,Pe),w=w+Math.imul(K,Re)|0,f=f+Math.imul(K,Te)|0,f=f+Math.imul(se,Re)|0,g=g+Math.imul(se,Te)|0,w=w+Math.imul(z,Ie)|0,f=f+Math.imul(z,Ce)|0,f=f+Math.imul(W,Ie)|0,g=g+Math.imul(W,Ce)|0,w=w+Math.imul(C,Oe)|0,f=f+Math.imul(C,Be)|0,f=f+Math.imul(L,Oe)|0,g=g+Math.imul(L,Be)|0,w=w+Math.imul(F,Le)|0,f=f+Math.imul(F,Fe)|0,f=f+Math.imul(q,Le)|0,g=g+Math.imul(q,Fe)|0;var Xr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,w=Math.imul(ye,Me),f=Math.imul(ye,Pe),f=f+Math.imul(we,Me)|0,g=Math.imul(we,Pe),w=w+Math.imul(ie,Re)|0,f=f+Math.imul(ie,Te)|0,f=f+Math.imul(ve,Re)|0,g=g+Math.imul(ve,Te)|0,w=w+Math.imul(K,Ie)|0,f=f+Math.imul(K,Ce)|0,f=f+Math.imul(se,Ie)|0,g=g+Math.imul(se,Ce)|0,w=w+Math.imul(z,Oe)|0,f=f+Math.imul(z,Be)|0,f=f+Math.imul(W,Oe)|0,g=g+Math.imul(W,Be)|0,w=w+Math.imul(C,Le)|0,f=f+Math.imul(C,Fe)|0,f=f+Math.imul(L,Le)|0,g=g+Math.imul(L,Fe)|0,w=w+Math.imul(F,Ue)|0,f=f+Math.imul(F,ze)|0,f=f+Math.imul(q,Ue)|0,g=g+Math.imul(q,ze)|0;var Zr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,w=Math.imul(xe,Me),f=Math.imul(xe,Pe),f=f+Math.imul(Ee,Me)|0,g=Math.imul(Ee,Pe),w=w+Math.imul(ye,Re)|0,f=f+Math.imul(ye,Te)|0,f=f+Math.imul(we,Re)|0,g=g+Math.imul(we,Te)|0,w=w+Math.imul(ie,Ie)|0,f=f+Math.imul(ie,Ce)|0,f=f+Math.imul(ve,Ie)|0,g=g+Math.imul(ve,Ce)|0,w=w+Math.imul(K,Oe)|0,f=f+Math.imul(K,Be)|0,f=f+Math.imul(se,Oe)|0,g=g+Math.imul(se,Be)|0,w=w+Math.imul(z,Le)|0,f=f+Math.imul(z,Fe)|0,f=f+Math.imul(W,Le)|0,g=g+Math.imul(W,Fe)|0,w=w+Math.imul(C,Ue)|0,f=f+Math.imul(C,ze)|0,f=f+Math.imul(L,Ue)|0,g=g+Math.imul(L,ze)|0,w=w+Math.imul(F,De)|0,f=f+Math.imul(F,$e)|0,f=f+Math.imul(q,De)|0,g=g+Math.imul(q,$e)|0;var Qr=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(Qr>>>26)|0,Qr&=67108863,w=Math.imul(_e,Me),f=Math.imul(_e,Pe),f=f+Math.imul(be,Me)|0,g=Math.imul(be,Pe),w=w+Math.imul(xe,Re)|0,f=f+Math.imul(xe,Te)|0,f=f+Math.imul(Ee,Re)|0,g=g+Math.imul(Ee,Te)|0,w=w+Math.imul(ye,Ie)|0,f=f+Math.imul(ye,Ce)|0,f=f+Math.imul(we,Ie)|0,g=g+Math.imul(we,Ce)|0,w=w+Math.imul(ie,Oe)|0,f=f+Math.imul(ie,Be)|0,f=f+Math.imul(ve,Oe)|0,g=g+Math.imul(ve,Be)|0,w=w+Math.imul(K,Le)|0,f=f+Math.imul(K,Fe)|0,f=f+Math.imul(se,Le)|0,g=g+Math.imul(se,Fe)|0,w=w+Math.imul(z,Ue)|0,f=f+Math.imul(z,ze)|0,f=f+Math.imul(W,Ue)|0,g=g+Math.imul(W,ze)|0,w=w+Math.imul(C,De)|0,f=f+Math.imul(C,$e)|0,f=f+Math.imul(L,De)|0,g=g+Math.imul(L,$e)|0,w=w+Math.imul(F,je)|0,f=f+Math.imul(F,Ve)|0,f=f+Math.imul(q,je)|0,g=g+Math.imul(q,Ve)|0;var iu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(iu>>>26)|0,iu&=67108863,w=Math.imul(Se,Me),f=Math.imul(Se,Pe),f=f+Math.imul(ke,Me)|0,g=Math.imul(ke,Pe),w=w+Math.imul(_e,Re)|0,f=f+Math.imul(_e,Te)|0,f=f+Math.imul(be,Re)|0,g=g+Math.imul(be,Te)|0,w=w+Math.imul(xe,Ie)|0,f=f+Math.imul(xe,Ce)|0,f=f+Math.imul(Ee,Ie)|0,g=g+Math.imul(Ee,Ce)|0,w=w+Math.imul(ye,Oe)|0,f=f+Math.imul(ye,Be)|0,f=f+Math.imul(we,Oe)|0,g=g+Math.imul(we,Be)|0,w=w+Math.imul(ie,Le)|0,f=f+Math.imul(ie,Fe)|0,f=f+Math.imul(ve,Le)|0,g=g+Math.imul(ve,Fe)|0,w=w+Math.imul(K,Ue)|0,f=f+Math.imul(K,ze)|0,f=f+Math.imul(se,Ue)|0,g=g+Math.imul(se,ze)|0,w=w+Math.imul(z,De)|0,f=f+Math.imul(z,$e)|0,f=f+Math.imul(W,De)|0,g=g+Math.imul(W,$e)|0,w=w+Math.imul(C,je)|0,f=f+Math.imul(C,Ve)|0,f=f+Math.imul(L,je)|0,g=g+Math.imul(L,Ve)|0,w=w+Math.imul(F,He)|0,f=f+Math.imul(F,qe)|0,f=f+Math.imul(q,He)|0,g=g+Math.imul(q,qe)|0;var ou=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(ou>>>26)|0,ou&=67108863,w=Math.imul(Ae,Me),f=Math.imul(Ae,Pe),f=f+Math.imul(Ne,Me)|0,g=Math.imul(Ne,Pe),w=w+Math.imul(Se,Re)|0,f=f+Math.imul(Se,Te)|0,f=f+Math.imul(ke,Re)|0,g=g+Math.imul(ke,Te)|0,w=w+Math.imul(_e,Ie)|0,f=f+Math.imul(_e,Ce)|0,f=f+Math.imul(be,Ie)|0,g=g+Math.imul(be,Ce)|0,w=w+Math.imul(xe,Oe)|0,f=f+Math.imul(xe,Be)|0,f=f+Math.imul(Ee,Oe)|0,g=g+Math.imul(Ee,Be)|0,w=w+Math.imul(ye,Le)|0,f=f+Math.imul(ye,Fe)|0,f=f+Math.imul(we,Le)|0,g=g+Math.imul(we,Fe)|0,w=w+Math.imul(ie,Ue)|0,f=f+Math.imul(ie,ze)|0,f=f+Math.imul(ve,Ue)|0,g=g+Math.imul(ve,ze)|0,w=w+Math.imul(K,De)|0,f=f+Math.imul(K,$e)|0,f=f+Math.imul(se,De)|0,g=g+Math.imul(se,$e)|0,w=w+Math.imul(z,je)|0,f=f+Math.imul(z,Ve)|0,f=f+Math.imul(W,je)|0,g=g+Math.imul(W,Ve)|0,w=w+Math.imul(C,He)|0,f=f+Math.imul(C,qe)|0,f=f+Math.imul(L,He)|0,g=g+Math.imul(L,qe)|0,w=w+Math.imul(F,Ge)|0,f=f+Math.imul(F,We)|0,f=f+Math.imul(q,Ge)|0,g=g+Math.imul(q,We)|0;var su=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(su>>>26)|0,su&=67108863,w=Math.imul(Ae,Re),f=Math.imul(Ae,Te),f=f+Math.imul(Ne,Re)|0,g=Math.imul(Ne,Te),w=w+Math.imul(Se,Ie)|0,f=f+Math.imul(Se,Ce)|0,f=f+Math.imul(ke,Ie)|0,g=g+Math.imul(ke,Ce)|0,w=w+Math.imul(_e,Oe)|0,f=f+Math.imul(_e,Be)|0,f=f+Math.imul(be,Oe)|0,g=g+Math.imul(be,Be)|0,w=w+Math.imul(xe,Le)|0,f=f+Math.imul(xe,Fe)|0,f=f+Math.imul(Ee,Le)|0,g=g+Math.imul(Ee,Fe)|0,w=w+Math.imul(ye,Ue)|0,f=f+Math.imul(ye,ze)|0,f=f+Math.imul(we,Ue)|0,g=g+Math.imul(we,ze)|0,w=w+Math.imul(ie,De)|0,f=f+Math.imul(ie,$e)|0,f=f+Math.imul(ve,De)|0,g=g+Math.imul(ve,$e)|0,w=w+Math.imul(K,je)|0,f=f+Math.imul(K,Ve)|0,f=f+Math.imul(se,je)|0,g=g+Math.imul(se,Ve)|0,w=w+Math.imul(z,He)|0,f=f+Math.imul(z,qe)|0,f=f+Math.imul(W,He)|0,g=g+Math.imul(W,qe)|0,w=w+Math.imul(C,Ge)|0,f=f+Math.imul(C,We)|0,f=f+Math.imul(L,Ge)|0,g=g+Math.imul(L,We)|0;var lu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(lu>>>26)|0,lu&=67108863,w=Math.imul(Ae,Ie),f=Math.imul(Ae,Ce),f=f+Math.imul(Ne,Ie)|0,g=Math.imul(Ne,Ce),w=w+Math.imul(Se,Oe)|0,f=f+Math.imul(Se,Be)|0,f=f+Math.imul(ke,Oe)|0,g=g+Math.imul(ke,Be)|0,w=w+Math.imul(_e,Le)|0,f=f+Math.imul(_e,Fe)|0,f=f+Math.imul(be,Le)|0,g=g+Math.imul(be,Fe)|0,w=w+Math.imul(xe,Ue)|0,f=f+Math.imul(xe,ze)|0,f=f+Math.imul(Ee,Ue)|0,g=g+Math.imul(Ee,ze)|0,w=w+Math.imul(ye,De)|0,f=f+Math.imul(ye,$e)|0,f=f+Math.imul(we,De)|0,g=g+Math.imul(we,$e)|0,w=w+Math.imul(ie,je)|0,f=f+Math.imul(ie,Ve)|0,f=f+Math.imul(ve,je)|0,g=g+Math.imul(ve,Ve)|0,w=w+Math.imul(K,He)|0,f=f+Math.imul(K,qe)|0,f=f+Math.imul(se,He)|0,g=g+Math.imul(se,qe)|0,w=w+Math.imul(z,Ge)|0,f=f+Math.imul(z,We)|0,f=f+Math.imul(W,Ge)|0,g=g+Math.imul(W,We)|0;var uu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(uu>>>26)|0,uu&=67108863,w=Math.imul(Ae,Oe),f=Math.imul(Ae,Be),f=f+Math.imul(Ne,Oe)|0,g=Math.imul(Ne,Be),w=w+Math.imul(Se,Le)|0,f=f+Math.imul(Se,Fe)|0,f=f+Math.imul(ke,Le)|0,g=g+Math.imul(ke,Fe)|0,w=w+Math.imul(_e,Ue)|0,f=f+Math.imul(_e,ze)|0,f=f+Math.imul(be,Ue)|0,g=g+Math.imul(be,ze)|0,w=w+Math.imul(xe,De)|0,f=f+Math.imul(xe,$e)|0,f=f+Math.imul(Ee,De)|0,g=g+Math.imul(Ee,$e)|0,w=w+Math.imul(ye,je)|0,f=f+Math.imul(ye,Ve)|0,f=f+Math.imul(we,je)|0,g=g+Math.imul(we,Ve)|0,w=w+Math.imul(ie,He)|0,f=f+Math.imul(ie,qe)|0,f=f+Math.imul(ve,He)|0,g=g+Math.imul(ve,qe)|0,w=w+Math.imul(K,Ge)|0,f=f+Math.imul(K,We)|0,f=f+Math.imul(se,Ge)|0,g=g+Math.imul(se,We)|0;var au=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(au>>>26)|0,au&=67108863,w=Math.imul(Ae,Le),f=Math.imul(Ae,Fe),f=f+Math.imul(Ne,Le)|0,g=Math.imul(Ne,Fe),w=w+Math.imul(Se,Ue)|0,f=f+Math.imul(Se,ze)|0,f=f+Math.imul(ke,Ue)|0,g=g+Math.imul(ke,ze)|0,w=w+Math.imul(_e,De)|0,f=f+Math.imul(_e,$e)|0,f=f+Math.imul(be,De)|0,g=g+Math.imul(be,$e)|0,w=w+Math.imul(xe,je)|0,f=f+Math.imul(xe,Ve)|0,f=f+Math.imul(Ee,je)|0,g=g+Math.imul(Ee,Ve)|0,w=w+Math.imul(ye,He)|0,f=f+Math.imul(ye,qe)|0,f=f+Math.imul(we,He)|0,g=g+Math.imul(we,qe)|0,w=w+Math.imul(ie,Ge)|0,f=f+Math.imul(ie,We)|0,f=f+Math.imul(ve,Ge)|0,g=g+Math.imul(ve,We)|0;var fu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(fu>>>26)|0,fu&=67108863,w=Math.imul(Ae,Ue),f=Math.imul(Ae,ze),f=f+Math.imul(Ne,Ue)|0,g=Math.imul(Ne,ze),w=w+Math.imul(Se,De)|0,f=f+Math.imul(Se,$e)|0,f=f+Math.imul(ke,De)|0,g=g+Math.imul(ke,$e)|0,w=w+Math.imul(_e,je)|0,f=f+Math.imul(_e,Ve)|0,f=f+Math.imul(be,je)|0,g=g+Math.imul(be,Ve)|0,w=w+Math.imul(xe,He)|0,f=f+Math.imul(xe,qe)|0,f=f+Math.imul(Ee,He)|0,g=g+Math.imul(Ee,qe)|0,w=w+Math.imul(ye,Ge)|0,f=f+Math.imul(ye,We)|0,f=f+Math.imul(we,Ge)|0,g=g+Math.imul(we,We)|0;var cu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(cu>>>26)|0,cu&=67108863,w=Math.imul(Ae,De),f=Math.imul(Ae,$e),f=f+Math.imul(Ne,De)|0,g=Math.imul(Ne,$e),w=w+Math.imul(Se,je)|0,f=f+Math.imul(Se,Ve)|0,f=f+Math.imul(ke,je)|0,g=g+Math.imul(ke,Ve)|0,w=w+Math.imul(_e,He)|0,f=f+Math.imul(_e,qe)|0,f=f+Math.imul(be,He)|0,g=g+Math.imul(be,qe)|0,w=w+Math.imul(xe,Ge)|0,f=f+Math.imul(xe,We)|0,f=f+Math.imul(Ee,Ge)|0,g=g+Math.imul(Ee,We)|0;var hu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(hu>>>26)|0,hu&=67108863,w=Math.imul(Ae,je),f=Math.imul(Ae,Ve),f=f+Math.imul(Ne,je)|0,g=Math.imul(Ne,Ve),w=w+Math.imul(Se,He)|0,f=f+Math.imul(Se,qe)|0,f=f+Math.imul(ke,He)|0,g=g+Math.imul(ke,qe)|0,w=w+Math.imul(_e,Ge)|0,f=f+Math.imul(_e,We)|0,f=f+Math.imul(be,Ge)|0,g=g+Math.imul(be,We)|0;var du=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(du>>>26)|0,du&=67108863,w=Math.imul(Ae,He),f=Math.imul(Ae,qe),f=f+Math.imul(Ne,He)|0,g=Math.imul(Ne,qe),w=w+Math.imul(Se,Ge)|0,f=f+Math.imul(Se,We)|0,f=f+Math.imul(ke,Ge)|0,g=g+Math.imul(ke,We)|0;var pu=(M+w|0)+((f&8191)<<13)|0;M=(g+(f>>>13)|0)+(pu>>>26)|0,pu&=67108863,w=Math.imul(Ae,Ge),f=Math.imul(Ae,We),f=f+Math.imul(Ne,Ge)|0,g=Math.imul(Ne,We);var mu=(M+w|0)+((f&8191)<<13)|0;return M=(g+(f>>>13)|0)+(mu>>>26)|0,mu&=67108863,A[0]=Gr,A[1]=Wr,A[2]=Kr,A[3]=Jr,A[4]=Xr,A[5]=Zr,A[6]=Qr,A[7]=iu,A[8]=ou,A[9]=su,A[10]=lu,A[11]=uu,A[12]=au,A[13]=fu,A[14]=cu,A[15]=hu,A[16]=du,A[17]=pu,A[18]=mu,M!==0&&(A[19]=M,m.length++),m};Math.imul||(O=P);function b(S,u,h){h.negative=u.negative^S.negative,h.length=S.length+u.length;for(var m=0,v=0,x=0;x<h.length-1;x++){var A=v;v=0;for(var M=m&67108863,w=Math.min(x,u.length-1),f=Math.max(0,x-S.length+1);f<=w;f++){var g=x-f,B=S.words[g]|0,F=u.words[f]|0,q=B*F,d=q&67108863;A=A+(q/67108864|0)|0,d=d+M|0,M=d&67108863,A=A+(d>>>26)|0,v+=A>>>26,A&=67108863}h.words[x]=M,m=A,A=v}return m!==0?h.words[x]=m:h.length--,h.strip()}function y(S,u,h){var m=new k;return m.mulp(S,u,h)}o.prototype.mulTo=function(u,h){var m,v=this.length+u.length;return this.length===10&&u.length===10?m=O(this,u,h):v<63?m=P(this,u,h):v<1024?m=b(this,u,h):m=y(this,u,h),m};function k(S,u){this.x=S,this.y=u}k.prototype.makeRBT=function(u){for(var h=new Array(u),m=o.prototype._countBits(u)-1,v=0;v<u;v++)h[v]=this.revBin(v,m,u);return h},k.prototype.revBin=function(u,h,m){if(u===0||u===m-1)return u;for(var v=0,x=0;x<h;x++)v|=(u&1)<<h-x-1,u>>=1;return v},k.prototype.permute=function(u,h,m,v,x,A){for(var M=0;M<A;M++)v[M]=h[u[M]],x[M]=m[u[M]]},k.prototype.transform=function(u,h,m,v,x,A){this.permute(A,u,h,m,v,x);for(var M=1;M<x;M<<=1)for(var w=M<<1,f=Math.cos(2*Math.PI/w),g=Math.sin(2*Math.PI/w),B=0;B<x;B+=w)for(var F=f,q=g,d=0;d<M;d++){var C=m[B+d],L=v[B+d],U=m[B+d+M],z=v[B+d+M],W=F*U-q*z;z=F*z+q*U,U=W,m[B+d]=C+U,v[B+d]=L+z,m[B+d+M]=C-U,v[B+d+M]=L-z,d!==w&&(W=f*F-g*q,q=f*q+g*F,F=W)}},k.prototype.guessLen13b=function(u,h){var m=Math.max(h,u)|1,v=m&1,x=0;for(m=m/2|0;m;m=m>>>1)x++;return 1<<x+1+v},k.prototype.conjugate=function(u,h,m){if(!(m<=1))for(var v=0;v<m/2;v++){var x=u[v];u[v]=u[m-v-1],u[m-v-1]=x,x=h[v],h[v]=-h[m-v-1],h[m-v-1]=-x}},k.prototype.normalize13b=function(u,h){for(var m=0,v=0;v<h/2;v++){var x=Math.round(u[2*v+1]/h)*8192+Math.round(u[2*v]/h)+m;u[v]=x&67108863,x<67108864?m=0:m=x/67108864|0}return u},k.prototype.convert13b=function(u,h,m,v){for(var x=0,A=0;A<h;A++)x=x+(u[A]|0),m[2*A]=x&8191,x=x>>>13,m[2*A+1]=x&8191,x=x>>>13;for(A=2*h;A<v;++A)m[A]=0;n(x===0),n((x&~8191)==0)},k.prototype.stub=function(u){for(var h=new Array(u),m=0;m<u;m++)h[m]=0;return h},k.prototype.mulp=function(u,h,m){var v=2*this.guessLen13b(u.length,h.length),x=this.makeRBT(v),A=this.stub(v),M=new Array(v),w=new Array(v),f=new Array(v),g=new Array(v),B=new Array(v),F=new Array(v),q=m.words;q.length=v,this.convert13b(u.words,u.length,M,v),this.convert13b(h.words,h.length,g,v),this.transform(M,A,w,f,v,x),this.transform(g,A,B,F,v,x);for(var d=0;d<v;d++){var C=w[d]*B[d]-f[d]*F[d];f[d]=w[d]*F[d]+f[d]*B[d],w[d]=C}return this.conjugate(w,f,v),this.transform(w,f,q,A,v,x),this.conjugate(q,A,v),this.normalize13b(q,v),m.negative=u.negative^h.negative,m.length=u.length+h.length,m.strip()},o.prototype.mul=function(u){var h=new o(null);return h.words=new Array(this.length+u.length),this.mulTo(u,h)},o.prototype.mulf=function(u){var h=new o(null);return h.words=new Array(this.length+u.length),y(this,u,h)},o.prototype.imul=function(u){return this.clone().mulTo(u,this)},o.prototype.imuln=function(u){n(typeof u=="number"),n(u<67108864);for(var h=0,m=0;m<this.length;m++){var v=(this.words[m]|0)*u,x=(v&67108863)+(h&67108863);h>>=26,h+=v/67108864|0,h+=x>>>
vendor: 12,284 bytes, line 41
4126,this.words[m]=x&67108863}return h!==0&&(this.words[m]=h,this.length++),this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var h=N(u);if(h.length===0)return new o(1);for(var m=this,v=0;v<h.length&&h[v]===0;v++,m=m.sqr());if(++v<h.length)for(var x=m.sqr();v<h.length;v++,x=x.sqr())h[v]!==0&&(m=m.mul(x));return m},o.prototype.iushln=function(u){n(typeof u=="number"&&u>=0);var h=u%26,m=(u-h)/26,v=67108863>>>26-h<<26-h,x;if(h!==0){var A=0;for(x=0;x<this.length;x++){var M=this.words[x]&v,w=(this.words[x]|0)-M<<h;this.words[x]=w|A,A=M>>>26-h}A&&(this.words[x]=A,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x<m;x++)this.words[x]=0;this.length+=m}return this.strip()},o.prototype.ishln=function(u){return n(this.negative===0),this.iushln(u)},o.prototype.iushrn=function(u,h,m){n(typeof u=="number"&&u>=0);var v;h?v=(h-h%26)/26:v=0;var x=u%26,A=Math.min((u-x)/26,this.length),M=67108863^67108863>>>x<<x,w=m;if(v-=A,v=Math.max(0,v),w){for(var f=0;f<A;f++)w.words[f]=this.words[f];w.length=A}if(A!==0)if(this.length>A)for(this.length-=A,f=0;f<this.length;f++)this.words[f]=this.words[f+A];else this.words[0]=0,this.length=1;var g=0;for(f=this.length-1;f>=0&&(g!==0||f>=v);f--){var B=this.words[f]|0;this.words[f]=g<<26-x|B>>>x,g=B&M}return w&&g!==0&&(w.words[w.length++]=g),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(u,h,m){return n(this.negative===0),this.iushrn(u,h,m)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){n(typeof u=="number"&&u>=0);var h=u%26,m=(u-h)/26,v=1<<h;if(this.length<=m)return!1;var x=this.words[m];return!!(x&v)},o.prototype.imaskn=function(u){n(typeof u=="number"&&u>=0);var h=u%26,m=(u-h)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(h!==0&&m++,this.length=Math.min(m,this.length),h!==0){var v=67108863^67108863>>>h<<h;this.words[this.length-1]&=v}return this.strip()},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return n(typeof u=="number"),n(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},o.prototype.isubn=function(u){if(n(typeof u=="number"),n(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this.strip()},o.prototype.addn=function(u){return this.clone().iaddn(u)},o.prototype.subn=function(u){return this.clone().isubn(u)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(u,h,m){var v=u.length+m,x;this._expand(v);var A,M=0;for(x=0;x<u.length;x++){A=(this.words[x+m]|0)+M;var w=(u.words[x]|0)*h;A-=w&67108863,M=(A>>26)-(w/67108864|0),this.words[x+m]=A&67108863}for(;x<this.length-m;x++)A=(this.words[x+m]|0)+M,M=A>>26,this.words[x+m]=A&67108863;if(M===0)return this.strip();for(n(M===-1),M=0,x=0;x<this.length;x++)A=-(this.words[x]|0)+M,M=A>>26,this.words[x]=A&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(u,h){var m=this.length-u.length,v=this.clone(),x=u,A=x.words[x.length-1]|0,M=this._countBits(A);m=26-M,m!==0&&(x=x.ushln(m),v.iushln(m),A=x.words[x.length-1]|0);var w=v.length-x.length,f;if(h!=="mod"){f=new o(null),f.length=w+1,f.words=new Array(f.length);for(var g=0;g<f.length;g++)f.words[g]=0}var B=v.clone()._ishlnsubmul(x,1,w);B.negative===0&&(v=B,f&&(f.words[w]=1));for(var F=w-1;F>=0;F--){var q=(v.words[x.length+F]|0)*67108864+(v.words[x.length+F-1]|0);for(q=Math.min(q/A|0,67108863),v._ishlnsubmul(x,q,F);v.negative!==0;)q--,v.negative=0,v._ishlnsubmul(x,1,F),v.isZero()||(v.negative^=1);f&&(f.words[F]=q)}return f&&f.strip(),v.strip(),h!=="div"&&m!==0&&v.iushrn(m),{div:f||null,mod:v}},o.prototype.divmod=function(u,h,m){if(n(!u.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var v,x,A;return this.negative!==0&&u.negative===0?(A=this.neg().divmod(u,h),h!=="mod"&&(v=A.div.neg()),h!=="div"&&(x=A.mod.neg(),m&&x.negative!==0&&x.iadd(u)),{div:v,mod:x}):this.negative===0&&u.negative!==0?(A=this.divmod(u.neg(),h),h!=="mod"&&(v=A.div.neg()),{div:v,mod:A.mod}):(this.negative&u.negative)!=0?(A=this.neg().divmod(u.neg(),h),h!=="div"&&(x=A.mod.neg(),m&&x.negative!==0&&x.isub(u)),{div:A.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:u.length===1?h==="div"?{div:this.divn(u.words[0]),mod:null}:h==="mod"?{div:null,mod:new o(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modn(u.words[0]))}:this._wordDiv(u,h)},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var h=this.divmod(u);if(h.mod.isZero())return h.div;var m=h.div.negative!==0?h.mod.isub(u):h.mod,v=u.ushrn(1),x=u.andln(1),A=m.cmp(v);return A<0||x===1&&A===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},o.prototype.modn=function(u){n(u<=67108863);for(var h=(1<<26)%u,m=0,v=this.length-1;v>=0;v--)m=(h*m+(this.words[v]|0))%u;return m},o.prototype.idivn=function(u){n(u<=67108863);for(var h=0,m=this.length-1;m>=0;m--){var v=(this.words[m]|0)+h*67108864;this.words[m]=v/u|0,h=v%u}return this.strip()},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){n(u.negative===0),n(!u.isZero());var h=this,m=u.clone();h.negative!==0?h=h.umod(u):h=h.clone();for(var v=new o(1),x=new o(0),A=new o(0),M=new o(1),w=0;h.isEven()&&m.isEven();)h.iushrn(1),m.iushrn(1),++w;for(var f=m.clone(),g=h.clone();!h.isZero();){for(var B=0,F=1;(h.words[0]&F)==0&&B<26;++B,F<<=1);if(B>0)for(h.iushrn(B);B-- >0;)(v.isOdd()||x.isOdd())&&(v.iadd(f),x.isub(g)),v.iushrn(1),x.iushrn(1);for(var q=0,d=1;(m.words[0]&d)==0&&q<26;++q,d<<=1);if(q>0)for(m.iushrn(q);q-- >0;)(A.isOdd()||M.isOdd())&&(A.iadd(f),M.isub(g)),A.iushrn(1),M.iushrn(1);h.cmp(m)>=0?(h.isub(m),v.isub(A),x.isub(M)):(m.isub(h),A.isub(v),M.isub(x))}return{a:A,b:M,gcd:m.iushln(w)}},o.prototype._invmp=function(u){n(u.negative===0),n(!u.isZero());var h=this,m=u.clone();h.negative!==0?h=h.umod(u):h=h.clone();for(var v=new o(1),x=new o(0),A=m.clone();h.cmpn(1)>0&&m.cmpn(1)>0;){for(var M=0,w=1;(h.words[0]&w)==0&&M<26;++M,w<<=1);if(M>0)for(h.iushrn(M);M-- >0;)v.isOdd()&&v.iadd(A),v.iushrn(1);for(var f=0,g=1;(m.words[0]&g)==0&&f<26;++f,g<<=1);if(f>0)for(m.iushrn(f);f-- >0;)x.isOdd()&&x.iadd(A),x.iushrn(1);h.cmp(m)>=0?(h.isub(m),v.isub(x)):(m.isub(h),x.isub(v))}var B;return h.cmpn(1)===0?B=v:B=x,B.cmpn(0)<0&&B.iadd(u),B},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var h=this.clone(),m=u.clone();h.negative=0,m.negative=0;for(var v=0;h.isEven()&&m.isEven();v++)h.iushrn(1),m.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=h.cmp(m);if(x<0){var A=h;h=m,m=A}else if(x===0||m.cmpn(1)===0)break;h.isub(m)}while(!0);return m.iushln(v)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return(this.words[0]&1)==0},o.prototype.isOdd=function(){return(this.words[0]&1)==1},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){n(typeof u=="number");var h=u%26,m=(u-h)/26,v=1<<h;if(this.length<=m)return this._expand(m+1),this.words[m]|=v,this;for(var x=v,A=m;x!==0&&A<this.length;A++){var M=this.words[A]|0;M+=x,x=M>>>26,M&=67108863,this.words[A]=M}return x!==0&&(this.words[A]=x,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(u){var h=u<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this.strip();var m;if(this.length>1)m=1;else{h&&(u=-u),n(u<=67108863,"Number is too big");var v=this.words[0]|0;m=v===u?0:v<u?-1:1}return this.negative!==0?-m|0:m},o.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var h=this.ucmp(u);return this.negative!==0?-h|0:h},o.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var h=0,m=this.length-1;m>=0;m--){var v=this.words[m]|0,x=u.words[m]|0;if(v!==x){v<x?h=-1:v>x&&(h=1);break}}return h},o.prototype.gtn=function(u){return this.cmpn(u)===1},o.prototype.gt=function(u){return this.cmp(u)===1},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return this.cmpn(u)===-1},o.prototype.lt=function(u){return this.cmp(u)===-1},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return this.cmpn(u)===0},o.prototype.eq=function(u){return this.cmp(u)===0},o.red=function(u){return new j(u)},o.prototype.toRed=function(u){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return n(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return n(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var R={k256:null,p224:null,p192:null,p25519:null};function T(S,u){this.name=S,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}T.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},T.prototype.ireduce=function(u){var h=u,m;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),m=h.bitLength();while(m>this.n);var v=m<this.n?-1:h.ucmp(this.p);return v===0?(h.words[0]=0,h.length=1):v>
vendor: 5,873 bytes, line 41
410?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},T.prototype.split=function(u,h){u.iushrn(this.n,0,h)},T.prototype.imulK=function(u){return u.imul(this.k)};function H(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(H,T),H.prototype.split=function(u,h){for(var m=4194303,v=Math.min(u.length,9),x=0;x<v;x++)h.words[x]=u.words[x];if(h.length=v,u.length<=9){u.words[0]=0,u.length=1;return}var A=u.words[9];for(h.words[h.length++]=A&m,x=10;x<u.length;x++){var M=u.words[x]|0;u.words[x-10]=(M&m)<<4|A>>>22,A=M}A>>>=22,u.words[x-10]=A,A===0&&u.length>10?u.length-=10:u.length-=9},H.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var h=0,m=0;m<u.length;m++){var v=u.words[m]|0;h+=v*977,u.words[m]=h&67108863,h=v*64+(h/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function D(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(D,T);function J(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(J,T);function Q(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(Q,T),Q.prototype.imulK=function(u){for(var h=0,m=0;m<u.length;m++){var v=(u.words[m]|0)*19+h,x=v&67108863;v>>>=26,u.words[m]=x,h=v}return h!==0&&(u.words[u.length++]=h),u},o._prime=function(u){if(R[u])return R[u];var h;if(u==="k256")h=new H;else if(u==="p224")h=new D;else if(u==="p192")h=new J;else if(u==="p25519")h=new Q;else throw new Error("Unknown prime "+u);return R[u]=h,h};function j(S){if(typeof S=="string"){var u=o._prime(S);this.m=u.p,this.prime=u}else n(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}j.prototype._verify1=function(u){n(u.negative===0,"red works only with positives"),n(u.red,"red works only with red numbers")},j.prototype._verify2=function(u,h){n((u.negative|h.negative)==0,"red works only with positives"),n(u.red&&u.red===h.red,"red works only with red numbers")},j.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},j.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},j.prototype.add=function(u,h){this._verify2(u,h);var m=u.add(h);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},j.prototype.iadd=function(u,h){this._verify2(u,h);var m=u.iadd(h);return m.cmp(this.m)>=0&&m.isub(this.m),m},j.prototype.sub=function(u,h){this._verify2(u,h);var m=u.sub(h);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},j.prototype.isub=function(u,h){this._verify2(u,h);var m=u.isub(h);return m.cmpn(0)<0&&m.iadd(this.m),m},j.prototype.shl=function(u,h){return this._verify1(u),this.imod(u.ushln(h))},j.prototype.imul=function(u,h){return this._verify2(u,h),this.imod(u.imul(h))},j.prototype.mul=function(u,h){return this._verify2(u,h),this.imod(u.mul(h))},j.prototype.isqr=function(u){return this.imul(u,u.clone())},j.prototype.sqr=function(u){return this.mul(u,u)},j.prototype.sqrt=function(u){if(u.isZero())return u.clone();var h=this.m.andln(3);if(n(h%2==1),h===3){var m=this.m.add(new o(1)).iushrn(2);return this.pow(u,m)}for(var v=this.m.subn(1),x=0;!v.isZero()&&v.andln(1)===0;)x++,v.iushrn(1);n(!v.isZero());var A=new o(1).toRed(this),M=A.redNeg(),w=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,w).cmp(M)!==0;)f.redIAdd(M);for(var g=this.pow(f,v),B=this.pow(u,v.addn(1).iushrn(1)),F=this.pow(u,v),q=x;F.cmp(A)!==0;){for(var d=F,C=0;d.cmp(A)!==0;C++)d=d.redSqr();n(C<q);var L=this.pow(g,new o(1).iushln(q-C-1));B=B.redMul(L),g=L.redSqr(),F=F.redMul(g),q=C}return B},j.prototype.invm=function(u){var h=u._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},j.prototype.pow=function(u,h){if(h.isZero())return new o(1).toRed(this);if(h.cmpn(1)===0)return u.clone();var m=4,v=new Array(1<<m);v[0]=new o(1).toRed(this),v[1]=u;for(var x=2;x<v.length;x++)v[x]=this.mul(v[x-1],u);var A=v[0],M=0,w=0,f=h.bitLength()%26;for(f===0&&(f=26),x=h.length-1;x>=0;x--){for(var g=h.words[x],B=f-1;B>=0;B--){var F=g>>B&1;if(A!==v[0]&&(A=this.sqr(A)),F===0&&M===0){w=0;continue}M<<=1,M|=F,w++,!(w!==m&&(x!==0||B!==0))&&(A=this.mul(A,v[M]),w=0,M=0)}f=26}return A},j.prototype.convertTo=function(u){var h=u.umod(this.m);return h===u?h.clone():h},j.prototype.convertFrom=function(u){var h=u.clone();return h.red=null,h},o.mont=function(u){return new pe(u)};function pe(S){j.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(pe,j),pe.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},pe.prototype.convertFrom=function(u){var h=this.imod(u.mul(this.rinv));return h.red=null,h},pe.prototype.imul=function(u,h){if(u.isZero()||h.isZero())return u.words[0]=0,u.length=1,u;var m=u.imul(h),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),A=x;return x.cmp(this.m)>=0?A=x.isub(this.m):x.cmpn(0)<0&&(A=x.iadd(this.m)),A._forceRed(this)},pe.prototype.mul=function(u,h){if(u.isZero()||h.isZero())return new o(0)._forceRed(this);var m=u.mul(h),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),A=x;return x.cmp(this.m)>=0?A=x.isub(this.m):x.cmpn(0)<0&&(A=x.iadd(this.m)),A._forceRed(this)},pe.prototype.invm=function(u){var h=this.imod(u._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(t,cc)})(Ad);var oe=Ad.exports;const Ug="logger/5.5.0";let Nd=!1,Md=!1;const Ml={debug:1,default:2,info:2,warning:3,error:4,off:5};let Pd=Ml.default,bf=null;function zg(){try{const t=[];
41if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const Rd=zg();var Sf;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Sf||(Sf={}));var kf;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED"})(kf||(kf={}));const Td="0123456789abcdef";class I{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Ml[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Pd>Ml[n])&&console.log.apply(console,r)}debug(...e){this._log(I.levels.DEBUG,e)}info(...e){this._log(I.levels.INFO,e)}warn(...e){this._log(I.levels.WARNING,e)}makeError(e,r,n){if(Md)return this.makeError("censored error",r,{});r||(r=I.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const a=n[l];try{if(a instanceof Uint8Array){let c="";for(let p=0;p<a.length;p++)c+=Td[a[p]>>4],c+=Td[a[p]&15];i.push(l+"=Uint8Array(0x"+c+")")}else i.push(l+"="+JSON.stringify(a))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const o=e;i.length&&(e+=" ("+i.join(", ")+")");const s=new Error(e);return s.reason=o,s.code=r,Object.keys(n).forEach(function(l){s[l]=n[l]}),s}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,I.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){Rd&&this.throwError("platform missing String.prototype.normalize",I.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Rd})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,I.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,I.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",e<r&&this.throwError("missing argument"+n,I.errors.MISSING_ARGUMENT,{count:e,expectedCount:r}),e>r&&this.throwError("too many arguments"+n,I.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",I.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",I.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",I.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return bf||(bf=new I(Ug)),bf}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",I.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Nd){if(!e)return;this.globalLogger().throwError("error censorship permanent",I.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Md=!!e,Nd=!!r}static setLogLevel(e){const r=Ml[e.toLowerCase()];if(r==null){I.globalLogger().warn("invalid log level - "+e);return}Pd=r}static from(e){return new I(e)}}I.errors=kf;I.levels=Sf;const Dg="bytes/5.5.0",rt=new I(Dg);function Id(t){return!!t.toHexString}function Fi(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Fi(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Af(t){return he(t)&&!(t.length%2)||Ui(t)}function Cd(t){return typeof t=="number"&&t==t&&t%1==0}function Ui(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;
41if(typeof t=="string"||!Cd(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){const r=t[e];if(!Cd(r)||r<0||r>=256)return!1}return!0}function te(t,e){if(e||(e={}),typeof t=="number"){rt.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),Fi(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Id(t)&&(t=t.toHexString()),he(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":rt.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;i<r.length;i+=2)n.push(parseInt(r.substring(i,i+2),16));return Fi(new Uint8Array(n))}return Ui(t)?Fi(new Uint8Array(t)):rt.throwArgumentError("invalid arrayify value","value",t)}function Kt(t){const e=t.map(i=>te(i)),r=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(r);return e.reduce((i,o)=>(n.set(o,i),i+o.length),0),Fi(n)}function zi(t){let e=te(t);if(e.length===0)return e;let r=0;for(;r<e.length&&e[r]===0;)r++;return r&&(e=e.slice(r)),e}function $g(t,e){t=te(t),t.length>e&&rt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),Fi(r)}function he(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Nf="0123456789abcdef";function Y(t,e){if(e||(e={}),typeof t=="number"){rt.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Nf[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),Id(t))return t.toHexString();if(he(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":rt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Ui(t)){let r="0x";for(let n=0;n<t.length;n++){let i=t[n];r+=Nf[(i&240)>>4]+Nf[i&15]}return r}return rt.throwArgumentError("invalid hexlify value","value",t)}function rs(t){if(typeof t!="string")t=Y(t);else if(!he(t)||t.length%2)return null;return(t.length-2)/2}function Lr(t,e,r){return typeof t!="string"?t=Y(t):(!he(t)||t.length%2)&&rt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function rr(t){let e="0x";return t.forEach(r=>{e+=Y(r).substring(2)}),e}function Mf(t){const e=jg(Y(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function jg(t){typeof t!="string"&&(t=Y(t)),he(t)||rt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e<t.length&&t[e]==="0";)e++;return"0x"+t.substring(e)}function Qe(t,e){for(typeof t!="string"?t=Y(t):he(t)||rt.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&rt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Pl(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(Af(t)){const r=te(t);r.length!==65&&rt.throwArgumentError("invalid signature string; must be 65 bytes","signature",t),e.r=Y(r.slice(0,32)),e.s=Y(r.slice(32,64)),e.v=r[64],e.v<27&&(e.v===0||e.v===1?e.v+=27:rt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Y(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=$g(te(e._vs),32);e._vs=Y(i);const o=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=o:e.recoveryParam!==o&&rt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const s=Y(i);e.s==null?e.s=s:e.s!==s&&rt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?rt.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&rt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!he(e.r)?rt.throwArgumentError("signature missing or invalid r","signature",t):e.r=Qe(e.r,32),e.s==null||!he(e.s
41)?rt.throwArgumentError("signature missing or invalid s","signature",t):e.s=Qe(e.s,32);const r=te(e.s);r[0]>=128&&rt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=Y(r);e._vs&&(he(e._vs)||rt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Qe(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&rt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e}const Od="bignumber/5.5.0";var Rl=oe.BN;const pr=new I(Od),Pf={},Bd=9007199254740991;function Vg(t){return t!=null&&(G.isBigNumber(t)||typeof t=="number"&&t%1==0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||he(t)||typeof t=="bigint"||Ui(t))}let Ld=!1;class G{constructor(e,r){pr.checkNew(new.target,G),e!==Pf&&pr.throwError("cannot call constructor directly; use BigNumber.from",I.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Ct(ue(this).fromTwos(e))}toTwos(e){return Ct(ue(this).toTwos(e))}abs(){return this._hex[0]==="-"?G.from(this._hex.substring(1)):this}add(e){return Ct(ue(this).add(ue(e)))}sub(e){return Ct(ue(this).sub(ue(e)))}div(e){return G.from(e).isZero()&&Jt("division by zero","div"),Ct(ue(this).div(ue(e)))}mul(e){return Ct(ue(this).mul(ue(e)))}mod(e){const r=ue(e);return r.isNeg()&&Jt("cannot modulo negative values","mod"),Ct(ue(this).umod(r))}pow(e){const r=ue(e);return r.isNeg()&&Jt("cannot raise to negative values","pow"),Ct(ue(this).pow(r))}and(e){const r=ue(e);return(this.isNegative()||r.isNeg())&&Jt("cannot 'and' negative values","and"),Ct(ue(this).and(r))}or(e){const r=ue(e);return(this.isNegative()||r.isNeg())&&Jt("cannot 'or' negative values","or"),Ct(ue(this).or(r))}xor(e){const r=ue(e);return(this.isNegative()||r.isNeg())&&Jt("cannot 'xor' negative values","xor"),Ct(ue(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&Jt("cannot mask negative values","mask"),Ct(ue(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Jt("cannot shift negative values","shl"),Ct(ue(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Jt("cannot shift negative values","shr"),Ct(ue(this).shrn(e))}eq(e){return ue(this).eq(ue(e))}lt(e){return ue(this).lt(ue(e))}lte(e){return ue(this).lte(ue(e))}gt(e){return ue(this).gt(ue(e))}gte(e){return ue(this).gte(ue(e))}isNegative(){return this._hex[0]==="-"}isZero(){return ue(this).isZero()}toNumber(){try{return ue(this).toNumber()}catch{Jt("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return pr.throwError("this platform does not support BigInt",I.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Ld||(Ld=!0,pr.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?pr.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",I.errors.UNEXPECTED_ARGUMENT,{}):pr.throwError("BigNumber.toString does not accept parameters",I.errors.UNEXPECTED_ARGUMENT,{})),ue(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof G)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new G(Pf,ns(e)):e.match(/^-?[0-9]+$/)?new G(Pf,ns(new Rl(e))):pr.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Jt("underflow","BigNumber.from",e),(e>=Bd||e<=-Bd)&&Jt("overflow","BigNumber.from",e),G.from(String(e));const r=e;if(typeof r=="bigint")return G.from(r.toString());if(Ui(r))return G.from(Y(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return G.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(he(n)||n[0]==="-"&&he(n.substring(1))))return G.from(n)}return pr.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function ns(t){if(typeof t!="string")return ns(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&pr.throwArgumentError("invalid hex","value",t),t=ns(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function Ct(t){return G.from(ns(t))}function ue(t){const e=G.from(t).toHexString();return e[0]==="-"?new Rl("-"+e.substring(3),16):new Rl(e.substring(2),16)}function Jt(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),pr.throwError(t,I.errors.NUMERIC_FAULT,n)}function Hg(t){return new Rl(t,36).toString(16)}const St=new I(Od),is={},Fd=G.from(0),Ud=G.from(-1);function zd(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),St.throwError(t,I.errors.NUMERIC_FAULT,i)}let os="0";for(;os.length<256;)os+=os;function Rf(t){if(typeof t!="number")try{t=G.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+os.substring(0,t):St.throwArgumentError("invalid decimal size","decimals",t)}function Tf(t,e){e==null&&(e=0);const r=Rf(e);t=G.from(t);const n=t.lt(Fd);n&&(t=t.mul(Ud));let i=t.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];const o=t.div(r).toString();return r.length===1?t=o:t=o+"."+i,n&&(t="-"+t),t}function mr(t,e){e==null&&(e=0);const r=Rf(e);(typeof t!="string"||!t.match(/^-?[0-9.]+$/))&&St.throwArgumentError("invalid decimal value","value",t);const n=t.substring(0,1)==="-";n&&(t=t.substring(1)),t==="."&&St.throwArgumentError("missing value","value",t);const i=t.split(".");i.length>2&&St.throwArgumentError("too many decimal points","value",t);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>r.length-1&&zd("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length<r.length-1;)s+="0";const l=G.from(o),a=G.from(s);let c=l.mul(r).add(a);return n&&(c=c.mul(Ud)),c}class Di{constructor(e,r,n,i){e!==is&&St.throwError("cannot use FixedFormat constructor; use FixedFormat.from",I.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=Rf(i),Object.freeze(this)}static from(e){if(e instanceof Di)return e;typeof e=="number"&&(e=`fixed128x${e}`);let r=!0,n=128,i=18;if(typeof e=="string"){if(e!=="fixed")if(e==="ufixed")r=!1;else{const o=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||St.throwArgumentError("invalid fixed format","format",e),r=o[1]!=="u",n=parseInt(o[2]),i=parseInt(o[3])}}else if(e){const o=(s,l,a)=>e[s]==null?a:(typeof e[s]!==l&&St.throwArgumentError("invalid fixed format ("+s+" not "+l+")","format."+s,e[s]),e[s]);r=o("signed","boolean",r),n=o("width","number",n),i=o("decimals","number",i)}return n%8&&St.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&St.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new Di(is,r,n,i)}}class ft{constructor(e,r,n,i){St.checkNew(new.target,ft),e!==is&&St.throwError("cannot use FixedNumber constructor; use FixedNumber.from",I.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&St.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=mr(this._value,this.format.decimals),n=mr(e._value,e.format.decimals);return ft.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=mr(this._value,this.format.decimals),n=mr(e._value,e.format.decimals);return ft.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=mr(this._value,this.format.decimals),n=mr(e._value,e.format.decimals);return ft.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=mr(this._value,this.format.decimals),n=mr(e._value,e.format.decimals);return ft.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=ft.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Dd.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=ft.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Dd.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&St.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=ft.from("1"+os.substring(0,e),this.format),i=qg.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&St.throwArgumentError("invalid byte width","width",e);const r=G.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Qe(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return ft.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Vg(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),ft.fromString(Tf(e,r),Di.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=Di.from(r),i=mr(e,n.decimals);!n.signed&&i.lt(Fd)&&zd("unsigned value cannot be negative","overflow","value",e);let o=null;n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Qe(o,n.width/8));const s=Tf(i,n.decimals);return new ft(is,o,s,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=Di.from(r);
41if(te(e).length>n.width/8)throw new Error("overflow");let i=G.from(e);n.signed&&(i=i.fromTwos(n.width));const o=i.toTwos((n.signed?0:1)+n.width).toHexString(),s=Tf(i,n.decimals);return new ft(is,o,s,n)}static from(e,r){if(typeof e=="string")return ft.fromString(e,r);if(Ui(e))return ft.fromBytes(e,r);try{return ft.fromValue(e,0,r)}catch(n){if(n.code!==I.errors.INVALID_ARGUMENT)throw n}return St.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const Dd=ft.from(1),qg=ft.from("0.5"),Gg="properties/5.5.0";var Wg=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const Tl=new I(Gg);function $(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function gr(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function ot(t){return Wg(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(o=>({key:n,value:o}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function Kg(t,e){(!t||typeof t!="object")&&Tl.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Tl.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ct(t){const e={};for(const r in t)e[r]=t[r];return e}const Jg={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function $d(t){if(t==null||Jg[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r<e.length;r++){let n=null;try{n=t[e[r]]}catch{continue}if(!$d(n))return!1}return!0}return Tl.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Xg(t){if($d(t))return t;if(Array.isArray(t))return Object.freeze(t.map(e=>Fr(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&$(e,r,Fr(n))}return e}return Tl.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function Fr(t){return Xg(t)}class ss{constructor(e){for(const r in e)this[r]=Fr(e[r])}}const ls="abi/5.5.0",fe=new I(ls),ni={};let jd={calldata:!0,memory:!0,storage:!0},Zg={calldata:!0,memory:!0};function Il(t,e){if(t==="bytes"||t==="string"){if(jd[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&Zg[e])return!0;return(jd[e]||e==="payable")&&fe.throwArgumentError("invalid modifier","name",e),!1}function Qg(t,e){let r=t;function n(l){fe.throwArgumentError(`unexpected character at position ${l}`,"param",t)}t=t.replace(/\s/g," ");function i(l){let a={type:"",name:"",parent:l,state:{allowType:!0}};return e&&(a.indexed=!1),a}let o={type:"",name:"",state:{allowType:!0}},s=o;for(let l=0;l<t.length;l++){let a=t[l];switch(a){case"(":s.state.allowType&&s.type===""?s.type="tuple":s.state.allowParams||n(l),s.state.allowType=!1,s.type=$i(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,s.name==="indexed"&&(e||n(l),s.indexed=!0,s.name=""),Il(s.type,s.name)&&(s.name=""),s.type=$i(s.type);let c=s;s=s.parent,s||n(l),delete c.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,s.name==="indexed"&&(e||n(l),s.indexed=!0,s.name=""),Il(s.type,s.name)&&(s.name=""),s.type=$i(s.type);let p=i(s.parent);s.parent.components.push(p),delete s.parent,s=p;break;case" ":s.state.allowType&&s.type!==""&&(s.type=$i(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&s.name!==""&&(s.name==="indexed"?(e||n(l),s.indexed&&n(l),s.indexed=!0,s.name=""):Il(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(l),s.type+=a,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(l),s.type+=a,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=a,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=a,delete s.state.allowArray):s.state.readArray?s.type+=a:n(l)}}return s.parent&&fe.throwArgumentError("unexpected eof","param",t),delete o.state,s.name==="indexed"?(e||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):Il(s.type,s.name)&&(s.name=""),o.type=$i(o.type),o}function Cl(t,e){for(let r in e)$(t,r,e[r])}const de=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Yg=new RegExp(/^(.*)\[([0-9]*)\]$/);class ht{constructor(e,r){e!==ni&&fe.throwError("use fromString",I.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Cl(this,r);let n=this.type.match(Yg);n?Cl(this,{arrayLength:parseInt(n[2]||"-1"),arrayChildren:ht.fromObject({type:n[1],components:this.components}),baseType:"array"}):Cl(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.t
41ype}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=de.sighash),de[e]||fe.throwArgumentError("invalid format type","format",e),e===de.json){let n={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(n.indexed=this.indexed),this.components&&(n.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==de.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===de.full?", ":",")+")"):r+=this.type,e!==de.sighash&&(this.indexed===!0&&(r+=" indexed"),e===de.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?ht.fromString(e,r):ht.fromObject(e)}static fromObject(e){return ht.isParamType(e)?e:new ht(ni,{name:e.name||null,type:$i(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(ht.fromObject):null})}static fromString(e,r){function n(i){return ht.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(Qg(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function us(t,e){return tv(t).map(r=>ht.fromString(r,e))}class Ur{constructor(e,r){e!==ni&&fe.throwError("use a static from method",I.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Cl(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return Ur.isFragment(e)?e:typeof e=="string"?Ur.fromString(e):Ur.fromObject(e)}static fromObject(e){if(Ur.isFragment(e))return e;switch(e.type){case"function":return yr.fromObject(e);case"event":return zr.fromObject(e);case"constructor":return vr.fromObject(e);case"error":return En.fromObject(e);case"fallback":case"receive":return null}return fe.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?zr.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?yr.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?vr.fromString(e.trim()):e.split(" ")[0]==="error"?En.fromString(e.substring(5).trim()):fe.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class zr extends Ur{format(e){if(e||(e=de.sighash),de[e]||fe.throwArgumentError("invalid format type","format",e),e===de.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==de.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===de.full?", ":",")+") ",e!==de.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?zr.fromString(e):zr.fromObject(e)}static fromObject(e){if(zr.isEventFragment(e))return e;e.type!=="event"&&fe.throwArgumentError("invalid event object","value",e);const r={name:as(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(ht.fromObject):[],type:"event"};return new zr(ni,r)}static fromString(e){let r=e.match(fs);r||fe.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:fe.warn("unknown modifier: "+i)}}),zr.fromObject({name:r[1].trim(),anonymous:n,inputs:us(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function Vd(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&fe.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||fe.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=G.from(r[1]),r[0]):t}function Hd(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function qd(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&fe.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&fe.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&fe.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&fe.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&fe.throwArgumentError("unable to determine stateMutability","value",t),e}class vr extends Ur{format(e){if(e||(e=de.sighash),de[e]||fe.throwArgumentError("invalid format type","format",e),e===de.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===de.sighash&&fe.throwError("cannot format a constructor for sighash",I.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===de.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?vr.fromString(e):vr.fromObject(e)}static fromObject(e){if(vr.isConstructorFragment(e))return e;e.type!=="constructor"&&fe.throwArgumentError("invalid constructor object","value",e);let r=qd(e);r.constant&&fe.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(ht.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?G.from(e.gas):null};return new vr(ni,n)}static fromString(e){let r={type:"constructor"};e=Vd(e,r);let n=e.match(fs);return(!n||n[1].trim()!=="constructor")&&fe.throwArgumentError("invalid constructor string","value",e),r.inputs=us(n[2].trim(),!1),Hd(n[3].trim(),r),vr.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}
41class yr extends vr{format(e){if(e||(e=de.sighash),de[e]||fe.throwArgumentError("invalid format type","format",e),e===de.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==de.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===de.full?", ":",")+") ",e!==de.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?yr.fromString(e):yr.fromObject(e)}static fromObject(e){if(yr.isFunctionFragment(e))return e;e.type!=="function"&&fe.throwArgumentError("invalid function object","value",e);let r=qd(e);const n={type:e.type,name:as(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(ht.fromObject):[],outputs:e.outputs?e.outputs.map(ht.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?G.from(e.gas):null};return new yr(ni,n)}static fromString(e){let r={type:"function"};e=Vd(e,r);let n=e.split(" returns ");n.length>2&&fe.throwArgumentError("invalid function string","value",e);let i=n[0].match(fs);if(i||fe.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&as(r.name),r.inputs=us(i[2],!1),Hd(i[3].trim(),r),n.length>1){let o=n[1].match(fs);(o[1].trim()!=""||o[3].trim()!="")&&fe.throwArgumentError("unexpected tokens","value",e),r.outputs=us(o[2],!1)}else r.outputs=[];return yr.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function Gd(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&fe.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class En extends Ur{format(e){if(e||(e=de.sighash),de[e]||fe.throwArgumentError("invalid format type","format",e),e===de.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==de.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===de.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?En.fromString(e):En.fromObject(e)}static fromObject(e){if(En.isErrorFragment(e))return e;e.type!=="error"&&fe.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:as(e.name),inputs:e.inputs?e.inputs.map(ht.fromObject):[]};return Gd(new En(ni,r))}static fromString(e){let r={type:"error"},n=e.match(fs);return n||fe.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&as(r.name),r.inputs=us(n[2],!1),Gd(En.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function $i(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const ev=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function as(t){return(!t||!t.match(ev))&&fe.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const fs=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function tv(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let o=t[i];o===","&&n===0?(e.push(r),r=""):(r+=o,o==="("?n++:o===")"&&(n--,n===-1&&fe.throwArgumentError("unbalanced parenthesis","value",t)))}return r&&e.push(r),e}const If=new I(ls);function rv(t){const e=[],r=function(n,i){if(!!Array.isArray(i))for(let o in i){const s=n.slice();s.push(o);try{r(s,i[o])}catch(l){e.push({path:s,error:l})}}};return r([],t),e}class Dr{constructor(e,r,n,i){this.name=e,this.type=r,this.localName=n,this.dynamic=i}_throwError(e,r){If.throwArgumentError(e,this.localName,r)}}class Cf{constructor(e){$(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return rr(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Kt(e._data))}writeBytes(e){let r=te(e);const n=r.length%this.wordSize;
vendor: 4,934 bytes, lines 41-48
41return n&&(r=Kt([r,this._padding.slice(n)])),this._writeData(r)}_getValue(e){let r=te(G.from(e));return r.length>this.wordSize&&If.throwError("value out-of-bounds",I.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Kt([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class Ol{constructor(e,r,n,i){$(this,"_data",te(e)),$(this,"wordSize",r||32),$(this,"_coerceFunc",n),$(this,"allowLoose",i),this._offset=0}get data(){return Y(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):Ol.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:If.throwError("data out-of-bounds",I.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new Ol(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return G.from(this.readBytes(this.wordSize))}}var Wd={exports:{}};/**
42 * [js-sha3]{@link https://github.com/emn178/js-sha3}
43 *
44 * @version 0.8.0
45 * @author Chen, Yi-Cyuan [[email protected]]
46 * @copyright Chen, Yi-Cyuan 2015-2018
47 * @license MIT
48 */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",s=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;s?i=cc:o&&(i=self);var l=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,a=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",c="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],_=[1,256,65536,16777216],N=[6,1536,393216,100663296],P=[0,8,16,24],O=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],y=[128,256],k=["hex","buffer","arrayBuffer","array","digest"],R={"128":168,"256":136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(d){return Object.prototype.toString.call(d)==="[object Array]"}),a&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(d){return typeof d=="object"&&d.buffer&&d.buffer.constructor===ArrayBuffer});for(var T=function(d,C,L){return function(U){return new B(d,C,d).update(U)[L]()}},H=function(d,C,L){return function(U,z){return new B(d,C,z).update(U)[L]()}},D=function(d,C,L){return function(U,z,W,ee){return m["cshake"+d].update(U,z,W,ee)[L]()}},J=function(d,C,L){return function(U,z,W,ee){return m["kmac"+d].update(U,z,W,ee)[L]()}},Q=function(d,C,L,U){for(var z=0;z<k.length;++z){var W=k[z];d[W]=C(L,U,W)}return d},j=function(d,C){var L=T(d,C,"hex");return L.create=function(){return new B(d,C,d)},L.update=function(U){return L.create().update(U)},Q(L,T,d,C)},pe=function(d,C){var L=H(d,C,"hex");return L.create=function(U){return new B(d,C,U)},L.update=function(U,z){return L.create(z).update(U)},Q(L,H,d,C)},S=function(d,C){var L=R[d],U=D(d,C,"hex");return U.create=function(z,W,ee){return!W&&!ee?m["shake"+d].create(z):new B(d,C,z).bytepad([W,ee],L)},U.update=function(z,W,ee,K){return U.create(W,ee,K).update(z)},Q(U,D,d,C)},u=function(d,C){var L=R[d],U=J(d,C,"hex");return U.create=function(z,W,ee){return new F(d,C,W).bytepad(["KMAC",ee],L).bytepad([z],L)},U.update=function(z,W,ee,K){return U.create(z,ee,K).update(W)},Q(U,J,d,C)},h=[{name:"keccak",padding:_,bits:b,createMethod:j},{name:"sha3",padding:N,bits:b,createMethod:j},{name:"shake",padding:p,bits:y,createMethod:pe},{name:"cshake",padding:E,bits:y,createMethod:S},{name:"kmac",padding:E,bits:y,createMethod:u}],m={},v=[],x=0;x<h.length;++x)for(var A=h[x],M=A.bits,w=0;w<M.length;++w){var f=A.name+"_"+M[w];if(v.push(f),m[f]=A.createMethod(M[w],A.padding),A.name!=="sha3"){var g=A.name+M[w];v.push(g),m[g]=m[f]}}function B(d,C,L){this.blocks=[],this.s=[],this.padding=C,this.outputBits=L,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(d<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=L>>5,this.extraBytes=(L&31)>>3;for(var U=0;U<50;++U)this.s[U]=0}B.prototype.update=function(d){if(this.finalized)throw new Error(r);var C,L=typeof d;
48if(L!=="string"){if(L==="object"){if(d===null)throw new Error(e);if(a&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!a||!ArrayBuffer.isView(d)))throw new Error(e)}else throw new Error(e);C=!0}for(var U=this.blocks,z=this.byteCount,W=d.length,ee=this.blockCount,K=0,se=this.s,re,ie;K<W;){if(this.reset)for(this.reset=!1,U[0]=this.block,re=1;re<ee+1;++re)U[re]=0;if(C)for(re=this.start;K<W&&re<z;++K)U[re>>2]|=d[K]<<P[re++&3];else for(re=this.start;K<W&&re<z;++K)ie=d.charCodeAt(K),ie<128?U[re>>2]|=ie<<P[re++&3]:ie<2048?(U[re>>2]|=(192|ie>>6)<<P[re++&3],U[re>>2]|=(128|ie&63)<<P[re++&3]):ie<55296||ie>=57344?(U[re>>2]|=(224|ie>>12)<<P[re++&3],U[re>>2]|=(128|ie>>6&63)<<P[re++&3],U[re>>2]|=(128|ie&63)<<P[re++&3]):(ie=65536+((ie&1023)<<10|d.charCodeAt(++K)&1023),U[re>>2]|=(240|ie>>18)<<P[re++&3],U[re>>2]|=(128|ie>>12&63)<<P[re++&3],U[re>>2]|=(128|ie>>6&63)<<P[re++&3],U[re>>2]|=(128|ie&63)<<P[re++&3]);if(this.lastByteIndex=re,re>=z){for(this.start=re-z,this.block=U[ee],re=0;re<ee;++re)se[re]^=U[re];q(se),this.reset=!0}else this.start=re}return this},B.prototype.encode=function(d,C){var L=d&255,U=1,z=[L];for(d=d>>8,L=d&255;L>0;)z.unshift(L),d=d>>8,L=d&255,++U;return C?z.push(U):z.unshift(U),this.update(z),z.length},B.prototype.encodeString=function(d){var C,L=typeof d;if(L!=="string"){if(L==="object"){if(d===null)throw new Error(e);
vendor: 6,992 bytes, line 48
48if(a&&d.constructor===ArrayBuffer)d=new Uint8Array(d);else if(!Array.isArray(d)&&(!a||!ArrayBuffer.isView(d)))throw new Error(e)}else throw new Error(e);C=!0}var U=0,z=d.length;if(C)U=z;else for(var W=0;W<d.length;++W){var ee=d.charCodeAt(W);ee<128?U+=1:ee<2048?U+=2:ee<55296||ee>=57344?U+=3:(ee=65536+((ee&1023)<<10|d.charCodeAt(++W)&1023),U+=4)}return U+=this.encode(U*8),this.update(d),U},B.prototype.bytepad=function(d,C){for(var L=this.encode(C),U=0;U<d.length;++U)L+=this.encodeString(d[U]);var z=C-L%C,W=[];return W.length=z,this.update(W),this},B.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var d=this.blocks,C=this.lastByteIndex,L=this.blockCount,U=this.s;if(d[C>>2]|=this.padding[C&3],this.lastByteIndex===this.byteCount)for(d[0]=d[L],C=1;C<L+1;++C)d[C]=0;for(d[L-1]|=2147483648,C=0;C<L;++C)U[C]^=d[C];q(U)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var d=this.blockCount,C=this.s,L=this.outputBlocks,U=this.extraBytes,z=0,W=0,ee="",K;W<L;){for(z=0;z<d&&W<L;++z,++W)K=C[z],ee+=c[K>>4&15]+c[K&15]+c[K>>12&15]+c[K>>8&15]+c[K>>20&15]+c[K>>16&15]+c[K>>28&15]+c[K>>24&15];W%d==0&&(q(C),z=0)}return U&&(K=C[z],ee+=c[K>>4&15]+c[K&15],U>1&&(ee+=c[K>>12&15]+c[K>>8&15]),U>2&&(ee+=c[K>>20&15]+c[K>>16&15])),ee},B.prototype.arrayBuffer=function(){this.finalize();var d=this.blockCount,C=this.s,L=this.outputBlocks,U=this.extraBytes,z=0,W=0,ee=this.outputBits>>3,K;U?K=new ArrayBuffer(L+1<<2):K=new ArrayBuffer(ee);for(var se=new Uint32Array(K);W<L;){for(z=0;z<d&&W<L;++z,++W)se[W]=C[z];W%d==0&&q(C)}return U&&(se[z]=C[z],K=K.slice(0,ee)),K},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var d=this.blockCount,C=this.s,L=this.outputBlocks,U=this.extraBytes,z=0,W=0,ee=[],K,se;W<L;){for(z=0;z<d&&W<L;++z,++W)K=W<<2,se=C[z],ee[K]=se&255,ee[K+1]=se>>8&255,ee[K+2]=se>>16&255,ee[K+3]=se>>24&255;W%d==0&&q(C)}return U&&(K=W<<2,se=C[z],ee[K]=se&255,U>1&&(ee[K+1]=se>>8&255),U>2&&(ee[K+2]=se>>16&255)),ee};function F(d,C,L){B.call(this,d,C,L)}F.prototype=new B,F.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var q=function(d){var C,L,U,z,W,ee,K,se,re,ie,ve,An,ye,we,Nn,xe,Ee,Mn,_e,be,Pn,Se,ke,Rn,Ae,Ne,Tn,Me,Pe,In,Re,Te,Cn,Ie,Ce,On,Oe,Be,Bn,Le,Fe,Ln,Ue,ze,Fn,De,$e,Un,je,Ve,zn,He,qe,Dn,Ge,We,Gr,Wr,Kr,Jr,Xr,Zr,Qr;for(U=0;U<48;U+=2)z=d[0]^d[10]^d[20]^d[30]^d[40],W=d[1]^d[11]^d[21]^d[31]^d[41],ee=d[2]^d[12]^d[22]^d[32]^d[42],K=d[3]^d[13]^d[23]^d[33]^d[43],se=d[4]^d[14]^d[24]^d[34]^d[44],re=d[5]^d[15]^d[25]^d[35]^d[45],ie=d[6]^d[16]^d[26]^d[36]^d[46],ve=d[7]^d[17]^d[27]^d[37]^d[47],An=d[8]^d[18]^d[28]^d[38]^d[48],ye=d[9]^d[19]^d[29]^d[39]^d[49],C=An^(ee<<1|K>>>31),L=ye^(K<<1|ee>>>31),d[0]^=C,d[1]^=L,d[10]^=C,d[11]^=L,d[20]^=C,d[21]^=L,d[30]^=C,d[31]^=L,d[40]^=C,d[41]^=L,C=z^(se<<1|re>>>31),L=W^(re<<1|se>>>31),d[2]^=C,d[3]^=L,d[12]^=C,d[13]^=L,d[22]^=C,d[23]^=L,d[32]^=C,d[33]^=L,d[42]^=C,d[43]^=L,C=ee^(ie<<1|ve>>>31),L=K^(ve<<1|ie>>>31),d[4]^=C,d[5]^=L,d[14]^=C,d[15]^=L,d[24]^=C,d[25]^=L,d[34]^=C,d[35]^=L,d[44]^=C,d[45]^=L,C=se^(An<<1|ye>>>31),L=re^(ye<<1|An>>>31),d[6]^=C,d[7]^=L,d[16]^=C,d[17]^=L,d[26]^=C,d[27]^=L,d[36]^=C,d[37]^=L,d[46]^=C,d[47]^=L,C=ie^(z<<1|W>>>31),L=ve^(W<<1|z>>>31),d[8]^=C,d[9]^=L,d[18]^=C,d[19]^=L,d[28]^=C,d[29]^=L,d[38]^=C,d[39]^=L,d[48]^=C,d[49]^=L,we=d[0],Nn=d[1],De=d[11]<<4|d[10]>>>28,$e=d[10]<<4|d[11]>>>28,Me=d[20]<<3|d[21]>>>29,Pe=d[21]<<3|d[20]>>>29,Jr=d[31]<<9|d[30]>>>23,Xr=d[30]<<9|d[31]>>>23,Ln=d[40]<<18|d[41]>>>14,Ue=d[41]<<18|d[40]>>>14,Ie=d[2]<<1|d[3]>>>31,Ce=d[3]<<1|d[2]>>>31,xe=d[13]<<12|d[12]>>>20,Ee=d[12]<<12|d[13]>>>20,Un=d[22]<<10|d[23]>>>22,je=d[23]<<10|d[22]>>>22,In=d[33]<<13|d[32]>>>19,Re=d[32]<<13|d[33]>>>19,Zr=d[42]<<2|d[43]>>>30,Qr=d[43]<<2|d[42]>>>30,Dn=d[5]<<30|d[4]>>>2,Ge=d[4]<<30|d[5]>>>2,On=d[14]<<6|d[15]>>>26,Oe=d[15]<<6|d[14]>>>26,Mn=d[25]<<11|d[24]>>>21,_e=d[24]<<11|d[25]>>>21,Ve=d[34]<<15|d[35]>>>17,zn=d[35]<<15|d[34]>>>17,Te=d[45]<<29|d[44]>>>3,Cn=d[44]<<29|d[45]>>>3,Rn=d[6]<<28|d[7]>>>4,Ae=d[7]<<28|d[6]>>>4,We=d[17]<<23|d[16]>>>9,Gr=d[16]<<23|d[17]>>>9,Be=d[26]<<25|d[27]>>>7,Bn=d[27]<<25|d[26]>>>7,be=d[36]<<21|d[37]>>>11,Pn=d[37]<<21|d[36]>>>11,He=d[47]<<24|d[46]>>>8,qe=d[46]<<24|d[47]>>>8,ze=d[8]<<27|d[9]>>>5,Fn=d[9]<<27|d[8]>>>5,Ne=d[18]<<20|d[19]>>>12,Tn=d[19]<<20|d[18]>>>12,Wr=d[29]<<7|d[28]>>>25,Kr=d[28]<<7|d[29]>>>25,Le=d[38]<<8|d[39]>>>24,Fe=d[39]<<8|d[38]>>>24,Se=d[48]<<14|d[49]>>>18,ke=d[49]<<14|d[48]>>>18,d[0]=we^~xe&Mn,d[1]=Nn^~Ee&_e,d[10]=Rn^~Ne&Me,d[11]=Ae^~Tn&Pe,d[20]=Ie^~On&Be,d[21]=Ce^~Oe&Bn,d[30]=ze^~De&Un,d[31]=Fn^~$e&je,d[40]=Dn^~We&Wr,d[41]=Ge^~Gr&Kr,d[2]=xe^~Mn&be,d[3]=Ee^~_e&Pn,d[12]=Ne^~Me&In,d[13]=Tn^~Pe&Re,d[22]=On^~Be&Le,d[23]=Oe^~Bn&Fe,d[32]=De^~Un&Ve,d[33]=$e^~je&zn,d[42]=We^~Wr&Jr,d[43]=Gr^~Kr&Xr,d[4]=Mn^~be&Se,d[5]=_e^~Pn&ke,d[14]=Me^~In&Te,d[15]=Pe^~Re&Cn,d[24]=Be^~Le&Ln,d[25]=Bn^~Fe&Ue,d[34]=Un^~Ve&He,d[35]=je^~zn&qe,d[44]=Wr^~Jr&Zr,d[45]=Kr^~Xr&Qr,d[6]=be^~Se&we,d[7]=Pn^~ke&Nn,d[16]=In^~Te&Rn,d[17]=Re^~Cn&Ae,d[26]=Le^~Ln&Ie,d[27]=Fe^~Ue&Ce,d[36]=Ve^~He&ze,d[37]=zn^~qe&Fn,d[46]=Jr^~Zr&Dn,d[47]=Xr^~Qr&Ge,d[8]=Se^~we&xe,d[9]=ke^~Nn&Ee,d[18]=Te^~Rn&Ne,d[19]=Cn^~Ae&Tn,d[28]=Ln^~Ie&On,d[29]=Ue^~Ce&Oe,d[38]=He^~ze&De,d[39]=qe^~Fn&$e,d[48]=Zr^~Dn&We,d[49]=Qr^~Ge&Gr,d[0]^=O[U],d[1]^=O[U+1]};if(l)t.exports=m;else for(x=0;x<v.length;++x)i[v[x]]=m[v[x]]})()})(Wd);var nv=Wd.exports;function lt(t){return"0x"+nv.keccak_256(te(t))}const iv="rlp/5.5.0",wr=new I(iv);function Kd(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function Jd(t,e,r){let n=0;for(let i=0;i<r;i++)n=n*256+t[e+i];return n}function Xd(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(o){n=n.concat(Xd(o))}),n.length<=55)return n.unshift(192+n.length),n;const i=Kd(n.length);return i.unshift(247+i.length),i.concat(n)}Af(t)||wr.throwArgumentError("RLP object must be BytesLike","object",t);const e=Array.prototype.slice.call(te(t));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=Kd(e.length);return r.unshift(183+r.length),r.concat(e)}function Bl(t){return Y(Xd(t))}function Zd(t,e,r,n){const i=[];for(;r<e+1+n;){const o=Qd(t,r);i.push(o.result),r+=o.consumed,r>e+1+n&&wr.throwError("child data too short",I.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Qd(t,e){if(t.length===0&&wr.throwError("data too short",I.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&wr.throwError("data short segment too short",I.errors.BUFFER_OVERRUN,{});const n=Jd(t,e+1,r);return e+1+r+n>t.length&&wr.throwError("data long segment too short",I.errors.BUFFER_OVERRUN,{}),Zd(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&wr.throwError("data array too short",I.errors.BUFFER_OVERRUN,{}),Zd(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&wr.throwError("data array too short",I.errors.BUFFER_OVERRUN,{});const n=Jd(t,e+1,r);e+1+r+n>t.length&&wr.throwError("data array too short",I.errors.BUFFER_OVERRUN,{});
48const i=Y(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&wr.throwError("data too short",I.errors.BUFFER_OVERRUN,{});const n=Y(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:Y(t[e])}}function Of(t){const e=te(t),r=Qd(e,0);return r.consumed!==e.length&&wr.throwArgumentError("invalid rlp data","data",t),r.result}const ov="address/5.5.0",ji=new I(ov);function Yd(t){he(t,20)||ji.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=te(lt(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const sv=9007199254740991;function lv(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const Bf={};for(let t=0;t<10;t++)Bf[String(t)]=String(t);for(let t=0;t<26;t++)Bf[String.fromCharCode(65+t)]=String(10+t);const ep=Math.floor(lv(sv));function uv(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Bf[n]).join("");for(;e.length>=ep;){let n=e.substring(0,ep);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function vt(t){let e=null;if(typeof t!="string"&&ji.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Yd(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&ji.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==uv(t)&&ji.throwArgumentError("bad icap checksum","address",t),e=Hg(t.substring(4));e.length<40;)e="0"+e;e=Yd("0x"+e)}else ji.throwArgumentError("invalid address","address",t);return e}function tp(t){let e=null;try{e=vt(t.from)}catch{ji.throwArgumentError("missing from address","transaction",t)}const r=zi(te(G.from(t.nonce).toHexString()));return vt(Lr(lt(Bl([e,r])),12))}class av extends Dr{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=vt(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return vt(Qe(e.readValue().toHexString(),20))}}class fv extends Dr{constructor(e){super(e.name,e.type,void 0,e.dynamic);this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const Vi=new I(ls);function rp(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let a={};n=e.map(c=>{const p=c.localName;return p||Vi.throwError("cannot encode object for signature with missing names",I.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),a[p]&&Vi.throwError("cannot encode object for signature with duplicate names",I.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),a[p]=!0,r[p]})}else Vi.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Vi.throwArgumentError("types/value length mismatch","tuple",r);let i=new Cf(t.wordSize),o=new Cf(t.wordSize),s=[];e.forEach((a,c)=>{let p=n[c];if(a.dynamic){let E=o.length;a.encode(o,p);let _=i.writeUpdatableValue();s.push(N=>{_(N+E)})}else a.encode(i,p)}),s.forEach(a=>{a(i.length)});let l=t.appendWriter(i);return l+=t.appendWriter(o),l}function np(t,e){let r=[],n=t.subReader(0);e.forEach(o=>{let s=null;if(o.dynamic){let l=t.readValue(),a=n.subReader(l.toNumber());try{s=o.decode(a)}catch(c){if(c.code===I.errors.BUFFER_OVERRUN)throw c;s=c,s.baseType=o.name,s.name=o.localName,s.type=o.type}}else try{s=o.decode(t)}catch(l){if(l.code===I.errors.BUFFER_OVERRUN)throw l;s=l,s.baseType=o.name,s.name=o.localName,s.type=o.type}s!=null&&r.push(s)});const i=e.reduce((o,s)=>{const l=s.localName;return l&&(o[l]||(o[l]=0),o[l]++),o},{});e.forEach((o,s)=>{let l=o.localName;if(!l||i[l]!==1||(l==="length"&&(l="_length"),r[l]!=null))return;const a=r[s];a instanceof Error?Object.defineProperty(r,l,{enumerable:!0,get:()=>{throw a}}):r[l]=a});for(let o=0;o<r.length;o++){const s=r[o];s instanceof Error&&Object.defineProperty(r,o,{enumerable:!0,get:()=>{throw s}})}return Object.freeze(r)}class cv extends Dr{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",o=r===-1||e.dynamic;super("array",i,n,o);
48this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;n<this.length;n++)r.push(e);return r}encode(e,r){Array.isArray(r)||this._throwError("expected array value",r);let n=this.length;n===-1&&(n=r.length,e.writeValue(r.length)),Vi.checkArgumentCount(r.length,n,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let o=0;o<r.length;o++)i.push(this.coder);return rp(e,i,r)}decode(e){let r=this.length;r===-1&&(r=e.readValue().toNumber(),r*32>e._data.length&&Vi.throwError("insufficient data length",I.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i<r;i++)n.push(new fv(this.coder));return e.coerce(this.name,np(e,n))}}class hv extends Dr{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,r){return e.writeValue(r?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class ip extends Dr{constructor(e,r){super(e,e,r,!0)}defaultValue(){return"0x"}encode(e,r){r=te(r);let n=e.writeValue(r.length);return n+=e.writeBytes(r),n}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class dv extends ip{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Y(super.decode(e)))}}class pv extends Dr{constructor(e,r){let n="bytes"+String(e);super(n,n,r,!1);this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,r){let n=te(r);return n.length!==this.size&&this._throwError("incorrect data length",r),e.writeBytes(n)}decode(e){return e.coerce(this.name,Y(e.readBytes(this.size)))}}class mv extends Dr{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,r){return r!=null&&this._throwError("not null",r),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const gv="0x0000000000000000000000000000000000000000",vv=G.from(-1),op=G.from(0),yv=G.from(1),wv=G.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),xv="0x0000000000000000000000000000000000000000000000000000000000000000";class Ev extends Dr{constructor(e,r,n){const i=(r?"int":"uint")+e*8;super(i,i,n,!1);this.size=e,this.signed=r}defaultValue(){return 0}encode(e,r){let n=G.from(r),i=wv.mask(e.wordSize*8);if(this.signed){let o=i.mask(this.size*8-1);(n.gt(o)||n.lt(o.add(yv).mul(vv)))&&this._throwError("value out-of-bounds",r)}else(n.lt(op)||n.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",r);return n=n.toTwos(this.size*8).mask(this.size*8),this.signed&&(n=n.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(n)}decode(e){let r=e.readValue().mask(this.size*8);return this.signed&&(r=r.fromTwos(this.size*8)),e.coerce(this.name,r)}}const _v="strings/5.5.0",sp=new I(_v);var Hi;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(Hi||(Hi={}));var Ft;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(Ft||(Ft={}));function bv(t,e,r,n,i){return sp.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)}function lp(t,e,r,n,i){if(t===Ft.BAD_PREFIX||t===Ft.UNEXPECTED_CONTINUE){let o=0;for(let s=e+1;s<r.length&&r[s]>>6==2;s++)o++;return o}return t===Ft.OVERRUN?r.length-e-1:0}function Sv(t,e,r,n,i){return t===Ft.OVERLONG?(n.push(i),0):(n.push(65533),lp(t,e,r))}const kv=Object.freeze({error:bv,ignore:lp,replace:Sv});function up(t,e){e==null&&(e=kv.error),t=te(t);const r=[];let n=0;for(;n<t.length;){const i=t[n++];if(i>>7==0){r.push(i);continue}let o=null,s=null;if((i&224)==192)o=1,s=127;else if((i&240)==224)o=2,s=2047;else if((i&248)==240)o=3,s=65535;else{(i&192)==128?n+=e(Ft.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(Ft.BAD_PREFIX,n-1,t,r);continue}if(n-1+o>=t.length){n+=e(Ft.OVERRUN,n-1,t,r);continue}let l=i&(1<<8-o-1)-1;for(let a=0;a<o;a++){let c=t[n];if((c&192)!=128){n+=e(Ft.MISSING_CONTINUE,n,t,r),l=null;break}l=l<<6|c&63,n++}if(l!==null){if(l>1114111){n+=e(Ft.OUT_OF_RANGE,n-1-o,t,r,l);continue}if(l>=55296&&l<=57343){n+=e(Ft.UTF16_SURROGATE,n-1-o,t,r,l);continue}if(l<=s){n+=e(Ft.OVERLONG,n-1-o,t,r,l);continue}r.push(l)}}return r}function $r(t,e=Hi.current){e!=Hi.current&&(sp.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const o=t.charCodeAt(n);if(n>=t.length||(o&64512)!=56320)throw new Error("invalid utf-8 string");const s=65536+((i&1023)<<10)+(o&1023);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(s&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return te(r)}function Lf(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function qi(t,e){return Lf(up(t,e))}function ap(t,e=Hi.current){return up($r(t,e))}function Av(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}function Ff(t,e){e||(e=function(i){return[parseInt(i,16)]});let r=0,n={};return t.split(",").forEach(i=>
48{let o=i.split(":");r+=parseInt(o[0],16),n[r]=e(o[1])}),n}function fp(t){let e=0;return t.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function Uf(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(r+=i.l,t>=r&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}const Nv=fp("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Mv="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),Pv=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Rv=Ff("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Tv=Ff("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Iv=Ff("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",Av),Cv=fp("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function Ov(t){return t.reduce((e,r)=>(r.forEach(n=>{e.push(n)}),e),[])}function Bv(t){return!!Uf(t,Nv)}function Lv(t){let e=Uf(t,Pv);if(e)return[t+e.s];let r=Rv[t];if(r)return r;let n=Tv[t];if(n)return[t+n[0]];let i=Iv[t];return i||null}function Fv(t){return!!Uf(t,Cv)}function Uv(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=ap(t);e=Ov(e.map(n=>{if(Mv.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=Lv(n);return i||[n]})),e=ap(Lf(e),Hi.NFKC),e.forEach(n=>{if(Fv(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(n=>{if(Bv(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=Lf(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");if(r.length>63)throw new Error("too long");return r}class zv extends ip{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,$r(r))}decode(e){return qi(super.decode(e))}}class Ll extends Dr{constructor(e,r){let n=!1;const i=[];e.forEach(s=>{s.dynamic&&(n=!0),i.push(s.type)});const o="tuple("+i.join(",")+")";super("tuple",o,r,n);
48this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const o=i.localName;return o&&(n[o]||(n[o]=0),n[o]++),n},{});return this.coders.forEach((n,i)=>{let o=n.localName;!o||r[o]!==1||(o==="length"&&(o="_length"),e[o]==null&&(e[o]=e[i]))}),Object.freeze(e)}encode(e,r){return rp(e,this.coders,r)}decode(e){return e.coerce(this.name,np(e,this.coders))}}const cs=new I(ls),Dv=new RegExp(/^bytes([0-9]*)$/),$v=new RegExp(/^(u?int)([0-9]*)$/);class zf{constructor(e){cs.checkNew(new.target,zf),$(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new av(e.name);case"bool":return new hv(e.name);case"string":return new zv(e.name);case"bytes":return new dv(e.name);case"array":return new cv(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Ll((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new mv(e.name)}let r=e.type.match($v);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!=0)&&cs.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Ev(n/8,r[1]==="int",e.name)}if(r=e.type.match(Dv),r){let n=parseInt(r[1]);return(n===0||n>32)&&cs.throwArgumentError("invalid bytes length","param",e),new pv(n,e.name)}return cs.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new Ol(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Cf(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(ht.from(i)));return new Ll(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&cs.throwError("types/values length mismatch",I.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(s=>this._getCoder(ht.from(s))),i=new Ll(n,"_"),o=this._getWriter();return i.encode(o,r),o.data}decode(e,r,n){const i=e.map(s=>this._getCoder(ht.from(s)));return new Ll(i,"_").decode(this._getReader(te(r),n))}}const jv=new zf;function Gi(t){return lt($r(t))}const cp="hash/5.5.0",hp=new I(cp),dp=new Uint8Array(32);dp.fill(0);const Vv=new RegExp("^((.*)\\.)?([^.]+)$");function Fl(t){typeof t!="string"&&hp.throwArgumentError("invalid ENS name; not a string","name",t);let e=t,r=dp;for(;e.length;){const n=e.match(Vv);(n==null||n[2]==="")&&hp.throwArgumentError("invalid ENS address; missing component","name",t);const i=$r(Uv(n[3]));r=lt(Kt([r,lt(i)])),e=n[2]||""}return Y(r)}var Hv=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const Ye=new I(cp),pp=new Uint8Array(32);pp.fill(0);const qv=G.from(-1),mp=G.from(0),gp=G.from(1),Gv=G.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Wv(t){const e=te(t),r=e.length%32;return r?rr([e,pp.slice(r)]):Y(e)}const Kv=Qe(gp.toHexString(),32),Jv=Qe(mp.toHexString(),32),vp={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Df=["name","version","chainId","verifyingContract","salt"];function yp(t){return function(e){return typeof e!="string"&&Ye.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Xv={name:yp("name"),version:yp("version"),chainId:function(t){try{return G.from(t).toString()}catch{}return Ye.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return vt(t).toLowerCase()}catch{}return Ye.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=te(t);if(e.length!==32)throw new Error("bad length");return Y(e)}catch{}return Ye.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function $f(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!=0||n>256||e[2]&&e[2]!==String(n))&&Ye.throwArgumentError("invalid numeric width","type",t);const i=Gv.mask(r?n-1:n),o=r?i.add(gp).mul(qv):mp;return function(s){const l=G.from(s);return(l.lt(o)||l.gt(i))&&Ye.throwArgumentError(`value out-of-bounds for ${t}`,"value",s),Qe(l.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&Ye.throwArgumentError("invalid bytes width","type",t),function(n){return te(n).length!==r&&Ye.throwArgumentError(`invalid length for ${t}`,"value",n),Wv(n)}}}switch(t){case"address":return function(e){return Qe(vt(e),32)};case"bool":return function(e){return e?Kv:Jv};case"bytes":return function(e){return lt(e)};case"string":return function(e){return Gi(e)}}return null}function wp(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Ut{constructor(e){$(this,"types",Object.freeze(Fr(e))),$(this,"_encoderCache",{}),$(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(l=>{r[l]={},n[l]=[],i[l]={}});for(const l in e){const a={};e[l].forEach(c=>{a[c.name]&&Ye.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(l)}`,"types",e),a[c.name]=!0;const p=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];p===l&&Ye.throwArgumentError(`circular type reference to ${JSON.stringify(p)}`,"types",e),!$f(p)&&(n[p]||Ye.throwArgumentError(`unknown type ${JSON.stringify(p)}`,"types",e),n[p].push(l),r[l][p]=!0)})}const o=Object.keys(n).filter(l=>n[l].length===0);o.length===0?Ye.throwArgumentError("missing primary type","types",e):o.length>1&&Ye.throwArgumentError(`ambiguous primary types or unused types: ${o.map(l=>JSON.stringify(l)).join(", ")}`,"types",e),$(this,"primaryType",o[0]);function s(l,a){a[l]&&Ye.throwArgumentError(`circular type reference to ${JSON.stringify(l)}
48`,"types",e),a[l]=!0,Object.keys(r[l]).forEach(c=>{!n[c]||(s(c,a),Object.keys(a).forEach(p=>{i[p][c]=!0}))}),delete a[l]}s(this.primaryType,{});for(const l in i){const a=Object.keys(i[l]);a.sort(),this._types[l]=wp(l,e[l])+a.map(c=>wp(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=$f(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],o=this.getEncoder(i),s=parseInt(r[3]);return l=>{s>=0&&l.length!==s&&Ye.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);let a=l.map(o);return this._types[i]&&(a=a.map(lt)),lt(rr(a))}}const n=this.types[e];if(n){const i=Gi(this._types[e]);return o=>{const s=n.map(({name:l,type:a})=>{const c=this.getEncoder(a)(o[l]);return this._types[a]?lt(c):c});return s.unshift(i),rr(s)}}return Ye.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Ye.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return lt(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if($f(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const s=i[1],l=parseInt(i[3]);return l>=0&&r.length!==l&&Ye.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(a=>this._visit(s,a,n))}const o=this.types[e];return o?o.reduce((s,{name:l,type:a})=>(s[l]=this._visit(a,r[l],n),s),{}):Ye.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Ut(e)}static getPrimaryType(e){return Ut.from(e).primaryType}static hashStruct(e,r,n){return Ut.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=vp[n];i||Ye.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>Df.indexOf(n.name)-Df.indexOf(i.name)),Ut.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return rr(["0x1901",Ut.hashDomain(e),Ut.from(r).hash(n)])}static hash(e,r,n){return lt(Ut.encode(e,r,n))}static resolveNames(e,r,n,i){return Hv(this,void 0,void 0,function*(){e=ct(e);const o={};e.verifyingContract&&!he(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");const s=Ut.from(r);s.visit(n,(l,a)=>(l==="address"&&!he(a,20)&&(o[a]="0x"),a));for(const l in o)o[l]=yield i(l);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),n=s.visit(n,(l,a)=>l==="address"&&o[a]?o[a]:a),{domain:e,value:n}})}static getPayload(e,r,n){Ut.hashDomain(e);const i={},o=[];Df.forEach(a=>{const c=e[a];c!=null&&(i[a]=Xv[a](c),o.push({name:a,type:vp[a]}))});const s=Ut.from(r),l=ct(r);return l.EIP712Domain?Ye.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):l.EIP712Domain=o,s.encode(n),{types:l,domain:i,primaryType:s.primaryType,message:s.visit(n,(a,c)=>{if(a.match(/^bytes(\d*)/))return Y(te(c));if(a.match(/^u?int/))return G.from(c).toString();switch(a){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Ye.throwArgumentError("invalid string","value",c),c}return Ye.throwArgumentError("unsupported type","type",a)})}}}const Ze=new I(ls);class Zv extends ss{}class Qv extends ss{}class Yv extends ss{}class jf extends ss{static isIndexed(e){return!!(e&&e._isIndexed)}}const ey={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function xp(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class Ul{constructor(e){Ze.checkNew(new.target,Ul);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,$(this,"fragments",r.map(n=>Ur.from(n)).filter(n=>n!=null)),$(this,"_abiCoder",gr(new.target,"getAbiCoder")()),$(this,"functions",{}),$(this,"errors",{}),$(this,"events",{}),$(this,"structs",{}
48),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Ze.warn("duplicate definition - constructor");return}$(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let o=n.format();if(i[o]){Ze.warn("duplicate definition - "+o);return}i[o]=n}),this.deploy||$(this,"deploy",vr.from({payable:!1,type:"constructor"})),$(this,"_isInterface",!0)}format(e){e||(e=de.full),e===de.sighash&&Ze.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===de.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return jv}static getAddress(e){return vt(e)}static getSighash(e){return Lr(Gi(e.format()),0,4)}static getEventTopic(e){return Gi(e.format())}getFunction(e){if(he(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Ze.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(o=>o.split("(")[0]===n);return i.length===0?Ze.throwArgumentError("no matching function","name",n):i.length>1&&Ze.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[yr.fromString(e).format()];return r||Ze.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(he(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Ze.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(o=>o.split("(")[0]===n);return i.length===0?Ze.throwArgumentError("no matching event","name",n):i.length>1&&Ze.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[zr.fromString(e).format()];return r||Ze.throwArgumentError("no matching event","signature",e),r}getError(e){if(he(e)){const n=gr(this.constructor,"getSighash");for(const i in this.errors){const o=this.errors[i];if(e===n(o))return this.errors[i]}Ze.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(o=>o.split("(")[0]===n);return i.length===0?Ze.throwArgumentError("no matching error","name",n):i.length>1&&Ze.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[yr.fromString(e).format()];return r||Ze.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return gr(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),gr(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=te(r);return Y(n.slice(0,4))!==this.getSighash(e)&&Ze.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Y(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),Y(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=te(r);return Y(n.slice(0,4))!==this.getSighash(e)&&Ze.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Y(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Y(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=te(r),i=null,o=null,s=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const a=Y(n.slice(0,4)),c=ey[a];if(c)o=this._abiCoder.decode(c.inputs,n.slice(4)),s=c.name,l=c.signature,c.reason&&(i=o[0]);else try{const p=this.getError(a);o=this._abiCoder.decode(p.inputs,n.slice(4)),s=p.name,l=p.format()}catch(p){console.log(p)}break}}return Ze.throwError("call revert exception",I.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:o,errorName:s,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Y(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>
48e.inputs.length&&Ze.throwError("too many arguments for "+e.format(),I.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(o,s)=>o.type==="string"?Gi(s):o.type==="bytes"?lt(Y(s)):(o.type==="address"&&this._abiCoder.encode(["address"],[s]),Qe(Y(s),32));for(r.forEach((o,s)=>{let l=e.inputs[s];if(!l.indexed){o!=null&&Ze.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+l.name,o);return}o==null?n.push(null):l.baseType==="array"||l.baseType==="tuple"?Ze.throwArgumentError("filtering with tuples or arrays not supported","contract."+l.name,o):Array.isArray(o)?n.push(o.map(a=>i(l,a))):n.push(i(l,o))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],o=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&Ze.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((s,l)=>{const a=r[l];if(s.indexed)if(s.type==="string")n.push(Gi(a));else if(s.type==="bytes")n.push(lt(a));else{if(s.baseType==="tuple"||s.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([s.type],[a]))}else i.push(s),o.push(a)}),{data:this._abiCoder.encode(i,o),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let _=this.getEventTopic(e);(!he(n[0],32)||n[0].toLowerCase()!==_)&&Ze.throwError("fragment/topic mismatch",I.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:_,value:n[0]}),n=n.slice(1)}let i=[],o=[],s=[];e.inputs.forEach((_,N)=>{_.indexed?_.type==="string"||_.type==="bytes"||_.baseType==="tuple"||_.baseType==="array"?(i.push(ht.fromObject({type:"bytes32",name:_.name})),s.push(!0)):(i.push(_),s.push(!1)):(o.push(_),s.push(!1))});let l=n!=null?this._abiCoder.decode(i,Kt(n)):null,a=this._abiCoder.decode(o,r,!0),c=[],p=0,E=0;e.inputs.forEach((_,N)=>{if(_.indexed)if(l==null)c[N]=new jf({_isIndexed:!0,hash:null});else if(s[N])c[N]=new jf({_isIndexed:!0,hash:l[E++]});else try{c[N]=l[E++]}catch(P){c[N]=P}else try{c[N]=a[p++]}catch(P){c[N]=P}if(_.name&&c[_.name]==null){const P=c[N];P instanceof Error?Object.defineProperty(c,_.name,{enumerable:!0,get:()=>{throw xp(`property ${JSON.stringify(_.name)}`,P)}}):c[_.name]=P}});for(let _=0;_<c.length;_++){const N=c[_];N instanceof Error&&Object.defineProperty(c,_,{enumerable:!0,get:()=>{throw xp(`index ${_}`,N)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new Qv({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:G.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new Zv({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=Y(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new Yv({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const ty="abstract-provider/5.5.1";var ry=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const ny=new I(ty);class iy extends ss{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class hs{constructor(){ny.checkAbstract(new.target,hs),$(this,"_isProvider",!0)}getFeeData(){return ry(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield ot({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null;return e&&e.baseFeePerGas&&(i=G.from("2500000000"),n=e.baseFeePerGas.mul(2).add(i)),{maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const oy="abstract-signer/5.5.0";var nr=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};
48const zt=new I(oy),sy=["accessList","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],ly=[I.errors.INSUFFICIENT_FUNDS,I.errors.NONCE_EXPIRED,I.errors.REPLACEMENT_UNDERPRICED];class ds{constructor(){zt.checkAbstract(new.target,ds),$(this,"_isSigner",!0)}getBalance(e){return nr(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return nr(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return nr(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield ot(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return nr(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield ot(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return nr(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return nr(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return nr(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return nr(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return nr(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)sy.indexOf(n)===-1&&zt.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ct(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&zt.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return nr(this,void 0,void 0,function*(){const r=yield ot(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>nr(this,void 0,void 0,function*(){if(i==null)return null;const o=yield this.resolveName(i);return o==null&&zt.throwArgumentError("provided ENS name resolves to null","tx.to",i),o})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?zt.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&zt.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const o=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&zt.throwError("network does not support EIP-1559",I.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):zt.throwError("failed to get consistent fee data",I.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLim
48it==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(ly.indexOf(i.code)>=0)throw i;return zt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",I.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&zt.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield ot(r)})}_checkProvider(e){this.provider||zt.throwError("missing provider",I.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class zl extends ds{constructor(e,r){zt.checkNew(new.target,zl);super();$(this,"address",e),$(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{zt.throwError(e,I.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new zl(this.address,e)}}var Ep={},ae={},ps=_p;function _p(t,e){if(!t)throw new Error(e||"Assertion failed")}_p.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Vf={exports:{}};typeof Object.create=="function"?Vf.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Vf.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var uy=ps,ay=Vf.exports;ae.inherits=ay;function fy(t,e){return(t.charCodeAt(e)&64512)!=55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)==56320}function cy(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)r.push(parseInt(t[i]+t[i+1],16))}else for(var n=0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=o&63|128):fy(t,i)?(o=65536+((o&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=o&63|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=o&63|128)}else for(i=0;i<t.length;i++)r[i]=t[i]|0;return r}ae.toArray=cy;function hy(t){for(var e="",r=0;r<t.length;r++)e+=Sp(t[r].toString(16));return e}ae.toHex=hy;function bp(t){var e=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}ae.htonl=bp;function dy(t,e){for(var r="",n=0;n<t.length;n++){var i=t[n];e==="little"&&(i=bp(i)),r+=kp(i.toString(16))}return r}ae.toHex32=dy;function Sp(t){return t.length===1?"0"+t:t}ae.zero2=Sp;function kp(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}ae.zero8=kp;function py(t,e,r,n){var i=r-e;uy(i%4==0);for(var o=new Array(i/4),s=0,l=e;s<o.length;s++,l+=4){var a;n==="big"?a=t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:a=t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],o[s]=a>>>0}return o}ae.join32=py;function my(t,e){for(var r=new Array(t.length*4),n=0,i=0;n<t.length;n++,i+=4){var o=t[n];e==="big"?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=o&255):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=o&255)}return r}ae.split32=my;function gy(t,e){return t>>>e|t<<32-e}ae.rotr32=gy;function vy(t,e){return t<<e|t>>>32-e}ae.rotl32=vy;function yy(t,e){return t+e>>>0}ae.sum32=yy;function wy(t,e,r){return t+e+r>>>0}ae.sum32_3=wy;function xy(t,e,r,n){return t+e+r+n>>>0}ae.sum32_4=xy;function Ey(t,e,r,n,i){return t+e+r+n+i>>>0}ae.sum32_5=Ey;function _y(t,e,r,n){var i=t[e],o=t[e+1],s=n+o>>>0,l=(s<n?1:0)+r+i;t[e]=l>>>0,t[e+1]=s}ae.sum64=_y;function by(t,e,r,n){var i=e+n>>>0,o=(i<e?1:0)+t+r;return o>>>0}ae.sum64_hi=by;function Sy(t,e,r,n){var i=e+n;return i>>>0}ae.sum64_lo=Sy;function ky(t,e,r,n,i,o,s,l){var a=0,c=e;c=c+n>>>0,a+=c<e?1:0,c=c+o>>>0,a+=c<o?1:0,c=c+l>>>0,a+=c<l?1:0;var p=t+r+i+s+a;return p>>>0}ae.sum64_4_hi=ky;function Ay(t,e,r,n,i,o,s,l){var a=e+n+o+l;return a>>>0}ae.sum64_4_lo=Ay;function Ny(t,e,r,n,i,o,s,l,a,c){var p=0,E=e;E=E+n>>>0,p+=E<e?1:0,E=E+o>>>0,p+=E<o?1:0,E=E+l>>>0,p+=E<l?1:0,E=E+c>>>0,p+=E<c?1:0;var _=t+r+i+s+a+p;return _>>>0}ae.sum64_5_hi=Ny;function My(t,e,r,n,i,o,s,l,a,c){var p=e+n+o+l+c;return p>>>0}ae.sum64_5_lo=My;function Py(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}ae.rotr64_hi=Py;function Ry(t,e,r){var n=t<<32-r|e>>
48>r;return n>>>0}ae.rotr64_lo=Ry;function Ty(t,e,r){return t>>>r}ae.shr64_hi=Ty;function Iy(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ae.shr64_lo=Iy;var Wi={},Ap=ae,Cy=ps;function Dl(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Wi.BlockHash=Dl;Dl.prototype.update=function(e,r){if(e=Ap.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=Ap.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this};Dl.prototype.digest=function(e){return this.update(this._pad()),Cy(this.pending===null),this._digest(e)};Dl.prototype._pad=function(){var e=this.pendingTotal,r=this._delta8,n=r-(e+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(e<<=3,this.endian==="big"){for(var s=8;s<this.padLength;s++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=e>>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=e&255}else for(i[o++]=e&255,i[o++]=e>>>8&255,i[o++]=e>>>16&255,i[o++]=e>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,s=8;s<this.padLength;s++)i[o++]=0;return i};var Ki={},xr={},Oy=ae,Er=Oy.rotr32;function By(t,e,r,n){if(t===0)return Np(e,r,n);if(t===1||t===3)return Pp(e,r,n);if(t===2)return Mp(e,r,n)}xr.ft_1=By;function Np(t,e,r){return t&e^~t&r}xr.ch32=Np;function Mp(t,e,r){return t&e^t&r^e&r}xr.maj32=Mp;function Pp(t,e,r){return t^e^r}xr.p32=Pp;function Ly(t){return Er(t,2)^Er(t,13)^Er(t,22)}xr.s0_256=Ly;function Fy(t){return Er(t,6)^Er(t,11)^Er(t,25)}xr.s1_256=Fy;function Uy(t){return Er(t,7)^Er(t,18)^t>>>3}xr.g0_256=Uy;function zy(t){return Er(t,17)^Er(t,19)^t>>>10}xr.g1_256=zy;var Ji=ae,Dy=Wi,$y=xr,Hf=Ji.rotl32,ms=Ji.sum32,jy=Ji.sum32_5,Vy=$y.ft_1,Rp=Dy.BlockHash,Hy=[1518500249,1859775393,2400959708,3395469782];function _r(){if(!(this instanceof _r))return new _r;Rp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ji.inherits(_r,Rp);var qy=_r;_r.blockSize=512;_r.outSize=160;_r.hmacStrength=80;_r.padLength=64;_r.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=Hf(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],s=this.h[1],l=this.h[2],a=this.h[3],c=this.h[4];for(i=0;i<n.length;i++){var p=~~(i/20),E=jy(Hf(o,5),Vy(p,s,l,a),c,n[i],Hy[p]);c=a,a=l,l=Hf(s,30),s=o,o=E}this.h[0]=ms(this.h[0],o),this.h[1]=ms(this.h[1],s),this.h[2]=ms(this.h[2],l),this.h[3]=ms(this.h[3],a),this.h[4]=ms(this.h[4],c)};_r.prototype._digest=function(e){return e==="hex"?Ji.toHex32(this.h,"big"):Ji.split32(this.h,"big")};var Xi=ae,Gy=Wi,Zi=xr,Wy=ps,ir=Xi.sum32,Ky=Xi.sum32_4,Jy=Xi.sum32_5,Xy=Zi.ch32,Zy=Zi.maj32,Qy=Zi.s0_256,Yy=Zi.s1_256,e2=Zi.g0_256,t2=Zi.g1_256,Tp=Gy.BlockHash,r2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function br(){if(!(this instanceof br))return new br;Tp.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=r2,this.W=new Array(64)}Xi.inherits(br,Tp);var Ip=br;br.blockSize=512;br.outSize=256;br.hmacStrength=192;br.padLength=64;br.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;i<n.length;i++)n[i]=Ky(t2(n[i-2]),n[i-7],e2(n[i-15]),n[i-16]);var o=this.h[0],s=this.h[1],l=this.h[2],a=this.h[3],c=this.h[4],p=this.h[5],E=this.h[6],_=this.h[7];for(Wy(this.k.length===n.length),i=0;i<n.length;i++){var N=Jy(_,Yy(c),Xy(c,p,E),this.k[i],n[i]),P=ir(Qy(o),Zy(o,s,l));_=E,E=p,p=c,c=ir(a,N),a=l,l=s,s=o,o=ir(N,P)}this.h[0]=ir(this.h[0],o),this.h[1]=ir(this.h[1],s),this.h[2]=ir(this.h[2],l),this.h[3]=ir(this.h[3],a),this.h[4]=ir(this.h[4],c),this.h[5]=ir(this.h[5],p),this.h[6]=ir(this.h[6],E),this.h[7]=ir(this.h[7],_)};br.prototype._digest=function(e){return e==="hex"?Xi.toHex32(this.h,"big"):Xi.split32(this.h,"big")};var qf=ae,Cp=Ip;function jr(){if(!(this instanceof jr))return new jr;Cp.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}qf.inherits(jr,Cp);var n2=jr;jr.blockSize=512;jr.outSize=224;jr.hmacStrength=192;jr.padLength=64;jr.prototype._digest=function(e){return e==="hex"?qf.toHex32(this.h.slice(0,7),"big"):qf.split32(this.h.slice(0,7),"big")};var Ot=ae,i2=Wi,o2=ps,Sr=Ot.rotr64_hi,kr=Ot.rotr64_lo,Op=Ot.shr64_hi,Bp=Ot.shr64_lo,_n=Ot.sum64,Gf=Ot.sum64_hi,Wf=Ot.sum64_lo,s2=Ot.sum64_4_hi,l2=Ot.sum64_4_lo,u2=Ot.sum64_5_hi,a2=Ot.sum64_5_lo,Lp=i2.BlockH
48ash,f2=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
vendor: 4,097 bytes, line 48
481126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function or(){if(!(this instanceof or))return new or;Lp.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=f2,this.W=new Array(160)}Ot.inherits(or,Lp);var Fp=or;or.blockSize=1024;or.outSize=512;or.hmacStrength=192;or.padLength=128;or.prototype._prepareBlock=function(e,r){for(var n=this.W,i=0;i<32;i++)n[i]=e[r+i];for(;i<n.length;i+=2){var o=E2(n[i-4],n[i-3]),s=_2(n[i-4],n[i-3]),l=n[i-14],a=n[i-13],c=w2(n[i-30],n[i-29]),p=x2(n[i-30],n[i-29]),E=n[i-32],_=n[i-31];n[i]=s2(o,s,l,a,c,p,E,_),n[i+1]=l2(o,s,l,a,c,p,E,_)}};or.prototype._update=function(e,r){this._prepareBlock(e,r);var n=this.W,i=this.h[0],o=this.h[1],s=this.h[2],l=this.h[3],a=this.h[4],c=this.h[5],p=this.h[6],E=this.h[7],_=this.h[8],N=this.h[9],P=this.h[10],O=this.h[11],b=this.h[12],y=this.h[13],k=this.h[14],R=this.h[15];o2(this.k.length===n.length);for(var T=0;T<n.length;T+=2){var H=k,D=R,J=v2(_,N),Q=y2(_,N),j=c2(_,N,P,O,b),pe=h2(_,N,P,O,b,y),S=this.k[T],u=this.k[T+1],h=n[T],m=n[T+1],v=u2(H,D,J,Q,j,pe,S,u,h,m),x=a2(H,D,J,Q,j,pe,S,u,h,m);H=m2(i,o),D=g2(i,o),J=d2(i,o,s,l,a),Q=p2(i,o,s,l,a,c);var A=Gf(H,D,J,Q),M=Wf(H,D,J,Q);k=b,R=y,b=P,y=O,P=_,O=N,_=Gf(p,E,v,x),N=Wf(E,E,v,x),p=a,E=c,a=s,c=l,s=i,l=o,i=Gf(v,x,A,M),o=Wf(v,x,A,M)}_n(this.h,0,i,o),_n(this.h,2,s,l),_n(this.h,4,a,c),_n(this.h,6,p,E),_n(this.h,8,_,N),_n(this.h,10,P,O),_n(this.h,12,b,y),_n(this.h,14,k,R)};or.prototype._digest=function(e){return e==="hex"?Ot.toHex32(this.h,"big"):Ot.split32(this.h,"big")};function c2(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function h2(t,e,r,n,i,o){var s=e&n^~e&o;return s<0&&(s+=4294967296),s}function d2(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function p2(t,e,r,n,i,o){var s=e&n^e&o^n&o;return s<0&&(s+=4294967296),s}function m2(t,e){var r=Sr(t,e,28),n=Sr(e,t,2),i=Sr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function g2(t,e){var r=kr(t,e,28),n=kr(e,t,2),i=kr(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function v2(t,e){var r=Sr(t,e,14),n=Sr(t,e,18),i=Sr(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function y2(t,e){var r=kr(t,e,14),n=kr(t,e,18),i=kr(e,t,9),o=r^n^i;return o<0&&(o+=4294967296),o}function w2(t,e){var r=Sr(t,e,1),n=Sr(t,e,8),i=Op(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function x2(t,e){var r=kr(t,e,1),n=kr(t,e,8),i=Bp(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function E2(t,e){var r=Sr(t,e,19),n=Sr(e,t,29),i=Op(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}function _2(t,e){var r=kr(t,e,19),n=kr(e,t,29),i=Bp(t,e,6),o=r^n^i;return o<0&&(o+=4294967296),o}var Kf=ae,Up=Fp;function Vr(){if(!(this instanceof Vr))return new Vr;Up.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Kf.inherits(Vr,Up);var b2=Vr;Vr.blockSize=1024;Vr.outSize=384;Vr.hmacStrength=192;Vr.padLength=128;Vr.prototype._digest=function(e){return e==="hex"?Kf.toHex32(this.h.slice(0,12),"big"):Kf.split32(this.h.slice(0,12),"big")};Ki.sha1=qy;Ki.sha224=n2;Ki.sha256=Ip;Ki.sha384=b2;Ki.sha512=Fp;var zp={},ii=ae,S2=Wi,$l=ii.rotl32,Dp=ii.sum32,gs=ii.sum32_3,$p=ii.sum32_4,jp=S2.BlockHash;function Ar(){if(!(this instanceof Ar))return new Ar;jp.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}ii.inherits(Ar,jp);zp.ripemd160=Ar;Ar.blockSize=512;Ar.outSize=160;Ar.hmacStrength=192;Ar.padLength=64;Ar.prototype._update=function(e,r){for(var n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],a=n,c=i,p=o,E=s,_=l,N=0;N<80;N++){var P=Dp($l($p(n,Vp(N,i,o,s),e[N2[N]+r],k2(N)),P2[N]),l);n=l,l=s,s=$l(o,10),o=i,i=P,P=Dp($l($p(a,Vp(79-N,c,p,E),e[M2[N]+r],A2(N)),R2[N]),_),a=_,_=E,E=$l(p,10),p=c,c=P}P=gs(this.h[1],o,E),this.h[1]=gs(this.h[2],s,_),this.h[2]=gs(this.h[3],l,a),this.h[3]=gs(this.h[4],n,c),this.h[4]=gs(this.h[0],i,p),this.h[0]=P};
48Ar.prototype._digest=function(e){return e==="hex"?ii.toHex32(this.h,"little"):ii.split32(this.h,"little")};function Vp(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function k2(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function A2(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var N2=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M2=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],P2=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],R2=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],T2=ae,I2=ps;function Qi(t,e,r){if(!(this instanceof Qi))return new Qi(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(T2.toArray(e,r))}var C2=Qi;Qi.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),I2(e.length<=this.blockSize);for(var r=e.length;r<this.blockSize;r++)e.push(0);for(r=0;r<e.length;r++)e[r]^=54;for(this.inner=new this.Hash().update(e),r=0;r<e.length;r++)e[r]^=106;this.outer=new this.Hash().update(e)};Qi.prototype.update=function(e,r){return this.inner.update(e,r),this};Qi.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)};(function(t){var e=t;e.utils=ae,e.common=Wi,e.sha=Ki,e.ripemd=zp,e.hmac=C2,e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160})(Ep);var Nr=Ep;function Yi(t,e,r){return r={path:e,exports:{},require:function(n,i){return O2(n,i==null?r.path:i)}},t(r,r.exports),r.exports}function O2(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Jf=Hp;function Hp(t,e){if(!t)throw new Error(e||"Assertion failed")}Hp.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var sr=Yi(function(t,e){var r=e;function n(s,l){if(Array.isArray(s))return s.slice();if(!s)return[];var a=[];if(typeof s!="string"){for(var c=0;c<s.length;c++)a[c]=s[c]|0;return a}if(l==="hex"){s=s.replace(/[^a-z0-9]+/ig,""),s.length%2!=0&&(s="0"+s);for(var c=0;c<s.length;c+=2)a.push(parseInt(s[c]+s[c+1],16))}else for(var c=0;c<s.length;c++){var p=s.charCodeAt(c),E=p>>8,_=p&255;E?a.push(E,_):a.push(_)}return a}r.toArray=n;function i(s){return s.length===1?"0"+s:s}r.zero2=i;function o(s){for(var l="",a=0;a<s.length;a++)l+=i(s[a].toString(16));return l}r.toHex=o,r.encode=function(l,a){return a==="hex"?o(l):l}}),Dt=Yi(function(t,e){var r=e;r.assert=Jf,r.toArray=sr.toArray,r.zero2=sr.zero2,r.toHex=sr.toHex,r.encode=sr.encode;function n(a,c,p){var E=new Array(Math.max(a.bitLength(),p)+1);E.fill(0);for(var _=1<<c+1,N=a.clone(),P=0;P<E.length;P++){var O,b=N.andln(_-1);N.isOdd()?(b>(_>>1)-1?O=(_>>1)-b:O=b,N.isubn(O)):O=0,E[P]=O,N.iushrn(1)}return E}r.getNAF=n;function i(a,c){var p=[[],[]];a=a.clone(),c=c.clone();for(var E=0,_=0,N;a.cmpn(-E)>0||c.cmpn(-_)>0;){var P=a.andln(3)+E&3,O=c.andln(3)+_&3;P===3&&(P=-1),O===3&&(O=-1);var b;(P&1)==0?b=0:(N=a.andln(7)+E&7,(N===3||N===5)&&O===2?b=-P:b=P),p[0].push(b);var y;(O&1)==0?y=0:(N=c.andln(7)+_&7,(N===3||N===5)&&P===2?y=-O:y=O),p[1].push(y),2*E===b+1&&(E=1-E),2*_===y+1&&(_=1-_),a.iushrn(1),c.iushrn(1)}return p}r.getJSF=i;function o(a,c,p){var E="_"+c;a.prototype[c]=function(){return this[E]!==void 0?this[E]:this[E]=p.call(this)}}r.cachedProperty=o;function s(a){return typeof a=="string"?r.toArray(a,"hex"):a}r.parseBytes=s;function l(a){return new oe(a,"hex","le")}r.intFromLE=l}),jl=Dt.getNAF,B2=Dt.getJSF,Vl=Dt.assert;function bn(t,e){this.type=t,this.p=new oe(e.p,16),this.red=e.prime?oe.red(e.prime):oe.mont(this.p),this.zero=new oe(0).toRed(this.red),this.one=new oe(1).toRed(this.red),this.two=new oe(2).toRed(this.red),this.n=e.n&&new oe(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var oi=bn;bn.prototype.point=function(){throw new Error("Not implemented")};bn.prototype.validate=function(){throw new Error("Not implemented")};bn.prototype._fixedNafMul=function(e,r){Vl(e.precomputed);var n=e._getDoubles(),i=jl(r,1,this._bitLength),o=(1<<n.step+1)-(n.step%2==0?2:1);o/=3;var s=[],l,a;for(l=0;l<i.length;l+=n.step){a=0;for(var c=l+n.step-1;c>=l;c--)a=(a<<1)+i[c];s.push(a)}for(var p=this.jpoint(null,null,null),E=this.jpoint(null,null,null),_=o;_>0;_--){for(l=0;l<s.length;l++)a=s[l],a===_?E=E.mixedAdd(n.points[l]):a===-_&&(E=E.mixedAdd(n.points[l].neg()));p=p.add(E)}return p.toP()};bn.prototype._wnafMul=function(e,r){var n=4,i=e._getNAFPoints(n);n=i.wnd;for(var o=i.points,s=jl(r,n,this._bitLength),l=this.jpoint(null,null,null),a=s.length-1;a>=0;a--){for(var c=0;a>=0&&s[a]===0;a--)c++;if(a>=0&&c++,l=l.dblp(c),a<0)break;var p=s[a];Vl(p!==0),e.type==="affine"?p>0?l=l.mixedAdd(o[p-1>>1]):l=l.mixedAdd(o[-p-1>>1].neg()):p>0?l=l.add(o[p-1>>1]):l=l.add(o[-p-1>>1].neg())}return e.type==="affine"?l.toP():l};bn.prototype._wnafMulAdd=function(e,r,n,i,o){var s=this._wnafT1,l=this._wnafT2,a=this._wnafT3,c=0,p,E,_;for(p=0;p<i;p++){_=r[p];var N=_._getNAFPoints(e);s[p]=N.wnd,l[p]=N.points}for(p=i-1;p>=1;p-=2){var P=p-1,O=p;if(s[P]!==1||s[O]!==1){a[P]=jl(n[P],s[P],this._bitLength),a[O]=jl(n[O],s[O],this._bitLength),c=Math.max(a[P].length,c),c=Math.max(a[O].length,c);continue}
48var b=[r[P],null,null,r[O]];r[P].y.cmp(r[O].y)===0?(b[1]=r[P].add(r[O]),b[2]=r[P].toJ().mixedAdd(r[O].neg())):r[P].y.cmp(r[O].y.redNeg())===0?(b[1]=r[P].toJ().mixedAdd(r[O]),b[2]=r[P].add(r[O].neg())):(b[1]=r[P].toJ().mixedAdd(r[O]),b[2]=r[P].toJ().mixedAdd(r[O].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],k=B2(n[P],n[O]);for(c=Math.max(k[0].length,c),a[P]=new Array(c),a[O]=new Array(c),E=0;E<c;E++){var R=k[0][E]|0,T=k[1][E]|0;a[P][E]=y[(R+1)*3+(T+1)],a[O][E]=0,l[P]=b}}var H=this.jpoint(null,null,null),D=this._wnafT4;for(p=c;p>=0;p--){for(var J=0;p>=0;){var Q=!0;for(E=0;E<i;E++)D[E]=a[E][p]|0,D[E]!==0&&(Q=!1);if(!Q)break;J++,p--}if(p>=0&&J++,H=H.dblp(J),p<0)break;for(E=0;E<i;E++){var j=D[E];j!==0&&(j>0?_=l[E][j-1>>1]:j<0&&(_=l[E][-j-1>>1].neg()),_.type==="affine"?H=H.mixedAdd(_):H=H.add(_))}}for(p=0;p<i;p++)l[p]=null;return o?H:H.toP()};function Xt(t,e){this.curve=t,this.type=e,this.precomputed=null}bn.BasePoint=Xt;Xt.prototype.eq=function(){throw new Error("Not implemented")};Xt.prototype.validate=function(){return this.curve.validate(this)};bn.prototype.decodePoint=function(e,r){e=Dt.toArray(e,r);var n=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n){e[0]===6?Vl(e[e.length-1]%2==0):e[0]===7&&Vl(e[e.length-1]%2==1);var i=this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));return i}else if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3);throw new Error("Unknown point format")};Xt.prototype.encodeCompressed=function(e){return this.encode(e,!0)};Xt.prototype._encode=function(e){var r=this.curve.p.byteLength(),n=this.getX().toArray("be",r);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",r))};Xt.prototype.encode=function(e,r){return Dt.encode(this._encode(r),e)};Xt.prototype.precompute=function(e){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,e),r.beta=this._getBeta(),this.precomputed=r,this};Xt.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((e.bitLength()+1)/r.step):!1};Xt.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o<r;o+=e){for(var s=0;s<e;s++)i=i.dbl();n.push(i)}return{step:e,points:n}};Xt.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],n=(1<<e)-1,i=n===1?null:this.dbl(),o=1;o<n;o++)r[o]=r[o-1].add(i);return{wnd:e,points:r}};Xt.prototype._getBeta=function(){return null};Xt.prototype.dblp=function(e){for(var r=this,n=0;n<e;n++)r=r.dbl();return r};var Xf=Yi(function(t){typeof Object.create=="function"?t.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}}),L2=Dt.assert;function Zt(t){oi.call(this,"short",t),this.a=new oe(t.a,16).toRed(this.red),this.b=new oe(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Xf(Zt,oi);var F2=Zt;Zt.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,n;if(e.beta)r=new oe(e.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(e.lambda)n=new oe(e.lambda,16);else{var o=this._getEndoRoots(this.n);this.g.mul(o[0]).x.cmp(this.g.x.redMul(r))===0?n=o[0]:(n=o[1],L2(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}var s;return e.basis?s=e.basis.map(function(l){return{a:new oe(l.a,16),b:new oe(l.b,16)}}):s=this._getEndoBasis(n),{beta:r,lambda:n,basis:s}}};Zt.prototype._getEndoRoots=function(e){var r=e===this.p?this.red:oe.mont(e),n=new oe(2).toRed(r).redInvm(),i=n.redNeg(),o=new oe(3).toRed(r).redNeg().redSqrt().redMul(n),s=i.redAdd(o).fromRed(),l=i.redSub(o).fromRed();return[s,l]};Zt.prototype._getEndoBasis=function(e){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,i=this.n.clone(),o=new oe(1),s=new oe(0),l=new oe(0),a=new oe(1),c,p,E,_,N,P,O,b=0,y,k;n.cmpn(0)!==0;){var R=i.div(n);y=i.sub(R.mul(n)),k=l.sub(R.mul(o));var T=a.sub(R.mul(s));
48if(!E&&y.cmp(r)<0)c=O.neg(),p=o,E=y.neg(),_=k;else if(E&&++b==2)break;O=y,i=n,n=y,l=o,o=k,a=s,s=T}N=y.neg(),P=k;var H=E.sqr().add(_.sqr()),D=N.sqr().add(P.sqr());return D.cmp(H)>=0&&(N=c,P=p),E.negative&&(E=E.neg(),_=_.neg()),N.negative&&(N=N.neg(),P=P.neg()),[{a:E,b:_},{a:N,b:P}]};Zt.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],o=i.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),l=o.mul(n.a),a=s.mul(i.a),c=o.mul(n.b),p=s.mul(i.b),E=e.sub(l).sub(a),_=c.add(p).neg();return{k1:E,k2:_}};Zt.prototype.pointFromX=function(e,r){e=new oe(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var o=i.fromRed().isOdd();return(r&&!o||!r&&o)&&(i=i.redNeg()),this.point(e,i)};Zt.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),o=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(o).cmpn(0)===0};Zt.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,s=0;s<e.length;s++){var l=this._endoSplit(r[s]),a=e[s],c=a._getBeta();l.k1.negative&&(l.k1.ineg(),a=a.neg(!0)),l.k2.negative&&(l.k2.ineg(),c=c.neg(!0)),i[s*2]=a,i[s*2+1]=c,o[s*2]=l.k1,o[s*2+1]=l.k2}for(var p=this._wnafMulAdd(1,i,o,s*2,n),E=0;E<s*2;E++)i[E]=null,o[E]=null;return p};function dt(t,e,r,n){oi.BasePoint.call(this,t,"affine"),e===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new oe(e,16),this.y=new oe(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Xf(dt,oi.BasePoint);Zt.prototype.point=function(e,r,n){return new dt(this,e,r,n)};Zt.prototype.pointFromJSON=function(e,r){return dt.fromJSON(this,e,r)};dt.prototype._getBeta=function(){if(!!this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,i=function(o){return n.point(o.x.redMul(n.endo.beta),o.y)};e.beta=r,r.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return r}};dt.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};dt.fromJSON=function(e,r,n){typeof r=="string"&&(r=JSON.parse(r));var i=e.point(r[0],r[1],n);if(!r[2])return i;function o(l){return e.point(l[0],l[1],n)}var s=r[2];return i.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[i].concat(s.doubles.points.map(o))},naf:s.naf&&{wnd:s.naf.wnd,points:[i].concat(s.naf.points.map(o))}},i};dt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};dt.prototype.isInfinity=function(){return this.inf};dt.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};dt.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),s=o.redSqr().redISub(this.x.redAdd(this.x)),l=o.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,l)};dt.prototype.getX=function(){return this.x.fromRed()};dt.prototype.getY=function(){return this.y.fromRed()};dt.prototype.mul=function(e){return e=new oe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};dt.prototype.mulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)};dt.prototype.jmulAdd=function(e,r,n){var i=[this,r],o=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)};dt.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};dt.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());
vendor: 4,851 bytes, line 48
48if(e&&this.precomputed){var n=this.precomputed,i=function(o){return o.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};dt.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function yt(t,e,r,n){oi.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new oe(0)):(this.x=new oe(e,16),this.y=new oe(r,16),this.z=new oe(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Xf(yt,oi.BasePoint);Zt.prototype.jpoint=function(e,r,n){return new yt(this,e,r,n)};yt.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};yt.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};yt.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),o=e.x.redMul(n),s=this.y.redMul(r.redMul(e.z)),l=e.y.redMul(n.redMul(this.z)),a=i.redSub(o),c=s.redSub(l);if(a.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=a.redSqr(),E=p.redMul(a),_=i.redMul(p),N=c.redSqr().redIAdd(E).redISub(_).redISub(_),P=c.redMul(_.redISub(N)).redISub(s.redMul(E)),O=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(N,P,O)};yt.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),o=this.y,s=e.y.redMul(r).redMul(this.z),l=n.redSub(i),a=o.redSub(s);if(l.cmpn(0)===0)return a.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=l.redSqr(),p=c.redMul(l),E=n.redMul(c),_=a.redSqr().redIAdd(p).redISub(E).redISub(E),N=a.redMul(E.redISub(_)).redISub(o.redMul(p)),P=this.z.redMul(l);return this.curve.jpoint(_,N,P)};yt.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r<e;r++)n=n.dbl();return n}var i=this.curve.a,o=this.curve.tinv,s=this.x,l=this.y,a=this.z,c=a.redSqr().redSqr(),p=l.redAdd(l);for(r=0;r<e;r++){var E=s.redSqr(),_=p.redSqr(),N=_.redSqr(),P=E.redAdd(E).redIAdd(E).redIAdd(i.redMul(c)),O=s.redMul(_),b=P.redSqr().redISub(O.redAdd(O)),y=O.redISub(b),k=P.redMul(y);k=k.redIAdd(k).redISub(N);var R=p.redMul(a);r+1<e&&(c=c.redMul(N)),s=b,a=R,p=k}return this.curve.jpoint(s,p.redMul(o),a)};yt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};yt.prototype._zeroDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),s=o.redSqr(),l=this.x.redAdd(o).redSqr().redISub(i).redISub(s);l=l.redIAdd(l);var a=i.redAdd(i).redIAdd(i),c=a.redSqr().redISub(l).redISub(l),p=s.redIAdd(s);p=p.redIAdd(p),p=p.redIAdd(p),e=c,r=a.redMul(l.redISub(c)).redISub(p),n=this.y.redAdd(this.y)}else{var E=this.x.redSqr(),_=this.y.redSqr(),N=_.redSqr(),P=this.x.redAdd(_).redSqr().redISub(E).redISub(N);P=P.redIAdd(P);var O=E.redAdd(E).redIAdd(E),b=O.redSqr(),y=N.redIAdd(N);y=y.redIAdd(y),y=y.redIAdd(y),e=b.redISub(P).redISub(P),r=O.redMul(P.redISub(e)).redISub(y),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(e,r,n)};yt.prototype._threeDbl=function(){var e,r,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),s=o.redSqr(),l=this.x.redAdd(o).redSqr().redISub(i).redISub(s);l=l.redIAdd(l);var a=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),c=a.redSqr().redISub(l).redISub(l);e=c;var p=s.redIAdd(s);p=p.redIAdd(p),p=p.redIAdd(p),r=a.redMul(l.redISub(c)).redISub(p),n=this.y.redAdd(this.y)}else{var E=this.z.redSqr(),_=this.y.redSqr(),N=this.x.redMul(_),P=this.x.redSub(E).redMul(this.x.redAdd(E));P=P.redAdd(P).redIAdd(P);var O=N.redIAdd(N);O=O.redIAdd(O);var b=O.redAdd(O);e=P.redSqr().redISub(b),n=this.y.redAdd(this.z).redSqr().redISub(_).redISub(E);var y=_.redSqr();y=y.redIAdd(y),y=y.redIAdd(y),y=y.redIAdd(y),r=P.redMul(O.redISub(e)).redISub(y)}return this.curve.jpoint(e,r,n)};yt.prototype._dbl=function(){var e=this.curve.a,r=this.x,n=this.y,i=this.z,o=i.redSqr().redSqr(),s=r.redSqr(),l=n.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(o)),c=r.redAdd(r);c=c.redIAdd(c);var p=c.redMul(l),E=a.redSqr().redISub(p.redAdd(p)),_=p.redISub(E),N=l.redSqr();N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N);var P=a.redMul(_).redISub(N),O=n.redAdd(n).redMul(i);return this.curve.jpoint(E,P,O)};yt.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
48var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr(),i=r.redSqr(),o=e.redAdd(e).redIAdd(e),s=o.redSqr(),l=this.x.redAdd(r).redSqr().redISub(e).redISub(i);l=l.redIAdd(l),l=l.redAdd(l).redIAdd(l),l=l.redISub(s);var a=l.redSqr(),c=i.redIAdd(i);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var p=o.redIAdd(l).redSqr().redISub(s).redISub(a).redISub(c),E=r.redMul(p);E=E.redIAdd(E),E=E.redIAdd(E);var _=this.x.redMul(a).redISub(E);_=_.redIAdd(_),_=_.redIAdd(_);var N=this.y.redMul(p.redMul(c.redISub(p)).redISub(l.redMul(a)));N=N.redIAdd(N),N=N.redIAdd(N),N=N.redIAdd(N);var P=this.z.redAdd(l).redSqr().redISub(n).redISub(a);return this.curve.jpoint(_,N,P)};yt.prototype.mul=function(e,r){return e=new oe(e,r),this.curve._wnafMul(this,e)};yt.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var r=this.z.redSqr(),n=e.z.redSqr();if(this.x.redMul(n).redISub(e.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),o=n.redMul(e.z);return this.y.redMul(o).redISub(e.y.redMul(i)).cmpn(0)===0};yt.prototype.eqXToP=function(e){var r=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(r);if(this.x.cmp(n)===0)return!0;for(var i=e.clone(),o=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),this.x.cmp(n)===0)return!0}};yt.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};yt.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Hl=Yi(function(t,e){var r=e;r.base=oi,r.short=F2,r.mont=null,r.edwards=null}),ql=Yi(function(t,e){var r=e,n=Dt.assert;function i(l){l.type==="short"?this.curve=new Hl.short(l):l.type==="edwards"?this.curve=new Hl.edwards(l):this.curve=new Hl.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function o(l,a){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){var c=new i(a);return Object.defineProperty(r,l,{configurable:!0,enumerable:!0,value:c}),c}})}o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Nr.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Nr.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Nr.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Nr.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Nr.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Nr.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Nr.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var s;try{s=null.crash()}catch{s=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Nr.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
48,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",s]})});function Sn(t){if(!(this instanceof Sn))return new Sn(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=sr.toArray(t.entropy,t.entropyEnc||"hex"),r=sr.toArray(t.nonce,t.nonceEnc||"hex"),n=sr.toArray(t.pers,t.persEnc||"hex");Jf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var qp=Sn;Sn.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656};Sn.prototype._hmac=function(){return new Nr.hmac(this.hash,this.K)};Sn.prototype._update=function(e){var r=this._hmac().update(this.V).update([0]);e&&(r=r.update(e)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),!!e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};Sn.prototype.reseed=function(e,r,n,i){typeof r!="string"&&(i=n,n=r,r=null),e=sr.toArray(e,r),n=sr.toArray(n,i),Jf(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};Sn.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=sr.toArray(n,i||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(n),this._reseed++,sr.encode(s,r)};var Zf=Dt.assert;function kt(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Qf=kt;kt.fromPublic=function(e,r,n){return r instanceof kt?r:new kt(e,{pub:r,pubEnc:n})};kt.fromPrivate=function(e,r,n){return r instanceof kt?r:new kt(e,{priv:r,privEnc:n})};kt.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};kt.prototype.getPublic=function(e,r){return typeof e=="string"&&(r=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,e):this.pub};kt.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};kt.prototype._importPrivate=function(e,r){this.priv=new oe(e,r||16),this.priv=this.priv.umod(this.ec.curve.n)};kt.prototype._importPublic=function(e,r){if(e.x||e.y){this.ec.curve.type==="mont"?Zf(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Zf(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)};kt.prototype.derive=function(e){return e.validate()||Zf(e.validate(),"public point not validated"),e.mul(this.priv).getX()};kt.prototype.sign=function(e,r,n){return this.ec.sign(e,this,r,n)};kt.prototype.verify=function(e,r){return this.ec.verify(e,r,this)};kt.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var U2=Dt.assert;function Gl(t,e){if(t instanceof Gl)return t;this._importDER(t,e)||(U2(t.r&&t.s,"Signature without r or s"),this.r=new oe(t.r,16),this.s=new oe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Wl=Gl;function z2(){this.place=0}function Yf(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return i<=127?!1:(e.place=s,i)}function Gp(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e<r;)e++;return e===0?t:t.slice(e)}Gl.prototype._importDER=function(e,r){e=Dt.toArray(e,r);var n=new z2;if(e[n.place++]!==48)return!1;var i=Yf(e,n);if(i===!1||i+n.place!==e.length||e[n.place++]!==2)return!1;var o=Yf(e,n);if(o===!1)return!1;var s=e.slice(n.place,o+n.place);if(n.place+=o,e[n.place++]!==2)return!1;var l=Yf(e,n);if(l===!1||e.length!==l+n.place)return!1;var a=e.slice(n.place,l+n.place);if(s[0]===0)if(s[1]&128)s=s.slice(1);else return!1;if(a[0]===0)if(a[1]&128)a=a.slice(1);else return!1;return this.r=new oe(s),this.s=new oe(a),this.recoveryParam=null,!0};function ec(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}Gl.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Gp(r),n=Gp(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];ec(i,r.length),i=i.concat(r),i.push(2),ec(i,n.length);var o=i.concat(n),s=[48];return ec(s,o.length),s=s.concat(o),Dt.encode(s,e)};var D2=function(){throw new Error("unsupported")},Wp=Dt.assert;function Qt(t){if(!(this instanceof Qt))return new Qt(t);typeof t=="string"&&(Wp(Object.prototype.hasOwnProperty.call(ql,t),"Unknown curve "+t),t=ql[t]),t instanceof ql.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var $2=Qt;Qt.prototype.keyPair=function(e){return new Qf(this,e)};Qt.prototype.keyFromPrivate=function(e,r){return Qf.fromPrivate(this,e,r)};Qt.prototype.keyFromPublic=function(e,r){return Qf.fromPublic(this,e,r)};Qt.prototype.genKeyPair=function(e){e||(e={});for(var r=new qp({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entro
48py:e.entropy||D2(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new oe(2));;){var o=new oe(r.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}};Qt.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Qt.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new oe(e,16));for(var o=this.n.byteLength(),s=r.getPrivate().toArray("be",o),l=e.toArray("be",o),a=new qp({hash:this.hash,entropy:s,nonce:l,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new oe(1)),p=0;;p++){var E=i.k?i.k(p):new oe(a.generate(this.n.byteLength()));if(E=this._truncateToN(E,!0),!(E.cmpn(1)<=0||E.cmp(c)>=0)){var _=this.g.mul(E);if(!_.isInfinity()){var N=_.getX(),P=N.umod(this.n);if(P.cmpn(0)!==0){var O=E.invm(this.n).mul(P.mul(r.getPrivate()).iadd(e));if(O=O.umod(this.n),O.cmpn(0)!==0){var b=(_.getY().isOdd()?1:0)|(N.cmp(P)!==0?2:0);return i.canonical&&O.cmp(this.nh)>0&&(O=this.n.sub(O),b^=1),new Wl({r:P,s:O,recoveryParam:b})}}}}}};Qt.prototype.verify=function(e,r,n,i){e=this._truncateToN(new oe(e,16)),n=this.keyFromPublic(n,i),r=new Wl(r,"hex");var o=r.r,s=r.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var l=s.invm(this.n),a=l.mul(e).umod(this.n),c=l.mul(o).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(a,n.getPublic(),c),p.isInfinity()?!1:p.eqXToP(o)):(p=this.g.mulAdd(a,n.getPublic(),c),p.isInfinity()?!1:p.getX().umod(this.n).cmp(o)===0)};Qt.prototype.recoverPubKey=function(t,e,r,n){Wp((3&r)===r,"The recovery param is more than two bits"),e=new Wl(e,n);var i=this.n,o=new oe(t),s=e.r,l=e.s,a=r&1,c=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?s=this.curve.pointFromX(s.add(this.curve.n),a):s=this.curve.pointFromX(s,a);var p=e.r.invm(i),E=i.sub(o).mul(p).umod(i),_=l.mul(p).umod(i);return this.g.mulAdd(E,s,_)};Qt.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new Wl(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch{continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var j2=Yi(function(t,e){var r=e;r.version="6.5.4",r.utils=Dt,r.rand=function(){throw new Error("unsupported")},r.curve=Hl,r.curves=ql,r.ec=$2,r.eddsa=null}),V2=j2.ec;const H2="signing-key/5.5.0",Kp=new I(H2);let tc=null;function Mr(){return tc||(tc=new V2("secp256k1")),tc}class q2{constructor(e){$(this,"curve","secp256k1"),$(this,"privateKey",Y(e));const r=Mr().keyFromPrivate(te(this.privateKey));$(this,"publicKey","0x"+r.getPublic(!1,"hex")),$(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),$(this,"_isSigningKey",!0)}_addPoint(e){const r=Mr().keyFromPublic(te(this.publicKey)),n=Mr().keyFromPublic(te(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=Mr().keyFromPrivate(te(this.privateKey)),n=te(e);n.length!==32&&Kp.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Pl({recoveryParam:i.recoveryParam,r:Qe("0x"+i.r.toString(16),32),s:Qe("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=Mr().keyFromPrivate(te(this.privateKey)),n=Mr().keyFromPublic(te(Jp(e)));return Qe("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function G2(t,e){const r=Pl(e),n={r:te(r.r),s:te(r.s)};return"0x"+Mr().recoverPubKey(te(t),n,r.recoveryParam).encode("hex",!1)}function Jp(t,e){const r=te(t);if(r.length===32){const n=new q2(r);return e?"0x"+Mr().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?Y(r):"0x"+Mr().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+Mr().keyFromPublic(r).getPublic(!0,"hex"):Y(r)}return Kp.throwArgumentError("invalid public or private key","key","[REDACTED]")}const W2="transactions/5.5.0",Hr=new I(W2);var Xp;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(Xp||(Xp={}));function rc(t){return t==="0x"?null:vt(t)}function At(t){return t==="0x"?op:G.from(t)}function K2(t){const e=Jp(t);return vt(Lr(lt(Lr(e,1)),12))}function Zp(t,e){return K2(G2(te(t),e))}function $t(t,e){const r=zi(G.from(t).toHexString());return r.length>32&&Hr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function nc(t,e){return{address:vt(t),storageKeys:(e||[]).map((r,n)=>(rs(r)!==32&&Hr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function eo(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Hr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),nc(r[0],r[1])):nc(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,o)=>(i[o]=!0,i),{});return nc(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function Qp(t){return eo(t).map(e=>[e.address,e.storageKeys])}function J2(t,e){if(t.gasPrice!=null){const n=G.from(t.gasPrice),i=G.from(t.maxFeePerGas||0);n.eq(i)||Hr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[$t(t.chainId||0,"chainId"),$t(t.nonce||0,"nonce"),$t(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),$t(t.maxFeePerGas||0,"maxFeePerGas"),$t(t.gasLimit||0,"gasLim
48it"),t.to!=null?vt(t.to):"0x",$t(t.value||0,"value"),t.data||"0x",Qp(t.accessList||[])];if(e){const n=Pl(e);r.push($t(n.recoveryParam,"recoveryParam")),r.push(zi(n.r)),r.push(zi(n.s))}return rr(["0x02",Bl(r)])}function X2(t,e){const r=[$t(t.chainId||0,"chainId"),$t(t.nonce||0,"nonce"),$t(t.gasPrice||0,"gasPrice"),$t(t.gasLimit||0,"gasLimit"),t.to!=null?vt(t.to):"0x",$t(t.value||0,"value"),t.data||"0x",Qp(t.accessList||[])];if(e){const n=Pl(e);r.push($t(n.recoveryParam,"recoveryParam")),r.push(zi(n.r)),r.push(zi(n.s))}return rr(["0x01",Bl(r)])}function Yp(t,e,r){try{const n=At(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Hr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Qe(e[1],32),t.s=Qe(e[2],32);try{const n=lt(r(t));t.from=Zp(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch(n){console.log(n)}}function Z2(t){const e=Of(t.slice(1));e.length!==9&&e.length!==12&&Hr.throwArgumentError("invalid component count for transaction type: 2","payload",Y(t));const r=At(e[2]),n=At(e[3]),i={type:2,chainId:At(e[0]).toNumber(),nonce:At(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:At(e[4]),to:rc(e[5]),value:At(e[6]),data:e[7],accessList:eo(e[8])};return e.length===9||(i.hash=lt(t),Yp(i,e.slice(9),J2)),i}function Q2(t){const e=Of(t.slice(1));e.length!==8&&e.length!==11&&Hr.throwArgumentError("invalid component count for transaction type: 1","payload",Y(t));const r={type:1,chainId:At(e[0]).toNumber(),nonce:At(e[1]).toNumber(),gasPrice:At(e[2]),gasLimit:At(e[3]),to:rc(e[4]),value:At(e[5]),data:e[6],accessList:eo(e[7])};return e.length===8||(r.hash=lt(t),Yp(r,e.slice(8),X2)),r}function Y2(t){const e=Of(t);e.length!==9&&e.length!==6&&Hr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:At(e[0]).toNumber(),gasPrice:At(e[1]),gasLimit:At(e[2]),to:rc(e[3]),value:At(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=G.from(e[6]).toNumber()}catch(n){return console.log(n),r}if(r.r=Qe(e[7],32),r.s=Qe(e[8],32),G.from(r.r).isZero()&&G.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(Y(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const o=lt(Bl(i));try{r.from=Zp(o,{r:Y(r.r),s:Y(r.s),recoveryParam:n})}catch(s){console.log(s)}r.hash=lt(t)}return r.type=null,r}function ew(t){const e=te(t);if(e[0]>127)return Y2(e);switch(e[0]){case 1:return Q2(e);case 2:return Z2(e)}return Hr.throwError(`unsupported transaction type: ${e[0]}`,I.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const tw="contracts/5.5.0";var si=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const nt=new I(tw);function Kl(t,e){return si(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&nt.throwArgumentError("invalid address or ENS name","name",r);try{return vt(r)}catch{}t||nt.throwError("a provider or signer is needed to resolve ENS names",I.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&nt.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Jl(t,e,r){return si(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Jl(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Kl(t,e):r.type==="tuple"?yield Jl(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Jl(t,n,r.arrayChildren))):Promise.reject(nt.makeError("invalid value for array",I.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function Xl(t,e,r){return si(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=ct(r.pop())
48),nt.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=ot({override:Kl(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>si(this,void 0,void 0,function*(){return vt(c.signer)!==c.override&&nt.throwError("Contract with a Signer cannot override from",I.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Kl(t.provider,n.from));const i=yield ot({args:Jl(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:ot(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},l=i.overrides;if(l.nonce!=null&&(s.nonce=G.from(l.nonce).toNumber()),l.gasLimit!=null&&(s.gasLimit=G.from(l.gasLimit)),l.gasPrice!=null&&(s.gasPrice=G.from(l.gasPrice)),l.maxFeePerGas!=null&&(s.maxFeePerGas=G.from(l.maxFeePerGas)),l.maxPriorityFeePerGas!=null&&(s.maxPriorityFeePerGas=G.from(l.maxPriorityFeePerGas)),l.from!=null&&(s.from=l.from),l.type!=null&&(s.type=l.type),l.accessList!=null&&(s.accessList=eo(l.accessList)),s.gasLimit==null&&e.gas!=null){let c=21e3;const p=te(o);for(let E=0;E<p.length;E++)c+=4,p[E]&&(c+=64);s.gasLimit=G.from(e.gas).add(c)}if(l.value){const c=G.from(l.value);!c.isZero()&&!e.payable&&nt.throwError("non-payable method cannot override value",I.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=c}l.customData&&(s.customData=ct(l.customData)),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData;const a=Object.keys(n).filter(c=>n[c]!=null);return a.length&&nt.throwError(`cannot override ${a.map(c=>JSON.stringify(c)).join(",")}`,I.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:a}),s})}function rw(t,e){return function(...r){return Xl(t,e,r)}}function nw(t,e){const r=t.signer||t.provider;return function(...n){return si(this,void 0,void 0,function*(){r||nt.throwError("estimate require a provider or signer",I.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield Xl(t,e,n);return yield r.estimateGas(i)})}}function iw(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(o=>{let s=Fr(o),l=null;try{l=t.interface.parseLog(o)}catch{}return l&&(s.args=l.args,s.decode=(a,c)=>t.interface.decodeEventLog(l.eventFragment,a,c),s.event=l.name,s.eventSignature=l.signature),s.removeListener=()=>t.provider,s.getBlock=()=>t.provider.getBlock(i.blockHash),s.getTransaction=()=>t.provider.getTransaction(i.transactionHash),s.getTransactionReceipt=()=>Promise.resolve(i),s}),i))}function e1(t,e,r){const n=t.signer||t.provider;return function(...i){return si(this,void 0,void 0,function*(){let o;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const a=ct(i.pop());a.blockTag!=null&&(o=yield a.blockTag),delete a.blockTag,i.push(a)}t.deployTransaction!=null&&(yield t._deployed(o));const s=yield Xl(t,e,i),l=yield n.call(s,o);try{let a=t.interface.decodeFunctionResult(e,l);return r&&e.outputs.length===1&&(a=a[0]),a}catch(a){throw a.code===I.errors.CALL_EXCEPTION&&(a.address=t.address,a.args=i,a.transaction=s),a}})}}function ow(t,e){return function(...r){return si(this,void 0,void 0,function*(){t.signer||nt.throwError("sending a transaction requires a signer",I.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield Xl(t,e,r),i=yield t.signer.sendTransaction(n);return iw(t,i),i})}}function t1(t,e,r){return e.constant?e1(t,e,r):ow(t,e)}function r1(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class vs{constructor(e,r){$(this,"tag",e),$(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class sw extends vs{constructor(){super("error",null)}}class n1 extends vs{constructor(e,r,n,i){const o={address:e};let s=r.getEventTopic(n);i?(s!==i[0]&&nt.throwArgumentError("topic mismatch","topics",i),o.topics=i.slice()):o.topics=[s];super(r1(o),o);$(this,"address",e),$(this,"interface",r),$(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=rv(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class i1 extends vs{constructor(e,r){super("*",{address:e});$(this,"address",e),$(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class lw{constructor(e,r,n){nt.checkNew(new.target,uw),$(this,"interface",gr(new.target,"getInterface")(r)),n==null?($(this,"provider",null),$(this,"signer",null)):ds.isSigner(n)?($(this,"provider",n.provider||null),$(this,"signer",n)):hs.isProvider(n)?($(this,"provider",n),$(this,"signer",null)):nt.throwArgumentError("invalid signer or provider","signerOrProvider",n),$(this,"callStatic",{}),$(this,"estimateGas",{}),$(this,"functions",{}),$(this,"populateTransaction",{}),$(this,"filters",{});{const s={};
48Object.keys(this.interface.events).forEach(l=>{const a=this.interface.events[l];$(this.filters,l,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(a,c)})),s[a.name]||(s[a.name]=[]),s[a.name].push(l)}),Object.keys(s).forEach(l=>{const a=s[l];a.length===1?$(this.filters,l,this.filters[a[0]]):nt.warn(`Duplicate definition of ${l} (${a.join(", ")})`)})}if($(this,"_runningEvents",{}),$(this,"_wrappedEmits",{}),e==null&&nt.throwArgumentError("invalid contract address or ENS name","addressOrName",e),$(this,"address",e),this.provider)$(this,"resolvedAddress",Kl(this.provider,e));else try{$(this,"resolvedAddress",Promise.resolve(vt(e)))}catch{nt.throwError("provider is required to use ENS name as contract address",I.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}const i={},o={};Object.keys(this.interface.functions).forEach(s=>{const l=this.interface.functions[s];if(o[s]){nt.warn(`Duplicate ABI entry for ${JSON.stringify(s)}`);return}o[s]=!0;{const a=l.name;i[`%${a}`]||(i[`%${a}`]=[]),i[`%${a}`].push(s)}this[s]==null&&$(this,s,t1(this,l,!0)),this.functions[s]==null&&$(this.functions,s,t1(this,l,!1)),this.callStatic[s]==null&&$(this.callStatic,s,e1(this,l,!0)),this.populateTransaction[s]==null&&$(this.populateTransaction,s,rw(this,l)),this.estimateGas[s]==null&&$(this.estimateGas,s,nw(this,l))}
48),Object.keys(i).forEach(s=>{const l=i[s];if(l.length>1)return;s=s.substring(1);const a=l[0];try{this[s]==null&&$(this,s,this[a])}catch{}this.functions[s]==null&&$(this.functions,s,this.functions[a]),this.callStatic[s]==null&&$(this.callStatic,s,this.callStatic[a]),this.populateTransaction[s]==null&&$(this.populateTransaction,s,this.populateTransaction[a]),this.estimateGas[s]==null&&$(this.estimateGas,s,this.estimateGas[a])})}static getContractAddress(e){return tp(e)}static getInterface(e){return Ul.isInterface(e)?e:new Ul(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&nt.throwError("contract not deployed",I.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||nt.throwError("sending a transactions require a signer",I.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=ct(e||{});return["from","to"].forEach(function(n){r[n]!=null&&nt.throwError("cannot override "+n,I.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new zl(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&$(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return jf.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new sw);if(e==="event")return this._normalizeRunningEvent(new vs("event",null));if(e==="*")return this._normalizeRunningEvent(new i1(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new n1(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new n1(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new vs(r1(r),r))}return this._normalizeRunningEvent(new i1(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=Fr(r);return i.removeListener=()=>{!n||(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||nt.throwError("events require a provider or a signer with a provider",I.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=o=>{let s=this._wrapEvent(e,o,r);if(s.decodeError==null)try{const l=e.getEmit(s);this.emit(e.filter,...l)}catch(l){s.decodeError=l.error}e.filter!=null&&this.emit("event",s),s.decodeError!=null&&this.emit("error",s.decodeError,s)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),o=ct(i.filter);return typeof r=="string"&&he(r,32)?(n!=null&&nt.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),o.blockHash=r):(o.fromBlock=r!=null?r:0,o.toBlock=n!=null?n:"latest"),this.provider.getLogs(o).then(s=>s.map(l=>this._wrapEvent(i,l,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}
48listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class uw extends lw{}class o1{constructor(e){$(this,"alphabet",e),$(this,"base",e.length),$(this,"_alphabetMap",{}),$(this,"_leader",e.charAt(0));for(let r=0;r<e.length;r++)this._alphabetMap[e.charAt(r)]=r}encode(e){let r=te(e);if(r.length===0)return"";let n=[0];for(let o=0;o<r.length;++o){let s=r[o];for(let l=0;l<n.length;++l)s+=n[l]<<8,n[l]=s%this.base,s=s/this.base|0;for(;s>0;)n.push(s%this.base),s=s/this.base|0}let i="";for(let o=0;r[o]===0&&o<r.length-1;++o)i+=this._leader;for(let o=n.length-1;o>=0;--o)i+=this.alphabet[n[o]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n<e.length;n++){let i=this._alphabetMap[e[n]];if(i===void 0)throw new Error("Non-base"+this.base+" character");let o=i;for(let s=0;s<r.length;++s)o+=r[s]*this.base,r[s]=o&255,o>>=8;for(;o>0;)r.push(o&255),o>>=8}for(let n=0;e[n]===this._leader&&n<e.length-1;++n)r.push(0);return te(new Uint8Array(r.reverse()))}}new o1("abcdefghijklmnopqrstuvwxyz234567");const s1=new o1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),aw="sha2/5.5.0";new I(aw);function l1(t){return"0x"+Nr.sha256().update(te(t)).digest("hex")}const fw="networks/5.5.1",u1=new I(fw);function cw(t){return t&&typeof t.renetwork=="function"}function to(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider)try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider)try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider)try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider){const o=["goerli","ropsten","rinkeby"];try{const s=new r.PocketProvider(t);s.network&&o.indexOf(s.network.name)===-1&&i.push(s)}catch{}}if(r.CloudflareProvider)try{i.push(new r.CloudflareProvider(t))}catch{}if(i.length===0)return null;if(r.FallbackProvider){let o=1;return n.quorum!=null?o=n.quorum:t==="homestead"&&(o=2),new r.FallbackProvider(i,o)}return i[0]};return e.renetwork=function(r){return to(r)},e}function Zl(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Zl(t,n)},r}const a1={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:to("homestead")},f1={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:to("ropsten")},c1={chainId:63,name:"classicMordor",_defaultProvider:Zl("https://www.ethercluster.com/mordor","classicMordor")},Ql={unspecified:{chainId:0,name:"unspecified"},homestead:a1,mainnet:a1,morden:{chainId:2,name:"morden"},ropsten:f1,testnet:f1,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:to("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:to("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:to("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:Zl("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:c1,classicTestnet:c1,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Zl("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic"},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism"},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function hw(t){if(t==null)return null;if(typeof t=="number"){for(const n in Ql){const i=Ql[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=Ql[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=Ql[t.name];if(!e)return typeof t.chainId!="number"&&u1.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&u1.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(cw(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}function dw(t){t=atob(t);const e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return te(e)}function pw(t){t=te(t);let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}const mw="web/5.5.1";var gw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};function vw(t,e){return gw(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};
48e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client");const n=yield fetch(t,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach((s,l)=>{o[l.toLowerCase()]=s}):n.headers.keys().forEach(s=>{o[s.toLowerCase()]=n.headers.get(s)}),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:te(new Uint8Array(i))}})}var yw=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const lr=new I(mw);function h1(t){return new Promise(e=>{setTimeout(e,t)})}function kn(t,e){if(t==null)return null;if(typeof t=="string")return t;if(Af(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return qi(t)}catch{}return Y(t)}return t}function ww(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;lr.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,o=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;lr.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s={};let l=null;const a={method:"GET"};let c=!1,p=2*60*1e3;if(typeof t=="string")l=t;else if(typeof t=="object"){if((t==null||t.url==null)&&lr.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(p=t.timeout),t.headers)for(const b in t.headers)s[b.toLowerCase()]={key:b,value:String(t.headers[b])},["if-none-match","if-modified-since"].indexOf(b.toLowerCase())>=0&&(c=!0);if(a.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&lr.throwError("basic authentication requires a secure https url",I.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const b=t.user+":"+t.password;s.authorization={key:"Authorization",value:"Basic "+pw($r(b))}}}const E=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),_=l?l.match(E):null;if(_)try{const b={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]},body:dw(_[2])};let y=b.body;return r&&(y=r(b.body,b)),Promise.resolve(y)}catch(b){lr.throwError("processing response error",I.errors.SERVER_ERROR,{body:kn(_[1],_[2]),error:b,requestBody:null,requestMethod:"GET",url:l})}e&&(a.method="POST",a.body=e,s["content-type"]==null&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),s["content-length"]==null&&(s["content-length"]={key:"Content-Length",value:String(e.length)}));const N={};Object.keys(s).forEach(b=>{const y=s[b];N[y.key]=y.value}),a.headers=N;const P=function(){let b=null;return{promise:new Promise(function(R,T){p&&(b=setTimeout(()=>{b!=null&&(b=null,T(lr.makeError("timeout",I.errors.TIMEOUT,{requestBody:kn(a.body,N["content-type"]),requestMethod:a.method,timeout:p,url:l})))},p))}),cancel:function(){b!=null&&(clearTimeout(b),b=null)}}}(),O=function(){return yw(this,void 0,void 0,function*(){for(let b=0;b<n;b++){let y=null;try{if(y=yield vw(l,a),b<n){if(y.statusCode===301||y.statusCode===302){const R=y.headers.location||"";if(a.method==="GET"&&R.match(/^https:/)){l=y.headers.location;continue}}else if(y.statusCode===429){let R=!0;if(i&&(R=yield i(b,l)),R){let T=0;const H=y.headers["retry-after"];typeof H=="string"&&H.match(/^[1-9][0-9]*$/)?T=parseInt(H)*1e3:T=o*parseInt(String(Math.random()*Math.pow(2,b))),yield h1(T);continue}}}}catch(R){y=R.response,y==null&&(P.cancel(),lr.throwError("missing response",I.errors.SERVER_ERROR,{requestBody:kn(a.body,N["content-type"]),requestMethod:a.method,serverError:R,url:l}))}let k=y.body;if(c&&y.statusCode===304?k=null:(y.statusCode<200||y.statusCode>=300)&&(P.cancel(),lr.throwError("bad response",I.errors.SERVER_ERROR,{status:y.statusCode,headers:y.headers,body:kn(k,y.headers?y.headers["content-type"]:null),requestBody:kn(a.body,N["content-type"]),requestMethod:a.method,url:l})),r)try{const R=yield r(k,y);return P.cancel(),R}catch(R){if(R.throttleRetry&&b<n){let T=!0;if(i&&(T=yield i(b,l)),T){const H=o*parseInt(String(Math.random()*Math.pow(2,b)));yield h1(H);continue}}P.cancel(),lr.throwError("processing response error",I.errors.SERVER_ERROR,{body:kn(k,y.headers?y.headers["content-type"]:null),error:R,requestBody:kn(a.body,N["content-type"]),requestMethod:a.method,url:l})}return P.cancel(),k}return lr.throwError("failed response",I.errors.SERVER_ERROR,{requestBody:kn(a.body,N["content-type"]),requestMethod:a.method,url:l})})}();return Promise.race([P.promise,O])}function d1(t,e,r){let n=(o,s)=>{let l=null;if(o!=null)try{l=JSON.parse(qi(o))}catch(a){lr.throwError("invalid JSON",I.errors.SERVER_ERROR,{body:o,error:a})}return r&&(l=r(l,s)),l},i=null;if(e!=null){i=$r(e);const o=typeof t=="string"?{url:t}:ct(t);o.headers?Object.keys(o.headers).filter(l=>l.toLowerCase()==="content-type").length!==0||(o.headers=ct(o.headers),o.headers["content-type"]="application/json"):o.headers={"content-type":"application/json"},t=o}return ww(t,i,n)}function ys(t,e){return e||(e={}),e=ct(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,o=!1;const s=()=>o?!1:(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{s()&&n(new Error("timeout"))},e.timeout));const l=e.retryLimit;let a=0;function c(){return t().then(function(p){if(p!==void 0)s()&&r(p);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!o){if(a++,a>l){s()&&n(new Error("retry limit reached"));return}let E=e.interval*parseInt(String(Math.random()*Math.pow(2,a)));E<e.floor&&(E=e.floor),E>e.ceiling&&(E=e.ceiling),setTimeout(c,E)}return null},function(p){s()&&n(p)})}c()})}
48var Yl="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ic={};for(var eu=0;eu<Yl.length;eu++){var oc=Yl.charAt(eu);if(ic[oc]!==void 0)throw new TypeError(oc+" is ambiguous");ic[oc]=eu}function ro(t){var e=t>>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function p1(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=ro(e)^n>>5}for(e=ro(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=ro(e)^i&31}return e}function xw(t,e,r){if(r=r||90,t.length+7+e.length>r)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=p1(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",o=0;o<e.length;++o){var s=e[o];if(s>>5!=0)throw new Error("Non 5-bit word");n=ro(n)^s,i+=Yl.charAt(s)}for(o=0;o<6;++o)n=ro(n);for(n^=1,o=0;o<6;++o){var l=n>>(5-o)*5&31;i+=Yl.charAt(l)}return i}function m1(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var o=t.slice(0,i),s=t.slice(i+1);if(s.length<6)return"Data too short";var l=p1(o);if(typeof l=="string")return l;for(var a=[],c=0;c<s.length;++c){var p=s.charAt(c),E=ic[p];if(E===void 0)return"Unknown character "+p;l=ro(l)^E,!(c+6>=s.length)&&a.push(E)}return l!==1?"Invalid checksum for "+t:{prefix:o,words:a}}function Ew(){var t=m1.apply(null,arguments);if(typeof t=="object")return t}function _w(t){var e=m1.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function tu(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,l=[],a=0;a<t.length;++a)for(i=i<<e|t[a],o+=e;o>=r;)o-=r,l.push(i>>o&s);if(n)o>0&&l.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return l}function bw(t){var e=tu(t,8,5,!0);if(Array.isArray(e))return e}function Sw(t){var e=tu(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)}function kw(t){var e=tu(t,5,8,!1);if(Array.isArray(e))return e}function Aw(t){var e=tu(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}var g1={decodeUnsafe:Ew,decode:_w,encode:xw,toWordsUnsafe:bw,toWords:Sw,fromWordsUnsafe:kw,fromWords:Aw};const ru="providers/5.5.1",no=new I(ru);class Z{constructor(){no.checkNew(new.target,Z),this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},r=this.address.bind(this),n=this.bigNumber.bind(this),i=this.blockTag.bind(this),o=this.data.bind(this),s=this.hash.bind(this),l=this.hex.bind(this),a=this.number.bind(this),c=this.type.bind(this),p=E=>this.data(E,!0);return e.transaction={hash:s,type:c,accessList:Z.allowNull(this.accessList.bind(this),null),blockHash:Z.allowNull(s,null),blockNumber:Z.allowNull(a,null),transactionIndex:Z.allowNull(a,null),confirmations:Z.allowNull(a,null),from:r,gasPrice:Z.allowNull(n),maxPriorityFeePerGas:Z.allowNull(n),maxFeePerGas:Z.allowNull(n),gasLimit:n,to:Z.allowNull(r,null),value:n,nonce:a,data:o,r:Z.allowNull(this.uint256),s:Z.allowNull(this.uint256),v:Z.allowNull(a),creates:Z.allowNull(r,null),raw:Z.allowNull(o)},e.transactionRequest={from:Z.allowNull(r),nonce:Z.allowNull(a),gasLimit:Z.allowNull(n),gasPrice:Z.allowNull(n),maxPriorityFeePerGas:Z.allowNull(n),maxFeePerGas:Z.allowNull(n),to:Z.allowNull(r),value:Z.allowNull(n),data:Z.allowNull(p),type:Z.allowNull(a),accessList:Z.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:s,address:r,topics:Z.arrayOf(s),data:o,logIndex:a,blockHash:s},e.receipt={to:Z.allowNull(this.address,null),from:Z.allowNull(this.address,null),contractAddress:Z.allowNull(r,null),transactionIndex:a,root:Z.allowNull(l),gasUsed:n,logsBloom:Z.allowNull(o),blockHash:s,transactionHash:s,logs:Z.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:Z.allowNull(a,null),cumulativeGasUsed:n,effectiveGasPrice:Z.allowNull(n),status:Z.allowNull(a),type:c},e.block={hash:s,parentHash:s,number:a,timestamp:a,nonce:Z.allowNull(l),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:r,extraData:o,transactions:Z.allowNull(Z.arrayOf(s)),baseFeePerGas:Z.allowNull(n)},e.blockWithTransactions=ct(e.block),e.blockWithTransactions.transactions=Z.allowNull(Z.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:Z.allowNull(i,void 0),toBlock:Z.allowNull(i,void 0),blockHash:Z.allowNull(s,void 0),address:Z.allowNull(r,void 0),topics:Z.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:Z.allowNull(a),blockHash:Z.allowNull(s),transactionIndex:a,removed:Z.allowNull(this.boolean.bind(this)),address:r,data:Z.allowFalsish(o,"0x"),topics:Z.arrayOf(s),transactionHash:s,logIndex:a},e}accessList(e){return eo(e||[])}number(e){return e==="0x"?0:G.from(e).toNumber()}type(e){return e==="0x"||e==null?0:G.from(e).toNumber()}bigNumber(e){return G.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;
48if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),he(e))?e.toLowerCase():no.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return vt(e)}callAddress(e){if(!he(e,32))return null;const r=vt(Lr(e,12));return r===gv?null:r}contractAddress(e){return tp(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";if(e==="latest"||e==="pending")return e;if(typeof e=="number"||he(e))return Mf(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return rs(n)!==32?no.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=G.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!he(e))throw new Error("invalid uint256");return Qe(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=Z.check(r,e);return i._difficulty=n==null?null:G.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return Z.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&G.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=Z.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;he(n)&&(n=G.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),he(n)&&(n=G.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return ew(e)}receiptLog(e){return Z.check(this.formats.receiptLog,e)}receipt(e){const r=Z.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=G.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&no.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):no.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&no.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return Z.check(this.formats.filter,e)}filterLog(e){return Z.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const o=e[i](r[i]);o!==void 0&&(n[i]=o)}catch(o){throw o.checkKey=i,o.checkValue=r[i],o}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}var le=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const me=new I(ru);function v1(t){return t==null?"null":(rs(t)!==32&&me.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function y1(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[v1(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return v1(e)}).join("&")}function Nw(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function io(t){if(typeof t=="string"){if(t=t.toLowerCase(),rs(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+y1(t);if(iy.isForkEvent(t))throw me.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+y1(t.topics||[])}throw new Error("invalid event - "+t)}function ws(){return new Date().getTime()}function w1(t){return new Promise(e=>{setTimeout(e,t)})}const Mw=["block","network","pending","poll"];class Pw{constructor(e,r,n){$(this,"tag",e),$(this,"listener",r),$(this,"once",n
48)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=Nw(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||Mw.indexOf(this.tag)>=0}}const Rw={"0":{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},"2":{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},"3":{symbol:"doge",p2pkh:30,p2sh:22},"60":{symbol:"eth",ilk:"eth"},"61":{symbol:"etc",ilk:"eth"},"700":{symbol:"xdai",ilk:"eth"}};function sc(t){return Qe(G.from(t).toHexString(),32)}function x1(t){return s1.encode(Kt([t,Lr(l1(l1(t)),0,4)]))}const E1=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),new RegExp("^(ipfs)://(.*)$","i"),new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Tw(t){try{return qi(_1(t))}catch{}return null}function _1(t){if(t==="0x")return null;const e=G.from(Lr(t,0,32)).toNumber(),r=G.from(Lr(t,e,e+32)).toNumber();return Lr(t,e+32,e+32+r)}class b1{constructor(e,r,n,i){$(this,"provider",e),$(this,"name",n),$(this,"address",e.formatter.address(r)),$(this,"_resolvedAddress",i)}_fetchBytes(e,r){return le(this,void 0,void 0,function*(){const n={to:this.address,data:rr([e,Fl(this.name),r||"0x"])};try{return _1(yield this.provider.call(n))}catch(i){return i.code===I.errors.CALL_EXCEPTION,null}})}_getAddress(e,r){const n=Rw[String(e)];if(n==null&&me.throwError(`unsupported coin type: ${e}`,I.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=te(r);if(n.p2pkh!=null){const o=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){const s=parseInt(o[1],16);if(o[2].length===s*2&&s>=1&&s<=75)return x1(Kt([[n.p2pkh],"0x"+o[2]]))}}if(n.p2sh!=null){const o=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){const s=parseInt(o[1],16);if(o[2].length===s*2&&s>=1&&s<=75)return x1(Kt([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){const o=i[1];let s=i[0];if(s===0?o!==20&&o!==32&&(s=-1):s=-1,s>=0&&i.length===2+o&&o>=1&&o<=75){const l=g1.toWords(i.slice(2));return l.unshift(s),g1.encode(n.prefix,l)}}return null}getAddress(e){return le(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i={to:this.address,data:"0x3b3b57de"+Fl(this.name).substring(2)},o=yield this.provider.call(i);return o==="0x"||o===xv?null:this.provider.formatter.callAddress(o)}catch(i){if(i.code===I.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",sc(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&me.throwError("invalid or unsupported coin data",I.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return le(this,void 0,void 0,function*(){const e=[];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;n<E1.length;n++){const i=r.match(E1[n]);if(i!=null)switch(i[1]){case"https":return e.push({type:"url",content:r}),{linkage:e,url:r};case"data":return e.push({type:"data",content:r}),{linkage:e,url:r};case"ipfs":return e.push({type:"ipfs",content:r}),{linkage:e,url:`https://gateway.ipfs.io/ipfs/${r.substring(7)}`};case"erc721":case"erc1155":{const o=i[1]==="erc721"?"0xc87b56dd":"0x0e89341c";e.push({type:i[1],content:r});const s=this._resolvedAddress||(yield this.getAddress()),l=(i[2]||"").split("/");if(l.length!==2)return null;const a=yield this.provider.formatter.address(l[0]),c=Qe(G.from(l[1]).toHexString(),32);if(i[1]==="erc721"){const N=this.provider.formatter.callAddress(yield this.provider.call({to:a,data:rr(["0x6352211e",c])}));if(s!==N)return null;e.push({type:"owner",content:N})}else if(i[1]==="erc1155"){const N=G.from(yield this.provider.call({to:a,data:rr(["0x00fdd58e",Qe(s,32),c])}));if(N.isZero())return null;e.push({type:"balance",content:N.toString()})}const p={to:this.provider.formatter.address(l[0]),data:rr([o,c])};let E=Tw(yield this.provider.call(p));if(E==null)return null;e.push({type:"metadata-url",content:E}),i[1]==="erc1155"&&(E=E.replace("{id}",c.substring(2)));const _=yield d1(E);return!_||typeof _.image!="string"||!_.image.match(/^(https:\/\/|data:)/i)?null:(e.push({type:"metadata",content:JSON.stringify(_)}),e.push({type:"url",content:_.image}),{linkage:e,url:_.image})}}}}catch{}return null})}getContentHash(){return le(this,void 0,void 0,function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(e==null||e==="0x")return null;const r=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const i=parseInt(r[3],16);if(r[4].length===i*2)return"ipfs://"+s1.encode("0x"+r[1])}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);return n&&n[1].length===32*2?"bzz://"+n[1]:me.throwError("invalid or unsupported content hash data",I.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return le(this,void 0,void 0,function*(){let r=$r(e);r=Kt([sc(64),sc(r.length),r]),r.length%32!=0&&(r=Kt([r,Qe("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Y(r));return n==null||n==="0x"?null:qi(n)})}}let lc=null,Iw=1;class Cw extends hs{constructor(e){me.checkNew(new.target,hs);super();if(this._events=[],this._emitted={block:-2},this.formatter=new.target.getFormatter(),$(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=gr(new.target,"getNetwork")(e);
48r?($(this,"_network",r),this.emit("network",r,null)):me.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return le(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||me.throwError("no network detected",I.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:$(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return ys(()=>this._ready().then(e=>e,e=>{if(!(e.code===I.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return lc==null&&(lc=new Z),lc}static getNetwork(e){return hw(e==null?"homestead":e)}_getInternalBlockNumber(e){return le(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const o=yield i;if(ws()-o.respTime<=e)return o.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=ws(),n=ot({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:o})=>{if(o)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),o;const s=ws();return i=G.from(i).toNumber(),i<this._maxInternalBlockNumber&&(i=this._maxInternalBlockNumber),this._maxInternalBlockNumber=i,this._setFastBlockNumber(i),{blockNumber:i,reqTime:r,respTime:s}});return this._internalBlockNumber=n,n.catch(i=>{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return le(this,void 0,void 0,function*(){const e=Iw++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)me.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",me.makeError("network block skew detected",I.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const o=this._emitted[i];o!=="pending"&&n-o>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const o=i.hash;let s=this.getTransactionReceipt(o).then(l=>(!l||l.blockNumber==null||(this._emitted["t:"+o]=l.blockNumber,this.emit(o,l)),null)).catch(l=>{this.emit("error",l)});r.push(s);break}case"filter":{const o=i.filter;o.fromBlock=this._lastBlockNumber+1,o.toBlock=n;const s=this.getLogs(o).then(l=>{l.length!==0&&l.forEach(a=>{this._emitted["b:"+a.blockHash]=a.blockNumber,this._emitted["t:"+a.transactionHash]=a.blockNumber,this.emit(o,a)})}).catch(l=>{this.emit("error",l)});r.push(s);break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return le(this,void 0,void 0,function*(){return me.throwError("provider does not support network detection",I.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return le(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield w1(0),this._network;const n=me.makeError("underlying network changed",I.errors.NETWORK_E
48RROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=ws();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&e<this._fastBlockNumber||(this._fastQueryDate=ws(),(this._fastBlockNumber==null||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return le(this,void 0,void 0,function*(){return this._waitForTransaction(e,r==null?1:r,n||0,null)})}_waitForTransaction(e,r,n,i){return le(this,void 0,void 0,function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=r?o:new Promise((s,l)=>{const a=[];let c=!1;const p=function(){return c?!0:(c=!0,a.forEach(_=>{_()}),!1)},E=_=>{_.confirmations<r||p()||s(_)};if(this.on(e,E),a.push(()=>{this.removeListener(e,E)}),i){let _=i.startBlock,N=null;const P=O=>le(this,void 0,void 0,function*(){c||(yield w1(1e3),this.getTransactionCount(i.from).then(b=>le(this,void 0,void 0,function*(){if(!c){if(b<=i.nonce)_=O;else{{const y=yield this.getTransaction(e);if(y&&y.blockNumber!=null)return}for(N==null&&(N=_-3,N<i.startBlock&&(N=i.startBlock));N<=O;){if(c)return;const y=yield this.getBlockWithTransactions(N);for(let k=0;k<y.transactions.length;k++){const R=y.transactions[k];if(R.hash===e)return;if(R.from===i.from&&R.nonce===i.nonce){if(c)return;const T=yield this.waitForTransaction(R.hash,r);if(p())return;let H="replaced";R.data===i.data&&R.to===i.to&&R.value.eq(i.value)?H="repriced":R.data==="0x"&&R.from===R.to&&R.value.isZero()&&(H="cancelled"),l(me.makeError("transaction was replaced",I.errors.TRANSACTION_REPLACED,{cancelled:H==="replaced"||H==="cancelled",reason:H,replacement:this._wrapTransaction(R),hash:e,receipt:T}));return}}N++}}c||this.once("block",P)}}),b=>{c||this.once("block",P)}))});if(c)return;this.once("block",P),a.push(()=>{this.removeListener("block",P)})}if(typeof n=="number"&&n>0){const _=setTimeout(()=>{p()||l(me.makeError("timeout exceeded",I.errors.TIMEOUT,{timeout:n}))},n);_.unref&&_.unref(),a.push(()=>{clearTimeout(_)})}})})}getBlockNumber(){return le(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return le(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return G.from(e)}catch(r){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return le(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield ot({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return G.from(i)}catch(o){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:o})}})}getTransactionCount(e,r){return le(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield ot({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return G.from(i).toNumber()}catch(o){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:o})}})}getCode(e,r){return le(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield ot({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return Y(i)}catch(o){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:o})}})}getStorageAt(e,r,n){return le(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield ot({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Prom
48ise.resolve(r).then(s=>Mf(s))}),o=yield this.perform("getStorageAt",i);try{return Y(o)}catch(s){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:s})}})}_wrapTransaction(e,r,n){if(r!=null&&rs(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&me.throwError("Transaction hash mismatch from Provider.sendTransaction.",I.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(o,s)=>le(this,void 0,void 0,function*(){o==null&&(o=1),s==null&&(s=0);let l;o!==0&&n!=null&&(l={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const a=yield this._waitForTransaction(e.hash,o,s,l);return a==null&&o===0?null:(this._emitted["t:"+e.hash]=a.blockNumber,a.status===0&&me.throwError("transaction failed",I.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)}),i}sendTransaction(e){return le(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(o=>Y(o)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const o=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,o,i)}catch(o){throw o.transaction=n,o.transactionHash=n.hash,o}})}_getTransactionRequest(e){return le(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(o=>o?this._getAddress(o):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(o=>o?G.from(o):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(o=>o!=null?o:null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(o=>o?Y(o):null))}),this.formatter.transactionRequest(yield ot(n))})}_getFilter(e){return le(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield ot(r))})}call(e,r){return le(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield ot({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("call",n);try{return Y(i)}catch(o){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"call",params:n,result:i,error:o})}})}estimateGas(e){return le(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield ot({transaction:this._getTransactionRequest(e)}),n=yield this.perform("estimateGas",r);try{return G.from(n)}catch(i){return me.throwError("bad result from backend",I.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:i})}})}_getAddress(e){return le(this,void 0,void 0,function*(){e=yield e,typeof e!="string"&&me.throwArgumentError("invalid address or ENS name","name",e);const r=yield this.resolveName(e);return r==null&&me.throwError("ENS name not configured",I.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),r})}_getBlock(e,r){return le(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let n=-128;const i={includeTransactions:!!r};if(he(e,32))i.blockHash=e;else try{i.blockTag=yield this._getBlockTag(e),he(i.blockTag)&&(n=parseInt(i.blockTag.substring(2),16))}catch{me.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return ys(()=>le(this,void 0,void 0,function*(){const o=yield this.perform("getBlock",i);if(o==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let s=null;for(let a=0;a<o.transactions.length;a++){const c=o.transactions[a];if(c.blockNumber==null)c.confirmations=0;else if(c.confirmations==null){s==null&&(s=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let p=s-c.blockNumber+1;p<=0&&(p=1),c.confirmations=p}}const l=this.formatter.blockWithTransactions(o);return l.transactions=l.transactions.map(a=>this._wrapTransaction(a)),l}return this.formatter.block(o)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return le(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return ys(()=>le(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);
48if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let s=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;s<=0&&(s=1),i.confirmations=s}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return le(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return ys(()=>le(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let s=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;s<=0&&(s=1),i.confirmations=s}return i}),{oncePoll:this})})}getLogs(e){return le(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield ot({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),Z.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return le(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return le(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&me.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return le(this,void 0,void 0,function*(){try{const r=yield this._getResolver(e);return r==null?null:new b1(this,r,e)}catch(r){return r.code===I.errors.CALL_EXCEPTION,null}})}_getResolver(e){return le(this,void 0,void 0,function*(){const r=yield this.getNetwork();r.ensAddress||me.throwError("network does not support ENS",I.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:r.name});const n={to:r.ensAddress,data:"0x0178b8bf"+Fl(e).substring(2)};try{return this.formatter.callAddress(yield this.call(n))}catch(i){if(i.code===I.errors.CALL_EXCEPTION)return null;throw i}})}resolveName(e){return le(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(he(e))throw n}typeof e!="string"&&me.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return le(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r);if(!n)return null;let i=te(yield this.call({to:n,data:"0x691f3431"+Fl(r).substring(2)}));if(i.length<32||!G.from(i.slice(0,32)).eq(32)||(i=i.slice(32),i.length<32))return null;const o=G.from(i.slice(0,32)).toNumber();if(i=i.slice(32),o>i.length)return null;const s=qi(i.slice(0,o));return(yield this.resolveName(s))!=e?null:s})}getAvatar(e){return le(this,void 0,void 0,function*(){let r=null;if(he(e)){const i=this.formatter.address(e),o=i.substring(2).toLowerCase()+".addr.reverse",s=yield this._getResolver(o);if(!s)return null;r=new b1(this,s,"_",i)}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return me.throwError(e+" not implemented",I.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new Pw(io(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],o=io(e);return this._events=this._events.filter(s=>s.tag!==o?!0:(setTimeout(()=>{s.listener.apply(this,r)}
48,0),n=!0,s.once?(i.push(s),!1):!0)),i.forEach(s=>{this._stopEvent(s)}),n}listenerCount(e){if(!e)return this._events.length;let r=io(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=io(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,o=io(e);return this._events=this._events.filter(s=>s.tag!==o||s.listener!=r||i?!0:(i=!0,n.push(s),!1)),n.forEach(s=>{this._stopEvent(s)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=io(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var qr=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(p){try{c(n.next(p))}catch(E){s(E)}}function a(p){try{c(n.throw(p))}catch(E){s(E)}}function c(p){p.done?o(p.value):i(p.value).then(l,a)}c((n=n.apply(t,e||[])).next())})};const wt=new I(ru),Ow=["call","estimateGas"];function S1(t,e,r){if(t==="call"&&e.code===I.errors.SERVER_ERROR){const o=e.error;if(o&&o.message.match("reverted")&&he(o.data))return o.data;wt.throwError("missing revert data in call exception",I.errors.CALL_EXCEPTION,{error:e,data:"0x"})}let n=e.message;e.code===I.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?n=e.error.message:typeof e.body=="string"?n=e.body:typeof e.responseText=="string"&&(n=e.responseText),n=(n||"").toLowerCase();const i=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&wt.throwError("insufficient funds for intrinsic transaction cost",I.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:i}),n.match(/nonce too low/)&&wt.throwError("nonce has already been used",I.errors.NONCE_EXPIRED,{error:e,method:t,transaction:i}),n.match(/replacement transaction underpriced/)&&wt.throwError("replacement fee too low",I.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:i}),n.match(/only replay-protected/)&&wt.throwError("legacy pre-eip-155 transactions not supported",I.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:i}),Ow.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&wt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",I.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:i}),e}function k1(t){return new Promise(function(e){setTimeout(e,t)})}function Bw(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function xs(t){return t&&t.toLowerCase()}const uc={};class nu extends ds{constructor(e,r,n){wt.checkNew(new.target,nu);super();if(e!==uc)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");$(this,"provider",r),n==null&&(n=0),typeof n=="string"?($(this,"_address",this.provider.formatter.address(n)),$(this,"_index",null)):typeof n=="number"?($(this,"_index",n),$(this,"_address",null)):wt.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return wt.throwError("cannot alter JSON-RPC Signer connection",I.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Lw(uc,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&wt.throwError("unknown account #"+this._index,I.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ct(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ct(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>qr(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&wt.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),ot({tx:ot(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&wt.throwArgumentError("from address mismatch","transaction",e):n.from=i;const o=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[o]).then(s=>s,s=>S1("sendTransaction",s,o))})}signTransaction(e){return wt.throwError("signing transactions is unsupported",I.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return qr(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield ys(()=>qr(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return qr(this,void 0,void 0,function*(){const r=typeof e=="string"?$r(e):e,n=yield this.getAddress();return yield this.provider.send("personal_sign",[Y(r),n.toLowerCase()])})}_legacySignMessage(e){return qr(this,void 0,void 0,function*(){const r=typeof e=="string"?$r(e):e,n=yield this.getAddress();return yield this.provider.send("eth_sign",[n.toLowerCase(),Y(r)])})}_signTypedData(e,r,n){return qr(this,void 0,void 0,function*(){const i=yield Ut.resolveNames(e,r,n,s=>this.provider.resolveName(s)),o=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(Ut.getPayload(i.domain,r,i.value))])})}unlock(e){return qr(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class Lw extends nu{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const Fw={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ac extends Cw{constructor(e,r){wt.checkNew(new.target,ac);let n=r;n==null&&(n=new Promise((i,o)=>{setTimeout(()=>{this.detectNetwork().then(s=>{i(s)},s=>{o(s)})},0)}));super(n);e||(e=gr(this.constructor,"defaultUrl")()),typeof e=="string"?$(this,"connection",Object.freeze({url:e})):$(this,"connection",Object.freeze(ct(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return qr(this,void 0,void 0,function*(){yield k1(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=gr(this.constructor,"getNetwork");try{return r(G.from(e).toNumber())}catch(n){return wt.throwError("could not detect network",I.errors.NETWORK_E
48RROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return wt.throwError("could not detect network",I.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new nu(uc,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Fr(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const o=d1(this.connection,JSON.stringify(n),Bw).then(s=>(this.emit("debug",{action:"response",request:n,response:s,provider:this}),s),s=>{throw this.emit("debug",{action:"response",error:s,request:n,provider:this}),s});return i&&(this._cache[e]=o,setTimeout(()=>{this._cache[e]=null},0)),o}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[xs(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[xs(r.address),r.blockTag]];case"getCode":return["eth_getCode",[xs(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[xs(r.address),r.position,r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":{const n=gr(this.constructor,"hexlifyTransaction");return["eth_call",[n(r.transaction,{from:!0}),r.blockTag]]}case"estimateGas":{const n=gr(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[n(r.transaction,{from:!0})]]}case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=xs(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return qr(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&G.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const o=yield this.getFeeData();o.maxFeePerGas==null&&o.maxPriorityFeePerGas==null&&(r=ct(r),r.transaction=ct(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&wt.throwError(e+" not implemented",I.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return S1(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(o){if(e._pendingFilter!=r)return null;let s=Promise.resolve();return o.forEach(function(l){e._emitted["t:"+l.toLowerCase()]="pending",s=s.then(function(){return e.getTransaction(l).then(function(a){return e.emit("pending",a),null})})}),s.then(function(){return k1(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(o=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=ct(Fw);if(r)for(const o in r)r[o]&&(n[o]=!0);Kg(e,n);const i={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(e[o]==null)return;const s=Mf(e[o]);o==="gasLimit"&&(o="gas"),i[o]=s}),["from","to","data"].forEach(function(o){e[o]!=null&&(i[o]=Y(e[o]))}),e.accessList&&(i.accessList=eo(e.accessList)),i}}const fc=new I(ru);let Uw=1;function A1(t,e){const r="Web3LegacyFetcher";return function(n,i){const o={method:n,params:i,id:Uw++,jsonrpc:"2.0"};return new Promise((s,l)=>{this.emit("debug",{action:"request",fetcher:r,request:Fr(o),provider:this}),e(o,(a,c)=>
48{if(a)return this.emit("debug",{action:"response",fetcher:r,error:a,request:o,provider:this}),l(a);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:c,provider:this}),c.error){const p=new Error(c.error.message);return p.code=c.error.code,p.data=c.error.data,l(p)}s(c.result)})})}}function zw(t){return function(e,r){r==null&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Fr(n),provider:this}),t.request(n).then(i=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:i,provider:this}),i),i=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:i,provider:this}),i})}}class N1 extends ac{constructor(e,r){fc.checkNew(new.target,N1),e==null&&fc.throwArgumentError("missing provider","provider",e);let n=null,i=null,o=null;typeof e=="function"?(n="unknown:",i=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),o=e,e.request?(n===""&&(n="eip-1193:"),i=zw(e)):e.sendAsync?i=A1(e,e.sendAsync.bind(e)):e.send?i=A1(e,e.send.bind(e)):fc.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:"));super(n,r);$(this,"jsonRpcFetchFunc",i),$(this,"provider",o)}send(e,r){return this.jsonRpcFetchFunc(e,r)}}const Dw="units/5.5.0",$w=new I(Dw),jw=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Vw(t,e){if(typeof t!="string"&&$w.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=jw.indexOf(e);r!==-1&&(e=3*r)}return mr(t,e!=null?e:18)}function Zw(t){return Vw(t,18)}function Qw(t){return ri({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"}}]})(t)}export{Gw as A,Kw as B,uw as C,qw as H,Xw as R,Qw as S,N1 as W,Jw as a,$n as b,Ww as c,Hw as d,Tg as j,Zw as p,Es as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.