vendor: 20,276 bytes, lines 1-34
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var da=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Pm(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Vh={exports:{}},pa={},Gh={exports:{}},dt={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Os=Symbol.for("react.element"),Lm=Symbol.for("react.portal"),$m=Symbol.for("react.fragment"),Om=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),qm=Symbol.for("react.provider"),zm=Symbol.for("react.context"),Hm=Symbol.for("react.forward_ref"),Km=Symbol.for("react.suspense"),Vm=Symbol.for("react.memo"),Gm=Symbol.for("react.lazy"),wd=Symbol.iterator;function Wm(t){return t===null||typeof t!="object"?null:(t=wd&&t[wd]||t["@@iterator"],typeof t=="function"?t:null)}var Wh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yh=Object.assign,Xh={};function Oi(t,e,r){this.props=t,this.context=e,this.refs=Xh,this.updater=r||Wh}Oi.prototype.isReactComponent={};Oi.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Oi.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Qh(){}Qh.prototype=Oi.prototype;function Tf(t,e,r){this.props=t,this.context=e,this.refs=Xh,this.updater=r||Wh}var If=Tf.prototype=new Qh;If.constructor=Tf;Yh(If,Oi.prototype);If.isPureReactComponent=!0;var vd=Array.isArray,Jh=Object.prototype.hasOwnProperty,Cf={current:null},Zh={key:!0,ref:!0,__self:!0,__source:!0};function ep(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Jh.call(e,n)&&!Zh.hasOwnProperty(n)&&(i[n]=e[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var g=Array(l),d=0;d<l;d++)g[d]=arguments[d+2];i.children=g}if(t&&t.defaultProps)for(n in l=t.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Os,type:t,key:s,ref:o,props:i,_owner:Cf.current}}function Ym(t,e){return{$$typeof:Os,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function jf(t){return typeof t=="object"&&t!==null&&t.$$typeof===Os}function Xm(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var bd=/\/+/g;function Jl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Xm(""+t.key):e.toString(36)}function Ao(t,e,r,n,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Os:case Lm:o=!0}}if(o)return o=t,i=i(o),t=n===""?"."+Jl(o,0):n,vd(i)?(r="",t!=null&&(r=t.replace(bd,"$&/")+"/"),Ao(i,e,r,"",function(d){return d})):i!=null&&(jf(i)&&(i=Ym(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(bd,"$&/")+"/")+t)),e.push(i)),1;if(o=0,n=n===""?".":n+":",vd(t))for(var l=0;l<t.length;l++){s=t[l];var g=n+Jl(s,l);o+=Ao(s,e,r,g,i)}else if(g=Wm(t),typeof g=="function")for(t=g.call(t),l=0;!(s=t.next()).done;)s=s.value,g=n+Jl(s,l++),o+=Ao(s,e,r,g,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function io(t,e,r){if(t==null)return t;var n=[],i=0;return Ao(t,n,"","",function(s){return e.call(r,s,i++)}),n}function Qm(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var hr={current:null},Eo={transition:null},Jm={ReactCurrentDispatcher:hr,ReactCurrentBatchConfig:Eo,ReactCurrentOwner:Cf};function tp(){throw Error("act(...) is not supported in production builds of React.")}dt.Children={map:io,forEach:function(t,e,r){io(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return io(t,function(){e++}),e},toArray:function(t){return io(t,function(e){return e})||[]},only:function(t){if(!jf(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};dt.Component=Oi;dt.Fragment=$m;dt.Profiler=Mm;dt.PureComponent=Tf;dt.StrictMode=Om;dt.Suspense=Km;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jm;dt.act=tp;dt.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Yh({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=Cf.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(g in e)Jh.call(e,g)&&!Zh.hasOwnProperty(g)&&(n[g]=e[g]===void 0&&l!==void 0?l[g]:e[g])}var g=arguments.length-2;if(g===1)n.children=r;else if(1<g){l=Array(g);for(var d=0;d<g;d++)l[d]=arguments[d+2];n.children=l}return{$$typeof:Os,type:t.type,key:i,ref:s,props:n,_owner:o}};dt.createContext=function(t){return t={$$typeof:zm,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:qm,_context:t},t.Consumer=t};dt.createElement=ep;dt.createFactory=function(t){var e=ep.bind(null,t);return e.type=t,e};dt.createRef=function(){return{current:null}};dt.forwardRef=function(t){return{$$typeof:Hm,render:t}};dt.isValidElement=jf;dt.lazy=function(t){return{$$typeof:Gm,_payload:{_status:-1,_result:t},_init:Qm}};dt.memo=function(t,e){return{$$typeof:Vm,type:t,compare:e===void 0?null:e}};dt.startTransition=function(t){var e=Eo.transition;Eo.transition={};try{t()}finally{Eo.transition=e}};dt.unstable_act=tp;dt.useCallback=function(t,e){return hr.current.useCallback(t,e)};dt.useContext=function(t){return hr.current.useContext(t)};dt.useDebugValue=function(){};dt.useDeferredValue=function(t){return hr.current.useDeferredValue(t)};dt.useEffect=function(t,e){return hr.current.useEffect(t,e)};dt.useId=function(){return hr.current.useId()};dt.useImperativeHandle=function(t,e,r){return hr.current.useImperativeHandle(t,e,r)};dt.useInsertionEffect=function(t,e){return hr.current.useInsertionEffect(t,e)};dt.useLayoutEffect=function(t,e){return hr.current.useLayoutEffect(t,e)};dt.useMemo=function(t,e){return hr.current.useMemo(t,e)};dt.useReducer=function(t,e,r){return hr.current.useReducer(t,e,r)};dt.useRef=function(t){return hr.current.useRef(t)};dt.useState=function(t){return hr.current.useState(t)};dt.useSyncExternalStore=function(t,e,r){return hr.current.useSyncExternalStore(t,e,r)};dt.useTransition=function(){return hr.current.useTransition()};dt.version="18.3.1";Gh.exports=dt;var Pt=Gh.exports;/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Zm=Pt,ey=Symbol.for("react.element"),ty=Symbol.for("react.fragment"),ry=Object.prototype.hasOwnProperty,ny=Zm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iy={key:!0,ref:!0,__self:!0,__source:!0};function rp(t,e,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(n in e)ry.call(e,n)&&!iy.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:ey,type:t,key:s,ref:o,props:i,_owner:ny.current}}pa.Fragment=ty;pa.jsx=rp;pa.jsxs=rp;Vh.exports=pa;var N=Vh.exports,np={exports:{}},kr={},ip={exports:{}},sp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(t){function e(pe,we){var _e=pe.length;pe.push(we);e:for(;0<_e;){var Be=_e-1>>>1,Re=pe[Be];if(0<i(Re,we))pe[Be]=we,pe[_e]=Re,_e=Be;else break e}}function r(pe){return pe.length===0?null:pe[0]}function n(pe){if(pe.length===0)return null;var we=pe[0],_e=pe.pop();if(_e!==we){pe[0]=_e;e:for(var Be=0,Re=pe.length,Te=Re>>>1;Be<Te;){var fe=2*(Be+1)-1,$e=pe[fe],it=fe+1,ht=pe[it];if(0>i($e,_e))it<Re&&0>i(ht,$e)?(pe[Be]=ht,pe[it]=_e,Be=it):(pe[Be]=$e,pe[fe]=_e,Be=fe);else if(it<Re&&0>i(ht,_e))pe[Be]=ht,pe[it]=_e,Be=it;else break e}}return we}function i(pe,we){var _e=pe.sortIndex-we.sortIndex;return _e!==0?_e:pe.id-we.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var g=[],d=[],k=1,C=null,j=3,X=!1,H=!1,G=!1,D=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(pe){for(var we=r(d);we!==null;){if(we.callback===null)n(d);else if(we.startTime<=pe)n(d),we.sortIndex=we.expirationTime,e(g,we);else break;we=r(d)}}function W(pe){if(G=!1,T(pe),!H)if(r(g)!==null)H=!0,Le(J);else{var we=r(d);we!==null&&Ye(W,we.startTime-pe)}}function J(pe,we){H=!1,G&&(G=!1,R(M),M=-1),X=!0;var _e=j;try{for(T(we),C=r(g);C!==null&&(!(C.expirationTime>we)||pe&&!he());){var Be=C.callback;if(typeof Be=="function"){C.callback=null,j=C.priorityLevel;var Re=Be(C.expirationTime<=we);we=t.unstable_now(),typeof Re=="function"?C.callback=Re:C===r(g)&&n(g),T(we)}else n(g);C=r(g)}if(C!==null)var Te=!0;else{var fe=r(d);fe!==null&&Ye(W,fe.startTime-we),Te=!1}return Te}finally{C=null,j=_e,X=!1}}var A=!1,P=null,M=-1,se=5,$=-1;function he(){return!(t.unstable_now()-$<se)}function ae(){if(P!==null){var pe=t.unstable_now();$=pe;var we=!0;try{we=P(!0,pe)}finally{we?de():(A=!1,P=null)}}else A=!1}var de;if(typeof w=="function")de=function(){w(ae)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Ie=xe.port2;xe.port1.onmessage=ae,de=function(){Ie.postMessage(null)}}else de=function(){D(ae,0)};function Le(pe){P=pe,A||(A=!0,de())}function Ye(pe,we){M=D(function(){pe(t.unstable_now())},we)}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(pe){pe.callback=null},t.unstable_continueExecution=function(){H||X||(H=!0,Le(J))},t.unstable_forceFrameRate=function(pe){0>pe||125<pe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<pe?Math.floor(1e3/pe):5},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return r(g)},t.unstable_next=function(pe){switch(j){case 1:case 2:case 3:var we=3;break;default:we=j}var _e=j;j=we;try{return pe()}finally{j=_e}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(pe,we){switch(pe){case 1:case 2:case 3:case 4:case 5:break;default:pe=3}var _e=j;j=pe;try{return we()}finally{j=_e}},t.unstable_scheduleCallback=function(pe,we,_e){var Be=t.unstable_now();switch(typeof _e=="object"&&_e!==null?(_e=_e.delay,_e=typeof _e=="number"&&0<_e?Be+_e:Be):_e=Be,pe){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=_e+Re,pe={id:k++,callback:we,priorityLevel:pe,startTime:_e,expirationTime:Re,sortIndex:-1},_e>Be?(pe.sortIndex=_e,e(d,pe),r(g)===null&&pe===r(d)&&(G?(R(M),M=-1):G=!0,Ye(W,_e-Be))):(pe.sortIndex=Re,e(g,pe),H||X||(H=!0,Le(J))),pe},t.unstable_shouldYield=he,t.unstable_wrapCallback=function(pe){var we=j;return function(){var _e=j;j=we;try{return pe.apply(this,arguments)}finally{j=_e}}}})(sp);ip.exports=sp;var sy=ip.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var oy=Pt,Sr=sy;function Fe(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 op=new Set,xs={};function si(t,e){Ii(t,e),Ii(t+"Capture",e)}function Ii(t,e){for(xs[t]=e,t=0;t<e.length;t++)op.add(e[t])}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tu=Object.prototype.hasOwnProperty,ay=/^[: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]*$/,_d={},Ad={};function ly(t){return Tu.call(Ad,t)?!0:Tu.call(_d,t)?!1:ay.test(t)?Ad[t]=!0:(_d[t]=!0,!1)}function uy(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 fy(t,e,r,n){if(e===null||typeof e>"u"||uy(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 pr(t,e,r,n,i,s,o){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=s,this.removeEmptyString=o}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Zt[t]=new pr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Zt[e]=new pr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Zt[t]=new pr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Zt[t]=new pr(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){Zt[t]=new pr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Zt[t]=new pr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Zt[t]=new pr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Zt[t]=new pr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Zt[t]=new pr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Nf=/[\-:]([a-z])/g;function Uf(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(Nf,Uf);Zt[e]=new pr(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(Nf,Uf);Zt[e]=new pr(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(Nf,Uf);Zt[e]=new pr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Zt[t]=new pr(t,1,!1,t.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new pr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Zt[t]=new pr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Df(t,e,r,n){var i=Zt.hasOwnProperty(e)?Zt[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(fy(e,r,i,n)&&(r=null),n||i===null?ly(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 gn=oy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,so=Symbol.for("react.element"),ci=Symbol.for("react.portal"),di=Symbol.for("react.fragment"),Pf=Symbol.for("react.strict_mode"),Iu=Symbol.for("react.profiler"),ap=Symbol.for("react.provider"),lp=Symbol.for("react.context"),Lf=Symbol.for("react.forward_ref"),Cu=Symbol.for("react.suspense"),ju=Symbol.for("react.suspense_list"),$f=Symbol.for("react.memo"),yn=Symbol.for("react.lazy"),up=Symbol.for("react.offscreen"),Ed=Symbol.iterator;function Gi(t){return t===null||typeof t!="object"?null:(t=Ed&&t[Ed]||t["@@iterator"],typeof t=="function"?t:null)}var Bt=Object.assign,Zl;function ss(t){if(Zl===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Zl=e&&e[1]||""}return` 34`+Zl+t}var eu=!1;function tu(t,e){if(!t||eu)return"";eu=!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(d){var n=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){n=d}t.call(e.prototype)}else{try{throw Error()}catch(d){n=d}t()}}
vendor: 16,599 bytes, lines 34-37
34catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(` 35`),s=n.stack.split(` 36`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var g=` 37`+i[o].replace(" at new "," at ");return t.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",t.displayName)),g}while(1<=o&&0<=l);break}}}finally{eu=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?ss(t):""}function cy(t){switch(t.tag){case 5:return ss(t.type);case 16:return ss("Lazy");case 13:return ss("Suspense");case 19:return ss("SuspenseList");case 0:case 2:case 15:return t=tu(t.type,!1),t;case 11:return t=tu(t.type.render,!1),t;case 1:return t=tu(t.type,!0),t;default:return""}}function Nu(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 di:return"Fragment";case ci:return"Portal";case Iu:return"Profiler";case Pf:return"StrictMode";case Cu:return"Suspense";case ju:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case lp:return(t.displayName||"Context")+".Consumer";case ap:return(t._context.displayName||"Context")+".Provider";case Lf:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $f:return e=t.displayName||null,e!==null?e:Nu(t.type)||"Memo";case yn:e=t._payload,t=t._init;try{return Nu(t(e))}catch{}}return null}function dy(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nu(e);case 8:return e===Pf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Cn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function hy(t){var e=fp(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function oo(t){t._valueTracker||(t._valueTracker=hy(t))}function cp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=fp(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Do(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Uu(t,e){var r=e.checked;return Bt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Fd(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Cn(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 dp(t,e){e=e.checked,e!=null&&Df(t,"checked",e,!1)}function Du(t,e){dp(t,e);var r=Cn(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")?Pu(t,e.type,r):e.hasOwnProperty("defaultValue")&&Pu(t,e.type,Cn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Sd(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 Pu(t,e,r){(e!=="number"||Do(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var os=Array.isArray;function Ai(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=""+Cn(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 Lu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Fe(91));return Bt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function kd(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(Fe(92));if(os(r)){if(1<r.length)throw Error(Fe(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Cn(r)}}function hp(t,e){var r=Cn(e.value),n=Cn(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 Rd(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function pp(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"?pp(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ao,gp=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(ao=ao||document.createElement("div"),ao.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ao.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ws(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var us={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},py=["Webkit","ms","Moz","O"];Object.keys(us).forEach(function(t){py.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),us[e]=us[t]})});function mp(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||us.hasOwnProperty(t)&&us[t]?(""+e).trim():e+"px"}function yp(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=mp(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var gy=Bt({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 Ou(t,e){if(e){if(gy[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Fe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Fe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Fe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Fe(62))}}function Mu(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}}var qu=null;function Of(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var zu=null,Ei=null,Fi=null;function Bd(t){if(t=zs(t)){if(typeof zu!="function")throw Error(Fe(280));var e=t.stateNode;e&&(e=wa(e),zu(t.stateNode,t.type,e))}}function xp(t){Ei?Fi?Fi.push(t):Fi=[t]:Ei=t}function wp(){if(Ei){var t=Ei,e=Fi;if(Fi=Ei=null,Bd(t),e)for(t=0;t<e.length;t++)Bd(e[t])}}function vp(t,e){return t(e)}function bp(){}var ru=!1;function _p(t,e,r){if(ru)return t(e,r);ru=!0;try{return vp(t,e,r)}finally{ru=!1,(Ei!==null||Fi!==null)&&(bp(),wp())}}function vs(t,e){var r=t.stateNode;if(r===null)return null;var n=wa(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(Fe(231,e,typeof r));return r}var Hu=!1;if(fn)try{var Wi={};Object.defineProperty(Wi,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{Hu=!1}function my(t,e,r,n,i,s,o,l,g){var d=Array.prototype.slice.call(arguments,3);try{e.apply(r,d)}catch(k){this.onError(k)}}var fs=!1,Po=null,Lo=!1,Ku=null,yy={onError:function(t){fs=!0,Po=t}};function xy(t,e,r,n,i,s,o,l,g){fs=!1,Po=null,my.apply(yy,arguments)}function wy(t,e,r,n,i,s,o,l,g){if(xy.apply(this,arguments),fs){if(fs){var d=Po;fs=!1,Po=null}else throw Error(Fe(198));Lo||(Lo=!0,Ku=d)}}function oi(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function Ap(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 Td(t){if(oi(t)!==t)throw Error(Fe(188))}function vy(t){var e=t.alternate;if(!e){if(e=oi(t),e===null)throw Error(Fe(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Td(i),t;if(s===n)return Td(i),e;s=s.sibling}throw Error(Fe(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=s;break}if(l===n){o=!0,n=i,r=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===r){o=!0,r=s,n=i;break}if(l===n){o=!0,n=s,r=i;break}l=l.sibling}if(!o)throw Error(Fe(189))}}if(r.alternate!==n)throw Error(Fe(190))}if(r.tag!==3)throw Error(Fe(188));return r.stateNode.current===r?t:e}function Ep(t){return t=vy(t),t!==null?Fp(t):null}function Fp(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Fp(t);if(e!==null)return e;t=t.sibling}return null}var Sp=Sr.unstable_scheduleCallback,Id=Sr.unstable_cancelCallback,by=Sr.unstable_shouldYield,_y=Sr.unstable_requestPaint,Lt=Sr.unstable_now,Ay=Sr.unstable_getCurrentPriorityLevel,Mf=Sr.unstable_ImmediatePriority,kp=Sr.unstable_UserBlockingPriority,$o=Sr.unstable_NormalPriority,Ey=Sr.unstable_LowPriority,Rp=Sr.unstable_IdlePriority,ga=null,Qr=null;function Fy(t){if(Qr&&typeof Qr.onCommitFiberRoot=="function")try{Qr.onCommitFiberRoot(ga,t,void 0,(t.current.flags&128)===128)}catch{}}var qr=Math.clz32?Math.clz32:Ry,Sy=Math.log,ky=Math.LN2;function Ry(t){return t>>>=0,t===0?32:31-(Sy(t)/ky|0)|0}var lo=64,uo=4194304;function as(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Oo(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=as(l):(s&=o,s!==0&&(n=as(s)))}else o=r&~i,o!==0?n=as(o):s!==0&&(n=as(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-qr(e),i=1<<r,n|=t[r],e&=~i;return n}function By(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ty(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-qr(s),l=1<<o,g=i[o];g===-1?(!(l&r)||l&n)&&(i[o]=By(l,e)):g<=e&&(t.expiredLanes|=l),s&=~l}}function Vu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Bp(){var t=lo;return lo<<=1,!(lo&4194240)&&(lo=64),t}function nu(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Ms(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-qr(e),t[e]=r}function Iy(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var i=31-qr(r),s=1<<i;e[i]=0,n[i]=-1,t[i]=-1,r&=~s}}function qf(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-qr(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}var _t=0;function Tp(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Ip,zf,Cp,jp,Np,Gu=!1,fo=[],An=null,En=null,Fn=null,bs=new Map,_s=new Map,wn=[],Cy="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 Cd(t,e){switch(t){case"focusin":case"focusout":An=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":bs.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(e.pointerId)}}function Yi(t,e,r,n,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=zs(e),e!==null&&zf(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function jy(t,e,r,n,i){switch(e){case"focusin":return An=Yi(An,t,e,r,n,i),!0;case"dragenter":return En=Yi(En,t,e,r,n,i),!0;case"mouseover":return Fn=Yi(Fn,t,e,r,n,i),!0;case"pointerover":var s=i.pointerId;return bs.set(s,Yi(bs.get(s)||null,t,e,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,_s.set(s,Yi(_s.get(s)||null,t,e,r,n,i)),!0}return!1}function Up(t){var e=zn(t.target);if(e!==null){var r=oi(e);if(r!==null){if(e=r.tag,e===13){if(e=Ap(r),e!==null){t.blockedOn=e,Np(t.priority,function(){Cp(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Wu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);qu=n,r.target.dispatchEvent(n),qu=null}else return e=zs(r),e!==null&&zf(e),t.blockedOn=r,!1;e.shift()}return!0}
vendor: 11,995 bytes, line 37
37function jd(t,e,r){Fo(t)&&r.delete(e)}function Ny(){Gu=!1,An!==null&&Fo(An)&&(An=null),En!==null&&Fo(En)&&(En=null),Fn!==null&&Fo(Fn)&&(Fn=null),bs.forEach(jd),_s.forEach(jd)}function Xi(t,e){t.blockedOn===e&&(t.blockedOn=null,Gu||(Gu=!0,Sr.unstable_scheduleCallback(Sr.unstable_NormalPriority,Ny)))}function As(t){function e(i){return Xi(i,t)}if(0<fo.length){Xi(fo[0],t);for(var r=1;r<fo.length;r++){var n=fo[r];n.blockedOn===t&&(n.blockedOn=null)}}for(An!==null&&Xi(An,t),En!==null&&Xi(En,t),Fn!==null&&Xi(Fn,t),bs.forEach(e),_s.forEach(e),r=0;r<wn.length;r++)n=wn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<wn.length&&(r=wn[0],r.blockedOn===null);)Up(r),r.blockedOn===null&&wn.shift()}var Si=gn.ReactCurrentBatchConfig,Mo=!0;function Uy(t,e,r,n){var i=_t,s=Si.transition;Si.transition=null;try{_t=1,Hf(t,e,r,n)}finally{_t=i,Si.transition=s}}function Dy(t,e,r,n){var i=_t,s=Si.transition;Si.transition=null;try{_t=4,Hf(t,e,r,n)}finally{_t=i,Si.transition=s}}function Hf(t,e,r,n){if(Mo){var i=Wu(t,e,r,n);if(i===null)hu(t,e,n,qo,r),Cd(t,n);else if(jy(i,t,e,r,n))n.stopPropagation();else if(Cd(t,n),e&4&&-1<Cy.indexOf(t)){for(;i!==null;){var s=zs(i);if(s!==null&&Ip(s),s=Wu(t,e,r,n),s===null&&hu(t,e,n,qo,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else hu(t,e,n,null,r)}}var qo=null;function Wu(t,e,r,n){if(qo=null,t=Of(n),t=zn(t),t!==null)if(e=oi(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Ap(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return qo=t,null}function Dp(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ay()){case Mf:return 1;case kp:return 4;case $o:case Ey:return 16;case Rp:return 536870912;default:return 16}default:return 16}}var bn=null,Kf=null,So=null;function Pp(){if(So)return So;var t,e=Kf,r=e.length,n,i="value"in bn?bn.value:bn.textContent,s=i.length;for(t=0;t<r&&e[t]===i[t];t++);var o=r-t;for(n=1;n<=o&&e[r-n]===i[s-n];n++);return So=i.slice(t,1<n?1-n:void 0)}function ko(t){var e=t.keyCode;return"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 co(){return!0}function Nd(){return!1}function Rr(t){function e(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(r=t[l],this[l]=r?r(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?co:Nd,this.isPropagationStopped=Nd,this}return Bt(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=co)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=co)},persist:function(){},isPersistent:co}),e}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vf=Rr(Mi),qs=Bt({},Mi,{view:0,detail:0}),Py=Rr(qs),iu,su,Qi,ma=Bt({},qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gf,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!==Qi&&(Qi&&t.type==="mousemove"?(iu=t.screenX-Qi.screenX,su=t.screenY-Qi.screenY):su=iu=0,Qi=t),iu)},movementY:function(t){return"movementY"in t?t.movementY:su}}),Ud=Rr(ma),Ly=Bt({},ma,{dataTransfer:0}),$y=Rr(Ly),Oy=Bt({},qs,{relatedTarget:0}),ou=Rr(Oy),My=Bt({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),qy=Rr(My),zy=Bt({},Mi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hy=Rr(zy),Ky=Bt({},Mi,{data:0}),Dd=Rr(Ky),Vy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gy={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"},Wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Wy[t])?!!e[t]:!1}function Gf(){return Yy}var Xy=Bt({},qs,{key:function(t){if(t.key){var e=Vy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ko(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Gy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gf,charCode:function(t){return t.type==="keypress"?ko(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ko(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Qy=Rr(Xy),Jy=Bt({},ma,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pd=Rr(Jy),Zy=Bt({},qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gf}),e1=Rr(Zy),t1=Bt({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),r1=Rr(t1),n1=Bt({},ma,{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}),i1=Rr(n1),s1=[9,13,27,32],Wf=fn&&"CompositionEvent"in window,cs=null;fn&&"documentMode"in document&&(cs=document.documentMode);var o1=fn&&"TextEvent"in window&&!cs,Lp=fn&&(!Wf||cs&&8<cs&&11>=cs),Ld=" ",$d=!1;function $p(t,e){switch(t){case"keyup":return s1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hi=!1;function a1(t,e){switch(t){case"compositionend":return Op(e);case"keypress":return e.which!==32?null:($d=!0,Ld);case"textInput":return t=e.data,t===Ld&&$d?null:t;default:return null}}function l1(t,e){if(hi)return t==="compositionend"||!Wf&&$p(t,e)?(t=Pp(),So=Kf=bn=null,hi=!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 Lp&&e.locale!=="ko"?null:e.data;default:return null}}var u1={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 Od(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!u1[t.type]:e==="textarea"}function Mp(t,e,r,n){xp(n),e=zo(e,"onChange"),0<e.length&&(r=new Vf("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ds=null,Es=null;function f1(t){Jp(t,0)}function ya(t){var e=mi(t);if(cp(e))return t}function c1(t,e){if(t==="change")return e}var qp=!1;if(fn){var au;if(fn){var lu="oninput"in document;if(!lu){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),lu=typeof Md.oninput=="function"}au=lu}else au=!1;qp=au&&(!document.documentMode||9<document.documentMode)}function qd(){ds&&(ds.detachEvent("onpropertychange",zp),Es=ds=null)}function zp(t){if(t.propertyName==="value"&&ya(Es)){var e=[];Mp(e,Es,t,Of(t)),_p(f1,e)}}function d1(t,e,r){t==="focusin"?(qd(),ds=e,Es=r,ds.attachEvent("onpropertychange",zp)):t==="focusout"&&qd()}function h1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ya(Es)}function p1(t,e){if(t==="click")return ya(e)}function g1(t,e){if(t==="input"||t==="change")return ya(e)}function m1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Hr=typeof Object.is=="function"?Object.is:m1;function Fs(t,e){if(Hr(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++){var i=r[n];if(!Tu.call(e,i)||!Hr(t[i],e[i]))return!1}return!0}function zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hd(t,e){var r=zd(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=zd(r)}}function Hp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Kp(){for(var t=window,e=Do();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Do(t.document)}return e}function Yf(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")}function y1(t){var e=Kp(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Hp(r.ownerDocument.documentElement,r)){if(n!==null&&Yf(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=Hd(r,s);var o=Hd(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var x1=fn&&"documentMode"in document&&11>=document.documentMode,pi=null,Yu=null,hs=null,Xu=!1;function Kd(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xu||pi==null||pi!==Do(n)||(n=pi,"selectionStart"in n&&Yf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),hs&&Fs(hs,n)||(hs=n,n=zo(Yu,"onSelect"),0<n.length&&(e=new Vf("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=pi)))}function ho(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var gi={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},uu={},Vp={};fn&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function xa(t){if(uu[t])return uu[t];if(!gi[t])return t;var e=gi[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Vp)return uu[t]=e[r];return t}var Gp=xa("animationend"),Wp=xa("animationiteration"),Yp=xa("animationstart"),Xp=xa("transitionend"),Qp=new Map,Vd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dn(t,e){Qp.set(t,e),si(e,[t])}for(var fu=0;fu<Vd.length;fu++){var cu=Vd[fu],w1=cu.toLowerCase(),v1=cu[0].toUpperCase()+cu.slice(1);Dn(w1,"on"+v1)}Dn(Gp,"onAnimationEnd");Dn(Wp,"onAnimationIteration");Dn(Yp,"onAnimationStart");Dn("dblclick","onDoubleClick");Dn("focusin","onFocus");Dn("focusout","onBlur");Dn(Xp,"onTransitionEnd");Ii("onMouseEnter",["mouseout","mouseover"]);Ii("onMouseLeave",["mouseout","mouseover"]);Ii("onPointerEnter",["pointerout","pointerover"]);Ii("onPointerLeave",["pointerout","pointerover"]);si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));si("onBeforeInput",["compositionend","keypress","textInput","paste"]);si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),b1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ls));function Gd(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,wy(n,e,void 0,t),t.currentTarget=null}function Jp(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 s=void 0;if(e)for(var o=n.length-1;0<=o;o--){var l=n[o],g=l.instance,d=l.currentTarget;if(l=l.listener,g!==s&&i.isPropagationStopped())break e;Gd(i,l,d),s=g}else for(o=0;o<n.length;o++){if(l=n[o],g=l.instance,d=l.currentTarget,l=l.listener,g!==s&&i.isPropagationStopped())break e;Gd(i,l,d),s=g}}}if(Lo)throw t=Ku,Lo=!1,Ku=null,t}function Et(t,e){var r=e[tf];r===void 0&&(r=e[tf]=new Set);var n=t+"__bubble";r.has(n)||(Zp(e,t,2,!1),r.add(n))}function du(t,e,r){var n=0;e&&(n|=4),Zp(r,t,n,e)}var po="_reactListening"+Math.random().toString(36).slice(2);function Ss(t){if(!t[po]){t[po]=!0,op.forEach(function(r){r!=="selectionchange"&&(b1.has(r)||du(r,!1,t),du(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[po]||(e[po]=!0,du("selectionchange",!1,e))}}function Zp(t,e,r,n){switch(Dp(e)){case 1:var i=Uy;break;case 4:i=Dy;break;default:i=Hf}r=i.bind(null,e,r,t),i=void 0,!Hu||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 hu(t,e,r,n,i){var s=n;
vendor: 2,645 bytes, line 37
37if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var g=o.tag;if((g===3||g===4)&&(g=o.stateNode.containerInfo,g===i||g.nodeType===8&&g.parentNode===i))return;o=o.return}for(;l!==null;){if(o=zn(l),o===null)return;if(g=o.tag,g===5||g===6){n=s=o;continue e}l=l.parentNode}}n=n.return}_p(function(){var d=s,k=Of(r),C=[];e:{var j=Qp.get(t);if(j!==void 0){var X=Vf,H=t;switch(t){case"keypress":if(ko(r)===0)break e;case"keydown":case"keyup":X=Qy;break;case"focusin":H="focus",X=ou;break;case"focusout":H="blur",X=ou;break;case"beforeblur":case"afterblur":X=ou;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":X=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=$y;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=e1;break;case Gp:case Wp:case Yp:X=qy;break;case Xp:X=r1;break;case"scroll":X=Py;break;case"wheel":X=i1;break;case"copy":case"cut":case"paste":X=Hy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Pd}var G=(e&4)!==0,D=!G&&t==="scroll",R=G?j!==null?j+"Capture":null:j;G=[];for(var w=d,T;w!==null;){T=w;var W=T.stateNode;if(T.tag===5&&W!==null&&(T=W,R!==null&&(W=vs(w,R),W!=null&&G.push(ks(w,W,T)))),D)break;w=w.return}0<G.length&&(j=new X(j,H,null,r,k),C.push({event:j,listeners:G}))}}if(!(e&7)){e:{if(j=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",j&&r!==qu&&(H=r.relatedTarget||r.fromElement)&&(zn(H)||H[cn]))break e;if((X||j)&&(j=k.window===k?k:(j=k.ownerDocument)?j.defaultView||j.parentWindow:window,X?(H=r.relatedTarget||r.toElement,X=d,H=H?zn(H):null,H!==null&&(D=oi(H),H!==D||H.tag!==5&&H.tag!==6)&&(H=null)):(X=null,H=d),X!==H)){if(G=Ud,W="onMouseLeave",R="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(G=Pd,W="onPointerLeave",R="onPointerEnter",w="pointer"),D=X==null?j:mi(X),T=H==null?j:mi(H),j=new G(W,w+"leave",X,r,k),j.target=D,j.relatedTarget=T,W=null,zn(k)===d&&(G=new G(R,w+"enter",H,r,k),G.target=T,G.relatedTarget=D,W=G),D=W,X&&H)t:{for(G=X,R=H,w=0,T=G;T;T=ui(T))w++;for(T=0,W=R;W;W=ui(W))T++;for(;0<w-T;)G=ui(G),w--;for(;0<T-w;)R=ui(R),T--;for(;w--;){if(G===R||R!==null&&G===R.alternate)break t;G=ui(G),R=ui(R)}G=null}else G=null;X!==null&&Wd(C,j,X,G,!1),H!==null&&D!==null&&Wd(C,D,H,G,!0)}}
vendor: 5,810 bytes, lines 37-38
37e:{if(j=d?mi(d):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var J=c1;else if(Od(j))if(qp)J=g1;else{J=h1;var A=d1}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(J=p1);if(J&&(J=J(t,d))){Mp(C,J,r,k);break e}A&&A(t,j,d),t==="focusout"&&(A=j._wrapperState)&&A.controlled&&j.type==="number"&&Pu(j,"number",j.value)}switch(A=d?mi(d):window,t){case"focusin":(Od(A)||A.contentEditable==="true")&&(pi=A,Yu=d,hs=null);break;case"focusout":hs=Yu=pi=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,Kd(C,r,k);break;case"selectionchange":if(x1)break;case"keydown":case"keyup":Kd(C,r,k)}var P;if(Wf)e:{switch(t){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else hi?$p(t,r)&&(M="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(M="onCompositionStart");M&&(Lp&&r.locale!=="ko"&&(hi||M!=="onCompositionStart"?M==="onCompositionEnd"&&hi&&(P=Pp()):(bn=k,Kf="value"in bn?bn.value:bn.textContent,hi=!0)),A=zo(d,M),0<A.length&&(M=new Dd(M,t,null,r,k),C.push({event:M,listeners:A}),P?M.data=P:(P=Op(r),P!==null&&(M.data=P)))),(P=o1?a1(t,r):l1(t,r))&&(d=zo(d,"onBeforeInput"),0<d.length&&(k=new Dd("onBeforeInput","beforeinput",null,r,k),C.push({event:k,listeners:d}),k.data=P))}Jp(C,e)})}function ks(t,e,r){return{instance:t,listener:e,currentTarget:r}}function zo(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=vs(t,r),s!=null&&n.unshift(ks(t,s,i)),s=vs(t,e),s!=null&&n.push(ks(t,s,i))),t=t.return}return n}function ui(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Wd(t,e,r,n,i){for(var s=e._reactName,o=[];r!==null&&r!==n;){var l=r,g=l.alternate,d=l.stateNode;if(g!==null&&g===n)break;l.tag===5&&d!==null&&(l=d,i?(g=vs(r,s),g!=null&&o.unshift(ks(r,g,l))):i||(g=vs(r,s),g!=null&&o.push(ks(r,g,l)))),r=r.return}o.length!==0&&t.push({event:e,listeners:o})}var _1=/\r\n?/g,A1=/\u0000|\uFFFD/g;function Yd(t){return(typeof t=="string"?t:""+t).replace(_1,` 38`).replace(A1,"")}function go(t,e,r){if(e=Yd(e),Yd(t)!==e&&r)throw Error(Fe(425))}function Ho(){}var Qu=null,Ju=null;function Zu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ef=typeof setTimeout=="function"?setTimeout:void 0,E1=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,F1=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(t){return Xd.resolve(null).then(t).catch(S1)}:ef;function S1(t){setTimeout(function(){throw t})}function pu(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),As(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);As(e)}function Sn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Qd(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 qi=Math.random().toString(36).slice(2),Yr="__reactFiber$"+qi,Rs="__reactProps$"+qi,cn="__reactContainer$"+qi,tf="__reactEvents$"+qi,k1="__reactListeners$"+qi,R1="__reactHandles$"+qi;function zn(t){var e=t[Yr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[cn]||r[Yr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Qd(t);t!==null;){if(r=t[Yr])return r;t=Qd(t)}return e}t=r,r=t.parentNode}return null}function zs(t){return t=t[Yr]||t[cn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function mi(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Fe(33))}function wa(t){return t[Rs]||null}var rf=[],yi=-1;function Pn(t){return{current:t}}function Ft(t){0>yi||(t.current=rf[yi],rf[yi]=null,yi--)}function At(t,e){yi++,rf[yi]=t.current,t.current=e}var jn={},ur=Pn(jn),xr=Pn(!1),Xn=jn;function Ci(t,e){var r=t.type.contextTypes;if(!r)return jn;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function wr(t){return t=t.childContextTypes,t!=null}function Ko(){Ft(xr),Ft(ur)}function Jd(t,e,r){if(ur.current!==jn)throw Error(Fe(168));At(ur,e),At(xr,r)}function e0(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(Fe(108,dy(t)||"Unknown",i));return Bt({},r,n)}function Vo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||jn,Xn=ur.current,At(ur,t),At(xr,xr.current),!0}function Zd(t,e,r){var n=t.stateNode;if(!n)throw Error(Fe(169));r?(t=e0(t,e,Xn),n.__reactInternalMemoizedMergedChildContext=t,Ft(xr),Ft(ur),At(ur,t)):Ft(xr),At(xr,r)}var nn=null,va=!1,gu=!1;function t0(t){nn===null?nn=[t]:nn.push(t)}function B1(t){va=!0,t0(t)}function Ln(){if(!gu&&nn!==null){gu=!0;var t=0,e=_t;try{var r=nn;for(_t=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}nn=null,va=!1}catch(i){throw nn!==null&&(nn=nn.slice(t+1)),Sp(Mf,Ln),i}finally{_t=e,gu=!1}}return null}var xi=[],wi=0,Go=null,Wo=0,Ir=[],Cr=0,Qn=null,sn=1,on="";function On(t,e){xi[wi++]=Wo,xi[wi++]=Go,Go=t,Wo=e}function r0(t,e,r){Ir[Cr++]=sn,Ir[Cr++]=on,Ir[Cr++]=Qn,Qn=t;var n=sn;t=on;var i=32-qr(n)-1;n&=~(1<<i),r+=1;var s=32-qr(e)+i;
vendor: 9,835 bytes, line 38
38if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,sn=1<<32-qr(e)+i|r<<i|n,on=s+t}else sn=1<<s|r<<i|n,on=t}function Xf(t){t.return!==null&&(On(t,1),r0(t,1,0))}function Qf(t){for(;t===Go;)Go=xi[--wi],xi[wi]=null,Wo=xi[--wi],xi[wi]=null;for(;t===Qn;)Qn=Ir[--Cr],Ir[Cr]=null,on=Ir[--Cr],Ir[Cr]=null,sn=Ir[--Cr],Ir[Cr]=null}var Fr=null,Er=null,St=!1,Mr=null;function n0(t,e){var r=jr(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function eh(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,Fr=t,Er=Sn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Fr=t,Er=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Qn!==null?{id:sn,overflow:on}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=jr(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Fr=t,Er=null,!0):!1;default:return!1}}function nf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function sf(t){if(St){var e=Er;if(e){var r=e;if(!eh(t,e)){if(nf(t))throw Error(Fe(418));e=Sn(r.nextSibling);var n=Fr;e&&eh(t,e)?n0(n,r):(t.flags=t.flags&-4097|2,St=!1,Fr=t)}}else{if(nf(t))throw Error(Fe(418));t.flags=t.flags&-4097|2,St=!1,Fr=t}}}function th(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Fr=t}function mo(t){if(t!==Fr)return!1;if(!St)return th(t),St=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Zu(t.type,t.memoizedProps)),e&&(e=Er)){if(nf(t))throw i0(),Error(Fe(418));for(;e;)n0(t,e),e=Sn(e.nextSibling)}if(th(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Fe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Er=Sn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Er=null}}else Er=Fr?Sn(t.stateNode.nextSibling):null;return!0}function i0(){for(var t=Er;t;)t=Sn(t.nextSibling)}function ji(){Er=Fr=null,St=!1}function Jf(t){Mr===null?Mr=[t]:Mr.push(t)}var T1=gn.ReactCurrentBatchConfig;function Ji(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(Fe(309));var n=r.stateNode}if(!n)throw Error(Fe(147,t));var i=n,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(Fe(284));if(!r._owner)throw Error(Fe(290,t))}return t}function yo(t,e){throw t=Object.prototype.toString.call(e),Error(Fe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function rh(t){var e=t._init;return e(t._payload)}function s0(t){function e(R,w){if(t){var T=R.deletions;T===null?(R.deletions=[w],R.flags|=16):T.push(w)}}function r(R,w){if(!t)return null;for(;w!==null;)e(R,w),w=w.sibling;return null}function n(R,w){for(R=new Map;w!==null;)w.key!==null?R.set(w.key,w):R.set(w.index,w),w=w.sibling;return R}function i(R,w){return R=Tn(R,w),R.index=0,R.sibling=null,R}function s(R,w,T){return R.index=T,t?(T=R.alternate,T!==null?(T=T.index,T<w?(R.flags|=2,w):T):(R.flags|=2,w)):(R.flags|=1048576,w)}function o(R){return t&&R.alternate===null&&(R.flags|=2),R}function l(R,w,T,W){return w===null||w.tag!==6?(w=_u(T,R.mode,W),w.return=R,w):(w=i(w,T),w.return=R,w)}function g(R,w,T,W){var J=T.type;return J===di?k(R,w,T.props.children,W,T.key):w!==null&&(w.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===yn&&rh(J)===w.type)?(W=i(w,T.props),W.ref=Ji(R,w,T),W.return=R,W):(W=No(T.type,T.key,T.props,null,R.mode,W),W.ref=Ji(R,w,T),W.return=R,W)}function d(R,w,T,W){return w===null||w.tag!==4||w.stateNode.containerInfo!==T.containerInfo||w.stateNode.implementation!==T.implementation?(w=Au(T,R.mode,W),w.return=R,w):(w=i(w,T.children||[]),w.return=R,w)}function k(R,w,T,W,J){return w===null||w.tag!==7?(w=Gn(T,R.mode,W,J),w.return=R,w):(w=i(w,T),w.return=R,w)}function C(R,w,T){if(typeof w=="string"&&w!==""||typeof w=="number")return w=_u(""+w,R.mode,T),w.return=R,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case so:return T=No(w.type,w.key,w.props,null,R.mode,T),T.ref=Ji(R,null,w),T.return=R,T;case ci:return w=Au(w,R.mode,T),w.return=R,w;case yn:var W=w._init;return C(R,W(w._payload),T)}if(os(w)||Gi(w))return w=Gn(w,R.mode,T,null),w.return=R,w;yo(R,w)}return null}function j(R,w,T,W){var J=w!==null?w.key:null;if(typeof T=="string"&&T!==""||typeof T=="number")return J!==null?null:l(R,w,""+T,W);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case so:return T.key===J?g(R,w,T,W):null;case ci:return T.key===J?d(R,w,T,W):null;case yn:return J=T._init,j(R,w,J(T._payload),W)}if(os(T)||Gi(T))return J!==null?null:k(R,w,T,W,null);yo(R,T)}return null}function X(R,w,T,W,J){if(typeof W=="string"&&W!==""||typeof W=="number")return R=R.get(T)||null,l(w,R,""+W,J);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case so:return R=R.get(W.key===null?T:W.key)||null,g(w,R,W,J);case ci:return R=R.get(W.key===null?T:W.key)||null,d(w,R,W,J);case yn:var A=W._init;return X(R,w,T,A(W._payload),J)}if(os(W)||Gi(W))return R=R.get(T)||null,k(w,R,W,J,null);yo(w,W)}return null}function H(R,w,T,W){for(var J=null,A=null,P=w,M=w=0,se=null;P!==null&&M<T.length;M++){P.index>M?(se=P,P=null):se=P.sibling;var $=j(R,P,T[M],W);if($===null){P===null&&(P=se);break}t&&P&&$.alternate===null&&e(R,P),w=s($,w,M),A===null?J=$:A.sibling=$,A=$,P=se}if(M===T.length)return r(R,P),St&&On(R,M),J;if(P===null){for(;M<T.length;M++)P=C(R,T[M],W),P!==null&&(w=s(P,w,M),A===null?J=P:A.sibling=P,A=P);return St&&On(R,M),J}for(P=n(R,P);M<T.length;M++)se=X(P,R,M,T[M],W),se!==null&&(t&&se.alternate!==null&&P.delete(se.key===null?M:se.key),w=s(se,w,M),A===null?J=se:A.sibling=se,A=se);return t&&P.forEach(function(he){return e(R,he)}),St&&On(R,M),J}function G(R,w,T,W){var J=Gi(T);if(typeof J!="function")throw Error(Fe(150));if(T=J.call(T),T==null)throw Error(Fe(151));for(var A=J=null,P=w,M=w=0,se=null,$=T.next();P!==null&&!$.done;M++,$=T.next()){P.index>M?(se=P,P=null):se=P.sibling;var he=j(R,P,$.value,W);if(he===null){P===null&&(P=se);break}t&&P&&he.alternate===null&&e(R,P),w=s(he,w,M),A===null?J=he:A.sibling=he,A=he,P=se}if($.done)return r(R,P),St&&On(R,M),J;if(P===null){for(;!$.done;M++,$=T.next())$=C(R,$.value,W),$!==null&&(w=s($,w,M),A===null?J=$:A.sibling=$,A=$);return St&&On(R,M),J}for(P=n(R,P);!$.done;M++,$=T.next())$=X(P,R,M,$.value,W),$!==null&&(t&&$.alternate!==null&&P.delete($.key===null?M:$.key),w=s($,w,M),A===null?J=$:A.sibling=$,A=$);return t&&P.forEach(function(ae){return e(R,ae)}),St&&On(R,M),J}function D(R,w,T,W){if(typeof T=="object"&&T!==null&&T.type===di&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case so:e:{for(var J=T.key,A=w;A!==null;){if(A.key===J){if(J=T.type,J===di){if(A.tag===7){r(R,A.sibling),w=i(A,T.props.children),w.return=R,R=w;break e}}else if(A.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===yn&&rh(J)===A.type){r(R,A.sibling),w=i(A,T.props),w.ref=Ji(R,A,T),w.return=R,R=w;break e}r(R,A);break}else e(R,A);A=A.sibling}T.type===di?(w=Gn(T.props.children,R.mode,W,T.key),w.return=R,R=w):(W=No(T.type,T.key,T.props,null,R.mode,W),W.ref=Ji(R,w,T),W.return=R,R=W)}return o(R);case ci:e:{for(A=T.key;w!==null;){if(w.key===A)if(w.tag===4&&w.stateNode.containerInfo===T.containerInfo&&w.stateNode.implementation===T.implementation){r(R,w.sibling),w=i(w,T.children||[]),w.return=R,R=w;break e}else{r(R,w);break}else e(R,w);w=w.sibling}w=Au(T,R.mode,W),w.return=R,R=w}return o(R);case yn:return A=T._init,D(R,w,A(T._payload),W)}if(os(T))return H(R,w,T,W);if(Gi(T))return G(R,w,T,W);yo(R,T)}return typeof T=="string"&&T!==""||typeof T=="number"?(T=""+T,w!==null&&w.tag===6?(r(R,w.sibling),w=i(w,T),w.return=R,R=w):(r(R,w),w=_u(T,R.mode,W),w.return=R,R=w),o(R)):r(R,w)}return D}var Ni=s0(!0),o0=s0(!1),Yo=Pn(null),Xo=null,vi=null,Zf=null;function ec(){Zf=vi=Xo=null}function tc(t){var e=Yo.current;Ft(Yo),t._currentValue=e}function of(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function ki(t,e){Xo=t,Zf=vi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(yr=!0),t.firstContext=null)}function Ur(t){var e=t._currentValue;if(Zf!==t)if(t={context:t,memoizedValue:e,next:null},vi===null){if(Xo===null)throw Error(Fe(308));vi=t,Xo.dependencies={lanes:0,firstContext:t}}else vi=vi.next=t;return e}var Hn=null;function rc(t){Hn===null?Hn=[t]:Hn.push(t)}function a0(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,rc(e)):(r.next=i.next,i.next=r),e.interleaved=r,dn(t,n)}function dn(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}var xn=!1;function nc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function l0(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 an(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function kn(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,wt&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,dn(t,r)}return i=n.interleaved,i===null?(e.next=e,rc(n)):(e.next=i.next,i.next=e),n.interleaved=e,dn(t,r)}function Ro(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;
vendor: 1,353 bytes, line 38
38n&=t.pendingLanes,r|=n,e.lanes=r,qf(t,r)}}function nh(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Qo(t,e,r,n){var i=t.updateQueue;xn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var g=l,d=g.next;g.next=null,o===null?s=d:o.next=d,o=g;var k=t.alternate;k!==null&&(k=k.updateQueue,l=k.lastBaseUpdate,l!==o&&(l===null?k.firstBaseUpdate=d:l.next=d,k.lastBaseUpdate=g))}if(s!==null){var C=i.baseState;o=0,k=d=g=null,l=s;do{var j=l.lane,X=l.eventTime;if((n&j)===j){k!==null&&(k=k.next={eventTime:X,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var H=t,G=l;switch(j=e,X=r,G.tag){case 1:if(H=G.payload,typeof H=="function"){C=H.call(X,C,j);break e}C=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=G.payload,j=typeof H=="function"?H.call(X,C,j):H,j==null)break e;C=Bt({},C,j);break e;case 2:xn=!0}
vendor: 13,891 bytes, lines 38-40
38}l.callback!==null&&l.lane!==0&&(t.flags|=64,j=i.effects,j===null?i.effects=[l]:j.push(l))}else X={eventTime:X,lane:j,tag:l.tag,payload:l.payload,callback:l.callback,next:null},k===null?(d=k=X,g=C):k=k.next=X,o|=j;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;j=l,l=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);if(k===null&&(g=C),i.baseState=g,i.firstBaseUpdate=d,i.lastBaseUpdate=k,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Zn|=o,t.lanes=o,t.memoizedState=C}}function ih(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(Fe(191,i));i.call(n)}}}var Hs={},Jr=Pn(Hs),Bs=Pn(Hs),Ts=Pn(Hs);function Kn(t){if(t===Hs)throw Error(Fe(174));return t}function ic(t,e){switch(At(Ts,e),At(Bs,t),At(Jr,Hs),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)}Ft(Jr),At(Jr,e)}function Ui(){Ft(Jr),Ft(Bs),Ft(Ts)}function u0(t){Kn(Ts.current);var e=Kn(Jr.current),r=$u(e,t.type);e!==r&&(At(Bs,t),At(Jr,r))}function sc(t){Bs.current===t&&(Ft(Jr),Ft(Bs))}var kt=Pn(0);function Jo(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&128)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 mu=[];function oc(){for(var t=0;t<mu.length;t++)mu[t]._workInProgressVersionPrimary=null;mu.length=0}var Bo=gn.ReactCurrentDispatcher,yu=gn.ReactCurrentBatchConfig,Jn=0,Rt=null,qt=null,Vt=null,Zo=!1,ps=!1,Is=0,I1=0;function nr(){throw Error(Fe(321))}function ac(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Hr(t[r],e[r]))return!1;return!0}function lc(t,e,r,n,i,s){if(Jn=s,Rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Bo.current=t===null||t.memoizedState===null?U1:D1,t=r(n,i),ps){s=0;do{if(ps=!1,Is=0,25<=s)throw Error(Fe(301));s+=1,Vt=qt=null,e.updateQueue=null,Bo.current=P1,t=r(n,i)}while(ps)}if(Bo.current=ea,e=qt!==null&&qt.next!==null,Jn=0,Vt=qt=Rt=null,Zo=!1,e)throw Error(Fe(300));return t}function uc(){var t=Is!==0;return Is=0,t}function Gr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Rt.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Dr(){if(qt===null){var t=Rt.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var e=Vt===null?Rt.memoizedState:Vt.next;if(e!==null)Vt=e,qt=t;else{if(t===null)throw Error(Fe(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Vt===null?Rt.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Cs(t,e){return typeof e=="function"?e(t):e}function xu(t){var e=Dr(),r=e.queue;if(r===null)throw Error(Fe(311));r.lastRenderedReducer=t;var n=qt,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var l=o=null,g=null,d=s;do{var k=d.lane;if((Jn&k)===k)g!==null&&(g=g.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:t(n,d.action);else{var C={lane:k,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};g===null?(l=g=C,o=n):g=g.next=C,Rt.lanes|=k,Zn|=k}d=d.next}while(d!==null&&d!==s);g===null?o=n:g.next=l,Hr(n,e.memoizedState)||(yr=!0),e.memoizedState=n,e.baseState=o,e.baseQueue=g,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do s=i.lane,Rt.lanes|=s,Zn|=s,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function wu(t){var e=Dr(),r=e.queue;if(r===null)throw Error(Fe(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,s=e.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Hr(s,e.memoizedState)||(yr=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),r.lastRenderedState=s}return[s,n]}function f0(){}function c0(t,e){var r=Rt,n=Dr(),i=e(),s=!Hr(n.memoizedState,i);if(s&&(n.memoizedState=i,yr=!0),n=n.queue,fc(p0.bind(null,r,n,t),[t]),n.getSnapshot!==e||s||Vt!==null&&Vt.memoizedState.tag&1){if(r.flags|=2048,js(9,h0.bind(null,r,n,i,e),void 0,null),Gt===null)throw Error(Fe(349));Jn&30||d0(r,e,i)}return i}function d0(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Rt.updateQueue,e===null?(e={lastEffect:null,stores:null},Rt.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function h0(t,e,r,n){e.value=r,e.getSnapshot=n,g0(e)&&m0(t)}function p0(t,e,r){return r(function(){g0(e)&&m0(t)})}function g0(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Hr(t,r)}catch{return!0}}function m0(t){var e=dn(t,1);e!==null&&zr(e,t,1,-1)}function sh(t){var e=Gr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:t},e.queue=t,t=t.dispatch=N1.bind(null,Rt,t),[e.memoizedState,t]}function js(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Rt.updateQueue,e===null?(e={lastEffect:null,stores:null},Rt.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 y0(){return Dr().memoizedState}function To(t,e,r,n){var i=Gr();Rt.flags|=t,i.memoizedState=js(1|e,r,void 0,n===void 0?null:n)}function ba(t,e,r,n){var i=Dr();n=n===void 0?null:n;var s=void 0;if(qt!==null){var o=qt.memoizedState;if(s=o.destroy,n!==null&&ac(n,o.deps)){i.memoizedState=js(e,r,s,n);return}}Rt.flags|=t,i.memoizedState=js(1|e,r,s,n)}function oh(t,e){return To(8390656,8,t,e)}function fc(t,e){return ba(2048,8,t,e)}function x0(t,e){return ba(4,2,t,e)}function w0(t,e){return ba(4,4,t,e)}function v0(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 b0(t,e,r){return r=r!=null?r.concat([t]):null,ba(4,4,v0.bind(null,e,t),r)}function cc(){}function _0(t,e){var r=Dr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&ac(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function A0(t,e){var r=Dr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&ac(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function E0(t,e,r){return Jn&21?(Hr(r,e)||(r=Bp(),Rt.lanes|=r,Zn|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,yr=!0),t.memoizedState=r)}function C1(t,e){var r=_t;_t=r!==0&&4>r?r:4,t(!0);var n=yu.transition;yu.transition={};try{t(!1),e()}finally{_t=r,yu.transition=n}}function F0(){return Dr().memoizedState}function j1(t,e,r){var n=Bn(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},S0(t))k0(e,r);else if(r=a0(t,e,r,n),r!==null){var i=dr();zr(r,t,n,i),R0(r,e,n)}}function N1(t,e,r){var n=Bn(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(S0(t))k0(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,r);if(i.hasEagerState=!0,i.eagerState=l,Hr(l,o)){var g=e.interleaved;g===null?(i.next=i,rc(e)):(i.next=g.next,g.next=i),e.interleaved=i;return}}catch{}finally{}r=a0(t,e,i,n),r!==null&&(i=dr(),zr(r,t,n,i),R0(r,e,n))}}function S0(t){var e=t.alternate;return t===Rt||e!==null&&e===Rt}function k0(t,e){ps=Zo=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function R0(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,qf(t,r)}}var ea={readContext:Ur,useCallback:nr,useContext:nr,useEffect:nr,useImperativeHandle:nr,useInsertionEffect:nr,useLayoutEffect:nr,useMemo:nr,useReducer:nr,useRef:nr,useState:nr,useDebugValue:nr,useDeferredValue:nr,useTransition:nr,useMutableSource:nr,useSyncExternalStore:nr,useId:nr,unstable_isNewReconciler:!1},U1={readContext:Ur,useCallback:function(t,e){return Gr().memoizedState=[t,e===void 0?null:e],t},useContext:Ur,useEffect:oh,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,To(4194308,4,v0.bind(null,e,t),r)},useLayoutEffect:function(t,e){return To(4194308,4,t,e)},useInsertionEffect:function(t,e){return To(4,2,t,e)},useMemo:function(t,e){var r=Gr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Gr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=j1.bind(null,Rt,t),[n.memoizedState,t]},useRef:function(t){var e=Gr();return t={current:t},e.memoizedState=t},useState:sh,useDebugValue:cc,useDeferredValue:function(t){return Gr().memoizedState=t},useTransition:function(){var t=sh(!1),e=t[0];return t=C1.bind(null,t[1]),Gr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Rt,i=Gr();if(St){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=e(),Gt===null)throw Error(Fe(349));Jn&30||d0(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,oh(p0.bind(null,n,s,t),[t]),n.flags|=2048,js(9,h0.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Gr(),e=Gt.identifierPrefix;if(St){var r=on,n=sn;r=(n&~(1<<32-qr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Is++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=I1++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},D1={readContext:Ur,useCallback:_0,useContext:Ur,useEffect:fc,useImperativeHandle:b0,useInsertionEffect:x0,useLayoutEffect:w0,useMemo:A0,useReducer:xu,useRef:y0,useState:function(){return xu(Cs)},useDebugValue:cc,useDeferredValue:function(t){var e=Dr();return E0(e,qt.memoizedState,t)},useTransition:function(){var t=xu(Cs)[0],e=Dr().memoizedState;return[t,e]},useMutableSource:f0,useSyncExternalStore:c0,useId:F0,unstable_isNewReconciler:!1},P1={readContext:Ur,useCallback:_0,useContext:Ur,useEffect:fc,useImperativeHandle:b0,useInsertionEffect:x0,useLayoutEffect:w0,useMemo:A0,useReducer:wu,useRef:y0,useState:function(){return wu(Cs)},useDebugValue:cc,useDeferredValue:function(t){var e=Dr();return qt===null?e.memoizedState=t:E0(e,qt.memoizedState,t)},useTransition:function(){var t=wu(Cs)[0],e=Dr().memoizedState;return[t,e]},useMutableSource:f0,useSyncExternalStore:c0,useId:F0,unstable_isNewReconciler:!1};function Lr(t,e){if(t&&t.defaultProps){e=Bt({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function af(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Bt({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var _a={isMounted:function(t){return(t=t._reactInternals)?oi(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=dr(),i=Bn(t),s=an(n,i);s.payload=e,r!=null&&(s.callback=r),e=kn(t,s,i),e!==null&&(zr(e,t,i,n),Ro(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=dr(),i=Bn(t),s=an(n,i);s.tag=1,s.payload=e,r!=null&&(s.callback=r),e=kn(t,s,i),e!==null&&(zr(e,t,i,n),Ro(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=dr(),n=Bn(t),i=an(r,n);i.tag=2,e!=null&&(i.callback=e),e=kn(t,i,n),e!==null&&(zr(e,t,n,r),Ro(e,t,n))}};function ah(t,e,r,n,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,o):e.prototype&&e.prototype.isPureReactComponent?!Fs(r,n)||!Fs(i,s):!0}function B0(t,e,r){var n=!1,i=jn,s=e.contextType;return typeof s=="object"&&s!==null?s=Ur(s):(i=wr(e)?Xn:ur.current,n=e.contextTypes,s=(n=n!=null)?Ci(t,i):jn),e=new e(r,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=_a,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function lh(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&&_a.enqueueReplaceState(e,e.state,null)}function lf(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs={},nc(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Ur(s):(s=wr(e)?Xn:ur.current,i.context=Ci(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(af(t,e,s,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&&_a.enqueueReplaceState(i,i.state,null),Qo(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function Di(t,e){try{var r="",n=e;do r+=cy(n),n=n.return;while(n);var i=r}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:t,source:e,stack:i,digest:null}}function vu(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function uf(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var L1=typeof WeakMap=="function"?WeakMap:Map;function T0(t,e,r){r=an(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){ra||(ra=!0,wf=n),uf(t,e)},r}function I0(t,e,r){r=an(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){uf(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){uf(t,e),t
vendor: 7,089 bytes, line 40
40ypeof n!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function uh(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new L1;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=J1.bind(null,t,e,r),e.then(t,t))}function fh(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function ch(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=an(-1,1),e.tag=2,kn(r,e,1))),r.lanes|=1),t)}var $1=gn.ReactCurrentOwner,yr=!1;function fr(t,e,r,n){e.child=t===null?o0(e,null,r,n):Ni(e,t.child,r,n)}function dh(t,e,r,n,i){r=r.render;var s=e.ref;return ki(e,i),n=lc(t,e,r,n,s,i),r=uc(),t!==null&&!yr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,hn(t,e,i)):(St&&r&&Xf(e),e.flags|=1,fr(t,e,n,i),e.child)}function hh(t,e,r,n,i){if(t===null){var s=r.type;return typeof s=="function"&&!wc(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,C0(t,e,s,n,i)):(t=No(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Fs,r(o,n)&&t.ref===e.ref)return hn(t,e,i)}return e.flags|=1,t=Tn(s,n),t.ref=e.ref,t.return=e,e.child=t}function C0(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(Fs(s,n)&&t.ref===e.ref)if(yr=!1,e.pendingProps=n=s,(t.lanes&i)!==0)t.flags&131072&&(yr=!0);else return e.lanes=t.lanes,hn(t,e,i)}return ff(t,e,r,n,i)}function j0(t,e,r){var n=e.pendingProps,i=n.children,s=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},At(_i,_r),_r|=r;else{if(!(r&1073741824))return t=s!==null?s.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,At(_i,_r),_r|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,At(_i,_r),_r|=n}else s!==null?(n=s.baseLanes|r,e.memoizedState=null):n=r,At(_i,_r),_r|=n;return fr(t,e,i,r),e.child}function N0(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function ff(t,e,r,n,i){var s=wr(r)?Xn:ur.current;return s=Ci(e,s),ki(e,i),r=lc(t,e,r,n,s,i),n=uc(),t!==null&&!yr?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,hn(t,e,i)):(St&&n&&Xf(e),e.flags|=1,fr(t,e,r,i),e.child)}function ph(t,e,r,n,i){if(wr(r)){var s=!0;Vo(e)}else s=!1;if(ki(e,i),e.stateNode===null)Io(t,e),B0(e,r,n),lf(e,r,n,i),n=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var g=o.context,d=r.contextType;typeof d=="object"&&d!==null?d=Ur(d):(d=wr(r)?Xn:ur.current,d=Ci(e,d));var k=r.getDerivedStateFromProps,C=typeof k=="function"||typeof o.getSnapshotBeforeUpdate=="function";C||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||g!==d)&&lh(e,o,n,d),xn=!1;var j=e.memoizedState;o.state=j,Qo(e,n,o,i),g=e.memoizedState,l!==n||j!==g||xr.current||xn?(typeof k=="function"&&(af(e,r,k,n),g=e.memoizedState),(l=xn||ah(e,r,l,n,j,g,d))?(C||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=g),o.props=n,o.state=g,o.context=d,n=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,l0(t,e),l=e.memoizedProps,d=e.type===e.elementType?l:Lr(e.type,l),o.props=d,C=e.pendingProps,j=o.context,g=r.contextType,typeof g=="object"&&g!==null?g=Ur(g):(g=wr(r)?Xn:ur.current,g=Ci(e,g));var X=r.getDerivedStateFromProps;(k=typeof X=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==C||j!==g)&&lh(e,o,n,g),xn=!1,j=e.memoizedState,o.state=j,Qo(e,n,o,i);var H=e.memoizedState;l!==C||j!==H||xr.current||xn?(typeof X=="function"&&(af(e,r,X,n),H=e.memoizedState),(d=xn||ah(e,r,d,n,j,H,g)||!1)?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,H,g),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,H,g)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=H),o.props=n,o.state=H,o.context=g,n=d):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),n=!1)}return cf(t,e,r,n,s,i)}function cf(t,e,r,n,i,s){N0(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return i&&Zd(e,r,!1),hn(t,e,s);n=e.stateNode,$1.current=e;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=Ni(e,t.child,null,s),e.child=Ni(e,null,l,s)):fr(t,e,l,s),e.memoizedState=n.state,i&&Zd(e,r,!0),e.child}function U0(t){var e=t.stateNode;e.pendingContext?Jd(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Jd(t,e.context,!1),ic(t,e.containerInfo)}function gh(t,e,r,n,i){return ji(),Jf(i),e.flags|=256,fr(t,e,r,n),e.child}var df={dehydrated:null,treeContext:null,retryLane:0};function hf(t){return{baseLanes:t,cachePool:null,transitions:null}}function D0(t,e,r){var n=e.pendingProps,i=kt.current,s=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),At(kt,i&1),t===null)return sf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,s?(n=e.mode,s=e.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Fa(o,n,0,null),t=Gn(t,n,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=hf(r),e.memoizedState=df,t):dc(e,o));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return O1(t,e,o,n,l,i,r);if(s){s=n.fallback,o=e.mode,i=t.child,l=i.sibling;var g={mode:"hidden",children:n.children};return!(o&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=g,e.deletions=null):(n=Tn(i,g),n.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Tn(l,s):(s=Gn(s,o,r,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,o=t.child.memoizedState,o=o===null?hf(r):{base
vendor: 4,937 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~r,e.memoizedState=df,n}return s=t.child,t=s.sibling,n=Tn(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function dc(t,e){return e=Fa({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function xo(t,e,r,n){return n!==null&&Jf(n),Ni(e,t.child,null,r),t=dc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function O1(t,e,r,n,i,s,o){if(r)return e.flags&256?(e.flags&=-257,n=vu(Error(Fe(422))),xo(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=Fa({mode:"visible",children:n.children},i,0,null),s=Gn(s,i,o,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&Ni(e,t.child,null,o),e.child.memoizedState=hf(o),e.memoizedState=df,s);if(!(e.mode&1))return xo(t,e,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,s=Error(Fe(419)),n=vu(s,n,void 0),xo(t,e,o,n)}if(l=(o&t.childLanes)!==0,yr||l){if(n=Gt,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,dn(t,i),zr(n,t,i,-1))}return xc(),n=vu(Error(Fe(421))),xo(t,e,o,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=Z1.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,Er=Sn(i.nextSibling),Fr=e,St=!0,Mr=null,t!==null&&(Ir[Cr++]=sn,Ir[Cr++]=on,Ir[Cr++]=Qn,sn=t.id,on=t.overflow,Qn=e),e=dc(e,n.children),e.flags|=4096,e)}function mh(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),of(t.return,e,r)}function bu(t,e,r,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function P0(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(fr(t,e,n.children,r),n=kt.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mh(t,r,e);else if(t.tag===19)mh(t,r,e);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(At(kt,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&Jo(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),bu(e,!1,i,r,s);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Jo(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}bu(e,!0,r,null,s);break;case"together":bu(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Io(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function hn(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Zn|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Fe(153));if(e.child!==null){for(t=e.child,r=Tn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Tn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function M1(t,e,r){switch(e.tag){case 3:U0(e),ji();break;case 5:u0(e);break;case 1:wr(e.type)&&Vo(e);break;case 4:ic(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;At(Yo,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(At(kt,kt.current&1),e.flags|=128,null):r&e.child.childLanes?D0(t,e,r):(At(kt,kt.current&1),t=hn(t,e,r),t!==null?t.sibling:null);At(kt,kt.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return P0(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),At(kt,kt.current),n)break;return null;case 22:case 23:return e.lanes=0,j0(t,e,r)}return hn(t,e,r)}var L0,pf,$0,O0;L0=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}};pf=function(){};$0=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Kn(Jr.current);var s=null;switch(r){case"input":i=Uu(t,i),n=Uu(t,n),s=[];break;case"select":i=Bt({},i,{value:void 0}),n=Bt({},n,{value:void 0}),s=[];break;
vendor: 5,782 bytes, line 40
40case"textarea":i=Lu(t,i),n=Lu(t,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Ho)}Ou(r,n);var o;r=null;for(d in i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var l=i[d];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(xs.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in n){var g=n[d];if(l=i!=null?i[d]:void 0,n.hasOwnProperty(d)&&g!==l&&(g!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||g&&g.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in g)g.hasOwnProperty(o)&&l[o]!==g[o]&&(r||(r={}),r[o]=g[o])}else r||(s||(s=[]),s.push(d,r)),r=g;else d==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,l=l?l.__html:void 0,g!=null&&l!==g&&(s=s||[]).push(d,g)):d==="children"?typeof g!="string"&&typeof g!="number"||(s=s||[]).push(d,""+g):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(xs.hasOwnProperty(d)?(g!=null&&d==="onScroll"&&Et("scroll",t),s||l===g||(s=[])):(s=s||[]).push(d,g))}r&&(s=s||[]).push("style",r);var d=s;(e.updateQueue=d)&&(e.flags|=4)}};O0=function(t,e,r,n){r!==n&&(e.flags|=4)};function Zi(t,e){if(!St)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 ir(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function q1(t,e,r){var n=e.pendingProps;switch(Qf(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ir(e),null;case 1:return wr(e.type)&&Ko(),ir(e),null;case 3:return n=e.stateNode,Ui(),Ft(xr),Ft(ur),oc(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(mo(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Mr!==null&&(_f(Mr),Mr=null))),pf(t,e),ir(e),null;case 5:sc(e);var i=Kn(Ts.current);if(r=e.type,t!==null&&e.stateNode!=null)$0(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(Fe(166));return ir(e),null}if(t=Kn(Jr.current),mo(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[Yr]=e,n[Rs]=s,t=(e.mode&1)!==0,r){case"dialog":Et("cancel",n),Et("close",n);break;case"iframe":case"object":case"embed":Et("load",n);break;case"video":case"audio":for(i=0;i<ls.length;i++)Et(ls[i],n);break;case"source":Et("error",n);break;case"img":case"image":case"link":Et("error",n),Et("load",n);break;case"details":Et("toggle",n);break;case"input":Fd(n,s),Et("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Et("invalid",n);break;case"textarea":kd(n,s),Et("invalid",n)}Ou(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?n.textContent!==l&&(s.suppressHydrationWarning!==!0&&go(n.textContent,l,t),i=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&go(n.textContent,l,t),i=["children",""+l]):xs.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Et("scroll",n)}switch(r){case"input":oo(n),Sd(n,s,!0);break;case"textarea":oo(n),Rd(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Ho)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=pp(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[Yr]=e,t[Rs]=n,L0(t,e,!1,!1),e.stateNode=t;e:{switch(o=Mu(r,n),r){case"dialog":Et("cancel",t),Et("close",t),i=n;break;case"iframe":case"object":case"embed":Et("load",t),i=n;break;case"video":case"audio":for(i=0;i<ls.length;i++)Et(ls[i],t);i=n;break;case"source":Et("error",t),i=n;break;case"img":case"image":case"link":Et("error",t),Et("load",t),i=n;break;case"details":Et("toggle",t),i=n;break;case"input":Fd(t,n),i=Uu(t,n),Et("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=Bt({},n,{value:void 0}),Et("invalid",t);break;case"textarea":kd(t,n),i=Lu(t,n),Et("invalid",t);break;default:i=n}Ou(r,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var g=l[s];s==="style"?yp(t,g):s==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,g!=null&&gp(t,g)):s==="children"?typeof g=="string"?(r!=="textarea"||g!=="")&&ws(t,g):typeof g=="number"&&ws(t,""+g):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(xs.hasOwnProperty(s)?g!=null&&s==="onScroll"&&Et("scroll",t):g!=null&&Df(t,s,g,o))}switch(r){case"input":oo(t),Sd(t,n,!1);break;case"textarea":oo(t),Rd(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Cn(n.value));break;case"select":t.multiple=!!n.multiple,s=n.value,s!=null?Ai(t,!!n.multiple,s,!1):n.defaultValue!=null&&Ai(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Ho)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}
vendor: 30,537 bytes, line 40
40return ir(e),null;case 6:if(t&&e.stateNode!=null)O0(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(Fe(166));if(r=Kn(Ts.current),Kn(Jr.current),mo(e)){if(n=e.stateNode,r=e.memoizedProps,n[Yr]=e,(s=n.nodeValue!==r)&&(t=Fr,t!==null))switch(t.tag){case 3:go(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&go(n.nodeValue,r,(t.mode&1)!==0)}s&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Yr]=e,e.stateNode=n}return ir(e),null;case 13:if(Ft(kt),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(St&&Er!==null&&e.mode&1&&!(e.flags&128))i0(),ji(),e.flags|=98560,s=!1;else if(s=mo(e),n!==null&&n.dehydrated!==null){if(t===null){if(!s)throw Error(Fe(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Fe(317));s[Yr]=e}else ji(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ir(e),s=!1}else Mr!==null&&(_f(Mr),Mr=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||kt.current&1?zt===0&&(zt=3):xc())),e.updateQueue!==null&&(e.flags|=4),ir(e),null);case 4:return Ui(),pf(t,e),t===null&&Ss(e.stateNode.containerInfo),ir(e),null;case 10:return tc(e.type._context),ir(e),null;case 17:return wr(e.type)&&Ko(),ir(e),null;case 19:if(Ft(kt),s=e.memoizedState,s===null)return ir(e),null;if(n=(e.flags&128)!==0,o=s.rendering,o===null)if(n)Zi(s,!1);else{if(zt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Jo(t),o!==null){for(e.flags|=128,Zi(s,!1),n=o.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)s=r,t=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return At(kt,kt.current&1|2),e.child}t=t.sibling}s.tail!==null&&Lt()>Pi&&(e.flags|=128,n=!0,Zi(s,!1),e.lanes=4194304)}else{if(!n)if(t=Jo(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Zi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!St)return ir(e),null}else 2*Lt()-s.renderingStartTime>Pi&&r!==1073741824&&(e.flags|=128,n=!0,Zi(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Lt(),e.sibling=null,r=kt.current,At(kt,n?r&1|2:r&1),e):(ir(e),null);case 22:case 23:return yc(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?_r&1073741824&&(ir(e),e.subtreeFlags&6&&(e.flags|=8192)):ir(e),null;case 24:return null;case 25:return null}throw Error(Fe(156,e.tag))}function z1(t,e){switch(Qf(e),e.tag){case 1:return wr(e.type)&&Ko(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ui(),Ft(xr),Ft(ur),oc(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return sc(e),null;case 13:if(Ft(kt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Fe(340));ji()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ft(kt),null;case 4:return Ui(),null;case 10:return tc(e.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var wo=!1,or=!1,H1=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function bi(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Nt(t,e,n)}else r.current=null}function gf(t,e,r){try{r()}catch(n){Nt(t,e,n)}}var yh=!1;function K1(t,e){if(Qu=Mo,t=Kp(),Yf(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,l=-1,g=-1,d=0,k=0,C=t,j=null;t:for(;;){for(var X;C!==r||i!==0&&C.nodeType!==3||(l=o+i),C!==s||n!==0&&C.nodeType!==3||(g=o+n),C.nodeType===3&&(o+=C.nodeValue.length),(X=C.firstChild)!==null;)j=C,C=X;for(;;){if(C===t)break t;if(j===r&&++d===i&&(l=o),j===s&&++k===n&&(g=o),(X=C.nextSibling)!==null)break;C=j,j=C.parentNode}C=X}r=l===-1||g===-1?null:{start:l,end:g}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ju={focusedElem:t,selectionRange:r},Mo=!1,Pe=e;Pe!==null;)if(e=Pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pe=t;else for(;Pe!==null;){e=Pe;try{var H=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(H!==null){var G=H.memoizedProps,D=H.memoizedState,R=e.stateNode,w=R.getSnapshotBeforeUpdate(e.elementType===e.type?G:Lr(e.type,G),D);R.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var T=e.stateNode.containerInfo;T.nodeType===1?T.textContent="":T.nodeType===9&&T.documentElement&&T.removeChild(T.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(W){Nt(e,e.return,W)}if(t=e.sibling,t!==null){t.return=e.return,Pe=t;break}Pe=e.return}return H=yh,yh=!1,H}function gs(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&gf(e,r,s)}i=i.next}while(i!==n)}}function Aa(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function mf(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function M0(t){var e=t.alternate;e!==null&&(t.alternate=null,M0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Yr],delete e[Rs],delete e[tf],delete e[k1],delete e[R1])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function q0(t){return t.tag===5||t.tag===3||t.tag===4}function xh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||q0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function yf(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,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=Ho));else if(n!==4&&(t=t.child,t!==null))for(yf(t,e,r),t=t.sibling;t!==null;)yf(t,e,r),t=t.sibling}function xf(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(xf(t,e,r),t=t.sibling;t!==null;)xf(t,e,r),t=t.sibling}var Qt=null,$r=!1;function mn(t,e,r){for(r=r.child;r!==null;)z0(t,e,r),r=r.sibling}function z0(t,e,r){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(ga,r)}catch{}switch(r.tag){case 5:or||bi(r,e);case 6:var n=Qt,i=$r;Qt=null,mn(t,e,r),Qt=n,$r=i,Qt!==null&&($r?(t=Qt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Qt.removeChild(r.stateNode));break;case 18:Qt!==null&&($r?(t=Qt,r=r.stateNode,t.nodeType===8?pu(t.parentNode,r):t.nodeType===1&&pu(t,r),As(t)):pu(Qt,r.stateNode));break;case 4:n=Qt,i=$r,Qt=r.stateNode.containerInfo,$r=!0,mn(t,e,r),Qt=n,$r=i;break;case 0:case 11:case 14:case 15:if(!or&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&gf(r,e,o),i=i.next}while(i!==n)}mn(t,e,r);break;case 1:if(!or&&(bi(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Nt(r,e,l)}mn(t,e,r);break;case 21:mn(t,e,r);break;case 22:r.mode&1?(or=(n=or)||r.memoizedState!==null,mn(t,e,r),or=n):mn(t,e,r);break;default:mn(t,e,r)}}function wh(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new H1),e.forEach(function(n){var i=ex.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=t,o=e,l=o;e:for(;l!==null;){switch(l.tag){case 5:Qt=l.stateNode,$r=!1;break e;case 3:Qt=l.stateNode.containerInfo,$r=!0;break e;case 4:Qt=l.stateNode.containerInfo,$r=!0;break e}l=l.return}if(Qt===null)throw Error(Fe(160));z0(s,o,i),Qt=null,$r=!1;var g=i.alternate;g!==null&&(g.return=null),i.return=null}catch(d){Nt(i,e,d)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)H0(e,t),e=e.sibling}function H0(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Pr(e,t),Vr(t),n&4){try{gs(3,t,t.return),Aa(3,t)}catch(G){Nt(t,t.return,G)}try{gs(5,t,t.return)}catch(G){Nt(t,t.return,G)}}break;case 1:Pr(e,t),Vr(t),n&512&&r!==null&&bi(r,r.return);break;case 5:if(Pr(e,t),Vr(t),n&512&&r!==null&&bi(r,r.return),t.flags&32){var i=t.stateNode;try{ws(i,"")}catch(G){Nt(t,t.return,G)}}if(n&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=r!==null?r.memoizedProps:s,l=t.type,g=t.updateQueue;if(t.updateQueue=null,g!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&dp(i,s),Mu(l,o);var d=Mu(l,s);for(o=0;o<g.length;o+=2){var k=g[o],C=g[o+1];k==="style"?yp(i,C):k==="dangerouslySetInnerHTML"?gp(i,C):k==="children"?ws(i,C):Df(i,k,C,d)}switch(l){case"input":Du(i,s);break;case"textarea":hp(i,s);break;case"select":var j=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var X=s.value;X!=null?Ai(i,!!s.multiple,X,!1):j!==!!s.multiple&&(s.defaultValue!=null?Ai(i,!!s.multiple,s.defaultValue,!0):Ai(i,!!s.multiple,s.multiple?[]:"",!1))}i[Rs]=s}catch(G){Nt(t,t.return,G)}}break;case 6:if(Pr(e,t),Vr(t),n&4){if(t.stateNode===null)throw Error(Fe(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(G){Nt(t,t.return,G)}}break;case 3:if(Pr(e,t),Vr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{As(e.containerInfo)}catch(G){Nt(t,t.return,G)}break;case 4:Pr(e,t),Vr(t);break;case 13:Pr(e,t),Vr(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(gc=Lt())),n&4&&wh(t);break;case 22:if(k=r!==null&&r.memoizedState!==null,t.mode&1?(or=(d=or)||k,Pr(e,t),or=d):Pr(e,t),Vr(t),n&8192){if(d=t.memoizedState!==null,(t.stateNode.isHidden=d)&&!k&&t.mode&1)for(Pe=t,k=t.child;k!==null;){for(C=Pe=k;Pe!==null;){switch(j=Pe,X=j.child,j.tag){case 0:case 11:case 14:case 15:gs(4,j,j.return);break;case 1:bi(j,j.return);var H=j.stateNode;if(typeof H.componentWillUnmount=="function"){n=j,r=j.return;try{e=n,H.props=e.memoizedProps,H.state=e.memoizedState,H.componentWillUnmount()}catch(G){Nt(n,r,G)}}break;case 5:bi(j,j.return);break;case 22:if(j.memoizedState!==null){bh(C);continue}}X!==null?(X.return=j,Pe=X):bh(C)}k=k.sibling}e:for(k=null,C=t;;){if(C.tag===5){if(k===null){k=C;try{i=C.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=C.stateNode,g=C.memoizedProps.style,o=g!=null&&g.hasOwnProperty("display")?g.display:null,l.style.display=mp("display",o))}catch(G){Nt(t,t.return,G)}}}else if(C.tag===6){if(k===null)try{C.stateNode.nodeValue=d?"":C.memoizedProps}catch(G){Nt(t,t.return,G)}}else if((C.tag!==22&&C.tag!==23||C.memoizedState===null||C===t)&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===t)break e;for(;C.sibling===null;){if(C.return===null||C.return===t)break e;k===C&&(k=null),C=C.return}k===C&&(k=null),C.sibling.return=C.return,C=C.sibling}}break;case 19:Pr(e,t),Vr(t),n&4&&wh(t);break;case 21:break;default:Pr(e,t),Vr(t)}}function Vr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(q0(r)){var n=r;break e}r=r.return}throw Error(Fe(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(ws(i,""),n.flags&=-33);var s=xh(t);xf(t,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,l=xh(t);yf(t,l,o);break;default:throw Error(Fe(161))}}catch(g){Nt(t,t.return,g)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function V1(t,e,r){Pe=t,K0(t)}function K0(t,e,r){for(var n=(t.mode&1)!==0;Pe!==null;){var i=Pe,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||wo;if(!o){var l=i.alternate,g=l!==null&&l.memoizedState!==null||or;l=wo;var d=or;if(wo=o,(or=g)&&!d)for(Pe=i;Pe!==null;)o=Pe,g=o.child,o.tag===22&&o.memoizedState!==null?_h(i):g!==null?(g.return=o,Pe=g):_h(i);for(;s!==null;)Pe=s,K0(s),s=s.sibling;Pe=i,wo=l,or=d}vh(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Pe=s):vh(t)}}function vh(t){for(;Pe!==null;){var e=Pe;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:or||Aa(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!or)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:Lr(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&ih(e,s,n);break;case 3:var o=e.updateQueue;if(o!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}ih(e,o,r)}break;case 5:var l=e.stateNode;if(r===null&&e.flags&4){r=l;var g=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":g.autoFocus&&r.focus();break;case"img":g.src&&(r.src=g.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var d=e.alternate;if(d!==null){var k=d.memoizedState;if(k!==null){var C=k.dehydrated;C!==null&&As(C)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Fe(163))}or||e.flags&512&&mf(e)}catch(j){Nt(e,e.return,j)}}if(e===t){Pe=null;break}if(r=e.sibling,r!==null){r.return=e.return,Pe=r;break}Pe=e.return}}function bh(t){for(;Pe!==null;){var e=Pe;if(e===t){Pe=null;break}var r=e.sibling;if(r!==null){r.return=e.return,Pe=r;break}Pe=e.return}}function _h(t){for(;Pe!==null;){var e=Pe;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Aa(4,e)}catch(g){Nt(e,r,g)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(g){Nt(e,i,g)}}var s=e.return;try{mf(e)}catch(g){Nt(e,s,g)}break;case 5:var o=e.return;try{mf(e)}catch(g){Nt(e,o,g)}}}catch(g){Nt(e,e.return,g)}if(e===t){Pe=null;break}var l=e.sibling;if(l!==null){l.return=e.return,Pe=l;break}Pe=e.return}}var G1=Math.ceil,ta=gn.ReactCurrentDispatcher,hc=gn.ReactCurrentOwner,Nr=gn.ReactCurrentBatchConfig,wt=0,Gt=null,$t=null,Jt=0,_r=0,_i=Pn(0),zt=0,Ns=null,Zn=0,Ea=0,pc=0,ms=null,mr=null,gc=0,Pi=1/0,rn=null,ra=!1,wf=null,Rn=null,vo=!1,_n=null,na=0,ys=0,vf=null,Co=-1,jo=0;function dr(){return wt&6?Lt():Co!==-1?Co:Co=Lt()}function Bn(t){return t.mode&1?wt&2&&Jt!==0?Jt&-Jt:T1.transition!==null?(jo===0&&(jo=Bp()),jo):(t=_t,t!==0||(t=window.event,t=t===void 0?16:Dp(t.type)),t):1}function zr(t,e,r,n){if(50<ys)throw ys=0,vf=null,Error(Fe(185));Ms(t,r,n),(!(wt&2)||t!==Gt)&&(t===Gt&&(!(wt&2)&&(Ea|=r),zt===4&&vn(t,Jt)),vr(t,n),r===1&&wt===0&&!(e.mode&1)&&(Pi=Lt()+500,va&&Ln()))}function vr(t,e){var r=t.callbackNode;Ty(t,e);var n=Oo(t,t===Gt?Jt:0);if(n===0)r!==null&&Id(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Id(r),e===1)t.tag===0?B1(Ah.bind(null,t)):t0(Ah.bind(null,t)),F1(function(){!(wt&6)&&Ln()}),r=null;else{switch(Tp(n)){case 1:r=Mf;break;case 4:r=kp;break;case 16:r=$o;break;case 536870912:r=Rp;break;default:r=$o}r=Z0(r,V0.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function V0(t,e){if(Co=-1,jo=0,wt&6)throw Error(Fe(327));var r=t.callbackNode;if(Ri()&&t.callbackNode!==r)return null;var n=Oo(t,t===Gt?Jt:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=ia(t,n);else{e=n;var i=wt;wt|=2;var s=W0();(Gt!==t||Jt!==e)&&(rn=null,Pi=Lt()+500,Vn(t,e));do try{X1();break}catch(l){G0(t,l)}while(!0);ec(),ta.current=s,wt=i,$t!==null?e=0:(Gt=null,Jt=0,e=zt)}if(e!==0){if(e===2&&(i=Vu(t),i!==0&&(n=i,e=bf(t,i))),e===1)throw r=Ns,Vn(t,0),vn(t,n),vr(t,Lt()),r;if(e===6)vn(t,n);else{if(i=t.current.alternate,!(n&30)&&!W1(i)&&(e=ia(t,n),e===2&&(s=Vu(t),s!==0&&(n=s,e=bf(t,s))),e===1))throw r=Ns,Vn(t,0),vn(t,n),vr(t,Lt()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(Fe(345));case 2:Mn(t,mr,rn);break;case 3:if(vn(t,n),(n&130023424)===n&&(e=gc+500-Lt(),10<e)){if(Oo(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){dr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=ef(Mn.bind(null,t,mr,rn),e);break}Mn(t,mr,rn);break;case 4:if(vn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var o=31-qr(n);s=1<<o,o=e[o],o>i&&(i=o),n&=~s}if(n=i,n=Lt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*G1(n/1960))-n,10<n){t.timeoutHandle=ef(Mn.bind(null,t,mr,rn),n);break}Mn(t,mr,rn);break;case 5:Mn(t,mr,rn);break;default:throw Error(Fe(329))}}}return vr(t,Lt()),t.callbackNode===r?V0.bind(null,t):null}function bf(t,e){var r=ms;return t.current.memoizedState.isDehydrated&&(Vn(t,e).flags|=256),t=ia(t,e),t!==2&&(e=mr,mr=r,e!==null&&_f(e)),t}function _f(t){mr===null?mr=t:mr.push.apply(mr,t)}function W1(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!Hr(s(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function vn(t,e){for(e&=~pc,e&=~Ea,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-qr(e),n=1<<r;t[r]=-1,e&=~n}}function Ah(t){if(wt&6)throw Error(Fe(327));Ri();var e=Oo(t,0);if(!(e&1))return vr(t,Lt()),null;var r=ia(t,e);if(t.tag!==0&&r===2){var n=Vu(t);n!==0&&(e=n,r=bf(t,n))}if(r===1)throw r=Ns,Vn(t,0),vn(t,e),vr(t,Lt()),r;if(r===6)throw Error(Fe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Mn(t,mr,rn),vr(t,Lt()),null}function mc(t,e){var r=wt;wt|=1;try{return t(e)}finally{wt=r,wt===0&&(Pi=Lt()+500,va&&Ln())}}function ei(t){_n!==null&&_n.tag===0&&!(wt&6)&&Ri();var e=wt;wt|=1;var r=Nr.transition,n=_t;try{if(Nr.transition=null,_t=1,t)return t()}finally{_t=n,Nr.transition=r,wt=e,!(wt&6)&&Ln()}}function yc(){_r=_i.current,Ft(_i)}function Vn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,E1(r)),$t!==null)for(r=$t.return;r!==null;){var n=r;switch(Qf(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ko();break;case 3:Ui(),Ft(xr),Ft(ur),oc();break;case 5:sc(n);break;case 4:Ui();break;case 13:Ft(kt);break;case 19:Ft(kt);break;case 10:tc(n.type._context);break;case 22:case 23:yc()}r=r.return}if(Gt=t,$t=t=Tn(t.current,null),Jt=_r=e,zt=0,Ns=null,pc=Ea=Zn=0,mr=ms=null,Hn!==null){for(e=0;e<Hn.length;e++)if(r=Hn[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}Hn=null}return t}function G0(t,e){do{var r=$t;try{if(ec(),Bo.current=ea,Zo){for(var n=Rt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Zo=!1}if(Jn=0,Vt=qt=Rt=null,ps=!1,Is=0,hc.current=null,r===null||r.return===null){zt=1,Ns=e,$t=null;break}e:{var s=t,o=r.return,l=r,g=e;if(e=Jt,l.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){var d=g,k=l,C=k.tag;if(!(k.mode&1)&&(C===0||C===11||C===15)){var j=k.alternate;j?(k.updateQueue=j.updateQueue,k.memoizedState=j.memoizedState,k.lanes=j.lanes):(k.updateQueue=null,k.memoizedState=null)}var X=fh(o);if(X!==null){X.flags&=-257,ch(X,o,l,s,e),X.mode&1&&uh(s,d,e),e=X,g=d;var H=e.updateQueue;if(H===null){var G=new Set;G.add(g),e.updateQueue=G}else H.add(g);break e}else{if(!(e&1)){uh(s,d,e),xc();break e}g=Error(Fe(426))}}else if(St&&l.mode&1){var D=fh(o);if(D!==null){!(D.flags&65536)&&(D.flags|=256),ch(D,o,l,s,e),Jf(Di(g,l));break e}}s=g=Di(g,l),zt!==4&&(zt=2),ms===null?ms=[s]:ms.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var R=T0(s,g,e);nh(s,R);break e;case 1:l=g;var w=s.type,T=s.stateNode;if(!(s.flags&128)&&(typeof w.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Rn===null||!Rn.has(T)))){s.flags|=65536,e&=-e,s.lanes|=e;var W=I0(s,l,e);nh(s,W);break e}}s=s.return}while(s!==null)}X0(r)}catch(J){e=J,$t===r&&r!==null&&($t=r=r.return);continue}break}while(!0)}function W0(){var t=ta.current;return ta.current=ea,t===null?ea:t}function xc(){(zt===0||zt===3||zt===2)&&(zt=4),Gt===null||!(Zn&268435455)&&!(Ea&268435455)||vn(Gt,Jt)}function ia(t,e){var r=wt;wt|=2;var n=W0();(Gt!==t||Jt!==e)&&(rn=null,Vn(t,e));do try{Y1();break}catch(i){G0(t,i)}while(!0);if(ec(),wt=r,ta.current=n,$t!==null)throw Error(Fe(261));return Gt=null,Jt=0,zt}function Y1(){for(;$t!==null;)Y0($t)}function X1(){for(;$t!==null&&!by();)Y0($t)}function Y0(t){var e=J0(t.alternate,t,_r);t.memoizedProps=t.pendingProps,e===null?X0(t):$t=e,hc.current=null}function X0(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=z1(r,e),r!==null){r.flags&=32767,$t=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{zt=6,$t=null;return}}else if(r=q1(r,e,_r),r!==null){$t=r;return}if(e=e.sibling,e!==null){$t=e;return}$t=e=t}while(e!==null);zt===0&&(zt=5)}function Mn(t,e,r){var n=_t,i=Nr.transition;try{Nr.transition=null,_t=1,Q1(t,e,r,n)}finally{Nr.transition=i,_t=n}return null}function Q1(t,e,r,n){do Ri();while(_n!==null);if(wt&6)throw Error(Fe(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(Fe(177));t.callbackNode=null,t.callbackPriority=0;var s=r.lanes|r.childLanes;if(Iy(t,s),t===Gt&&($t=Gt=null,Jt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||vo||(vo=!0,Z0($o,function(){return Ri(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Nr.transition,Nr.transition=null;var o=_t;_t=1;var l=wt;wt|=4,hc.current=null,K1(t,r),H0(r,t),y1(Ju),Mo=!!Qu,Ju=Qu=null,t.current=r,V1(r),_y(),wt=l,_t=o,Nr.transition=s}else t.current=r;if(vo&&(vo=!1,_n=t,na=i),s=t.pendingLanes,s===0&&(Rn=null),Fy(r.stateNode),vr(t,Lt()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ra)throw ra=!1,t=wf,wf=null,t;return na&1&&t.tag!==0&&Ri(),s=t.pendingLanes,s&1?t===vf?ys++:(ys=0,vf=t):ys=0,Ln(),null}function Ri(){if(_n!==null){var t=Tp(na),e=Nr.transition,r=_t;try{if(Nr.transition=null,_t=16>t?16:t,_n===null)var n=!1;else{if(t=_n,_n=null,na=0,wt&6)throw Error(Fe(331));var i=wt;for(wt|=4,Pe=t.current;Pe!==null;){var s=Pe,o=s.child;if(Pe.flags&16){var l=s.deletions;if(l!==null){for(var g=0;g<l.length;g++){var d=l[g];for(Pe=d;Pe!==null;){var k=Pe;switch(k.tag){case 0:case 11:case 15:gs(8,k,s)}var C=k.child;if(C!==null)C.return=k,Pe=C;else for(;Pe!==null;){k=Pe;var j=k.sibling,X=k.return;if(M0(k),k===d){Pe=null;break}if(j!==null){j.return=X,Pe=j;break}Pe=X}}}var H=s.alternate;if(H!==null){var G=H.child;if(G!==null){H.child=null;do{var D=G.sibling;G.sibling=null,G=D}while(G!==null)}}Pe=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,Pe=o;else e:for(;Pe!==null;){if(s=Pe,s.flags&2048)switch(s.tag){case 0:case 11:case 15:gs(9,s,s.return)}var R=s.sibling;if(R!==null){R.return=s.return,Pe=R;break e}Pe=s.return}}var w=t.current;for(Pe=w;Pe!==null;){o=Pe;var T=o.child;if(o.subtreeFlags&2064&&T!==null)T.return=o,Pe=T;else e:for(o=w;Pe!==null;){if(l=Pe,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Aa(9,l)}}catch(J){Nt(l,l.return,J)}if(l===o){Pe=null;break e}var W=l.sibling;if(W!==null){W.return=l.return,Pe=W;break e}Pe=l.return}}if(wt=i,Ln(),Qr&&typeof Qr.onPostCommitFiberRoot=="function")try{Qr.onPostCommitFiberRoot(ga,t)}catch{}n=!0}return n}finally{_t=r,Nr.transition=e}}return!1}function Eh(t,e,r){e=Di(r,e),e=T0(t,e,1),t=kn(t,e,1),e=dr(),t!==null&&(Ms(t,1,e),vr(t,e))}function Nt(t,e,r){if(t.tag===3)Eh(t,t,r);else for(;e!==null;){if(e.tag===3){Eh(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Rn===null||!Rn.has(n))){t=Di(r,t),t=I0(e,t,1),e=kn(e,t,1),t=dr(),e!==null&&(Ms(e,1,t),vr(e,t));break}}e=e.return}}function J1(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=dr(),t.pingedLanes|=t.suspendedLanes&r,Gt===t&&(Jt&r)===r&&(zt===4||zt===3&&(Jt&130023424)===Jt&&500>Lt()-gc?Vn(t,0):pc|=r),vr(t,e)}function Q0(t,e){e===0&&(t.mode&1?(e=uo,uo<<=1,!(uo&130023424)&&(uo=4194304)):e=1);var r=dr();t=dn(t,e),t!==null&&(Ms(t,e,r),vr(t,r))}function Z1(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Q0(t,r)}function ex(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(e),Q0(t,r)}var J0;J0=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||xr.current)yr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return yr=!1,M1(t,e,r);yr=!!(t.flags&131072)}else yr=!1,St&&e.flags&1048576&&r0(e,Wo,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Io(t,e),t=e.pendingProps;var i=Ci(e,ur.current);ki(e,r),i=lc(null,e,n,t,i,r);var s=uc();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,wr(n)?(s=!0,Vo(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,nc(e),i.updater=_a,e.stateNode=i,i._reactInternals=e,lf(e,n,t,r),e=cf(null,e,n,!0,s,r)):(e.tag=0,St&&s&&Xf(e),fr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Io(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=rx(n),t=Lr(n,t),i){case 0:e=ff(null,e,n,t,r);break e;case 1:e=ph(null,e,n,t,r);break e;case 11:e=dh(null,e,n,t,r);break e;case 14:e=hh(null,e,n,Lr(n.type,t),r);break e}throw Error(Fe(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Lr(n,i),ff(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Lr(n,i),ph(t,e,n,i,r);case 3:e:{if(U0(e),t===null)throw Error(Fe(387));n=e.pendingProps,s=e.memoizedState,i=s.element,l0(t,e),Qo(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Di(Error(Fe(423)),e),e=gh(t,e,n,r,i);break e}else if(n!==i){i=Di(Error(Fe(424)),e),e=gh(t,e,n,r,i);break e}else for(Er=Sn(e.stateNode.containerInfo.firstChild),Fr=e,St=!0,Mr=null,r=o0(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ji(),n===i){e=hn(t,e,r);break e}fr(t,e,n,r)}e=e.child}return e;case 5:return u0(e),t===null&&sf(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Zu(n,i)?o=null:s!==null&&Zu(n,s)&&(e.flags|=32),N0(t,e),fr(t,e,o,r),e.child;case 6:return t===null&&sf(e),null;case 13:return D0(t,e,r);case 4:return ic(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ni(e,null,n,r):fr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Lr(n,i),dh(t,e,n,i,r);case 7:return fr(t,e,e.pendingProps,r),e.child;case 8:return fr(t,e,e.pendingProps.children,r),e.child;case 12:return fr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,At(Yo,n._currentValue),n._currentValue=o,s!==null)if(Hr(s.value,o)){if(s.children===i.children&&!xr.current){e=hn(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var g=l.firstContext;g!==null;){if(g.context===n){if(s.tag===1){g=an(-1,r&-r),g.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var k=d.pending;k===null?g.next=g:(g.next=k.next,k.next=g),d.pending=g}}s.lanes|=r,g=s.alternate,g!==null&&(g.lanes|=r),of(s.return,r,e),l.lanes|=r;break}g=g.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(Fe(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),of(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}fr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,ki(e,r),i=Ur(i),n=n(i),e.flags|=1,fr(t,e,n,r),e.child;case 14:return n=e.type,i=Lr(n,e.pendingProps),i=Lr(n.type,i),hh(t,e,n,i,r);case 15:return C0(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Lr(n,i),Io(t,e),e.tag=1,wr(n)?(t=!0,Vo(e)):t=!1,ki(e,r),B0(e,n,i),lf(e,n,i,r),cf(null,e,n,!0,t,r);case 19:return P0(t,e,r);case 22:return j0(t,e,r)}throw Error(Fe(156,e.tag))};function Z0(t,e){return Sp(t,e)}function tx(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(t,e,r,n){return new tx(t,e,r,n)}function wc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function rx(t){if(typeof t=="function")return wc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Lf)return 11;if(t===$f)return 14}return 2}function Tn(t,e){var r=t.alternate;return r===null?(r=jr(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.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,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 No(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")wc(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case di:return Gn(r.children,i,s,e);case Pf:o=8,i|=8;break;
vendor: 8,647 bytes, line 40
40case Iu:return t=jr(12,r,e,i|2),t.elementType=Iu,t.lanes=s,t;case Cu:return t=jr(13,r,e,i),t.elementType=Cu,t.lanes=s,t;case ju:return t=jr(19,r,e,i),t.elementType=ju,t.lanes=s,t;case up:return Fa(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ap:o=10;break e;case lp:o=9;break e;case Lf:o=11;break e;case $f:o=14;break e;case yn:o=16,n=null;break e}throw Error(Fe(130,t==null?t:typeof t,""))}return e=jr(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Gn(t,e,r,n){return t=jr(7,t,n,e),t.lanes=r,t}function Fa(t,e,r,n){return t=jr(22,t,n,e),t.elementType=up,t.lanes=r,t.stateNode={isHidden:!1},t}function _u(t,e,r){return t=jr(6,t,null,e),t.lanes=r,t}function Au(t,e,r){return e=jr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function nx(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nu(0),this.expirationTimes=nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nu(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vc(t,e,r,n,i,s,o,l,g){return t=new nx(t,e,r,l,g),e===1?(e=1,s===!0&&(e|=8)):e=0,s=jr(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(s),t}function ix(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ci,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function eg(t){if(!t)return jn;t=t._reactInternals;e:{if(oi(t)!==t||t.tag!==1)throw Error(Fe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(wr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Fe(171))}if(t.tag===1){var r=t.type;if(wr(r))return e0(t,r,e)}return e}function tg(t,e,r,n,i,s,o,l,g){return t=vc(r,n,!0,t,i,s,o,l,g),t.context=eg(null),r=t.current,n=dr(),i=Bn(r),s=an(n,i),s.callback=e??null,kn(r,s,i),t.current.lanes=i,Ms(t,i,n),vr(t,n),t}function Sa(t,e,r,n){var i=e.current,s=dr(),o=Bn(i);return r=eg(r),e.context===null?e.context=r:e.pendingContext=r,e=an(s,o),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=kn(i,e,o),t!==null&&(zr(t,i,o,s),Ro(t,i,o)),o}function sa(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 Fh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function bc(t,e){Fh(t,e),(t=t.alternate)&&Fh(t,e)}function sx(){return null}var rg=typeof reportError=="function"?reportError:function(t){console.error(t)};function _c(t){this._internalRoot=t}ka.prototype.render=_c.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Fe(409));Sa(t,e,null,null)};ka.prototype.unmount=_c.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;ei(function(){Sa(null,t,null,null)}),e[cn]=null}};function ka(t){this._internalRoot=t}ka.prototype.unstable_scheduleHydration=function(t){if(t){var e=jp();t={blockedOn:null,target:t,priority:e};for(var r=0;r<wn.length&&e!==0&&e<wn[r].priority;r++);wn.splice(r,0,t),r===0&&Up(t)}};function Ac(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ra(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Sh(){}function ox(t,e,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var d=sa(o);s.call(d)}}var o=tg(e,n,t,0,null,!1,!1,"",Sh);return t._reactRootContainer=o,t[cn]=o.current,Ss(t.nodeType===8?t.parentNode:t),ei(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var l=n;n=function(){var d=sa(g);l.call(d)}}var g=vc(t,0,!1,null,null,!1,!1,"",Sh);return t._reactRootContainer=g,t[cn]=g.current,Ss(t.nodeType===8?t.parentNode:t),ei(function(){Sa(e,g,r,n)}),g}function Ba(t,e,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var g=sa(o);l.call(g)}}Sa(e,o,t,i)}else o=ox(r,e,t,i,n);return sa(o)}Ip=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=as(e.pendingLanes);r!==0&&(qf(e,r|1),vr(e,Lt()),!(wt&6)&&(Pi=Lt()+500,Ln()))}break;case 13:ei(function(){var n=dn(t,1);if(n!==null){var i=dr();zr(n,t,1,i)}}),bc(t,1)}};zf=function(t){if(t.tag===13){var e=dn(t,134217728);if(e!==null){var r=dr();zr(e,t,134217728,r)}bc(t,134217728)}};Cp=function(t){if(t.tag===13){var e=Bn(t),r=dn(t,e);if(r!==null){var n=dr();zr(r,t,e,n)}bc(t,e)}};jp=function(){return _t};Np=function(t,e){var r=_t;try{return _t=t,e()}finally{_t=r}};zu=function(t,e,r){switch(e){case"input":if(Du(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=wa(n);if(!i)throw Error(Fe(90));cp(n),Du(n,i)}}}break;case"textarea":hp(t,r);break;case"select":e=r.value,e!=null&&Ai(t,!!r.multiple,e,!1)}};vp=mc;bp=ei;var ax={usingClientEntryPoint:!1,Events:[zs,mi,wa,xp,wp,mc]},es={findFiberByHostInstance:zn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lx={bundleType:es.bundleType,version:es.version,rendererPackageName:es.rendererPackageName,rendererConfig:es.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ep(t),t===null?null:t.stateNode},findFiberByHostInstance:es.findFiberByHostInstance||sx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bo.isDisabled&&bo.supportsFiber)try{ga=bo.inject(lx),Qr=bo}catch{}}kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ax;kr.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ac(e))throw Error(Fe(200));return ix(t,e,null,r)};kr.createRoot=function(t,e){if(!Ac(t))throw Error(Fe(299));var r=!1,n="",i=rg;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=vc(t,1,!1,null,null,r,!1,n,i),t[cn]=e.current,Ss(t.nodeType===8?t.parentNode:t),new _c(e)};kr.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(Fe(188)):(t=Object.keys(t).join(","),Error(Fe(268,t)));return t=Ep(e),t=t===null?null:t.stateNode,t};kr.flushSync=function(t){return ei(t)};kr.hydrate=function(t,e,r){if(!Ra(e))throw Error(Fe(200));return Ba(null,t,e,!0,r)};kr.hydrateRoot=function(t,e,r){if(!Ac(t))throw Error(Fe(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=rg;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),e=tg(e,null,t,1,r??null,i,!1,s,o),t[cn]=e.current,Ss(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new ka(e)};kr.render=function(t,e,r){if(!Ra(e))throw Error(Fe(200));return Ba(null,t,e,!1,r)};kr.unmountComponentAtNode=function(t){if(!Ra(t))throw Error(Fe(40));return t._reactRootContainer?(ei(function(){Ba(null,null,t,!1,function(){t._reactRootContainer=null,t[cn]=null})}),!0):!1};kr.unstable_batchedUpdates=mc;kr.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Ra(r))throw Error(Fe(200));if(t==null||t._reactInternals===void 0)throw Error(Fe(38));return Ba(t,e,r,!1,n)};kr.version="18.3.1-next-f1338f8080-20240426";function ng(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ng)}catch(t){console.error(t)}}
40ng(),np.exports=kr;var ux=np.exports,ig,kh=ux;ig=kh.createRoot,kh.hydrateRoot;/** 41 * @license lucide-react v0.344.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */var fx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 46 * @license lucide-react v0.344.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */const cx=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),gr=(t,e)=>{const r=Pt.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:g,...d},k)=>Pt.createElement("svg",{ref:k,...fx,width:i,height:i,stroke:n,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${cx(t)}`,l].join(" "),...d},[...e.map(([C,j])=>Pt.createElement(C,j)),...Array.isArray(g)?g:[g]]));return r.displayName=`${t}`,r};/** 51 * @license lucide-react v0.344.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const dx=gr("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 56 * @license lucide-react v0.344.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const sg=gr("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** 61 * @license lucide-react v0.344.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const hx=gr("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 66 * @license lucide-react v0.344.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const px=gr("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** 71 * @license lucide-react v0.344.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const gx=gr("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** 76 * @license lucide-react v0.344.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const og=gr("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/** 81 * @license lucide-react v0.344.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const mx=gr("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** 86 * @license lucide-react v0.344.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Rh=gr("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 91 * @license lucide-react v0.344.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const yx=gr("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 96 * @license lucide-react v0.344.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const xx=gr("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** 101 * @license lucide-react v0.344.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const Bh=gr("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 106 * @license lucide-react v0.344.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const wx=gr("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 111 * @license lucide-react v0.344.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const vx=gr("Wallet",[["path",{d:"M21 12V7H5a2 2 0 0 1 0-4h14v4",key:"195gfw"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h16v-5",key:"195n9w"}],["path",{d:"M18 12a2 2 0 0 0 0 4h4v-4Z",key:"vllfpd"}]]);/** 116 * @license lucide-react v0.344.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const bx=gr("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 121 * @license lucide-react v0.344.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const _x=gr("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);var O={},Ta={};Ta.byteLength=Fx;Ta.toByteArray=kx;Ta.fromByteArray=Tx;var Xr=[],Br=[],Ax=typeof Uint8Array<"u"?Uint8Array:Array,Eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 23,552 bytes, lines 125-130
125+/";for(var fi=0,Ex=Eu.length;fi<Ex;++fi)Xr[fi]=Eu[fi],Br[Eu.charCodeAt(fi)]=fi;Br[45]=62;Br[95]=63;function ag(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Fx(t){var e=ag(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Sx(t,e,r){return(e+r)*3/4-r}function kx(t){var e,r=ag(t),n=r[0],i=r[1],s=new Ax(Sx(t,n,i)),o=0,l=i>0?n-4:n,g;for(g=0;g<l;g+=4)e=Br[t.charCodeAt(g)]<<18|Br[t.charCodeAt(g+1)]<<12|Br[t.charCodeAt(g+2)]<<6|Br[t.charCodeAt(g+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=Br[t.charCodeAt(g)]<<2|Br[t.charCodeAt(g+1)]>>4,s[o++]=e&255),i===1&&(e=Br[t.charCodeAt(g)]<<10|Br[t.charCodeAt(g+1)]<<4|Br[t.charCodeAt(g+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Rx(t){return Xr[t>>18&63]+Xr[t>>12&63]+Xr[t>>6&63]+Xr[t&63]}function Bx(t,e,r){for(var n,i=[],s=e;s<r;s+=3)n=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),i.push(Rx(n));return i.join("")}function Tx(t){for(var e,r=t.length,n=r%3,i=[],s=16383,o=0,l=r-n;o<l;o+=s)i.push(Bx(t,o,o+s>l?l:o+s));return n===1?(e=t[r-1],i.push(Xr[e>>2]+Xr[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Xr[e>>10]+Xr[e>>4&63]+Xr[e<<2&63]+"=")),i.join("")}var Ec={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ec.read=function(t,e,r,n,i){var s,o,l=i*8-n-1,g=(1<<l)-1,d=g>>1,k=-7,C=r?i-1:0,j=r?-1:1,X=t[e+C];for(C+=j,s=X&(1<<-k)-1,X>>=-k,k+=l;k>0;s=s*256+t[e+C],C+=j,k-=8);for(o=s&(1<<-k)-1,s>>=-k,k+=n;k>0;o=o*256+t[e+C],C+=j,k-=8);if(s===0)s=1-d;else{if(s===g)return o?NaN:(X?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-d}return(X?-1:1)*o*Math.pow(2,s-n)};Ec.write=function(t,e,r,n,i,s){var o,l,g,d=s*8-i-1,k=(1<<d)-1,C=k>>1,j=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,X=n?0:s-1,H=n?1:-1,G=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,o=k):(o=Math.floor(Math.log(e)/Math.LN2),e*(g=Math.pow(2,-o))<1&&(o--,g*=2),o+C>=1?e+=j/g:e+=j*Math.pow(2,1-C),e*g>=2&&(o++,g/=2),o+C>=k?(l=0,o=k):o+C>=1?(l=(e*g-1)*Math.pow(2,i),o=o+C):(l=e*Math.pow(2,C-1)*Math.pow(2,i),o=0));i>=8;t[r+X]=l&255,X+=H,l/=256,i-=8);for(o=o<<i|l,d+=i;d>0;t[r+X]=o&255,X+=H,o/=256,d-=8);t[r+X-H]|=G*128};/*! 126 * The buffer module from node.js, for the browser. 127 * 128 * @author Feross Aboukhadijeh <https://feross.org> 129 * @license MIT 130 */(function(t){const e=Ta,r=Ec,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=s(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const h=new Uint8Array(1),a={foo:function(){return 42}};return Object.setPrototypeOf(a,Uint8Array.prototype),Object.setPrototypeOf(h,a),h.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(h){if(h>i)throw new RangeError('The value "'+h+'" is invalid for option "size"');const a=new Uint8Array(h);return Object.setPrototypeOf(a,l.prototype),a}function l(h,a,f){if(typeof h=="number"){if(typeof a=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(h)}return g(h,a,f)}l.poolSize=8192;function g(h,a,f){if(typeof h=="string")return j(h,a);if(ArrayBuffer.isView(h))return H(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(v(h,ArrayBuffer)||h&&v(h.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(v(h,SharedArrayBuffer)||h&&v(h.buffer,SharedArrayBuffer)))return G(h,a,f);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=h.valueOf&&h.valueOf();if(m!=null&&m!==h)return l.from(m,a,f);const I=D(h);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return l.from(h[Symbol.toPrimitive]("string"),a,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}l.from=function(h,a,f){return g(h,a,f)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function k(h,a,f){return d(h),h<=0?o(h):a!==void 0?typeof f=="string"?o(h).fill(a,f):o(h).fill(a):o(h)}l.alloc=function(h,a,f){return k(h,a,f)};function C(h){return d(h),o(h<0?0:R(h)|0)}l.allocUnsafe=function(h){return C(h)},l.allocUnsafeSlow=function(h){return C(h)};function j(h,a){if((typeof a!="string"||a==="")&&(a="utf8"),!l.isEncoding(a))throw new TypeError("Unknown encoding: "+a);const f=T(h,a)|0;let m=o(f);const I=m.write(h,a);return I!==f&&(m=m.slice(0,I)),m}function X(h){const a=h.length<0?0:R(h.length)|0,f=o(a);for(let m=0;m<a;m+=1)f[m]=h[m]&255;return f}function H(h){if(v(h,Uint8Array)){const a=new Uint8Array(h);return G(a.buffer,a.byteOffset,a.byteLength)}return X(h)}function G(h,a,f){if(a<0||h.byteLength<a)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<a+(f||0))throw new RangeError('"length" is outside of buffer bounds');let m;return a===void 0&&f===void 0?m=new Uint8Array(h):f===void 0?m=new Uint8Array(h,a):m=new Uint8Array(h,a,f),Object.setPrototypeOf(m,l.prototype),m}function D(h){if(l.isBuffer(h)){const a=R(h.length)|0,f=o(a);return f.length===0||h.copy(f,0,0,a),f}if(h.length!==void 0)return typeof h.length!="number"||E(h.length)?o(0):X(h);if(h.type==="Buffer"&&Array.isArray(h.data))return X(h.data)}function R(h){if(h>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return h|0}function w(h){return+h!=h&&(h=0),l.alloc(+h)}l.isBuffer=function(a){return a!=null&&a._isBuffer===!0&&a!==l.prototype},l.compare=function(a,f){if(v(a,Uint8Array)&&(a=l.from(a,a.offset,a.byteLength)),v(f,Uint8Array)&&(f=l.from(f,f.offset,f.byteLength)),!l.isBuffer(a)||!l.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===f)return 0;let m=a.length,I=f.length;for(let q=0,re=Math.min(m,I);q<re;++q)if(a[q]!==f[q]){m=a[q],I=f[q];break}return m<I?-1:I<m?1:0},l.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(a,f){if(!Array.isArray(a))throw new TypeError('"list" argument must be an Array of Buffers');if(a.length===0)return l.alloc(0);let m;if(f===void 0)for(f=0,m=0;m<a.length;++m)f+=a[m].length;const I=l.allocUnsafe(f);let q=0;for(m=0;m<a.length;++m){let re=a[m];if(v(re,Uint8Array))q+re.length>I.length?(l.isBuffer(re)||(re=l.from(re)),re.copy(I,q)):Uint8Array.prototype.set.call(I,re,q);else if(l.isBuffer(re))re.copy(I,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=re.length}return I};function T(h,a){if(l.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||v(h,ArrayBuffer))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const f=h.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&f===0)return 0;let I=!1;for(;;)switch(a){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return K(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return x(h).length;default:if(I)return m?-1:K(h).length;a=(""+a).toLowerCase(),I=!0}}l.byteLength=T;function W(h,a,f){let m=!1;if((a===void 0||a<0)&&(a=0),a>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,a>>>=0,f<=a))return"";for(h||(h="utf8");;)switch(h){case"hex":return we(this,a,f);case"utf8":case"utf-8":return xe(this,a,f);case"ascii":return Ye(this,a,f);case"latin1":case"binary":return pe(this,a,f);case"base64":return de(this,a,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,a,f);default:if(m)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),m=!0}}l.prototype._isBuffer=!0;function J(h,a,f){const m=h[a];h[a]=h[f],h[f]=m}l.prototype.swap16=function(){const a=this.length;if(a%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<a;f+=2)J(this,f,f+1);return this},l.prototype.swap32=function(){const a=this.length;if(a%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<a;f+=4)J(this,f,f+3),J(this,f+1,f+2);return this},l.prototype.swap64=function(){const a=this.length;if(a%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<a;f+=8)J(this,f,f+7),J(this,f+1,f+6),J(this,f+2,f+5),J(this,f+3,f+4);return this},l.prototype.toString=function(){const a=this.length;return a===0?"":arguments.length===0?xe(this,0,a):W.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(a){if(!l.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:l.compare(this,a)===0},l.prototype.inspect=function(){let a="";const f=t.INSPECT_MAX_BYTES;return a=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(a+=" ... "),"<Buffer "+a+">"},n&&(l.prototype[n]=l.prototype.inspect),l.prototype.compare=function(a,f,m,I,q){if(v(a,Uint8Array)&&(a=l.from(a,a.offset,a.byteLength)),!l.isBuffer(a))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof a);if(f===void 0&&(f=0),m===void 0&&(m=a?a.length:0),I===void 0&&(I=0),q===void 0&&(q=this.length),f<0||m>a.length||I<0||q>this.length)throw new RangeError("out of range index");if(I>=q&&f>=m)return 0;if(I>=q)return-1;if(f>=m)return 1;if(f>>>=0,m>>>=0,I>>>=0,q>>>=0,this===a)return 0;let re=q-I,ke=m-f;const He=Math.min(re,ke),qe=this.slice(I,q),De=a.slice(f,m);for(let Qe=0;Qe<He;++Qe)if(qe[Qe]!==De[Qe]){re=qe[Qe],ke=De[Qe];break}return re<ke?-1:ke<re?1:0};function A(h,a,f,m,I){if(h.length===0)return-1;if(typeof f=="string"?(m=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,E(f)&&(f=I?0:h.length-1),f<0&&(f=h.length+f),f>=h.length){if(I)return-1;f=h.length-1}else if(f<0)if(I)f=0;else return-1;if(typeof a=="string"&&(a=l.from(a,m)),l.isBuffer(a))return a.length===0?-1:P(h,a,f,m,I);if(typeof a=="number")return a=a&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(h,a,f):Uint8Array.prototype.lastIndexOf.call(h,a,f):P(h,[a],f,m,I);throw new TypeError("val must be string, number or Buffer")}function P(h,a,f,m,I){let q=1,re=h.length,ke=a.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(h.length<2||a.length<2)return-1;q=2,re/=2,ke/=2,f/=2}function He(De,Qe){return q===1?De[Qe]:De.readUInt16BE(Qe*q)}let qe;if(I){let De=-1;for(qe=f;qe<re;qe++)if(He(h,qe)===He(a,De===-1?0:qe-De)){if(De===-1&&(De=qe),qe-De+1===ke)return De*q}else De!==-1&&(qe-=qe-De),De=-1}else for(f+ke>re&&(f=re-ke),qe=f;qe>=0;qe--){let De=!0;for(let Qe=0;Qe<ke;Qe++)if(He(h,qe+Qe)!==He(a,Qe)){De=!1;break}if(De)return qe}return-1}l.prototype.includes=function(a,f,m){return this.indexOf(a,f,m)!==-1},l.prototype.indexOf=function(a,f,m){return A(this,a,f,m,!0)},l.prototype.lastIndexOf=function(a,f,m){return A(this,a,f,m,!1)};function M(h,a,f,m){f=Number(f)||0;const I=h.length-f;m?(m=Number(m),m>I&&(m=I)):m=I;const q=a.length;m>q/2&&(m=q/2);let re;for(re=0;re<m;++re){const ke=parseInt(a.substr(re*2,2),16);if(E(ke))return re;h[f+re]=ke}return re}function se(h,a,f,m){return c(K(a,h.length-f),h,f,m)}function $(h,a,f,m){return c(Q(a),h,f,m)}function he(h,a,f,m){return c(x(a),h,f,m)}function ae(h,a,f,m){return c(ne(a,h.length-f),h,f,m)}l.prototype.write=function(a,f,m,I){if(f===void 0)I="utf8",m=this.length,f=0;else if(m===void 0&&typeof f=="string")I=f,m=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(m)?(m=m>>>0,I===void 0&&(I="utf8")):(I=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-f;if((m===void 0||m>q)&&(m=q),a.length>0&&(m<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let re=!1;for(;;)switch(I){case"hex":return M(this,a,f,m);case"utf8":case"utf-8":return se(this,a,f,m);case"ascii":case"latin1":case"binary":return $(this,a,f,m);case"base64":return he(this,a,f,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,a,f,m);default:if(re)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),re=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(h,a,f){return a===0&&f===h.length?e.fromByteArray(h):e.fromByteArray(h.slice(a,f))}function xe(h,a,f){f=Math.min(h.length,f);const m=[];let I=a;for(;I<f;){const q=h[I];let re=null,ke=q>239?4:q>223?3:q>191?2:1;if(I+ke<=f){let He,qe,De,Qe;switch(ke){case 1:q<128&&(re=q);break;case 2:He=h[I+1],(He&192)===128&&(Qe=(q&31)<<6|He&63,Qe>127&&(re=Qe));break;case 3:He=h[I+1],qe=h[I+2],(He&192)===128&&(qe&192)===128&&(Qe=(q&15)<<12|(He&63)<<6|qe&63,Qe>2047&&(Qe<55296||Qe>57343)&&(re=Qe));break;case 4:He=h[I+1],qe=h[I+2],De=h[I+3],(He&192)===128&&(qe&192)===128&&(De&192)===128&&(Qe=(q&15)<<18|(He&63)<<12|(qe&63)<<6|De&63,Qe>65535&&Qe<1114112&&(re=Qe))}}re===null?(re=65533,ke=1):re>65535&&(re-=65536,m.push(re>>>10&1023|55296),re=56320|re&1023),m.push(re),I+=ke}return Le(m)}const Ie=4096;function Le(h){const a=h.length;if(a<=Ie)return String.fromCharCode.apply(String,h);let f="",m=0;for(;m<a;)f+=String.fromCharCode.apply(String,h.slice(m,m+=Ie));return f}function Ye(h,a,f){let m="";f=Math.min(h.length,f);for(let I=a;I<f;++I)m+=String.fromCharCode(h[I]&127);return m}function pe(h,a,f){let m="";f=Math.min(h.length,f);for(let I=a;I<f;++I)m+=String.fromCharCode(h[I]);return m}function we(h,a,f){const m=h.length;(!a||a<0)&&(a=0),(!f||f<0||f>m)&&(f=m);let I="";for(let q=a;q<f;++q)I+=B[h[q]];return I}function _e(h,a,f){const m=h.slice(a,f);let I="";for(let q=0;q<m.length-1;q+=2)I+=String.fromCharCode(m[q]+m[q+1]*256);return I}l.prototype.slice=function(a,f){const m=this.length;a=~~a,f=f===void 0?m:~~f,a<0?(a+=m,a<0&&(a=0)):a>m&&(a=m),f<0?(f+=m,f<0&&(f=0)):f>m&&(f=m),f<a&&(f=a);const I=this.subarray(a,f);return Object.setPrototypeOf(I,l.prototype),I};function Be(h,a,f){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+a>f)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(a,f,m){a=a>>>0,f=f>>>0,m||Be(a,f,this.length);let I=this[a],q=1,re=0;for(;++re<f&&(q*=256);)I+=this[a+re]*q;return I},l.prototype.readUintBE=l.prototype.readUIntBE=function(a,f,m){a=a>>>0,f=f>>>0,m||Be(a,f,this.length);let I=this[a+--f],q=1;for(;f>0&&(q*=256);)I+=this[a+--f]*q;return I},l.prototype.readUint8=l.prototype.readUInt8=function(a,f){return a=a>>>0,f||Be(a,1,this.length),this[a]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(a,f){return a=a>>>0,f||Be(a,2,this.length),this[a]|this[a+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(a,f){return a=a>>>0,f||Be(a,2,this.length),this[a]<<8|this[a+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+this[a+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),this[a]*16777216+(this[a+1]<<16|this[a+2]<<8|this[a+3])},l.prototype.readBigUInt64LE=z(function(a){a=a>>>0,te(a,"offset");const f=this[a],m=this[a+7];(f===void 0||m===void 0)&&Y(a,this.length-8);const I=f+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24,q=this[++a]+this[++a]*2**8+this[++a]*2**16+m*2**24;return BigInt(I)+(BigInt(q)<<BigInt(32))}),l.prototype.readBigUInt64BE=z(function(a){a=a>>>0,te(a,"offset");const f=this[a],m=this[a+7];(f===void 0||m===void 0)&&Y(a,this.length-8);const I=f*2**24+this[++a]*2**16+this[++a]*2**8+this[++a],q=this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m;return(BigInt(I)<<BigInt(32))+BigInt(q)}),l.prototype.readIntLE=function(a,f,m){a=a>>>0,f=f>>>0,m||Be(a,f,this.length);let I=this[a],q=1,re=0;for(;++re<f&&(q*=256);)I+=this[a+re]*q;return q*=128,I>=q&&(I-=Math.pow(2,8*f)),I},l.prototype.readIntBE=function(a,f,m){a=a>>>0,f=f>>>0,m||Be(a,f,this.length);let I=f,q=1,re=this[a+--I];for(;I>0&&(q*=256);)re+=this[a+--I]*q;return q*=128,re>=q&&(re-=Math.pow(2,8*f)),re},l.prototype.readInt8=function(a,f){return a=a>>>0,f||Be(a,1,this.length),this[a]&128?(255-this[a]+1)*-1:this[a]},l.prototype.readInt16LE=function(a,f){a=a>>>0,f||Be(a,2,this.length);const m=this[a]|this[a+1]<<8;return m&32768?m|4294901760:m},l.prototype.readInt16BE=function(a,f){a=a>>>0,f||Be(a,2,this.length);const m=this[a+1]|this[a]<<8;return m&32768?m|4294901760:m},l.prototype.readInt32LE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},l.prototype.readInt32BE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},l.prototype.readBigInt64LE=z(function(a){a=a>>>0,te(a,"offset");const f=this[a],m=this[a+7];(f===void 0||m===void 0)&&Y(a,this.length-8);const I=this[a+4]+this[a+5]*2**8+this[a+6]*2**16+(m<<24);return(BigInt(I)<<BigInt(32))+BigInt(f+this[++a]*2**8+this[++a]*2**16+this[++a]*2**24)}),l.prototype.readBigInt64BE=z(function(a){a=a>>>0,te(a,"offset");const f=this[a],m=this[a+7];(f===void 0||m===void 0)&&Y(a,this.length-8);const I=(f<<24)+this[++a]*2**16+this[++a]*2**8+this[++a];return(BigInt(I)<<BigInt(32))+BigInt(this[++a]*2**24+this[++a]*2**16+this[++a]*2**8+m)}),l.prototype.readFloatLE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),r.read(this,a,!0,23,4)},l.prototype.readFloatBE=function(a,f){return a=a>>>0,f||Be(a,4,this.length),r.read(this,a,!1,23,4)},l.prototype.readDoubleLE=function(a,f){return a=a>>>0,f||Be(a,8,this.length),r.read(this,a,!0,52,8)},l.prototype.readDoubleBE=function(a,f){return a=a>>>0,f||Be(a,8,this.length),r.read(this,a,!1,52,8)};function Re(h,a,f,m,I,q){if(!l.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>I||a<q)throw new RangeError('"value" argument is out of bounds');if(f+m>h.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(a,f,m,I){if(a=+a,f=f>>>0,m=m>>>0,!I){const ke=Math.pow(2,8*m)-1;Re(this,a,f,m,ke,0)}let q=1,re=0;for(this[f]=a&255;++re<m&&(q*=256);)this[f+re]=a/q&255;return f+m},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(a,f,m,I){if(a=+a,f=f>>>0,m=m>>>0,!I){const ke=Math.pow(2,8*m)-1;Re(this,a,f,m,ke,0)}let q=m-1,re=1;for(this[f+q]=a&255;--q>=0&&(re*=256);)this[f+q]=a/re&255;return f+m},l.prototype.writeUint8=l.prototype.writeUInt8=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,1,255,0),this[f]=a&255,f+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,2,65535,0),this[f]=a&255,this[f+1]=a>>>8,f+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,2,65535,0),this[f]=a>>>8,this[f+1]=a&255,f+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,4,4294967295,0),this[f+3]=a>>>24,this[f+2]=a>>>16,this[f+1]=a>>>8,this[f]=a&255,f+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,4,4294967295,0),this[f]=a>>>24,this[f+1]=a>>>16,this[f+2]=a>>>8,this[f+3]=a&255,f+4};function Te(h,a,f,m,I){L(a,m,I,h,f,7);let q=Number(a&BigInt(4294967295));h[f++]=q,q=q>>8,h[f++]=q,q=q>>8,h[f++]=q,q=q>>8,h[f++]=q;let re=Number(a>>BigInt(32)&BigInt(4294967295));return h[f++]=re,re=re>>8,h[f++]=re,re=re>>8,h[f++]=re,re=re>>8,h[f++]=re,f}function fe(h,a,f,m,I){L(a,m,I,h,f,7);let q=Number(a&BigInt(4294967295));h[f+7]=q,q=q>>8,h[f+6]=q,q=q>>8,h[f+5]=q,q=q>>8,h[f+4]=q;let re=Number(a>>BigInt(32)&BigInt(4294967295));return h[f+3]=re,re=re>>8,h[f+2]=re,re=re>>8,h[f+1]=re,re=re>>8,h[f]=re,f+8}l.prototype.writeBigUInt64LE=z(function(a,f=0){return Te(this,a,f,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=z(function(a,f=0){return fe(this,a,f,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(a,f,m,I){if(a=+a,f=f>>>0,!I){const He=Math.pow(2,8*m-1);Re(this,a,f,m,He-1,-He)}let q=0,re=1,ke=0;for(this[f]=a&255;++q<m&&(re*=256);)a<0&&ke===0&&this[f+q-1]!==0&&(ke=1),this[f+q]=(a/re>>0)-ke&255;return f+m},l.prototype.writeIntBE=function(a,f,m,I){if(a=+a,f=f>>>0,!I){const He=Math.pow(2,8*m-1);Re(this,a,f,m,He-1,-He)}let q=m-1,re=1,ke=0;for(this[f+q]=a&255;--q>=0&&(re*=256);)a<0&&ke===0&&this[f+q+1]!==0&&(ke=1),this[f+q]=(a/re>>0)-ke&255;return f+m},l.prototype.writeInt8=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,1,127,-128),a<0&&(a=255+a+1),this[f]=a&255,f+1},l.prototype.writeInt16LE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,2,32767,-32768),this[f]=a&255,this[f+1]=a>>>8,f+2},l.prototype.writeInt16BE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,2,32767,-32768),this[f]=a>>>8,this[f+1]=a&255,f+2},l.prototype.writeInt32LE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,4,2147483647,-2147483648),this[f]=a&255,this[f+1]=a>>>8,this[f+2]=a>>>16,this[f+3]=a>>>24,f+4},l.prototype.writeInt32BE=function(a,f,m){return a=+a,f=f>>>0,m||Re(this,a,f,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),this[f]=a>>>24,this[f+1]=a>>>16,this[f+2]=a>>>8,this[f+3]=a&255,f+4},l.prototype.writeBigInt64LE=z(function(a,f=0){return Te(this,a,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=z(function(a,f=0){return fe(this,a,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $e(h,a,f,m,I,q){if(f+m>h.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function it(h,a,f,m,I){return a=+a,f=f>>>0,I||$e(h,a,f,4),r.write(h,a,f,m,23,4),f+4}l.prototype.writeFloatLE=function(a,f,m){return it(this,a,f,!0,m)},l.prototype.writeFloatBE=function(a,f,m){return it(this,a,f,!1,m)};function ht(h,a,f,m,I){return a=+a,f=f>>>0,I||$e(h,a,f,8),r.write(h,a,f,m,52,8),f+8}l.prototype.writeDoubleLE=function(a,f,m){return ht(this,a,f,!0,m)},l.prototype.writeDoubleBE=function(a,f,m){return ht(this,a,f,!1,m)},l.prototype.copy=function(a,f,m,I){if(!l.isBuffer(a))throw new TypeError("argument should be a Buffer");if(m||(m=0),!I&&I!==0&&(I=this.length),f>=a.length&&(f=a.length),f||(f=0),I>0&&I<m&&(I=m),I===m||a.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),a.length-f<I-m&&(I=a.length-f+m);const q=I-m;return this===a&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,m,I):Uint8Array.prototype.set.call(a,this.subarray(m,I),f),q}
vendor: 2,739 bytes, line 130
130,l.prototype.fill=function(a,f,m,I){if(typeof a=="string"){if(typeof f=="string"?(I=f,f=0,m=this.length):typeof m=="string"&&(I=m,m=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!l.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(a.length===1){const re=a.charCodeAt(0);(I==="utf8"&&re<128||I==="latin1")&&(a=re)}}else typeof a=="number"?a=a&255:typeof a=="boolean"&&(a=Number(a));if(f<0||this.length<f||this.length<m)throw new RangeError("Out of range index");if(m<=f)return this;f=f>>>0,m=m===void 0?this.length:m>>>0,a||(a=0);let q;if(typeof a=="number")for(q=f;q<m;++q)this[q]=a;else{const re=l.isBuffer(a)?a:l.from(a,I),ke=re.length;if(ke===0)throw new TypeError('The value "'+a+'" is invalid for argument "value"');for(q=0;q<m-f;++q)this[q+f]=re[q%ke]}return this};const ve={};function Ae(h,a,f){ve[h]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:a.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}Ae("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ae("ERR_INVALID_ARG_TYPE",function(h,a){return`The "${h}" argument must be of type number. Received type ${typeof a}`},TypeError),Ae("ERR_OUT_OF_RANGE",function(h,a,f){let m=`The value of "${h}" is out of range.`,I=f;return Number.isInteger(f)&&Math.abs(f)>2**32?I=y(String(f)):typeof f=="bigint"&&(I=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(I=y(I)),I+="n"),m+=` It must be ${a}. Received ${I}`,m},RangeError);function y(h){let a="",f=h.length;const m=h[0]==="-"?1:0;for(;f>=m+4;f-=3)a=`_${h.slice(f-3,f)}${a}`;return`${h.slice(0,f)}${a}`}function S(h,a,f){te(a,"offset"),(h[a]===void 0||h[a+f]===void 0)&&Y(a,h.length-(f+1))}function L(h,a,f,m,I,q){if(h>f||h<a){const re=typeof a=="bigint"?"n":"";let ke;throw a===0||a===BigInt(0)?ke=`>= 0${re} and < 2${re} ** ${(q+1)*8}${re}`:ke=`>= -(2${re} ** ${(q+1)*8-1}${re}) and < 2 ** ${(q+1)*8-1}${re}`,new ve.ERR_OUT_OF_RANGE("value",ke,h)}S(m,I,q)}function te(h,a){if(typeof h!="number")throw new ve.ERR_INVALID_ARG_TYPE(a,"number",h)}function Y(h,a,f){throw Math.floor(h)!==h?(te(h,f),new ve.ERR_OUT_OF_RANGE("offset","an integer",h)):a<0?new ve.ERR_BUFFER_OUT_OF_BOUNDS:new ve.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${a}`,h)}const ee=/[^+/0-9A-Za-z-_]/g;function oe(h){if(h=h.split("=")[0],h=h.trim().replace(ee,""),h.length<2)return"";for(;h.length%4!==0;
130)h=h+"=";return h}function K(h,a){a=a||1/0;let f;const m=h.length;let I=null;const q=[];for(let re=0;re<m;++re){if(f=h.charCodeAt(re),f>55295&&f<57344){if(!I){if(f>56319){(a-=3)>-1&&q.push(239,191,189);continue}else if(re+1===m){(a-=3)>-1&&q.push(239,191,189);continue}I=f;continue}if(f<56320){(a-=3)>-1&&q.push(239,191,189),I=f;continue}f=(I-55296<<10|f-56320)+65536}else I&&(a-=3)>-1&&q.push(239,191,189);if(I=null,f<128){if((a-=1)<0)break;q.push(f)}else if(f<2048){if((a-=2)<0)break;q.push(f>>6|192,f&63|128)}else if(f<65536){if((a-=3)<0)break;q.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((a-=4)<0)break;q.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return q}function Q(h){const a=[];for(let f=0;f<h.length;++f)a.push(h.charCodeAt(f)&255);return a}function ne(h,a){let f,m,I;const q=[];for(let re=0;re<h.length&&!((a-=2)<0);++re)f=h.charCodeAt(re),m=f>>8,I=f%256,q.push(I),q.push(m);return q}function x(h){return e.toByteArray(oe(h))}function c(h,a,f,m){let I;for(I=0;I<m&&!(I+f>=a.length||I>=h.length);++I)a[I+f]=h[I];return I}function v(h,a){return h instanceof a||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===a.name}function E(h){return h!==h}const B=function(){const h="0123456789abcdef",a=new Array(256);for(let f=0;f<16;++f){const m=f*16;for(let I=0;I<16;++I)a[m+I]=h[f]+h[I]}return a}();function z(h){return typeof BigInt>"u"?V:h}function V(){throw new Error("BigInt not supported")}})(O);function Ix(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lg={exports:{}};const Cx={},jx=Object.freeze(Object.defineProperty({__proto__:null,default:Cx},Symbol.toStringTag,{value:"Module"})),Nx=Pm(jx);(function(t){(function(e){var r=function(p){var _,b=new Float64Array(16);if(p)for(_=0;_<p.length;_++)b[_]=p[_];return b},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),s=new Uint8Array(32);s[0]=9;var o=r(),l=r([1]),g=r([56129,1]),d=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),k=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),C=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),j=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),X=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function H(p,_,b,u){p[_]=b>>24&255,p[_+1]=b>>16&255,p[_+2]=b>>8&255,p[_+3]=b&255,p[_+4]=u>>24&255,p[_+5]=u>>16&255,p[_+6]=u>>8&255,p[_+7]=u&255}function G(p,_,b,u,F){var Z,ie=0;for(Z=0;Z<F;Z++)ie|=p[_+Z]^b[u+Z];return(1&ie-1>>>8)-1}function D(p,_,b,u){return G(p,_,b,u,16)}function R(p,_,b,u){return G(p,_,b,u,32)}function w(p,_,b,u){for(var F=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,Z=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,ie=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,me=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,Se=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ke=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,je=_[0]&255|(_[1]&255)<<8|(_[2]&255)<<16|(_[3]&255)<<24,mt=_[4]&255|(_[5]&255)<<8|(_[6]&255)<<16|(_[7]&255)<<24,Ue=_[8]&255|(_[9]&255)<<8|(_[10]&255)<<16|(_[11]&255)<<24,Je=_[12]&255|(_[13]&255)<<8|(_[14]&255)<<16|(_[15]&255)<<24,Ze=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,ot=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&25
1305)<<24,st=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,et=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,nt=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,tt=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,Oe=F,Ge=Z,Ne=ie,Me=me,ze=Se,Ce=Ke,le=je,ue=mt,be=Ue,ge=Je,ye=Ze,Ee=ot,We=st,at=et,ut=nt,lt=tt,U,ct=0;ct<20;ct+=2)U=Oe+We|0,ze^=U<<7|U>>>25,U=ze+Oe|0,be^=U<<9|U>>>23,U=be+ze|0,We^=U<<13|U>>>19,U=We+be|0,Oe^=U<<18|U>>>14,U=Ce+Ge|0,ge^=U<<7|U>>>25,U=ge+Ce|0,at^=U<<9|U>>>23,U=at+ge|0,Ge^=U<<13|U>>>19,U=Ge+at|0,Ce^=U<<18|U>>>14,U=ye+le|0,ut^=U<<7|U>>>25,U=ut+ye|0,Ne^=U<<9|U>>>23,U=Ne+ut|0,le^=U<<13|U>>>19,U=le+Ne|0,ye^=U<<18|U>>>14,U=lt+Ee|0,Me^=U<<7|U>>>25,U=Me+lt|0,ue^=U<<9|U>>>23,U=ue+Me|0,Ee^=U<<13|U>>>19,U=Ee+ue|0,lt^=U<<18|U>>>14,U=Oe+Me|0,Ge^=U<<7|U>>>25,U=Ge+Oe|0,Ne^=U<<9|U>>>23,U=Ne+Ge|0,Me^=U<<13|U>>>19,U=Me+Ne|0,Oe^=U<<18|U>>>14,U=Ce+ze|0,le^=U<<7|U>>>25,U=le+Ce|0,ue^=U<<9|U>>>23,U=ue+le|0,ze^=U<<13|U>>>19,U=ze+ue|0,Ce^=U<<18|U>>>14,U=ye+ge|0,Ee^=U<<7|U>>>25,U=Ee+ye|0,be^=U<<9|U>>>23,U=be+Ee|0,ge^=U<<13|U>>>19,U=ge+be|0,ye^=U<<18|U>>>14,U=lt+ut|0,We^=U<<7|U>>>25,U=We+lt|0,at^=U<<9|U>>>23,U=at+We|0,ut^=U<<13|U>>>19,U=ut+at|0,lt^=U<<18|U>>>14;Oe=Oe+F|0,Ge=Ge+Z|0,Ne=Ne+ie|0,Me=Me+me|0,ze=ze+Se|0,Ce=Ce+Ke|0,le=le+je|0,ue=ue+mt|0,be=be+Ue|0,ge=ge+Je|0,ye=ye+Ze|0,Ee=Ee+ot|0,We=We+st|0,at=at+et|0,ut=ut+nt|0,lt=lt+tt|0,p[0]=Oe>>>0&255,p[1]=Oe>>>8&255,p[2]=Oe>>>16&255,p[3]=Oe>>>24&255,p[4]=Ge>>>0&255,p[5]=Ge>>>8&255,p[6]=Ge>>>16&255,p[7]=Ge>>>24&255,p[8]=Ne>>>0&255,p[9]=Ne>>>8&255,p[10]=Ne>>>16&255,p[11]=Ne>>>24&255,p[12]=Me>>>0&255,p[13]=Me>>>8&255,p[14]=Me>>>16&255,p[15]=Me>>>24&255,p[16]=ze>>>0&255,p[17]=ze>>>8&255,p[18]=ze>>>16&255,p[19]=ze>>>24&255,p[20]=Ce>>>0&255,p[21]=Ce>>>8&255,p[22]=Ce>>>16&255,p[23]=Ce>>>24&255,p[24]=le>>>0&255,p[25]=le>>>8&255,p[26]=le>>>16&255,p[27]=le>>>24&255,p[28]=ue>>>0&255,p[29]=ue>>>8&255,p[30]=ue>>>16&255,p[31]=ue>>>24&255,p[32]=be>>>0&255,p[33]=be>>>8&255,p[34]=be>>>16&255,p[35]=be>>>24&255,p[36]=ge>>
130>0&255,p[37]=ge>>>8&255,p[38]=ge>>>16&255,p[39]=ge>>>24&255,p[40]=ye>>>0&255,p[41]=ye>>>8&255,p[42]=ye>>>16&255,p[43]=ye>>>24&255,p[44]=Ee>>>0&255,p[45]=Ee>>>8&255,p[46]=Ee>>>16&255,p[47]=Ee>>>24&255,p[48]=We>>>0&255,p[49]=We>>>8&255,p[50]=We>>>16&255,p[51]=We>>>24&255,p[52]=at>>>0&255,p[53]=at>>>8&255,p[54]=at>>>16&255,p[55]=at>>>24&255,p[56]=ut>>>0&255,p[57]=ut>>>8&255,p[58]=ut>>>16&255,p[59]=ut>>>24&255,p[60]=lt>>>0&255,p[61]=lt>>>8&255,p[62]=lt>>>16&255,p[63]=lt>>>24&255}function T(p,_,b,u){for(var F=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,Z=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,ie=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,me=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,Se=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ke=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,je=_[0]&255|(_[1]&255)<<8|(_[2]&255)<<16|(_[3]&255)<<24,mt=_[4]&255|(_[5]&255)<<8|(_[6]&255)<<16|(_[7]&255)<<24,Ue=_[8]&255|(_[9]&255)<<8|(_[10]&255)<<16|(_[11]&255)<<24,Je=_[12]&255|(_[13]&255)<<8|(_[14]&255)<<16|(_[15]&255)<<24,Ze=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,ot=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&25
vendor: 13,289 bytes, line 130
1305)<<24,st=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,et=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,nt=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,tt=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,Oe=F,Ge=Z,Ne=ie,Me=me,ze=Se,Ce=Ke,le=je,ue=mt,be=Ue,ge=Je,ye=Ze,Ee=ot,We=st,at=et,ut=nt,lt=tt,U,ct=0;ct<20;ct+=2)U=Oe+We|0,ze^=U<<7|U>>>25,U=ze+Oe|0,be^=U<<9|U>>>23,U=be+ze|0,We^=U<<13|U>>>19,U=We+be|0,Oe^=U<<18|U>>>14,U=Ce+Ge|0,ge^=U<<7|U>>>25,U=ge+Ce|0,at^=U<<9|U>>>23,U=at+ge|0,Ge^=U<<13|U>>>19,U=Ge+at|0,Ce^=U<<18|U>>>14,U=ye+le|0,ut^=U<<7|U>>>25,U=ut+ye|0,Ne^=U<<9|U>>>23,U=Ne+ut|0,le^=U<<13|U>>>19,U=le+Ne|0,ye^=U<<18|U>>>14,U=lt+Ee|0,Me^=U<<7|U>>>25,U=Me+lt|0,ue^=U<<9|U>>>23,U=ue+Me|0,Ee^=U<<13|U>>>19,U=Ee+ue|0,lt^=U<<18|U>>>14,U=Oe+Me|0,Ge^=U<<7|U>>>25,U=Ge+Oe|0,Ne^=U<<9|U>>>23,U=Ne+Ge|0,Me^=U<<13|U>>>19,U=Me+Ne|0,Oe^=U<<18|U>>>14,U=Ce+ze|0,le^=U<<7|U>>>25,U=le+Ce|0,ue^=U<<9|U>>>23,U=ue+le|0,ze^=U<<13|U>>>19,U=ze+ue|0,Ce^=U<<18|U>>>14,U=ye+ge|0,Ee^=U<<7|U>>>25,U=Ee+ye|0,be^=U<<9|U>>>23,U=be+Ee|0,ge^=U<<13|U>>>19,U=ge+be|0,ye^=U<<18|U>>>14,U=lt+ut|0,We^=U<<7|U>>>25,U=We+lt|0,at^=U<<9|U>>>23,U=at+We|0,ut^=U<<13|U>>>19,U=ut+at|0,lt^=U<<18|U>>>14;p[0]=Oe>>>0&255,p[1]=Oe>>>8&255,p[2]=Oe>>>16&255,p[3]=Oe>>>24&255,p[4]=Ce>>>0&255,p[5]=Ce>>>8&255,p[6]=Ce>>>16&255,p[7]=Ce>>>24&255,p[8]=ye>>>0&255,p[9]=ye>>>8&255,p[10]=ye>>>16&255,p[11]=ye>>>24&255,p[12]=lt>>>0&255,p[13]=lt>>>8&255,p[14]=lt>>>16&255,p[15]=lt>>>24&255,p[16]=le>>>0&255,p[17]=le>>>8&255,p[18]=le>>>16&255,p[19]=le>>>24&255,p[20]=ue>>>0&255,p[21]=ue>>>8&255,p[22]=ue>>>16&255,p[23]=ue>>>24&255,p[24]=be>>>0&255,p[25]=be>>>8&255,p[26]=be>>>16&255,p[27]=be>>>24&255,p[28]=ge>>>0&255,p[29]=ge>>>8&255,p[30]=ge>>>16&255,p[31]=ge>>>24&255}function W(p,_,b,u){w(p,_,b,u)}function J(p,_,b,u){T(p,_,b,u)}var A=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function P(p,_,b,u,F,Z,ie){var me=new Uint8Array(16),Se=new Uint8Array(64),Ke,je;for(je=0;je<16;je++)me[je]=0;for(je=0;je<8;je++)me[je]=Z[je];for(;F>=64;){for(W(Se,me,ie,A),je=0;je<64;je++)p[_+je]=b[u+je]^Se[je];for(Ke=1,je=8;je<16;je++)Ke=Ke+(me[je]&255)|0,me[je]=Ke&255,Ke>>>=8;F-=64,_+=64,u+=64}if(F>0)for(W(Se,me,ie,A),je=0;je<F;je++)p[_+je]=b[u+je]^Se[je];return 0}function M(p,_,b,u,F){var Z=new Uint8Array(16),ie=new Uint8Array(64),me,Se;for(Se=0;Se<16;Se++)Z[Se]=0;for(Se=0;Se<8;Se++)Z[Se]=u[Se];for(;b>=64;){for(W(ie,Z,F,A),Se=0;Se<64;Se++)p[_+Se]=ie[Se];for(me=1,Se=8;Se<16;Se++)me=me+(Z[Se]&255)|0,Z[Se]=me&255,me>>>=8;b-=64,_+=64}if(b>0)for(W(ie,Z,F,A),Se=0;Se<b;Se++)p[_+Se]=ie[Se];return 0}function se(p,_,b,u,F){var Z=new Uint8Array(32);J(Z,u,F,A);for(var ie=new Uint8Array(8),me=0;me<8;me++)ie[me]=u[me+16];return M(p,_,b,ie,Z)}function $(p,_,b,u,F,Z,ie){var me=new Uint8Array(32);J(me,Z,ie,A);for(var Se=new Uint8Array(8),Ke=0;Ke<8;Ke++)Se[Ke]=Z[Ke+16];return P(p,_,b,u,F,Se,me)}var he=function(p){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var _,b,u,F,Z,ie,me,Se;_=p[0]&255|(p[1]&255)<<8,this.r[0]=_&8191,b=p[2]&255|(p[3]&255)<<8,this.r[1]=(_>>>13|b<<3)&8191,u=p[4]&255|(p[5]&255)<<8,this.r[2]=(b>>>10|u<<6)&7939,F=p[6]&255|(p[7]&255)<<8,this.r[3]=(u>>>7|F<<9)&8191,Z=p[8]&255|(p[9]&255)<<8,this.r[4]=(F>>>4|Z<<12)&255,this.r[5]=Z>>>1&8190,ie=p[10]&255|(p[11]&255)<<8,this.r[6]=(Z>>>14|ie<<2)&8191,me=p[12]&255|(p[13]&255)<<8,this.r[7]=(ie>>>11|me<<5)&8065,Se=p[14]&255|(p[15]&255)<<8,this.r[8]=(me>>>8|Se<<8)&8191,this.r[9]=Se>>>5&127,this.pad[0]=p[16]&255|(p[17]&255)<<8,this.pad[1]=p[18]&255|(p[19]&255)<<8,this.pad[2]=p[20]&255|(p[21]&255)<<8,this.pad[3]=p[22]&255|(p[23]&255)<<8,this.pad[4]=p[24]&255|(p[25]&255)<<8,this.pad[5]=p[26]&255|(p[27]&255)<<8,this.pad[6]=p[28]&255|(p[29]&255)<<8,this.pad[7]=p[30]&255|(p[31]&255)<<8};he.prototype.blocks=function(p,_,b){for(var u=this.fin?0:2048,F,Z,ie,me,Se,Ke,je,mt,Ue,Je,Ze,ot,st,et,nt,tt,Oe,Ge,Ne,Me=this.h[0],ze=this.h[1],Ce=this.h[2],le=this.h[3],ue=this.h[4],be=this.h[5],ge=this.h[6],ye=this.h[7],Ee=this.h[8],We=this.h[9],at=this.r[0],ut=this.r[1],lt=this.r[2],U=this.r[3],ct=this.r[4],yt=this.r[5],xt=this.r[6],ft=this.r[7],pt=this.r[8],gt=this.r[9];b>=16;)F=p[_+0]&255|(p[_+1]&255)<<8,Me+=F&8191,Z=p[_+2]&255|(p[_+3]&255)<<8,ze+=(F>>>13|Z<<3)&8191,ie=p[_+4]&255|(p[_+5]&255)<<8,Ce+=(Z>>>10|ie<<6)&8191,me=p[_+6]&255|(p[_+7]&255)<<8,le+=(ie>>>7|me<<9)&8191,Se=p[_+8]&255|(p[_+9]&255)<<8,ue+=(me>>>4|Se<<12)&8191,be+=Se>>>1&8191,Ke=p[_+10]&255|(p[_+11]&255)<<8,ge+=(Se>>>14|Ke<<2)&8191,je=p[_+12]&255|(p[_+13]&255)<<8,ye+=(Ke>>>11|je<<5)&8191,mt=p[_+14]&255|(p[_+15]&255)<<8,Ee+=(je>>>8|mt<<8)&8191,We+=mt>>>5|u,Ue=0,Je=Ue,Je+=Me*at,Je+=ze*(5*gt),Je+=Ce*(5*pt),Je+=le*(5*ft),Je+=ue*(5*xt),Ue=Je>>>13,Je&=8191,Je+=be*(5*yt),Je+=ge*(5*ct),Je+=ye*(5*U),Je+=Ee*(5*lt),Je+=We*(5*ut),Ue+=Je>>>13,Je&=8191,Ze=Ue,Ze+=Me*ut,Ze+=ze*at,Ze+=Ce*(5*gt),Ze+=le*(5*pt),Ze+=ue*(5*ft),Ue=Ze>>>13,Ze&=8191,Ze+=be*(5*xt),Ze+=ge*(5*yt),Ze+=ye*(5*ct),Ze+=Ee*(5*U),Ze+=We*(5*lt),Ue+=Ze>>>13,Ze&=8191,ot=Ue,ot+=Me*lt,ot+=ze*ut,ot+=Ce*at,ot+=le*(5*gt),ot+=ue*(5*pt),Ue=ot>>>13,ot&=8191,ot+=be*(5*ft),ot+=ge*(5*xt),ot+=ye*(5*yt),ot+=Ee*(5*ct),ot+=We*(5*U),Ue+=ot>>>13,ot&=8191,st=Ue,st+=Me*U,st+=ze*lt,st+=Ce*ut,st+=le*at,st+=ue*(5*gt),Ue=st>>>13,st&=8191,st+=be*(5*pt),st+=ge*(5*ft),st+=ye*(5*xt),st+=Ee*(5*yt),st+=We*(5*ct),Ue+=st>>>13,st&=8191,et=Ue,et+=Me*ct,et+=ze*U,et+=Ce*lt,et+=le*ut,et+=ue*at,Ue=et>>>13,et&=8191,et+=be*(5*gt),et+=ge*(5*pt),et+=ye*(5*ft),et+=Ee*(5*xt),et+=We*(5*yt),Ue+=et>>>13,et&=8191,nt=Ue,nt+=Me*yt,nt+=ze*ct,nt+=Ce*U,nt+=le*lt,nt+=ue*ut,Ue=nt>>>13,nt&=8191,nt+=be*at,nt+=ge*(5*gt),nt+=ye*(5*pt),nt+=Ee*(5*ft),nt+=We*(5*xt),Ue+=nt>>>13,nt&=8191,tt=Ue,tt+=Me*xt,tt+=ze*yt,tt+=Ce*ct,tt+=le*U,tt+=ue*lt,Ue=tt>>>13,tt&=8191,tt+=be*ut,tt+=ge*at,tt+=ye*(5*gt),tt+=Ee*(5*pt),tt+=We*(5*ft),Ue+=tt>>>13,tt&=8191,Oe=Ue,Oe+=Me*ft,Oe+=ze*xt,Oe+=Ce*yt,Oe+=le*ct,Oe+=ue*U,Ue=Oe>>>13,Oe&=8191,Oe+=be*lt,Oe+=ge*ut,Oe+=ye*at,Oe+=Ee*(5*gt),Oe+=We*(5*pt),Ue+=Oe>>>13,Oe&=8191,Ge=Ue,Ge+=Me*pt,Ge+=ze*ft,Ge+=Ce*xt,Ge+=le*yt,Ge+=ue*ct,Ue=Ge>>>13,Ge&=8191,Ge+=be*U,Ge+=ge*lt,Ge+=ye*ut,Ge+=Ee*at,Ge+=We*(5*gt),Ue+=Ge>>>13,Ge&=8191,Ne=Ue,Ne+=Me*gt,Ne+=ze*pt,Ne+=Ce*ft,Ne+=le*xt,Ne+=ue*yt,Ue=Ne>>>13,Ne&=8191,Ne+=be*ct,Ne+=ge*U,Ne+=ye*lt,Ne+=Ee*ut,Ne+=We*at,Ue+=Ne>>>13,Ne&=8191,Ue=(Ue<<2)+Ue|0,Ue=Ue+Je|0,Je=Ue&8191,Ue=Ue>>>13,Ze+=Ue,Me=Je,ze=Ze,Ce=ot,le=st,ue=et,be=nt,ge=tt,ye=Oe,Ee=Ge,We=Ne,_+=16,b-=16;this.h[0]=Me,this.h[1]=ze,this.h[2]=Ce,this.h[3]=le,this.h[4]=ue,this.h[5]=be,this.h[6]=ge,this.h[7]=ye,this.h[8]=Ee,this.h[9]=We},he.prototype.finish=function(p,_){var b=new Uint16Array(10),u,F,Z,ie;if(this.leftover){for(ie=this.leftover,this.buffer[ie++]=1;ie<16;ie++)this.buffer[ie]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(u=this.h[1]>>>13,this.h[1]&=8191,ie=2;ie<10;ie++)this.h[ie]+=u,u=this.h[ie]>>>13,this.h[ie]&=8191;for(this.h[0]+=u*5,u=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=u,u=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=u,b[0]=this.h[0]+5,u=b[0]>>>13,b[0]&=8191,ie=1;ie<10;ie++)b[ie]=this.h[ie]+u,u=b[ie]>>>13,b[ie]&=8191;for(b[9]-=8192,F=(u^1)-1,ie=0;ie<10;ie++)b[ie]&=F;for(F=~F,ie=0;ie<10;ie++)this.h[ie]=this.h[ie]&F|b[ie];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Z=this.h[0]+this.pad[0],this.h[0]=Z&65535,ie=1;ie<8;ie++)Z=(this.h[ie]+this.pad[ie]|0)+(Z>>>16)|0,this.h[ie]=Z&65535;p[_+0]=this.h[0]>>>0&255,p[_+1]=this.h[0]>>>8&255,p[_+2]=this.h[1]>>>0&255,p[_+3]=this.h[1]>>>8&255,p[_+4]=this.h[2]>>>0&255,p[_+5]=this.h[2]>>>8&255,p[_+6]=this.h[3]>>>0&255,p[_+7]=this.h[3]>>>8&255,p[_+8]=this.h[4]>>>0&255,p[_+9]=this.h[4]>>>8&255,p[_+10]=this.h[5]>>>0&255,p[_+11]=this.h[5]>>>8&255,p[_+12]=this.h[6]>>>0&255,p[_+13]=this.h[6]>>>8&255,p[_+14]=this.h[7]>>>0&255,p[_+15]=this.h[7]>>>8&255},he.prototype.update=function(p,_,b){var u,F;if(this.leftover){for(F=16-this.leftover,F>b&&(F=b),u=0;u<F;u++)this.buffer[this.leftover+u]=p[_+u];if(b-=F,_+=F,this.leftover+=F,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(b>=16&&(F=b-b%16,this.blocks(p,_,F),_+=F,b-=F),b){for(u=0;u<b;u++)this.buffer[this.leftover+u]=p[_+u];this.leftover+=b}};function ae(p,_,b,u,F,Z){var ie=new he(Z);return ie.update(b,u,F),ie.finish(p,_),0}function de(p,_,b,u,F,Z){var ie=new Uint8Array(16);return ae(ie,0,b,u,F,Z),D(p,_,ie,0)}function xe(p,_,b,u,F){var Z;if(b<32)return-1;for($(p,0,_,0,b,u,F),ae(p,16,p,32,b-32,p),Z=0;Z<16;Z++)p[Z]=0;return 0}function Ie(p,_,b,u,F){var Z,ie=new Uint8Array(32);if(b<32||(se(ie,0,32,u,F),de(_,16,_,32,b-32,ie)!==0))return-1;for($(p,0,_,0,b,u,F),Z=0;Z<32;Z++)p[Z]=0;return 0}function Le(p,_){var b;for(b=0;b<16;b++)p[b]=_[b]|0}function Ye(p){var _,b,u=1;for(_=0;_<16;_++)b=p[_]+u+65535,u=Math.floor(b/65536),p[_]=b-u*65536;p[0]+=u-1+37*(u-1)}function pe(p,_,b){for(var u,F=~(b-1),Z=0;Z<16;Z++)u=F&(p[Z]^_[Z]),p[Z]^=u,_[Z]^=u}function we(p,_){var b,u,F,Z=r(),ie=r();for(b=0;b<16;b++)ie[b]=_[b];for(Ye(ie),Ye(ie),Ye(ie),u=0;u<2;u++){for(Z[0]=ie[0]-65517,b=1;b<15;b++)Z[b]=ie[b]-65535-(Z[b-1]>>16&1),Z[b-1]&=65535;Z[15]=ie[15]-32767-(Z[14]>>16&1),F=Z[15]>>16&1,Z[14]&=65535,pe(ie,Z,1-F)}for(b=0;b<16;b++)p[2*b]=ie[b]&255,p[2*b+1]=ie[b]>>8}function _e(p,_){var b=new Uint8Array(32),u=new Uint8Array(32);return we(b,p),we(u,_),R(b,0,u,0)}function Be(p){var _=new Uint8Array(32);return we(_,p),_[0]&1}function Re(p,_){var b;for(b=0;b<16;b++)p[b]=_[2*b]+(_[2*b+1]<<8);p[15]&=32767}function Te(p,_,b){for(var u=0;u<16;u++)p[u]=_[u]+b[u]}function fe(p,_,b){for(var u=0;u<16;u++)p[u]=_[u]-b[u]}function $e(p,_,b){var u,F,Z=0,ie=0,me=0,Se=0,Ke=0,je=0,mt=0,Ue=0,Je=0,Ze=0,ot=0,st=0,et=0,nt=0,tt=0,Oe=0,Ge=0,Ne=0,Me=0,ze=0,Ce=0,le=0,ue=0,be=0,ge=0,ye=0,Ee=0,We=0,at=0,ut=0,lt=0,U=b[0],ct=b[1],yt=b[2],xt=b[3],ft=b[4],pt=b[5],gt=b[6],Dt=b[7],vt=b[8],It=b[9],Ct=b[10],jt=b[11],Mt=b[12],er=b[13],tr=b[14],rr=b[15];u=_[0],Z+=u*U,ie+=u*ct,me+=u*yt,Se+=u*xt,Ke+=u*ft,je+=u*pt,mt+=u*gt,Ue+=u*Dt,Je+=u*vt,Ze+=u*It,ot+=u*Ct,st+=u*jt,et+=u*Mt,nt+=u*er,tt+=u*tr,Oe+=u*rr,u=_[1],ie+=u*U,me+=u*ct,Se+=u*yt,Ke+=u*xt,je+=u*ft,mt+=u*pt,Ue+=u*gt,Je+=u*Dt,Ze+=u*vt,ot+=u*It,st+=u*Ct,et+=u*jt,nt+=u*Mt,tt+=u*er,Oe+=u*tr,Ge+=u*rr,u=_[2],me+=u*U,Se+=u*ct,Ke+=u*yt,je+=u*xt,mt+=u*ft,Ue+=u*pt,Je+=u*gt,Ze+=u*Dt,ot+=u*vt,st+=u*It,et+=u*Ct,nt+=u*jt,tt+=u*Mt,Oe+=u*er,Ge+=u*tr,Ne+=u*rr,u=_[3],Se+=u*U,Ke+=u*ct,je+=u*yt,mt+=u*xt,Ue+=u*ft,Je+=u*pt,Ze+=u*gt,ot+=u*Dt,st+=u*vt,et+=u*It,nt+=u*Ct,tt+=u*jt,Oe+=u*Mt,Ge+=u*er,Ne+=u*tr,Me+=u*rr,u=_[4],Ke+=u*U,je+=u*ct,mt+=u*yt,Ue+=u*xt,Je+=u*ft,Ze+=u*pt,ot+=u*gt,st+=u*Dt,et+=u*vt,nt+=u*It,tt+=u*Ct,Oe+=u*jt,Ge+=u*Mt,Ne+=u*er,Me+=u*tr,ze+=u*rr,u=_[5],je+=u*U,mt+=u*ct,Ue+=u*yt,Je+=u*xt,Ze+=u*ft,ot+=u*pt,st+=u*gt,et+=u*Dt,nt+=u*vt,tt+=u*It,Oe+=u*Ct,Ge+=u*jt,Ne+=u*Mt,Me+=u*er,ze+=u*tr,Ce+=u*rr,u=_[6],mt+=u*U,Ue+=u*ct,Je+=u*yt,Ze+=u*xt,ot+=u*ft,st+=u*pt,et+=u*gt,nt+=u*Dt,tt+=u*vt,Oe+=u*It,Ge+=u*Ct,Ne+=u*jt,Me+=u*Mt,ze+=u*er,Ce+=u*tr,le+=u*rr,u=_[7],Ue+=u*U,Je+=u*ct,Ze+=u*yt,ot+=u*xt,st+=u*ft,et+=u*pt,nt+=u*gt,tt+=u*Dt,Oe+=u*vt,Ge+=u*It,Ne+=u*Ct,Me+=u*jt,ze+=u*Mt,Ce+=u*er,le+=u*tr,ue+=u*rr,u=_[8],Je+=u*U,Ze+=u*ct,ot+=u*yt,st+=u*xt,et+=u*ft,nt+=u*pt,tt+=u*gt,Oe+=u*Dt,Ge+=u*vt,Ne+=u*It,Me+=u*Ct,ze+=u*jt,Ce+=u*Mt,le+=u*er,ue+=u*tr,be+=u*rr,u=_[9],Ze+=u*U,ot+=u*ct,st+=u*yt,et+=u*xt,nt+=u*ft,tt+=u*pt,Oe+=u*gt,Ge+=u*Dt,Ne+=u*vt,Me+=u*It,ze+=u*Ct,Ce+=u*jt,le+=u*Mt,ue+=u*er,be+=u*tr,ge+=u*rr,u=_[10],ot+=u*U,st+=u*ct,et+=u*yt,nt+=u*xt,tt+=u*ft,Oe+=u*pt,Ge+=u*gt,Ne+=u*Dt,Me+=u*vt,ze+=u*It,Ce+=u*Ct,le+=u*jt,ue+=u*Mt,be+=u*er,ge+=u*tr,ye+=u*rr,u=_[11],st+=u*U,et+=u*ct,nt+=u*yt,tt+=u*xt,Oe+=u*ft,Ge+=u*pt,Ne+=u*gt,Me+=u*Dt,ze+=u*vt,Ce+=u*It,le+=u*Ct,ue+=u*jt,be+=u*Mt,ge+=u*er,ye+=u*tr,Ee+=u*rr,u=_[12],et+=u*U,nt+=u*ct,tt+=u*yt,Oe+=u*xt,Ge+=u*ft,Ne+=u*pt,Me+=u*gt,ze+=u*Dt,Ce+=u*vt,le+=u*It,ue+=u*Ct,be+=u*jt,ge+=u*Mt,ye+=u*er,Ee+=u*tr,We+=u*rr,u=_[13],nt+=u*U,tt+=u*ct,Oe+=u*yt,Ge+=u*xt,Ne+=u*ft,Me+=u*pt,ze+=u*gt,Ce+=u*Dt,le+=u*vt,ue+=u*It,be+=u*Ct,ge+=u*jt,ye+=u*Mt,Ee+=u*er,We+=u*tr,at+=u*rr,u=_[14],tt+=u*U,Oe+=u*ct,Ge+=u*yt,Ne+=u*xt,Me+=u*ft,ze+=u*pt,Ce+=u*gt,le+=u*Dt,ue+=u*vt,be+=u*It,ge+=u*Ct,ye+=u*jt,Ee+=u*Mt,We+=u*er,at+=u*tr,ut+=u*rr,u=_[15],Oe+=u*U,Ge+=u*ct,Ne+=u*yt,Me+=u*xt,ze+=u*ft,Ce+=u*pt,le+=u*gt,ue+=u*Dt,be+=u*vt,ge+=u*It,ye+=u*Ct,Ee+=u*jt,We+=u*Mt,at+=u*er,ut+=u*tr,lt+=u*rr,Z+=38*Ge,ie+=38*Ne,me+=38*Me,Se+=38*ze,Ke+=38*Ce,je+=38*le,mt+=38*ue,Ue+=38*be,Je+=38*ge,Ze+=38*ye,ot+=38*Ee,st+=38*We,et+=38*at,nt+=38*ut,tt+=38*lt,F=1,u=Z+F+65535,F=Math.floor(u/65536),Z=u-F*65536,u=ie+F+65535,F=Math.floor(u/65536),ie=u-F*65536,u=me+F+65535,F=Math.floor(u/65536),me=u-F*65536,u=Se+F+65535,F=Math.floor(u/65536),Se=u-F*65536,u=Ke+F+65535,F=Math.floor(u/65536),Ke=u-F*65536,u=je+F+65535,F=Math.floor(u/65536),je=u-F*65536,u=mt+F+65535,F=Math.floor(u/65536),mt=u-F*65536,u=Ue+F+65535,F=Math.floor(u/65536),Ue=u-F*65536,u=Je+F+65535,F=Math.floor(u/65536),Je=u-F*65536,u=Ze+F+65535,F=Math.floor(u/65536),Ze=u-F*65536,u=ot+F+65535,F=Math.floor(u/65536),ot=u-F*65536,u=st+F+65535,F=Math.floor(u/65536),st=u-F*65536,u=et+F+6
1305535,F=Math.floor(u/65536),et=u-F*65536,u=nt+F+65535,F=Math.floor(u/65536),nt=u-F*65536,u=tt+F+65535,F=Math.floor(u/65536),tt=u-F*65536,u=Oe+F+65535,F=Math.floor(u/65536),Oe=u-F*65536,Z+=F-1+37*(F-1),F=1,u=Z+F+65535,F=Math.floor(u/65536),Z=u-F*65536,u=ie+F+65535,F=Math.floor(u/65536),ie=u-F*65536,u=me+F+65535,F=Math.floor(u/65536),me=u-F*65536,u=Se+F+65535,F=Math.floor(u/65536),Se=u-F*65536,u=Ke+F+65535,F=Math.floor(u/65536),Ke=u-F*65536,u=je+F+65535,F=Math.floor(u/65536),je=u-F*65536,u=mt+F+65535,F=Math.floor(u/65536),mt=u-F*65536,u=Ue+F+65535,F=Math.floor(u/65536),Ue=u-F*65536,u=Je+F+65535,F=Math.floor(u/65536),Je=u-F*65536,u=Ze+F+65535,F=Math.floor(u/65536),Ze=u-F*65536,u=ot+F+65535,F=Math.floor(u/65536),ot=u-F*65536,u=st+F+65535,F=Math.floor(u/65536),st=u-F*65536,u=et+F+65535,F=Math.floor(u/65536),et=u-F*65536,u=nt+F+65535,F=Math.floor(u/65536),nt=u-F*65536,u=tt+F+65535,F=Math.floor(u/65536),tt=u-F*65536,u=Oe+F+65535,F=Math.floor(u/65536),Oe=u-F*65536,Z+=F-1+37*(F-1),p[0]=Z,p[1]=ie,p[2]=me,p[3]=Se,p[4]=Ke,p[5]=je,p[6]=mt,p[7]=Ue,p[8]=Je,p[9]=Ze,p[10]=ot,p[11]=st,p[12]=et,p[13]=nt,p[14]=tt,p[15]=Oe}function it(p,_){$e(p,_,_)}function ht(p,_){var b=r(),u;for(u=0;
vendor: 12,542 bytes, line 130
130u<16;u++)b[u]=_[u];for(u=253;u>=0;u--)it(b,b),u!==2&&u!==4&&$e(b,b,_);for(u=0;u<16;u++)p[u]=b[u]}function ve(p,_){var b=r(),u;for(u=0;u<16;u++)b[u]=_[u];for(u=250;u>=0;u--)it(b,b),u!==1&&$e(b,b,_);for(u=0;u<16;u++)p[u]=b[u]}function Ae(p,_,b){var u=new Uint8Array(32),F=new Float64Array(80),Z,ie,me=r(),Se=r(),Ke=r(),je=r(),mt=r(),Ue=r();for(ie=0;ie<31;ie++)u[ie]=_[ie];for(u[31]=_[31]&127|64,u[0]&=248,Re(F,b),ie=0;ie<16;ie++)Se[ie]=F[ie],je[ie]=me[ie]=Ke[ie]=0;for(me[0]=je[0]=1,ie=254;ie>=0;--ie)Z=u[ie>>>3]>>>(ie&7)&1,pe(me,Se,Z),pe(Ke,je,Z),Te(mt,me,Ke),fe(me,me,Ke),Te(Ke,Se,je),fe(Se,Se,je),it(je,mt),it(Ue,me),$e(me,Ke,me),$e(Ke,Se,mt),Te(mt,me,Ke),fe(me,me,Ke),it(Se,me),fe(Ke,je,Ue),$e(me,Ke,g),Te(me,me,je),$e(Ke,Ke,me),$e(me,je,Ue),$e(je,Se,F),it(Se,mt),pe(me,Se,Z),pe(Ke,je,Z);for(ie=0;ie<16;ie++)F[ie+16]=me[ie],F[ie+32]=Ke[ie],F[ie+48]=Se[ie],F[ie+64]=je[ie];var Je=F.subarray(32),Ze=F.subarray(16);return ht(Je,Je),$e(Ze,Ze,Je),we(p,Ze),0}function y(p,_){return Ae(p,_,s)}function S(p,_){return n(_,32),y(p,_)}function L(p,_,b){var u=new Uint8Array(32);return Ae(u,b,_),J(p,i,u,A)}var te=xe,Y=Ie;function ee(p,_,b,u,F,Z){var ie=new Uint8Array(32);return L(ie,F,Z),te(p,_,b,u,ie)}function oe(p,_,b,u,F,Z){var ie=new Uint8Array(32);return L(ie,F,Z),Y(p,_,b,u,ie)}var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(p,_,b,u){for(var F=new Int32Array(16),Z=new Int32Array(16),ie,me,Se,Ke,je,mt,Ue,Je,Ze,ot,st,et,nt,tt,Oe,Ge,Ne,Me,ze,Ce,le,ue,be,ge,ye,Ee,We=p[0],at=p[1],ut=p[2],lt=p[3],U=p[4],ct=p[5],yt=p[6],xt=p[7],ft=_[0],pt=_[1],gt=_[2],Dt=_[3],vt=_[4],It=_[5],Ct=_[6],jt=_[7],Mt=0;u>=128;){for(ze=0;ze<16;ze++)Ce=8*ze+Mt,F[ze]=b[Ce+0]<<24|b[Ce+1]<<16|b[Ce+2]<<8|b[Ce+3],Z[ze]=b[Ce+4]<<24|b[Ce+5]<<16|b[Ce+6]<<8|b[Ce+7];for(ze=0;ze<80;ze++)if(ie=We,me=at,Se=ut,Ke=lt,je=U,mt=ct,Ue=yt,Je=xt,Ze=ft,ot=pt,st=gt,et=Dt,nt=vt,tt=It,Oe=Ct,Ge=jt,le=xt,ue=jt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=(U>>>14|vt<<18)^(U>>>18|vt<<14)^(vt>>>9|U<<23),ue=(vt>>>14|U<<18)^(vt>>>18|U<<14)^(U>>>9|vt<<23),be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,le=U&ct^~U&yt,ue=vt&It^~vt&Ct,be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,le=K[ze*2],ue=K[ze*2+1],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,le=F[ze%16],ue=Z[ze%16],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,Ne=ye&65535|Ee<<16,Me=be&65535|ge<<16,le=Ne,ue=Me,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=(We>>>28|ft<<4)^(ft>>>2|We<<30)^(ft>>>7|We<<25),ue=(ft>>>28|We<<4)^(We>>>2|ft<<30)^(We>>>7|ft<<25),be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,le=We&at^We&ut^at&ut,ue=ft&pt^ft>^pt>,be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,Je=ye&65535|Ee<<16,Ge=be&65535|ge<<16,le=Ke,ue=et,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=Ne,ue=Me,be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,Ke=ye&65535|Ee<<16,et=be&65535|ge<<16,at=ie,ut=me,lt=Se,U=Ke,ct=je,yt=mt,xt=Ue,We=Je,pt=Ze,gt=ot,Dt=st,vt=et,It=nt,Ct=tt,jt=Oe,ft=Ge,ze%16===15)for(Ce=0;Ce<16;Ce++)le=F[Ce],ue=Z[Ce],be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=F[(Ce+9)%16],ue=Z[(Ce+9)%16],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,Ne=F[(Ce+1)%16],Me=Z[(Ce+1)%16],le=(Ne>>>1|Me<<31)^(Ne>>>8|Me<<24)^Ne>>>7,ue=(Me>>>1|Ne<<31)^(Me>>>8|Ne<<24)^(Me>>>7|Ne<<25),be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,Ne=F[(Ce+14)%16],Me=Z[(Ce+14)%16],le=(Ne>>>19|Me<<13)^(Me>>>29|Ne<<3)^Ne>>>6,ue=(Me>>>19|Ne<<13)^(Ne>>>29|Me<<3)^(Me>>>6|Ne<<26),be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,F[Ce]=ye&65535|Ee<<16,Z[Ce]=be&65535|ge<<16;le=We,ue=ft,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[0],ue=_[0],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[0]=We=ye&65535|Ee<<16,_[0]=ft=be&65535|ge<<16,le=at,ue=pt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[1],ue=_[1],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[1]=at=ye&65535|Ee<<16,_[1]=pt=be&65535|ge<<16,le=ut,ue=gt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[2],ue=_[2],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[2]=ut=ye&65535|Ee<<16,_[2]=gt=be&65535|ge<<16,le=lt,ue=Dt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[3],ue=_[3],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[3]=lt=ye&65535|Ee<<16,_[3]=Dt=be&65535|ge<<16,le=U,ue=vt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[4],ue=_[4],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[4]=U=ye&65535|Ee<<16,_[4]=vt=be&65535|ge<<16,le=ct,ue=It,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[5],ue=_[5],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[5]=ct=ye&65535|Ee<<16,_[5]=It=be&65535|ge<<16,le=yt,ue=Ct,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[6],ue=_[6],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[6]=yt=ye&65535|Ee<<16,_[6]=Ct=be&65535|ge<<16,le=xt,ue=jt,be=ue&65535,ge=ue>>>16,ye=le&65535,Ee=le>>>16,le=p[7],ue=_[7],be+=ue&65535,ge+=ue>>>16,ye+=le&65535,Ee+=le>>>16,ge+=be>>>16,ye+=ge>>>16,Ee+=ye>>>16,p[7]=xt=ye&65535|Ee<<16,_[7]=jt=be&65535|ge<<16,Mt+=128,u-=128}return u}function ne(p,_,b){var u=new Int32Array(8),F=new Int32Array(8),Z=new Uint8Array(256),ie,me=b;for(u[0]=1779033703,u[1]=3144134277,u[2]=1013904242,u[3]=2773480762,u[4]=1359893119,u[5]=2600822924,u[6]=528734635,u[7]=1541459225,F[0]=4089235720,F[1]=2227873595,F[2]=4271175723,F[3]=1595750129,F[4]=2917565137,F[5]=725511199,F[6]=4215389547,F[7]=327033209,Q(u,F,_,b),b%=128,ie=0;ie<b;ie++)Z[ie]=_[me-b+ie];for(Z[b]=128,b=256-128*(b<112?1:0),Z[b-9]=0,H(Z,b-8,me/536870912|0,me<<3),Q(u,F,Z,b),ie=0;ie<8;ie++)H(p,8*ie,u[ie],F[ie]);return 0}function x(p,_){var b=r(),u=r(),F=r(),Z=r(),ie=r(),me=r(),Se=r(),Ke=r(),je=r();fe(b,p[1],p[0]),fe(je,_[1],_[0]),$e(b,b,je),Te(u,p[0],p[1]),Te(je,_[0],_[1]),$e(u,u,je),$e(F,p[3],_[3]),$e(F,F,k),$e(Z,p[2],_[2]),Te(Z,Z,Z),fe(ie,u,b),fe(me,Z,F),Te(Se,Z,F),Te(Ke,u,b),$e(p[0],ie,me),$e(p[1],Ke,Se),$e(p[2],Se,me),$e(p[3],ie,Ke)}function c(p,_,b){var u;for(u=0;u<4;u++)pe(p[u],_[u],b)}function v(p,_){var b=r(),u=r(),F=r();ht(F,_[2]),$e(b,_[0],F),$e(u,_[1],F),we(p,u),p[31]^=Be(b)<<7}function E(p,_,b){var u,F;for(Le(p[0],o),Le(p[1],l),Le(p[2],l),Le(p[3],o),F=255;F>=0;--F)u=b[F/8|0]>>(F&7)&1,c(p,_,u),x(_,p),x(p,p),c(p,_,u)}function B(p,_){var b=[r(),r(),r(),r()];Le(b[0],C),Le(b[1],j),Le(b[2],l),$e(b[3],C,j),E(p,b,_)}function z(p,_,b){var u=new Uint8Array(64),F=[r(),r(),r(),r()],Z;for(b||n(_,32),ne(u,_,32),u[0]&=248,u[31]&=127,u[31]|=64,B(F,u),v(p,F),Z=0;Z<32;Z++)_[Z+32]=p[Z];return 0}var V=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function h(p,_){var b,u,F,Z;for(u=63;u>=32;--u){for(b=0,F=u-32,Z=u-12;F<Z;++F)_[F]+=b-16*_[u]*V[F-(u-32)],b=Math.floor((_[F]+128)/256),_[F]-=b*256;_[F]+=b,_[u]=0}for(b=0,F=0;F<32;F++)_[F]+=b-(_[31]>>4)*V[F],b=_[F]>>8,_[F]&=255;for(F=0;F<32;F++)_[F]-=b*V[F];for(u=0;u<32;u++)_[u+1]+=_[u]>>8,p[u]=_[u]&255}function a(p){var _=new Float64Array(64),b;for(b=0;b<64;b++)_[b]=p[b];for(b=0;b<64;b++)p[b]=0;h(p,_)}function f(p,_,b,u){var F=new Uint8Array(64),Z=new Uint8Array(64),ie=new Uint8Array(64),me,Se,Ke=new Float64Array(64),je=[r(),r(),r(),r()];ne(F,u,32),F[0]&=248,F[31]&=127,F[31]|=64;var mt=b+64;for(me=0;me<b;me++)p[64+me]=_[me];for(me=0;me<32;me++)p[32+me]=F[32+me];for(ne(ie,p.subarray(32),b+32),a(ie),B(je,ie),v(p,je),me=32;me<64;me++)p[me]=u[me];for(ne(Z,p,b+64),a(Z),me=0;me<64;me++)Ke[me]=0;for(me=0;me<32;me++)Ke[me]=ie[me];for(me=0;me<32;me++)for(Se=0;Se<32;Se++)Ke[me+Se]+=Z[me]*F[Se];return h(p.subarray(32),Ke),mt}function m(p,_){var b=r(),u=r(),F=r(),Z=r(),ie=r(),me=r(),Se=r();return Le(p[2],l),Re(p[1],_),it(F,p[1]),$e(Z,F,d),fe(F,F,p[2]),Te(Z,p[2],Z),it(ie,Z),it(me,ie),$e(Se,me,ie),$e(b,Se,F),$e(b,b,Z),ve(b,b),$e(b,b,F),$e(b,b,Z),$e(b,b,Z),$e(p[0],b,Z),it(u,p[0]),$e(u,u,Z),_e(u,F)&&$e(p[0],p[0],X),it(u,p[0]),$e(u,u,Z),_e(u,F)?-1:(Be(p[0])===_[31]>>7&&fe(p[0],o,p[0]),$e(p[3],p[0],p[1]),0)}function I(p,_,b,u){var F,Z=new Uint8Array(32),ie=new Uint8Array(64),me=[r(),r(),r(),r()],Se=[r(),r(),r(),r()];if(b<64||m(Se,u))return-1;for(F=0;F<b;F++)p[F]=_[F];for(F=0;F<32;F++)p[F+32]=u[F];if(ne(ie,p,b),a(ie),E(me,Se,ie),B(Se,_.subarray(32)),x(me,Se),v(Z,me),b-=64,R(_,0,Z,0)){for(F=0;F<b;F++)p[F]=0;return-1}for(F=0;F<b;F++)p[F]=_[F+64];return b}var q=32,re=24,ke=32,He=16,qe=32,De=32,Qe=32,Ut=32,Ot=32,Kt=re,Yt=ke,Xt=He,tn=64,$n=32,li=64,Xl=32,Ql=64;e.lowlevel={crypto_core_hsalsa20:J,crypto_stream_xor:$,crypto_stream:se,crypto_stream_salsa20_xor:P,crypto_stream_salsa20:M,crypto_onetimeauth:ae,crypto_onetimeauth_verify:de,crypto_verify_16:D,crypto_verify_32:R,crypto_secretbox:xe,crypto_secretbox_open:Ie,crypto_scalarmult:Ae,crypto_scalarmult_base:y,crypto_box_beforenm:L,crypto_box_afternm:te,crypto_box:ee,crypto_box_open:oe,crypto_box_keypair:S,crypto_hash:ne,crypto_sign:f,crypto_sign_keypair:z,crypto_sign_open:I,crypto_secretbox_KEYBYTES:q,crypto_secretbox_NONCEBYTES:re,crypto_secretbox_ZEROBYTES:ke,crypto_secretbox_BOXZEROBYTES:He,crypto_scalarmult_BYTES:qe,crypto_scalarmult_SCALARBYTES:De,crypto_box_PUBLICKEYBYTES:Qe,crypto_box_SECRETKEYBYTES:Ut,crypto_box_BEFORENMBYTES:Ot,crypto_box_NONCEBYTES:Kt,crypto_box_ZEROBYTES:Yt,crypto_box_BOXZEROBYTES:Xt,crypto_sign_BYTES:tn,crypto_sign_PUBLICKEYBYTES:$n,crypto_sign_SECRETKEYBYTES:li,crypto_sign_SEEDBYTES:Xl,crypto_hash_BYTES:Ql,gf:r,D:d,L:V,pack25519:we,unpack25519:Re,M:$e,A:Te,S:it,Z:fe,pow2523:ve,add:x,set25519:Le,modL:h,scalarmult:E,scalarbase:B};function yd(p,_){if(p.length!==q)throw new Error("bad key size");if(_.length!==re)throw new Error("bad nonce size")}function Dm(p,_){if(p.length!==Qe)throw new Error("bad public key size");if(_.length!==Ut)throw new Error("bad secret key size")}function br(){for(var p=0;p<arguments.length;p++)if(!(arguments[p]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function xd(p){for(var _=0;_<p.length;_++)p[_]=0}e.randomBytes=function(p){var _=new Uint8Array(p);return n(_,p),_},e.secretbox=function(p,_,b){br(p,_,b),yd(b,_);for(var u=new Uint8Array(ke+p.length),F=new Uint8Array(u.length),Z=0;Z<p.length;Z++)u[Z+ke]=p[Z];return xe(F,u,u.length,_,b),F.subarray(He)},e.secretbox.open=function(p,_,b){br(p,_,b),yd(b,_);for(var u=new Uint8Array(He+p.length),F=new Uint8Array(u.length),Z=0;Z<p.length;Z++)u[Z+He]=p[Z];return u.length<32||Ie(F,u,u.length,_,b)!==0?null:F.subarray(ke)},e.secretbox.keyLength=q,e.secretbox.nonceLength=re,e.secretbox.overheadLength=He,e.scalarMult=function(p,_){if(br(p,_),p.length!==De)throw new Error("bad n size");if(_.length!==qe)throw new Error("bad p size");var b=new Uint8Array(qe);return Ae(b,p,_),b}
130,e.scalarMult.base=function(p){if(br(p),p.length!==De)throw new Error("bad n size");var _=new Uint8Array(qe);return y(_,p),_},e.scalarMult.scalarLength=De,e.scalarMult.groupElementLength=qe,e.box=function(p,_,b,u){var F=e.box.before(b,u);return e.secretbox(p,_,F)},e.box.before=function(p,_){br(p,_),Dm(p,_);var b=new Uint8Array(Ot);return L(b,p,_),b},e.box.after=e.secretbox,e.box.open=function(p,_,b,u){var F=e.box.before(b,u);return e.secretbox.open(p,_,F)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var p=new Uint8Array(Qe),_=new Uint8Array(Ut);return S(p,_),{publicKey:p,secretKey:_}},e.box.keyPair.fromSecretKey=function(p){if(br(p),p.length!==Ut)throw new Error("bad secret key size");var _=new Uint8Array(Qe);return y(_,p),{publicKey:_,secretKey:new Uint8Array(p)}},e.box.publicKeyLength=Qe,e.box.secretKeyLength=Ut,e.box.sharedKeyLength=Ot,e.box.nonceLength=Kt,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(p,_){if(br(p,_),_.length!==li)throw new Error("bad secret key size");var b=new Uint8Array(tn+p.length);return f(b,p,p.length,_),b},e.sign.open=function(p,_){if(br(p,_),_.length!==$n)throw new Error("bad public key size");var b=new Uint8Array(p.length),u=I(b,p,p.length,_);if(u<0)return null;for(var F=new Uint8Array(u),Z=0;Z<F.length;Z++)F[Z]=b[Z];return F},e.sign.detached=function(p,_){for(var b=e.sign(p,_),u=new Uint8Array(tn),F=0;F<u.length;F++)u[F]=b[F];return u},e.sign.detached.verify=function(p,_,b){if(br(p,_,b),_.length!==tn)throw new Error("bad signature size");if(b.length!==$n)throw new Error("bad public key size");var u=new Uint8Array(tn+p.length),F=new Uint8Array(tn+p.length),Z;for(Z=0;Z<tn;Z++)u[Z]=_[Z];for(Z=0;Z<p.length;Z++)u[Z+tn]=p[Z];return I(F,u,u.length,b)>=0},e.sign.keyPair=function(){var p=new Uint8Array($n),_=new Uint8Array(li);return z(p,_),{publicKey:p,secretKey:_}},e.sign.keyPair.fromSecretKey=function(p){if(br(p),p.length!==li)throw new Error("bad secret key size");for(var _=new Uint8Array($n),b=0;b<_.length;b++)_[b]=p[32+b];return{publicKey:_,secretKey:new Uint8Array(p)}},e.sign.keyPair.fromSeed=function(p){if(br(p),p.length!==Xl)throw new Error("bad seed size");for(var _=new Uint8Array($n),b=new Uint8Array(li),u=0;u<32;u++)b[u]=p[u];return z(_,b,!0),{publicKey:_,secretKey:b}},e.sign.publicKeyLength=$n,e.sign.secretKeyLength=li,e.sign.seedLength=Xl,e.sign.signatureLength=tn,e.hash=function(p){br(p);var _=new Uint8Array(Ql);return ne(_,p,p.length),_},e.hash.hashLength=Ql,e.verify=function(p,_){return br(p,_),p.length===0||_.length===0||p.length!==_.length?!1:G(p,0,_,0,p.length)===0},e.setPRNG=function(p){n=p},function(){var p=typeof self<"u"?self.crypto||self.msCrypto:null;if(p&&p.getRandomValues){var _=65536;e.setPRNG(function(b,u){var F,Z=new Uint8Array(u);for(F=0;F<u;F+=_)p.getRandomValues(Z.subarray(F,F+Math.min(u-F,_)));for(F=0;F<u;F++)b[F]=Z[F];xd(Z)})}else typeof Ix<"u"&&(p=Nx,p&&p.randomBytes&&e.setPRNG(function(b,u){var F,Z=p.randomBytes(u);for(F=0;F<u;F++)b[F]=Z[F];xd(Z)}))}()})(t.exports?t.exports:self.nacl=self.nacl||{})})(lg);var Ux=lg.exports;const en=ha(Ux);var ug={exports:{}};/* 131 * [js-sha512]{@link https://github.com/emn178/js-sha512} 132 * 133 * @version 0.8.0 134 * @author Chen, Yi-Cyuan [[email protected]] 135 * @copyright Chen, Yi-Cyuan 2014-2018 136 * @license MIT 137 */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA512_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA512_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=da:s&&(i=self);var l=!i.JS_SHA512_NO_COMMON_JS&&!0&&t.exports,g=!i.JS_SHA512_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",d="0123456789abcdef".split(""),k=[-2147483648,8388608,32768,128],C=[24,16,8,0],j=[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,
1371322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],X=["hex","array","digest","arrayBuffer"],H=[];(i.JS_SHA512_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(A){return Object.prototype.toString.call(A)==="[object Array]"}),g&&(i.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(A){return typeof A=="object"&&A.buffer&&A.buffer.constructor===ArrayBuffer});var G=function(A,P){return function(M){return new T(P,!0).update(M)[A]()}},D=function(A){var P=G("hex",A);P.create=function(){return new T(A)},P.update=function($){return P.create().update($)};for(var M=0;M<X.length;++M){var se=X[M];P[se]=G(se,A)}return P},R=function(A,P){return function(M,se){return new W(M,P,!0).update(se)[A]()}},w=function(A){var P=R("hex",A);P.create=function($){return new W($,A)},P.update=function($,he){return P.create($).update(he)};for(var M=0;M<X.length;++M){var se=X[M];P[se]=R(se,A)}return P};function T(A,P){P?(H[0]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=H[16]=H[17]=H[18]=H[19]=H[20]=H[21]=H[22]=H[23]=H[24]=H[25]=H[26]=H[27]=H[28]=H[29]=H[30]=H[31]=H[32]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],A==384?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):A==256?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):A==224?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=A,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}T.prototype.update=function(A){if(this.finalized)throw new Error(r);var P,M=typeof A;if(M!=="string"){if(M==="object"){if(A===null)throw new Error(e);
137if(g&&A.constructor===ArrayBuffer)A=new Uint8Array(A);else if(!Array.isArray(A)&&(!g||!ArrayBuffer.isView(A)))throw new Error(e)}else throw new Error(e);P=!0}for(var se,$=0,he,ae=A.length,de=this.blocks;$<ae;){if(this.hashed&&(this.hashed=!1,de[0]=this.block,de[1]=de[2]=de[3]=de[4]=de[5]=de[6]=de[7]=de[8]=de[9]=de[10]=de[11]=de[12]=de[13]=de[14]=de[15]=de[16]=de[17]=de[18]=de[19]=de[20]=de[21]=de[22]=de[23]=de[24]=de[25]=de[26]=de[27]=de[28]=de[29]=de[30]=de[31]=de[32]=0),P)for(he=this.start;$<ae&&he<128;++$)de[he>>2]|=A[$]<<C[he++&3];else for(he=this.start;$<ae&&he<128;++$)se=A.charCodeAt($),se<128?de[he>>2]|=se<<C[he++&3]:se<2048?(de[he>>2]|=(192|se>>6)<<C[he++&3],de[he>>2]|=(128|se&63)<<C[he++&3]):se<55296||se>=57344?(de[he>>2]|=(224|se>>12)<<C[he++&3],de[he>>2]|=(128|se>>6&63)<<C[he++&3],de[he>>2]|=(128|se&63)<<C[he++&3]):(se=65536+((se&1023)<<10|A.charCodeAt(++$)&1023),de[he>>2]|=(240|se>>18)<<C[he++&3],de[he>>2]|=(128|se>>12&63)<<C[he++&3],de[he>>2]|=(128|se>>6&63)<<C[he++&3],de[he>>2]|=(128|se&63)<<C[he++&3]);this.lastByteIndex=he,this.bytes+=he-this.start,he>=128?(this.block=de[32],this.start=he-128,this.hash(),this.hashed=!0):this.start=he}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var A=this.blocks,P=this.lastByteIndex;A[32]=this.block,A[P>>2]|=k[P&3],this.block=A[32],P>=112&&(this.hashed||this.hash(),A[0]=this.block,A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=A[16]=A[17]=A[18]=A[19]=A[20]=A[21]=A[22]=A[23]=A[24]=A[25]=A[26]=A[27]=A[28]=A[29]=A[30]=A[31]=A[32]=0),A[30]=this.hBytes<<3|this.bytes>>>29,A[31]=this.bytes<<3,this.hash()}},T.prototype.hash=function(){var A=this.h0h,P=this.h0l,M=this.h1h,se=this.h1l,$=this.h2h,he=this.h2l,ae=this.h3h,de=this.h3l,xe=this.h4h,Ie=this.h4l,Le=this.h5h,Ye=this.h5l,pe=this.h6h,we=this.h6l,_e=this.h7h,Be=this.h7l,Re=this.blocks,Te,fe,$e,it,ht,ve,Ae,y,S,L,te,Y,ee,oe,K,Q,ne,x,c,v,E,B,z,V,h;for(Te=32;Te<160;Te+=2)v=Re[Te-30],E=Re[Te-29],fe=(v>>>1|E<<31)^(v>>>8|E<<24)^v>>>7,$e=(E>>>1|v<<31)^(E>>>8|v<<24)^(E>>>7|v<<25),v=Re[Te-4],E=Re[Te-3],it=(v>>>19|E<<13)^(E>>>29|v<<3)^v>>>6,ht=(E>>>19|v<<13)^(v>>>29|E<<3)^(E>>>6|v<<26),v=Re[Te-32],E=Re[Te-31],B=Re[Te-14],z=Re[Te-13],ve=(z&65535)+(E&65535)+($e&65535)+(ht&65535),Ae=(z>>>16)+(E>>>16)+($e>>>16)+(ht>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(fe&65535)+(it&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(fe>>>16)+(it>>>16)+(y>>>16),Re[Te]=S<<16|y&65535,Re[Te+1]=Ae<<16|ve&65535;var a=A,f=P,m=M,I=se,q=$,re=he,ke=ae,He=de,qe=xe,De=Ie,Qe=Le,Ut=Ye,Ot=pe,Kt=we,Yt=_e,Xt=Be;for(Q=m&q,ne=I&re,Te=0;Te<160;Te+=8)fe=(a>>>28|f<<4)^(f>>>2|a<<30)^(f>>>7|a<<25),$e=(f>>>28|a<<4)^(a>>>2|f<<30)^(a>>>7|f<<25),it=(qe>>>14|De<<18)^(qe>>>18|De<<14)^(De>>>9|qe<<23),ht=(De>>>14|qe<<18)^(De>>>18|qe<<14)^(qe>>>9|De<<23),L=a&m,te=f&I,x=L^a&q^Q,c=te^f&re^ne,V=qe&Qe^~qe&Ot,h=De&Ut^~De&Kt,v=Re[Te],E=Re[Te+1],B=j[Te],z=j[Te+1],ve=(z&65535)+(E&65535)+(h&65535)+(ht&65535)+(Xt&65535),Ae=(z>>>16)+(E>>>16)+(h>>>16)+(ht>>>16)+(Xt>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(V&65535)+(it&65535)+(Yt&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(V>>>16)+(it>>>16)+(Yt>>>16)+(y>>>16),v=S<<16|y&65535,E=Ae<<16|ve&65535,ve=(c&65535)+($e&65535),Ae=(c>>>16)+($e>>>16)+(ve>>>16),y=(x&65535)+(fe&65535)+(Ae>>>16),S=(x>>>16)+(fe>>>16)+(y>>>16),B=S<<16|y&65535,z=Ae<<16|ve&65535,ve=(He&65535)+(E&65535),Ae=(He>>>16)+(E>>>16)+(ve>>>16),y=(ke&65535)+(v&65535)+(Ae>>>16),S=(ke>>>16)+(v>>>16)+(y>>>16),Yt=S<<16|y&65535,Xt=Ae<<16|ve&65535,ve=(z&65535)+(E&65535),Ae=(z>>>16)+(E>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(y>>>16),ke=S<<16|y&65535,He=Ae<<16|ve&65535,fe=(ke>>>28|He<<4)^(He>>>2|ke<<30)^(He>>>7|ke<<25),$e=(He>>>28|ke<<4)^(ke>>>2|He<<30)^(ke>>>7|He<<25),it=(Yt>>>14|Xt<<18)^(Yt>>>18|Xt<<14)^(Xt>>>9|Yt<<23),ht=(Xt>>>14|Yt<<18)^(Xt>>>18|Yt<<14)^(Yt>>>9|Xt<<23),Y=ke&a,ee=He&f,x=Y^ke&m^L,c=ee^He&I^te,V=Yt&qe^~Yt&Qe,h=Xt&De^~Xt&Ut,v=Re[Te+2],E=Re[Te+3],B=j[Te+2],z=j[Te+3],ve=(z&65535)+(E&65535)+(h&65535)+(ht&65535)+(Kt&65535),Ae=(z>>>16)+(E>>>16)+(h>>>16)+(ht>>>16)+(Kt>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(V&65535)+(it&65535)+(Ot&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(V>>>16)+(it>>>16)+(Ot>>>16)+(y>>>16),v=S<<16|y&65535,E=Ae<<16|ve&65535,ve=(c&65535)+($e&65535),Ae=(c>>>16)+($e>>>16)+(ve>>>16),y=(x&65535)+(fe&65535)+(Ae>>>16),S=(x>>>16)+(fe>>>16)+(y>>>16),B=S<<16|y&65535,z=Ae<<16|ve&65535,ve=(re&65535)+(E&65535),Ae=(re>>>16)+(E>>>16)+(ve>>>16),y=(q&65535)+(v&65535)+(Ae>>>16),S=(q>>>16)+(v>>>16)+(y>>>
13716),Ot=S<<16|y&65535,Kt=Ae<<16|ve&65535,ve=(z&65535)+(E&65535),Ae=(z>>>16)+(E>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(y>>>16),q=S<<16|y&65535,re=Ae<<16|ve&65535,fe=(q>>>28|re<<4)^(re>>>2|q<<30)^(re>>>7|q<<25),$e=(re>>>28|q<<4)^(q>>>2|re<<30)^(q>>>7|re<<25),it=(Ot>>>14|Kt<<18)^(Ot>>>18|Kt<<14)^(Kt>>>9|Ot<<23),ht=(Kt>>>14|Ot<<18)^(Kt>>>18|Ot<<14)^(Ot>>>9|Kt<<23),oe=q&ke,K=re&He,x=oe^q&a^Y,c=K^re&f^ee,V=Ot&Yt^~Ot&qe,h=Kt&Xt^~Kt&De,v=Re[Te+4],E=Re[Te+5],B=j[Te+4],z=j[Te+5],ve=(z&65535)+(E&65535)+(h&65535)+(ht&65535)+(Ut&65535),Ae=(z>>>16)+(E>>>16)+(h>>>16)+(ht>>>16)+(Ut>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(V&65535)+(it&65535)+(Qe&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(V>>>16)+(it>>>16)+(Qe>>>16)+(y>>>16),v=S<<16|y&65535,E=Ae<<16|ve&65535,ve=(c&65535)+($e&65535),Ae=(c>>>16)+($e>>>16)+(ve>>>16),y=(x&65535)+(fe&65535)+(Ae>>>16),S=(x>>>16)+(fe>>>16)+(y>>>16),B=S<<16|y&65535,z=Ae<<16|ve&65535,ve=(I&65535)+(E&65535),Ae=(I>>>16)+(E>>>16)+(ve>>>16),y=(m&65535)+(v&65535)+(Ae>>>16),S=(m>>>16)+(v>>>16)+(y>>>16),Qe=S<<16|y&65535,Ut=Ae<<16|ve&65535,ve=(z&65535)+(E&65535),Ae=(z>>>16)+(E>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(y>>>16),m=S<<16|y&65535,I=Ae<<16|ve&65535,fe=(m>>>28|I<<4)^(I>>>2|m<<30)^(I>>>7|m<<25),$e=(I>>>28|m<<4)^(m>>>2|I<<30)^(m>>>7|I<<25),it=(Qe>>>14|Ut<<18)^(Qe>>>18|Ut<<14)^(Ut>>>9|Qe<<23),ht=(Ut>>>14|Qe<<18)^(Ut>>>18|Qe<<14)^(Qe>>>9|Ut<<23),Q=m&q,ne=I&re,x=Q^m&ke^oe,c=ne^I&He^K,V=Qe&Ot^~Qe&Yt,h=Ut&Kt^~Ut&Xt,v=Re[Te+6],E=Re[Te+7],B=j[Te+6],z=j[Te+7],ve=(z&65535)+(E&65535)+(h&65535)+(ht&65535)+(De&65535),Ae=(z>>>16)+(E>>>16)+(h>>>16)+(ht>>>16)+(De>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(V&65535)+(it&65535)+(qe&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(V>>>16)+(it>>>16)+(qe>>>16)+(y>>>16),v=S<<16|y&65535,E=Ae<<16|ve&65535,ve=(c&65535)+($e&65535),Ae=(c>>>16)+($e>>>16)+(ve>>>16),y=(x&65535)+(fe&65535)+(Ae>>>16),S=(x>>>16)+(fe>>>16)+(y>>>16),B=S<<16|y&65535,z=Ae<<16|ve&65535,ve=(f&65535)+(E&65535),Ae=(f>>>16)+(E>>>16)+(ve>>>16),y=(a&65535)+(v&65535)+(Ae>>>16),S=(a>>>16)+(v>>>16)+(y>>>16),qe=S<<16|y&65535,De=Ae<<16|ve&65535,ve=(z&65535)+(E&65535),Ae=(z>>>16)+(E>>>16)+(ve>>>16),y=(B&65535)+(v&65535)+(Ae>>>16),S=(B>>>16)+(v>>>16)+(y>>>16),a=S<<16|y&65535,f=Ae<<16|ve&65535;ve=(P&65535)+(f&65535),Ae=(P>>>16)+(f>>>16)+(ve>>>16),y=(A&65535)+(a&65535)+(Ae>>>16),S=(A>>>16)+(a>>>16)+(y>>>16),this.h0h=S<<16|y&65535,this.h0l=Ae<<16|ve&65535,ve=(se&65535)+(I&65535),Ae=(se>>>16)+(I>>>16)+(ve>>>16),y=(M&65535)+(m&65535)+(Ae>>>16),S=(M>>>16)+(m>>>16)+(y>>>16),this.h1h=S<<16|y&65535,this.h1l=Ae<<16|ve&65535,ve=(he&65535)+(re&65535),Ae=(he>>>16)+(re>>>16)+(ve>>>16),y=($&65535)+(q&65535)+(Ae>>>16),S=($>>>16)+(q>>>16)+(y>>>16),this.h2h=S<<16|y&65535,this.h2l=Ae<<16|ve&65535,ve=(de&65535)+(He&65535),Ae=(de>>>16)+(He>>>16)+(ve>>>16),y=(ae&65535)+(ke&65535)+(Ae>>>16),S=(ae>>>16)+(ke>>>16)+(y>>>16),this.h3h=S<<16|y&65535,this.h3l=Ae<<16|ve&65535,ve=(Ie&65535)+(De&65535),Ae=(Ie>>>16)+(De>>>16)+(ve>>>16),y=(xe&65535)+(qe&65535)+(Ae>>>16),S=(xe>>>16)+(qe>>>16)+(y>>>16),this.h4h=S<<16|y&65535,this.h4l=Ae<<16|ve&65535,ve=(Ye&65535)+(Ut&65535),Ae=(Ye>>>16)+(Ut>>>16)+(ve>>>16),y=(Le&65535)+(Qe&65535)+(Ae>>>16),S=(Le>>>16)+(Qe>>>16)+(y>>>16),this.h5h=S<<16|y&65535,this.h5l=Ae<<16|ve&65535,ve=(we&65535)+(Kt&65535),Ae=(we>>>16)+(Kt>>>16)+(ve>>>16),y=(pe&65535)+(Ot&65535)+(Ae>>>16),S=(pe>>>16)+(Ot>>>16)+(y>>>16),this.h6h=S<<16|y&65535,this.h6l=Ae<<16|ve&65535,ve=(Be&65535)+(Xt&65535),Ae=(Be>>>16)+(Xt>>>16)+(ve>>>16),y=(_e&65535)+(Yt&65535)+(Ae>>>16),S=(_e>>>16)+(Yt>>>16)+(y>>>16),this.h7h=S<<16|y&65535,this.h7l=Ae<<16|ve&65535},T.prototype.hex=function(){this.finalize();var A=this.h0h,P=this.h0l,M=this.h1h,se=this.h1l,$=this.h2h,he=this.h2l,ae=this.h3h,de=this.h3l,xe=this.h4h,Ie=this.h4l,Le=this.h5h,Ye=this.h5l,pe=this.h6h,we=this.h6l,_e=this.h7h,Be=this.h7l,Re=this.bits,Te=d[A>>28&15]+d[A>>24&15]+d[A>>20&15]+d[A>>16&15]+d[A>>12&15]+d[A>>8&15]+d[A>>4&15]+d[A&15]+d[P>>28&15]+d[P>>24&15]+d[P>>20&15]+d[P>>16&15]+d[P>>12&15]+d[P>>8&15]+d[P>>4&15]+d[P&15]+d[M>>28&15]+d[M>>24&15]+d[M>>20&15]+d[M>>16&15]+d[M>>12&15]+d[M>>8&15]+d[M>>4&15]+d[M&15]+d[se>>28&15]+d[se>>24&15]+d[se>>20&15]+d[se>>16&15]+d[se>>12&15]+d[se>>8&15]+d[se>>4&15]+d[se&15]+d[$>>28&15]+d[$>>24&15]+d[$>>20&15]+d[$>>16&15]+d[$>>12&15]+d[$>>8&15]+d[$>>4&15]+d[$&15]+d[he>>28&15]+d[he>>24&15]+d[he>>20&15]+d[he>>16&15]+d[he>>12&15]+d[he>>8&15]+d[he>>4&15]+d[he&15]+d[ae>>28&15]+d[ae>>24&15]+d[ae>>20&15]+d[ae>>16&15]+d[ae>>12&15]+d[ae>>8&15]+d[ae>>4&15]+d[ae&15];return Re>=256&&(Te+=d[de>>28&15]+d[de>>24&15]+d[de>>20&15]+d[de>>16&15]+d[de>>12&15]+d[de>>8&15]+d[de>>4&15]+d[de&15]),Re>=384&&(Te+=d[xe>>28&15]+d[xe>>24&15]+d[xe>>20&15]+d[xe>>16&15]+d[xe>>12&15]+d[xe>>8&15]+d[xe>>4&15]+d[xe&15]+d[Ie>>28&15]+d[Ie>>24&15]+d[Ie>>20&15]+d[Ie>>16&15]+d[Ie>>12&15]+d[Ie>>8&15]+d[Ie>>4&15]+d[Ie&15]+d[Le>>28&15]+d[Le>>24&15]+d[Le>>20&15]+d[Le>>16&15]+d[Le>>12&15]+d[Le>>8&15]+d[Le>>4&15]+d[Le&15]+d[Ye>>28&15]+d[Ye>>24&15]+d[Ye>>20&15]+d[Ye>>16&15]+d[Ye>>12&15]+d[Ye>>8&15]+d[Ye>>4&15]+d[Ye&15]),Re==512&&(Te+=d[pe>>28&15]+d[pe>>24&15]+d[pe>>20&15]+d[pe>>16&15]+d[pe>>12&15]+d[pe>>8&15]+d[pe>>4&15]+d[pe&15]+d[we>>28&15]+d[we>>24&15]+d[we>>20&15]+d[we>>16&15]+d[we>>12&15]+d[we>>8&15]+d[we>>4&15]+d[we&15]+d[_e>>28&15]+d[_e>>24&15]+d[_e>>20&15]+d[_e>>16&15]+d[_e>>12&15]+d[_e>>8&15]+d[_e>>4&15]+d[_e&15]+d[Be>>28&15]+d[Be>>24&15]+d[Be>>20&15]+d[Be>>16&15]+d[Be>>12&15]+d[Be>>8&15]+d[Be>>4&15]+d[Be&15]),Te},T.prototype.toString=T.prototype.hex,T.prototype.digest=function(){this.finalize();var A=this.h0h,P=this.h0l,M=this.h1h,se=this.h1l,$=this.h2h,he=this.h2l,ae=this.h3h,de=this.h3l,xe=this.h4h,Ie=this.h4l,Le=this.h5h,Ye=this.h5l,pe=this.h6h,we=this.h6l,_e=this.h7h,Be=this.h7l,Re=this.bits,Te=[A>>24&255,A>>16&255,A>>8&255,A&255,P>>24&255,P>>16&255,P>>8&255,P&255,M>>24&255,M>>16&255,M>>8&255,M&255,se>>24&255,se>>16&255,se>>8&255,se&255,$>>24&255,$>>16&255,$>>8&255,$&255,he>>24&255,he>>16&255,he>>8&255,he&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255];return Re>=256&&Te.push(de>>24&255,de>>16&255,de>>8&255,de&255),Re>=384&&Te.push(xe>>24&255,xe>>16&255,xe>>8&255,xe&255,Ie>>24&255,Ie>>16&255,Ie>>8&255,Ie&255,Le>>24&255,Le>>16&255,Le>>8&255,Le&255,Ye>>24&255,Ye>>16&255,Ye>>8&255,Ye&255),Re==512&&Te.push(pe>>24&255,pe>>16&255,pe>>8&255,pe&255,we>>24&255,we>>16&255,we>>8&255,we&255,_e>>24&255,_e>>16&255,_e>>8&255,_e&255,Be>>24&255,Be>>16&255,Be>>8&255,Be&255),Te},T.prototype.array=T.prototype.digest,T.prototype.arrayBuffer=function(){this.finalize();var A=this.bits,P=new ArrayBuffer(A/8),M=new DataView(P);return M.setUint32(0,this.h0h),M.setUint32(4,this.h0l),M.setUint32(8,this.h1h),M.setUint32(12,this.h1l),M.setUint32(16,this.h2h),M.setUint32(20,this.h2l),M.setUint32(24,this.h3h),A>=256&&M.setUint32(28,this.h3l),A>=384&&(M.setUint32(32,this.h4h),M.setUint32(36,this.h4l),M.setUint32(40,this.h5h),M.setUint32(44,this.h5l)),A==512&&(M.setUint32(48,this.h6h),M.setUint32(52,this.h6l),M.setUint32(56,this.h7h),M.setUint32(60,this.h7l)),P},T.prototype.clone=function(){var A=new T(this.bits,!1);return this.copyTo(A),A},T.prototype.copyTo=function(A){var P=0,M=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(P=0;P<M.length;++P)A[M[P]]=this[M[P]];for(P=0;P<this.blocks.length;++P)A.blocks[P]=this.blocks[P]};function W(A,P,M){var se,$=typeof A;if($!=="string"){if($==="object"){if(A===null)throw new Error(e);
137if(g&&A.constructor===ArrayBuffer)A=new Uint8Array(A);else if(!Array.isArray(A)&&(!g||!ArrayBuffer.isView(A)))throw new Error(e)}else throw new Error(e);se=!0}var he=A.length;if(!se){for(var ae=[],he=A.length,de=0,xe,Ie=0;Ie<he;++Ie)xe=A.charCodeAt(Ie),xe<128?ae[de++]=xe:xe<2048?(ae[de++]=192|xe>>6,ae[de++]=128|xe&63):xe<55296||xe>=57344?(ae[de++]=224|xe>>12,ae[de++]=128|xe>>6&63,ae[de++]=128|xe&63):(xe=65536+((xe&1023)<<10|A.charCodeAt(++Ie)&1023),ae[de++]=240|xe>>18,ae[de++]=128|xe>>12&63,ae[de++]=128|xe>>6&63,ae[de++]=128|xe&63);A=ae}A.length>128&&(A=new T(P,!0).update(A).array());for(var Le=[],Ye=[],Ie=0;Ie<128;++Ie){var pe=A[Ie]||0;Le[Ie]=92^pe,Ye[Ie]=54^pe}T.call(this,P,M),this.update(Ye),this.oKeyPad=Le,this.inner=!0,this.sharedMemory=M}W.prototype=new T,W.prototype.finalize=function(){if(T.prototype.finalize.call(this),this.inner){this.inner=!1;var A=this.array();T.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(A),T.prototype.finalize.call(this)}},W.prototype.clone=function(){var A=new W([],this.bits,!1);this.copyTo(A),A.inner=this.inner;for(var P=0;P<this.oKeyPad.length;++P)A.oKeyPad[P]=this.oKeyPad[P];return A};var J=D(512);J.sha512=J,J.sha384=D(384),J.sha512_256=D(256),J.sha512_224=D(224),J.sha512.hmac=w(512),J.sha384.hmac=w(384),J.sha512_256.hmac=w(256),J.sha512_224.hmac=w(224),l?t.exports=J:(i.sha512=J.sha512,i.sha384=J.sha384,i.sha512_256=J.sha512_256,i.sha512_224=J.sha512_224)})()})(ug);var Dx=ug.exports;const Px=ha(Dx);var Ia={exports:{}},fg={exports:{}},cg={exports:{}};(function(t){(function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,o="[BigNumber Error] ",l=o+"Number primitive has more than 15 significant digits: ",g=1e14,d=14,k=9007199254740991,C=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],j=1e7,X=1e9;function H(A){var P,M,se,$=fe.prototype={constructor:fe,toString:null,valueOf:null},he=new fe(1),ae=20,de=4,xe=-7,Ie=21,Le=-1e7,Ye=1e7,pe=!1,we=1,_e=0,Be={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"Â ",suffix:""},Re="0123456789abcdefghijklmnopqrstuvwxyz",Te=!0;function fe(y,S){var L,te,Y,ee,oe,K,Q,ne,x=this;if(!(x instanceof fe))return new fe(y,S);if(S==null){if(y&&y._isBigNumber===!0){x.s=y.s,!y.c||y.e>Ye?x.c=x.e=null:y.e<Le?x.c=[x.e=0]:(x.e=y.e,x.c=y.c.slice());return}if((K=typeof y=="number")&&y*0==0){if(x.s=1/y<0?(y=-y,-1):1,y===~~y){for(ee=0,oe=y;oe>=10;oe/=10,ee++);ee>Ye?x.c=x.e=null:(x.e=ee,x.c=[y]);return}ne=String(y)}else{if(!n.test(ne=String(y)))return se(x,ne,K);x.s=ne.charCodeAt(0)==45?(ne=ne.slice(1),-1):1}(ee=ne.indexOf("."))>-1&&(ne=ne.replace(".","")),(oe=ne.search(/e/i))>0?(ee<0&&(ee=oe),ee+=+ne.slice(oe+1),ne=ne.substring(0,oe)):ee<0&&(ee=ne.length)}else{if(w(S,2,Re.length,"Base"),S==10&&Te)return x=new fe(y),ve(x,ae+x.e+1,de);if(ne=String(y),K=typeof y=="number"){if(y*0!=0)return se(x,ne,K,S);if(x.s=1/y<0?(ne=ne.slice(1),-1):1,fe.DEBUG&&ne.replace(/^0\.0*|\./,"").length>15)throw Error(l+y)}else x.s=ne.charCodeAt(0)===45?(ne=ne.slice(1),-1):1;for(L=Re.slice(0,S),ee=oe=0,Q=ne.length;oe<Q;oe++)if(L.indexOf(te=ne.charAt(oe))<0){if(te=="."){if(oe>ee){ee=Q;continue}}else if(!Y&&(ne==ne.toUpperCase()&&(ne=ne.toLowerCase())||ne==ne.toLowerCase()&&(ne=ne.toUpperCase()))){Y=!0,oe=-1,ee=0;continue}return se(x,String(y),K,S)}K=!1,ne=M(ne,S,10,x.s),(ee=ne.indexOf("."))>-1?ne=ne.replace(".",""):ee=ne.length}for(oe=0;ne.charCodeAt(oe)===48;oe++);for(Q=ne.length;ne.charCodeAt(--Q)===48;);if(ne=ne.slice(oe,++Q)){if(Q-=oe,K&&fe.DEBUG&&Q>15&&(y>k||y!==s(y)))throw Error(l+x.s*y);if((ee=ee-oe-1)>Ye)x.c=x.e=null;else if(ee<Le)x.c=[x.e=0];else{if(x.e=ee,x.c=[],oe=(ee+1)%d,ee<0&&(oe+=d),oe<Q){for(oe&&x.c.push(+ne.slice(0,oe)),Q-=d;oe<Q;)x.c.push(+ne.slice(oe,oe+=d));oe=d-(ne=ne.slice(oe)).length}else oe-=Q;for(;oe--;ne+="0");x.c.push(+ne)}}else x.c=[x.e=0]}fe.clone=H,fe.ROUND_UP=0,fe.ROUND_DOWN=1,fe.ROUND_CEIL=2,fe.ROUND_FLOOR=3,fe.ROUND_HALF_UP=4,fe.ROUND_HALF_DOWN=5,fe.ROUND_HALF_EVEN=6,fe.ROUND_HALF_CEIL=7,fe.ROUND_HALF_FLOOR=8,fe.EUCLID=9,fe.config=fe.set=function(y){var S,L;if(y!=null)if(typeof y=="object"){if(y.hasOwnProperty(S="DECIMAL_PLACES")&&(L=y[S],w(L,0,X,S),ae=L),y.hasOwnProperty(S="ROUNDING_MODE")&&(L=y[S],w(L,0,8,S),de=L),y.hasOwnProperty(S="EXPONENTIAL_AT")&&(L=y[S],L&&L.pop?(w(L[0],-X,0,S),w(L[1],0,X,S),xe=L[0],Ie=L[1]):(w(L,-X,X,S),xe=-(Ie=L<0?-L:L))),y.hasOwnProperty(S="RANGE"))if(L=y[S],L&&L.pop)w(L[0],-X,-1,S),w(L[1],1,X,S),Le=L[0],Ye=L[1];else if(w(L,-X,X,S),L)Le=-(Ye=L<0?-L:L);else throw Error(o+S+" cannot be zero: "+L);if(y.hasOwnProperty(S="CRYPTO"))if(L=y[S],L===!!L)if(L)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))pe=L;else throw pe=!L,Error(o+"crypto unavailable");else pe=L;else throw Error(o+S+" not true or false: "+L);if(y.hasOwnProperty(S="MODULO_MODE")&&(L=y[S],w(L,0,9,S),we=L),y.hasOwnProperty(S="POW_PRECISION")&&(L=y[S],w(L,0,X,S),_e=L),y.hasOwnProperty(S="FORMAT"))if(L=y[S],typeof L=="object")Be=L;else throw Error(o+S+" not an object: "+L);if(y.hasOwnProperty(S="ALPHABET"))if(L=y[S],typeof L=="string"&&!/^.?$|[+\-.\
vendor: 10,482 bytes, line 137
137s]|(.).*\1/.test(L))Te=L.slice(0,10)=="0123456789",Re=L;else throw Error(o+S+" invalid: "+L)}else throw Error(o+"Object expected: "+y);return{DECIMAL_PLACES:ae,ROUNDING_MODE:de,EXPONENTIAL_AT:[xe,Ie],RANGE:[Le,Ye],CRYPTO:pe,MODULO_MODE:we,POW_PRECISION:_e,FORMAT:Be,ALPHABET:Re}},fe.isBigNumber=function(y){if(!y||y._isBigNumber!==!0)return!1;if(!fe.DEBUG)return!0;var S,L,te=y.c,Y=y.e,ee=y.s;e:if({}.toString.call(te)=="[object Array]"){if((ee===1||ee===-1)&&Y>=-X&&Y<=X&&Y===s(Y)){if(te[0]===0){if(Y===0&&te.length===1)return!0;break e}if(S=(Y+1)%d,S<1&&(S+=d),String(te[0]).length==S){for(S=0;S<te.length;S++)if(L=te[S],L<0||L>=g||L!==s(L))break e;if(L!==0)return!0}}}else if(te===null&&Y===null&&(ee===null||ee===1||ee===-1))return!0;throw Error(o+"Invalid BigNumber: "+y)},fe.maximum=fe.max=function(){return it(arguments,-1)},fe.minimum=fe.min=function(){return it(arguments,1)},fe.random=function(){var y=9007199254740992,S=Math.random()*y&2097151?function(){return s(Math.random()*y)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var te,Y,ee,oe,K,Q=0,ne=[],x=new fe(he);if(L==null?L=ae:w(L,0,X),oe=i(L/d),pe)if(crypto.getRandomValues){for(te=crypto.getRandomValues(new Uint32Array(oe*=2));Q<oe;)K=te[Q]*131072+(te[Q+1]>>>11),K>=9e15?(Y=crypto.getRandomValues(new Uint32Array(2)),te[Q]=Y[0],te[Q+1]=Y[1]):(ne.push(K%1e14),Q+=2);Q=oe/2}else if(crypto.randomBytes){for(te=crypto.randomBytes(oe*=7);Q<oe;)K=(te[Q]&31)*281474976710656+te[Q+1]*1099511627776+te[Q+2]*4294967296+te[Q+3]*16777216+(te[Q+4]<<16)+(te[Q+5]<<8)+te[Q+6],K>=9e15?crypto.randomBytes(7).copy(te,Q):(ne.push(K%1e14),Q+=7);Q=oe/7}else throw pe=!1,Error(o+"crypto unavailable");if(!pe)for(;Q<oe;)K=S(),K<9e15&&(ne[Q++]=K%1e14);for(oe=ne[--Q],L%=d,oe&&L&&(K=C[d-L],ne[Q]=s(oe/K)*K);ne[Q]===0;ne.pop(),Q--);if(Q<0)ne=[ee=0];else{for(ee=-1;ne[0]===0;ne.splice(0,1),ee-=d);for(Q=1,K=ne[0];K>=10;K/=10,Q++);Q<d&&(ee-=d-Q)}return x.e=ee,x.c=ne,x}}(),fe.sum=function(){for(var y=1,S=arguments,L=new fe(S[0]);y<S.length;)L=L.plus(S[y++]);return L},M=function(){var y="0123456789";function S(L,te,Y,ee){for(var oe,K=[0],Q,ne=0,x=L.length;ne<x;){for(Q=K.length;Q--;K[Q]*=te);for(K[0]+=ee.indexOf(L.charAt(ne++)),oe=0;oe<K.length;oe++)K[oe]>Y-1&&(K[oe+1]==null&&(K[oe+1]=0),K[oe+1]+=K[oe]/Y|0,K[oe]%=Y)}return K.reverse()}return function(L,te,Y,ee,oe){var K,Q,ne,x,c,v,E,B,z=L.indexOf("."),V=ae,h=de;for(z>=0&&(x=_e,_e=0,L=L.replace(".",""),B=new fe(te),v=B.pow(L.length-z),_e=x,B.c=S(J(D(v.c),v.e,"0"),10,Y,y),B.e=B.c.length),E=S(L,te,Y,oe?(K=Re,y):(K=y,Re)),ne=x=E.length;E[--x]==0;E.pop());if(!E[0])return K.charAt(0);if(z<0?--ne:(v.c=E,v.e=ne,v.s=ee,v=P(v,B,V,h,Y),E=v.c,c=v.r,ne=v.e),Q=ne+V+1,z=E[Q],x=Y/2,c=c||Q<0||E[Q+1]!=null,c=h<4?(z!=null||c)&&(h==0||h==(v.s<0?3:2)):z>x||z==x&&(h==4||c||h==6&&E[Q-1]&1||h==(v.s<0?8:7)),Q<1||!E[0])L=c?J(K.charAt(1),-V,K.charAt(0)):K.charAt(0);else{if(E.length=Q,c)for(--Y;++E[--Q]>Y;)E[Q]=0,Q||(++ne,E=[1].concat(E));for(x=E.length;!E[--x];);for(z=0,L="";z<=x;L+=K.charAt(E[z++]));L=J(L,ne,K.charAt(0))}return L}}(),P=function(){function y(te,Y,ee){var oe,K,Q,ne,x=0,c=te.length,v=Y%j,E=Y/j|0;for(te=te.slice();c--;)Q=te[c]%j,ne=te[c]/j|0,oe=E*Q+ne*v,K=v*Q+oe%j*j+x,x=(K/ee|0)+(oe/j|0)+E*ne,te[c]=K%ee;return x&&(te=[x].concat(te)),te}function S(te,Y,ee,oe){var K,Q;if(ee!=oe)Q=ee>oe?1:-1;else for(K=Q=0;K<ee;K++)if(te[K]!=Y[K]){Q=te[K]>Y[K]?1:-1;break}return Q}function L(te,Y,ee,oe){for(var K=0;ee--;)te[ee]-=K,K=te[ee]<Y[ee]?1:0,te[ee]=K*oe+te[ee]-Y[ee];for(;!te[0]&&te.length>1;te.splice(0,1));}return function(te,Y,ee,oe,K){var Q,ne,x,c,v,E,B,z,V,h,a,f,m,I,q,re,ke,He=te.s==Y.s?1:-1,qe=te.c,De=Y.c;if(!qe||!qe[0]||!De||!De[0])return new fe(!te.s||!Y.s||(qe?De&&qe[0]==De[0]:!De)?NaN:qe&&qe[0]==0||!De?He*0:He/0);for(z=new fe(He),V=z.c=[],ne=te.e-Y.e,He=ee+ne+1,K||(K=g,ne=G(te.e/d)-G(Y.e/d),He=He/d|0),x=0;De[x]==(qe[x]||0);x++);if(De[x]>(qe[x]||0)&&ne--,He<0)V.push(1),c=!0;else{for(I=qe.length,re=De.length,x=0,He+=2,v=s(K/(De[0]+1)),v>1&&(De=y(De,v,K),qe=y(qe,v,K),re=De.length,I=qe.length),m=re,h=qe.slice(0,re),a=h.length;a<re;h[a++]=0);ke=De.slice(),ke=[0].concat(ke),q=De[0],De[1]>=K/2&&q++;do{if(v=0,Q=S(De,h,re,a),Q<0){if(f=h[0],re!=a&&(f=f*K+(h[1]||0)),v=s(f/q),v>1)for(v>=K&&(v=K-1),E=y(De,v,K),B=E.length,a=h.length;S(E,h,B,a)==1;)v--,L(E,re<B?ke:De,B,K),B=E.length,Q=1;else v==0&&(Q=v=1),E=De.slice(),B=E.length;if(B<a&&(E=[0].concat(E)),L(h,E,a,K),a=h.length,Q==-1)for(;S(De,h,re,a)<1;)v++,L(h,re<a?ke:De,a,K),a=h.length}else Q===0&&(v++,h=[0]);V[x++]=v,h[0]?h[a++]=qe[m]||0:(h=[qe[m]],a=1)}while((m++<I||h[0]!=null)&&He--);c=h[0]!=null,V[0]||V.splice(0,1)}if(K==g){for(x=1,He=V[0];He>=10;He/=10,x++);ve(z,ee+(z.e=x+ne*d-1)+1,oe,c)}else z.e=ne,z.r=+c;return z}}();function $e(y,S,L,te){var Y,ee,oe,K,Q;if(L==null?L=de:w(L,0,8),!y.c)return y.toString();if(Y=y.c[0],oe=y.e,S==null)Q=D(y.c),Q=te==1||te==2&&(oe<=xe||oe>=Ie)?W(Q,oe):J(Q,oe,"0");else if(y=ve(new fe(y),S,L),ee=y.e,Q=D(y.c),K=Q.length,te==1||te==2&&(S<=ee||ee<=xe)){for(;K<S;Q+="0",K++);Q=W(Q,ee)}else if(S-=oe,Q=J(Q,ee,"0"),ee+1>K){if(--S>0)for(Q+=".";S--;Q+="0");}else if(S+=ee-K,S>0)for(ee+1==K&&(Q+=".");S--;Q+="0");return y.s<0&&Y?"-"+Q:Q}function it(y,S){for(var L,te,Y=1,ee=new fe(y[0]);Y<y.length;Y++)te=new fe(y[Y]),(!te.s||(L=R(ee,te))===S||L===0&&ee.s===S)&&(ee=te);return ee}function ht(y,S,L){for(var te=1,Y=S.length;!S[--Y];S.pop());for(Y=S[0];Y>=10;Y/=10,te++);return(L=te+L*d-1)>Ye?y.c=y.e=null:L<Le?y.c=[y.e=0]:(y.e=L,y.c=S),y}se=function(){var y=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,L=/^\.([^.]+)$/,te=/^-?(Infinity|NaN)$/,Y=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(ee,oe,K,Q){var ne,x=K?oe:oe.replace(Y,"");if(te.test(x))ee.s=isNaN(x)?null:x<0?-1:1;else{if(!K&&(x=x.replace(y,function(c,v,E){return ne=(E=E.toLowerCase())=="x"?16:E=="b"?2:8,!Q||Q==ne?v:c}),Q&&(ne=Q,x=x.replace(S,"$1").replace(L,"0.$1")),oe!=x))return new fe(x,ne);if(fe.DEBUG)throw Error(o+"Not a"+(Q?" base "+Q:"")+" number: "+oe);ee.s=null}ee.c=ee.e=null}}();function ve(y,S,L,te){var Y,ee,oe,K,Q,ne,x,c=y.c,v=C;if(c){e:{for(Y=1,K=c[0];K>=10;K/=10,Y++);if(ee=S-Y,ee<0)ee+=d,oe=S,Q=c[ne=0],x=s(Q/v[Y-oe-1]%10);else if(ne=i((ee+1)/d),ne>=c.length)if(te){for(;c.length<=ne;c.push(0));Q=x=0,Y=1,ee%=d,oe=ee-d+1}else break e;else{for(Q=K=c[ne],Y=1;K>=10;K/=10,Y++);ee%=d,oe=ee-d+Y,x=oe<0?0:s(Q/v[Y-oe-1]%10)}if(te=te||S<0||c[ne+1]!=null||(oe<0?Q:Q%v[Y-oe-1]),te=L<4?(x||te)&&(L==0||L==(y.s<0?3:2)):x>5||x==5&&(L==4||te||L==6&&(ee>0?oe>0?Q/v[Y-oe]:0:c[ne-1])%10&1||L==(y.s<0?8:7)),S<1||!c[0])return c.length=0,te?(S-=y.e+1,c[0]=v[(d-S%d)%d],y.e=-S||0):c[0]=y.e=0,y;if(ee==0?(c.length=ne,K=1,ne--):(c.length=ne+1,K=v[d-ee],c[ne]=oe>0?s(Q/v[Y-oe]%v[oe])*K:0),te)for(;;)if(ne==0){for(ee=1,oe=c[0];oe>=10;oe/=10,ee++);for(oe=c[0]+=K,K=1;oe>=10;oe/=10,K++);ee!=K&&(y.e++,c[0]==g&&(c[0]=1));break}else{if(c[ne]+=K,c[ne]!=g)break;c[ne--]=0,K=1}for(ee=c.length;c[--ee]===0;c.pop());}y.e>Ye?y.c=y.e=null:y.e<Le&&(y.c=[y.e=0])}return y}function Ae(y){var S,L=y.e;return L===null?y.toString():(S=D(y.c),S=L<=xe||L>=Ie?W(S,L):J(S,L,"0"),y.s<0?"-"+S:S)}return $.absoluteValue=$.abs=function(){var y=new fe(this);return y.s<0&&(y.s=1),y},$.comparedTo=function(y,S){return R(this,new fe(y,S))},$.decimalPlaces=$.dp=function(y,S){var L,te,Y,ee=this;if(y!=null)return w(y,0,X),S==null?S=de:w(S,0,8),ve(new fe(ee),y+ee.e+1,S);if(!(L=ee.c))return null;if(te=((Y=L.length-1)-G(this.e/d))*d,Y=L[Y])for(;Y%10==0;Y/=10,te--);return te<0&&(te=0),te},$.dividedBy=$.div=function(y,S){return P(this,new fe(y,S),ae,de)},$.dividedToIntegerBy=$.idiv=function(y,S){return P(this,new fe(y,S),0,1)},$.exponentiatedBy=$.pow=function(y,S){var L,te,Y,ee,oe,K,Q,ne,x,c=this;if(y=new fe(y),y.c&&!y.isInteger())throw Error(o+"Exponent not an integer: "+Ae(y));if(S!=null&&(S=new fe(S)),K=y.e>14,!c.c||!c.c[0]||c.c[0]==1&&!c.e&&c.c.length==1||!y.c||!y.c[0])return x=new fe(Math.pow(+Ae(c),K?y.s*(2-T(y)):+Ae(y))),S?x.mod(S):x;if(Q=y.s<0,S){if(S.c?!S.c[0]:!S.s)return new fe(NaN);te=!Q&&c.isInteger()&&S.isInteger(),te&&(c=c.mod(S))}else{if(y.e>9&&(c.e>0||c.e<-1||(c.e==0?c.c[0]>1||K&&c.c[1]>=24e7:c.c[0]<8e13||K&&c.c[0]<=9999975e7)))return ee=c.s<0&&T(y)?-0:0,c.e>-1&&(ee=1/ee),new fe(Q?1/ee:ee);_e&&(ee=i(_e/d+2))}for(K?(L=new fe(.5),Q&&(y.s=1),ne=T(y)):(Y=Math.abs(+Ae(y)),ne=Y%2),x=new fe(he);;){if(ne){if(x=x.times(c),!x.c)break;ee?x.c.length>ee&&(x.c.length=ee):te&&(x=x.mod(S))}if(Y){if(Y=s(Y/2),Y===0)break;ne=Y%2}else if(y=y.times(L),ve(y,y.e+1,1),y.e>14)ne=T(y);else{if(Y=+Ae(y),Y===0)break;ne=Y%2}c=c.times(c),ee?c.c&&c.c.length>ee&&(c.c.length=ee):te&&(c=c.mod(S))}return te?x:(Q&&(x=he.div(x)),S?x.mod(S):ee?ve(x,_e,de,oe):x)},$.integerValue=function(y){var S=new fe(this);return y==null?y=de:w(y,0,8),ve(S,S.e+1,y)},$.isEqualTo=$.eq=function(y,S){return R(this,new fe(y,S))===0},$.isFinite=function(){return!!this.c},$.isGreaterThan=$.gt=function(y,S){return R(this,new fe(y,S))>0},$.isGreaterThanOrEqualTo=$.gte=function(y,S){return(S=R(this,new fe(y,S)))===1||S===0},$.isInteger=function(){return!!this.c&&G(this.e/d)>this.c.length-2},$.isLessThan=$.lt=function(y,S){return R(this,new fe(y,S))<0},$.isLessThanOrEqualTo=$.lte=function(y,S){return(S=R(this,new fe(y,S)))===-1||S===0},$.isNaN=function(){return!this.s},$.isNegative=function(){return this.s<0},$.isPositive=function(){return this.s>0},$.isZero=function(){return!!this.c&&this.c[0]==0},$.minus=function(y,S){var L,te,Y,ee,oe=this,K=oe.s;if(y=new fe(y,S),S=y.s,!K||!S)return new fe(NaN);if(K!=S)return y.s=-S,oe.plus(y);var Q=oe.e/d,ne=y.e/d,x=oe.c,c=y.c;if(!Q||!ne){if(!x||!c)return x?(y.s=-S,y):new fe(c?oe:NaN);if(!x[0]||!c[0])return c[0]?(y.s=-S,y):new fe(x[0]?oe:de==3?-0:0)}if(Q=G(Q),ne=G(ne),x=x.slice(),K=Q-ne){for((ee=K<0)?(K=-K,Y=x):(ne=Q,Y=c),Y.reverse(),S=K;S--;Y.push(0));Y.reverse()}else for(te=(ee=(K=x.length)<(S=c.length))?K:S,K=S=0;S<te;S++)if(x[S]!=c[S]){ee=x[S]<c[S];break}if(ee&&(Y=x,x=c,c=Y,y.s=-y.s),S=(te=c.length)-(L=x.length),S>0)for(;S--;x[L++]=0);for(S=g-1;te>K;){if(x[--te]<c[te]){for(L=te;L&&!x[--L];x[L]=S);--x[L],x[te]+=g}x[te]-=c[te]}for(;x[0]==0;x.splice(0,1),--ne);return x[0]?ht(y,x,ne):(y.s=de==3?-1:1,y.c=[y.e=0],y)},$.modulo=$.mod=function(y,S){var L,te,Y=this;return y=new fe(y,S),!Y.c||!y.s||y.c&&!y.c[0]?new fe(NaN):!y.c||Y.c&&!Y.c[0]?new fe(Y):(we==9?(te=y.s,y.s=1,L=P(Y,y,0,3),y.s=te,L.s*=te):L=P(Y,y,0,we),y=Y.minus(L.times(y)),!y.c[0]&&we==1&&(y.s=Y.s),y)},$.multipliedBy=$.times=function(y,S){var L,te,Y,ee,oe,K,Q,ne,x,c,v,E,B,z,V,h=this,a=h.c,f=(y=new fe(y,S)).c;
vendor: 6,608 bytes, lines 137-140
137if(!a||!f||!a[0]||!f[0])return!h.s||!y.s||a&&!a[0]&&!f||f&&!f[0]&&!a?y.c=y.e=y.s=null:(y.s*=h.s,!a||!f?y.c=y.e=null:(y.c=[0],y.e=0)),y;for(te=G(h.e/d)+G(y.e/d),y.s*=h.s,Q=a.length,c=f.length,Q<c&&(B=a,a=f,f=B,Y=Q,Q=c,c=Y),Y=Q+c,B=[];Y--;B.push(0));for(z=g,V=j,Y=c;--Y>=0;){for(L=0,v=f[Y]%V,E=f[Y]/V|0,oe=Q,ee=Y+oe;ee>Y;)ne=a[--oe]%V,x=a[oe]/V|0,K=E*ne+x*v,ne=v*ne+K%V*V+B[ee]+L,L=(ne/z|0)+(K/V|0)+E*x,B[ee--]=ne%z;B[ee]=L}return L?++te:B.splice(0,1),ht(y,B,te)},$.negated=function(){var y=new fe(this);return y.s=-y.s||null,y},$.plus=function(y,S){var L,te=this,Y=te.s;if(y=new fe(y,S),S=y.s,!Y||!S)return new fe(NaN);if(Y!=S)return y.s=-S,te.minus(y);var ee=te.e/d,oe=y.e/d,K=te.c,Q=y.c;if(!ee||!oe){if(!K||!Q)return new fe(Y/0);if(!K[0]||!Q[0])return Q[0]?y:new fe(K[0]?te:Y*0)}if(ee=G(ee),oe=G(oe),K=K.slice(),Y=ee-oe){for(Y>0?(oe=ee,L=Q):(Y=-Y,L=K),L.reverse();Y--;L.push(0));L.reverse()}for(Y=K.length,S=Q.length,Y-S<0&&(L=Q,Q=K,K=L,S=Y),Y=0;S;)Y=(K[--S]=K[S]+Q[S]+Y)/g|0,K[S]=g===K[S]?0:K[S]%g;return Y&&(K=[Y].concat(K),++oe),ht(y,K,oe)},$.precision=$.sd=function(y,S){var L,te,Y,ee=this;if(y!=null&&y!==!!y)return w(y,1,X),S==null?S=de:w(S,0,8),ve(new fe(ee),y,S);if(!(L=ee.c))return null;if(Y=L.length-1,te=Y*d+1,Y=L[Y]){for(;Y%10==0;Y/=10,te--);for(Y=L[0];Y>=10;Y/=10,te++);}return y&&ee.e+1>te&&(te=ee.e+1),te},$.shiftedBy=function(y){return w(y,-k,k),this.times("1e"+y)},$.squareRoot=$.sqrt=function(){var y,S,L,te,Y,ee=this,oe=ee.c,K=ee.s,Q=ee.e,ne=ae+4,x=new fe("0.5");if(K!==1||!oe||!oe[0])return new fe(!K||K<0&&(!oe||oe[0])?NaN:oe?ee:1/0);if(K=Math.sqrt(+Ae(ee)),K==0||K==1/0?(S=D(oe),(S.length+Q)%2==0&&(S+="0"),K=Math.sqrt(+S),Q=G((Q+1)/2)-(Q<0||Q%2),K==1/0?S="5e"+Q:(S=K.toExponential(),S=S.slice(0,S.indexOf("e")+1)+Q),L=new fe(S)):L=new fe(K+""),L.c[0]){for(Q=L.e,K=Q+ne,K<3&&(K=0);;)if(Y=L,L=x.times(Y.plus(P(ee,Y,ne,1))),D(Y.c).slice(0,K)===(S=D(L.c)).slice(0,K))if(L.e<Q&&--K,S=S.slice(K-3,K+1),S=="9999"||!te&&S=="4999"){if(!te&&(ve(Y,Y.e+ae+2,0),Y.times(Y).eq(ee))){L=Y;break}ne+=4,K+=4,te=1}else{(!+S||!+S.slice(1)&&S.charAt(0)=="5")&&(ve(L,L.e+ae+2,1),y=!L.times(L).eq(ee));break}}return ve(L,L.e+ae+1,de,y)},$.toExponential=function(y,S){return y!=null&&(w(y,0,X),y++),$e(this,y,S,1)},$.toFixed=function(y,S){return y!=null&&(w(y,0,X),y=y+this.e+1),$e(this,y,S)},$.toFormat=function(y,S,L){var te,Y=this;if(L==null)y!=null&&S&&typeof S=="object"?(L=S,S=null):y&&typeof y=="object"?(L=y,y=S=null):L=Be;else if(typeof L!="object")throw Error(o+"Argument not an object: "+L);if(te=Y.toFixed(y,S),Y.c){var ee,oe=te.split("."),K=+L.groupSize,Q=+L.secondaryGroupSize,ne=L.groupSeparator||"",x=oe[0],c=oe[1],v=Y.s<0,E=v?x.slice(1):x,B=E.length;if(Q&&(ee=K,K=Q,Q=ee,B-=ee),K>0&&B>0){for(ee=B%K||K,x=E.substr(0,ee);ee<B;ee+=K)x+=ne+E.substr(ee,K);Q>0&&(x+=ne+E.slice(ee)),v&&(x="-"+x)}te=c?x+(L.decimalSeparator||"")+((Q=+L.fractionGroupSize)?c.replace(new RegExp("\\d{"+Q+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):c):x}return(L.prefix||"")+te+(L.suffix||"")},$.toFraction=function(y){var S,L,te,Y,ee,oe,K,Q,ne,x,c,v,E=this,B=E.c;if(y!=null&&(K=new fe(y),!K.isInteger()&&(K.c||K.s!==1)||K.lt(he)))throw Error(o+"Argument "+(K.isInteger()?"out of range: ":"not an integer: ")+Ae(K));if(!B)return new fe(E);for(S=new fe(he),ne=L=new fe(he),te=Q=new fe(he),v=D(B),ee=S.e=v.length-E.e-1,S.c[0]=C[(oe=ee%d)<0?d+oe:oe],y=!y||K.comparedTo(S)>0?ee>0?S:ne:K,oe=Ye,Ye=1/0,K=new fe(v),Q.c[0]=0;x=P(K,S,0,1),Y=L.plus(x.times(te)),Y.comparedTo(y)!=1;)L=te,te=Y,ne=Q.plus(x.times(Y=ne)),Q=Y,S=K.minus(x.times(Y=S)),K=Y;return Y=P(y.minus(L),te,0,1),Q=Q.plus(Y.times(ne)),L=L.plus(Y.times(te)),Q.s=ne.s=E.s,ee=ee*2,c=P(ne,te,ee,de).minus(E).abs().comparedTo(P(Q,L,ee,de).minus(E).abs())<1?[ne,te]:[Q,L],Ye=oe,c},$.toNumber=function(){return+Ae(this)},$.toPrecision=function(y,S){return y!=null&&w(y,1,X),$e(this,y,S,2)},$.toString=function(y){var S,L=this,te=L.s,Y=L.e;return Y===null?te?(S="Infinity",te<0&&(S="-"+S)):S="NaN":(y==null?S=Y<=xe||Y>=Ie?W(D(L.c),Y):J(D(L.c),Y,"0"):y===10&&Te?(L=ve(new fe(L),ae+Y+1,de),S=J(D(L.c),L.e,"0")):(w(y,2,Re.length,"Base"),S=M(J(D(L.c),Y,"0"),10,y,te,!0)),te<0&&L.c[0]&&(S="-"+S)),S},$.valueOf=$.toJSON=function(){return Ae(this)},$._isBigNumber=!0,A!=null&&fe.set(A),fe}function G(A){var P=A|0;return A>0||A===P?P:P-1}function D(A){for(var P,M,se=1,$=A.length,he=A[0]+"";se<$;){for(P=A[se++]+"",M=d-P.length;M--;P="0"+P);he+=P}for($=he.length;he.charCodeAt(--$)===48;);return he.slice(0,$+1||1)}function R(A,P){var M,se,$=A.c,he=P.c,ae=A.s,de=P.s,xe=A.e,Ie=P.e;if(!ae||!de)return null;if(M=$&&!$[0],se=he&&!he[0],M||se)return M?se?0:-de:ae;if(ae!=de)return ae;if(M=ae<0,se=xe==Ie,!$||!he)return se?0:!$^M?1:-1;if(!se)return xe>Ie^M?1:-1;for(de=(xe=$.length)<(Ie=he.length)?xe:Ie,ae=0;ae<de;ae++)if($[ae]!=he[ae])return $[ae]>he[ae]^M?1:-1;return xe==Ie?0:xe>Ie^M?1:-1}function w(A,P,M,se){if(A<P||A>M||A!==s(A))throw Error(o+(se||"Argument")+(typeof A=="number"?A<P||A>M?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function T(A){var P=A.c.length-1;return G(A.e/d)==P&&A.c[P]%2!=0}function W(A,P){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(P<0?"e":"e+")+P}function J(A,P,M){var se,$;if(P<0){for($=M+".";++P;$+=M);A=$+A}else if(se=A.length,++P>se){for($=M,P-=se;--P;$+=M);A+=$}else P<se&&(A=A.slice(0,P)+"."+A.slice(P));return A}r=H(),r.default=r.BigNumber=r,t.exports?t.exports=r:(e||(e=typeof self<"u"&&self?self:window),e.BigNumber=r)})(da)})(cg);var dg=cg.exports;(function(t){var e=dg,r=t.exports;(function(){var n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},l;function g(k){return n.lastIndex=0,n.test(k)?'"'+k.replace(n,function(C){var j=o[C];return typeof j=="string"?j:"\\u"+("0000"+C.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function d(k,C){var j,X,H,G,D=i,R,w=C[k],T=w!=null&&(w instanceof e||e.isBigNumber(w));switch(w&&typeof w=="object"&&typeof w.toJSON=="function"&&(w=w.toJSON(k)),typeof l=="function"&&(w=l.call(C,k,w)),typeof w){case"string":return T?w:g(w);case"number":return isFinite(w)?String(w):"null";case"boolean":case"null":case"bigint":return String(w);case"object":if(!w)return"null";if(i+=s,R=[],Object.prototype.toString.apply(w)==="[object Array]"){for(G=w.length,j=0;j<G;j+=1)R[j]=d(j,w)||"null";return H=R.length===0?"[]":i?`[ 138`+i+R.join(`, 139`+i)+` 140`+D+"]":"["+R.join(",")+"]",i=D,H}if(l&&typeof l=="object")for(G=l.length,j=0;j<G;j+=1)typeof l[j]=="string"&&(X=l[j],H=d(X,w),H&&R.push(g(X)+(i?": ":":")+H));
140else Object.keys(w).forEach(function(W){var J=d(W,w);J&&R.push(g(W)+(i?": ":":")+J)});return H=R.length===0?"{}":i?`{ 141`+i+R.join(`, 142`+i)+` 143`+D+"}":"{"+R.join(",")+"}",i=D,H}}typeof r.stringify!="function"&&(r.stringify=function(k,C,j){var X;if(i="",s="",typeof j=="number")for(X=0;X<j;X+=1)s+=" ";else typeof j=="string"&&(s=j);if(l=C,C&&typeof C!="function"&&(typeof C!="object"||typeof C.length!="number"))throw new Error("JSON.stringify");return d("",{"":k})})})()})(fg);var Lx=fg.exports,_o=null;const $x=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,Ox=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var Mx=function(t){var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` 144`,r:"\r",t:" "},s,o=function(G){throw{name:"SyntaxError",message:G,at:r,text:s}},l=function(G){return G&&G!==n&&o("Expected '"+G+"' instead of '"+n+"'"),n=s.charAt(r),r+=1,n},g=function(){var G,D="";for(n==="-"&&(D="-",l("-"));n>="0"&&n<="9";)D+=n,l();if(n===".")for(D+=".";l()&&n>="0"&&n<="9";)D+=n;if(n==="e"||n==="E")for(D+=n,l(),(n==="-"||n==="+")&&(D+=n,l());n>="0"&&n<="9";)D+=n,l();if(G=+D,!isFinite(G))o("Bad number");else return _o==null&&(_o=dg),D.length>15?e.storeAsString?D:e.useNativeBigInt?BigInt(D):new _o(D):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(G):new _o(G):G},d=function(){var G,D,R="",w;if(n==='"')for(var T=r;l();){if(n==='"')return r-1>T&&(R+=s.substring(T,r-1)),l(),R;if(n==="\\"){if(r-1>T&&(R+=s.substring(T,r-1)),l(),n==="u"){for(w=0,D=0;D<4&&(G=parseInt(l(),16),!!isFinite(G));D+=1)w=w*16+G;R+=String.fromCharCode(w)}else if(typeof i[n]=="string")R+=i[n];else break;T=r}}o("Bad string")},k=function(){for(;n&&n<=" ";)l()},C=function(){switch(n){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}o("Unexpected '"+n+"'")},j,X=function(){var G=[];if(n==="["){if(l("["),k(),n==="]")return l("]"),G;for(;n;){if(G.push(j()),k(),n==="]")return l("]"),G;l(","),k()}}o("Bad array")},H=function(){var G,D=Object.create(null);if(n==="{"){if(l("{"),k(),n==="}")return l("}"),D;for(;n;){if(G=d(),k(),l(":"),e.strict===!0&&Object.hasOwnProperty.call(D,G)&&o('Duplicate key "'+G+'"'),$x.test(G)===!0?e.protoAction==="error"?o("Object contains forbidden prototype property"):e.protoAction==="ignore"?j():D[G]=j():Ox.test(G)===!0?e.constructorAction==="error"?o("Object contains forbidden constructor property"):e.constructorAction==="ignore"?j():D[G]=j():D[G]=j(),k(),n==="}")return l("}"),D;l(","),k()}}o("Bad object")};return j=function(){switch(k(),n){case"{":return H();case"[":return X();case'"':return d();case"-":return g();default:return n>="0"&&n<="9"?g():C()}},function(G,D){var R;return s=G+"",r=0,n=" ",R=j(),k(),n&&o("Syntax error"),typeof D=="function"?function w(T,W){var J,A=T[W];return A&&typeof A=="object"&&Object.keys(A).forEach(function(P){J=w(A,P),J!==void 0?A[P]=J:delete A[P]}),D.call(T,W,A)}({"":R},""):R}},qx=Mx,hg=Lx.stringify,pg=qx;Ia.exports=function(t){return{parse:pg(t),stringify:hg}};Ia.exports.parse=pg();Ia.exports.stringify=hg;var zx=Ia.exports;const Hx=ha(zx);var Af;(function(t){t.DEFAULT="default",t.SAFE="safe",t.MIXED="mixed",t.BIGINT="bigint"})(Af||(Af={}));const Ca=Af,Kx=Hx({useNativeBigInt:!0,strict:!0});function Vx(t,e){const r=e&&e.intDecoding?e.intDecoding:Ca.DEFAULT;return Kx.parse(t,(n,i)=>{if(i!=null&&typeof i=="object"&&Object.getPrototypeOf(i)==null&&Object.setPrototypeOf(i,Object.prototype),typeof i=="bigint"){if(r==="safe"&&i>Number.MAX_SAFE_INTEGER)throw new Error(`Integer exceeds maximum safe integer: ${i.toString()}. Try parsing with a different intDecoding option.`);return r==="bigint"||r==="mixed"&&i>Number.MAX_SAFE_INTEGER?i:Number(i)}return typeof i=="number"&&r==="bigint"&&Number.isInteger(i)?BigInt(i):i})}function oa(t,e){return t.length!==e.length?!1:Array.from(t).every((r,n)=>r===e[n])}function Ht(...t){const e=t.reduce((i,s)=>
144i+s.length,0),r=new Uint8Array(e);let n=0;for(let i=0;i<t.length;i++)r.set(t[i],n),n+=t[i].length;return r}function Gx(t){const e={...t};return Object.keys(e).forEach(r=>{typeof e[r]>"u"&&delete e[r]}),e}function Wx(){const{navigator:t}=globalThis;return typeof t=="object"&&t.product==="ReactNative"}function Zr(t){return Px.sha512_256.array(t)}function Yx(t){return Wx()&&console.warn("It looks like you're running in react-native. In order to perform common crypto operations you will need to polyfill common operations such as crypto.getRandomValues"),en.randomBytes(t)}function gg(t){return en.sign.keyPair.fromSeed(t)}function Xx(){const t=Yx(en.box.secretKeyLength);return gg(t)}function mg(t){return t===en.sign.signatureLength}function Ks(t){return en.sign.keyPair.fromSecretKey(t)}function Vs(t,e){return en.sign.detached(t,e)}function yg(t,e){return en.verify(t,e)}function ja(t,e,r){return en.sign.detached.verify(t,e,r)}const aa=en.sign.publicKeyLength;en.sign.secretKeyLength;const Th=32,Ef=32;var xg={exports:{}};/* 145 * [hi-base32]{@link https://github.com/emn178/hi-base32} 146 * 147 * @version 0.5.0 148 * @author Chen, Yi-Cyuan [[email protected]] 149 * @copyright Chen, Yi-Cyuan 2015-2018 150 * @license MIT 151 */(function(t){(function(){var e=typeof window=="object"?window:{},r=!e.HI_BASE32_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;r&&(e=da);var n=!e.HI_BASE32_NO_COMMON_JS&&!0&&t.exports,i="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),s={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},o=[0,0,0,0,0,0,0,0],l=function(D,R){R.length>10&&(R="..."+R.substr(-10));var w=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+D+" bytes: "+R+" <-");throw w.position=D,w},g=function(D){for(var R="",w=D.length,T=0,W=0,J,A;T<w;){if(J=D[T++],J<=127){R+=String.fromCharCode(J);continue}else J>191&&J<=223?(A=J&31,W=1):J<=239?(A=J&15,W=2):J<=247?(A=J&7,W=3):l(T,R);for(var P=0;P<W;++P)J=D[T++],(J<128||J>191)&&l(T,R),A<<=6,A+=J&63;A>=55296&&A<=57343&&l(T,R),A>1114111&&l(T,R),A<=65535?R+=String.fromCharCode(A):(A-=65536,R+=String.fromCharCode((A>>10)+55296),R+=String.fromCharCode((A&1023)+56320))}return R},d=function(D){if(D==="")return[];if(!/^[A-Z2-7=]+$/.test(D))throw new Error("Invalid base32 characters");D=D.replace(/=/g,"");for(var R,w,T,W,J,A,P,M,se=[],$=0,he=D.length,ae=0,de=he>>3<<3;ae<de;)R=s[D.charAt(ae++)],w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],A=s[D.charAt(ae++)],P=s[D.charAt(ae++)],M=s[D.charAt(ae++)],se[$++]=(R<<3|w>>>2)&255,se[$++]=(w<<6|T<<1|W>>>4)&255,se[$++]=(W<<4|J>>>1)&255,se[$++]=(J<<7|A<<2|P>>>3)&255,se[$++]=(P<<5|M)&255;var xe=he-de;return xe===2?(R=s[D.charAt(ae++)],w=s[D.charAt(ae++)],se[$++]=(R<<3|w>>>2)&255):xe===4?(R=s[D.charAt(ae++)],w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],se[$++]=(R<<3|w>>>2)&255,se[$++]=(w<<6|T<<1|W>>>4)&255):xe===5?(R=s[D.charAt(ae++)],w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],se[$++]=(R<<3|w>>>2)&255,se[$++]=(w<<6|T<<1|W>>>4)&255,se[$++]=(W<<4|J>>>1)&255):xe===7&&(R=s[D.charAt(ae++)],w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],A=s[D.charAt(ae++)],P=s[D.charAt(ae++)],se[$++]=(R<<3|w>>>2)&255,se[$++]=(w<<6|T<<1|W>>>4)&255,se[$++]=(W<<4|J>>>1)&255,se[$++]=(J<<7|A<<2|P>>>3)&255),se},k=function(D){for(var R,w,T,W,J,A="",P=D.length,M=0,se=parseInt(P/5)*5;M<se;)R=D.charCodeAt(M++),w=D.charCodeAt(M++),T=D.charCodeAt(M++),W=D.charCodeAt(M++),J=D.charCodeAt(M++),A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[(W<<3|J>>>5)&31]+i[J&31];var $=P-se;return $===1?(R=D.charCodeAt(M),A+=i[R>>>3]+i[R<<2&31]+"======"):$===2?(R=D.charCodeAt(M++),w=D.charCodeAt(M),A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[w<<4&31]+"===="):$===3?(R=D.charCodeAt(M++),w=D.charCodeAt(M++),T=D.charCodeAt(M),A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>
1514)&31]+i[T<<1&31]+"==="):$===4&&(R=D.charCodeAt(M++),w=D.charCodeAt(M++),T=D.charCodeAt(M++),W=D.charCodeAt(M),A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[W<<3&31]+"="),A},C=function(D){var R,w,T,W,J,A,P=!1,M="",se=0,$,he=0,ae=D.length;if(D==="")return M;do{for(o[0]=o[5],o[1]=o[6],o[2]=o[7],$=he;se<ae&&$<5;++se)A=D.charCodeAt(se),A<128?o[$++]=A:A<2048?(o[$++]=192|A>>6,o[$++]=128|A&63):A<55296||A>=57344?(o[$++]=224|A>>12,o[$++]=128|A>>6&63,o[$++]=128|A&63):(A=65536+((A&1023)<<10|D.charCodeAt(++se)&1023),o[$++]=240|A>>18,o[$++]=128|A>>12&63,o[$++]=128|A>>6&63,o[$++]=128|A&63);he=$-5,se===ae&&++se,se>ae&&$<6&&(P=!0),R=o[0],$>4?(w=o[1],T=o[2],W=o[3],J=o[4],M+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[(W<<3|J>>>5)&31]+i[J&31]):$===1?M+=i[R>>>3]+i[R<<2&31]+"======":$===2?(w=o[1],M+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[w<<4&31]+"===="):$===3?(w=o[1],T=o[2],M+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[T<<1&31]+"==="):(w=o[1],T=o[2],W=o[3],M+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[W<<3&31]+"=")}while(!P);return M},j=function(D){for(var R,w,T,W,J,A="",P=D.length,M=0,se=parseInt(P/5)*5;M<se;)R=D[M++],w=D[M++],T=D[M++],W=D[M++],J=D[M++],A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[(W<<3|J>>>5)&31]+i[J&31];var $=P-se;return $===1?(R=D[M],A+=i[R>>>3]+i[R<<2&31]+"======"):$===2?(R=D[M++],w=D[M],A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[w<<4&31]+"===="):$===3?(R=D[M++],w=D[M++],T=D[M],A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[T<<1&31]+"==="):$===4&&(R=D[M++],w=D[M++],T=D[M++],W=D[M],A+=i[R>>>3]+i[(R<<2|w>>>6)&31]+i[w>>>1&31]+i[(w<<4|T>>>4)&31]+i[(T<<1|W>>>7)&31]+i[W>>>2&31]+i[W<<3&31]+"="),A},X=function(D,R){var w=typeof D!="string";return w&&D.constructor===ArrayBuffer&&(D=new Uint8Array(D)),w?j(D):R?k(D):C(D)},H=function(D,R){if(!R)return g(d(D));if(D==="")return"";if(!/^[A-Z2-7=]+$/.test(D))throw new Error("Invalid base32 characters");var w,T,W,J,A,P,M,se,$="",he=D.indexOf("=");he===-1&&(he=D.length);for(var ae=0,de=he>>3<<3;ae<de;)w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],A=s[D.charAt(ae++)],P=s[D.charAt(ae++)],M=s[D.charAt(ae++)],se=s[D.charAt(ae++)],$+=String.fromCharCode((w<<3|T>>>2)&255)+String.fromCharCode((T<<6|W<<1|J>>>4)&255)+String.fromCharCode((J<<4|A>>>1)&255)+String.fromCharCode((A<<7|P<<2|M>>>3)&255)+String.fromCharCode((M<<5|se)&255);var xe=he-de;return xe===2?(w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],$+=String.fromCharCode((w<<3|T>>>2)&255)):xe===4?(w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],$+=String.fromCharCode((w<<3|T>>>2)&255)+String.fromCharCode((T<<6|W<<1|J>>>4)&255)):xe===5?(w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],A=s[D.charAt(ae++)],$+=String.fromCharCode((w<<3|T>>>2)&255)+String.fromCharCode((T<<6|W<<1|J>>>4)&255)+String.fromCharCode((J<<4|A>>>1)&255)):xe===7&&(w=s[D.charAt(ae++)],T=s[D.charAt(ae++)],W=s[D.charAt(ae++)],J=s[D.charAt(ae++)],A=s[D.charAt(ae++)],P=s[D.charAt(ae++)],M=s[D.charAt(ae++)],$+=String.fromCharCode((w<<3|T>>>2)&255)+String.fromCharCode((T<<6|W<<1|J>>>4)&255)+String.fromCharCode((J<<4|A>>>1)&255)+String.fromCharCode((A<<7|P<<2|M>>>3)&255)),$},G={encode:X,decode:H};H.asBytes=d,n?t.exports=G:e.base32=G})()})(xg);var Qx=xg.exports;const Fc=ha(Qx);function wg(t){if(!(typeof t=="bigint"||Number.isInteger(t))||t<0||t>BigInt("0xffffffffffffffff"))throw new Error("Input is not a 64-bit unsigned integer");const r=new Uint8Array(8);return new DataView(r.buffer).setBigUint64(0,BigInt(t)),r}function Jx(t,e="safe"){if(e!=="safe"&&e!=="mixed"&&e!=="bigint")throw new Error(`Unknown decodingMode option: ${e}`);if(t.byteLength===0||t.byteLength>8)throw new Error(`Data has unacceptable length. Expected length is between 1 and 8, got ${t.byteLength}`);const r=new Uint8Array(8-t.byteLength),n=Ht(r,t),s=new DataView(n.buffer).getBigUint64(0),o=s>BigInt(Number.MAX_SAFE_INTEGER);if(e==="safe"){if(o)throw new Error(`Integer exceeds maximum safe integer: ${s.toString()}. Try decoding with "mixed" or "safe" decodingMode.`);return Number(s)}
151return e==="mixed"&&!o?Number(s):s}const Uo=36,la=4,vg=58,Zx="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ",ts=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),ew=O.Buffer.from("appID"),Ih="address seems to be malformed",tw="wrong checksum for address",rw="invalid multisig version",nw="bad multisig threshold",iw="bad multisig public key - wrong length",sw="nacl public key length is not 32 bytes";function rt(t){if(typeof t!="string"||t.length!==vg)throw new Error(Ih);const e=Fc.decode.asBytes(t.toString());if(e.length!==Uo)throw new Error(Ih);const r=new Uint8Array(e.slice(0,Uo-la)),n=new Uint8Array(e.slice(aa,Uo)),i=Zr(r).slice(Th-la,Th);if(!oa(i,n))throw new Error(tw);return{publicKey:r,checksum:n}}function bg(t){try{rt(t)}catch{return!1}return!0}function Xe(t){const e=Zr(t).slice(aa-la,aa);return Fc.encode(Ht(t,e)).toString().slice(0,vg)}function Nn({version:t,threshold:e,pks:r}){if(t!==1||t>255||t<0)throw new Error(rw);if(e===0||r.length===0||e>r.length||e>255)throw new Error(nw);const n=Uo-la;if(n!==aa)throw new Error(sw);const i=new Uint8Array(ts.length+2+n*r.length);i.set(ts,0),i.set([t],ts.length),i.set([e],ts.length+1);for(let s=0;s<r.length;s++){if(r[s].length!==n)throw new Error(iw);i.set(r[s],ts.length+2+s*n)}return new Uint8Array(Zr(i))}function _g({version:t,threshold:e,addrs:r}){const n=r.map(i=>rt(i).publicKey);return Xe(Nn({version:t,threshold:e,pks:n}))}function Ff(t){const e=Ht(ew,wg(t)),r=Zr(e);return Xe(new Uint8Array(r))}var Ag={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(da,function(){return function(r){var n={};function i(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=r,i.c=n,i.d=function(s,o,l){i.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:l})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,o){if(1&o&&(s=i(s)),8&o||4&o&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&o&&typeof s!="string")for(var g in s)i.d(l,g,(function(d){return s[d]}).bind(null,g));return l},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s=0)}([function(r,n,i){i.r(n),i.d(n,"encode",function(){return xe}),i.d(n,"decode",function(){return Ae}),i.d(n,"decodeAsync",function(){return K}),i.d(n,"decodeArrayStream",function(){return Q}),i.d(n,"decodeStream",function(){return ne}),i.d(n,"Decoder",function(){return ht}),i.d(n,"Encoder",function(){return ae}),i.d(n,"ExtensionCodec",function(){return se}),i.d(n,"ExtData",function(){return G}),i.d(n,"EXT_TIMESTAMP",function(){return w}),i.d(n,"encodeDateToTimeSpec",function(){return W}),i.d(n,"encodeTimeSpecToTimestamp",function(){return T}),i.d(n,"decodeTimestampToTimeSpec",function(){return A}),i.d(n,"encodeTimestampExtension",function(){return J}),i.d(n,"decodeTimestampExtension",function(){return P});var s=function(x,c){var v=typeof Symbol=="function"&&x[Symbol.iterator];if(!v)return x;var E,B,z=v.call(x),V=[];try{for(;(c===void 0||c-- >0)&&!(E=z.next()).done;)V.push(E.value)}catch(h){B={error:h}}finally{try{E&&!E.done&&(v=z.return)&&v.call(z)}finally{if(B)throw B.error}}return V},o=function(){for(var x=[],c=0;c<arguments.length;c++)x=x.concat(s(arguments[c]));return x},l=typeof process<"u"&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function g(x){for(var c=x.length,v=0,E=0;E<c;){var B=x.charCodeAt(E++);if(4294967168&B)if(!(4294965248&B))v+=2;else{if(B>=55296&&B<=56319&&E<c){var z=x.charCodeAt(E);(64512&z)==56320&&(++E,B=((1023&B)<<10)+(1023&z)+65536)}v+=4294901760&B?4:3}else v++}return v}var d=l?new TextEncoder:void 0,k=typeof process<"u"?200:0,C=d!=null&&d.encodeInto?function(x,c,v){d.encodeInto(x,c.subarray(v))}:function(x,c,v){c.set(d.encode(x),v)};function j(x,c,v){for(var E=c,B=E+v,z=[],V="";E<B;){var h=x[E++];if(!(128&h))z.push(h);else if((224&h)==192){var a=63&x[E++];z.push((31&h)<<6|a)}else if((240&h)==224){a=63&x[E++];var f=63&x[E++];z.push((31&h)<<12|a<<6|f)}else if((248&h)==240){var m=(7&h)<<18|(a=63&x[E++])<<12|(f=63&x[E++])<<6|63&x[E++];m>65535&&(m-=65536,z.push(m>>>10&1023|55296),m=56320|1023&m),z.push(m)}else z.push(h);z.length>=4096&&(V+=String.fromCharCode.apply(String,o(z)),z.length=0)}return z.length>0&&(V+=String.fromCharCode.apply(String,o(z))),V}var X=l?new TextDecoder:null,H=typeof process<"u"?200:0,G=function(x,c){this.type=x,this.data=c};function D(x,c,v){var E=Math.floor(v/4294967296),B=v;x.setUint32(c,E),x.setUint32(c+4,B)}
151function R(x,c){var v=x.getInt32(c),E=x.getUint32(c+4),B=v<Math.floor(Number.MIN_SAFE_INTEGER/4294967296)||v===Math.floor(Number.MIN_SAFE_INTEGER/4294967296)&&E===0,z=v>Math.floor(Number.MAX_SAFE_INTEGER/4294967296);return B||z?BigInt(v)*BigInt(4294967296)+BigInt(E):4294967296*v+E}var w=-1;function T(x){var c=x.sec,v=x.nsec;if(c>=0&&v>=0&&c<=17179869183){if(v===0&&c<=4294967295){var E=new Uint8Array(4);return(V=new DataView(E.buffer)).setUint32(0,c),E}var B=c/4294967296,z=4294967295&c;return E=new Uint8Array(8),(V=new DataView(E.buffer)).setUint32(0,v<<2|3&B),V.setUint32(4,z),E}var V;return E=new Uint8Array(12),(V=new DataView(E.buffer)).setUint32(0,v),D(V,4,c),E}function W(x){var c=x.getTime(),v=Math.floor(c/1e3),E=1e6*(c-1e3*v),B=Math.floor(E/1e9);return{sec:v+B,nsec:E-1e9*B}}function J(x){return x instanceof Date?T(W(x)):null}function A(x){var c=new DataView(x.buffer,x.byteOffset,x.byteLength);switch(x.byteLength){case 4:return{sec:c.getUint32(0),nsec:0};case 8:var v=c.getUint32(0);return{sec:4294967296*(3&v)+c.getUint32(4),nsec:v>>>2};case 12:return{sec:R(c,4),nsec:c.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+x.length)}}function P(x){var c=A(x);return new Date(1e3*c.sec+c.nsec/1e6)}var M={type:w,encode:J,decode:P},se=function(){function x(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(M)}return x.prototype.register=function(c){var v=c.type,E=c.encode,B=c.decode;if(v>=0)this.encoders[v]=E,this.decoders[v]=B;else{var z=1+v;this.builtInEncoders[z]=E,this.builtInDecoders[z]=B}},x.prototype.tryToEncode=function(c,v){for(var E=0;E<this.builtInEncoders.length;E++)if((B=this.builtInEncoders[E])!=null&&(z=B(c,v))!=null)return new G(-1-E,z);for(E=0;E<this.encoders.length;E++){var B,z;if((B=this.encoders[E])!=null&&(z=B(c,v))!=null)return new G(E,z)}return c instanceof G?c:null},x.prototype.decode=function(c,v,E){var B=v<0?this.builtInDecoders[-1-v]:this.decoders[v];return B?B(c,v,E):new G(v,c)},x.defaultCodec=new x,x}();function $(x){return x instanceof Uint8Array?x:ArrayBuffer.isView(x)?new Uint8Array(x.buffer,x.byteOffset,x.byteLength):x instanceof ArrayBuffer?new Uint8Array(x):Uint8Array.from(x)}var he=function(x){var c=typeof Symbol=="function"&&Symbol.iterator,v=c&&x[c],E=0;if(v)return v.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&E>=x.length&&(x=void 0),{value:x&&x[E++],done:!x}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},ae=function(){function x(c,v,E,B,z,V,h,a){c===void 0&&(c=se.defaultCodec),v===void 0&&(v=void 0),E===void 0&&(E=100),B===void 0&&(B=2048),z===void 0&&(z=!1),V===void 0&&(V=!1),h===void 0&&(h=!1),a===void 0&&(a=!1),this.extensionCodec=c,this.context=v,this.maxDepth=E,this.initialBufferSize=B,this.sortKeys=z,this.forceFloat32=V,this.ignoreUndefined=h,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return x.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},x.prototype.reinitializeState=function(){this.pos=0},x.prototype.encode=function(c){return this.reinitializeState(),this.doEncode(c,1),this.getUint8Array()},x.prototype.doEncode=function(c,v){if(v>this.maxDepth)throw new Error("Too deep objects in depth "+v);c==null?this.encodeNil():typeof c=="boolean"?this.encodeBoolean(c):typeof c=="number"?this.encodeNumber(c):typeof c=="string"?this.encodeString(c):typeof c=="bigint"?this.encodebigint(c):this.encodeObject(c,v)},x.prototype.ensureBufferSizeToWrite=function(c){var v=this.pos+c;this.view.byteLength<v&&this.resizeBuffer(2*v)},x.prototype.resizeBuffer=function(c){var v=new ArrayBuffer(c),E=new Uint8Array(v),B=new DataView(v);E.set(this.bytes),this.view=B,this.bytes=E},x.prototype.encodeNil=function(){this.writeU8(192)},x.prototype.encodeBoolean=function(c){c===!1?this.writeU8(194):this.writeU8(195)},x.prototype.encodeNumber=function(c){Number.isSafeInteger(c)&&!this.forceIntegerToFloat?c>=0?c<128?this.writeU8(c):c<256?(this.writeU8(204),this.writeU8(c)):c<65536?(this.writeU8(205),this.writeU16(c)):c<4294967296?(this.writeU8(206),this.writeU32(c)):(this.writeU8(207),this.writeU64(c)):c>=-32?this.writeU8(224|c+32):c>=-128?(this.writeU8(208),this.writeI8(c)):c>
151=-32768?(this.writeU8(209),this.writeI16(c)):c>=-2147483648?(this.writeU8(210),this.writeI32(c)):(this.writeU8(211),this.writeI64(c)):this.forceFloat32?(this.writeU8(202),this.writeF32(c)):(this.writeU8(203),this.writeF64(c))},x.prototype.encodebigint=function(c){c>=BigInt(0)?c<BigInt(128)?this.writeU8(Number(c)):c<BigInt(256)?(this.writeU8(204),this.writeU8(Number(c))):c<BigInt(65536)?(this.writeU8(205),this.writeU16(Number(c))):c<BigInt(4294967296)?(this.writeU8(206),this.writeU32(Number(c))):(this.writeU8(207),this.writeBig64(c)):c>=BigInt(-32)?this.writeU8(224|Number(c)+32):c>=BigInt(-128)?(this.writeU8(208),this.writeI8(Number(c))):c>=BigInt(-32768)?(this.writeU8(209),this.writeI16(Number(c))):c>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(Number(c))):(this.writeU8(211),this.writeBig64(c))},x.prototype.writeStringHeader=function(c){if(c<32)this.writeU8(160+c);else if(c<256)this.writeU8(217),this.writeU8(c);else if(c<65536)this.writeU8(218),this.writeU16(c);else{if(!(c<4294967296))throw new Error("Too long string: "+c+" bytes in UTF-8");this.writeU8(219),this.writeU32(c)}},x.prototype.encodeString=function(c){var v=c.length;if(l&&v>k){var E=g(c);this.ensureBufferSizeToWrite(5+E),this.writeStringHeader(E),C(c,this.bytes,this.pos),this.pos+=E}else E=g(c),this.ensureBufferSizeToWrite(5+E),this.writeStringHeader(E),function(B,z,V){for(var h=B.length,a=V,f=0;f<h;){var m=B.charCodeAt(f++);if(4294967168&m){if(!(4294965248&m))z[a++]=m>>6&31|192;else{if(m>=55296&&m<=56319&&f<h){var I=B.charCodeAt(f);(64512&I)==56320&&(++f,m=((1023&m)<<10)+(1023&I)+65536)}4294901760&m?(z[a++]=m>>18&7|240,z[a++]=m>>12&63|128,z[a++]=m>>6&63|128):(z[a++]=m>>12&15|224,z[a++]=m>>6&63|128)}z[a++]=63&m|128}else z[a++]=m}}(c,this.bytes,this.pos),this.pos+=E},x.prototype.encodeObject=function(c,v){var E=this.extensionCodec.tryToEncode(c,this.context);if(E!=null)this.encodeExtension(E);else if(Array.isArray(c))this.encodeArray(c,v);else if(ArrayBuffer.isView(c))this.encodeBinary(c);else{if(typeof c!="object")throw new Error("Unrecognized object: "+Object.prototype.toString.apply(c));this.encodeMap(c,v)}},x.prototype.encodeBinary=function(c){var v=c.byteLength;if(v<256)this.writeU8(196),this.writeU8(v);else if(v<65536)this.writeU8(197),this.writeU16(v);else{if(!(v<4294967296))throw new Error("Too large binary: "+v);this.writeU8(198),this.writeU32(v)}var E=$(c);this.writeU8a(E)},x.prototype.encodeArray=function(c,v){var E,B,z=c.length;if(z<16)this.writeU8(144+z);else if(z<65536)this.writeU8(220),this.writeU16(z);else{if(!(z<4294967296))throw new Error("Too large array: "+z);this.writeU8(221),this.writeU32(z)}try{for(var V=he(c),h=V.next();!h.done;h=V.next()){var a=h.value;this.doEncode(a,v+1)}}catch(f){E={error:f}}finally{try{h&&!h.done&&(B=V.return)&&B.call(V)}finally{if(E)throw E.error}}},x.prototype.countWithoutUndefined=function(c,v){var E,B,z=0;try{for(var V=he(v),h=V.next();!h.done;h=V.next())c[h.value]!==void 0&&z++}catch(a){E={error:a}}finally{try{h&&!h.done&&(B=V.return)&&B.call(V)}finally{if(E)throw E.error}}return z},x.prototype.encodeMap=function(c,v){var E,B,z=Object.keys(c);this.sortKeys&&z.sort();var V=this.ignoreUndefined?this.countWithoutUndefined(c,z):z.length;if(V<16)this.writeU8(128+V);else if(V<65536)this.writeU8(222),this.writeU16(V);else{if(!(V<4294967296))throw new Error("Too large map object: "+V);this.writeU8(223),this.writeU32(V)}try{for(var h=he(z),a=h.next();!a.done;a=h.next()){var f=a.value,m=c[f];this.ignoreUndefined&&m===void 0||(this.encodeString(f),this.doEncode(m,v+1))}}catch(I){E={error:I}}finally{try{a&&!a.done&&(B=h.return)&&B.call(h)}finally{if(E)throw E.error}}},x.prototype.encodeExtension=function(c){var v=c.data.length;if(v===1)this.writeU8(212);else if(v===2)this.writeU8(213);else if(v===4)this.writeU8(214);else if(v===8)this.writeU8(215);else if(v===16)this.writeU8(216);else if(v<256)this.writeU8(199),this.writeU8(v);else if(v<65536)this.writeU8(200),this.writeU16(v);else{if(!(v<4294967296))throw new Error("Too large extension object: "+v);this.writeU8(201),this.writeU32(v)}this.writeI8(c.type),this.writeU8a(c.data)},x.prototype.writeU8=function(c){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,c),this.pos++},x.prototype.writeU8a=function(c){var v=c.length;this.ensureBufferSizeToWrite(v),this.bytes.set(c,this.pos),this.pos+=v},x.prototype.writeI8=function(c){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,c),this.pos++},x.prototype.writeU16=function(c){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,c),this.pos+=2},x.prototype.writeI16=function(c){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,c),this.pos+=2},x.prototype.writeU32=function(c){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,c),this.pos+=4},x.prototype.writeI32=function(c){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,c),this.pos+=4},x.prototype.writeF32=function(c){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,c),this.pos+=4},x.prototype.writeF64=function(c){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,c),this.pos+=8},x.prototype.writeU64=function(c){this.ensureBufferSizeToWrite(8),function(v,E,B){var z=B/4294967296,V=B;v.setUint32(E,z),v.setUint32(E+4,V)}(this.view,this.pos,c),this.pos+=8},x.prototype.writeI64=function(c){this.ensureBufferSizeToWrite(8),D(this.view,this.pos,c),this.pos+=8},x.prototype.writeBig64=function(c){this.ensureBufferSizeToWrite(8),function(v,E,B){var z=Number(B/BigInt(4294967296)),V=Number(B%BigInt(4294967296));z<0&&V!==0&&(z-=1),v.setUint32(E,z),v.setUint32(E+4,V)}(this.view,this.pos,c),this.pos+=8},x}(),de={};function xe(x,c){return c===void 0&&(c=de),new ae(c.extensionCodec,c.context,c.maxDepth,c.initialBufferSize,c.sortKeys,c.forceFloat32,c.ignoreUndefined,c.forceIntegerToFloat).encode(x)}function Ie(x){return(x<0?"-":"")+"0x"+Math.abs(x).toString(16).padStart(2,"0")}var Le=function(){function x(c,v){c===void 0&&(c=16),v===void 0&&(v=16),this.maxKeyLength=c,this.maxLengthPerKey=v,this.hit=0,this.miss=0,this.caches=[];for(var E=0;E<this.maxKeyLength;E++)this.caches.push([])}return x.prototype.canBeCached=function(c){return c>0&&c<=this.maxKeyLength},x.prototype.get=function(c,v,E){var B=this.caches[E-1],z=B.length;e:for(var V=0;V<z;V++){for(var h=B[V],a=h.bytes,f=0;f<E;f++)if(a[f]!==c[v+f])continue e;return h.value}return null},x.prototype.store=function(c,v){var E=this.caches[c.length-1],B={bytes:c,value:v};E.length>=this.maxLengthPerKey?E[Math.random()*E.length|0]=B:E.push(B)},x.prototype.decode=function(c,v,E){var B=this.get(c,v,E);if(B!=null)return this.hit++,B;this.miss++;var z=j(c,v,E),V=Uint8Array.prototype.slice.call(c,v,v+E);return this.store(V,z),z},x}(),Ye=function(x,c,v,E){return new(v||(v=Promise))(function(B,z){function V(f){try{a(E.next(f))}catch(m){z(m)}}function h(f){try{a(E.throw(f))}catch(m){z(m)}}function a(f){var m;f.done?B(f.value):(m=f.value,m instanceof v?m:new v(function(I){I(m)})).then(V,h)}a((E=E.apply(x,[])).next())})},pe=function(x,c){var v,E,B,z,V={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return z={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function h(a){return function(f){return function(m){if(v)throw new TypeError("Generator is already executing.");for(;V;)try{if(v=1,E&&(B=2&m[0]?E.return:m[0]?E.throw||((B=E.return)&&B.call(E),0):E.next)&&!(B=B.call(E,m[1])).done)return B;switch(E=0,B&&(m=[2&m[0],B.value]),m[0]){case 0:case 1:B=m;break;case 4:return V.label++,{value:m[1],done:!1};case 5:V.label++,E=m[1],m=[0];continue;case 7:m=V.ops.pop(),V.trys.pop();continue;default:if(B=V.trys,!((B=B.length>0&&B[B.length-1])||m[0]!==6&&m[0]!==2)){V=0;continue}if(m[0]===3&&(!B||m[1]>B[0]&&m[1]<B[3])){V.label=m[1];break}if(m[0]===6&&V.label<B[1]){V.label=B[1],B=m;break}if(B&&V.label<B[2]){V.label=B[2],V.ops.push(m);break}B[2]&&V.ops.pop(),V.trys.pop();continue}m=c.call(x,V)}catch(I){m=[6,I],E=0}finally{v=B=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([a,f])}}},we=function(x){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,v=x[Symbol.asyncIterator];return v?v.call(x):(x=typeof __values=="function"?__values(x):x[Symbol.iterator](),c={},E("next"),E("throw"),E("return"),c[Symbol.asyncIterator]=function(){return this},c);function E(B){c[B]=x[B]&&function(z){return new Promise(function(V,h){(function(a,f,m,I){Promise.resolve(I).then(function(q){a({value:q,done:m})},f)})(V,h,(z=x[B](z)).done,z.value)})}}},_e=function(x){return this instanceof _e?(this.v=x,this):new _e(x)},Be=function(x,c,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E,B=v.apply(x,c||[]),z=[];return E={},V("next"),V("throw"),V("return"),E[Symbol.asyncIterator]=function(){return this},E;function V(I){B[I]&&(E[I]=function(q){return new Promise(function(re,ke){z.push([I,q,re,ke])>1||h(I,q)})})}function h(I,q){try{(re=B[I](q)).value instanceof _e?Promise.resolve(re.value.v).then(a,f):m(z[0][2],re)}catch(ke){m(z[0][3],ke)}var re}function a(I){h("next",I)}function f(I){h("throw",I)}function m(I,q){I(q),z.shift(),z.length&&h(z[0][0],z[0][1])}},Re=new DataView(new ArrayBuffer(0)),Te=new Uint8Array(Re.buffer),fe=function(){try{Re.getInt8(0)}catch(x){return x.constructor}throw new Error("never reached")}(),$e=new fe("Insufficient data"),it=new Le,ht=function(){function x(c,v,E,B,z,V,h,a){c===void 0&&(c=se.defaultCodec),v===void 0&&(v=void 0),E===void 0&&(E=4294967295),B===void 0&&(B=4294967295),z===void 0&&(z=4294967295),V===void 0&&(V=4294967295),h===void 0&&(h=4294967295),a===void 0&&(a=it),this.extensionCodec=c,this.context=v,this.maxStrLength=E,this.maxBinLength=B,this.maxArrayLength=z,this.maxMapLength=V,this.maxExtLength=h,this.keyDecoder=a,this.totalPos=0,this.pos=0,this.view=Re,this.bytes=Te,this.headByte=-1,this.stack=[]}return x.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1},x.prototype.setBuffer=function(c){this.bytes=$(c),this.view=function(v){if(v instanceof ArrayBuffer)return new DataView(v);var E=$(v);return new DataView(E.buffer,E.byteOffset,E.byteLength)}(this.bytes),this.pos=0},x.prototype.appendBuffer=function(c){if(this.headByte!==-1||this.hasRemaining()){var v=this.bytes.subarray(this.pos),E=$(c),B=new Uint8Array(v.length+E.length);B.set(v),B.set(E,v.length),this.setBuffer(B)}else this.setBuffer(c)},x.prototype.hasRemaining=function(c){return c===void 0&&(c=1),this.view.byteLength-this.pos>=c},x.prototype.createNoExtraBytesError=function(c){var v=this.view,E=this.pos;return new RangeError("Extra "+(v.byteLength-E)+" of "+v.byteLength+" b
151yte(s) found at buffer["+c+"]")},x.prototype.decode=function(c){return this.reinitializeState(),this.setBuffer(c),this.doDecodeSingleSync()},x.prototype.doDecodeSingleSync=function(){var c=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return c},x.prototype.decodeAsync=function(c){var v,E,B,z;return Ye(this,void 0,void 0,function(){var V,h,a,f,m,I,q,re;return pe(this,function(ke){switch(ke.label){case 0:V=!1,ke.label=1;case 1:ke.trys.push([1,6,7,12]),v=we(c),ke.label=2;case 2:return[4,v.next()];case 3:if((E=ke.sent()).done)return[3,5];if(a=E.value,V)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(a);try{h=this.doDecodeSync(),V=!0}catch(He){if(!(He instanceof fe))throw He}this.totalPos+=this.pos,ke.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return f=ke.sent(),B={error:f},[3,12];case 7:return ke.trys.push([7,,10,11]),E&&!E.done&&(z=v.return)?[4,z.call(v)]:[3,9];case 8:ke.sent(),ke.label=9;case 9:return[3,11];case 10:if(B)throw B.error;return[7];case 11:return[7];case 12:if(V){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,h]}throw I=(m=this).headByte,q=m.pos,re=m.totalPos,new RangeError("Insufficient data in parcing "+Ie(I)+" at "+re+" ("+q+" in the current buffer)")}})})},x.prototype.decodeArrayStream=function(c){return this.decodeMultiAsync(c,!0)},x.prototype.decodeStream=function(c){return this.decodeMultiAsync(c,!1)},x.prototype.decodeMultiAsync=function(c,v){return Be(this,arguments,function(){var E,B,z,V,h,a,f,m,I;return pe(this,function(q){switch(q.label){case 0:E=v,B=-1,q.label=1;case 1:q.trys.push([1,13,14,19]),z=we(c),q.label=2;case 2:return[4,_e(z.next())];case 3:if((V=q.sent()).done)return[3,12];if(h=V.value,v&&B===0)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(h),E&&(B=this.readArraySize(),E=!1,this.complete()),q.label=4;case 4:q.trys.push([4,9,,10]),q.label=5;case 5:return[4,_e(this.doDecodeSync())];case 6:return[4,q.sent()];case 7:return q.sent(),--B==0?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((a=q.sent())instanceof fe))throw a;return[3,10];case 10:this.totalPos+=this.pos,q.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return f=q.sent(),m={error:f},[3,19];case 14:return q.trys.push([14,,17,18]),V&&!V.done&&(I=z.return)?[4,_e(I.call(z))]:[3,16];case 15:q.sent(),q.label=16;case 16:return[3,18];case 17:if(m)throw m.error;return[7];case 18:return[7];case 19:return[2]}})})},x.prototype.doDecodeSync=function(){e:for(;;){var c=this.readHeadByte(),v=void 0;if(c>=224)v=c-256;else if(c<192)if(c<128)v=c;else if(c<144){if((B=c-128)!==0){this.pushMapState(B),this.complete();continue e}v={}}else if(c<160){if((B=c-144)!==0){this.pushArrayState(B),this.complete();continue e}v=[]}else{var E=c-160;v=this.decodeUtf8String(E,0)}else if(c===192)v=null;else if(c===194)v=!1;else if(c===195)v=!0;else if(c===202)v=this.readF32();else if(c===203)v=this.readF64();else if(c===204)v=this.readU8();else if(c===205)v=this.readU16();else if(c===206)v=this.readU32();else if(c===207)v=this.readU64();else if(c===208)v=this.readI8();else if(c===209)v=this.readI16();else if(c===210)v=this.readI32();else if(c===211)v=this.readI64();else if(c===217)E=this.lookU8(),v=this.decodeUtf8String(E,1);else if(c===218)E=this.lookU16(),v=this.decodeUtf8String(E,2);else if(c===219)E=this.lookU32(),v=this.decodeUtf8String(E,4);else if(c===220){if((B=this.readU16())!==0){this.pushArrayState(B),this.complete();continue e}v=[]}else if(c===221){if((B=this.readU32())!==0){this.pushArrayState(B),this.complete();continue e}v=[]}else if(c===222){if((B=this.readU16())!==0){this.pushMapState(B),this.complete();continue e}v={}}else if(c===223){if((B=this.readU32())!==0){this.pushMapState(B),this.complete();continue e}v={}}else if(c===196){var B=this.lookU8();v=this.decodeBinary(B,1)}else if(c===197)B=this.lookU16(),v=this.decodeBinary(B,2);else if(c===198)B=this.lookU32(),v=this.decodeBinary(B,4);else if(c===212)v=this.decodeExtension(1,0);else if(c===213)v=this.decodeExtension(2,0);else if(c===214)v=this.decodeExtension(4,0);else if(c===215)v=this.decodeExtension(8,0);else if(c===216)v=this.decodeExtension(16,0);else if(c===199)B=this.lookU8(),v=this.decodeExtension(B,1);else if(c===200)B=this.lookU16(),v=this.decodeExtension(B,2);else{if(c!==201)throw new Error("Unrecognized type byte: "+Ie(c));B=this.lookU32(),v=this.decodeExtension(B,4)}this.complete();for(var z=this.stack;z.length>0;){var V=z[z.length-1];
151if(V.type===0){if(V.array[V.position]=v,V.position++,V.position!==V.size)continue e;z.pop(),v=V.array}else{if(V.type===1){if(h=void 0,(h=typeof v)!="string"&&h!=="number")throw new Error("The type of key must be string or number but "+typeof v);V.key=v,V.type=2;continue e}if(V.map[V.key]=v,V.readCount++,V.readCount!==V.size){V.key=null,V.type=1;continue e}z.pop(),v=V.map}}return v}var h},x.prototype.readHeadByte=function(){return this.headByte===-1&&(this.headByte=this.readU8()),this.headByte},x.prototype.complete=function(){this.headByte=-1},x.prototype.readArraySize=function(){var c=this.readHeadByte();switch(c){case 220:return this.readU16();case 221:return this.readU32();default:if(c<160)return c-144;throw new Error("Unrecognized array type byte: "+Ie(c))}},x.prototype.pushMapState=function(c){if(c>this.maxMapLength)throw new Error("Max length exceeded: map length ("+c+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:c,key:null,readCount:0,map:{}})},x.prototype.pushArrayState=function(c){if(c>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+c+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:c,array:new Array(c),position:0})},x.prototype.decodeUtf8String=function(c,v){var E;if(c>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+c+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLength<this.pos+v+c)throw $e;var B,z=this.pos+v;return B=this.stateIsMapKey()&&(!((E=this.keyDecoder)===null||E===void 0)&&E.canBeCached(c))?this.keyDecoder.decode(this.bytes,z,c):l&&c>H?function(V,h,a){var f=V.subarray(h,h+a);return X.decode(f)}(this.bytes,z,c):j(this.bytes,z,c),this.pos+=v+c,B},x.prototype.stateIsMapKey=function(){return this.stack.length>0&&this.stack[this.stack.length-1].type===1},x.prototype.decodeBinary=function(c,v){if(c>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+c+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(c+v))throw $e;var E=this.pos+v,B=this.bytes.subarray(E,E+c);return this.pos+=v+c,B},x.prototype.decodeExtension=function(c,v){if(c>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+c+") > maxExtLength ("+this.maxExtLength+")");var E=this.view.getInt8(this.pos+v),B=this.decodeBinary(c,v+1);return this.extensionCodec.decode(B,E,this.context)},x.prototype.lookU8=function(){return this.view.getUint8(this.pos)},x.prototype.lookU16=function(){return this.view.getUint16(this.pos)},x.prototype.lookU32=function(){return this.view.getUint32(this.pos)},x.prototype.readU8=function(){var c=this.view.getUint8(this.pos);return this.pos++,c},x.prototype.readI8=function(){var c=this.view.getInt8(this.pos);return this.pos++,c},x.prototype.readU16=function(){var c=this.view.getUint16(this.pos);return this.pos+=2,c},x.prototype.readI16=function(){var c=this.view.getInt16(this.pos);return this.pos+=2,c},x.prototype.readU32=function(){var c=this.view.getUint32(this.pos);return this.pos+=4,c},x.prototype.readI32=function(){var c=this.view.getInt32(this.pos);return this.pos+=4,c},x.prototype.readU64=function(){var c,v,E,B,z=(c=this.view,v=this.pos,E=c.getUint32(v),B=c.getUint32(v+4),E>Math.floor(Number.MAX_SAFE_INTEGER/4294967296)?BigInt(E)*BigInt(4294967296)+BigInt(B):4294967296*E+B);return this.pos+=8,z},x.prototype.readI64=function(){var c=R(this.view,this.pos);return this.pos+=8,c},x.prototype.readF32=function(){var c=this.view.getFloat32(this.pos);return this.pos+=4,c},x.prototype.readF64=function(){var c=this.view.getFloat64(this.pos);return this.pos+=8,c},x}(),ve={};function Ae(x,c){return c===void 0&&(c=ve),new ht(c.extensionCodec,c.context,c.maxStrLength,c.maxBinLength,c.maxArrayLength,c.maxMapLength,c.maxExtLength).decode(x)}var y=function(x,c){var v,E,B,z,V={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return z={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function h(a){return function(f){return function(m){if(v)throw new TypeError("Generator is already executing.");for(;V;)try{if(v=1,E&&(B=2&m[0]?E.return:m[0]?E.throw||((B=E.return)&&B.call(E),0):E.next)&&!(B=B.call(E,m[1])).done)return B;switch(E=0,B&&(m=[2&m[0],B.value]),m[0]){case 0:case 1:B=m;break;case 4:return V.label++,{value:m[1],done:!1};case 5:V.label++,E=m[1],m=[0];continue;case 7:m=V.ops.pop(),V.trys.pop();continue;default:if(B=V.trys,!((B=B.length>0&&B[B.length-1])||m[0]!==6&&m[0]!==2)){V=0;continue}if(m[0]===3&&(!B||m[1]>B[0]&&m[1]<B[3])){V.label=m[1];break}if(m[0]===6&&V.label<B[1]){V.label=B[1],B=m;break}if(B&&V.label<B[2]){V.label=B[2],V.ops.push(m);break}B[2]&&V.ops.pop(),V.trys.pop();continue}m=c.call(x,V)}catch(I){m=[6,I],E=0}finally{v=B=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([a,f])}}},S=function(x){return this instanceof S?(this.v=x,this):new S(x)},L=function(x,c,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E,B=v.apply(x,c||[]),z=[];return E={},V("next"),V("throw"),V("return"),E[Symbol.asyncIterator]=function(){return this},E;function V(I){B[I]&&(E[I]=function(q){return new Promise(function(re,ke){z.push([I,q,re,ke])>1||h(I,q)})})}function h(I,q){try{(re=B[I](q)).value instanceof S?Promise.resolve(re.value.v).then(a,f):m(z[0][2],re)}catch(ke){m(z[0][3],ke)}var re}function a(I){h("next",I)}function f(I){h("throw",I)}function m(I,q){I(q),z.shift(),z.length&&h(z[0][0],z[0][1])}};function te(x){if(x==null)throw new Error("Assertion Failure: value must not be null nor undefined")}function Y(x){return x[Symbol.asyncIterator]!=null?x:function(c){return L(this,arguments,function(){var v,E,B,z;return y(this,function(V){switch(V.label){case 0:v=c.getReader(),V.label=1;case 1:V.trys.push([1,,9,10]),V.label=2;case 2:return[4,S(v.read())];case 3:return E=V.sent(),B=E.done,z=E.value,B?[4,S(void 0)]:[3,5];case 4:return[2,V.sent()];case 5:return te(z),[4,S(z)];case 6:return[4,V.sent()];case 7:return V.sent(),[3,2];case 8:return[3,10];case 9:return v.releaseLock(),[7];case 10:return[2]}})})}(x)}var ee=function(x,c,v,E){return new(v||(v=Promise))(function(B,z){function V(f){try{a(E.next(f))}catch(m){z(m)}}function h(f){try{a(E.throw(f))}catch(m){z(m)}}function a(f){var m;f.done?B(f.value):(m=f.value,m instanceof v?m:new v(function(I){I(m)})).then(V,h)}a((E=E.apply(x,[])).next())})},oe=function(x,c){var v,E,B,z,V={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return z={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function h(a){return function(f){return function(m){if(v)throw new TypeError("Generator is already executing.");for(;V;)try{if(v=1,E&&(B=2&m[0]?E.return:m[0]?E.throw||((B=E.return)&&B.call(E),0):E.next)&&!(B=B.call(E,m[1])).done)return B;switch(E=0,B&&(m=[2&m[0],B.value]),m[0]){case 0:case 1:B=m;break;case 4:return V.label++,{value:m[1],done:!1};case 5:V.label++,E=m[1],m=[0];continue;case 7:m=V.ops.pop(),V.trys.pop();continue;default:if(B=V.trys,!((B=B.length>0&&B[B.length-1])||m[0]!==6&&m[0]!==2)){V=0;continue}if(m[0]===3&&(!B||m[1]>B[0]&&m[1]<B[3])){V.label=m[1];break}if(m[0]===6&&V.label<B[1]){V.label=B[1],B=m;break}if(B&&V.label<B[2]){V.label=B[2],V.ops.push(m);break}B[2]&&V.ops.pop(),V.trys.pop();continue}m=c.call(x,V)}catch(I){m=[6,I],E=0}finally{v=B=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([a,f])}}};function K(x,c){return c===void 0&&(c=ve),ee(this,void 0,void 0,function(){var v;return oe(this,function(E){return v=Y(x),[2,new ht(c.extensionCodec,c.context,c.maxStrLength,
151c.maxBinLength,c.maxArrayLength,c.maxMapLength,c.maxExtLength).decodeAsync(v)]})})}function Q(x,c){c===void 0&&(c=ve);var v=Y(x);return new ht(c.extensionCodec,c.context,c.maxStrLength,c.maxBinLength,c.maxArrayLength,c.maxMapLength,c.maxExtLength).decodeArrayStream(v)}function ne(x,c){c===void 0&&(c=ve);var v=Y(x);return new ht(c.extensionCodec,c.context,c.maxStrLength,c.maxBinLength,c.maxArrayLength,c.maxMapLength,c.maxExtLength).decodeStream(v)}}])})})(Ag);var Eg=Ag.exports;const ow="The object contains empty or 0 values. First empty or 0 value encountered during encoding: ";function aw(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&(!t[e]||t[e].length===0))return{containsEmpty:!0,firstEmptyKey:e};return{containsEmpty:!1,firstEmptyKey:void 0}}function Fg(t){const e={sortKeys:!0};return Eg.encode(t,e)}function ar(t){const e=aw(t);if(e.containsEmpty)throw new Error(ow+e.firstEmptyKey);return Fg(t)}function Wt(t){return Eg.decode(t)}function lw(t,e,r){const n=t.appIndex,i=t.name,s=n===0||n===r;let o=0;if(e!=null&&(o=e.indexOf(n)+1),o===0&&!s)throw new Error(`Box ref with appId ${n} not in foreign-apps`);return{i:o,n:i}}function uw(t,e,r){return t==null?[]:t.map(n=>lw(n,e,r))}var bt;(function(t){t.pay="pay",t.keyreg="keyreg",t.acfg="acfg",t.axfer="axfer",t.afrz="afrz",t.appl="appl",t.stpf="stpf",t.hb="hb"})(bt||(bt={}));function fw(t){return t===bt.pay||t===bt.keyreg||t===bt.acfg||t===bt.axfer||t===bt.afrz||t===bt.appl||t===bt.stpf||t===bt.hb}var Kr;(function(t){t[t.NoOpOC=0]="NoOpOC",t[t.OptInOC=1]="OptInOC",t[t.CloseOutOC=2]="CloseOutOC",t[t.ClearStateOC=3]="ClearStateOC",t[t.UpdateApplicationOC=4]="UpdateApplicationOC",t[t.DeleteApplicationOC=5]="DeleteApplicationOC"})(Kr||(Kr={}));const cw=52,Sf=1e3,rs=32,Ch=19,dw=75,hw=5,pw=32,gw=5,jh=32,mw=32,yw=32,xw=64;class Nh{constructor(e,r,n,i,s){this.s=e,this.p=r,this.p2=n,this.p1s=i,this.p2s=s}static from_obj_for_encoding(e){const r=Object.create(this.prototype);return r.s=e.s,r.p=e.p,r.p2=e.p2,r.p1s=e.p1s,r.p2s=e.p2s,r}get_obj_for_encoding(){return{s:this.s,p:this.p,p2:this.p2,p1s:this.p1s,p2s:this.p2s}}}class Uh{constructor(e,r,n,i,s){this.a=e,this.prf=Nh.from_obj_for_encoding(r),this.sd=n,this.vid=i,this.kd=s}static from_obj_for_encoding(e){const r=Object.create(this.prototype);return r.a=rt(Xe(e.a)),r.prf=Nh.from_obj_for_encoding(e.prf),r.sd=O.Buffer.from(e.sd),r.vid=O.Buffer.from(e.vid),r.kd=e.kd,r}get_obj_for_encoding(){return{a:O.Buffer.from(this.a.publicKey),prf:this.prf.get_obj_for_encoding(),sd:this.sd,vid:this.vid,kd:this.kd}}}function Fu(t,e,r){if(t==null)return;let n;if(typeof t=="string"?n=O.Buffer.from(t,"base64"):t.constructor===Uint8Array?n=O.Buffer.from(t):O.Buffer.isBuffer(t)&&(n=t),n==null||n.byteLength!==r)throw Error(`${e} must be a ${r} byte Uint8Array or Buffer or base64 string.`);return n}let Tt=class{constructor({...e}){this.name="Transaction",this.tag=O.Buffer.from("TX");const r={type:bt.pay,flatFee:!1,nonParticipation:!1};if(typeof e.type>"u"&&(e.type=r.type),typeof e.flatFee>"u"&&(e.flatFee=r.flatFee),e.type===bt.keyreg&&typeof e.voteKey<"u"&&typeof e.nonParticipation>"u"&&(e.nonParticipation=r.nonParticipation),e.suggestedParams!==void 0){const i=e;i.genesisHash=i.suggestedParams.genesisHash,i.fee=i.suggestedParams.fee,i.suggestedParams.flatFee!==void 0&&(i.flatFee=i.suggestedParams.flatFee),i.firstRound=i.suggestedParams.firstRound,i.lastRound=i.suggestedParams.lastRound,i.genesisID=i.suggestedParams.genesisID}const n=e;if(n.from=rt(n.from),n.to!==void 0&&(n.to=rt(n.to)),n.closeRemainderTo!==void 0&&(n.closeRemainderTo=rt(n.closeRemainderTo)),n.assetManager!==void 0&&(n.assetManager=rt(n.assetManager)),n.assetReserve!==void 0&&(n.assetReserve=rt(n.assetReserve)),n.assetFreeze!==void 0&&(n.assetFreeze=rt(n.assetFreeze)),n.assetClawback!==void 0&&(n.assetClawback=rt(n.assetClawback)),n.assetRevocationTarget!==void 0&&(n.assetRevocationTarget=rt(n.assetRevocationTarget)),n.freezeAccount!==void 0&&(n.freezeAccount=rt(n.freezeAccount)),n.reKeyTo!==void 0&&(n.reKeyTo=rt(n.reKeyTo)),n.genesisHash===void 0)throw Error("genesis hash must be specified and in a base64 string.");if(n.genesisHash=O.Buffer.from(n.genesisHash,"base64"),n.amount!==void 0&&(!(Number.isSafeInteger(n.amount)||typeof n.amount=="bigint"&&n.amount<=BigInt("0xffffffffffffffff"))||n.amount<0))throw Error("Amount must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(!Number.isSafeInteger(n.fee)||n.fee<0)throw Error("fee must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(n.firstRound)||n.firstRound<0)throw Error("firstRound must be a positive number");if(!Number.isSafeInteger(n.lastRound)||n.lastRound<0)throw Error("lastRound must be a positive number");if(n.extraPages!==void 0&&(!Number.isInteger(n.extraPages)||n.extraPages<0||n.extraPages>3))throw Error("extraPages must be an Integer between and including 0 to 3");
151if(n.assetTotal!==void 0&&(!(Number.isSafeInteger(n.assetTotal)||typeof n.assetTotal=="bigint"&&n.assetTotal<=BigInt("0xffffffffffffffff"))||n.assetTotal<0))throw Error("Total asset issuance must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(n.assetDecimals!==void 0&&(!Number.isSafeInteger(n.assetDecimals)||n.assetDecimals<0||n.assetDecimals>Ch))throw Error(`assetDecimals must be a positive number and smaller than ${Ch.toString()}`);if(n.assetIndex!==void 0&&(!Number.isSafeInteger(n.assetIndex)||n.assetIndex<0))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(n.appIndex!==void 0&&(!Number.isSafeInteger(n.appIndex)||n.appIndex<0))throw Error("Application index must be a positive number and smaller than 2^53-1");if(n.appLocalInts!==void 0&&(!Number.isSafeInteger(n.appLocalInts)||n.appLocalInts<0))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(n.appLocalByteSlices!==void 0&&(!Number.isSafeInteger(n.appLocalByteSlices)||n.appLocalByteSlices<0))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(n.appGlobalInts!==void 0&&(!Number.isSafeInteger(n.appGlobalInts)||n.appGlobalInts<0))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(n.appGlobalByteSlices!==void 0&&(!Number.isSafeInteger(n.appGlobalByteSlices)||n.appGlobalByteSlices<0))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(n.appApprovalProgram!==void 0&&n.appApprovalProgram.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(n.appClearProgram!==void 0&&n.appClearProgram.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(n.appArgs!==void 0){if(!Array.isArray(n.appArgs))throw Error("appArgs must be an Array of Uint8Array.");n.appArgs=n.appArgs.slice(),n.appArgs.forEach(i=>{if(i.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")})}else n.appArgs=[];if(n.appAccounts!==void 0){if(!Array.isArray(n.appAccounts))throw Error("appAccounts must be an Array of addresses.");n.appAccounts=n.appAccounts.map(i=>rt(i))}if(n.appForeignApps!==void 0){if(!Array.isArray(n.appForeignApps))throw Error("appForeignApps must be an Array of integers.");n.appForeignApps=n.appForeignApps.slice(),n.appForeignApps.forEach(i=>{if(!Number.isSafeInteger(i)||i<0)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")})}if(n.appForeignAssets!==void 0){if(!Array.isArray(n.appForeignAssets))throw Error("appForeignAssets must be an Array of integers.");n.appForeignAssets=n.appForeignAssets.slice(),n.appForeignAssets.forEach(i=>{if(!Number.isSafeInteger(i)||i<0)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")})}if(n.boxes!==void 0){if(!Array.isArray(n.boxes))throw Error("boxes must be an Array of BoxReference.");n.boxes=n.boxes.slice(),n.boxes.forEach(i=>{if(!Number.isSafeInteger(i.appIndex)||i.name.constructor!==Uint8Array)throw Error("box app index must be a number and name must be an Uint8Array.")})}if(n.assetMetadataHash!==void 0&&n.assetMetadataHash.length!==0){if(typeof n.assetMetadataHash=="string"&&(n.assetMetadataHash=new Uint8Array(O.Buffer.from(n.assetMetadataHash))),n.assetMetadataHash.constructor!==Uint8Array||n.assetMetadataHash.byteLength!==jh)throw Error(`assetMetadataHash must be a ${jh} byte Uint8Array or string.`);n.assetMetadataHash.every(i=>i===0)&&(n.assetMetadataHash=void 0)}else n.assetMetadataHash=void 0;if(n.note!==void 0){if(n.note.constructor!==Uint8Array)throw Error("note must be a Uint8Array.")}else n.note=new Uint8Array(0);if(n.lease!==void 0){if(n.lease.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(n.lease.length!==rs)throw Error(`lease must be of length ${rs.toString()}.`);n.lease.every(i=>
151i===0)&&(n.lease=new Uint8Array(0))}else n.lease=new Uint8Array(0);if(n.voteKey=Fu(n.voteKey,"voteKey",mw),n.selectionKey=Fu(n.selectionKey,"selectionKey",yw),n.stateProofKey=Fu(n.stateProofKey,"stateProofKey",xw),n.nonParticipation&&(n.voteKey||n.selectionKey||n.voteFirst||n.stateProofKey||n.voteLast||n.voteKeyDilution))throw new Error("nonParticipation is true but participation params are present.");if(!n.nonParticipation&&(n.voteKey||n.selectionKey||n.stateProofKey||n.voteFirst||n.voteLast||n.voteKeyDilution)&&!(n.voteKey&&n.selectionKey&&n.voteFirst&&n.voteLast&&n.voteKeyDilution))throw new Error("online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution");if(delete n.suggestedParams,Object.assign(this,Gx(n)),n.flatFee||(this.fee*=this.estimateSize(),this.fee<Sf&&(this.fee=Sf)),this.group=void 0,n.stateProofType!==void 0&&(!Number.isSafeInteger(n.stateProofType)||n.stateProofType<0))throw Error("State Proof type must be a positive number and smaller than 2^53-1");if(n.stateProofMessage!==void 0){if(n.stateProofMessage.constructor!==Uint8Array)throw Error("stateProofMessage must be a Uint8Array.")}else n.stateProofMessage=new Uint8Array(0);if(n.stateProof!==void 0){if(n.stateProof.constructor!==Uint8Array)throw Error("stateProof must be a Uint8Array.")}else n.stateProof=new Uint8Array(0);if(n.heartbeatFields!==void 0&&n.heartbeatFields.constructor!==Uh)throw Error("heartbeatFields must be a HeartbeatFields.")}get_obj_for_encoding(){if(this.type==="pay"){const e={amt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:"pay",gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group};return this.closeRemainderTo!==void 0&&Xe(this.closeRemainderTo.publicKey)!==Zx&&(e.close=O.Buffer.from(this.closeRemainderTo.publicKey)),this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),this.to!==void 0&&(e.rcv=O.Buffer.from(this.to.publicKey)),e.note.length||delete e.note,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.grp===void 0&&delete e.grp,e.lx.length||delete e.lx,e.rekey||delete e.rekey,e}if(this.type==="keyreg"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.t
151ype,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group,votekey:this.voteKey,selkey:this.selectionKey,sprfkey:this.stateProofKey,votefst:this.voteFirst,votelst:this.voteLast,votekd:this.voteKeyDilution};return e.note.length||delete e.note,e.lx.length||delete e.lx,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.grp===void 0&&delete e.grp,this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),this.nonParticipation&&(e.nonpart=!0),e.selkey||delete e.selkey,e.votekey||delete e.votekey,e.sprfkey||delete e.sprfkey,e.votefst||delete e.votefst,e.votelst||delete e.votelst,e.votekd||delete e.votekd,e}if(this.type==="acfg"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group,caid:this.assetIndex,apar:{t:this.assetTotal,df:this.assetDefaultFrozen,dc:this.assetDecimals}};return this.assetManager!==void 0&&(e.apar.m=O.Buffer.from(this.assetManager.publicKey)),this.assetReserve!==void 0&&(e.apar.r=O.Buffer.from(this.assetReserve.publicKey)),this.assetFreeze!==void 0&&(e.apar.f=O.Buffer.from(this.assetFreeze.publicKey)),this.assetClawback!==void 0&&(e.apar.c=O.Buffer.from(this.assetClawback.publicKey)),this.assetName!==void 0&&(e.apar.an=this.assetName),this.assetUnitName!==void 0&&(e.apar.un=this.assetUnitName),this.assetURL!==void 0&&(e.apar.au=this.assetURL),this.assetMetadataHash!==void 0&&(e.apar.am=O.Buffer.from(this.assetMetadataHash)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),e.caid||delete e.caid,!e.apar.t&&!e.apar.un&&!e.apar.an&&!e.apar.df&&!e.apar.m&&!e.apar.r&&!e.apar.f&&!e.apar.c&&!e.apar.au&&!e.apar.am&&!e.apar.dc?delete e.apar:(e.apar.t||delete e.apar.t,e.apar.dc||delete e.apar.dc,e.apar.un||delete e.apar.un,e.apar.an||delete e.apar.an,e.apar.df||delete e.apar.df,e.apar.m||delete e.apar.m,e.apar.r||delete e.apar.r,e.apar.f||delete e.apar.f,e.apar.c||delete e.apar.c,e.apar.au||delete e.apar.au,e.apar.am||delete e.apar.am),e.grp===void 0&&delete e.grp,e}if(this.type==="axfer"){const e={aamt:this.amount,fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),arcv:O.Buffer.from(this.to.publicKey),type:this.t
151ype,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group,xaid:this.assetIndex};return this.closeRemainderTo!==void 0&&(e.aclose=O.Buffer.from(this.closeRemainderTo.publicKey)),this.assetRevocationTarget!==void 0&&(e.asnd=O.Buffer.from(this.assetRevocationTarget.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.aamt||delete e.aamt,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.grp===void 0&&delete e.grp,e.aclose||delete e.aclose,e.asnd||delete e.asnd,e.rekey||delete e.rekey,this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),e}if(this.type==="afrz"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group,faid:this.assetIndex,afrz:this.freezeState};return this.freezeAccount!==void 0&&(e.fadd=O.Buffer.from(this.freezeAccount.publicKey)),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.afrz||delete e.afrz,e.grp===void 0&&delete e.grp,this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),e}if(this.type==="appl"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.t
151ype,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),grp:this.group,apid:this.appIndex,apan:this.appOnComplete,apls:{nui:this.appLocalInts,nbs:this.appLocalByteSlices},apgs:{nui:this.appGlobalInts,nbs:this.appGlobalByteSlices},apfa:this.appForeignApps,apas:this.appForeignAssets,apep:this.extraPages,apbx:uw(this.boxes,this.appForeignApps,this.appIndex)};this.reKeyTo!==void 0&&(e.rekey=O.Buffer.from(this.reKeyTo.publicKey)),this.appApprovalProgram!==void 0&&(e.apap=O.Buffer.from(this.appApprovalProgram)),this.appClearProgram!==void 0&&(e.apsu=O.Buffer.from(this.appClearProgram)),this.appArgs!==void 0&&(e.apaa=this.appArgs.map(r=>O.Buffer.from(r))),this.appAccounts!==void 0&&(e.apat=this.appAccounts.map(r=>O.Buffer.from(r.publicKey))),e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.apid||delete e.apid,e.apls.nui||delete e.apls.nui,e.apls.nbs||delete e.apls.nbs,!e.apls.nui&&!e.apls.nbs&&delete e.apls,e.apgs.nui||delete e.apgs.nui,e.apgs.nbs||delete e.apgs.nbs,(!e.apaa||!e.apaa.length)&&delete e.apaa,!e.apgs.nui&&!e.apgs.nbs&&delete e.apgs,e.apap||delete e.apap,e.apsu||delete e.apsu,e.apan||delete e.apan,(!e.apfa||!e.apfa.length)&&delete e.apfa,(!e.apas||!e.apas.length)&&delete e.apas;for(const r of e.apbx)r.i||delete r.i,(!r.n||!r.n.length)&&delete r.n;return(!e.apbx||!e.apbx.length)&&delete e.apbx,(!e.apat||!e.apat.length)&&delete e.apat,e.apep||delete e.apep,e.grp===void 0&&delete e.grp,e}if(this.type==="stpf"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.t
151ype,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),sptype:this.stateProofType,spmsg:O.Buffer.from(this.stateProofMessage),sp:O.Buffer.from(this.stateProof)};return e.sptype||delete e.sptype,e.note.length||delete e.note,e.lx.length||delete e.lx,e.amt||delete e.amt,e.fee||delete e.fee,e.fv||delete e.fv,e.gen||delete e.gen,e.apid||delete e.apid,(!e.apaa||!e.apaa.length)&&delete e.apaa,e.apap||delete e.apap,e.apsu||delete e.apsu,e.apan||delete e.apan,(!e.apfa||!e.apfa.length)&&delete e.apfa,(!e.apas||!e.apas.length)&&delete e.apas,(!e.apat||!e.apat.length)&&delete e.apat,e.apep||delete e.apep,e.grp===void 0&&delete e.grp,e}if(this.type==="hb"){const e={fee:this.fee,fv:this.firstRound,lv:this.lastRound,note:O.Buffer.from(this.note),snd:O.Buffer.from(this.from.publicKey),type:this.type,gen:this.genesisID,gh:this.genesisHash,lx:O.Buffer.from(this.lease),hb:this.heartbeatFields.get_obj_for_encoding()};return e.note.length||delete e.note,e.lx.length||delete e.lx,e.fee||delete e.fee,e.gen||delete e.gen,e.grp===void 0&&delete e.grp,e}}static from_obj_for_encoding(e){const r=Object.create(this.prototype);if(r.name="Transaction",r.tag=O.Buffer.from("TX"),r.genesisID=e.gen,r.genesisHash=O.Buffer.from(e.gh),!fw(e.type))throw new Error(`Unrecognized transaction type: ${e.type}`);return r.type=e.type,r.fee=e.fee,r.firstRound=e.fv,r.lastRound=e.lv,r.note=new Uint8Array(e.note),r.lease=new Uint8Array(e.lx),r.from=rt(Xe(new Uint8Array(e.snd))),e.grp!==void 0&&(r.group=O.Buffer.from(e.grp)),e.rekey!==void 0&&(r.reKeyTo=rt(Xe(new Uint8Array(e.rekey)))),e.type==="pay"?(r.amount=e.amt,r.to=rt(Xe(new Uint8Array(e.rcv))),e.close!==void 0&&(r.closeRemainderTo=rt(Xe(e.close)))):e.type==="keyreg"?(e.votekey!==void 0&&(r.voteKey=O.Buffer.from(e.votekey)),e.selkey!==void 0&&(r.selectionKey=O.Buffer.from(e.selkey)),e.sprfkey!==void 0&&(r.stateProofKey=O.Buffer.from(e.sprfkey)),e.votekd!==void 0&&(r.voteKeyDilution=e.votekd),e.votefst!==void 0&&(r.voteFirst=e.votefst),e.votelst!==void 0&&(r.voteLast=e.votelst),e.nonpart!==void 0&&(r.nonParticipation=e.nonpart)):e.type==="acfg"?(e.caid!==void 0&&(r.assetIndex=e.caid),e.apar!==void 0&&(r.assetTotal=e.apar.t,r.assetDefaultFrozen=e.apar.df,e.apar.dc!==void 0&&(r.assetDecimals=e.apar.dc),e.apar.m!==void 0&&(r.assetManager=rt(Xe(new Uint8Array(e.apar.m)))),e.apar.r!==void 0&&(r.assetReserve=rt(Xe(new Uint8Array(e.apar.r)))),e.apar.f!==void 0&&(r.assetFreeze=rt(Xe(new Uint8Array(e.apar.f)))),e.apar.c!==void 0&&(r.assetClawback=rt(Xe(new Uint8Array(e.apar.c)))),e.apar.un!==void 0&&(r.assetUnitName=e.apar.un),e.apar.an!==void 0&&(r.assetName=e.apar.an),e.apar.au!==void 0&&(r.assetURL=e.apar.au),e.apar.am!==void 0&&(r.assetMetadataHash=e.apar.am))):e.type==="axfer"?(e.xaid!==void 0&&(r.assetIndex=e.xaid),e.aamt!==void 0&&(r.amount=e.aamt),e.aclose!==void 0&&(r.closeRemainderTo=rt(Xe(new Uint8Array(e.aclose)))),e.asnd!==void 0&&(r.assetRevocationTarget=rt(Xe(new Uint8Array(e.asnd)))),r.to=rt(Xe(new Uint8Array(e.arcv)))):e.type==="afrz"?(e.afrz!==void 0&&(r.freezeState=e.afrz),e.faid!==void 0&&(r.assetIndex=e.faid),r.freezeAccount=rt(Xe(new Uint8Array(e.fadd)))):e.type==="appl"?(e.apid!==void 0&&(r.appIndex=e.apid),e.apan!==void 0&&(r.appOnComplete=e.apan),e.apls!==void 0&&(e.apls.nui!==void 0&&(r.appLocalInts=e.apls.nui),e.apls.nbs!==void 0&&(r.appLocalByteSlices=e.apls.nbs)),e.apgs!==void 0&&(e.apgs.nui!==void 0&&(r.appGlobalInts=e.apgs.nui),e.apgs.nbs!==void 0&&(r.appGlobalByteSlices=e.apgs.nbs)),e.apep!==void 0&&(r.extraPages=e.apep),e.apap!==void 0&&(r.appApprovalProgram=new Uint8Array(e.apap)),e.apsu!==void 0&&(r.appClearProgram=new Uint8Array(e.apsu)),e.apaa!==void 0&&(r.appArgs=e.apaa.map(n=>new Uint8Array(n))),e.apat!==void 0&&(r.appAccounts=e.apat.map(n=>rt(Xe(new Uint8Array(n))))),e.apfa!==void 0&&(r.appForeignApps=e.apfa),e.apas!==void 0&&(r.appForeignAssets=e.apas),e.apbx!==void 0&&(r.boxes=e.apbx.map(n=>({appIndex:n.i?r.appForeignApps[n.i-1]:0,name:n.n})))):e.type==="stpf"?(e.sptype!==void 0&&(r.stateProofType=e.sptype),e.sp!==void 0&&(r.stateProof=e.sp),e.spmsg!==void 0&&(r.stateProofMessage=e.spmsg)):e.type==="hb"&&e.hb!==void 0&&(r.heartbeatFields=Uh.from_obj_for_encoding(e.hb)),r}estimateSize(){return this.toByte().length+dw}bytesToSign(){const e=this.toByte();return O.Buffer.from(Ht(this.tag,e))}toByte(){return ar(this.get_obj_for_encoding())}rawSignTxn(e){const r=this.bytesToSign(),n=Vs(r,e);return O.Buffer.from(n)}signTxn(e){const r={sig:this.rawSignTxn(e),txn:this.get_obj_for_encoding()},i=Ks(e).publicKey;return Xe(i)!==Xe(this.from.publicKey)&&(r.sgnr=O.Buffer.from(i)),new Uint8Array(ar(r))}attachSignature(e,r){if(!mg(r.length))throw new Error("Invalid signature length");const n={sig:O.Buffer.from(r),txn:this.get_obj_for_encoding()};if(e!==Xe(this.from.publicKey)){const i=rt(e).publicKey;n.sgnr=O.Buffer.from(i)}return new Uint8Array(ar(n))}rawTxID(){const e=this.toByte(),r=O.Buffer.from(Ht(this.tag,e));return O.Buffer.from(Zr(r))}txID(){const e=this.rawTxID();return Fc.encode(e).slice(0,cw)}addLease(e,r=0){let n;if(e!==void 0){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(e.length!==rs)throw Error(`lease must be of length ${rs.toString()}.`);n=new Uint8Array(e)}else n=new Uint8Array(0);this.lease=n,r!==0&&(this.fee+=(hw+rs)*r)}addRekey(e,r=0){e!==void 0&&(this.reKeyTo=rt(e)),r!==0&&(this.fee+=(gw+pw)*r)}_getDictForDisplay(){const e={...this};return e.tag=e.tag.toString(),e.from=Xe(e.from.publicKey),e.to!==void 0&&(e.to=Xe(e.to.publicKey)),e.freezeAccount!==void 0&&(e.freezeAccount=Xe(e.freezeAccount.publicKey)),e.closeRemainderTo!==void 0&&(e.closeRemainderTo=Xe(e.closeRemainderTo.publicKey)),e.assetManager!==void 0&&(e.assetManager=Xe(e.assetManager.publicKey)),e.assetReserve!==void 0&&(e.assetReserve=Xe(e.assetReserve.publicKey)),e.assetFreeze!==void 0&&(e.assetFreeze=Xe(e.assetFreeze.publicKey)),e.assetClawback!==void 0&&(e.assetClawback=Xe(e.assetClawback.publicKey)),e.assetRevocationTarget!==void 0&&(e.assetRevocationTarget=Xe(e.assetRevocationTarget.publicKey)),e.reKeyTo!==void 0&&(e.reKeyTo=Xe(e.reKeyTo.publicKey)),e.genesisHash=e.genesisHash.toString("base64"),e}prettyPrint(){console.log(this._getDictForDisplay())}toString(){return JSON.stringify(this._getDictForDisplay())}};function Sg(t){const e={txn:t.get_obj_for_encoding()};return ar(e)}function ww(t){const e=t.get_obj_for_encoding();return ar(e)}function vw(t){const e=Wt(t);return Tt.from_obj_for_encoding(e)}function kg(t){const e=Wt(t);return{...e,txn:Tt.from_obj_for_encoding(e.txn)}}function In(t){return t instanceof Tt?t:new Tt(t)}class bw{constructor({bidderKey:e,bidAmount:r,bidID:n,auctionKey:i,auctionID:s,maxPrice:o}){this.name="Bid",this.tag=O.Buffer.from([97,66]);const l=rt(e),g=rt(i);if(!Number.isSafeInteger(r)||r<0)throw Error("Bid amount must be positive and 2^53-1");if(!Number.isSafeInteger(n)||n<0)throw Error("BidID must be positive and 2^53-1");if(!Number.isSafeInteger(s)||s<0)throw Error("auctionID must be positive");Object.assign(this,{bidderKey:l,bidAmount:r,bidID:n,auctionKey:g,auctionID:s,maxPrice:o})}
151get_obj_for_encoding(){return{bidder:O.Buffer.from(this.bidderKey.publicKey),cur:this.bidAmount,price:this.maxPrice,id:this.bidID,auc:O.Buffer.from(this.auctionKey.publicKey),aid:this.auctionID}}signBid(e){const r=ar(this.get_obj_for_encoding()),n=O.Buffer.from(Ht(this.tag,r)),i=Vs(n,e),o={t:"b",b:{sig:O.Buffer.from(i),bid:this.get_obj_for_encoding()}};return new Uint8Array(ar(o))}}const Rg=1e6,Sc="Microalgos should be positive and less than 2^53 - 1.";function _w(t){if(t<0||!Number.isSafeInteger(t))throw new Error(Sc);return t/Rg}function Aw(t){const e=t*Rg;return Math.round(e)}class Ew extends Error{constructor(e,r){super(e),this.response=r,this.name="URLTokenBaseHTTPError",this.response=r}}class qn{constructor(e,r,n,i={}){this.defaultHeaders=i;const s=r.endsWith("/")?r:`${r}/`,o=new URL(s);if(typeof n<"u"&&(o.port=n.toString()),o.protocol.length===0)throw new Error("Invalid base server URL, protocol must be defined.");this.baseURL=o,this.tokenHeader=e}getURL(e,r){let n;e.startsWith("./")?n=e:e.startsWith("/")?n=`.${e}`:n=`./${e}`;const i=new URL(n,this.baseURL);if(r)for(const[s,o]of Object.entries(r))i.searchParams.set(s,o);return i.toString()}static formatFetchResponseHeaders(e){const r={};return e.forEach((n,i)=>{r[n]=i}),r}static async checkHttpError(e){if(e.ok)return;let r=null,n=null;try{r=new Uint8Array(await e.arrayBuffer());const s=JSON.parse(O.Buffer.from(r).toString());s.message&&(n=s.message)}catch{}let i=`Network request error. Received status ${e.status} (${e.statusText})`;throw n&&(i+=`: ${n}`),new Ew(i,{body:r,status:e.status,headers:qn.formatFetchResponseHeaders(e.headers)})}static async formatFetchResponse(e){return await this.checkHttpError(e),{body:new Uint8Array(await e.arrayBuffer()),status:e.status,headers:qn.formatFetchResponseHeaders(e.headers)}}async get(e,r,n={}){const i={...this.tokenHeader,...this.defaultHeaders,...n},s=await fetch(this.getURL(e,r),{headers:i});return qn.formatFetchResponse(s)}async post(e,r,n,i={}){const s={...this.tokenHeader,...this.defaultHeaders,...i},o=await fetch(this.getURL(e,n),{method:"POST",body:r,headers:s});return qn.formatFetchResponse(o)}async delete(e,r,n,i={}){const s={...this.tokenHeader,...this.defaultHeaders,...i},o=await fetch(this.getURL(e,n),{method:"DELETE",body:r,headers:s});return qn.formatFetchResponse(o)}}function Fw(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(!t[e]||t[e].length===0)&&delete t[e];return t}function Dh(t){return Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{})}function Sw(t){if(t!==void 0&&Object.prototype.hasOwnProperty.call(t,"format"))switch(t.format){case"msgpack":return"application/msgpack";case"json":default:return"application/json"}else return"application/json"}class Tr{constructor(e,r,n,i={}){r!==void 0?this.bc=new qn(e,r,n,i):this.bc=e}static parseJSON(e,r,n={}){try{return Object.keys(n).length===0?e&&JSON.parse(e):e&&Vx(e,n)}catch(i){const s=i;throw s.rawResponse=e||null,s.statusCode=r,s}}static serializeData(e,r){if(!e)return new Uint8Array(0);if(r["content-type"]==="application/json")return new Uint8Array(O.Buffer.from(JSON.stringify(e)));if(typeof e=="string")return new Uint8Array(O.Buffer.from(e));if(e instanceof Uint8Array)return e;throw new Error("provided data is neither a string nor a Uint8Array and content-type is not application/json")}static prepareResponse(e,r,n,i={}){let{body:s}=e,o;return r!=="application/msgpack"&&(o=s&&O.Buffer.from(s).toString()||""),n&&r==="application/json"&&(s=Tr.parseJSON(o,e.status,i)),{...e,body:s,text:o,ok:Math.trunc(e.status/100)===2}}static prepareResponseError(e){return e.response&&(e.response=Tr.prepareResponse(e.response,"application/json",!0),e.status=e.response.status),e}async get(e,r,n={},i={},s=!0){const o=Sw(r),l={...n,accept:o};try{const g=await this.bc.get(e,Fw(r),l);return Tr.prepareResponse(g,o,s,i)}catch(g){throw Tr.prepareResponseError(g)}}async post(e,r,n={},i,s=!0){const o={"content-type":"application/json",...Dh(n)};try{const l=await this.bc.post(e,Tr.serializeData(r,o),i,o);return Tr.prepareResponse(l,"application/json",s)}catch(l){throw Tr.prepareResponseError(l)}}async delete(e,r,n={},i=!0){const s={"content-type":"application/json",...Dh(n)},o=await this.bc.delete(e,Tr.serializeData(r,s),void 0,s);return Tr.prepareResponse(o,"application/json",i)}}function kw(t="",e){const r={};return t===""||(r[e]=t),r}function Rw(t){return typeof t.get=="function"}class kc{constructor(e,r,n,i,s={}){if(Rw(r))this.c=new Tr(r);else{let o;typeof r=="string"?o=kw(r,e):o=r,this.c=new Tr(o,n,i,s)}this.intDecoding=Ca.DEFAULT}setIntEncoding(e){this.intDecoding=e}getIntEncoding(){return this.intDecoding}}function Bw(t){return t===void 0||t==null||typeof t!="object"&&typeof t!="function"}function kf(t,e){let r;if(t instanceof Uint8Array)r=e?t:O.Buffer.from(t).toString("base64");else if(typeof t.get_obj_for_encoding=="function")r=t.get_obj_for_encoding(e);else if(Array.isArray(t)){r=[];for(const n of t)r.push(kf(n,e))}else if(typeof t=="object"){const n={};for(const i of Object.keys(t))n[i]=kf(t[i],e);r=n}else if(Bw(t))r=t;else throw new Error(`Unsupported value: ${String(t)}`);return r}class ce{get_obj_for_encoding(e=!1){const r={};for(const n of Object.keys(this.attribute_map)){const i=this.attribute_map[n],s=this[n];typeof s<"u"&&(r[i]=s===null?null:kf(s,e))}return r}}let Bg=class Tg extends ce{constructor({address:e,amount:r,amountWithoutPendingRewards:n,minBalance:i,pendingRewards:s,rewards:o,round:l,status:g,totalAppsOptedIn:d,totalAssetsOptedIn:k,totalCreatedApps:C,totalCreatedAssets:j,appsLocalState:X,appsTotalExtraPages:H,appsTotalSchema:G,assets:D,authAddr:R,createdApps:w,createdAssets:T,incentiveEligible:W,lastHeartbeat:J,lastProposed:A,participation:P,rewardBase:M,sigType:se,totalBoxBytes:$,totalBoxes:he}){super(),this.address=e,this.amount=r,this.amountWithoutPendingRewards=n,this.minBalance=i,this.pendingRewards=s,this.rewards=o,this.round=l,this.status=g,this.totalAppsOptedIn=d,this.totalAssetsOptedIn=k,this.totalCreatedApps=C,this.totalCreatedAssets=j,this.appsLocalState=X,this.appsTotalExtraPages=H,this.appsTotalSchema=G,this.assets=D,this.authAddr=R,this.createdApps=w,this.createdAssets=T,this.incentiveEligible=W,this.lastHeartbeat=J,this.lastProposed=A,this.participation=P,this.rewardBase=M,this.sigType=se,this.totalBoxBytes=$,this.totalBoxes=he,this.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",minBalance:"min-balance",pendingRewards:"pending-rewards",rewards:"rewards",round:"roun
151d",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",createdApps:"created-apps",createdAssets:"created-assets",incentiveEligible:"incentive-eligible",lastHeartbeat:"last-heartbeat",lastProposed:"last-proposed",participation:"participation",rewardBase:"reward-base",sigType:"sig-type",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["amount-without-pending-rewards"]>"u")throw new Error(`Response is missing required field 'amount-without-pending-rewards': ${e}`);if(typeof e["min-balance"]>"u")throw new Error(`Response is missing required field 'min-balance': ${e}`);if(typeof e["pending-rewards"]>"u")throw new Error(`Response is missing required field 'pending-rewards': ${e}`);if(typeof e.rewards>"u")throw new Error(`Response is missing required field 'rewards': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.status>"u")throw new Error(`Response is missing required field 'status': ${e}`);if(typeof e["total-apps-opted-in"]>"u")throw new Error(`Response is missing required field 'total-apps-opted-in': ${e}`);if(typeof e["total-assets-opted-in"]>"u")throw new Error(`Response is missing required field 'total-assets-opted-in': ${e}`);if(typeof e["total-created-apps"]>"u")throw new Error(`Response is missing required field 'total-created-apps': ${e}`);if(typeof e["total-created-assets"]>"u")throw new Error(`Response is missing required field 'total-created-assets': ${e}`);return new Tg({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],minBalance:e["min-balance"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:typeof e["apps-local-state"]<"u"?e["apps-local-state"].map(Cc.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:typeof e["apps-total-schema"]<"u"?ti.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:typeof e.assets<"u"?e.assets.map(Ma.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],createdApps:typeof e["created-apps"]<"u"?e["created-apps"].map(Da.from_obj_for_encoding):void 0,createdAssets:typeof e["created-assets"]<"u"?e["created-assets"].map(Lg.from_obj_for_encoding):void 0,incentiveEligible:e["incentive-eligible"],lastHeartbeat:e["last-heartbeat"],lastProposed:e["last-proposed"],participation:typeof e.participation<"u"?Ig.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"]})}};class Rc extends ce{constructor({round:e,appLocalState:r,createdApp:n}){super(),this.round=e,this.appLocalState=r,this.createdApp=n,this.attribute_map={round:"round",appLocalState:"app-local-state",createdApp:"created-app"}}static from_obj_for_encoding(e){if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);return new Rc({round:e.round,appLocalState:typeof e["app-local-state"]<"u"?Cc.from_obj_for_encoding(e["app-local-state"]):void 0,createdApp:typeof e["created-app"]<"u"?$a.from_obj_for_encoding(e["created-app"]):void 0})}}class Na extends ce{constructor({assetHolding:e,assetParams:r}){super(),this.assetHolding=e,this.assetParams=r,this.attribute_map={assetHolding:"asset-holding",assetParams:"asset-params"}}static from_obj_for_encoding(e){if(typeof e["asset-holding"]>"u")throw new Error(`Response is missing required field 'asset-holding': ${e}`);return new Na({assetHolding:Ma.from_obj_for_encoding(e["asset-holding"]),assetParams:typeof e["asset-params"]<"u"?za.from_obj_for_encoding(e["asset-params"]):void 0})}}class Bc extends ce{constructor({round:e,assetHolding:r,createdAsset:n}){super(),this.round=e,this.assetHolding=r,this.createdAsset=n,this.attribute_map={round:"roun
151d",assetHolding:"asset-holding",createdAsset:"created-asset"}}static from_obj_for_encoding(e){if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);return new Bc({round:e.round,assetHolding:typeof e["asset-holding"]<"u"?Ma.from_obj_for_encoding(e["asset-holding"]):void 0,createdAsset:typeof e["created-asset"]<"u"?za.from_obj_for_encoding(e["created-asset"]):void 0})}}class Tc extends ce{constructor({round:e,assetHoldings:r,nextToken:n}){super(),this.round=e,this.assetHoldings=r,this.nextToken=n,this.attribute_map={round:"round",assetHoldings:"asset-holdings",nextToken:"next-token"}}static from_obj_for_encoding(e){if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);return new Tc({round:e.round,assetHoldings:typeof e["asset-holdings"]<"u"?e["asset-holdings"].map(Na.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}let Ig=class Cg extends ce{constructor({selectionParticipationKey:e,voteFirstValid:r,voteKeyDilution:n,voteLastValid:i,voteParticipationKey:s,stateProofKey:o}){super(),this.selectionParticipationKey=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.voteFirstValid=r,this.voteKeyDilution=n,this.voteLastValid=i,this.voteParticipationKey=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.stateProofKey=typeof o=="string"?new Uint8Array(O.Buffer.from(o,"base64")):o,this.attribute_map={selectionParticipationKey:"selection-participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"}}static from_obj_for_encoding(e){if(typeof e["selection-participation-key"]>"u")throw new Error(`Response is missing required field 'selection-participation-key': ${e}`);if(typeof e["vote-first-valid"]>"u")throw new Error(`Response is missing required field 'vote-first-valid': ${e}`);if(typeof e["vote-key-dilution"]>"u")throw new Error(`Response is missing required field 'vote-key-dilution': ${e}`);if(typeof e["vote-last-valid"]>"u")throw new Error(`Response is missing required field 'vote-last-valid': ${e}`);if(typeof e["vote-participation-key"]>"u")throw new Error(`Response is missing required field 'vote-participation-key': ${e}`);return new Cg({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}},Ic=class jg extends ce{constructor({address:e,delta:r}){super(),this.address=e,this.delta=r,this.attribute_map={address:"address",delta:"delta"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(!Array.isArray(e.delta))throw new Error(`Response is missing required array field 'delta': ${e}`);return new jg({address:e.address,delta:e.delta.map(Xa.from_obj_for_encoding)})}};class Ua extends ce{constructor({applicationIndex:e,logs:r,txid:n}){super(),this.applicationIndex=e,this.logs=r,this.txid=n,this.attribute_map={applicationIndex:"application-index",logs:"logs",txid:"txId"}}static from_obj_for_encoding(e){if(typeof e["application-index"]>"u")throw new Error(`Response is missing required field 'application-index': ${e}`);if(!Array.isArray(e.logs))throw new Error(`Response is missing required array field 'logs': ${e}`);if(typeof e.txId>"u")throw new Error(`Response is missing required field 'txId': ${e}`);return new Ua({applicationIndex:e["application-index"],logs:e.logs,txid:e.txId})}}let Da=class Ng extends ce{constructor({id:e,params:r}){super(),this.id=e,this.params=r,this.attribute_map={id:"id",params:"params"}}static from_obj_for_encoding(e){if(typeof e.id>"u")throw new Error(`Response is missing required field 'id': ${e}`);if(typeof e.params>"u")throw new Error(`Response is missing required field 'params': ${e}`);return new Ng({id:e.id,params:$a.from_obj_for_encoding(e.params)})}};class Pa extends ce{constructor({id:e,appBoxes:r,appGlobals:n,appLocals:i}){super(),this.id=e,this.appBoxes=r,this.appGlobals=n,this.appLocals=i,this.attribute_map={id:"id",appBoxes:"app-boxes",appGlobals:"app-globals",appLocals:"app-locals"}}static from_obj_for_encoding(e){if(typeof e.id>"u")throw new Error(`Response is missing required field 'id': ${e}`);return new Pa({id:e.id,appBoxes:typeof e["app-boxes"]<"u"?Bi.from_obj_for_encoding(e["app-boxes"]):void 0,appGlobals:typeof e["app-globals"]<"u"?Bi.from_obj_for_encoding(e["app-globals"]):void 0,appLocals:typeof e["app-locals"]<"u"?e["app-locals"].map(Bi.from_obj_for_encoding):void 0})}}class Bi extends ce{constructor({kvs:e,account:r}){super(),this.kvs=e,this.account=r,this.attribute_map={kvs:"kvs",account:"account"}}static from_obj_for_encoding(e){if(!Array.isArray(e.kvs))throw new Error(`Response is missing required array field 'kvs': ${e}`);return new Bi({kvs:e.kvs.map(Ha.from_obj_for_encoding),account:e.account})}}class La extends ce{constructor({account:e,app:r}){super(),this.account=e,this.app=r,this.attribute_map={account:"account",app:"app"}}static from_obj_for_encoding(e){if(typeof e.account>"u")throw new Error(`Response is missing required field 'account': ${e}`);if(typeof e.app>"u")throw new Error(`Response is missing required field 'app': ${e}`);
151return new La({account:e.account,app:e.app})}}let Cc=class Ug extends ce{constructor({id:e,schema:r,keyValue:n}){super(),this.id=e,this.schema=r,this.keyValue=n,this.attribute_map={id:"id",schema:"schema",keyValue:"key-value"}}static from_obj_for_encoding(e){if(typeof e.id>"u")throw new Error(`Response is missing required field 'id': ${e}`);if(typeof e.schema>"u")throw new Error(`Response is missing required field 'schema': ${e}`);return new Ug({id:e.id,schema:ti.from_obj_for_encoding(e.schema),keyValue:typeof e["key-value"]<"u"?e["key-value"].map(Kc.from_obj_for_encoding):void 0})}},$a=class Dg extends ce{constructor({approvalProgram:e,clearStateProgram:r,creator:n,extraProgramPages:i,globalState:s,globalStateSchema:o,localStateSchema:l}){super(),this.approvalProgram=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.clearStateProgram=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.creator=n,this.extraProgramPages=i,this.globalState=s,this.globalStateSchema=o,this.localStateSchema=l,this.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"}}static from_obj_for_encoding(e){if(typeof e["approval-program"]>"u")throw new Error(`Response is missing required field 'approval-program': ${e}`);if(typeof e["clear-state-program"]>"u")throw new Error(`Response is missing required field 'clear-state-program': ${e}`);if(typeof e.creator>"u")throw new Error(`Response is missing required field 'creator': ${e}`);return new Dg({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:typeof e["global-state"]<"u"?e["global-state"].map(Kc.from_obj_for_encoding):void 0,globalStateSchema:typeof e["global-state-schema"]<"u"?ti.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:typeof e["local-state-schema"]<"u"?ti.from_obj_for_encoding(e["local-state-schema"]):void 0})}};class Oa extends ce{constructor({appStateType:e,key:r,operation:n,account:i,newValue:s}){super(),this.appStateType=e,this.key=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.operation=n,this.account=i,this.newValue=s,this.attribute_map={appStateType:"app-state-type",key:"key",operation:"operation",account:"account",newValue:"new-value"}}static from_obj_for_encoding(e){if(typeof e["app-state-type"]>"u")throw new Error(`Response is missing required field 'app-state-type': ${e}`);if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.operation>"u")throw new Error(`Response is missing required field 'operation': ${e}`);return new Oa({appStateType:e["app-state-type"],key:e.key,operation:e.operation,account:e.account,newValue:typeof e["new-value"]<"u"?ai.from_obj_for_encoding(e["new-value"]):void 0})}}let ti=class Pg extends ce{constructor({numUint:e,numByteSlice:r}){super(),this.numUint=e,this.numByteSlice=r,this.attribute_map={numUint:"num-uint",numByteSlice:"num-byte-slice"}}static from_obj_for_encoding(e){if(typeof e["num-uint"]>"u")throw new Error(`Response is missing required field 'num-uint': ${e}`);if(typeof e["num-byte-slice"]>"u")throw new Error(`Response is missing required field 'num-byte-slice': ${e}`);return new Pg({numUint:e["num-uint"],numByteSlice:e["num-byte-slice"]})}},Lg=class $g extends ce{constructor({index:e,params:r}){super(),this.index=e,this.params=r,this.attribute_map={index:"index",params:"params"}}static from_obj_for_encoding(e){if(typeof e.index>"u")throw new Error(`Response is missing required field 'index': ${e}`);if(typeof e.params>"u")throw new Error(`Response is missing required field 'params': ${e}`);return new $g({index:e.index,params:za.from_obj_for_encoding(e.params)})}},Ma=class Og extends ce{constructor({amount:e,assetId:r,isFrozen:n}){super(),this.amount=e,this.assetId=r,this.isFrozen=n,this.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen"}}static from_obj_for_encoding(e){if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["asset-id"]>"u")throw new Error(`Response is missing required field 'asset-id': ${e}`);if(typeof e["is-frozen"]>"u")throw new Error(`Response is missing required field 'is-frozen': ${e}`);return new Og({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"]})}};class qa extends ce{constructor({account:e,asset:r}){super(),this.account=e,this.asset=r,this.attribute_map={account:"account",asset:"asset"}}static from_obj_for_encoding(e){if(typeof e.account>"u")throw new Error(`Response is missing required field 'account': ${e}`);if(typeof e.asset>"u")throw new Error(`Response is missing required field 'asset': ${e}`);return new qa({account:e.account,asset:e.asset})}}let za=class Mg extends ce{constructor({creator:e,decimals:r,total:n,clawback:i,defaultFrozen:s,freeze:o,manager:l,metadataHash:g,name:d,nameB64:k,reserve:C,unitName:j,unitNameB64:X,url:H,urlB64:G}){super(),this.creator=e,this.decimals=r,this.total=n,this.clawback=i,this.defaultFrozen=s,this.freeze=o,this.manager=l,this.metadataHash=typeof g=="string"?new Uint8Array(O.Buffer.from(g,"base64")):g,this.name=d,this.nameB64=typeof k=="string"?new Uint8Array(O.Buffer.from(k,"base64")):k,this.reserve=C,this.unitName=j,this.unitNameB64=typeof X=="string"?new Uint8Array(O.Buffer.from(X,"base64")):X,this.url=H,this.urlB64=typeof G=="string"?new Uint8Array(O.Buffer.from(G,"base64")):G,this.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"}}static from_obj_for_encoding(e){if(typeof e.creator>"u")throw new Error(`Response is missing required field 'creator': ${e}`);if(typeof e.decimals>"u")throw new Error(`Response is missing required field 'decimals': ${e}`);if(typeof e.total>"u")throw new Error(`Response is missing required field 'total': ${e}`);return new Mg({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}};class Ha extends ce{constructor({key:e,value:r}){super(),this.key=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.value=r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new Ha({key:e.key,value:ai.from_obj_for_encoding(e.value)})}}class ai extends ce{constructor({type:e,bytes:r,uint:n}){super(),this.type=e,this.bytes=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.uint=n,this.attribute_map={type:"type",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if(typeof e.type>"u")throw new Error(`Response is missing required field 'type': ${e}`);return new ai({type:e.type,bytes:e.bytes,uint:e.uint})}}class jc extends ce{constructor({blockhash:e}){super(),this.blockhash=e,this.attribute_map={blockhash:"blockHash"}}static from_obj_for_encoding(e){if(typeof e.blockHash>"u")throw new Error(`Response is missing required field 'blockHash': ${e}`);return new jc({blockhash:e.blockHash})}}class Nc extends ce{constructor({logs:e}){super(),this.logs=e,this.attribute_map={logs:"logs"}}static from_obj_for_encoding(e){if(!Array.isArray(e.logs))throw new Error(`Response is missing required array field 'logs': ${e}`);return new Nc({logs:e.logs.map(Ua.from_obj_for_encoding)})}}class Uc extends ce{constructor({block:e,cert:r}){super(),this.block=e,this.cert=r,this.attribute_map={block:"block",cert:"cert"}}static from_obj_for_encoding(e){if(typeof e.block>"u")throw new Error(`Response is missing required field 'block': ${e}`);return new Uc({block:e.block,cert:e.cert})}}class Dc extends ce{constructor({blocktxids:e}){super(),this.blocktxids=e,this.attribute_map={blocktxids:"blockTxids"}}static from_obj_for_encoding(e){if(!Array.isArray(e.blockTxids))throw new Error(`Response is missing required array field 'blockTxids': ${e}`);return new Dc({blocktxids:e.blockTxids})}}let qg=class zg extends ce{constructor({name:e,round:r,value:n}){super(),this.name=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.round=r,this.value=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.attribute_map={name:"name",round:"roun
vendor: 9,754 bytes, line 151
151d",value:"value"}}static from_obj_for_encoding(e){if(typeof e.name>"u")throw new Error(`Response is missing required field 'name': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new zg({name:e.name,round:e.round,value:e.value})}},Hg=class Kg extends ce{constructor({name:e}){super(),this.name=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.attribute_map={name:"name"}}static from_obj_for_encoding(e){if(typeof e.name>"u")throw new Error(`Response is missing required field 'name': ${e}`);return new Kg({name:e.name})}};class Ka extends ce{constructor({app:e,name:r}){super(),this.app=e,this.name=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.attribute_map={app:"app",name:"name"}}static from_obj_for_encoding(e){if(typeof e.app>"u")throw new Error(`Response is missing required field 'app': ${e}`);if(typeof e.name>"u")throw new Error(`Response is missing required field 'name': ${e}`);return new Ka({app:e.app,name:e.name})}}let Vg=class Gg extends ce{constructor({boxes:e}){super(),this.boxes=e,this.attribute_map={boxes:"boxes"}}static from_obj_for_encoding(e){if(!Array.isArray(e.boxes))throw new Error(`Response is missing required array field 'boxes': ${e}`);return new Gg({boxes:e.boxes.map(Hg.from_obj_for_encoding)})}};class Va extends ce{constructor({branch:e,buildNumber:r,channel:n,commitHash:i,major:s,minor:o}){super(),this.branch=e,this.buildNumber=r,this.channel=n,this.commitHash=i,this.major=s,this.minor=o,this.attribute_map={branch:"branch",buildNumber:"build_number",channel:"channel",commitHash:"commit_hash",major:"major",minor:"minor"}}static from_obj_for_encoding(e){if(typeof e.branch>"u")throw new Error(`Response is missing required field 'branch': ${e}`);if(typeof e.build_number>"u")throw new Error(`Response is missing required field 'build_number': ${e}`);if(typeof e.channel>"u")throw new Error(`Response is missing required field 'channel': ${e}`);if(typeof e.commit_hash>"u")throw new Error(`Response is missing required field 'commit_hash': ${e}`);if(typeof e.major>"u")throw new Error(`Response is missing required field 'major': ${e}`);if(typeof e.minor>"u")throw new Error(`Response is missing required field 'minor': ${e}`);return new Va({branch:e.branch,buildNumber:e.build_number,channel:e.channel,commitHash:e.commit_hash,major:e.major,minor:e.minor})}}class Pc extends ce{constructor({hash:e,result:r,sourcemap:n}){super(),this.hash=e,this.result=r,this.sourcemap=n,this.attribute_map={hash:"hash",result:"result",sourcemap:"sourcemap"}}static from_obj_for_encoding(e){if(typeof e.hash>"u")throw new Error(`Response is missing required field 'hash': ${e}`);if(typeof e.result>"u")throw new Error(`Response is missing required field 'result': ${e}`);return new Pc({hash:e.hash,result:e.result,sourcemap:e.sourcemap})}}class Lc extends ce{constructor({result:e}){super(),this.result=e,this.attribute_map={result:"result"}}static from_obj_for_encoding(e){if(typeof e.result>"u")throw new Error(`Response is missing required field 'result': ${e}`);return new Lc({result:e.result})}}class Ga extends ce{constructor({accounts:e,apps:r,latestTimestamp:n,protocolVersion:i,round:s,sources:o,txns:l}){super(),this.accounts=e,this.apps=r,this.latestTimestamp=n,this.protocolVersion=i,this.round=s,this.sources=o,this.txns=l,this.attribute_map={accounts:"accounts",apps:"apps",latestTimestamp:"latest-timestamp",protocolVersion:"protocol-version",round:"round",sources:"sources",txns:"txns"}}static from_obj_for_encoding(e){if(!Array.isArray(e.accounts))throw new Error(`Response is missing required array field 'accounts': ${e}`);if(!Array.isArray(e.apps))throw new Error(`Response is missing required array field 'apps': ${e}`);if(typeof e["latest-timestamp"]>"u")throw new Error(`Response is missing required field 'latest-timestamp': ${e}`);if(typeof e["protocol-version"]>"u")throw new Error(`Response is missing required field 'protocol-version': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(!Array.isArray(e.sources))throw new Error(`Response is missing required array field 'sources': ${e}`);if(!Array.isArray(e.txns))throw new Error(`Response is missing required array field 'txns': ${e}`);return new Ga({accounts:e.accounts.map(Bg.from_obj_for_encoding),apps:e.apps.map(Da.from_obj_for_encoding),latestTimestamp:e["latest-timestamp"],protocolVersion:e["protocol-version"],round:e.round,sources:e.sources.map(Wa.from_obj_for_encoding),txns:e.txns})}}class $c extends ce{constructor({error:e,protocolVersion:r,txns:n}){super(),this.error=e,this.protocolVersion=r,this.txns=n,this.attribute_map={error:"error",protocolVersion:"protocol-version",txns:"txns"}}static from_obj_for_encoding(e){if(typeof e.error>"u")throw new Error(`Response is missing required field 'error': ${e}`);if(typeof e["protocol-version"]>"u")throw new Error(`Response is missing required field 'protocol-version': ${e}`);if(!Array.isArray(e.txns))throw new Error(`Response is missing required array field 'txns': ${e}`);return new $c({error:e.error,protocolVersion:e["protocol-version"],txns:e.txns.map(Ya.from_obj_for_encoding)})}}class Wa extends ce{constructor({fieldName:e,source:r,txnIndex:n,appIndex:i}){super(),this.fieldName=e,this.source=r,this.txnIndex=n,this.appIndex=i,this.attribute_map={fieldName:"field-name",source:"source",txnIndex:"txn-index",appIndex:"app-index"}}static from_obj_for_encoding(e){if(typeof e["field-name"]>"u")throw new Error(`Response is missing required field 'field-name': ${e}`);if(typeof e.source>"u")throw new Error(`Response is missing required field 'source': ${e}`);if(typeof e["txn-index"]>"u")throw new Error(`Response is missing required field 'txn-index': ${e}`);if(typeof e["app-index"]>"u")throw new Error(`Response is missing required field 'app-index': ${e}`);return new Wa({fieldName:e["field-name"],source:e.source,txnIndex:e["txn-index"],appIndex:e["app-index"]})}}class Us extends ce{constructor({line:e,pc:r,stack:n,error:i,scratch:s}){super(),this.line=e,this.pc=r,this.stack=n,this.error=i,this.scratch=s,this.attribute_map={line:"line",pc:"pc",stack:"stack",error:"error",scratch:"scratch"}}static from_obj_for_encoding(e){if(typeof e.line>"u")throw new Error(`Response is missing required field 'line': ${e}`);if(typeof e.pc>"u")throw new Error(`Response is missing required field 'pc': ${e}`);if(!Array.isArray(e.stack))throw new Error(`Response is missing required array field 'stack': ${e}`);return new Us({line:e.line,pc:e.pc,stack:e.stack.map(ua.from_obj_for_encoding),error:e.error,scratch:typeof e.scratch<"u"?e.scratch.map(ua.from_obj_for_encoding):void 0})}}class Ya extends ce{constructor({disassembly:e,appCallMessages:r,appCallTrace:n,budgetAdded:i,budgetConsumed:s,globalDelta:o,localDeltas:l,logicSigDisassembly:g,logicSigMessages:d,logicSigTrace:k,logs:C}){super(),this.disassembly=e,this.appCallMessages=r,this.appCallTrace=n,this.budgetAdded=i,this.budgetConsumed=s,this.globalDelta=o,this.localDeltas=l,this.logicSigDisassembly=g,this.logicSigMessages=d,this.logicSigTrace=k,this.logs=C,this.attribute_map={disassembly:"disassembly",appCallMessages:"app-call-messages",appCallTrace:"app-call-trace",budgetAdded:"budget-added",budgetConsumed:"budget-consumed",globalDelta:"global-delta",localDeltas:"local-deltas",logicSigDisassembly:"logic-sig-disassembly",logicSigMessages:"logic-sig-messages",logicSigTrace:"logic-sig-trace",logs:"logs"}}static from_obj_for_encoding(e){if(!Array.isArray(e.disassembly))throw new Error(`Response is missing required array field 'disassembly': ${e}`);return new Ya({disassembly:e.disassembly,appCallMessages:e["app-call-messages"],appCallTrace:typeof e["app-call-trace"]<"u"?e["app-call-trace"].map(Us.from_obj_for_encoding):void 0,budgetAdded:e["budget-added"],budgetConsumed:e["budget-consumed"],globalDelta:typeof e["global-delta"]<"u"?e["global-delta"].map(Xa.from_obj_for_encoding):void 0,localDeltas:typeof e["local-deltas"]<"u"?e["local-deltas"].map(Ic.from_obj_for_encoding):void 0,logicSigDisassembly:e["logic-sig-disassembly"],logicSigMessages:e["logic-sig-messages"],logicSigTrace:typeof e["logic-sig-trace"]<"u"?e["logic-sig-trace"].map(Us.from_obj_for_encoding):void 0,logs:e.logs})}}let Tw=class Wg extends ce{constructor({message:e,data:r}){super(),this.message=e,this.data=r,this.attribute_map={message:"message",data:"data"}}static from_obj_for_encoding(e){if(typeof e.message>"u")throw new Error(`Response is missing required field 'message': ${e}`);return new Wg({message:e.message,data:e.data})}},Yg=class Xg extends ce{constructor({action:e,bytes:r,uint:n}){super(),this.action=e,this.bytes=r,this.uint=n,this.attribute_map={action:"action",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if(typeof e.action>"u")throw new Error(`Response is missing required field 'action': ${e}`);return new Xg({action:e.action,bytes:e.bytes,uint:e.uint})}},Xa=class Qg extends ce{constructor({key:e,value:r}){super(),this.key=e,this.value=r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new Qg({key:e.key,value:Yg.from_obj_for_encoding(e.value)})}};class Qa extends ce{constructor({offset:e}){super(),this.offset=e,this.attribute_map={offset:"offset"}}static from_obj_for_encoding(e){if(typeof e.offset>"u")throw new Error(`Response is missing required field 'offset': ${e}`);return new Qa({offset:e.offset})}}class Ja extends ce{constructor({round:e}
151){super(),this.round=e,this.attribute_map={round:"round"}}static from_obj_for_encoding(e){if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);return new Ja({round:e.round})}}class Oc extends ce{constructor({key:e,value:r}){super(),this.key=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.value=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){return new Oc({key:e.key,value:e.value})}}class Za extends ce{constructor({delta:e,ids:r}){super(),this.delta=e,this.ids=r,this.attribute_map={delta:"Delta",ids:"Ids"}}static from_obj_for_encoding(e){if(typeof e.Delta>"u")throw new Error(`Response is missing required field 'Delta': ${e}`);if(!Array.isArray(e.Ids))throw new Error(`Response is missing required array field 'Ids': ${e}`);return new Za({delta:e.Delta,ids:e.Ids})}}let Iw=class Jg extends ce{constructor({index:e,proof:r,treedepth:n}){super(),this.index=e,this.proof=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.treedepth=n,this.attribute_map={index:"index",proof:"proof",treedepth:"treedepth"}}static from_obj_for_encoding(e){if(typeof e.index>"u")throw new Error(`Response is missing required field 'index': ${e}`);if(typeof e.proof>"u")throw new Error(`Response is missing required field 'proof': ${e}`);if(typeof e.treedepth>"u")throw new Error(`Response is missing required field 'treedepth': ${e}`);return new Jg({index:e.index,proof:e.proof,treedepth:e.treedepth})}};class Mc extends ce{constructor({catchupTime:e,lastRound:r,lastVersion:n,nextVersion:i,nextVersionRound:s,nextVersionSupported:o,stoppedAtUnsupportedRound:l,timeSinceLastRound:g,catchpoint:d,catchpointAcquiredBlocks:k,catchpointProcessedAccounts:C,catchpointProcessedKvs:j,catchpointTotalAccounts:X,catchpointTotalBlocks:H,catchpointTotalKvs:G,catchpointVerifiedAccounts:D,catchpointVerifiedKvs:R,lastCatchpoint:w,upgradeDelay:T,upgradeNextProtocolVoteBefore:W,upgradeNoVotes:J,upgradeNodeVote:A,upgradeVoteRounds:P,upgradeVotes:M,upgradeVotesRequired:se,upgradeYesVotes:$}){super(),this.catchupTime=e,this.lastRound=r,this.lastVersion=n,this.nextVersion=i,this.nextVersionRound=s,this.nextVersionSupported=o,this.stoppedAtUnsupportedRound=l,this.timeSinceLastRound=g,this.catchpoint=d,this.catchpointAcquiredBlocks=k,this.catchpointProcessedAccounts=C,this.catchpointProcessedKvs=j,this.catchpointTotalAccounts=X,this.catchpointTotalBlocks=H,this.catchpointTotalKvs=G,this.catchpointVerifiedAccounts=D,this.catchpointVerifiedKvs=R,this.lastCatchpoint=w,this.upgradeDelay=T,this.upgradeNextProtocolVoteBefore=W,this.upgradeNoVotes=J,this.upgradeNodeVote=A,this.upgradeVoteRounds=P,this.upgradeVotes=M,this.upgradeVotesRequired=se,this.upgradeYesVotes=$,this.attribute_map={catchupTime:"catchup-time",lastRound:"last-round",lastVersion:"last-version",nextVersion:"next-version",nextVersionRound:"next-version-round",nextVersionSupported:"next-version-supported",stoppedAtUnsupportedRound:"stopped-at-unsupported-round",timeSinceLastRound:"time-since-last-round",catchpoint:"catchpoint",catchpointAcquiredBlocks:"catchpoint-acquired-blocks",catchpointProcessedAccounts:"catchpoint-processed-accounts",catchpointProcessedKvs:"catchpoint-processed-kvs",catchpointTotalAccounts:"catchpoint-total-accounts",catchpointTotalBlocks:"catchpoint-total-blocks",catchpointTotalKvs:"catchpoint-total-kvs",catchpointVerifiedAccounts:"catchpoint-verified-accounts",catchpointVerifiedKvs:"catchpoint-verified-kvs",lastCatchpoint:"last-catchpoint",upgradeDelay:"upgrade-delay",upgradeNextProtocolVoteBefore:"upgrade-next-protocol-vote-before",upgradeNoVotes:"upgrade-no-votes",upgradeNodeVote:"upgrade-node-vote",upgradeVoteRounds:"upgrade-vote-rounds",upgradeVotes:"upgrade-votes",upgradeVotesRequired:"upgrade-votes-required",upgradeYesVotes:"upgrade-yes-votes"}}static from_obj_for_encoding(e){if(typeof e["catchup-time"]>"u")throw new Error(`Response is missing required field 'catchup-time': ${e}`);if(typeof e["last-round"]>"u")throw new Error(`Response is missing required field 'last-round': ${e}`);if(typeof e["last-version"]>"u")throw new Error(`Response is missing required field 'last-version': ${e}`);if(typeof e["next-version"]>"u")throw new Error(`Response is missing required field 'next-version': ${e}`);if(typeof e["next-version-round"]>"u")throw new Error(`Response is missing required field 'next-version-round': ${e}`);if(typeof e["next-version-supported"]>"u")throw new Error(`Response is missing required field 'next-version-supported': ${e}`);if(typeof e["stopped-at-unsupported-round"]>"u")throw new Error(`Response is missing required field 'stopped-at-unsupported-round': ${e}`);if(typeof e["time-since-last-round"]>"u")throw new Error(`Response is missing required field 'time-since-last-round': ${e}`);return new Mc({catchupTime:e["catchup-time"],lastRound:e["last-round"],lastVersion:e["last-version"],nextVersion:e["next-version"],nextVersionRound:e["next-version-round"],nextVersionSupported:e["next-version-supported"],stoppedAtUnsupportedRound:e["stopped-at-unsupported-round"],timeSinceLastRound:e["time-since-last-round"],catchpoint:e.catchpoint,catchpointAcquiredBlocks:e["catchpoint-acquired-blocks"],cat
151chpointProcessedAccounts:e["catchpoint-processed-accounts"],catchpointProcessedKvs:e["catchpoint-processed-kvs"],catchpointTotalAccounts:e["catchpoint-total-accounts"],catchpointTotalBlocks:e["catchpoint-total-blocks"],catchpointTotalKvs:e["catchpoint-total-kvs"],catchpointVerifiedAccounts:e["catchpoint-verified-accounts"],catchpointVerifiedKvs:e["catchpoint-verified-kvs"],lastCatchpoint:e["last-catchpoint"],upgradeDelay:e["upgrade-delay"],upgradeNextProtocolVoteBefore:e["upgrade-next-protocol-vote-before"],upgradeNoVotes:e["upgrade-no-votes"],upgradeNodeVote:e["upgrade-node-vote"],upgradeVoteRounds:e["upgrade-vote-rounds"],upgradeVotes:e["upgrade-votes"],upgradeVotesRequired:e["upgrade-votes-required"],upgradeYesVotes:e["upgrade-yes-votes"]})}}class Ds extends ce{constructor({poolError:e,txn:r,applicationIndex:n,assetClosingAmount:i,assetIndex:s,closeRewards:o,closingAmount:l,confirmedRound:g,globalStateDelta:d,innerTxns:k,localStateDelta:C,logs:j,receiverRewards:X,senderRewards:H}){super(),this.poolError=e,this.txn=r,this.applicationIndex=n,this.assetClosingAmount=i,this.assetIndex=s,this.closeRewards=o,this.closingAmount=l,this.confirmedRound=g,this.globalStateDelta=d,this.innerTxns=k,this.localStateDelta=C,this.logs=j,this.receiverRewards=X,this.senderRewards=H,this.attribute_map={poolError:"pool-error",txn:"txn",applicationIndex:"application-index",assetClosingAmount:"asset-closing-amount",assetIndex:"asset-index",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",globalStateDelta:"global-state-delta",innerTxns:"inner-txns",localStateDelta:"local-state-delta",logs:"logs",receiverRewards:"receiver-rewards",senderRewards:"sender-rewards"}}static from_obj_for_encoding(e){if(typeof e["pool-error"]>"u")throw new Error(`Response is missing required field 'pool-error': ${e}`);if(typeof e.txn>"u")throw new Error(`Response is missing required field 'txn': ${e}`);return new Ds({poolError:e["pool-error"],txn:e.txn,applicationIndex:e["application-index"],assetClosingAmount:e["asset-closing-amount"],assetIndex:e["asset-index"],closeRewards:e["close-rewards"],closingAmount:e["closing-amount"],confirmedRound:e["confirmed-round"],globalStateDelta:typeof e["global-state-delta"]<"u"?e["global-state-delta"].map(Xa.from_obj_for_encoding):void 0,innerTxns:typeof e["inner-txns"]<"u"?e["inner-txns"].map(Ds.from_obj_for_encoding):void 0,localStateDelta:typeof e["local-state-delta"]<"u"?e["local-state-delta"].map(Ic.from_obj_for_encoding):void 0,logs:e.logs,receiverRewards:e["receiver-rewards"],senderRewards:e["sender-rewards"]})}}class qc extends ce{constructor({topTransactions:e,totalTransactions:r}){super(),this.topTransactions=e,this.totalTransactions=r,this.attribute_map={topTransactions:"top-transactions",totalTransactions:"total-transactions"}}static from_obj_for_encoding(e){if(!Array.isArray(e["top-transactions"]))throw new Error(`Response is missing required array field 'top-transactions': ${e}`);if(typeof e["total-transactions"]>"u")throw new Error(`Response is missing required field 'total-transactions': ${e}`);return new qc({topTransactions:e["top-transactions"],totalTransactions:e["total-transactions"]})}}class zc extends ce{constructor({txid:e}){super(),this.txid=e,this.attribute_map={txid:"txId"}}static from_obj_for_encoding(e){if(typeof e.txId>"u")throw new Error(`Response is missing required field 'txId': ${e}`);return new zc({txid:e.txId})}}class el extends ce{constructor({newValue:e,slot:r}){super(),this.newValue=e,this.slot=r,this.attribute_map={newValue:"new-value",slot:"slot"}}static from_obj_for_encoding(e){if(typeof e["new-value"]>"u")throw new Error(`Response is missing required field 'new-value': ${e}`);if(typeof e.slot>"u")throw new Error(`Response is missing required field 'slot': ${e}`);return new el({newValue:ai.from_obj_for_encoding(e["new-value"]),slot:e.slot})}}class tl extends ce{constructor({appInitialStates:e}){super(),this.appInitialStates=e,this.attribute_map={appInitialStates:"app-initial-states"}}static from_obj_for_encoding(e){return new tl({appInitialStates:typeof e["app-initial-states"]<"u"?e["app-initial-states"].map(Pa.from_obj_for_encoding):void 0})}}class Gs extends ce{constructor({txnGroups:e,allowEmptySignatures:r,allowMoreLogging:n,allowUnnamedResources:i,execTraceConfig:s,extraOpcodeBudget:o,fixSigners:l,round:g}){super(),this.txnGroups=e,this.allowEmptySignatures=r,this.allowMoreLogging=n,this.allowUnnamedResources=i,this.execTraceConfig=s,this.extraOpcodeBudget=o,this.fixSigners=l,this.round=g,this.attribute_map={txnGroups:"txn-groups",allowEmptySignatures:"allow-empty-signatures",allowMoreLogging:"allow-more-logging",allowUnnamedResources:"allow-unnamed-resources",execTraceConfig:"exec-trace-config",extraOpcodeBudget:"extra-opcode-budget",fixSigners:"fix-signers",round:"roun
vendor: 11,019 bytes, line 151
151d"}}static from_obj_for_encoding(e){if(!Array.isArray(e["txn-groups"]))throw new Error(`Response is missing required array field 'txn-groups': ${e}`);return new Gs({txnGroups:e["txn-groups"].map(zi.from_obj_for_encoding),allowEmptySignatures:e["allow-empty-signatures"],allowMoreLogging:e["allow-more-logging"],allowUnnamedResources:e["allow-unnamed-resources"],execTraceConfig:typeof e["exec-trace-config"]<"u"?Ws.from_obj_for_encoding(e["exec-trace-config"]):void 0,extraOpcodeBudget:e["extra-opcode-budget"],fixSigners:e["fix-signers"],round:e.round})}}class zi extends ce{constructor({txns:e}){super(),this.txns=e,this.attribute_map={txns:"txns"}}static from_obj_for_encoding(e){if(!Array.isArray(e.txns))throw new Error(`Response is missing required array field 'txns': ${e}`);return new zi({txns:e.txns})}}class rl extends ce{constructor({lastRound:e,txnGroups:r,version:n,evalOverrides:i,execTraceConfig:s,initialStates:o}){super(),this.lastRound=e,this.txnGroups=r,this.version=n,this.evalOverrides=i,this.execTraceConfig=s,this.initialStates=o,this.attribute_map={lastRound:"last-round",txnGroups:"txn-groups",version:"version",evalOverrides:"eval-overrides",execTraceConfig:"exec-trace-config",initialStates:"initial-states"}}static from_obj_for_encoding(e){if(typeof e["last-round"]>"u")throw new Error(`Response is missing required field 'last-round': ${e}`);if(!Array.isArray(e["txn-groups"]))throw new Error(`Response is missing required array field 'txn-groups': ${e}`);if(typeof e.version>"u")throw new Error(`Response is missing required field 'version': ${e}`);return new rl({lastRound:e["last-round"],txnGroups:e["txn-groups"].map(nl.from_obj_for_encoding),version:e.version,evalOverrides:typeof e["eval-overrides"]<"u"?sl.from_obj_for_encoding(e["eval-overrides"]):void 0,execTraceConfig:typeof e["exec-trace-config"]<"u"?Ws.from_obj_for_encoding(e["exec-trace-config"]):void 0,initialStates:typeof e["initial-states"]<"u"?tl.from_obj_for_encoding(e["initial-states"]):void 0})}}class Ws extends ce{constructor({enable:e,scratchChange:r,stackChange:n,stateChange:i}){super(),this.enable=e,this.scratchChange=r,this.stackChange=n,this.stateChange=i,this.attribute_map={enable:"enable",scratchChange:"scratch-change",stackChange:"stack-change",stateChange:"state-change"}}static from_obj_for_encoding(e){return new Ws({enable:e.enable,scratchChange:e["scratch-change"],stackChange:e["stack-change"],stateChange:e["state-change"]})}}class nl extends ce{constructor({txnResults:e,appBudgetAdded:r,appBudgetConsumed:n,failedAt:i,failureMessage:s,unnamedResourcesAccessed:o}){super(),this.txnResults=e,this.appBudgetAdded=r,this.appBudgetConsumed=n,this.failedAt=i,this.failureMessage=s,this.unnamedResourcesAccessed=o,this.attribute_map={txnResults:"txn-results",appBudgetAdded:"app-budget-added",appBudgetConsumed:"app-budget-consumed",failedAt:"failed-at",failureMessage:"failure-message",unnamedResourcesAccessed:"unnamed-resources-accessed"}}static from_obj_for_encoding(e){if(!Array.isArray(e["txn-results"]))throw new Error(`Response is missing required array field 'txn-results': ${e}`);return new nl({txnResults:e["txn-results"].map(il.from_obj_for_encoding),appBudgetAdded:e["app-budget-added"],appBudgetConsumed:e["app-budget-consumed"],failedAt:e["failed-at"],failureMessage:e["failure-message"],unnamedResourcesAccessed:typeof e["unnamed-resources-accessed"]<"u"?Ys.from_obj_for_encoding(e["unnamed-resources-accessed"]):void 0})}}class il extends ce{constructor({txnResult:e,appBudgetConsumed:r,execTrace:n,fixedSigner:i,logicSigBudgetConsumed:s,unnamedResourcesAccessed:o}){super(),this.txnResult=e,this.appBudgetConsumed=r,this.execTrace=n,this.fixedSigner=i,this.logicSigBudgetConsumed=s,this.unnamedResourcesAccessed=o,this.attribute_map={txnResult:"txn-result",appBudgetConsumed:"app-budget-consumed",execTrace:"exec-trace",fixedSigner:"fixed-signer",logicSigBudgetConsumed:"logic-sig-budget-consumed",unnamedResourcesAccessed:"unnamed-resources-accessed"}}static from_obj_for_encoding(e){if(typeof e["txn-result"]>"u")throw new Error(`Response is missing required field 'txn-result': ${e}`);return new il({txnResult:Ds.from_obj_for_encoding(e["txn-result"]),appBudgetConsumed:e["app-budget-consumed"],execTrace:typeof e["exec-trace"]<"u"?Ps.from_obj_for_encoding(e["exec-trace"]):void 0,fixedSigner:e["fixed-signer"],logicSigBudgetConsumed:e["logic-sig-budget-consumed"],unnamedResourcesAccessed:typeof e["unnamed-resources-accessed"]<"u"?Ys.from_obj_for_encoding(e["unnamed-resources-accessed"]):void 0})}}class Ys extends ce{constructor({accounts:e,appLocals:r,apps:n,assetHoldings:i,assets:s,boxes:o,extraBoxRefs:l}){super(),this.accounts=e,this.appLocals=r,this.apps=n,this.assetHoldings=i,this.assets=s,this.boxes=o,this.extraBoxRefs=l,this.attribute_map={accounts:"accounts",appLocals:"app-locals",apps:"apps",assetHoldings:"asset-holdings",assets:"assets",boxes:"boxes",extraBoxRefs:"extra-box-refs"}}static from_obj_for_encoding(e){return new Ys({accounts:e.accounts,appLocals:typeof e["app-locals"]<"u"?e["app-locals"].map(La.from_obj_for_encoding):void 0,apps:e.apps,assetHoldings:typeof e["asset-holdings"]<"u"?e["asset-holdings"].map(qa.from_obj_for_encoding):void 0,assets:e.assets,boxes:typeof e.boxes<"u"?e.boxes.map(Ka.from_obj_for_encoding):void 0,extraBoxRefs:e["extra-box-refs"]})}}class sl extends ce{constructor({allowEmptySignatures:e,allowUnnamedResources:r,extraOpcodeBudget:n,fixSigners:i,maxLogCalls:s,maxLogSize:o}){super(),this.allowEmptySignatures=e,this.allowUnnamedResources=r,this.extraOpcodeBudget=n,this.fixSigners=i,this.maxLogCalls=s,this.maxLogSize=o,this.attribute_map={allowEmptySignatures:"allow-empty-signatures",allowUnnamedResources:"allow-unnamed-resources",extraOpcodeBudget:"extra-opcode-budget",fixSigners:"fix-signers",maxLogCalls:"max-log-calls",maxLogSize:"max-log-size"}}static from_obj_for_encoding(e){return new sl({allowEmptySignatures:e["allow-empty-signatures"],allowUnnamedResources:e["allow-unnamed-resources"],extraOpcodeBudget:e["extra-opcode-budget"],fixSigners:e["fix-signers"],maxLogCalls:e["max-log-calls"],maxLogSize:e["max-log-size"]})}}class Ti extends ce{constructor({pc:e,scratchChanges:r,spawnedInners:n,stackAdditions:i,stackPopCount:s,stateChanges:o}){super(),this.pc=e,this.scratchChanges=r,this.spawnedInners=n,this.stackAdditions=i,this.stackPopCount=s,this.stateChanges=o,this.attribute_map={pc:"pc",scratchChanges:"scratch-changes",spawnedInners:"spawned-inners",stackAdditions:"stack-additions",stackPopCount:"stack-pop-count",stateChanges:"state-changes"}}static from_obj_for_encoding(e){if(typeof e.pc>"u")throw new Error(`Response is missing required field 'pc': ${e}`);return new Ti({pc:e.pc,scratchChanges:typeof e["scratch-changes"]<"u"?e["scratch-changes"].map(el.from_obj_for_encoding):void 0,spawnedInners:e["spawned-inners"],stackAdditions:typeof e["stack-additions"]<"u"?e["stack-additions"].map(ai.from_obj_for_encoding):void 0,stackPopCount:e["stack-pop-count"],stateChanges:typeof e["state-changes"]<"u"?e["state-changes"].map(Oa.from_obj_for_encoding):void 0})}}class Ps extends ce{constructor({approvalProgramHash:e,approvalProgramTrace:r,clearStateProgramHash:n,clearStateProgramTrace:i,clearStateRollback:s,clearStateRollbackError:o,innerTrace:l,logicSigHash:g,logicSigTrace:d}){super(),this.approvalProgramHash=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.approvalProgramTrace=r,this.clearStateProgramHash=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.clearStateProgramTrace=i,this.clearStateRollback=s,this.clearStateRollbackError=o,this.innerTrace=l,this.logicSigHash=typeof g=="string"?new Uint8Array(O.Buffer.from(g,"base64")):g,this.logicSigTrace=d,this.attribute_map={approvalProgramHash:"approval-program-hash",approvalProgramTrace:"approval-program-trace",clearStateProgramHash:"clear-state-program-hash",clearStateProgramTrace:"clear-state-program-trace",clearStateRollback:"clear-state-rollback",clearStateRollbackError:"clear-state-rollback-error",innerTrace:"inner-trace",logicSigHash:"logic-sig-hash",logicSigTrace:"logic-sig-trace"}}static from_obj_for_encoding(e){return new Ps({approvalProgramHash:e["approval-program-hash"],approvalProgramTrace:typeof e["approval-program-trace"]<"u"?e["approval-program-trace"].map(Ti.from_obj_for_encoding):void 0,clearStateProgramHash:e["clear-state-program-hash"],clearStateProgramTrace:typeof e["clear-state-program-trace"]<"u"?e["clear-state-program-trace"].map(Ti.from_obj_for_encoding):void 0,clearStateRollback:e["clear-state-rollback"],clearStateRollbackError:e["clear-state-rollback-error"],innerTrace:typeof e["inner-trace"]<"u"?e["inner-trace"].map(Ps.from_obj_for_encoding):void 0,logicSigHash:e["logic-sig-hash"],logicSigTrace:typeof e["logic-sig-trace"]<"u"?e["logic-sig-trace"].map(Ti.from_obj_for_encoding):void 0})}}let Cw=class Zg extends ce{constructor({message:e,stateproof:r}){super(),this.message=e,this.stateproof=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.attribute_map={message:"Message",stateproof:"StateProof"}}static from_obj_for_encoding(e){if(typeof e.Message>"u")throw new Error(`Response is missing required field 'Message': ${e}`);if(typeof e.StateProof>"u")throw new Error(`Response is missing required field 'StateProof': ${e}`);return new Zg({message:ol.from_obj_for_encoding(e.Message),stateproof:e.StateProof})}};class ol extends ce{constructor({blockheaderscommitment:e,firstattestedround:r,lastattestedround:n,lnprovenweight:i,voterscommitment:s}){super(),this.blockheaderscommitment=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.firstattestedround=r,this.lastattestedround=n,this.lnprovenweight=i,this.voterscommitment=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.attribute_map={blockheaderscommitment:"BlockHeadersCommitment",firstattestedround:"FirstAttestedRound",lastattestedround:"LastAttestedRound",lnprovenweight:"LnProvenWeight",voterscommitment:"VotersCommitment"}}static from_obj_for_encoding(e){if(typeof e.BlockHeadersCommitment>"u")throw new Error(`Response is missing required field 'BlockHeadersCommitment': ${e}`);if(typeof e.FirstAttestedRound>"u")throw new Error(`Response is missing required field 'FirstAttestedRound': ${e}`);if(typeof e.LastAttestedRound>"u")throw new Error(`Response is missing required field 'LastAttestedRound': ${e}`);if(typeof e.LnProvenWeight>"u")throw new Error(`Response is missing required field 'LnProvenWeight': ${e}`);if(typeof e.VotersCommitment>"u")throw new Error(`Response is missing required field 'VotersCommitment': ${e}`);return new ol({blockheaderscommitment:e.BlockHeadersCommitment,firstattestedround:e.FirstAttestedRound,lastattestedround:e.LastAttestedRound,lnprovenweight:e.LnProvenWeight,voterscommitment:e.VotersCommitment})}}class Hc extends ce{constructor({currentRound:e,onlineMoney:r,totalMoney:n}){super(),this.currentRound=e,this.onlineMoney=r,this.totalMoney=n,this.attribute_map={currentRound:"current_roun
151d",onlineMoney:"online-money",totalMoney:"total-money"}}static from_obj_for_encoding(e){if(typeof e.current_round>"u")throw new Error(`Response is missing required field 'current_round': ${e}`);if(typeof e["online-money"]>"u")throw new Error(`Response is missing required field 'online-money': ${e}`);if(typeof e["total-money"]>"u")throw new Error(`Response is missing required field 'total-money': ${e}`);return new Hc({currentRound:e.current_round,onlineMoney:e["online-money"],totalMoney:e["total-money"]})}}let Kc=class em extends ce{constructor({key:e,value:r}){super(),this.key=e,this.value=r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new em({key:e.key,value:ua.from_obj_for_encoding(e.value)})}},ua=class tm extends ce{constructor({type:e,bytes:r,uint:n}){super(),this.type=e,this.bytes=r,this.uint=n,this.attribute_map={type:"type",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if(typeof e.type>"u")throw new Error(`Response is missing required field 'type': ${e}`);if(typeof e.bytes>"u")throw new Error(`Response is missing required field 'bytes': ${e}`);if(typeof e.uint>"u")throw new Error(`Response is missing required field 'uint': ${e}`);return new tm({type:e.type,bytes:e.bytes,uint:e.uint})}};class al extends ce{constructor({deltas:e}){super(),this.deltas=e,this.attribute_map={deltas:"Deltas"}}static from_obj_for_encoding(e){if(!Array.isArray(e.Deltas))throw new Error(`Response is missing required array field 'Deltas': ${e}`);return new al({deltas:e.Deltas.map(Za.from_obj_for_encoding)})}}class Vc extends ce{constructor({consensusVersion:e,fee:r,genesisHash:n,genesisId:i,lastRound:s,minFee:o}){super(),this.consensusVersion=e,this.fee=r,this.genesisHash=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.genesisId=i,this.lastRound=s,this.minFee=o,this.attribute_map={consensusVersion:"consensus-version",fee:"fee",genesisHash:"genesis-hash",genesisId:"genesis-id",lastRound:"last-round",minFee:"min-fee"}}static from_obj_for_encoding(e){if(typeof e["consensus-version"]>"u")throw new Error(`Response is missing required field 'consensus-version': ${e}`);if(typeof e.fee>"u")throw new Error(`Response is missing required field 'fee': ${e}`);if(typeof e["genesis-hash"]>"u")throw new Error(`Response is missing required field 'genesis-hash': ${e}`);if(typeof e["genesis-id"]>"u")throw new Error(`Response is missing required field 'genesis-id': ${e}`);if(typeof e["last-round"]>"u")throw new Error(`Response is missing required field 'last-round': ${e}`);if(typeof e["min-fee"]>"u")throw new Error(`Response is missing required field 'min-fee': ${e}`);return new Vc({consensusVersion:e["consensus-version"],fee:e.fee,genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],lastRound:e["last-round"],minFee:e["min-fee"]})}}class Gc extends ce{constructor({idx:e,proof:r,stibhash:n,treedepth:i,hashtype:s}){super(),this.idx=e,this.proof=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.stibhash=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.treedepth=i,this.hashtype=s,this.attribute_map={idx:"idx",proof:"proof",stibhash:"stibhash",treedepth:"treedepth",hashtype:"hashtype"}}static from_obj_for_encoding(e){if(typeof e.idx>"u")throw new Error(`Response is missing required field 'idx': ${e}`);if(typeof e.proof>"u")throw new Error(`Response is missing required field 'proof': ${e}`);if(typeof e.stibhash>"u")throw new Error(`Response is missing required field 'stibhash': ${e}`);if(typeof e.treedepth>"u")throw new Error(`Response is missing required field 'treedepth': ${e}`);return new Gc({idx:e.idx,proof:e.proof,stibhash:e.stibhash,treedepth:e.treedepth,hashtype:e.hashtype})}}class Wc extends ce{constructor({build:e,genesisHashB64:r,genesisId:n,versions:i}){super(),this.build=e,this.genesisHashB64=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.genesisId=n,this.versions=i,this.attribute_map={build:"build",genesisHashB64:"genesis_hash_b64",genesisId:"genesis_id",versions:"versions"}}static from_obj_for_encoding(e){if(typeof e.build>"u")throw new Error(`Response is missing required field 'build': ${e}`);if(typeof e.genesis_hash_b64>"u")throw new Error(`Response is missing required field 'genesis_hash_b64': ${e}`);if(typeof e.genesis_id>"u")throw new Error(`Response is missing required field 'genesis_id': ${e}`);if(!Array.isArray(e.versions))throw new Error(`Response is missing required array field 'versions': ${e}`);return new Wc({build:Va.from_obj_for_encoding(e.build),genesisHashB64:e.genesis_hash_b64,genesisId:e.genesis_id,versions:e.versions})}}const jw=Object.freeze(Object.defineProperty({__proto__:null,Account:Bg,AccountApplicationResponse:Rc,AccountAssetHolding:Na,AccountAssetResponse:Bc,AccountAssetsInformationResponse:Tc,AccountParticipation:Ig,AccountStateDelta:Ic,AppCallLogs:Ua,Application:Da,ApplicationInitialStates:Pa,ApplicationKVStorage:Bi,ApplicationLocalReference:La,ApplicationLocalState:Cc,ApplicationParams:$a,ApplicationStateOperation:Oa,ApplicationStateSchema:ti,Asset:Lg,AssetHolding:Ma,AssetHoldingReference:qa,AssetParams:za,AvmKeyValue:Ha,AvmV
151alue:ai,BlockHashResponse:jc,BlockLogsResponse:Nc,BlockResponse:Uc,BlockTxidsResponse:Dc,Box:qg,BoxDescriptor:Hg,BoxReference:Ka,BoxesResponse:Vg,BuildVersion:Va,CompileResponse:Pc,DisassembleResponse:Lc,DryrunRequest:Ga,DryrunResponse:$c,DryrunSource:Wa,DryrunState:Us,DryrunTxnResult:Ya,ErrorResponse:Tw,EvalDelta:Yg,EvalDeltaKeyValue:Xa,GetBlockTimeStampOffsetResponse:Qa,GetSyncRoundResponse:Ja,KvDelta:Oc,LedgerStateDeltaForTransactionGroup:Za,LightBlockHeaderProof:Iw,NodeStatusResponse:Mc,PendingTransactionResponse:Ds,PendingTransactionsResponse:qc,PostTransactionsResponse:zc,ScratchChange:el,SimulateInitialStates:tl,SimulateRequest:Gs,SimulateRequestTransactionGroup:zi,SimulateResponse:rl,SimulateTraceConfig:Ws,SimulateTransactionGroupResult:nl,SimulateTransactionResult:il,SimulateUnnamedResourcesAccessed:Ys,SimulationEvalOverrides:sl,SimulationOpcodeTraceUnit:Ti,SimulationTransactionExecTrace:Ps,StateProof:Cw,StateProofMessage:ol,SupplyResponse:Hc,TealKeyValue:Kc,TealValue:ua,TransactionGroupLedgerStateDeltasForRoundResponse:al,TransactionParametersResponse:Vc,TransactionProofResponse:Gc,Version:Wc},Symbol.toStringTag,{value:"Module"}));class Ve{constructor(e,r){this.c=e,this.query={},this.intDecoding=r||Ca.DEFAULT}prepare(e){return e}async do(e={}){const r={};this.intDecoding!=="default"&&(r.intDecoding=this.intDecoding);const n=await this.c.get(this.path(),this.query,e,r);return this.prepare(n.body)}async doRaw(e={}){return(await this.c.get(this.path(),this.query,e,{},!1)).body}setIntDecoding(e){if(e!=="default"&&e!=="safe"&&e!=="mixed"&&e!=="bigint")throw new Error(`Invalid method for int decoding: ${e}`);return this.intDecoding=e,this}}class Nw extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}`}exclude(e){return this.query.exclude=e,this}}class Uw extends Ve{constructor(e,r,n,i){super(e,r),this.account=n,this.assetID=i,this.account=n,this.assetID=i}path(){return`/v2/accounts/${this.account}/assets/${this.assetID}`}}class Dw extends Ve{constructor(e,r,n,i){super(e,r),this.account=n,this.applicationID=i,this.account=n,this.applicationID=i}path(){return`/v2/accounts/${this.account}/applications/${this.applicationID}`}}let Pw=class extends Ve{constructor(e,r){if(super(e),!Number.isInteger(r))throw Error("roundNumber should be an integer");this.round=r,this.query={format:"msgpack"}}path(){return`/v2/blocks/${this.round}`}headerOnly(e){return this.query["header-only"]=e,this}prepare(e){if(e&&e.byteLength>0)return Wt(e)}};function rm(t={}){let e=t;return Object.keys(e).every(r=>r.toLowerCase()!=="content-type")&&(e={...t},e["Content-Type"]="text/plain"),e}class Lw extends Ve{constructor(e,r){super(e),this.source=r,this.source=r}path(){return"/v2/teal/compile"}sourcemap(e=!0){return this.query.sourcemap=e,this}async do(e={}){const r=rm(e);return(await this.c.post(this.path(),O.Buffer.from(this.source),r,this.query)).body}}class $w extends Ve{constructor(e,r){super(e),this.blob=ar(r.get_obj_for_encoding(!0))}path(){return"/v2/teal/dryrun"}async do(e={}){const r=rm(e);return(await this.c.post(this.path(),O.Buffer.from(this.blob),r)).body}}class Ow extends Ve{path(){return"/genesis"}}class Mw extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/assets/${this.index}`}}class qw extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/applications/${this.index}`}}class zw extends Ve{constructor(e,r,n){if(super(e,r),!Number.isInteger(n))throw Error("roundNumber should be an integer");this.round=n}path(){return`/v2/blocks/${this.round}/hash`}}class Hw extends Ve{constructor(e,r,n){if(super(e,r),!Number.isInteger(n))throw Error("roundNumber should be an integer");this.round=n}path(){return`/v2/blocks/${this.round}/txids`}}class Kw extends Ve{constructor(e,r,n,i){super(e,r),this.index=n,this.index=n;const s=O.Buffer.from(i).toString("base64");this.query.name=encodeURI(`b64:${s}`)}path(){return`/v2/applications/${this.index}/box`}prepare(e){return qg.from_obj_for_encoding(e)}}class Vw extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n,this.query.max=0}path(){return`/v2/applications/${this.index}/boxes`}max(e){return this.query.max=e,this}prepare(e){return Vg.from_obj_for_encoding(e)}}let Gw=class extends Ve{path(){return"/health"}async do(e={}){const r=await this.c.get(this.path(),{},e);if(!r.ok)throw new Error(`Health response: ${r.status}`);return{}}};class Ww extends Ve{constructor(e,r){super(e),this.txid=r,this.txid=r,this.query.format="msgpack"}prepare(e){if(e&&e.byteLength>0)return Wt(e)}path(){return`/v2/transactions/pending/${this.txid}`}max(e){return this.query.max=e,this}}class Yw extends Ve{constructor(e){super(e),this.query.format="msgpack"}path(){return"/v2/transactions/pending"}prepare(e){if(e&&e.byteLength>0)return Wt(e)}max(e){return this.query.max=e,this}}class Xw extends Ve{constructor(e,r){super(e),this.address=r,this.address=r,this.query.format="msgpack"}prepare(e){if(e&&e.byteLength>0)return Wt(e)}path(){return`/v2/accounts/${this.address}/transactions/pending`}max(e){return this.query.max=e,this}}class Qw extends Ve{constructor(e,r,n,i){super(e,r),this.round=n,this.txID=i,this.round=n,this.txID=i}path(){return`/v2/blocks/${this.round}/transactions/${this.txID}/proof`}hashType(e){return this.query.hashtype=e,this}}function Jw(t={}){let e=t;return Object.keys(e).every(r=>r.toLowerCase()!=="content-type")&&(e={...t},e["Content-Type"]="application/x-binary"),e}function Ph(t){return t&&t.byteLength!==void 0}class Zw extends Ve{constructor(e,r){super(e);let n=r;if(Array.isArray(r)){if(!r.every(Ph))throw new TypeError("Array elements must be byte arrays");n=Ht(...r)}else if(!Ph(n))throw new TypeError("Argument must be byte array");this.txnBytesToPost=n}path(){return"/v2/transactions"}async do(e={}){const r=Jw(e);return(await this.c.post(this.path(),O.Buffer.from(this.txnBytesToPost),r)).body}}class ev extends Ve{path(){return"/v2/status"}}class tv extends Ve{constructor(e,r,n){if(super(e,r),this.round=n,!Number.isInteger(n))throw Error("round should be an integer");this.round=n}path(){return`/v2/status/wait-for-block-after/${this.round}`}}class rv extends Ve{path(){return"/v2/transactions/params"}prepare(e){return{flatFee:!1,fee:e.fee,firstRound:e["last-round"],lastRound:e["last-round"]+1e3,genesisID:e["genesis-id"],genesisHash:e["genesis-hash"],minFee:e["min-fee"]}}}class nv extends Ve{path(){return"/v2/ledger/supply"}}class iv extends Ve{path(){return"/versions"}}class sv extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n}path(){return`/v2/blocks/${this.round}/lightheader/proof`}}class ov extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n}path(){return`/v2/stateproofs/${this.round}`}}class av extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n}path(){return`/v2/ledger/sync/${this.round}`}async do(e={}){return(await this.c.post(this.path(),e)).body}}class lv extends Ve{path(){return"/v2/ledger/sync"}prepare(e){return Ja.from_obj_for_encoding(e)}}class uv extends Ve{constructor(e,r,n){super(e,r),this.offset=n,this.offset=n}path(){return`/v2/devmode/blocks/offset/${this.offset}`}async do(e={}){return(await this.c.post(this.path(),e)).body}}class fv extends Ve{path(){return"/v2/devmode/blocks/offset"}prepare(e){return Qa.from_obj_for_encoding(e)}}function cv(t={}){let e=t;return Object.keys(e).every(r=>r.toLowerCase()!=="content-type")&&(e={...t},e["Content-Type"]="text/plain"),e}class dv extends Ve{constructor(e,r){super(e),this.source=r,this.source=r}path(){return"/v2/teal/disassemble"}async do(e={}){const r=cv(e);return(await this.c.post(this.path(),O.Buffer.from(this.source),r,this.query)).body}}function hv(t={}){let e=t;return Object.keys(e).every(r=>r.toLowerCase()!=="content-type")&&(e={...t},e["Content-Type"]="application/msgpack"),e}class pv extends Ve{constructor(e,r){super(e),this.query.format="msgpack",this.requestBytes=Fg(r.get_obj_for_encoding(!0))}path(){return"/v2/transactions/simulate"}async do(e={}){const r=hv(e),n=await this.c.post(this.path(),O.Buffer.from(this.requestBytes),r,this.query,!1);return this.prepare(n.body)}prepare(e){const r=Wt(e);return rl.from_obj_for_encoding(r)}}class gv extends Ve{path(){return"/ready"}}class mv extends Ve{path(){return"/v2/ledger/sync"}async do(e={}){return(await this.c.delete(this.path(),e)).body}}class yv extends Ve{constructor(e,r,n){super(e,r),this.id=n,this.id=n,this.query={format:"json"}}path(){return`/v2/deltas/txn/group/${this.id}`}}class xv extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n,this.query={format:"json"}}path(){return`/v2/deltas/${this.round}`}}class wv extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n,this.query={format:"json"}}path(){return`/v2/deltas/${this.round}/txn/group`}prepare(e){return al.from_obj_for_encoding(e)}}class vv extends kc{constructor(e,r,n,i={}){super("X-Algo-API-Token",e,r,n,i)}healthCheck(){return new Gw(this.c)}versionsCheck(){return new iv(this.c)}sendRawTransaction(e){return new Zw(this.c,e)}accountInformation(e){return new Nw(this.c,this.intDecoding,e)}accountAssetInformation(e,r){return new Uw(this.c,this.intDecoding,e,r)}accountApplicationInformation(e,r){return new Dw(this.c,this.intDecoding,e,r)}block(e){return new Pw(this.c,e)}getBlockHash(e){return new zw(this.c,this.intDecoding,e)}getBlockTxids(e){return new Hw(this.c,this.intDecoding,e)}pendingTransactionInformation(e){return new Ww(this.c,e)}pendingTransactionsInformation(){return new Yw(this.c)}pendingTransactionByAddress(e){return new Xw(this.c,e)}status(){return new ev(this.c,this.intDecoding)}statusAfterBlock(e){return new tv(this.c,this.intDecoding,e)}getTransactionParams(){return new rv(this.c)}supply(){return new nv(this.c,this.intDecoding)}compile(e){return new Lw(this.c,e)}
151disassemble(e){return new dv(this.c,e)}dryrun(e){return new $w(this.c,e)}getAssetByID(e){return new Mw(this.c,this.intDecoding,e)}getApplicationByID(e){return new qw(this.c,this.intDecoding,e)}getApplicationBoxByName(e,r){return new Kw(this.c,this.intDecoding,e,r)}getApplicationBoxes(e){return new Vw(this.c,this.intDecoding,e)}genesis(){return new Ow(this.c,this.intDecoding)}getTransactionProof(e,r){return new Qw(this.c,this.intDecoding,e,r)}getLightBlockHeaderProof(e){return new sv(this.c,this.intDecoding,e)}getStateProof(e){return new ov(this.c,this.intDecoding,e)}simulateRawTransactions(e){const r=[];if(Array.isArray(e))for(const i of e)r.push(Wt(i));else r.push(Wt(e));const n=new Gs({txnGroups:[new zi({txns:r})]});return this.simulateTransactions(n)}simulateTransactions(e){return new pv(this.c,e)}setBlockOffsetTimestamp(e){return new uv(this.c,this.intDecoding,e)}getBlockOffsetTimestamp(){return new fv(this.c,this.intDecoding)}setSyncRound(e){return new av(this.c,this.intDecoding,e)}unsetSyncRound(){return new mv(this.c,this.intDecoding)}getSyncRound(){return new lv(this.c,this.intDecoding)}ready(){return new gv(this.c,this.intDecoding)}getLedgerStateDeltaForTransactionGroup(e){return new yv(this.c,this.intDecoding,e)}getLedgerStateDelta(e){return new xv(this.c,this.intDecoding,e)}getTransactionGroupLedgerStateDeltasForRound(e){return new wv(this.c,this.intDecoding,e)}}class bv extends kc{constructor(e,r="http://127.0.0.1",n=7833,i={}){super("X-KMD-API-Token",e,r,n,i)}async versions(){return(await this.c.get("/versions")).body}async listWallets(){return(await this.c.get("/v1/wallets")).body}async createWallet(e,r,n=new Uint8Array,i="sqlite"){const s={wallet_name:e,wallet_driver_name:i,wallet_password:r,master_derivation_key:O.Buffer.from(n).toString("base64")};return(await this.c.post("/v1/wallet",s)).body}async initWalletHandle(e,r){const n={wallet_id:e,wallet_password:r};return(await this.c.post("/v1/wallet/init",n)).body}async releaseWalletHandle(e){const r={wallet_handle_token:e};return(await this.c.post("/v1/wallet/release",r)).body}async renewWalletHandle(e){const r={wallet_handle_token:e};return(await this.c.post("/v1/wallet/renew",r)).body}async renameWallet(e,r,n){const i={wallet_id:e,wallet_password:r,wallet_name:n};return(await this.c.post("/v1/wallet/rename",i)).body}async getWallet(e){const r={wallet_handle_token:e};return(await this.c.post("/v1/wallet/info",r)).body}async exportMasterDerivationKey(e,r){const n={wallet_handle_token:e,wallet_password:r},i=await this.c.post("/v1/master-key/export",n);return{master_derivation_key:O.Buffer.from(i.body.master_derivation_key,"base64")}}async importKey(e,r){const n={wallet_handle_token:e,private_key:O.Buffer.from(r).toString("base64")};return(await this.c.post("/v1/key/import",n)).body}async exportKey(e,r,n){const i={wallet_handle_token:e,address:n,wallet_password:r},s=await this.c.post("/v1/key/export",i);return{private_key:O.Buffer.from(s.body.private_key,"base64")}}
151async generateKey(e){const r={wallet_handle_token:e,display_mnemonic:!1};return(await this.c.post("/v1/key",r)).body}async deleteKey(e,r,n){const i={wallet_handle_token:e,address:n,wallet_password:r};return(await this.c.delete("/v1/key",i)).body}async listKeys(e){const r={wallet_handle_token:e};return(await this.c.post("/v1/key/list",r)).body}async signTransaction(e,r,n){const i=In(n),s={wallet_handle_token:e,wallet_password:r,transaction:O.Buffer.from(i.toByte()).toString("base64")},o=await this.c.post("/v1/transaction/sign",s);return o.status===200?O.Buffer.from(o.body.signed_transaction,"base64"):o.body}async signTransactionWithSpecificPublicKey(e,r,n,i){const s=In(n),o={wallet_handle_token:e,wallet_password:r,transaction:O.Buffer.from(s.toByte()).toString("base64"),public_key:O.Buffer.from(i).toString("base64")},l=await this.c.post("/v1/transaction/sign",o);return l.status===200?O.Buffer.from(l.body.signed_transaction,"base64"):l.body}async listMultisig(e){const r={wallet_handle_token:e};return(await this.c.post("/v1/multisig/list",r)).body}async importMultisig(e,r,n,i){const s={wallet_handle_token:e,multisig_version:r,threshold:n,pks:i};return(await this.c.post("/v1/multisig/import",s)).body}async exportMultisig(e,r){const n={wallet_handle_token:e,address:r};return(await this.c.post("/v1/multisig/export",n)).body}async signMultisigTransaction(e,r,n,i,s){const o=In(n),l={wallet_handle_token:e,transaction:O.Buffer.from(o.toByte()).toString("base64"),public_key:O.Buffer.from(i).toString("base64"),partial_multisig:s,wallet_password:r};return(await this.c.post("/v1/multisig/sign",l)).body}async deleteMultisig(e,r,n){const i={wallet_handle_token:e,address:n,wallet_password:r};return(await this.c.delete("/v1/multisig",i)).body}}class _v extends Ve{path(){return"/health"}}class Av extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/assets/${this.index}/balances`}limit(e){return this.query.limit=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}}function Yc(t){return typeof t=="string"?t:O.Buffer.from(t).toString("base64")}class Ev extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}/transactions`}notePrefix(e){return this.query["note-prefix"]=Yc(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}class Fv extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/assets/${this.index}/transactions`}notePrefix(e){return this.query["note-prefix"]=Yc(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}}class Sv extends Ve{constructor(e,r,n){super(e,r),this.round=n,this.round=n}path(){return`/v2/blocks/${this.round}`}headerOnly(e){return this.query["header-only"]=e,this}}class kv extends Ve{constructor(e,r,n){super(e,r),this.txID=n,this.txID=n}path(){return`/v2/transactions/${this.txID}`}}class Rv extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}`}round(e){return this.query.round=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}exclude(e){return this.query.exclude=e,this}}class Bv extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}/assets`}limit(e){return this.query.limit=e,this}
151round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}assetId(e){return this.query["asset-id"]=e,this}}class Tv extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}/created-assets`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}assetID(e){return this.query["asset-id"]=e,this}}class Iv extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}/apps-local-state`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}class Cv extends Ve{constructor(e,r,n){super(e,r),this.account=n,this.account=n}path(){return`/v2/accounts/${this.account}/created-applications`}limit(e){return this.query.limit=e,this}round(e){return this.query.round=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}applicationID(e){return this.query["application-id"]=e,this}}class jv extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/assets/${this.index}`}includeAll(e=!0){return this.query["include-all"]=e,this}}class Nv extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/applications/${this.index}`}includeAll(e=!0){return this.query["include-all"]=e,this}}class Uv extends Ve{constructor(e,r,n){super(e,r),this.appID=n,this.appID=n}path(){return`/v2/applications/${this.appID}/logs`}limit(e){return this.query.limit=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}nextToken(e){return this.query.next=e,this}sender(e){return this.query["sender-address"]=e,this}txid(e){return this.query.txid=e,this}}class Xs extends ce{constructor({address:e,amount:r,amountWithoutPendingRewards:n,minBalance:i,pendingRewards:s,rewards:o,round:l,status:g,totalAppsOptedIn:d,totalAssetsOptedIn:k,totalBoxBytes:C,totalBoxes:j,totalCreatedApps:X,totalCreatedAssets:H,appsLocalState:G,appsTotalExtraPages:D,appsTotalSchema:R,assets:w,authAddr:T,closedAtRound:W,createdApps:J,createdAssets:A,createdAtRound:P,deleted:M,incentiveEligible:se,lastHeartbeat:$,lastProposed:he,participation:ae,rewardBase:de,sigType:xe}){super(),this.address=e,this.amount=r,this.amountWithoutPendingRewards=n,this.minBalance=i,this.pendingRewards=s,this.rewards=o,this.round=l,this.status=g,this.totalAppsOptedIn=d,this.totalAssetsOptedIn=k,this.totalBoxBytes=C,this.totalBoxes=j,this.totalCreatedApps=X,this.totalCreatedAssets=H,this.appsLocalState=G,this.appsTotalExtraPages=D,this.appsTotalSchema=R,this.assets=w,this.authAddr=T,this.closedAtRound=W,this.createdApps=J,this.createdAssets=A,this.createdAtRound=P,this.deleted=M,this.incentiveEligible=se,this.lastHeartbeat=$,this.lastProposed=he,this.participation=ae,this.rewardBase=de,this.sigType=xe,this.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",minBalance:"min-balance",pendingRewards:"pending-rewards",rewards:"rewards",round:"round",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",closedAtRound:"closed-at-round",createdApps:"created-apps",createdAssets:"created-assets",createdAtRound:"created-at-round",deleted:"deleted",incentiveEligible:"incentive-eligible",lastHeartbeat:"last-heartbeat",lastProposed:"last-proposed",participation:"participation",rewardBase:"reward-base",sigType:"sig-type"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["amount-without-pending-rewards"]>"u")throw new Error(`Response is missing required field 'amount-without-pending-rewards': ${e}`);if(typeof e["min-balance"]>"u")throw new Error(`Response is missing required field 'min-balance': ${e}`);if(typeof e["pending-rewards"]>"u")throw new Error(`Response is missing required field 'pending-rewards': ${e}`);if(typeof e.rewards>"u")throw new Error(`Response is missing required field 'rewards': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.status>"u")throw new Error(`Response is missing required field 'status': ${e}`);if(typeof e["total-apps-opted-in"]>"u")throw new Error(`Response is missing required field 'total-apps-opted-in': ${e}`);if(typeof e["total-assets-opted-in"]>"u")throw new Error(`Response is missing required field 'total-assets-opted-in': ${e}`);if(typeof e["total-box-bytes"]>"u")throw new Error(`Response is missing required field 'total-box-bytes': ${e}`);if(typeof e["total-boxes"]>"u")throw new Error(`Response is missing required field 'total-boxes': ${e}`);if(typeof e["total-created-apps"]>"u")throw new Error(`Response is missing required field 'total-created-apps': ${e}`);if(typeof e["total-created-assets"]>"u")throw new Error(`Response is missing required field 'total-created-assets': ${e}`);return new Xs({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],minBalance:e["min-balance"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:typeof e["apps-local-state"]<"u"?e["apps-local-state"].map(Qs.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:typeof e["apps-total-schema"]<"u"?ri.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:typeof e.assets<"u"?e.assets.map(Js.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],closedAtRound:e["closed-at-round"],createdApps:typeof e["created-apps"]<"u"?e["created-apps"].map(Hi.from_obj_for_encoding):void 0,createdAssets:typeof e["created-assets"]<"u"?e["created-assets"].map(Ki.from_obj_for_encoding):void 0,createdAtRound:e["created-at-round"],deleted:e.deleted,incentiveEligible:e["incentive-eligible"],lastHeartbeat:e["last-heartbeat"],lastProposed:e["last-proposed"],participation:typeof e.participation<"u"?ll.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"]})}}class ll extends ce{constructor({selectionParticipationKey:e,voteFirstValid:r,voteKeyDilution:n,voteLastValid:i,voteParticipationKey:s,stateProofKey:o}){super(),this.selectionParticipationKey=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.voteFirstValid=r,this.voteKeyDilution=n,this.voteLastValid=i,this.voteParticipationKey=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.stateProofKey=typeof o=="str
151ing"?new Uint8Array(O.Buffer.from(o,"base64")):o,this.attribute_map={selectionParticipationKey:"selection-participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"}}static from_obj_for_encoding(e){if(typeof e["selection-participation-key"]>"u")throw new Error(`Response is missing required field 'selection-participation-key': ${e}`);if(typeof e["vote-first-valid"]>"u")throw new Error(`Response is missing required field 'vote-first-valid': ${e}`);if(typeof e["vote-key-dilution"]>"u")throw new Error(`Response is missing required field 'vote-key-dilution': ${e}`);if(typeof e["vote-last-valid"]>"u")throw new Error(`Response is missing required field 'vote-last-valid': ${e}`);if(typeof e["vote-participation-key"]>"u")throw new Error(`Response is missing required field 'vote-participation-key': ${e}`);return new ll({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}class Xc extends ce{constructor({account:e,currentRound:r}){super(),this.account=e,this.currentRound=r,this.attribute_map={account:"account",currentRound:"current-round"}}static from_obj_for_encoding(e){if(typeof e.account>"u")throw new Error(`Response is missing required field 'account': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new Xc({account:Xs.from_obj_for_encoding(e.account),currentRound:e["current-round"]})}}class ul extends ce{constructor({address:e,delta:r}){super(),this.address=e,this.delta=r,this.attribute_map={address:"address",delta:"delta"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(!Array.isArray(e.delta))throw new Error(`Response is missing required array field 'delta': ${e}`);return new ul({address:e.address,delta:e.delta.map(eo.from_obj_for_encoding)})}}class Qc extends ce{constructor({accounts:e,currentRound:r,nextToken:n}){super(),this.accounts=e,this.currentRound=r,this.nextToken=n,this.attribute_map={accounts:"accounts",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.accounts))throw new Error(`Response is missing required array field 'accounts': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new Qc({accounts:e.accounts.map(Xs.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Hi extends ce{constructor({id:e,params:r,createdAtRound:n,deleted:i,deletedAtRound:s}){super(),this.id=e,this.params=r,this.createdAtRound=n,this.deleted=i,this.deletedAtRound=s,this.attribute_map={id:"id",params:"params",createdAtRound:"created-at-round",deleted:"deleted",deletedAtRound:"deleted-at-round"}}static from_obj_for_encoding(e){if(typeof e.id>"u")throw new Error(`Response is missing required field 'id': ${e}`);if(typeof e.params>"u")throw new Error(`Response is missing required field 'params': ${e}`);return new Hi({id:e.id,params:cl.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,deletedAtRound:e["deleted-at-round"]})}}class Qs extends ce{constructor({id:e,schema:r,closedOutAtRound:n,deleted:i,keyValue:s,optedInAtRound:o}){super(),this.id=e,this.schema=r,this.closedOutAtRound=n,this.deleted=i,this.keyValue=s,this.optedInAtRound=o,this.attribute_map={id:"id",schema:"schema",closedOutAtRound:"closed-out-at-round",deleted:"deleted",keyValue:"key-value",optedInAtRound:"opted-in-at-round"}}static from_obj_for_encoding(e){if(typeof e.id>"u")throw new Error(`Response is missing required field 'id': ${e}`);if(typeof e.schema>"u")throw new Error(`Response is missing required field 'schema': ${e}`);return new Qs({id:e.id,schema:ri.from_obj_for_encoding(e.schema),closedOutAtRound:e["closed-out-at-round"],deleted:e.deleted,keyValue:typeof e["key-value"]<"u"?e["key-value"].map(to.from_obj_for_encoding):void 0,optedInAtRound:e["opted-in-at-round"]})}}class Jc extends ce{constructor({appsLocalStates:e,currentRound:r,nextToken:n}){super(),this.appsLocalStates=e,this.currentRound=r,this.nextToken=n,this.attribute_map={appsLocalStates:"apps-local-states",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e["apps-local-states"]))throw new Error(`Response is missing required array field 'apps-local-states': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new Jc({appsLocalStates:e["apps-local-states"].map(Qs.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class fl extends ce{constructor({logs:e,txid:r}){super(),this.logs=e,this.txid=r,this.attribute_map={logs:"logs",txid:"txid"}}static from_obj_for_encoding(e){if(!Array.isArray(e.logs))throw new Error(`Response is missing required array field 'logs': ${e}`);if(typeof e.txid>"u")throw new Error(`Response is missing required field 'txid': ${e}`);return new fl({logs:e.logs,txid:e.txid})}}class Zc extends ce{constructor({applicationId:e,currentRound:r,logData:n,nextToken:i}){super(),this.applicationId=e,this.currentRound=r,this.logData=n,this.nextToken=i,this.attribute_map={applicationId:"application-id",currentRound:"current-round",logData:"log-data",nextToken:"next-token"}}static from_obj_for_encoding(e){if(typeof e["application-id"]>"u")throw new Error(`Response is missing required field 'application-id': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new Zc({applicationId:e["application-id"],currentRound:e["current-round"],logData:typeof e["log-data"]<"u"?e["log-data"].map(fl.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}class cl extends ce{constructor({approvalProgram:e,clearStateProgram:r,creator:n,extraProgramPages:i,globalState:s,globalStateSchema:o,localStateSchema:l}){super(),this.approvalProgram=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.clearStateProgram=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.creator=n,this.extraProgramPages=i,this.globalState=s,this.globalStateSchema=o,this.localStateSchema=l,this.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"}}static from_obj_for_encoding(e){if(typeof e["approval-program"]>"u")throw new Error(`Response is missing required field 'approval-program': ${e}`);if(typeof e["clear-state-program"]>"u")throw new Error(`Response is missing required field 'clear-state-program': ${e}`);
151return new cl({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:typeof e["global-state"]<"u"?e["global-state"].map(to.from_obj_for_encoding):void 0,globalStateSchema:typeof e["global-state-schema"]<"u"?ri.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:typeof e["local-state-schema"]<"u"?ri.from_obj_for_encoding(e["local-state-schema"]):void 0})}}class ed extends ce{constructor({currentRound:e,application:r}){super(),this.currentRound=e,this.application=r,this.attribute_map={currentRound:"current-round",application:"application"}}static from_obj_for_encoding(e){if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new ed({currentRound:e["current-round"],application:typeof e.application<"u"?Hi.from_obj_for_encoding(e.application):void 0})}}class ri extends ce{constructor({numByteSlice:e,numUint:r}){super(),this.numByteSlice=e,this.numUint=r,this.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"}}static from_obj_for_encoding(e){if(typeof e["num-byte-slice"]>"u")throw new Error(`Response is missing required field 'num-byte-slice': ${e}`);if(typeof e["num-uint"]>"u")throw new Error(`Response is missing required field 'num-uint': ${e}`);return new ri({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}class td extends ce{constructor({applications:e,currentRound:r,nextToken:n}){super(),this.applications=e,this.currentRound=r,this.nextToken=n,this.attribute_map={applications:"applications",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.applications))throw new Error(`Response is missing required array field 'applications': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new td({applications:e.applications.map(Hi.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Ki extends ce{constructor({index:e,params:r,createdAtRound:n,deleted:i,destroyedAtRound:s}){super(),this.index=e,this.params=r,this.createdAtRound=n,this.deleted=i,this.destroyedAtRound=s,this.attribute_map={index:"index",params:"params",createdAtRound:"created-at-round",deleted:"deleted",destroyedAtRound:"destroyed-at-round"}}static from_obj_for_encoding(e){if(typeof e.index>"u")throw new Error(`Response is missing required field 'index': ${e}`);if(typeof e.params>"u")throw new Error(`Response is missing required field 'params': ${e}`);return new Ki({index:e.index,params:Zs.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,destroyedAtRound:e["destroyed-at-round"]})}}class rd extends ce{constructor({balances:e,currentRound:r,nextToken:n}){super(),this.balances=e,this.currentRound=r,this.nextToken=n,this.attribute_map={balances:"balances",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.balances))throw new Error(`Response is missing required array field 'balances': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new rd({balances:e.balances.map(Al.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Js extends ce{constructor({amount:e,assetId:r,isFrozen:n,deleted:i,optedInAtRound:s,optedOutAtRound:o}){super(),this.amount=e,this.assetId=r,this.isFrozen=n,this.deleted=i,this.optedInAtRound=s,this.optedOutAtRound=o,this.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"}}static from_obj_for_encoding(e){if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["asset-id"]>"u")throw new Error(`Response is missing required field 'asset-id': ${e}`);if(typeof e["is-frozen"]>"u")throw new Error(`Response is missing required field 'is-frozen': ${e}`);return new Js({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}class nd extends ce{constructor({assets:e,currentRound:r,nextToken:n}){super(),this.assets=e,this.currentRound=r,this.nextToken=n,this.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.assets))throw new Error(`Response is missing required array field 'assets': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new nd({assets:e.assets.map(Js.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class Zs extends ce{constructor({creator:e,decimals:r,total:n,clawback:i,defaultFrozen:s,freeze:o,manager:l,metadataHash:g,name:d,nameB64:k,reserve:C,unitName:j,unitNameB64:X,url:H,urlB64:G}){super(),this.creator=e,this.decimals=r,this.total=n,this.clawback=i,this.defaultFrozen=s,this.freeze=o,this.manager=l,this.metadataHash=typeof g=="string"?new Uint8Array(O.Buffer.from(g,"base64")):g,this.name=d,this.nameB64=typeof k=="string"?new Uint8Array(O.Buffer.from(k,"base64")):k,this.reserve=C,this.unitName=j,this.unitNameB64=typeof X=="string"?new Uint8Array(O.Buffer.from(X,"base64")):X,this.url=H,this.urlB64=typeof G=="string"?new Uint8Array(O.Buffer.from(G,"base64")):G,this.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"}}static from_obj_for_encoding(e){if(typeof e.creator>"u")throw new Error(`Response is missing required field 'creator': ${e}`);if(typeof e.decimals>"u")throw new Error(`Response is missing required field 'decimals': ${e}`);if(typeof e.total>"u")throw new Error(`Response is missing required field 'total': ${e}`);return new Zs({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}
151class id extends ce{constructor({asset:e,currentRound:r}){super(),this.asset=e,this.currentRound=r,this.attribute_map={asset:"asset",currentRound:"current-round"}}static from_obj_for_encoding(e){if(typeof e.asset>"u")throw new Error(`Response is missing required field 'asset': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new id({asset:Ki.from_obj_for_encoding(e.asset),currentRound:e["current-round"]})}}class sd extends ce{constructor({assets:e,currentRound:r,nextToken:n}){super(),this.assets=e,this.currentRound=r,this.nextToken=n,this.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){if(!Array.isArray(e.assets))throw new Error(`Response is missing required array field 'assets': ${e}`);if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);return new sd({assets:e.assets.map(Ki.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}class dl extends ce{constructor({genesisHash:e,genesisId:r,previousBlockHash:n,round:i,seed:s,timestamp:o,transactionsRoot:l,transactionsRootSha256:g,bonus:d,feesCollected:k,participationUpdates:C,proposer:j,proposerPayout:X,rewards:H,stateProofTracking:G,transactions:D,txnCounter:R,upgradeState:w,upgradeVote:T}){super(),this.genesisHash=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.genesisId=r,this.previousBlockHash=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.round=i,this.seed=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.timestamp=o,this.transactionsRoot=typeof l=="string"?new Uint8Array(O.Buffer.from(l,"base64")):l,this.transactionsRootSha256=typeof g=="string"?new Uint8Array(O.Buffer.from(g,"base64")):g,this.bonus=d,this.feesCollected=k,this.participationUpdates=C,this.proposer=j,this.proposerPayout=X,this.rewards=H,this.stateProofTracking=G,this.transactions=D,this.txnCounter=R,this.upgradeState=w,this.upgradeVote=T,this.attribute_map={genesisHash:"genesis-hash",genesisId:"genesis-id",previousBlockHash:"previous-block-hash",round:"round",seed:"seed",timestamp:"timestamp",transactionsRoot:"transactions-root",transactionsRootSha256:"transactions-root-sha256",bonus:"bonus",feesCollected:"fees-collected",participationUpdates:"participation-updates",proposer:"proposer",proposerPayout:"proposer-payout",rewards:"rewards",stateProofTracking:"state-proof-tracking",transactions:"transactions",txnCounter:"txn-counter",upgradeState:"upgrade-state",upgradeVote:"upgrade-vote"}}static from_obj_for_encoding(e){if(typeof e["genesis-hash"]>"u")throw new Error(`Response is missing required field 'genesis-hash': ${e}`);if(typeof e["genesis-id"]>"u")throw new Error(`Response is missing required field 'genesis-id': ${e}`);if(typeof e["previous-block-hash"]>"u")throw new Error(`Response is missing required field 'previous-block-hash': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.seed>"u")throw new Error(`Response is missing required field 'seed': ${e}`);if(typeof e.timestamp>"u")throw new Error(`Response is missing required field 'timestamp': ${e}`);if(typeof e["transactions-root"]>"u")throw new Error(`Response is missing required field 'transactions-root': ${e}`);if(typeof e["transactions-root-sha256"]>"u")throw new Error(`Response is missing required field 'transactions-root-sha256': ${e}`);return new dl({genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],previousBlockHash:e["previous-block-hash"],round:e.round,seed:e.seed,timestamp:e.timestamp,transactionsRoot:e["transactions-root"],transactionsRootSha256:e["transactions-root-sha256"],bonus:e.bonus,feesCollected:e["fees-collected"],participationUpdates:typeof e["participation-updates"]<"u"?El.from_obj_for_encoding(e["participation-updates"]):void 0,proposer:e.proposer,proposerPayout:e["proposer-payout"],rewards:typeof e.rewards<"u"?hl.from_obj_for_encoding(e.rewards):void 0,stateProofTracking:typeof e["state-proof-tracking"]<"u"?e["state-proof-tracking"].map(Tl.from_obj_for_encoding):void 0,transactions:typeof e.transactions<"u"?e.transactions.map(ni.from_obj_for_encoding):void 0,txnCounter:e["txn-counter"],upgradeState:typeof e["upgrade-state"]<"u"?pl.from_obj_for_encoding(e["upgrade-state"]):void 0,upgradeVote:typeof e["upgrade-vote"]<"u"?gl.from_obj_for_encoding(e["upgrade-vote"]):void 0})}}class od extends ce{constructor({blocks:e,currentRound:r,nextToken:n}){super(),this.blocks=e,this.currentRound=r,this.nextToken=n,this.attribute_map={blocks:"blocks",currentRound:"current-round",nextToken:"next-token"}}static from_obj_for_encoding(e){return new od({blocks:typeof e.blocks<"u"?e.blocks.map(dl.from_obj_for_encoding):void 0,currentRound:e["current-round"],nextToken:e["next-token"]})}}class hl extends ce{constructor({feeSink:e,rewardsCalculationRound:r,rewardsLevel:n,rewardsPool:i,rewardsRate:s,rewardsResidue:o}){super(),this.feeSink=e,this.rewardsCalculationRound=r,this.rewardsLevel=n,this.rewardsPool=i,this.rewardsRate=s,this.rewardsResidue=o,this.attribute_map={feeSink:"fee-sink",rewardsCalculationRound:"rewards-calculation-round",rewardsLevel:"rewards-level",rewardsPool:"rewards-pool",rewardsRate:"rewards-rate",rewardsResidue:"rewards-residue"}}static from_obj_for_encoding(e){if(typeof e["fee-sink"]>"u")throw new Error(`Response is missing required field 'fee-sink': ${e}`);if(typeof e["rewards-calculation-round"]>"u")throw new Error(`Response is missing required field 'rewards-calculation-round': ${e}`);if(typeof e["rewards-level"]>"u")throw new Error(`Response is missing required field 'rewards-level': ${e}`);if(typeof e["rewards-pool"]>"u")throw new Error(`Response is missing required field 'rewards-pool': ${e}`);if(typeof e["rewards-rate"]>"u")throw new Error(`Response is missing required field 'rewards-rate': ${e}`);if(typeof e["rewards-residue"]>"u")throw new Error(`Response is missing required field 'rewards-residue': ${e}`);return new hl({feeSink:e["fee-sink"],rewardsCalculationRound:e["rewards-calculation-round"],rewardsLevel:e["rewards-level"],rewardsPool:e["rewards-pool"],rewardsRate:e["rewards-rate"],rewardsResidue:e["rewards-residue"]})}}class pl extends ce{constructor({currentProtocol:e,nextProtocol:r,nextProtocolApprovals:n,nextProtocolSwitchOn:i,nextProtocolVoteBefore:s}){super(),this.currentProtocol=e,this.nextProtocol=r,this.nextProtocolApprovals=n,this.nextProtocolSwitchOn=i,this.nextProtocolVoteBefore=s,this.attribute_map={currentProtocol:"current-protocol",nextProtocol:"next-protocol",nextProtocolApprovals:"next-protocol-approvals",nextProtocolSwitchOn:"next-protocol-switch-on",nextProtocolVoteBefore:"next-protocol-vote-before"}}static from_obj_for_encoding(e){if(typeof e["current-protocol"]>"u")throw new Error(`Response is missing required field 'current-protocol': ${e}`);return new pl({currentProtocol:e["current-protocol"],nextProtocol:e["next-protocol"],nextProtocolApprovals:e["next-protocol-approvals"],nextProtocolSwitchOn:e["next-protocol-switch-on"],nextProtocolVoteBefore:e["next-protocol-vote-before"]})}}class gl extends ce{constructor({upgradeApprove:e,upgradeDelay:r,upgradePropose:n}){super(),this.upgradeApprove=e,this.upgradeDelay=r,this.upgradePropose=n,this.attribute_map={upgradeApprove:"upgrade-approve",upgradeDelay:"upgrade-delay",upgradePropose:"upgrade-propose"}}static from_obj_for_encoding(e){return new gl({upgradeApprove:e["upgrade-approve"],upgradeDelay:e["upgrade-delay"],upgradePropose:e["upgrade-propose"]})}}class ml extends ce{constructor({name:e,round:r,value:n}){super(),this.name=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.round=r,this.value=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.attribute_map={name:"name",round:"roun
151d",value:"value"}}static from_obj_for_encoding(e){if(typeof e.name>"u")throw new Error(`Response is missing required field 'name': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new ml({name:e.name,round:e.round,value:e.value})}}class yl extends ce{constructor({name:e}){super(),this.name=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.attribute_map={name:"name"}}static from_obj_for_encoding(e){if(typeof e.name>"u")throw new Error(`Response is missing required field 'name': ${e}`);return new yl({name:e.name})}}class xl extends ce{constructor({applicationId:e,boxes:r,nextToken:n}){super(),this.applicationId=e,this.boxes=r,this.nextToken=n,this.attribute_map={applicationId:"application-id",boxes:"boxes",nextToken:"next-token"}}static from_obj_for_encoding(e){if(typeof e["application-id"]>"u")throw new Error(`Response is missing required field 'application-id': ${e}`);if(!Array.isArray(e.boxes))throw new Error(`Response is missing required array field 'boxes': ${e}`);return new xl({applicationId:e["application-id"],boxes:e.boxes.map(yl.from_obj_for_encoding),nextToken:e["next-token"]})}}class ad extends ce{constructor({message:e,data:r}){super(),this.message=e,this.data=r,this.attribute_map={message:"message",data:"data"}}static from_obj_for_encoding(e){if(typeof e.message>"u")throw new Error(`Response is missing required field 'message': ${e}`);return new ad({message:e.message,data:e.data})}}class wl extends ce{constructor({action:e,bytes:r,uint:n}){super(),this.action=e,this.bytes=r,this.uint=n,this.attribute_map={action:"action",bytes:"bytes",uint:"uint"}}static from_obj_for_encoding(e){if(typeof e.action>"u")throw new Error(`Response is missing required field 'action': ${e}`);return new wl({action:e.action,bytes:e.bytes,uint:e.uint})}}class eo extends ce{constructor({key:e,value:r}){super(),this.key=e,this.value=r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new eo({key:e.key,value:wl.from_obj_for_encoding(e.value)})}}class vl extends ce{constructor({hashType:e}){super(),this.hashType=e,this.attribute_map={hashType:"hash-type"}}static from_obj_for_encoding(e){return new vl({hashType:e["hash-type"]})}}class bl extends ce{constructor({hbPk:e,hbPk1sig:r,hbPk2:n,hbPk2sig:i,hbSig:s}){super(),this.hbPk=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.hbPk1sig=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.hbPk2=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.hbPk2sig=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.hbSig=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.attribute_map={hbPk:"hb-pk",hbPk1sig:"hb-pk1sig",hbPk2:"hb-pk2",hbPk2sig:"hb-pk2sig",hbSig:"hb-sig"}}static from_obj_for_encoding(e){return new bl({hbPk:e["hb-pk"],hbPk1sig:e["hb-pk1sig"],hbPk2:e["hb-pk2"],hbPk2sig:e["hb-pk2sig"],hbSig:e["hb-sig"]})}}class ld extends ce{constructor({dbAvailable:e,isMigrating:r,message:n,round:i,version:s,data:o,errors:l}){super(),this.dbAvailable=e,this.isMigrating=r,this.message=n,this.round=i,this.version=s,this.data=o,this.errors=l,this.attribute_map={dbAvailable:"db-available",isMigrating:"is-migrating",message:"message",round:"round",version:"version",data:"data",errors:"errors"}}static from_obj_for_encoding(e){if(typeof e["db-available"]>"u")throw new Error(`Response is missing required field 'db-available': ${e}`);if(typeof e["is-migrating"]>"u")throw new Error(`Response is missing required field 'is-migrating': ${e}`);if(typeof e.message>"u")throw new Error(`Response is missing required field 'message': ${e}`);if(typeof e.round>"u")throw new Error(`Response is missing required field 'round': ${e}`);if(typeof e.version>"u")throw new Error(`Response is missing required field 'version': ${e}`);return new ld({dbAvailable:e["db-available"],isMigrating:e["is-migrating"],message:e.message,round:e.round,version:e.version,data:e.data,errors:e.errors})}}class _l extends ce{constructor({blockHeadersCommitment:e,firstAttestedRound:r,latestAttestedRound:n,lnProvenWeight:i,votersCommitment:s}){super(),this.blockHeadersCommitment=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.firstAttestedRound=r,this.latestAttestedRound=n,this.lnProvenWeight=i,this.votersCommitment=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.attribute_map={blockHeadersCommitment:"block-headers-commitment",firstAttestedRound:"first-attested-round",latestAttestedRound:"latest-attested-round",lnProvenWeight:"ln-proven-weight",votersCommitment:"voters-commitment"}}static from_obj_for_encoding(e){return new _l({blockHeadersCommitment:e["block-headers-commitment"],firstAttestedRound:e["first-attested-round"],latestAttestedRound:e["latest-attested-round"],lnProvenWeight:e["ln-proven-weight"],votersCommitment:e["voters-commitment"]})}}class Li extends ce{constructor({hashFactory:e,path:r,treeDepth:n}){super(),this.hashFactory=e,this.path=r,this.treeDepth=n,this.attribute_map={hashFactory:"hash-factory",path:"path",treeDepth:"tree-depth"}}static from_obj_for_encoding(e){return new Li({hashFactory:typeof e["hash-factory"]<"u"?vl.from_obj_for_encoding(e["hash-factory"]):void 0,path:e.path,treeDepth:e["tree-depth"]})}}class Al extends ce{constructor({address:e,amount:r,isFrozen:n,deleted:i,optedInAtRound:s,optedOutAtRound:o}){super(),this.address=e,this.amount=r,this.isFrozen=n,this.deleted=i,this.optedInAtRound=s,this.optedOutAtRound=o,this.attribute_map={address:"address",amount:"amount",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["is-frozen"]>"u")throw new Error(`Response is missing required field 'is-frozen': ${e}`);return new Al({address:e.address,amount:e.amount,isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}class El extends ce{constructor({absentParticipationAccounts:e,expiredParticipationAccounts:r}){super(),this.absentParticipationAccounts=e,this.expiredParticipationAccounts=r,this.attribute_map={absentParticipationAccounts:"absent-participation-accounts",expiredParticipationAccounts:"expired-participation-accounts"}}static from_obj_for_encoding(e){return new El({absentParticipationAccounts:e["absent-participation-accounts"],expiredParticipationAccounts:e["expired-participation-accounts"]})}}class Fl extends ce{constructor({partProofs:e,positionsToReveal:r,reveals:n,saltVersion:i,sigCommit:s,sigProofs:o,signedWeight:l}){super(),this.partProofs=e,this.positionsToReveal=r,this.reveals=n,this.saltVersion=i,this.sigCommit=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.sigProofs=o,this.signedWeight=l,this.attribute_map={partProofs:"part-proofs",positionsToReveal:"positions-to-reveal",reveals:"reveals",saltVersion:"salt-version",sigCommit:"sig-commit",sigProofs:"sig-proofs",signedWeight:"signed-weight"}}static from_obj_for_encoding(e){return new Fl({partProofs:typeof e["part-proofs"]<"u"?Li.from_obj_for_encoding(e["part-proofs"]):void 0,positionsToReveal:e["positions-to-reveal"],reveals:typeof e.reveals<"u"?e.reveals.map(kl.from_obj_for_encoding):void 0,saltVersion:e["salt-version"],sigCommit:e["sig-commit"],sigProofs:typeof e["sig-proofs"]<"u"?Li.from_obj_for_encoding(e["sig-proofs"]):void 0,signedWeight:e["signed-weight"]})}}class Sl extends ce{constructor({verifier:e,weight:r}){super(),this.verifier=e,this.weight=r,this.attribute_map={verifier:"verifier",weight:"weight"}}static from_obj_for_encoding(e){return new Sl({verifier:typeof e.verifier<"u"?Il.from_obj_for_encoding(e.verifier):void 0,weight:e.weight})}}class kl extends ce{constructor({participant:e,position:r,sigSlot:n}){super(),this.participant=e,this.position=r,this.sigSlot=n,this.attribute_map={participant:"participant",position:"position",sigSlot:"sig-slot"}}static from_obj_for_encoding(e){return new kl({participant:typeof e.participant<"u"?Sl.from_obj_for_encoding(e.participant):void 0,position:e.position,sigSlot:typeof e["sig-slot"]<"u"?Rl.from_obj_for_encoding(e["sig-slot"]):void 0})}}class Rl extends ce{constructor({lowerSigWeight:e,signature:r}){super(),this.lowerSigWeight=e,this.signature=r,this.attribute_map={lowerSigWeight:"lower-sig-weight",signature:"signature"}}static from_obj_for_encoding(e){return new Rl({lowerSigWeight:e["lower-sig-weight"],signature:typeof e.signature<"u"?Bl.from_obj_for_encoding(e.signature):void 0})}}class Bl extends ce{constructor({falconSignature:e,merkleArrayIndex:r,proof:n,verifyingKey:i}){super(),this.falconSignature=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.merkleArrayIndex=r,this.proof=n,this.verifyingKey=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.attribute_map={falconSignature:"falcon-signature",merkleArrayIndex:"merkle-array-index",proof:"proof",verifyingKey:"verifying-key"}}static from_obj_for_encoding(e){return new Bl({falconSignature:e["falcon-signature"],merkleArrayIndex:e["merkle-array-index"],proof:typeof e.proof<"u"?Li.from_obj_for_encoding(e.proof):void 0,verifyingKey:e["verifying-key"]})}}class Tl extends ce{constructor({nextRound:e,onlineTotalWeight:r,type:n,votersCommitment:i}){super(),this.nextRound=e,this.onlineTotalWeight=r,this.type=n,this.votersCommitment=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.attribute_map={nextRound:"next-round",onlineTotalWeight:"online-total-weight",type:"type",votersCommitment:"voters-commitment"}}static from_obj_for_encoding(e){return new Tl({nextRound:e["next-round"],onlineTotalWeight:e["online-total-weight"],type:e.type,votersCommitment:e["voters-commitment"]})}}class Il extends ce{constructor({commitment:e,keyLifetime:r}){super(),this.commitment=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.keyLifetime=r,this.attribute_map={commitment:"commitment",keyLifetime:"key-lifetime"}}static from_obj_for_encoding(e){return new Il({commitment:e.commitment,keyLifetime:e["key-lifetime"]})}}class Ls extends ce{constructor({numByteSlice:e,numUint:r}
151){super(),this.numByteSlice=e,this.numUint=r,this.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"}}static from_obj_for_encoding(e){if(typeof e["num-byte-slice"]>"u")throw new Error(`Response is missing required field 'num-byte-slice': ${e}`);if(typeof e["num-uint"]>"u")throw new Error(`Response is missing required field 'num-uint': ${e}`);return new Ls({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}class to extends ce{constructor({key:e,value:r}){super(),this.key=e,this.value=r,this.attribute_map={key:"key",value:"value"}}static from_obj_for_encoding(e){if(typeof e.key>"u")throw new Error(`Response is missing required field 'key': ${e}`);if(typeof e.value>"u")throw new Error(`Response is missing required field 'value': ${e}`);return new to({key:e.key,value:Cl.from_obj_for_encoding(e.value)})}}class Cl extends ce{constructor({bytes:e,type:r,uint:n}){super(),this.bytes=e,this.type=r,this.uint=n,this.attribute_map={bytes:"bytes",type:"type",uint:"uint"}}static from_obj_for_encoding(e){if(typeof e.bytes>"u")throw new Error(`Response is missing required field 'bytes': ${e}`);if(typeof e.type>"u")throw new Error(`Response is missing required field 'type': ${e}`);if(typeof e.uint>"u")throw new Error(`Response is missing required field 'uint': ${e}`);return new Cl({bytes:e.bytes,type:e.type,uint:e.uint})}}class ni extends ce{constructor({fee:e,firstValid:r,lastValid:n,sender:i,applicationTransaction:s,assetConfigTransaction:o,assetFreezeTransaction:l,assetTransferTransaction:g,authAddr:d,closeRewards:k,closingAmount:C,confirmedRound:j,createdApplicationIndex:X,createdAssetIndex:H,genesisHash:G,genesisId:D,globalStateDelta:R,group:w,heartbeatTransaction:T,id:W,innerTxns:J,intraRoundOffset:A,keyregTransaction:P,lease:M,localStateDelta:se,logs:$,note:he,paymentTransaction:ae,receiverRewards:de,rekeyTo:xe,roundTime:Ie,senderRewards:Le,signature:Ye,stateProofTransaction:pe,txType:we}){super(),this.fee=e,this.firstValid=r,this.lastValid=n,this.sender=i,this.applicationTransaction=s,this.assetConfigTransaction=o,this.assetFreezeTransaction=l,this.assetTransferTransaction=g,this.authAddr=d,this.closeRewards=k,this.closingAmount=C,this.confirmedRound=j,this.createdApplicationIndex=X,this.createdAssetIndex=H,this.genesisHash=typeof G=="string"?new Uint8Array(O.Buffer.from(G,"base64")):G,this.genesisId=D,this.globalStateDelta=R,this.group=typeof w=="string"?new Uint8Array(O.Buffer.from(w,"base64")):w,this.heartbeatTransaction=T,this.id=W,this.innerTxns=J,this.intraRoundOffset=A,this.keyregTransaction=P,this.lease=typeof M=="string"?new Uint8Array(O.Buffer.from(M,"base64")):M,this.localStateDelta=se,this.logs=$,this.note=typeof he=="string"?new Uint8Array(O.Buffer.from(he,"base64")):he,this.paymentTransaction=ae,this.receiverRewards=de,this.rekeyTo=xe,this.roundTime=Ie,this.senderRewards=Le,this.signature=Ye,this.stateProofTransaction=pe,this.txType=we,this.attribute_map={fee:"fee",firstValid:"first-valid",lastValid:"last-valid",sender:"sender",applicationTransaction:"application-transaction",assetConfigTransaction:"asset-config-transaction",assetFreezeTransaction:"asset-freeze-transaction",assetTransferTransaction:"asset-transfer-transaction",authAddr:"auth-addr",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",createdApplicationIndex:"created-application-index",createdAssetIndex:"created-asset-index",genesisHash:"genesis-hash",genesisId:"genesis-id",globalStateDelta:"global-state-delta",group:"group",heartbeatTransaction:"heartbeat-transaction",id:"id",innerTxns:"inner-txns",intraRoundOffset:"intra-round-offset",keyregTransaction:"keyreg-transaction",lease:"lease",localStateDelta:"local-state-delta",logs:"logs",note:"note",paymentTransaction:"payment-transaction",receiverRewards:"receiver-rewards",rekeyTo:"rekey-to",roundTime:"round-time",senderRewards:"sender-rewards",signature:"signature",stateProofTransaction:"state-proof-transaction",txType:"tx-type"}}static from_obj_for_encoding(e){if(typeof e.fee>"u")throw new Error(`Response is missing required field 'fee': ${e}`);if(typeof e["first-valid"]>"u")throw new Error(`Response is missing required field 'first-valid': ${e}`);if(typeof e["last-valid"]>"u")throw new Error(`Response is missing required field 'last-valid': ${e}`);if(typeof e.sender>"u")throw new Error(`Response is missing required field 'sender': ${e}`);return new ni({fee:e.fee,firstValid:e["first-valid"],lastValid:e["last-valid"],sender:e.sender,applicationTransaction:typeof e["application-transaction"]<"u"?jl.from_obj_for_encoding(e["application-transaction"]):void 0,assetConfigTransaction:typeof e["asset-config-transaction"]<"u"?Nl.from_obj_for_encoding(e["asset-config-transaction"]):void 0,assetFreezeTransaction:typeof e["asset-freeze-transaction"]<"u"?Ul.from_obj_for_encoding(e["asset-freeze-transaction"]):void 0,assetTransferTransaction:typeof e["asset-transfer-transaction"]<"u"?Dl.from_obj_for_encoding(e["asset-transfer-transaction"]):void 0,authAddr:e["auth-addr"],closeRewards:e["close-rewards"],closingAmou
151nt:e["closing-amount"],confirmedRound:e["confirmed-round"],createdApplicationIndex:e["created-application-index"],createdAssetIndex:e["created-asset-index"],genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],globalStateDelta:typeof e["global-state-delta"]<"u"?e["global-state-delta"].map(eo.from_obj_for_encoding):void 0,group:e.group,heartbeatTransaction:typeof e["heartbeat-transaction"]<"u"?Pl.from_obj_for_encoding(e["heartbeat-transaction"]):void 0,id:e.id,innerTxns:typeof e["inner-txns"]<"u"?e["inner-txns"].map(ni.from_obj_for_encoding):void 0,intraRoundOffset:e["intra-round-offset"],keyregTransaction:typeof e["keyreg-transaction"]<"u"?Ll.from_obj_for_encoding(e["keyreg-transaction"]):void 0,lease:e.lease,localStateDelta:typeof e["local-state-delta"]<"u"?e["local-state-delta"].map(ul.from_obj_for_encoding):void 0,logs:e.logs,note:e.note,paymentTransaction:typeof e["payment-transaction"]<"u"?$l.from_obj_for_encoding(e["payment-transaction"]):void 0,receiverRewards:e["receiver-rewards"],rekeyTo:e["rekey-to"],roundTime:e["round-time"],senderRewards:e["sender-rewards"],signature:typeof e.signature<"u"?Ol.from_obj_for_encoding(e.signature):void 0,stateProofTransaction:typeof e["state-proof-transaction"]<"u"?zl.from_obj_for_encoding(e["state-proof-transaction"]):void 0,txType:e["tx-type"]})}}class jl extends ce{constructor({applicationId:e,accounts:r,applicationArgs:n,approvalProgram:i,clearStateProgram:s,extraProgramPages:o,foreignApps:l,foreignAssets:g,globalStateSchema:d,localStateSchema:k,onCompletion:C}){super(),this.applicationId=e,this.accounts=r,this.applicationArgs=n,this.approvalProgram=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.clearStateProgram=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.extraProgramPages=o,this.foreignApps=l,this.foreignAssets=g,this.globalStateSchema=d,this.localStateSchema=k,this.onCompletion=C,this.attribute_map={applicationId:"application-id",accounts:"accounts",applicationArgs:"application-args",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",extraProgramPages:"extra-program-pages",foreignApps:"foreign-apps",foreignAssets:"foreign-assets",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema",onCompletion:"on-completion"}}static from_obj_for_encoding(e){if(typeof e["application-id"]>"u")throw new Error(`Response is missing required field 'application-id': ${e}`);return new jl({applicationId:e["application-id"],accounts:e.accounts,applicationArgs:e["application-args"],approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],extraProgramPages:e["extra-program-pages"],foreignApps:e["foreign-apps"],foreignAssets:e["foreign-assets"],globalStateSchema:typeof e["global-state-schema"]<"u"?Ls.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:typeof e["local-state-schema"]<"u"?Ls.from_obj_for_encoding(e["local-state-schema"]):void 0,onCompletion:e["on-completion"]})}}class Nl extends ce{constructor({assetId:e,params:r}){super(),this.assetId=e,this.params=r,this.attribute_map={assetId:"asset-id",params:"params"}}static from_obj_for_encoding(e){return new Nl({assetId:e["asset-id"],params:typeof e.params<"u"?Zs.from_obj_for_encoding(e.params):void 0})}}class Ul extends ce{constructor({address:e,assetId:r,newFreezeStatus:n}){super(),this.address=e,this.assetId=r,this.newFreezeStatus=n,this.attribute_map={address:"address",assetId:"asset-id",newFreezeStatus:"new-freeze-status"}}static from_obj_for_encoding(e){if(typeof e.address>"u")throw new Error(`Response is missing required field 'address': ${e}`);if(typeof e["asset-id"]>"u")throw new Error(`Response is missing required field 'asset-id': ${e}`);if(typeof e["new-freeze-status"]>"u")throw new Error(`Response is missing required field 'new-freeze-status': ${e}`);return new Ul({address:e.address,assetId:e["asset-id"],newFreezeStatus:e["new-freeze-status"]})}}class Dl extends ce{constructor({amount:e,assetId:r,receiver:n,closeAmount:i,closeTo:s,sender:o}){super(),this.amount=e,this.assetId=r,this.receiver=n,this.closeAmount=i,this.closeTo=s,this.sender=o,this.attribute_map={amount:"amount",assetId:"asset-id",receiver:"receiver",closeAmount:"close-amount",closeTo:"close-to",sender:"sender"}}static from_obj_for_encoding(e){if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e["asset-id"]>"u")throw new Error(`Response is missing required field 'asset-id': ${e}`);if(typeof e.receiver>"u")throw new Error(`Response is missing required field 'receiver': ${e}`);return new Dl({amount:e.amount,assetId:e["asset-id"],receiver:e.receiver,closeAmount:e["close-amount"],closeTo:e["close-to"],sender:e.sender})}}class Pl extends ce{constructor({hbAddress:e,hbKeyDilution:r,hbProof:n,hbSeed:i,hbVoteId:s}){super(),this.hbAddress=e,this.hbKeyDilution=r,this.hbProof=n,this.hbSeed=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.hbVoteId=typeof s=="string"?new Uint8Array(O.Buffer.from(s,"base64")):s,this.attribute_map={hbAddress:"hb-address",hbKeyDilution:"hb-key-dilution",hbProof:"hb-proof",hbSeed:"hb-seed",hbVoteId:"hb-vote-id"}}static from_obj_for_encoding(e){if(typeof e["hb-address"]>"u")throw new Error(`Response is missing required field 'hb-address': ${e}`);if(typeof e["hb-key-dilution"]>"u")throw new Error(`Response is missing required field 'hb-key-dilution': ${e}`);if(typeof e["hb-proof"]>"u")throw new Error(`Response is missing required field 'hb-proof': ${e}`);if(typeof e["hb-seed"]>"u")throw new Error(`Response is missing required field 'hb-seed': ${e}`);if(typeof e["hb-vote-id"]>"u")throw new Error(`Response is missing required field 'hb-vote-id': ${e}`);return new Pl({hbAddress:e["hb-address"],hbKeyDilution:e["hb-key-dilution"],hbProof:bl.from_obj_for_encoding(e["hb-proof"]),hbSeed:e["hb-seed"],hbVoteId:e["hb-vote-id"]})}}class Ll extends ce{constructor({nonParticipation:e,selectionParticipationKey:r,stateProofKey:n,voteFirstValid:i,voteKeyDilution:s,voteLastValid:o,voteParticipationKey:l}){super(),this.nonParticipation=e,this.selectionParticipationKey=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.stateProofKey=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.voteFirstValid=i,this.voteKeyDilution=s,this.voteLastValid=o,this.voteParticipationKey=typeof l=="string"?new Uint8Array(O.Buffer.from(l,"base64")):l,this.attribute_map={nonParticipation:"non-participation",selectionParticipationKey:"selection-
151participation-key",stateProofKey:"state-proof-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key"}}static from_obj_for_encoding(e){return new Ll({nonParticipation:e["non-participation"],selectionParticipationKey:e["selection-participation-key"],stateProofKey:e["state-proof-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"]})}}class $l extends ce{constructor({amount:e,receiver:r,closeAmount:n,closeRemainderTo:i}){super(),this.amount=e,this.receiver=r,this.closeAmount=n,this.closeRemainderTo=i,this.attribute_map={amount:"amount",receiver:"receiver",closeAmount:"close-amount",closeRemainderTo:"close-remainder-to"}}static from_obj_for_encoding(e){if(typeof e.amount>"u")throw new Error(`Response is missing required field 'amount': ${e}`);if(typeof e.receiver>"u")throw new Error(`Response is missing required field 'receiver': ${e}`);return new $l({amount:e.amount,receiver:e.receiver,closeAmount:e["close-amount"],closeRemainderTo:e["close-remainder-to"]})}}class ud extends ce{constructor({currentRound:e,transaction:r}){super(),this.currentRound=e,this.transaction=r,this.attribute_map={currentRound:"current-round",transaction:"transaction"}}static from_obj_for_encoding(e){if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);if(typeof e.transaction>"u")throw new Error(`Response is missing required field 'transaction': ${e}`);return new ud({currentRound:e["current-round"],transaction:ni.from_obj_for_encoding(e.transaction)})}}class Ol extends ce{constructor({logicsig:e,multisig:r,sig:n}){super(),this.logicsig=e,this.multisig=r,this.sig=typeof n=="string"?new Uint8Array(O.Buffer.from(n,"base64")):n,this.attribute_map={logicsig:"logicsig",multisig:"multisig",sig:"sig"}}static from_obj_for_encoding(e){return new Ol({logicsig:typeof e.logicsig<"u"?Ml.from_obj_for_encoding(e.logicsig):void 0,multisig:typeof e.multisig<"u"?ro.from_obj_for_encoding(e.multisig):void 0,sig:e.sig})}}class Ml extends ce{constructor({logic:e,args:r,multisigSignature:n,signature:i}){super(),this.logic=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.args=r,this.multisigSignature=n,this.signature=typeof i=="string"?new Uint8Array(O.Buffer.from(i,"base64")):i,this.attribute_map={logic:"logic",args:"args",multisigSignature:"multisig-signature",signature:"signature"}}static from_obj_for_encoding(e){if(typeof e.logic>"u")throw new Error(`Response is missing required field 'logic': ${e}`);return new Ml({logic:e.logic,args:e.args,multisigSignature:typeof e["multisig-signature"]<"u"?ro.from_obj_for_encoding(e["multisig-signature"]):void 0,signature:e.signature})}}class ro extends ce{constructor({subsignature:e,threshold:r,version:n}){super(),this.subsignature=e,this.threshold=r,this.version=n,this.attribute_map={subsignature:"subsignature",threshold:"threshold",version:"version"}}static from_obj_for_encoding(e){return new ro({subsignature:typeof e.subsignature<"u"?e.subsignature.map(ql.from_obj_for_encoding):void 0,threshold:e.threshold,version:e.version})}}class ql extends ce{constructor({publicKey:e,signature:r}){super(),this.publicKey=typeof e=="string"?new Uint8Array(O.Buffer.from(e,"base64")):e,this.signature=typeof r=="string"?new Uint8Array(O.Buffer.from(r,"base64")):r,this.attribute_map={publicKey:"public-key",signature:"signature"}}static from_obj_for_encoding(e){return new ql({publicKey:e["public-key"],signature:e.signature})}}class zl extends ce{constructor({message:e,stateProof:r,stateProofType:n}){super(),this.message=e,this.stateProof=r,this.stateProofType=n,this.attribute_map={message:"message",stateProof:"state-proof",stateProofType:"state-proof-type"}}static from_obj_for_encoding(e){return new zl({message:typeof e.message<"u"?_l.from_obj_for_encoding(e.message):void 0,stateProof:typeof e["state-proof"]<"u"?Fl.from_obj_for_encoding(e["state-proof"]):void 0,stateProofType:e["state-proof-type"]})}}class fd extends ce{constructor({currentRound:e,transactions:r,nextToken:n}){super(),this.currentRound=e,this.transactions=r,this.nextToken=n,this.attribute_map={currentRound:"current-round",transactions:"transactions",nextToken:"next-token"}}static from_obj_for_encoding(e){if(typeof e["current-round"]>"u")throw new Error(`Response is missing required field 'current-round': ${e}`);if(!Array.isArray(e.transactions))throw new Error(`Response is missing required array field 'transactions': ${e}`);return new fd({currentRound:e["current-round"],transactions:e.transactions.map(ni.from_obj_for_encoding),nextToken:e["next-token"]})}}const Dv=Object.freeze(Object.defineProperty({__proto__:null,Account:Xs,AccountParticipation:ll,AccountResponse:Xc,AccountStateDelta:ul,AccountsResponse:Qc,Application:Hi,ApplicationLocalState:Qs,ApplicationLocalStatesResponse:Jc,ApplicationLogData:fl,ApplicationLogsResponse:Zc,ApplicationParams:cl,ApplicationResponse:ed,ApplicationStateSchema:ri,ApplicationsResponse:td,Asset:Ki,AssetBalancesResponse:rd,AssetHolding:Js,AssetHoldingsResponse:nd,AssetParams:Zs,AssetResponse:id,AssetsResponse:sd,Block:dl,BlockHeadersResponse:od,BlockRewards:hl,BlockUpgradeState:pl,BlockUpgradeVote:gl,Box:ml,BoxDescriptor:yl,BoxesResponse:xl,ErrorResponse:ad,EvalDelta:wl,EvalDeltaKeyValue:eo,HashFactory:vl,HbProofFields:bl,HealthCheck:ld,IndexerStateProofMessage:_l,MerkleArrayProof:Li,MiniAssetHolding:Al,ParticipationUpdates:El,StateProofFields:Fl,StateProofParticipant:Sl,StateProofReveal:kl,StateProofSigSlot:Rl,StateProofSignature:Bl,StateProofTracking:Tl,StateProofVerifier:Il,StateSchema:Ls,TealKeyValue:to,TealValue:Cl,Transaction:ni,TransactionApplication:jl,TransactionAssetConfig:Nl,TransactionAssetFreeze:Ul,TransactionAssetTransfer:Dl,TransactionHeartbeat:Pl,TransactionKeyreg:Ll,TransactionPayment:$l,TransactionResponse:ud,TransactionSignature:Ol,TransactionSignatureLogicsig:Ml,TransactionSignatureMultisig:ro,TransactionSignatureMultisigSubsignature:ql,TransactionStateProof:zl,TransactionsResponse:fd}
151,Symbol.toStringTag,{value:"Module"}));class Pv extends Ve{constructor(e,r,n,i){super(e,r),this.index=n,this.index=n;const s=O.Buffer.from(i).toString("base64");this.query.name=encodeURI(`b64:${s}`)}path(){return`/v2/applications/${this.index}/box`}prepare(e){return ml.from_obj_for_encoding(e)}}class Lv extends Ve{path(){return"/v2/accounts"}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}limit(e){return this.query.limit=e,this}assetID(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}round(e){return this.query.round=e,this}authAddr(e){return this.query["auth-addr"]=e,this}applicationID(e){return this.query["application-id"]=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}exclude(e){return this.query.exclude=e,this}}class $v extends Ve{path(){return"/v2/block-headers"}absent(e){return this.query.absent=e,this}afterTime(e){return this.query["after-time"]=e,this}beforeTime(e){return this.query["before-time"]=e,this}expired(e){return this.query.expired=e,this}limit(e){return this.query.limit=e,this}maxRound(e){return this.query["max-round"]=e,this}minRound(e){return this.query["min-round"]=e,this}nextToken(e){return this.query.next=e,this}proposers(e){return this.query.proposers=e,this}}class Ov extends Ve{path(){return"/v2/transactions"}notePrefix(e){return this.query["note-prefix"]=Yc(e),this}txType(e){return this.query["tx-type"]=e,this}sigType(e){return this.query["sig-type"]=e,this}txid(e){return this.query.txid=e,this}round(e){return this.query.round=e,this}minRound(e){return this.query["min-round"]=e,this}maxRound(e){return this.query["max-round"]=e,this}assetID(e){return this.query["asset-id"]=e,this}limit(e){return this.query.limit=e,this}beforeTime(e){return this.query["before-time"]=e,this}afterTime(e){return this.query["after-time"]=e,this}addressRole(e){return this.query["address-role"]=e,this}address(e){return this.query.address=e,this}excludeCloseTo(e){return this.query["exclude-close-to"]=e,this}nextToken(e){return this.query.next=e,this}rekeyTo(e){return this.query["rekey-to"]=e,this}applicationID(e){return this.query["application-id"]=e,this}currencyGreaterThan(e){return this.query["currency-greater-than"]=e.toString(),this}currencyLessThan(e){return this.query["currency-less-than"]=e,this}}class Mv extends Ve{path(){return"/v2/assets"}limit(e){return this.query.limit=e,this}creator(e){return this.query.creator=e,this}name(e){return this.query.name=e,this}unit(e){return this.query.unit=e,this}index(e){return this.query["asset-id"]=e,this}nextToken(e){return this.query.next=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}}class qv extends Ve{path(){return"/v2/applications"}index(e){return this.query["application-id"]=e,this}creator(e){return this.query.creator=e,this}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}includeAll(e=!0){return this.query["include-all"]=e,this}}class zv extends Ve{constructor(e,r,n){super(e,r),this.index=n,this.index=n}path(){return`/v2/applications/${this.index}/boxes`}nextToken(e){return this.query.next=e,this}limit(e){return this.query.limit=e,this}prepare(e){return xl.from_obj_for_encoding(e)}}class Hv extends kc{constructor(e,r="http://127.0.0.1",n=8080,i={}){super("X-Indexer-API-Token",e,r,n,i)}makeHealthCheck(){return new _v(this.c,this.intDecoding)}lookupAssetBalances(e){return new Av(this.c,this.intDecoding,e)}lookupAssetTransactions(e){return new Fv(this.c,this.intDecoding,e)}lookupAccountTransactions(e){return new Ev(this.c,this.intDecoding,e)}lookupBlock(e){return new Sv(this.c,this.intDecoding,e)}lookupTransactionByID(e){return new kv(this.c,this.intDecoding,e)}lookupAccountByID(e){return new Rv(this.c,this.intDecoding,e)}lookupAccountAssets(e){return new Bv(this.c,this.intDecoding,e)}lookupAccountCreatedAssets(e){return new Tv(this.c,this.intDecoding,e)}lookupAccountAppLocalStates(e){return new Iv(this.c,this.intDecoding,e)}lookupAccountCreatedApplications(e){return new Cv(this.c,this.intDecoding,e)}lookupAssetByID(e){return new jv(this.c,this.intDecoding,e)}lookupApplications(e){return new Nv(this.c,this.intDecoding,e)}lookupApplicationLogs(e){return new Uv(this.c,this.intDecoding,e)}searchAccounts(){return new Lv(this.c,this.intDecoding)}searchForTransactions(){return new Ov(this.c,this.intDecoding)}searchForBlockHeaders(){return new $v(this.c,this.intDecoding)}searchForAssets(){return new Mv(this.c,this.intDecoding)}searchForApplications(){return new qv(this.c,this.intDecoding)}searchForApplicationBoxes(e){return new zv(this.c,this.intDecoding,e)}lookupApplicationBoxByIDandName(e,r){return new Pv(this.c,this.intDecoding,e,r)}}async function nm(t,e,r){const n=await t.status().do();if(typeof n>"u")throw new Error("Unable to get node status");const i=n["last-round"]+1;let s=i;for(;s<i+r;){let o=!1;try{const l=await t.pendingTransactionInformation(e).do();if(l["confirmed-round"])return l;
151if(l["pool-error"])throw o=!0,new Error(`Transaction Rejected: ${l["pool-error"]}`)}catch(l){if(o)throw l}await t.statusAfterBlock(s).do(),s+=1}throw new Error(`Transaction not confirmed after ${r} rounds`)}function ii(t,e){let r=t.toString(16);r.length!==e*2&&(r=r.padStart(e*2,"0"));const n=new Uint8Array(r.length/2);for(let i=0,s=0;i<r.length/2;i++,s+=2)n[i]=parseInt(r.slice(s,s+2),16);return n}function cd(t){let e=BigInt(0);const r=O.Buffer.from(t);for(let n=0;n<t.length;n++)e=BigInt(Number(r.readUIntBE(n,1)))+e*BigInt(256);return e}function Kv(){const t=Xx();return{addr:Xe(t.publicKey),sk:t.secretKey}}const Rf=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","de
151sk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","ric
151h","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],Su="failed to decode mnemonic",Vv="the mnemonic contains a word that is not in the wordlist";function im(t){const e=[];let r=0,n=0;function i(o){r|=o<<n,n+=8,n>=11&&(e.push(r&2047),r>>=11,n-=11)}function s(){n&&e.push(r)}return t.forEach(i),s(),e}function sm(t){return t.map(e=>Rf[e])}function om(t){const e=Zr(t),r=im(e);return sm(r)[0]}function dd(t){if(t.length!==Ef)throw new RangeError(`Seed length must be ${Ef}`);const e=im(t),r=sm(e),n=om(t);return`${r.join(" ")} ${n}`}function Gv(t){const e=[];let r=0,n=0;function i(o){for(r|=o<<n,n+=11;n>=8;)e.push(r&255),r>>=8,n-=8}function s(){n&&e.push(r)}return t.forEach(i),s(),new Uint8Array(e)}function hd(t){const e=t.split(" "),r=e.slice(0,24);for(const l of r)if(Rf.indexOf(l)===-1)throw new Error(Vv);const n=e[e.length-1],i=r.map(l=>Rf.indexOf(l));let s=Gv(i);if(s.length!==33)throw new Error(Su);if(s[s.length-1]!==0)throw new Error(Su);if(s=s.slice(0,s.length-1),om(s)===n)return s;throw new Error(Su)}function Wv(t){const e=hd(t),r=gg(e);
151return{addr:Xe(r.publicKey),sk:r.secretKey}}function Yv(t){const e=t.slice(0,Ef);return dd(e)}function Xv(t){return hd(t)}function Qv(t){return dd(t)}const Lh=16;class Jv{constructor(e){if(this.name="Transaction group",this.tag=O.Buffer.from("TG"),e.length>Lh){const r=`${e.length.toString()} transactions grouped together but max group size is ${Lh.toString()}`;throw Error(r)}this.txGroupHashes=e}get_obj_for_encoding(){return{txlist:this.txGroupHashes}}static from_obj_for_encoding(e){const r=Object.create(this.prototype);r.name="Transaction group",r.tag=O.Buffer.from("TG"),r.txGroupHashes=[];for(const n of e.txlist)r.txGroupHashes.push(O.Buffer.from(n));return r}toByte(){return ar(this.get_obj_for_encoding())}}function am(t){const e=[];for(const o of t){const l=In(o);e.push(l.rawTxID())}const r=new Jv(e),n=r.toByte(),i=O.Buffer.from(Ht(r.tag,n)),s=Zr(i);return O.Buffer.from(s)}function lm(t,e){const r=am(t),n=[];for(const i of t){const s=In(i);(!e||Xe(s.from.publicKey)===e)&&(s.group=r,n.push(s))}return n}const Zv="Not enough multisig transactions to merge. Need at least two",e2="Cannot merge txs. txIDs differ",t2="Cannot merge txs. Auth addrs differ",$h="Cannot merge txs. Multisig preimages differ",r2="Cannot merge txs. subsigs are mismatched.",n2="Key does not exist",Oh="Cannot mutate a multisig field as it would invali
151date all existing signatures.",i2="Cannot sign a multisig transaction using `signTxn`. Use `partialSignTxn` instead.",s2="Cannot add multisig signature. Signature is not of the correct length.";function um(t,{version:e,threshold:r,addrs:n}){const i=n.map(k=>rt(k).publicKey),s=i.map(k=>({pk:O.Buffer.from(k)})),o={v:e,thr:r,subsig:s},l=t.get_obj_for_encoding(),g={msig:o,txn:l},d=Nn({version:e,threshold:r,pks:i});return Xe(l.snd)!==Xe(d)&&(g.sgnr=O.Buffer.from(d)),new Uint8Array(ar(g))}function Mh(t,{rawSig:e,myPk:r},{version:n,threshold:i,pks:s}){const o=um(t,{version:n,threshold:i,addrs:s.map(k=>Xe(k))}),l=Wt(o);let g=!1;if(l.msig.subsig.forEach((k,C)=>{yg(k.pk,r)&&(g=!0,l.msig.subsig[C].s=e)}),g===!1)throw new Error(n2);const d=Nn({version:n,threshold:i,pks:s});return Xe(l.txn.snd)!==Xe(d)&&(l.sgnr=O.Buffer.from(d)),new Uint8Array(ar(l))}class $i extends Tt{addLease(){throw new Error(Oh)}addRekey(){throw new Error(Oh)}signTxn(e){throw new Error(i2)}partialSignTxn({version:e,threshold:r,pks:n},i){const s=Ks(i).publicKey;return Mh(this,{rawSig:this.rawSignTxn(i),myPk:s},{version:e,threshold:r,pks:n})}partialSignWithMultisigSignature(e,r,n){if(!mg(n.length))throw new Error(s2);return Mh(this,{rawSig:n,myPk:rt(r).publicKey},e)}static from_obj_for_encoding(e){return super.from_obj_for_encoding(e)}}function Hl(t){if(t.length<2)throw new Error(Zv);const e=Wt(t[0]),r=$i.from_obj_for_encoding(e.txn).txID(),n=e.sgnr?Xe(e.sgnr):void 0,i={version:e.msig.v,threshold:e.msig.thr,pks:e.msig.subsig.map(d=>d.pk)},s=Xe(Nn(i)),o=e.msig.subsig.map(d=>({...d}));for(let d=1;d<t.length;d++){const k=Wt(t[d]);if($i.from_obj_for_encoding(k.txn).txID()!==r)throw new Error(e2);const j=k.sgnr?Xe(k.sgnr):void 0;if(n!==j)throw new Error(t2);if(k.msig.subsig.length!==e.msig.subsig.length)throw new Error($h);const X={version:k.msig.v,threshold:k.msig.thr,pks:k.msig.subsig.map(G=>G.pk)},H=Xe(Nn(X));if(s!==H)throw new Error($h);k.msig.subsig.forEach((G,D)=>{if(!G.s)return;const R=o[D];if(R.s&&O.Buffer.compare(O.Buffer.from(G.s),O.Buffer.from(R.s))!==0)throw new Error(r2);R.s=G.s})}const g={msig:{v:e.msig.v,thr:e.msig.thr,subsig:o},txn:e.txn};return typeof n<"u"&&(g.sgnr=O.Buffer.from(rt(n).publicKey)),new Uint8Array(ar(g))}function fm(t,e,r){const n=e.v,i=e.thr,s=e.subsig,o=s.map(k=>k.pk);if(e.subsig.length<i)return!1;let l;try{l=Nn({version:n,threshold:i,pks:o})}catch{return!1}if(!oa(l,r))return!1;let g=0;for(const k of s)k.s!==void 0&&(g+=1);if(g<i)return!1;let d=0;for(const k of s)k.s!==void 0&&ja(t,k.s,k.pk)&&(d+=1);return!(d<i)}function cm(t,{version:e,threshold:r,addrs:n},i){const s=_g({version:e,threshold:r,addrs:n});Object.prototype.hasOwnProperty.call(t,"from")||(t.from=s);const o=n.map(k=>rt(k).publicKey),l=t instanceof Tt;let g,d;return l?(g=t,d=$i.prototype.partialSignTxn.call(g,{version:e,threshold:r,pks:o},i)):(g=new $i(t),d=g.partialSignTxn({version:e,threshold:r,pks:o},i)),{txID:g.txID().toString(),blob:d}}function o2(t,{version:e,threshold:r,addrs:n},i){const s=n.map(d=>rt(d).publicKey),o=Wt(t),l=$i.from_obj_for_encoding(o.txn),g=l.partialSignTxn({version:e,threshold:r,pks:s},i);return{txID:l.txID().toString(),blob:Hl([t,g])}}function a2(t,{version:e,threshold:r,addrs:n},i,s){const o=n.map(k=>rt(k).publicKey),l=Wt(t),g=$i.from_obj_for_encoding(l.txn),d=g.partialSignWithMultisigSignature({version:e,threshold:r,pks:o},i,s);return{txID:g.txID().toString(),blob:Hl([t,d])}}function l2({version:t,threshold:e,addrs:r}){return _g({version:t,threshold:e,addrs:r})}function qh(t){if(!t||t.length===0)throw new Error("empty program");const e=10,r=32,n=126,i=o=>r<=o&&o<=n;if(t.every(o=>o===e||i(o))){const o=O.Buffer.from(t).toString();throw bg(o)?new Error("requesting program bytes, get Algorand address"):O.Buffer.from(o,"base64").toString("base64")===o?new Error("program should not be b64 encoded"):new Error("program bytes are all ASCII printable characters, not looking like Teal byte code")}}class Un{constructor(e,r){if(this.tag=O.Buffer.from("Program"),r&&(!Array.isArray(r)||!r.every(i=>i.constructor===Uint8Array||O.Buffer.isBuffer(i))))throw new TypeError("Invalid arguments");let n;r!=null&&(n=r.map(i=>
151new Uint8Array(i))),qh(e),this.logic=e,this.args=n,this.sig=void 0,this.msig=void 0}get_obj_for_encoding(){const e={l:this.logic};return this.args&&(e.arg=this.args),this.sig?e.sig=this.sig:this.msig&&(e.msig=this.msig),e}static from_obj_for_encoding(e){const r=new Un(e.l,e.arg);return r.sig=e.sig,r.msig=e.msig,r}verify(e){if(this.sig&&this.msig)return!1;try{qh(this.logic)}catch{return!1}const r=Ht(this.tag,this.logic);if(!this.sig&&!this.msig){const n=Zr(r);return oa(n,e)}return this.sig?ja(r,this.sig,e):fm(r,this.msig,e)}address(){const e=Ht(this.tag,this.logic),r=Zr(e);return Xe(new Uint8Array(r))}sign(e,r){if(r==null)this.sig=this.signProgram(e);else{const n=r.addrs.map(o=>({pk:rt(o).publicKey}));this.msig={v:r.version,thr:r.threshold,subsig:n};const[i,s]=this.singleSignMultisig(e,this.msig);this.msig.subsig[s].s=i}}appendToMultisig(e){if(this.msig===void 0)throw new Error("no multisig present");const[r,n]=this.singleSignMultisig(e,this.msig);this.msig.subsig[n].s=r}signProgram(e){const r=Ht(this.tag,this.logic);return Vs(r,e)}singleSignMultisig(e,r){let n=-1;const i=Ks(e).publicKey;for(let o=0;o<r.subsig.length;o++){const{pk:l}=r.subsig[o];if(oa(l,i)){n=o;break}}if(n===-1)throw new Error("invalid secret key");return[this.signProgram(e),n]}toByte(){return ar(this.get_obj_for_encoding())}static fromByte(e){const r=Wt(e);return Un.from_obj_for_encoding(r)}}class $s{constructor(e,r){this.lsig=new Un(e,r),this.sigkey=void 0}get_obj_for_encoding(){const e={lsig:this.lsig.get_obj_for_encoding()};return this.sigkey&&(e.sigkey=this.sigkey),e}static from_obj_for_encoding(e){const r=new $s(e.lsig.l,e.lsig.arg);return r.lsig=Un.from_obj_for_encoding(e.lsig),r.sigkey=e.sigkey,r}toByte(){return ar(this.get_obj_for_encoding())}static fromByte(e){const r=Wt(e);return $s.from_obj_for_encoding(r)}isDelegated(){return!!(this.lsig.sig||this.lsig.msig)}verify(){const e=this.address();return this.lsig.verify(rt(e).publicKey)}address(){if(this.lsig.sig&&this.lsig.msig)throw new Error("LogicSig has too many signatures. At most one of sig or msig may be present");if(this.lsig.sig){if(!this.sigkey)throw new Error("Signing key for delegated account is missing");return Xe(this.sigkey)}if(this.lsig.msig){const e={version:this.lsig.msig.v,threshold:this.lsig.msig.thr,pks:this.lsig.msig.subsig.map(r=>r.pk)};return Xe(Nn(e))}return this.lsig.address()}signMultisig(e,r){this.lsig.sign(r,e)}appendToMultisig(e){this.lsig.appendToMultisig(e)}sign(e){this.lsig.sign(e),this.sigkey=Ks(e).publicKey}}function u2(t,e,r){if(!e.verify(r))throw new Error("Logic signature verification failed. Ensure the program and signature are valid.");const n={lsig:e.get_obj_for_encoding(),txn:t.get_obj_for_encoding()};return yg(r,t.from.publicKey)||(n.sgnr=O.Buffer.from(r)),{txID:t.txID().toString(),blob:ar(n)}}function pd(t,e){let r,n;if(e instanceof $s)r=e.lsig,n=rt(e.address()).publicKey;else if(r=e,r.sig)n=t.from.publicKey;else if(r.msig){const i={version:r.msig.v,threshold:r.msig.thr,pks:r.msig.subsig.map(s=>s.pk)};n=Nn(i)}else n=rt(r.address()).publicKey;return u2(t,r,n)}function f2(t,e){const r=In(t);return pd(r,e)}function c2(t){return Un.fromByte(t)}const dm=O.Buffer.from("ProgData");function hm(t,e,r){const n=Ht(rt(r).publicKey,e),i=O.Buffer.from(Ht(dm,n));return Vs(i,t)}function d2(t,e,r,n){const i=Ht(rt(e).publicKey,t),s=O.Buffer.from(Ht(dm,i));return ja(s,r,n)}function h2(t,e,r){const i=new Un(r).address();return hm(t,e,i)}let pm={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(t,e){pm[t]=e});function p2(t){let e=[],r=0,n=0;for(let i=0;i<t.length;i+=1){let s=pm[t[i]];if(s===void 0)throw new Error("Invalid character ("+t[i]+")");const o=s&32;if(s&=31,n+=s<<r,o)r+=5;else{const l=n&1;n>>>=1,l?e.push(n===0?-2147483648:-n):e.push(n),n=r=0}}return e}class g2{constructor({version:e,sources:r,names:n,mappings:i}){if(this.version=e,this.sources=r,this.names=n,this.mappings=i,this.version!==3)throw new Error(`Only version 3 is supported, got ${this.version}`);if(this.mappings===void 0)throw new Error("mapping undefined, cannot build source map without `mapping`");const s=this.mappings.split(";").map(l=>{const g=p2(l);
151if(g.length>2)return g[2]});this.pcToLine={},this.lineToPc={};let o=0;for(const[l,g]of s.entries())g!==void 0&&(o+=g),o in this.lineToPc||(this.lineToPc[o]=[]),this.lineToPc[o].push(l),this.pcToLine[l]=o}getLineForPc(e){return this.pcToLine[e]}getPcsForLine(e){return this.lineToPc[e]}}const m2=1380011588,ku=30;function zh(t){return t.params["approval-program"]=O.Buffer.from(t.params["approval-program"].toString(),"base64"),t.params["clear-state-program"]=O.Buffer.from(t.params["clear-state-program"].toString(),"base64"),t}async function y2({client:t,txns:e,protocolVersion:r,latestTimestamp:n,round:i,sources:s}){const o=[],l=[],g=[],d=[],k=[];for(const H of e)H.txn.type===bt.appl&&(k.push(Xe(H.txn.from.publicKey)),H.txn.appAccounts&&k.push(...H.txn.appAccounts.map(G=>Xe(G.publicKey))),H.txn.appForeignApps&&(g.push(...H.txn.appForeignApps),k.push(...H.txn.appForeignApps.map(G=>Ff(G)))),H.txn.appForeignAssets&&d.push(...H.txn.appForeignAssets),H.txn.appIndex===void 0||H.txn.appIndex===0?o.push(new Da({id:m2,params:new $a({creator:Xe(H.txn.from.publicKey),approvalProgram:H.txn.appApprovalProgram,clearStateProgram:H.txn.appClearProgram,localStateSchema:new ti({numUint:H.txn.appLocalInts,numByteSlice:H.txn.appLocalByteSlices}),globalStateSchema:new ti({numUint:H.txn.appGlobalInts,numByteSlice:H.txn.appGlobalByteSlices})})})):(g.push(H.txn.appIndex),k.push(Ff(H.txn.appIndex))));const C=[];for(const H of[...new Set(d)])C.push(t.getAssetByID(H).do().then(G=>{k.push(G.params.creator)}));await Promise.all(C);const j=[];for(const H of[...new Set(g)])j.push(t.getApplicationByID(H).do().then(G=>{const D=zh(G);o.push(D),k.push(D.params.creator)}));await Promise.all(j);const X=[];for(const H of[...new Set(k)])X.push(t.accountInformation(H).do().then(G=>{"created-apps"in G&&(G["created-apps"]=G["created-apps"].map(D=>zh(D))),l.push(G)}));return await Promise.all(X),new Ga({txns:e.map(H=>({...H,txn:H.txn.get_obj_for_encoding()})),accounts:l,apps:o,latestTimestamp:n,round:i,protocolVersion:r,sources:s})}class x2{constructor(e){this.type=0,this.bytes="",this.uint=0,this.type=e.type,this.bytes=e.bytes,this.uint=e.uint}toString(){return this.type===1?`0x${O.Buffer.from(this.bytes,"base64").toString("hex")}`:this.uint.toString()}}class w2{constructor(e){this.error="",this.line=0,this.pc=0,this.scratch=[],this.stack=[],this.error=e.error===void 0?"":e.error,this.line=e.line,this.pc=e.pc,this.scratch=e.scratch,this.stack=e.stack.map(r=>new x2(r))}}class Hh{constructor(e){this.trace=[],e!=null&&(this.trace=e.map(r=>new w2(r)))}}function Ru(t,e){return t.length>e&&e>0?`${t.slice(0,e)}...`:t}function v2(t,e){if(e.length===0)return"";let r=null;for(let i=0;i<e.length;i++){if(i>t.length){r=i;continue}JSON.stringify(t[i])!==JSON.stringify(e[i])&&(r=i)}if(r==null)return"";const n=e[r];return n.bytes.length>0?`${r} = 0x${O.Buffer.from(n.bytes,"base64").toString("hex")}`:`${r} = ${n.uint.toString()}`}function b2(t,e){return`[${(e?t.reverse():t).map(n=>{switch(n.type){case 1:return`0x${O.Buffer.from(n.bytes,"base64").toString("hex")}`;case 2:return`${n.uint.toString()}`;default:return""}}).join(", ")}]`}class fa{constructor(e){this.disassembly=[],this.appCallMessages=[],this.localDeltas=[],this.globalDelta=[],this.cost=0,this.logicSigMessages=[],this.logicSigDisassembly=[],this.logs=[],this.appCallTrace=void 0,this.logicSigTrace=void 0,this.required=["disassembly"],this.optionals=["app-call-messages","local-deltas","global-delta","cost","logic-sig-messages","logic-sig-disassembly","logs"],this.traces=["app-call-trace","logic-sig-trace"],this.disassembly=e.disassembly,this.appCallMessages=e["app-call-messages"],this.localDeltas=e["local-deltas"],this.globalDelta=e["global-delta"],this.cost=e.cost,this.logicSigMessages=e["logic-sig-messages"],this.logicSigDisassembly=e["logic-sig-disassembly"],this.logs=e.logs,this.appCallTrace=new Hh(e["app-call-trace"]),this.logicSigTrace=new Hh(e["logic-sig-trace"])}appCallRejected(){return this.appCallMessages!==void 0&&this.appCallMessages.includes("REJECT")}logicSigRejected(){return this.logicSigMessages!==void 0&&this.logicSigMessages.includes("REJECT")}static trace(e,r,n){const i=n.maxValueWidth||ku,s=[["pc#","ln#","source","scratch","stack"]];for(let l=0;l<e.trace.length;l++){const{line:g,error:d,pc:k,scratch:C,stack:j}=e.trace[l],X=C!==void 0?C:[],H=l>0&&e.trace[l-1].scratch!==void 0?e.trace[l-1].scratch:[],G=d===""?r[g]:`!! ${d} !!`;s.push([k.toString().padEnd(3," "),g.toString().padEnd(3," "),Ru(G,i),Ru(v2(H,X),i),Ru(b2(j,n.topOfStackFirst),i)])}const o=s.reduce((l,g)=>{const d=new Array(s[0].length).fill(0);for(let k=0;k<l.length;k++)d[k]=g[k].length>l[k]?g[k].length:l[k];return d},new Array(s[0].length).fill(0));
151return`${s.map(l=>l.map((g,d)=>g.padEnd(o[d]+1," ")).join("|").trim()).join(` 152`)} 153`}appTrace(e){if(this.appCallTrace===void 0||!this.disassembly)return"";let r=e;return e===void 0&&(r={maxValueWidth:ku,topOfStackFirst:!1}),fa.trace(this.appCallTrace,this.disassembly,r)}lsigTrace(e){if(this.logicSigTrace===void 0||this.logicSigDisassembly===void 0)return"";let r=e;return e===void 0&&(r={maxValueWidth:ku,topOfStackFirst:!0}),fa.trace(this.logicSigTrace,this.logicSigDisassembly,r)}}class _2{constructor(e){this.error="",this.protocolVersion="",this.txns=[],this.error=e.error,this.protocolVersion=e["protocol-version"],this.txns=e.txns.map(r=>new fa(r))}}function gm(t,e,r,n,i,s,o){const l={from:t,to:e,amount:r,closeRemainderTo:n,note:i,suggestedParams:s,type:bt.pay,reKeyTo:o};return new Tt(l)}function A2(t){return gm(t.from,t.to,t.amount,t.closeRemainderTo,t.note,t.suggestedParams,t.rekeyTo)}function mm(t,e,r,n,i,s,o,l,g,d=!1,k=void 0){const C={from:t,note:e,voteKey:r,selectionKey:n,voteFirst:i,voteLast:s,voteKeyDilution:o,suggestedParams:l,type:bt.keyreg,reKeyTo:g,nonParticipation:d,stateProofKey:k};return new Tt(C)}function E2(t){return mm(t.from,t.note,t.voteKey,t.selectionKey,t.voteFirst,t.voteLast,t.voteKeyDilution,t.suggestedParams,t.rekeyTo,t.nonParticipation,t.stateProofKey)}function ym(t,e,r,n,i,s,o,l,g,d,k,C,j,X,H){const G={from:t,note:e,suggestedParams:X,assetTotal:r,assetDecimals:n,assetDefaultFrozen:i,assetUnitName:d,assetName:k,assetURL:C,assetMetadataHash:j,assetManager:s,assetReserve:o,assetFreeze:l,assetClawback:g,type:bt.acfg,reKeyTo:H};return new Tt(G)}function F2(t){return ym(t.from,t.note,t.total,t.decimals,t.defaultFrozen,t.manager,t.reserve,t.freeze,t.clawback,t.unitName,t.assetName,t.assetURL,t.assetMetadataHash,t.suggestedParams,t.rekeyTo)}function xm(t,e,r,n,i,s,o,l,g=!0,d){if(g&&(n===void 0||i===void 0||s===void 0||o===void 0))throw Error("strict empty address checking was turned on, but at least one empty address was provided");const k={from:t,suggestedParams:l,assetIndex:r,assetManager:n,assetReserve:i,assetFreeze:s,assetClawback:o,type:bt.acfg,note:e,reKeyTo:d};return new Tt(k)}function S2(t){return xm(t.from,t.note,t.assetIndex,t.manager,t.reserve,t.freeze,t.clawback,t.suggestedParams,t.strictEmptyAddressChecking,t.rekeyTo)}function wm(t,e,r,n,i){const s={from:t,suggestedParams:n,assetIndex:r,type:bt.acfg,note:e,reKeyTo:i};return new Tt(s)}function k2(t){return wm(t.from,t.note,t.assetIndex,t.suggestedParams,t.rekeyTo)}function vm(t,e,r,n,i,s,o){const l={from:t,type:bt.afrz,freezeAccount:n,assetIndex:r,freezeState:i,note:e,suggestedParams:s,reKeyTo:o};return new Tt(l)}function R2(t){return vm(t.from,t.note,t.assetIndex,t.freezeTarget,t.freezeState,t.suggestedParams,t.rekeyTo)}function bm(t,e,r,n,i,s,o,l,g){const d={type:bt.axfer,from:t,to:e,amount:i,suggestedParams:l,assetIndex:o,note:s,assetRevocationTarget:n,closeRemainderTo:r,reKeyTo:g};return new Tt(d)}function B2(t){return bm(t.from,t.to,t.closeRemainderTo,t.revocationTarget,t.amount,t.note,t.assetIndex,t.suggestedParams,t.rekeyTo)}function _m(t,e,r,n,i,s,o,l,g,d,k,C,j,X,H,G,D,R){const w={type:bt.appl,from:t,suggestedParams:e,appIndex:0,appOnComplete:r,appLocalInts:s,appLocalByteSlices:o,appGlobalInts:l,appGlobalByteSlices:g,appApprovalProgram:n,appClearProgram:i,appArgs:d,appAccounts:k,appForeignApps:C,appForeignAssets:j,boxes:R,note:X,lease:H,reKeyTo:G,extraPages:D};return new Tt(w)}function T2(t){return _m(t.from,t.suggestedParams,t.onComplete,t.approvalProgram,t.clearProgram,t.numLocalInts,t.numLocalByteSlices,t.numGlobalInts,t.numGlobalByteSlices,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.extraPages,t.boxes)}function Am(t,e,r,n,i,s,o,l,g,d,k,C,j){const X={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appApprovalProgram:n,appOnComplete:Kr.UpdateApplicationOC,appClearProgram:i,appArgs:s,appAccounts:o,appForeignApps:l,appForeignAssets:g,boxes:j,note:d,lease:k,reKeyTo:C};return new Tt(X)}function I2(t){return Am(t.from,t.suggestedParams,t.appIndex,t.approvalProgram,t.clearProgram,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function Em(t,e,r,n,i,s,o,l,g,d,k){const C={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appOnComplete:Kr.DeleteApplicationOC,appArgs:n,appAccounts:i,appForeignApps:s,appForeignAssets:o,boxes:k,note:l,lease:g,reKeyTo:d};return new Tt(C)}function C2(t){return Em(t.from,t.suggestedParams,t.appIndex,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function Fm(t,e,r,n,i,s,o,l,g,d,k){const C={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appOnComplete:Kr.OptInOC,appArgs:n,appAccounts:i,appForeignApps:s,appForeignAssets:o,boxes:k,note:l,lease:g,reKeyTo:d};return new Tt(C)}function j2(t){return Fm(t.from,t.suggestedParams,t.appIndex,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function Sm(t,e,r,n,i,s,o,l,g,d,k){const C={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appOnComplete:Kr.CloseOutOC,appArgs:n,appAccounts:i,appForeignApps:s,appForeignAssets:o,boxes:k,note:l,lease:g,reKeyTo:d};return new Tt(C)}function N2(t){return Sm(t.from,t.suggestedParams,t.appIndex,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function km(t,e,r,n,i,s,o,l,g,d,k){const C={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appOnComplete:Kr.ClearStateOC,appArgs:n,appAccounts:i,appForeignApps:s,appForeignAssets:o,boxes:k,note:l,lease:g,reKeyTo:d};return new Tt(C)}function U2(t){return km(t.from,t.suggestedParams,t.appIndex,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function Rm(t,e,r,n,i,s,o,l,g,d,k){const C={type:bt.appl,from:t,suggestedParams:e,appIndex:r,appOnComplete:Kr.NoOpOC,appArgs:n,appAccounts:i,appForeignApps:s,appForeignAssets:o,boxes:k,note:l,lease:g,reKeyTo:d};return new Tt(C)}function D2(t){return Rm(t.from,t.suggestedParams,t.appIndex,t.appArgs,t.accounts,t.foreignApps,t.foreignAssets,t.note,t.lease,t.rekeyTo,t.boxes)}function Bm(t){const e={type:bt.appl,from:t.from,suggestedParams:t.suggestedParams,appIndex:t.appIndex,appOnComplete:t.onComplete,appLocalInts:t.numLocalInts,appLocalByteSlices:t.numLocalByteSlices,appGlobalInts:t.numGlobalInts,appGlobalByteSlices:t.numGlobalByteSlices,appApprovalProgram:t.approvalProgram,appClearProgram:t.clearProgram,appArgs:t.appArgs,appAccounts:t.accounts,appForeignApps:t.foreignApps,appForeignAssets:t.foreignAssets,boxes:t.boxes,note:t.note,lease:t.lease,reKeyTo:t.rekeyTo,extraPages:t.extraPages};return new Tt(e)}function P2(t){return(e,r)=>{const n=[];for(const i of r)n.push(e[i].signTxn(t.sk));return Promise.resolve(n)}}function L2(t){return(e,r)=>{const n=[];for(const i of r){const{blob:s}=pd(e[i],t);n.push(s)}return Promise.resolve(n)}}function $2(t,e){return(r,n)=>{const i=[];for(const s of n){const o=r[s],l=[];for(const g of e){const{blob:d}=cm(o,t,g);l.push(d)}l.length>1?i.push(Hl(l)):i.push(l[0])}return Promise.resolve(i)}}function O2(){return(t,e)=>{const r=[];for(const n of e)r.push(Sg(t[n]));return Promise.resolve(r)}}function Bf(t){return typeof t=="object"&&Object.keys(t).length===2&&typeof t.txn=="object"&&typeof t.signer=="function"}const Wn=2**16-1,Tm=32,Im=1,Cm=1,cr=2,M2=/^([a-z\d[\](),]+)\[(0|[1-9][\d]*)]$/,q2=/^ufixed([1-9][\d]*)x([1-9][\d]*)$/;class lr{static from(e){if(e.endsWith("[]")){const r=lr.from(e.slice(0,e.length-2));return new Yl(r)}if(e.endsWith("]")){const r=e.match(M2);if(r.length!==3)throw new Error(`malformed static array string: ${e}`);const n=r[2],i=parseInt(n,10);if(i>Wn)throw new Error(`array length exceeds limit ${Wn}`);const s=lr.from(r[1]);return new Wl(s,i)}if(e.startsWith("uint")){const r=s=>[...s].every(o=>"0123456789".includes(o)),n=e.slice(4,e.length);
153if(!r(n))throw new Error(`malformed uint string: ${n}`);const i=parseInt(n,10);if(i>Wn)throw new Error(`malformed uint string: ${i}`);return new Yn(i)}if(e==="byte")return new Vl;if(e.startsWith("ufixed")){const r=e.match(q2);if(r.length!==3)throw new Error(`malformed ufixed type: ${e}`);const n=parseInt(r[1],10),i=parseInt(r[2],10);return new Kl(n,i)}if(e==="bool")return new ln;if(e==="address")return new no;if(e==="string")return new Gl;if(e.length>=2&&e[0]==="("&&e[e.length-1]===")"){const r=pn.parseTupleContent(e.slice(1,e.length-1)),n=[];for(let i=0;i<r.length;i++){const s=lr.from(r[i]);n.push(s)}return new pn(n)}throw new Error(`cannot convert a string ${e} to an ABI type`)}}class Yn extends lr{constructor(e){if(super(),e%8!==0||e<8||e>512)throw new Error(`unsupported uint type bitSize: ${e}`);this.bitSize=e}toString(){return`uint${this.bitSize}`}equals(e){return e instanceof Yn&&this.bitSize===e.bitSize}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!="bigint"&&typeof e!="number")throw new Error(`Cannot encode value as uint${this.bitSize}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size uint${this.bitSize}`);if(typeof e=="number"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return ii(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`byte string must correspond to a uint${this.bitSize}`);return cd(e)}}class Kl extends lr{constructor(e,r){if(super(),e%8!==0||e<8||e>512)throw new Error(`unsupported ufixed type bitSize: ${e}`);if(r>160||r<1)throw new Error(`unsupported ufixed type precision: ${r}`);this.bitSize=e,this.precision=r}toString(){return`ufixed${this.bitSize}x${this.precision}`}equals(e){return e instanceof Kl&&this.bitSize===e.bitSize&&this.precision===e.precision}isDynamic(){return!1}byteLen(){return this.bitSize/8}encode(e){if(typeof e!="bigint"&&typeof e!="number")throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);if(e>=BigInt(2**this.bitSize)||e<BigInt(0))throw new Error(`${e} is not a non-negative int or too big to fit in size ${this.toString()}`);if(typeof e=="number"&&!Number.isSafeInteger(e))throw new Error(`${e} should be converted into a BigInt before it is encoded`);return ii(e,this.bitSize/8)}decode(e){if(e.length!==this.bitSize/8)throw new Error(`byte string must correspond to a ${this.toString()}`);return cd(e)}}class no extends lr{toString(){return"address"}equals(e){return e instanceof no}isDynamic(){return!1}byteLen(){return Tm}encode(e){if(typeof e!="string"&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);if(typeof e=="string")return rt(e).publicKey;if(e.byteLength!==32)throw new Error("byte string must be 32 bytes long for an address");return e}decode(e){if(e.byteLength!==32)throw new Error("byte string must be 32 bytes long for an address");return Xe(e)}}class ln extends lr{toString(){return"bool"}equals(e){return e instanceof ln}isDynamic(){return!1}byteLen(){return Cm}encode(e){if(typeof e!="boolean")throw new Error(`Cannot encode value as bool: ${e}`);return e?new Uint8Array([128]):new Uint8Array([0])}decode(e){if(e.byteLength!==1)throw new Error("bool string must be 1 byte long");const r=e[0];if(r===128)return!0;if(r===0)return!1;throw new Error("boolean could not be decoded from the byte string")}}class Vl extends lr{toString(){return"byte"}equals(e){return e instanceof Vl}isDynamic(){return!1}byteLen(){return Im}encode(e){if(typeof e!="number"&&typeof e!="bigint")throw new Error(`Cannot encode value as byte: ${e}`);if(typeof e=="bigint"&&(e=Number(e)),e<0||e>255)throw new Error(`${e} cannot be encoded into a byte`);return new Uint8Array([e])}decode(e){if(e.byteLength!==1)throw new Error("byte string must be 1 byte long");return e[0]}}class Gl extends lr{toString(){return"string"}equals(e){return e instanceof Gl}isDynamic(){return!0}byteLen(){throw new Error(`${this.toString()} is a dynamic type`)}encode(e){if(typeof e!="string"&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as string: ${e}`);const r=O.Buffer.from(e),n=ii(r.length,cr),i=new Uint8Array(r.length+cr);return i.set(n),i.set(r,cr),i}decode(e){if(e.length<cr)throw new Error(`byte string is too short to be decoded. Actual length is ${e.length}, but expected at least ${cr}`);const n=O.Buffer.from(e).readUIntBE(0,cr),i=e.slice(cr,e.length);if(n!==i.length)throw new Error(`string length bytes do not match the actual length of str
153ing. Expected ${n}, got ${i.length}`);return O.Buffer.from(i).toString("utf-8")}}class Wl extends lr{constructor(e,r){if(super(),r<0)throw new Error(`static array must have a non negative length: ${r}`);this.childType=e,this.staticLength=r}toString(){return`${this.childType.toString()}[${this.staticLength}]`}equals(e){return e instanceof Wl&&this.staticLength===e.staticLength&&this.childType.equals(e.childType)}isDynamic(){return this.childType.isDynamic()}byteLen(){return this.childType.constructor===ln?Math.ceil(this.staticLength/8):this.staticLength*this.childType.byteLen()}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);if(e.length!==this.staticLength)throw new Error(`Value array does not match static array length. Expected ${this.staticLength}, got ${e.length}`);return this.toABITupleType().encode(e)}decode(e){return this.toABITupleType().decode(e)}toABITupleType(){return new pn(Array(this.staticLength).fill(this.childType))}}class Yl extends lr{constructor(e){super(),this.childType=e}toString(){return`${this.childType.toString()}[]`}equals(e){return e instanceof Yl&&this.childType.equals(e.childType)}isDynamic(){return!0}byteLen(){throw new Error(`${this.toString()} is a dynamic type`)}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);const r=this.toABITupleType(e.length),n=r.encode(e),i=ii(r.childTypes.length,cr);return Ht(i,n)}decode(e){const n=O.Buffer.from(e).readUIntBE(0,cr);return this.toABITupleType(n).decode(e.slice(cr,e.length))}toABITupleType(e){return new pn(Array(e).fill(this.childType))}}class pn extends lr{constructor(e){if(super(),e.length>=Wn)throw new Error("tuple type child type number larger than maximum uint16 error");this.childTypes=e}toString(){const e=[];for(let r=0;r<this.childTypes.length;r++)e[r]=this.childTypes[r].toString();return`(${e.join(",")})`}equals(e){return e instanceof pn&&this.childTypes.length===e.childTypes.length&&this.childTypes.every((r,n)=>r.equals(e.childTypes[n]))}isDynamic(){const e=r=>r.isDynamic();return this.childTypes.some(e)}byteLen(){let e=0;for(let r=0;r<this.childTypes.length;r++)if(this.childTypes[r].constructor===ln){const n=ns(this.childTypes,r,1),i=n+1;r+=n,e+=Math.trunc((i+7)/8)}else{const n=this.childTypes[r].byteLen();e+=n}return e}encode(e){if(!Array.isArray(e)&&!(e instanceof Uint8Array))throw new Error(`Cannot encode value as ${this.toString()}: ${e}`);const r=Array.from(e);if(e.length>Wn)throw new Error("length of tuple array should not exceed a uint16");const n=this.childTypes,i=[],s=[],o=new Map;let l=0;for(;l<n.length;){const k=n[l];if(k.isDynamic())o.set(i.length,!0),i.push(new Uint8Array([0,0])),s.push(k.encode(r[l]));else{if(k.constructor===ln){const C=ns(n,l,-1);let j=ns(n,l,1);if(C%8!==0)throw new Error("expected before index should have number of bool mod 8 equal 0");j=Math.min(7,j);const X=z2(r.slice(l,l+j+1));i.push(ii(X,1)),l+=j}else{const C=k.encode(r[l]);i.push(C)}o.set(l,!1),s.push(new Uint8Array)}l+=1}let g=0;for(const k of i)g+=k.length;let d=0;for(let k=0;k<i.length;k++){if(o.get(k)){const C=g+d;if(C>Wn)throw new Error(`byte length of ${C} should not exceed a uint16`);i[k]=ii(C,cr)}d+=s[k].length}return Ht(...i,...s)}decode(e){const r=this.childTypes,n=[],i=[];let s=0,o=0;const l=O.Buffer.from(e);for(;s<r.length;){const k=r[s];if(k.isDynamic()){if(e.slice(o,e.length).length<cr)throw new Error("dynamic type in tuple is too short to be decoded");const C=l.readUIntBE(o,cr);if(n.length>0&&(n[n.length-1].right=C,C<n[n.length-1].left))throw new Error("dynamic index segment miscalculation: left is greater than right index");const j={left:C,right:-1};n.push(j),i.push(null),o+=cr}
153else if(k.constructor===ln){const C=ns(this.childTypes,s,-1);let j=ns(this.childTypes,s,1);if(C%8!==0)throw new Error("expected before bool number mod 8 === 0");j=Math.min(7,j);for(let X=0;X<=j;X++){const H=128>>X;(e[o]&H)>0?i.push(new Uint8Array([128])):i.push(new Uint8Array([0]))}s+=j,o+=1}else{const C=k.byteLen();i.push(e.slice(o,o+C)),o+=C}if(s!==r.length-1&&o>=e.length)throw new Error("input byte not enough to decode");s+=1}if(n.length>0&&(n[n.length-1].right=e.length,o=e.length),o<e.length)throw new Error("input byte not fully consumed");for(let k=0;k<n.length;k++){const C=n[k];if(C.left>C.right)throw new Error("dynamic segment should display a [l, r] space with l <= r");if(k!==n.length-1&&C.right!==n[k+1].left)throw new Error("dynamic segment should be consecutive")}let g=0;for(let k=0;k<r.length;k++)r[k].isDynamic()&&(i[k]=e.slice(n[g].left,n[g].right),g+=1);const d=[];for(let k=0;k<r.length;k++){const C=r[k].decode(i[k]);d.push(C)}return d}static parseTupleContent(e){if(e.length===0)return[];if(e.endsWith(",")||e.startsWith(","))throw new Error("tuple string should not start with comma");if(e.includes(",,"))throw new Error("tuple string should not have consecutive commas");const r=[];let n=0,i="";for(const s of e)i+=s,s==="("?n+=1:s===")"?n-=1:s===","&&n===0&&(r.push(i.slice(0,i.length-1)),i="");if(i.length!==0&&r.push(i),n!==0)throw new Error("tuple string has mismatched parentheses");return r}}function z2(t){let e=0;if(t.length>8)throw new Error("value list passed in should be no greater than length 8");for(let r=0;r<t.length;r++){const n=t[r];if(typeof n!="boolean")throw new Error("non-boolean values cannot be compressed into a byte");n&&(e|=1<<7-r)}return e}function ns(t,e,r){let n=0;for(;;){const i=e+r*n;if(t[i].constructor===ln)if(i!==t.length-1&&r===1)n+=1;else if(i>0&&r===-1)n+=1;else break;else{n-=1;break}}return n}var Or;(function(t){t.any="txn",t.pay="pay",t.keyreg="keyreg",t.acfg="acfg",t.axfer="axfer",t.afrz="afrz",t.appl="appl"})(Or||(Or={}));function ca(t){return t===Or.any||t===Or.pay||t===Or.keyreg||t===Or.acfg||t===Or.axfer||t===Or.afrz||t===Or.appl}function jm(t,e){return t===Or.any?!0:e.type&&e.type.toString()===t.toString()}var un;(function(t){t.account="account",t.application="application",t.asset="asset"})(un||(un={}));function gd(t){return t===un.account||t===un.application||t===un.asset}function H2(t){const e=t.indexOf("(");if(e===-1)throw new Error(`Invalid method signature: ${t}`);let r=-1,n=0;for(let i=e;i<t.length;i++){const s=t[i];if(s==="(")n+=1;else if(s===")"){if(n===0)break;if(n-=1,n===0){r=i;break}}}if(r===-1)throw new Error(`Invalid method signature: ${t}`);return{name:t.slice(0,e),args:pn.parseTupleContent(t.slice(e+1,r)),returns:t.slice(r+1)}}class Vi{constructor(e){if(typeof e.name!="string"||typeof e.returns!="object"||!Array.isArray(e.args))throw new Error("Invalid ABIMethod parameters");this.name=e.name,this.description=e.desc,this.args=e.args.map(({type:r,name:n,desc:i})=>ca(r)||gd(r)?{type:r,name:n,description:i}:{type:lr.from(r),name:n,description:i}),this.returns={type:e.returns.type==="void"?e.returns.type:lr.from(e.returns.type),description:e.returns.desc},this.events=e.events,this.readonly=e.readonly}getSignature(){const e=this.args.map(n=>n.type.toString()).join(","),r=this.returns.type.toString();return`${this.name}(${e})${r}`}getSelector(){const e=Zr(this.getSignature());return new Uint8Array(e.slice(0,4))}txnCount(){let e=1;for(const r of this.args)typeof r.type=="string"&&ca(r.type)&&(e+=1);return e}toJSON(){return{name:this.name,desc:this.description,args:this.args.map(({type:e,name:r,description:n})=>({type:e.toString(),name:r,desc:n})),returns:{type:this.returns.type.toString(),desc:this.returns.description},events:this.events,readonly:this.readonly}}static fromSignature(e){const{name:r,args:n,returns:i}=H2(e);return new Vi({name:r,args:n.map(s=>({type:s})),returns:{type:i}})}}function md(t,e){if(t===null||!Array.isArray(t)||!t.every(n=>n instanceof Vi))throw new Error("Methods list provided is null or not the correct type");const r=t.filter(n=>n.name===e);if(r.length>1)throw new Error(`found ${r.length} methods with the same name ${r.map(n=>n.getSignature()).join(",")}`);
153if(r.length===0)throw new Error(`found 0 methods with the name ${e}`);return r[0]}class K2{constructor(e){if(typeof e.name!="string"||!Array.isArray(e.methods)||e.networks&&typeof e.networks!="object")throw new Error("Invalid ABIContract parameters");this.name=e.name,this.description=e.desc,this.networks=e.networks?{...e.networks}:{},this.methods=e.methods.map(r=>new Vi(r)),this.events=e.events}toJSON(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map(e=>e.toJSON()),events:this.events}}getMethodByName(e){return md(this.methods,e)}}class V2{constructor(e){if(typeof e.name!="string"||!Array.isArray(e.methods))throw new Error("Invalid ABIInterface parameters");this.name=e.name,this.description=e.desc,this.methods=e.methods.map(r=>new Vi(r))}toJSON(){return{name:this.name,desc:this.description,methods:this.methods.map(e=>e.toJSON())}}getMethodByName(e){return md(this.methods,e)}}const G2=O.Buffer.from([21,31,124,117]),is=16;var sr;(function(t){t[t.BUILDING=0]="BUILDING",t[t.BUILT=1]="BUILT",t[t.SIGNED=2]="SIGNED",t[t.SUBMITTED=3]="SUBMITTED",t[t.COMMITTED=4]="COMMITTED"})(sr||(sr={}));function Bu(t,e,r){if(r!=null&&t===r)return 0;const n=r==null?0:1;for(let i=0;i<e.length;i++)if(t===e[i])return i+n;return e.push(t),e.length-1+n}class Wr{constructor(){this.status=sr.BUILDING,this.transactions=[],this.methodCalls=new Map,this.signedTxns=[],this.txIDs=[]}getStatus(){return this.status}count(){return this.transactions.length}clone(){const e=new Wr;return e.transactions=this.transactions.map(({txn:r,signer:n})=>({txn:Tt.from_obj_for_encoding({...r.get_obj_for_encoding(),grp:void 0}),signer:n})),e.methodCalls=new Map(this.methodCalls),e}addTransaction(e){if(this.status!==sr.BUILDING)throw new Error("Cannot add transactions when composer status is not BUILDING");if(this.transactions.length===Wr.MAX_GROUP_SIZE)throw new Error(`Adding an additional transaction exceeds the maximum atomic group size of ${Wr.MAX_GROUP_SIZE}`);if(e.txn.group&&e.txn.group.some(r=>r!==0))throw new Error("Cannot add a transaction with nonzero group ID");this.transactions.push(e)}addMethodCall({appID:e,method:r,methodArgs:n,sender:i,suggestedParams:s,onComplete:o,approvalProgram:l,clearProgram:g,numGlobalInts:d,numGlobalByteSlices:k,numLocalInts:C,numLocalByteSlices:j,extraPages:X,appAccounts:H,appForeignApps:G,appForeignAssets:D,boxes:R,note:w,lease:T,rekeyTo:W,signer:J}){if(this.status!==sr.BUILDING)throw new Error("Cannot add transactions when composer status is not BUILDING");if(this.transactions.length+r.txnCount()>Wr.MAX_GROUP_SIZE)throw new Error(`Adding additional transactions exceeds the maximum atomic group size of ${Wr.MAX_GROUP_SIZE}`);if(e===0){if(l==null||g==null||d==null||k==null||C==null||j==null)throw new Error("One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices")}else if(o===Kr.UpdateApplicationOC){if(l==null||g==null)throw new Error("One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram");if(d!=null||k!=null||C!=null||j!=null||X!=null)throw new Error("One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages")}else if(l!=null||g!=null||d!=null||k!=null||C!=null||j!=null||X!=null)throw new Error("One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages");if(n==null&&(n=[]),n.length!==r.args.length)throw new Error(`Incorrect number of method arguments. Expected ${r.args.length}, got ${n.length}`);let A=[],P=[];const M=[],se=[],$=[],he=new Map,ae=R||[];for(let we=0;we<n.length;we++){let _e=r.args[we].type;const Be=n[we];if(ca(_e)){if(!Bf(Be)||!jm(_e,Be.txn))throw new Error(`Expected ${_e} TransactionWithSigner for argument at index ${we}`);if(Be.txn.group&&Be.txn.group.some(Re=>Re!==0))throw new Error("Cannot add a transaction with nonzero group ID");M.push(Be);continue}if(Bf(Be))throw new Error(`Expected non-transaction value for argument at index ${we}`);if(gd(_e)&&(he.set(se.length,A.length),se.push(_e),$.push(Be),_e=new Yn(8)),typeof _e=="string")throw new Error(`Unknown ABI type: ${_e}`);
153A.push(_e),P.push(Be)}const de=[],xe=H==null?[]:H.slice(),Ie=G==null?[]:G.slice(),Le=D==null?[]:D.slice();for(let we=0;we<se.length;we++){const _e=se[we],Be=$[we];let Re=0;switch(_e){case un.account:{const Te=new no,fe=Te.decode(Te.encode(Be));Re=Bu(fe,xe,i);break}case un.application:{const Te=new Yn(64),fe=Te.decode(Te.encode(Be));if(fe>Number.MAX_SAFE_INTEGER)throw new Error(`Expected safe integer for application value, got ${fe}`);Re=Bu(Number(fe),Ie,e);break}case un.asset:{const Te=new Yn(64),fe=Te.decode(Te.encode(Be));if(fe>Number.MAX_SAFE_INTEGER)throw new Error(`Expected safe integer for asset value, got ${fe}`);Re=Bu(Number(fe),Le);break}default:throw new Error(`Unknown reference type: ${_e}`)}de.push(Re)}for(let we=0;we<de.length;we++){const _e=he.get(we);P[_e]=de[we]}if(A.length>is-1){const we=A.slice(is-2),_e=P.slice(is-2);A=A.slice(0,is-2),P=P.slice(0,is-2),A.push(new pn(we)),P.push(_e)}const Ye=[r.getSelector()];for(let we=0;we<A.length;we++)Ye.push(A[we].encode(P[we]));const pe={txn:Bm({from:i,appIndex:e,appArgs:Ye,accounts:xe,foreignApps:Ie,foreignAssets:Le,boxes:ae,onComplete:o??Kr.NoOpOC,approvalProgram:l,clearProgram:g,numGlobalInts:d,numGlobalByteSlices:k,numLocalInts:C,numLocalByteSlices:j,extraPages:X,lease:T,note:w,rekeyTo:W,suggestedParams:s}),signer:J};this.transactions.push(...M,pe),this.methodCalls.set(this.transactions.length-1,r)}buildGroup(){if(this.status===sr.BUILDING){if(this.transactions.length===0)throw new Error("Cannot build a group with 0 transactions");this.transactions.length>1&&lm(this.transactions.map(e=>e.txn)),this.status=sr.BUILT}return this.transactions}async gatherSignatures(){if(this.status>=sr.SIGNED)return this.signedTxns;const e=this.buildGroup(),r=e.map(g=>g.txn),n=new Map;for(let g=0;g<e.length;g++){const{signer:d}=e[g];n.has(d)||n.set(d,[]),n.get(d).push(g)}const i=Array.from(n),s=await Promise.all(i.map(([g,d])=>g(r,d))),o=e.map(()=>null);for(let g=0;g<i.length;g++){const d=i[g][1],k=s[g];for(let C=0;C<d.length;C++)o[d[C]]=k[C]}if(!o.every(g=>g!=null))throw new Error(`Missing signatures. Got ${o}`);const l=o.map((g,d)=>{try{return kg(g).txn.txID()}catch(k){throw new Error(`Cannot decode signed transaction at index ${d}. ${k}`)}});return this.signedTxns=o,this.txIDs=l,this.status=sr.SIGNED,o}async submit(e){if(this.status>sr.SUBMITTED)throw new Error("Transaction group cannot be resubmitted");const r=await this.gatherSignatures();return await e.sendRawTransaction(r).do(),this.status=sr.SUBMITTED,this.txIDs}async simulate(e,r){if(this.status>sr.SUBMITTED)throw new Error("Simulated Transaction group has already been submitted to the network");const i=(await this.gatherSignatures()).map(g=>Wt(g)),s=r??new Gs({txnGroups:[]});s.txnGroups=[new zi({txns:i})];const o=await e.simulateTransactions(s).do(),l=[];for(const[g,d]of this.methodCalls){const k=this.txIDs[g],C=o.txnGroups[0].txnResults[g].txnResult,j={txID:k,rawReturnValue:new Uint8Array,method:d};l.push(Wr.parseMethodResponse(d,j,C.get_obj_for_encoding()))}return{methodResults:l,simulateResponse:o}}async execute(e,r){if(this.status===sr.COMMITTED)throw new Error("Transaction group has already been executed successfully");const n=await this.submit(e);this.status=sr.SUBMITTED;const i=this.transactions.findIndex((d,k)=>this.methodCalls.has(k)),o=await nm(e,n[i===-1?0:i],r);this.status=sr.COMMITTED;const l=o["confirmed-round"],g=[];for(const[d,k]of this.methodCalls){const C=n[d];let j={txID:C,rawReturnValue:new Uint8Array,method:k};try{const X=d===i?o:await e.pendingTransactionInformation(C).do();j=Wr.parseMethodResponse(k,j,X)}catch(X){j.decodeError=X}g.push(j)}return{confirmedRound:l,txIDs:n,methodResults:g}}static parseMethodResponse(e,r,n){const i=r;try{if(i.txInfo=n,e.returns.type!=="void"){const s=n.logs||[];if(s.length===0)throw new Error("App call transaction did not log a return value");const o=O.Buffer.from(s[s.length-1],"base64");if(o.byteLength<4||!o.slice(0,4).equals(G2))throw new Error("App call transaction did not log a return value");i.rawReturnValue=new Uint8Array(o.slice(4)),i.returnValue=e.returns.type.decode(r.rawReturnValue)}}catch(s){i.decodeError=s}return i}}Wr.MAX_GROUP_SIZE=16;const Nm=O.Buffer.from([77,88]),Um="The transaction sender address and multisig preimage do not match.";function W2(t,e){if(typeof t.from>"u"){const n=Ks(e);t.from=Xe(n.publicKey)}const r=In(t);return{txID:r.txID().toString(),blob:r.signTxn(e)}}function Y2(t,e){return new bw(t).signBid(e)}function X2(t,e){const r=O.Buffer.from(Ht(Nm,t));return Vs(r,e)}function Q2(t,e,r){const n=O.Buffer.from(Ht(Nm,t)),i=rt(r).publicKey;return ja(n,e,i)}function J2(t){return new Uint8Array(ar(t))}function Z2(t){return Wt(t)}const eb=new Error(Um),tb=new Error(Sc),Ar=Object.freeze(Object.defineProperty({__proto__:null,ABIAddressType:no,ABIArrayDynamicType:Yl,ABIArrayStaticType:Wl,ABIBoolType:ln,ABIByteType:Vl,ABIContract:K2,ABIInterface:V2,ABIMethod:Vi,get ABIReferenceType(){return un},ABIStringType:Gl,get ABITransactionType(){return Or},ABITupleType:pn,ABIType:lr,ABIUfixedType:Kl,ABIUintType:Yn,ADDR_BYTE_SIZE:Tm,ALGORAND_MIN_TX_FEE:Sf,Algodv2:vv,AtomicTransactionComposer:Wr,get AtomicTransactionComposerStatus(){return sr},DryrunResult:_2,ERROR_INVALID_MICROALGOS:tb,ERROR_MULTISIG_BAD_SENDER:eb,INVALID_MICROALGOS_ERROR_MSG:Sc,Indexer:Hv,IntDecoding:Ca,Kmd:bv,LENGTH_ENCODE_BYTE_SIZE:cr,LogicSig:Un,LogicSigAccount:$s,MAX_LEN:Wn,MULTISIG_BAD_SENDER_ERROR_MSG:Um,get OnApplicationComplete(){return Kr},SINGLE_BOOL_SIZE:Cm,SINGLE_BYTE_SIZE:Im,SourceMap:g2,Transaction:Tt,get TransactionType(){return bt},abiCheckTransactionType:jm,abiTypeIsReference:gd,abiTypeIsTransaction:ca,algosToMicroalgos:Aw,appendSignMultisigTransaction:o2,appendSignRawMultisigSignature:a2,assignGroupID:lm,bigIntToBytes:ii,bytesToBigInt:cd,computeGroupID:am,createDryrun:y2,createMultisigTransaction:um,decodeAddress:rt,decodeObj:Z2,decodeSignedTransaction:kg,decode
153Uint64:Jx,decodeUnsignedTransaction:vw,encodeAddress:Xe,encodeObj:J2,encodeUint64:wg,encodeUnsignedSimulateTransaction:Sg,encodeUnsignedTransaction:ww,generateAccount:Kv,getApplicationAddress:Ff,getMethodByName:md,indexerModels:Dv,instantiateTxnIfNeeded:In,isTransactionWithSigner:Bf,isValidAddress:bg,logicSigFromByte:c2,makeApplicationCallTxnFromObject:Bm,makeApplicationClearStateTxn:km,makeApplicationClearStateTxnFromObject:U2,makeApplicationCloseOutTxn:Sm,makeApplicationCloseOutTxnFromObject:N2,makeApplicationCreateTxn:_m,makeApplicationCreateTxnFromObject:T2,makeApplicationDeleteTxn:Em,makeApplicationDeleteTxnFromObject:C2,makeApplicationNoOpTxn:Rm,makeApplicationNoOpTxnFromObject:D2,makeApplicationOptInTxn:Fm,makeApplicationOptInTxnFromObject:j2,makeApplicationUpdateTxn:Am,makeApplicationUpdateTxnFromObject:I2,makeAssetConfigTxnWithSuggestedParams:xm,makeAssetConfigTxnWithSuggestedParamsFromObject:S2,makeAssetCreateTxnWithSuggestedParams:ym,makeAssetCreateTxnWithSuggestedParamsFromObject:F2,makeAssetDestroyTxnWithSuggestedParams:wm,makeAssetDestroyTxnWithSuggestedParamsFromObject:k2,makeAssetFreezeTxnWithSuggestedParams:vm,makeAssetFreezeTxnWithSuggestedParamsFromObject:R2,makeAssetTransferTxnWithSuggestedParams:bm,makeAssetTransferTxnWithSuggestedParamsFromObject:B2,makeBasicAccountTransactionSigner:P2,makeEmptyTransactionSigner:O2,makeKeyRegistrationTxnWithSuggestedParams:mm,makeKeyRegistrationTxnWithSuggestedParamsFromObject:E2,makeLogicSigAccountTransactionSigner:L2,makeMultiSigAccountTransactionSigner:$2,makePaymentTxnWithSuggestedParams:gm,makePaymentTxnWithSuggestedParamsFromObject:A2,masterDerivationKeyToMnemonic:Qv,mergeMultisigTransactions:Hl,microalgosToAlgos:_w,mnemonicFromSeed:dd,mnemonicToMasterDerivationKey:Xv,mnemonicToSecretKey:Wv,modelsv2:jw,multisigAddress:l2,secretKeyToMnemonic:Yv,seedFromMnemonic:hd,signBid:Y2,signBytes:X2,signLogicSigTransaction:f2,signLogicSigTransactionObject:pd,signMultisigTransaction:cm,signTransaction:W2,tealSign:hm,tealSignFromProgram:h2,verifyBytes:Q2,verifyMultisig:fm,verifyTealSign:d2,waitForConfirmation:nm},Symbol.toStringTag,{value:"Module"})),rb={local:{server:"http://localhost",port:4001,token:"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",network:"local"},testnet:{server:"https://testnet-api.algonode.cloud",port:443,token:"",network:"testnet"}},Kh={STORE_HASH_ARRAY:"store_hash_array",VERIFY_HASH_ARRAY:"verify_hash_array"};class nb{constructor(e="local"){this.config=rb[e],this.algodClient=new Ar.Algodv2(this.config.token,this.config.server,this.config.port)}getAlgodClient(){return this.algodClient}validateSHA256Hash(e){return/^[a-fA-F0-9]{64}$/.test(e)}validateHashArray(e){const r=[];return Array.isArray(e)?e.length===0?(r.push("Hash array cannot be empty"),{valid:!1,errors:r}):e.length>100?(r.push("Hash array cannot exceed 100 items"),{valid:!1,errors:r}):(e.forEach((n,i)=>{this.validateSHA256Hash(n)||r.push(`Invalid SHA-256 hash at index ${i}: ${n}`)}),{valid:r.length===0,errors:r}):(r.push("Input must be an array"),{valid:!1,errors:r})}async getAccountInfo(e){try{return await this.algodClient.accountInformation(e).do()}catch(r){throw console.error("Error getting account info:",r),r}}async getApplicationInfo(e){try{return await this.algodClient.getApplicationByID(e).do()}catch(r){throw console.error("Error getting application info:",r),r}}async createAndSignTransaction(e,r){return Ar.signTransaction(e,r.sk).blob}async submitAndWait(e){try{const r=Ar.decodeSignedTransaction(e).txn.txID();await this.algodClient.sendRawTransaction(e).do();const n=await Ar.waitForConfirmation(this.algodClient,r,4);return{txId:r,confirmedTxn:n}}catch(r){throw console.error("Error submitting transaction:",r),r}}async generateSha256Hash(e){let r;typeof e=="string"?r=new TextEncoder().encode(e):r=e;const n=await window.crypto.subtle.digest("SHA-256",r);return new Uint8Array(n)}}class ib{constructor(e,r){this.client=e,this.appId=r}async storeHashArray(e,r){try{const n=this.client.validateHashArray(e.hashes);if(!n.valid)return{success:!1,error:`Validation failed: ${n.errors.join(", ")}`};const i=await this.client.getAlgodClient().getTransactionParams().do(),s=[new Uint8Array(new TextEncoder().encode(Kh.STORE_HASH_ARRAY)),new Uint8Array(new TextEncoder().encode(e.hashes.join("")))],o=await this.client.generateSha256Hash(r.addr),l=Ar.makeApplicationCallTxnFromObject({from:r.addr,appIndex:this.appId,onComplete:Ar.OnApplicationComplete.NoOpOC,appArgs:s,suggestedParams:i,boxes:[{appIndex:this.appId,name:o}]}),g=await this.client.createAndSignTransaction(l,r),d=await this.client.submitAndWait(g);return{success:!0,transactionId:d.txId,data:d.confirmedTxn}}catch(n){return console.error("Error storing hash array:",n),{success:!1,error:n instanceof Error?n.message:"Unknown error"}}}async verifyHashArray(e,r){try{const n=this.client.validateHashArray(e.hashes);if(!n.valid)return{success:!1,error:`Validation failed: ${n.errors.join(", ")}`};const i=await this.client.getAlgodClient().getTransactionParams().do(),s=[new Uint8Array(new TextEncoder().encode(Kh.VERIFY_HASH_ARRAY)),new Uint8Array(new TextEncoder().encode(e.hashes.join("")))];if(e.targetAddress&&e.targetAddress.trim()!==""){const j=Ar.decodeAddress(e.targetAddress.trim()).publicKey;s.push(j)}const o=e.targetAddress||r.addr,l=await this.client.generateSha256Hash(o),g=Ar.makeApplicationCallTxnFromObject({from:r.addr,appIndex:this.appId,onComplete:Ar.OnApplicationComplete.NoOpOC,appArgs:s,suggestedParams:i,boxes:[{appIndex:this.appId,name:l}]}),d=await this.client.createAndSignTransaction(g,r),k=await this.client.submitAndWait(d);let C;if(k.confirmedTxn.logs&&k.confirmedTxn.logs.length>0)try{const j=new Uint8Array(Buffer.from(k.confirmedTxn.logs[0],"base64"));C=Ar.encodeAddress(j)}catch(j){console.warn("Could not parse storer address from logs:",
153j)}return{success:!0,transactionId:k.txId,data:{verified:!0,storerAddress:C,...k.confirmedTxn}}}catch(n){return console.error("Error verifying hash array:",n),n instanceof Error&&n.message.includes("rejected")?{success:!1,error:"Subsequence not found in repository or for target address",data:{verified:!1}}:{success:!1,error:n instanceof Error?n.message:"Unknown error"}}}}function sb(){const t="nose seven egg manage illness almost deny castle clever solution west advice stable army one asthma survey buzz input gas dizzy shoulder bottom absorb gadget";if(t.trim()!=="")try{const e=Ar.mnemonicToSecretKey(t.trim());return console.log("â Using TestNet account from environment variable"),console.log(`ð Account Address: ${e.addr}`),e}catch(e){return console.error("â Invalid mnemonic in VITE_ALGORAND_FRONTEND_MNEMONIC:",e),console.log("ð Falling back to random account generation"),Ar.generateAccount()}return console.log("â¹ï¸ No frontend mnemonic configured, generating random account"),console.log("ð¡ To use a specific TestNet account, set VITE_ALGORAND_FRONTEND_MNEMONIC in .env file"),Ar.generateAccount()}function ob(t){return t.length<=10?t:`${t.slice(0,6)}...${t.slice(-4)}`}function ab({network:t,appId:e}){var de;const[r,n]=Pt.useState(null),[i,s]=Pt.useState(null),[o,l]=Pt.useState(null),[g,d]=Pt.useState(null),[k,C]=Pt.useState(!1),[j,X]=Pt.useState("store"),[H,G]=Pt.useState(""),[D,R]=Pt.useState(""),[w,T]=Pt.useState(""),[W,J]=Pt.useState(!1),[A,P]=Pt.useState(null);Pt.useEffect(()=>{(async()=>{try{const Ie=new nb(t),Le=sb(),Ye=new ib(Ie,e);n(Ie),l(Le),s(Ye);const pe="nose seven egg manage illness almost deny castle clever solution west advice stable army one asthma survey buzz input gas dizzy shoulder bottom absorb gadget",we=pe&&pe.trim()!==""&&pe!=="your 25-word mnemonic phrase here";C(we);try{const _e=await Ie.getAccountInfo(Le.addr);d(_e)}catch(_e){console.log("Account not funded or network not available:",_e)}}catch(Ie){console.error("Failed to initialize client:",Ie)}})()},[t,e]);const M=async()=>{if(!i||!o){P({success:!1,error:"Contract not initialized"});return}J(!0),P(null);try{const xe=H.split(` 154`).map(Le=>Le.trim()).filter(Le=>Le.length>0),Ie=await i.storeHashArray({hashes:xe,sender:o.addr},o);P(Ie)}catch(xe){P({success:!1,error:xe instanceof Error?xe.message:"Unknown error"})}finally{J(!1)}},se=async()=>{if(!i||!o){P({success:!1,error:"Contract not initialized"});return}J(!0),P(null);try{const xe=D.split(` 155`).map(Le=>Le.trim()).filter(Le=>Le.length>0),Ie=await i.verifyHashArray({hashes:xe,targetAddress:w.trim()||void 0},o);P(Ie)}catch(xe){P({success:!1,error:xe instanceof Error?xe.message:"Unknown error"})}finally{J(!1)}},$=()=>{const xe="0123456789abcdef";let Ie="";for(let Le=0;Le<64;Le++)Ie+=xe[Math.floor(Math.random()*xe.length)];return Ie},he=()=>{const xe=$();G(Ie=>Ie?`${Ie} 156${xe}`:xe)},ae=()=>{R(["a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3","b5d4045c3f466fa91fe2cc6abe79232a1a57cdf104f7a26e716e0a1e2789df78"].join(` 157`))};return N.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[N.jsx("div",{className:"bg-white rounded-lg shadow-md p-6",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"flex items-center space-x-3",children:[N.jsx(og,{className:"w-8 h-8 text-blue-600"}),N.jsxs("div",{children:[N.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Media Hash Repository"}),N.jsx("p",{className:"text-gray-600",children:"Store and verify SHA-256 hash arrays with subsequence matching"})]})]}),N.jsxs("div",{className:"flex items-center space-x-2",children:[N.jsx(mx,{className:"w-5 h-5 text-gray-500"}),N.jsx("span",{className:"text-sm font-medium text-gray-700 capitalize",children:t})]})]})}),!k&&N.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:N.jsxs("div",{className:"flex items-start space-x-3",children:[N.jsx(dx,{className:"w-5 h-5 text-yellow-600 mt-0.5"}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-yellow-800",children:"Using Random Test Account"}),N.jsxs("p",{className:"text-sm text-yellow-700 mt-1",children:["To use your specific TestNet account, create a ",N.jsx("code",{className:"bg-yellow-100 px-1 rounded",children:".env"})," file in the project root and set ",N.jsx("code",{className:"bg-yellow-100 px-1 rounded",children:"VITE_ALGORAND_FRONTEND_MNEMONIC"}),"to your 25-word mnemonic phrase."]}),N.jsxs("p",{className:"text-xs text-yellow-600 mt-2",children:["Example: ",N.jsx("code",{className:"bg-yellow-100 px-1 rounded",children:'VITE_ALGORAND_FRONTEND_MNEMONIC="word1 word2 ... word25"'})]})]})]})}),o&&N.jsx("div",{className:`rounded-lg p-4 ${k?"bg-gradient-to-r from-green-50 to-teal-50 border border-green-200":"bg-gradient-to-r from-blue-50 to-teal-50"}`,children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{className:"flex items-center space-x-3",children:[N.jsx(vx,{className:`w-5 h-5 ${k?"text-green-600":"text-blue-600"}`}),N.jsxs("div",{children:[N.jsx("p",{className:"text-sm font-medium text-gray-700",children:k?"Configured TestNet Account":"Random Test Account"}),N.jsx("p",{className:"text-xs text-gray-500 font-mono",children:ob(o.addr)})]})]}),N.jsxs("div",{className:"text-right",children:[N.jsxs("p",{className:"text-sm font-medium text-gray-700",children:["App ID: ",e]}),g&&N.jsxs("p",{className:"text-xs text-gray-500",children:["Balance: ",(g.amount/1e6).toFixed(2)," ALGO"]})]})]})}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md",children:[N.jsx("div",{className:"border-b border-gray-200",children:N.jsxs("nav",{className:"flex space-x-8 px-6",children:[N.jsx("button",{onClick:()=>X("store"),className:`py-4 px-1 border-b-2 font-medium text-sm ${j==="store"?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:N.jsxs("div",{className:"flex items-center space-x-2",children:[N.jsx(Bh,{className:"w-4 h-4"}),N.jsx("span",{children:"Store Hashes"})]})}),N.jsx("button",{onClick:()=>X("verify"),className:`py-4 px-1 border-b-2 font-medium text-sm ${j==="verify"?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:N.jsxs("div",{className:"flex items-center space-x-2",children:[N.jsx(Rh,{className:"w-4 h-4"}),N.jsx("span",{children:"Verify Subsequence"})]})})]})}),N.jsxs("div",{className:"p-6",children:[j==="store"&&N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{children:[N.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"SHA-256 Hash Array (one per line)"}),N.jsx("textarea",{value:H,onChange:xe=>G(xe.target.value),placeholder:"Enter SHA-256 hashes, one per line...",className:"w-full h-32 px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent font-mono text-sm"}),N.jsxs("div",{className:"mt-2 flex justify-between items-center",children:[N.jsx("button",{onClick:he,className:"text-sm text-blue-600 hover:text-blue-700",children:"Add sample hash"}),N.jsxs("span",{className:"text-xs text-gray-500",children:[H.split(` 158`).filter(xe=>xe.trim()).length," hashes"]})]})]}),N.jsx("button",{onClick:M,disabled:W||!H.trim(),className:"w-full bg-blue-600 text-white py-2 px-4 roun
158ded-md hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:W?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-white border-t-transparent rounded-full"}),N.jsx("span",{children:"Storing..."})]}):N.jsxs(N.Fragment,{children:[N.jsx(Bh,{className:"w-4 h-4"}),N.jsx("span",{children:"Store Hash Array"})]})})]}),j==="verify"&&N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-4",children:[N.jsx("h3",{className:"font-medium text-blue-800 mb-2",children:"Subsequence Verification"}),N.jsxs("p",{className:"text-sm text-blue-700",children:["This will check if your input hash array is a ",N.jsx("strong",{children:"subsequence"})," of any stored hash array. The order matters - [h1, h2] will match within [h1, h2, h3] but not [h2, h1, h3]."]})]}),N.jsxs("div",{children:[N.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"SHA-256 Hash Array to Verify (one per line)"}),N.jsx("textarea",{value:D,onChange:xe=>R(xe.target.value),placeholder:"Enter SHA-256 hashes to verify as subsequence, one per line...",className:"w-full h-32 px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent font-mono text-sm"}),N.jsxs("div",{className:"mt-2 flex justify-between items-center",children:[N.jsx("button",{onClick:ae,className:"text-sm text-teal-600 hover:text-teal-700",children:"Add sample subsequence"}),N.jsxs("span",{className:"text-xs text-gray-500",children:[D.split(` 159`).filter(xe=>xe.trim()).length," hashes"]})]})]}),N.jsxs("div",{children:[N.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Target Address (optional - defaults to your address)"}),N.jsx("input",{type:"text",value:w,onChange:xe=>T(xe.target.value),placeholder:"Enter Algorand address to check against...",className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent font-mono text-sm"}),N.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Leave empty to check against your own stored hash arrays"})]}),N.jsx("button",{onClick:se,disabled:W||!D.trim(),className:"w-full bg-teal-600 text-white py-2 px-4 rounded-md hover:bg-teal-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center space-x-2",children:W?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-white border-t-transparent rounded-full"}),N.jsx("span",{children:"Verifying..."})]}):N.jsxs(N.Fragment,{children:[N.jsx(Rh,{className:"w-4 h-4"}),N.jsx("span",{children:"Verify Subsequence"})]})})]})]})]}),A&&N.jsx("div",{className:`rounded-lg p-4 ${A.success?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:N.jsxs("div",{className:"flex items-start space-x-3",children:[A.success?N.jsx(hx,{className:"w-5 h-5 text-green-600 mt-0.5"}):N.jsx(bx,{className:"w-5 h-5 text-red-600 mt-0.5"}),N.jsxs("div",{className:"flex-1",children:[N.jsx("h3",{className:`font-medium ${A.success?"text-green-800":"text-red-800"}`,children:A.success?"Success":"Error"}),A.error&&N.jsx("p",{className:"text-red-700 text-sm mt-1",children:A.error}),A.transactionId&&N.jsxs("p",{className:"text-green-700 text-sm mt-1",children:["Transaction ID:",N.jsx("span",{className:"font-mono ml-1",children:A.transactionId})]}),((de=A.data)==null?void 0:de.verified)!==void 0&&N.jsxs("div",{className:"mt-2",children:[N.jsxs("p",{className:`text-sm ${A.data.verified?"text-green-700":"text-yellow-700"}`,children:["Subsequence ",A.data.verified?"found":"not found"," in repository"]}),A.data.verified&&A.data.storerAddress&&N.jsxs("div",{className:"mt-2 p-2 bg-white rounded border",children:[N.jsxs("div",{className:"flex items-center space-x-2",children:[N.jsx(wx,{className:"w-4 h-4 text-blue-600"}),N.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Storer Address:"})]}),N.jsx("p",{className:"text-xs font-mono text-gray-600 mt-1",children:A.data.storerAddress})]})]})]})]})})]})}function lb(){return N.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-8",children:[N.jsxs("div",{className:"text-center",children:[N.jsx(sg,{className:"w-12 h-12 text-blue-600 mx-auto mb-4"}),N.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Media Hash Repository Documentation"}),N.jsx("p",{className:"text-gray-600 max-w-2xl mx-auto",children:"Complete guide for setting up, deploying, and using the Algorand media hash repository smart contract"})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[N.jsx(_x,{className:"w-5 h-5 text-green-600"}),N.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Qu
159ick Start"})]}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"1. Local Development Setup"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-3 rounded text-sm overflow-x-auto",children:`# Install dependencies 160npm install 161 162# Start local Algorand node (requires Docker) 163npm run start:local 164 165# Compile and deploy contract 166npm run compile 167npm run deploy:local`})]}),N.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"2. Start Development Server"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-3 rounded text-sm overflow-x-auto",children:`# Start the web interface 168npm run dev`})]})]})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Contract Overview"}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Contract Name"}),N.jsx("p",{className:"text-gray-600 font-mono bg-gray-50 px-3 py-1 rounded",children:"RealWorldOriginatedMediaHashRepositoryAndVerifier"})]}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Storage Method"}),N.jsx("p",{className:"text-gray-600",children:"Uses Algorand Box Storage for efficient key-value storage of hash arrays. Each user's hash arrays are stored using their address as the key."})]}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Methods"}),N.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[N.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[N.jsx("h4",{className:"font-medium text-blue-600 mb-2",children:"RealWorldOriginatedMediaStoreHashArray"}),N.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[N.jsxs("li",{children:[N.jsx("strong",{children:"Input:"})," string[] (SHA-256 hash array)"]}),N.jsxs("li",{children:[N.jsx("strong",{children:"Output:"})," boolean"]}),N.jsxs("li",{children:[N.jsx("strong",{children:"Function:"})," Store caller's hash array in box storage"]})]})]}),N.jsxs("div",{className:"border border-gray-200 rounded-lg p-4",children:[N.jsx("h4",{className:"font-medium text-teal-600 mb-2",children:"RealWorldOriginatedMediaVerifyHashArray"}),N.jsxs("ul",{className:"text-sm text-gray-600 space-y-1",children:[N.jsxs("li",{children:[N.jsx("strong",{children:"Input:"})," string[] (SHA-256 hash array)"]}),N.jsxs("li",{children:[N.jsx("strong",{children:"Output:"})," boolean"]}),N.jsxs("li",{children:[N.jsx("strong",{children:"Function:"})," Verify if hash array exists in storage"]})]})]})]})]})]})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[N.jsx(px,{className:"w-5 h-5 text-purple-600"}),N.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"API Reference"})]}),N.jsxs("div",{className:"space-y-6",children:[N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-3",children:"TypeScript SDK Usage"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-4 rounded-lg text-sm overflow-x-auto",children:`import { AlgorandClient, MediaHashRepository } from './utils/algorand'; 169 170// Initialize client 171const client = new AlgorandClient('local'); 172const repository = new MediaHashRepository(client, APP_ID); 173 174// Store hash array 175const storeResult = await repository.storeHashArray({ 176 hashes: ['abc123...', 'def456...'], 177 sender: account.addr 178}, account); 179 180// Verify hash array 181const verifyResult = await repository.verifyHashArray({ 182 hashes: ['abc123...', 'def456...'] 183}, account);`})]}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-3",children:"Hash Validation"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-4 rounded-lg text-sm overflow-x-auto",children:`// SHA-256 hash format validation 184const isValidHash = client.validateSHA256Hash(hash); 185 186// Array validation with detailed errors 187const validation = client.validateHashArray(hashes); 188if (!validation.valid) { 189 console.log('Errors:', validation.errors); 190}`})]})]})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[N.jsx(xx,{className:"w-5 h-5 text-orange-600"}),N.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Deployment Guide"})]}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Local Development"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-3 rounded text-sm overflow-x-auto",children:`# Start local Algorand sandbox 191docker run -d --name algorand-sandbox \\ 192 -p 4001:4001 -p 4002:4002 \\ 193 algorand/sandbox 194 195# Deploy to local network 196npm run deploy:local`})]}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"TestNet Deployment"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-3 rounded text-sm overflow-x-auto",children:`# Set up environment variables 197export ALGORAND_CREATOR_MNEMONIC="your mnemonic phrase..." 198 199# Deploy to TestNet 200npm run deploy:testnet`})]}),N.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[N.jsx("h3",{className:"font-medium text-yellow-800 mb
200-2",children:"â ï¸ Important Notes"}),N.jsxs("ul",{className:"text-sm text-yellow-700 space-y-1",children:[N.jsx("li",{children:"⢠Ensure your account has sufficient ALGO for deployment"}),N.jsx("li",{children:"⢠Box storage requires additional fees for storage allocation"}),N.jsx("li",{children:"⢠Test thoroughly on local network before TestNet deployment"}),N.jsx("li",{children:"⢠Keep your private keys secure and never commit them to version control"})]})]})]})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Testing"}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Running Tests"}),N.jsx("pre",{className:"bg-gray-800 text-gray-100 p-3 rounded text-sm overflow-x-auto",children:`# Run all tests 201npm test 202 203# Run tests with UI 204npm run test:ui 205 206# Run specific test file 207npm test -- MediaHashRepository.test.ts`})]}),N.jsxs("div",{children:[N.jsx("h3",{className:"font-medium text-gray-900 mb-2",children:"Test Coverage"}),N.jsxs("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[N.jsxs("div",{className:"bg-gray-50 p-3 rounded",children:[N.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:"Unit Tests"}),N.jsxs("ul",{className:"text-gray-600 space-y-1",children:[N.jsx("li",{children:"⢠Hash validation"}),N.jsx("li",{children:"⢠Array length limits"}),N.jsx("li",{children:"⢠Input sanitization"}),N.jsx("li",{children:"⢠Error handling"})]})]}),N.jsxs("div",{className:"bg-gray-50 p-3 rounded",children:[N.jsx("h4",{className:"font-medium text-gray-900 mb-1",children:"Integration Tests"}),N.jsxs("ul",{className:"text-gray-600 space-y-1",children:[N.jsx("li",{children:"⢠Contract deployment"}),N.jsx("li",{children:"⢠Store operations"}),N.jsx("li",{children:"⢠Verify operations"}),N.jsx("li",{children:"⢠Box storage management"})]})]})]})]})]})]}),N.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[N.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Troubleshooting"}),N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{className:"border-l-4 border-red-400 pl-4",children:[N.jsx("h3",{className:"font-medium text-red-800 mb-1",children:"Account not funded"}),N.jsx("p",{className:"text-sm text-red-600",children:"Solution: Fund your account with test ALGOs using the TestNet dispenser or local faucet"})]}),N.jsxs("div",{className:"border-l-4 border-yellow-400 pl-4",children:[N.jsx("h3",{className:"font-medium text-yellow-800 mb-1",children:"Box storage limit exceeded"}),N.jsx("p",{className:"text-sm text-yellow-600",children:"Solution: Reduce hash array size or implement pagination for large datasets"})]}),N.jsxs("div",{className:"border-l-4 border-blue-400 pl-4",children:[N.jsx("h3",{className:"font-medium text-blue-800 mb-1",children:"Network connection issues"}),N.jsx("p",{className:"text-sm text-blue-600",children:"Solution: Check network configuration and ensure Algorand node is running"})]})]})]})]})}function ub(){const[t,e]=Pt.useState("interface"),[r,n]=Pt.useState("testnet"),[i]=Pt.useState(742075128);return N.jsxs("div",{className:"min-h-screen bg-gray-50",children:[N.jsxs("nav",{className:"bg-white shadow-sm border-b border-gray-200",children:[N.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:N.jsxs("div",{className:"flex justify-between items-center h-16",children:[N.jsxs("div",{className:"flex items-center space-x-3",children:[N.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-teal-600 p-2 rounded-lg",children:N.jsx(og,{className:"w-6 h-6 text-white"})}),N.jsxs("div",{children:[N.jsx("h1",{className:"text-lg font-semibold text-gray-900",children:"Algorand Media Hash Repository"}),N.jsx("p",{className:"text-xs text-gray-500",children:"Decentralized hash storage and verification"})]})]}),N.jsxs("div",{className:"flex items-center space-x-4",children:[N.jsx("button",{onClick:()=>e("interface"),className:`px-3 py-2 rounded-md text-sm font-medium transition-colors ${t==="interface"?"bg-blue-100 text-blue-700":"text-gray-600 hover:text-gray-900"}`,children:N.jsxs("div",{className:"flex items-center space-x-1",children:[N.jsx(yx,{className:"w-4 h-4"}),N.jsx("span",{children:"Interface"})]})}),N.jsx("button",{onClick:()=>e("docs"),className:`px-3 py-2 rounded-md text-sm font-medium transition-colors ${t==="docs"?"bg-blue-100 text-blue-700":"text-gray-600 hover:text-gray-900"}`,children:N.jsxs("div",{className:"flex items-center space-x-1",children:[N.jsx(sg,{className:"w-4 h-4"}),N.jsx("span",{children:"Documentation"})]})}),t==="interface"&&N.jsxs("select",{value:r,onChange:s=>n(s.target.value),className:"px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",children:[N.jsx("option",{value:"local",children:"Local"}),N.jsx("option",{value:"testnet",children:"TestNet"})]}),N.jsx("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-gray-600 transition-colors",children:N.jsx(gx,{className:"w-5 h-5"})})]})]})}),N.jsx("div",{className:"absolute top-20 right-4 z-40",children:N.jsx("img",{src:"/black_circle_360x360.png",alt:"Powered by Bolt",className:"w-16 h-16 hover:scale-105 transition-transform duration-200 cursor-pointer shadow-lg rounded-full",title:"Powered by Bolt"})})]}),N.jsx("main",{className:"py-8",children:t==="interface"?N.jsx(ab,{network:r,appId:i}
207):N.jsx(lb,{})}),N.jsx("footer",{className:"bg-white border-t border-gray-200 py-8",children:N.jsx("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:N.jsxs("div",{className:"text-center",children:[N.jsx("p",{className:"text-gray-600 text-sm",children:"Built with Algorand SDK ⢠PyTeal Smart Contracts ⢠TypeScript ⢠React"}),N.jsx("p",{className:"text-gray-500 text-xs mt-2",children:"Secure, decentralized media hash storage and verification on Algorand blockchain"})]})})})]})}ig(document.getElementById("root")).render(N.jsx(Pt.StrictMode,{children:N.jsx(ub,{})}));
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.