From 68309c7d1ca851397b4ef7ef3c1f29a1c1a60d97 Mon Sep 17 00:00:00 2001 From: marino39 Date: Tue, 9 Jan 2024 08:38:56 +0000 Subject: [PATCH] Build: (b9732cb) Merge pull request #8 from 0xsequence/fix-imports fix: imports in main --- assets/index-29c40c2b.js | 197 +++++++++++++++++++++++++++++++++++++++ assets/index-8a01af79.js | 197 --------------------------------------- index.html | 2 +- 3 files changed, 198 insertions(+), 198 deletions(-) create mode 100644 assets/index-29c40c2b.js delete mode 100644 assets/index-8a01af79.js diff --git a/assets/index-29c40c2b.js b/assets/index-29c40c2b.js new file mode 100644 index 0000000..453bb0e --- /dev/null +++ b/assets/index-29c40c2b.js @@ -0,0 +1,197 @@ +function LP(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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 Ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var XE={exports:{}},Y0={},ZE={exports:{}},Le={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hu=Symbol.for("react.element"),FP=Symbol.for("react.portal"),jP=Symbol.for("react.fragment"),zP=Symbol.for("react.strict_mode"),UP=Symbol.for("react.profiler"),VP=Symbol.for("react.provider"),qP=Symbol.for("react.context"),HP=Symbol.for("react.forward_ref"),GP=Symbol.for("react.suspense"),WP=Symbol.for("react.memo"),KP=Symbol.for("react.lazy"),s2=Symbol.iterator;function YP(e){return e===null||typeof e!="object"?null:(e=s2&&e[s2]||e["@@iterator"],typeof e=="function"?e:null)}var e5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t5=Object.assign,r5={};function jl(e,t,r){this.props=e,this.context=t,this.refs=r5,this.updater=r||e5}jl.prototype.isReactComponent={};jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function n5(){}n5.prototype=jl.prototype;function em(e,t,r){this.props=e,this.context=t,this.refs=r5,this.updater=r||e5}var tm=em.prototype=new n5;tm.constructor=em;t5(tm,jl.prototype);tm.isPureReactComponent=!0;var o2=Array.isArray,i5=Object.prototype.hasOwnProperty,rm={current:null},s5={key:!0,ref:!0,__self:!0,__source:!0};function o5(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)i5.call(t,n)&&!s5.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1>>1,p=T[k];if(0>>1;ki(E,B))Fi(j,E)?(T[k]=j,T[F]=B,k=F):(T[k]=E,T[L]=B,k=L);else if(Fi(j,B))T[k]=j,T[F]=B,k=F;else break e}}return N}function i(T,N){var B=T.sortIndex-N.sortIndex;return B!==0?B:T.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],f=1,u=null,d=3,v=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(T){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=T)n(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(c)}}function A(T){if(y=!1,S(T),!m)if(r(l)!==null)m=!0,P(_);else{var N=r(c);N!==null&&M(A,N.startTime-T)}}function _(T,N){m=!1,y&&(y=!1,x(D),D=-1),v=!0;var B=d;try{for(S(N),u=r(l);u!==null&&(!(u.expirationTime>N)||T&&!H());){var k=u.callback;if(typeof k=="function"){u.callback=null,d=u.priorityLevel;var p=k(u.expirationTime<=N);N=e.unstable_now(),typeof p=="function"?u.callback=p:u===r(l)&&n(l),S(N)}else n(l);u=r(l)}if(u!==null)var R=!0;else{var L=r(c);L!==null&&M(A,L.startTime-N),R=!1}return R}finally{u=null,d=B,v=!1}}var O=!1,$=null,D=-1,G=5,J=-1;function H(){return!(e.unstable_now()-JT||125k?(T.sortIndex=B,t(c,T),r(l)===null&&T===r(c)&&(y?(x(D),D=-1):y=!0,M(A,B-k))):(T.sortIndex=p,t(l,T),m||v||(m=!0,P(_))),T},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(T){var N=d;return function(){var B=d;d=N;try{return T.apply(this,arguments)}finally{d=B}}}})(u5);f5.exports=u5;var oR=f5.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var d5=g,un=oR;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ny=Object.prototype.hasOwnProperty,aR=/^[: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]*$/,l2={},c2={};function lR(e){return ny.call(c2,e)?!0:ny.call(l2,e)?!1:aR.test(e)?c2[e]=!0:(l2[e]=!0,!1)}function cR(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function fR(e,t,r,n){if(t===null||typeof t>"u"||cR(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Vr(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Er={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Er[e]=new Vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Er[t]=new Vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Er[e]=new Vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Er[e]=new Vr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Er[e]=new Vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Er[e]=new Vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Er[e]=new Vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Er[e]=new Vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Er[e]=new Vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var im=/[\-:]([a-z])/g;function sm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(im,sm);Er[t]=new Vr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(im,sm);Er[t]=new Vr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(im,sm);Er[t]=new Vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Er[e]=new Vr(e,1,!1,e.toLowerCase(),null,!1,!1)});Er.xlinkHref=new Vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Er[e]=new Vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function om(e,t,r,n){var i=Er.hasOwnProperty(t)?Er[t]:null;(i!==null?i.type!==0:n||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{g1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Kc(e):""}function uR(e){switch(e.tag){case 5:return Kc(e.type);case 16:return Kc("Lazy");case 13:return Kc("Suspense");case 19:return Kc("SuspenseList");case 0:case 2:case 15:return e=x1(e.type,!1),e;case 11:return e=x1(e.type.render,!1),e;case 1:return e=x1(e.type,!0),e;default:return""}}function ay(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fa:return"Fragment";case La:return"Portal";case iy:return"Profiler";case am:return"StrictMode";case sy:return"Suspense";case oy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y5:return(e.displayName||"Context")+".Consumer";case v5:return(e._context.displayName||"Context")+".Provider";case lm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cm:return t=e.displayName||null,t!==null?t:ay(e.type)||"Memo";case Fs:t=e._payload,e=e._init;try{return ay(e(t))}catch{}}return null}function dR(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ay(t);case 8:return t===am?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function m5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hR(e){var t=m5(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ju(e){e._valueTracker||(e._valueTracker=hR(e))}function g5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=m5(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Kd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ly(e,t){var r=t.checked;return Ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function u2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=lo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x5(e,t){t=t.checked,t!=null&&om(e,"checked",t,!1)}function cy(e,t){x5(e,t);var r=lo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fy(e,t.type,r):t.hasOwnProperty("defaultValue")&&fy(e,t.type,lo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fy(e,t,r){(t!=="number"||Kd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Yc=Array.isArray;function sl(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _f(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ef={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},vR=["Webkit","ms","Moz","O"];Object.keys(ef).forEach(function(e){vR.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ef[t]=ef[e]})});function C5(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ef.hasOwnProperty(e)&&ef[e]?(""+t).trim():t+"px"}function S5(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=C5(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var yR=Ft({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 hy(e,t){if(t){if(yR[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function vy(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yy=null;function fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var py=null,ol=null,al=null;function y2(e){if(e=pu(e)){if(typeof py!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=eh(t),py(e.stateNode,e.type,t))}}function A5(e){ol?al?al.push(e):al=[e]:ol=e}function k5(){if(ol){var e=ol,t=al;if(al=ol=null,y2(e),t)for(e=0;e>>=0,e===0?32:31-(kR(e)/PR|0)|0}var Uu=64,Vu=4194304;function Jc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xd(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Jc(a):(s&=o,s!==0&&(n=Jc(s)))}else o=r&~i,o!==0?n=Jc(o):s!==0&&(n=Jc(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function vu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ii(t),e[t]=r}function MR(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=rf),S2=String.fromCharCode(32),A2=!1;function G5(e,t){switch(e){case"keyup":return s_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ja=!1;function a_(e,t){switch(e){case"compositionend":return W5(t);case"keypress":return t.which!==32?null:(A2=!0,S2);case"textInput":return e=t.data,e===S2&&A2?null:e;default:return null}}function l_(e,t){if(ja)return e==="compositionend"||!gm&&G5(e,t)?(e=q5(),kd=ym=Hs=null,ja=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_2(r)}}function Q5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Q5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function X5(){for(var e=window,t=Kd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Kd(e.document)}return t}function xm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function m_(e){var t=X5(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Q5(r.ownerDocument.documentElement,r)){if(n!==null&&xm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=T2(r,s);var o=T2(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,za=null,Ey=null,sf=null,Cy=!1;function M2(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cy||za==null||za!==Kd(n)||(n=za,"selectionStart"in n&&xm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sf&&Of(sf,n)||(sf=n,n=t0(Ey,"onSelect"),0qa||(e.current=_y[qa],_y[qa]=null,qa--)}function Et(e,t){qa++,_y[qa]=e.current,e.current=t}var co={},Mr=bo(co),Yr=bo(!1),ea=co;function bl(e,t){var r=e.type.contextTypes;if(!r)return co;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Jr(e){return e=e.childContextTypes,e!=null}function n0(){kt(Yr),kt(Mr)}function L2(e,t,r){if(Mr.current!==co)throw Error(oe(168));Et(Mr,t),Et(Yr,r)}function a8(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(oe(108,dR(e)||"Unknown",i));return Ft({},r,n)}function i0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,ea=Mr.current,Et(Mr,e),Et(Yr,Yr.current),!0}function F2(e,t,r){var n=e.stateNode;if(!n)throw Error(oe(169));r?(e=a8(e,t,ea),n.__reactInternalMemoizedMergedChildContext=e,kt(Yr),kt(Mr),Et(Mr,e)):kt(Yr),Et(Yr,r)}var os=null,th=!1,N1=!1;function l8(e){os===null?os=[e]:os.push(e)}function __(e){th=!0,l8(e)}function wo(){if(!N1&&os!==null){N1=!0;var e=0,t=at;try{var r=os;for(at=1;e>=o,i-=o,cs=1<<32-ii(t)+i|r<D?(G=$,$=null):G=$.sibling;var J=d(x,$,S[D],A);if(J===null){$===null&&($=G);break}e&&$&&J.alternate===null&&t(x,$),b=s(J,b,D),O===null?_=J:O.sibling=J,O=J,$=G}if(D===S.length)return r(x,$),Tt&&$o(x,D),_;if($===null){for(;DD?(G=$,$=null):G=$.sibling;var H=d(x,$,J.value,A);if(H===null){$===null&&($=G);break}e&&$&&H.alternate===null&&t(x,$),b=s(H,b,D),O===null?_=H:O.sibling=H,O=H,$=G}if(J.done)return r(x,$),Tt&&$o(x,D),_;if($===null){for(;!J.done;D++,J=S.next())J=u(x,J.value,A),J!==null&&(b=s(J,b,D),O===null?_=J:O.sibling=J,O=J);return Tt&&$o(x,D),_}for($=n(x,$);!J.done;D++,J=S.next())J=v($,x,D,J.value,A),J!==null&&(e&&J.alternate!==null&&$.delete(J.key===null?D:J.key),b=s(J,b,D),O===null?_=J:O.sibling=J,O=J);return e&&$.forEach(function(Z){return t(x,Z)}),Tt&&$o(x,D),_}function w(x,b,S,A){if(typeof S=="object"&&S!==null&&S.type===Fa&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Fu:e:{for(var _=S.key,O=b;O!==null;){if(O.key===_){if(_=S.type,_===Fa){if(O.tag===7){r(x,O.sibling),b=i(O,S.props.children),b.return=x,x=b;break e}}else if(O.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Fs&&G2(_)===O.type){r(x,O.sibling),b=i(O,S.props),b.ref=hc(x,O,S),b.return=x,x=b;break e}r(x,O);break}else t(x,O);O=O.sibling}S.type===Fa?(b=Ko(S.props.children,x.mode,A,S.key),b.return=x,x=b):(A=$d(S.type,S.key,S.props,null,x.mode,A),A.ref=hc(x,b,S),A.return=x,x=A)}return o(x);case La:e:{for(O=S.key;b!==null;){if(b.key===O)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){r(x,b.sibling),b=i(b,S.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else t(x,b);b=b.sibling}b=z1(S,x.mode,A),b.return=x,x=b}return o(x);case Fs:return O=S._init,w(x,b,O(S._payload),A)}if(Yc(S))return m(x,b,S,A);if(lc(S))return y(x,b,S,A);Ju(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,S),b.return=x,x=b):(r(x,b),b=j1(S,x.mode,A),b.return=x,x=b),o(x)):r(x,b)}return w}var El=p8(!0),m8=p8(!1),mu={},Li=bo(mu),Ff=bo(mu),jf=bo(mu);function Uo(e){if(e===mu)throw Error(oe(174));return e}function Rm(e,t){switch(Et(jf,t),Et(Ff,e),Et(Li,mu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dy(t,e)}kt(Li),Et(Li,t)}function Cl(){kt(Li),kt(Ff),kt(jf)}function g8(e){Uo(jf.current);var t=Uo(Li.current),r=dy(t,e.type);t!==r&&(Et(Ff,e),Et(Li,r))}function _m(e){Ff.current===e&&(kt(Li),kt(Ff))}var Ot=bo(0);function f0(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $1=[];function Tm(){for(var e=0;e<$1.length;e++)$1[e]._workInProgressVersionPrimary=null;$1.length=0}var _d=ks.ReactCurrentDispatcher,O1=ks.ReactCurrentBatchConfig,ra=0,Bt=null,or=null,dr=null,u0=!1,of=!1,zf=0,M_=0;function Ar(){throw Error(oe(321))}function Mm(e,t){if(t===null)return!1;for(var r=0;rr?r:4,e(!0);var n=O1.transition;O1.transition={};try{e(!1),t()}finally{at=r,O1.transition=n}}function $8(){return Mn().memoizedState}function N_(e,t,r){var n=to(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},O8(e))D8(t,r);else if(r=d8(e,t,r,n),r!==null){var i=zr();si(r,e,n,i),B8(r,t,n)}}function $_(e,t,r){var n=to(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(O8(e))D8(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,li(a,o)){var l=t.interleaved;l===null?(i.next=i,km(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=d8(e,t,i,n),r!==null&&(i=zr(),si(r,e,n,i),B8(r,t,n))}}function O8(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function D8(e,t){of=u0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function B8(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,dm(e,r)}}var d0={readContext:Tn,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useInsertionEffect:Ar,useLayoutEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useMutableSource:Ar,useSyncExternalStore:Ar,useId:Ar,unstable_isNewReconciler:!1},O_={readContext:Tn,useCallback:function(e,t){return Ei().memoizedState=[e,t===void 0?null:t],e},useContext:Tn,useEffect:K2,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Td(4194308,4,_8.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Td(4194308,4,e,t)},useInsertionEffect:function(e,t){return Td(4,2,e,t)},useMemo:function(e,t){var r=Ei();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ei();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=N_.bind(null,Bt,e),[n.memoizedState,e]},useRef:function(e){var t=Ei();return e={current:e},t.memoizedState=e},useState:W2,useDebugValue:Om,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=W2(!1),t=e[0];return e=I_.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Bt,i=Ei();if(Tt){if(r===void 0)throw Error(oe(407));r=r()}else{if(r=t(),hr===null)throw Error(oe(349));ra&30||w8(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,K2(C8.bind(null,n,s,e),[e]),n.flags|=2048,Vf(9,E8.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=Ei(),t=hr.identifierPrefix;if(Tt){var r=fs,n=cs;r=(n&~(1<<32-ii(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=zf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ki]=t,e[Lf]=n,G8(e,t,!1,!1),t.stateNode=e;e:{switch(o=vy(r,n),r){case"dialog":At("cancel",e),At("close",e),i=n;break;case"iframe":case"object":case"embed":At("load",e),i=n;break;case"video":case"audio":for(i=0;iAl&&(t.flags|=128,n=!0,vc(s,!1),t.lanes=4194304)}else{if(!n)if(e=f0(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),vc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Tt)return kr(t),null}else 2*Qt()-s.renderingStartTime>Al&&r!==1073741824&&(t.flags|=128,n=!0,vc(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qt(),t.sibling=null,r=Ot.current,Et(Ot,n?r&1|2:r&1),t):(kr(t),null);case 22:case 23:return zm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?sn&1073741824&&(kr(t),t.subtreeFlags&6&&(t.flags|=8192)):kr(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function V_(e,t){switch(wm(t),t.tag){case 1:return Jr(t.type)&&n0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cl(),kt(Yr),kt(Mr),Tm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _m(t),null;case 13:if(kt(Ot),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kt(Ot),null;case 4:return Cl(),null;case 10:return Am(t.type._context),null;case 22:case 23:return zm(),null;case 24:return null;default:return null}}var Xu=!1,Pr=!1,q_=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Ka(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vt(e,t,n)}else r.current=null}function zy(e,t,r){try{r()}catch(n){Vt(e,t,n)}}var nw=!1;function H_(e,t){if(Sy=Zd,e=X5(),xm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,f=0,u=e,d=null;t:for(;;){for(var v;u!==r||i!==0&&u.nodeType!==3||(a=o+i),u!==s||n!==0&&u.nodeType!==3||(l=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===e)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ay={focusedElem:e,selectionRange:r},Zd=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:Jn(t.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(A){Vt(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return m=nw,nw=!1,m}function af(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&zy(t,r,s)}i=i.next}while(i!==n)}}function ih(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Uy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Y8(e){var t=e.alternate;t!==null&&(e.alternate=null,Y8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ki],delete t[Lf],delete t[Ry],delete t[P_],delete t[R_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function J8(e){return e.tag===5||e.tag===3||e.tag===4}function iw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||J8(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=r0));else if(n!==4&&(e=e.child,e!==null))for(Vy(e,t,r),e=e.sibling;e!==null;)Vy(e,t,r),e=e.sibling}function qy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qy(e,t,r),e=e.sibling;e!==null;)qy(e,t,r),e=e.sibling}var gr=null,Qn=!1;function Ms(e,t,r){for(r=r.child;r!==null;)Q8(e,t,r),r=r.sibling}function Q8(e,t,r){if(Bi&&typeof Bi.onCommitFiberUnmount=="function")try{Bi.onCommitFiberUnmount(J0,r)}catch{}switch(r.tag){case 5:Pr||Ka(r,t);case 6:var n=gr,i=Qn;gr=null,Ms(e,t,r),gr=n,Qn=i,gr!==null&&(Qn?(e=gr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):gr.removeChild(r.stateNode));break;case 18:gr!==null&&(Qn?(e=gr,r=r.stateNode,e.nodeType===8?I1(e.parentNode,r):e.nodeType===1&&I1(e,r),Nf(e)):I1(gr,r.stateNode));break;case 4:n=gr,i=Qn,gr=r.stateNode.containerInfo,Qn=!0,Ms(e,t,r),gr=n,Qn=i;break;case 0:case 11:case 14:case 15:if(!Pr&&(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)&&zy(r,t,o),i=i.next}while(i!==n)}Ms(e,t,r);break;case 1:if(!Pr&&(Ka(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Vt(r,t,a)}Ms(e,t,r);break;case 21:Ms(e,t,r);break;case 22:r.mode&1?(Pr=(n=Pr)||r.memoizedState!==null,Ms(e,t,r),Pr=n):Ms(e,t,r);break;default:Ms(e,t,r)}}function sw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new q_),t.forEach(function(n){var i=eT.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function qn(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~s}if(n=i,n=Qt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*W_(n/1960))-n,10e?16:e,Gs===null)var n=!1;else{if(e=Gs,Gs=null,y0=0,Ye&6)throw Error(oe(331));var i=Ye;for(Ye|=4,pe=e.current;pe!==null;){var s=pe,o=s.child;if(pe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lQt()-Fm?Wo(e,0):Lm|=r),Qr(e,t)}function sC(e,t){t===0&&(e.mode&1?(t=Vu,Vu<<=1,!(Vu&130023424)&&(Vu=4194304)):t=1);var r=zr();e=gs(e,t),e!==null&&(vu(e,t,r),Qr(e,r))}function Z_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),sC(e,r)}function eT(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(oe(314))}n!==null&&n.delete(t),sC(e,r)}var oC;oC=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yr.current)Kr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Kr=!1,z_(e,t,r);Kr=!!(e.flags&131072)}else Kr=!1,Tt&&t.flags&1048576&&c8(t,o0,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Md(e,t),e=t.pendingProps;var i=bl(t,Mr.current);cl(t,r),i=Im(null,t,n,e,i,r);var s=Nm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Jr(n)?(s=!0,i0(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pm(t),i.updater=rh,t.stateNode=i,i._reactInternals=t,$y(t,n,e,r),t=By(null,t,n,!0,s,r)):(t.tag=0,Tt&&s&&bm(t),Lr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Md(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=rT(n),e=Jn(n,e),i){case 0:t=Dy(null,t,n,e,r);break e;case 1:t=ew(null,t,n,e,r);break e;case 11:t=X2(null,t,n,e,r);break e;case 14:t=Z2(null,t,n,Jn(n.type,e),r);break e}throw Error(oe(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),Dy(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),ew(e,t,n,i,r);case 3:e:{if(V8(t),e===null)throw Error(oe(387));n=t.pendingProps,s=t.memoizedState,i=s.element,h8(e,t),c0(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Sl(Error(oe(423)),t),t=tw(e,t,n,r,i);break e}else if(n!==i){i=Sl(Error(oe(424)),t),t=tw(e,t,n,r,i);break e}else for(ln=Xs(t.stateNode.containerInfo.firstChild),fn=t,Tt=!0,Zn=null,r=m8(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(wl(),n===i){t=xs(e,t,r);break e}Lr(e,t,n,r)}t=t.child}return t;case 5:return g8(t),e===null&&My(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ky(n,i)?o=null:s!==null&&ky(n,s)&&(t.flags|=32),U8(e,t),Lr(e,t,o,r),t.child;case 6:return e===null&&My(t),null;case 13:return q8(e,t,r);case 4:return Rm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=El(t,null,n,r):Lr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),X2(e,t,n,i,r);case 7:return Lr(e,t,t.pendingProps,r),t.child;case 8:return Lr(e,t,t.pendingProps.children,r),t.child;case 12:return Lr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Et(a0,n._currentValue),n._currentValue=o,s!==null)if(li(s.value,o)){if(s.children===i.children&&!Yr.current){t=xs(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=ds(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Iy(s.return,r,t),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(oe(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Iy(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Lr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,cl(t,r),i=Tn(i),n=n(i),t.flags|=1,Lr(e,t,n,r),t.child;case 14:return n=t.type,i=Jn(n,t.pendingProps),i=Jn(n.type,i),Z2(e,t,n,i,r);case 15:return j8(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Jn(n,i),Md(e,t),t.tag=1,Jr(n)?(e=!0,i0(t)):e=!1,cl(t,r),y8(t,n,i),$y(t,n,i,r),By(null,t,n,!0,e,r);case 19:return H8(e,t,r);case 22:return z8(e,t,r)}throw Error(oe(156,t.tag))};function aC(e,t){return N5(e,t)}function tT(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(e,t,r,n){return new tT(e,t,r,n)}function Vm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rT(e){if(typeof e=="function")return Vm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lm)return 11;if(e===cm)return 14}return 2}function ro(e,t){var r=e.alternate;return r===null?(r=Pn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $d(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")Vm(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Fa:return Ko(r.children,i,s,t);case am:o=8,i|=8;break;case iy:return e=Pn(12,r,t,i|2),e.elementType=iy,e.lanes=s,e;case sy:return e=Pn(13,r,t,i),e.elementType=sy,e.lanes=s,e;case oy:return e=Pn(19,r,t,i),e.elementType=oy,e.lanes=s,e;case p5:return oh(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v5:o=10;break e;case y5:o=9;break e;case lm:o=11;break e;case cm:o=14;break e;case Fs:o=16,n=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Pn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Ko(e,t,r,n){return e=Pn(7,e,n,t),e.lanes=r,e}function oh(e,t,r,n){return e=Pn(22,e,n,t),e.elementType=p5,e.lanes=r,e.stateNode={isHidden:!1},e}function j1(e,t,r){return e=Pn(6,e,null,t),e.lanes=r,e}function z1(e,t,r){return t=Pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nT(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=w1(0),this.expirationTimes=w1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qm(e,t,r,n,i,s,o,a,l){return e=new nT(e,t,r,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Pn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pm(s),e}function iT(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uC)}catch(e){console.error(e)}}uC(),c5.exports=yn;var Eo=c5.exports;const cT=As(Eo);var hw=Eo;ry.createRoot=hw.createRoot,ry.hydrateRoot=hw.hydrateRoot;const dC=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),uh=g.createContext({}),dh=g.createContext(null),hh=typeof document<"u",Km=hh?g.useLayoutEffect:g.useEffect,hC=g.createContext({strict:!1});function fT(e,t,r,n){const{visualElement:i}=g.useContext(uh),s=g.useContext(hC),o=g.useContext(dh),a=g.useContext(dC).reducedMotion,l=g.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;g.useInsertionEffect(()=>{c&&c.update(r,o)});const f=g.useRef(!!window.HandoffAppearAnimations);return Km(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function Ja(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uT(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ja(r)&&(r.current=n))},[t])}function Hf(e){return typeof e=="string"||Array.isArray(e)}function vh(e){return typeof e=="object"&&typeof e.start=="function"}const Ym=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jm=["initial",...Ym];function yh(e){return vh(e.animate)||Jm.some(t=>Hf(e[t]))}function vC(e){return!!(yh(e)||e.variants)}function dT(e,t){if(yh(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Hf(r)?r:void 0,animate:Hf(n)?n:void 0}}return e.inherit!==!1?t:{}}function hT(e){const{initial:t,animate:r}=dT(e,g.useContext(uh));return g.useMemo(()=>({initial:t,animate:r}),[vw(t),vw(r)])}function vw(e){return Array.isArray(e)?e.join(" "):e}const yw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Gf={};for(const e in yw)Gf[e]={isEnabled:t=>yw[e].some(r=>!!t[r])};function vT(e){for(const t in e)Gf[t]={...Gf[t],...e[t]}}const Qm=g.createContext({}),yC=g.createContext({}),yT=Symbol.for("motionComponentSymbol");function pT({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&vT(e);function s(a,l){let c;const f={...g.useContext(dC),...a,layoutId:mT(a)},{isStatic:u}=f,d=hT(a),v=n(a,u);if(!u&&hh){d.visualElement=fT(i,v,f,t);const m=g.useContext(yC),y=g.useContext(hC).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,e,m))}return g.createElement(uh.Provider,{value:d},c&&d.visualElement?g.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,uT(v,d.visualElement,l),v,u,d.visualElement))}const o=g.forwardRef(s);return o[yT]=i,o}function mT({layoutId:e}){const t=g.useContext(Qm).id;return t&&e!==void 0?t+"-"+e:e}function gT(e){function t(n,i={}){return pT(e(n,i))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,i)=>(r.has(i)||r.set(i,t(i)),r.get(i))})}const xT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xm(e){return typeof e!="string"||e.includes("-")?!1:!!(xT.indexOf(e)>-1||/[A-Z]/.test(e))}const g0={};function bT(e){Object.assign(g0,e)}const gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],va=new Set(gu);function pC(e,{layout:t,layoutId:r}){return va.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!g0[e]||e==="opacity")}const Zr=e=>!!(e&&e.getVelocity),wT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ET=gu.length;function CT(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),gC=mC("--"),Yy=mC("var(--"),ST=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,AT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fo=(e,t,r)=>Math.min(Math.max(r,e),t),ya={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ff={...ya,transform:e=>fo(0,1,e)},td={...ya,default:1},uf=e=>Math.round(e*1e5)/1e5,ph=/(-)?([\d]*\.?[\d])+/g,xC=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,kT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xu(e){return typeof e=="string"}const bu=e=>({test:t=>xu(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Os=bu("deg"),Fi=bu("%"),Ce=bu("px"),PT=bu("vh"),RT=bu("vw"),pw={...Fi,parse:e=>Fi.parse(e)/100,transform:e=>Fi.transform(e*100)},mw={...ya,transform:Math.round},bC={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,size:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,rotate:Os,rotateX:Os,rotateY:Os,rotateZ:Os,scale:td,scaleX:td,scaleY:td,scaleZ:td,skew:Os,skewX:Os,skewY:Os,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:ff,originX:pw,originY:pw,originZ:Ce,zIndex:mw,fillOpacity:ff,strokeOpacity:ff,numOctaves:mw};function Zm(e,t,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,c=!1,f=!0;for(const u in t){const d=t[u];if(gC(u)){s[u]=d;continue}const v=bC[u],m=AT(d,v);if(va.has(u)){if(l=!0,o[u]=m,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(t.transform||(l||n?i.transform=CT(e.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const eg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wC(e,t,r){for(const n in t)!Zr(t[n])&&!pC(n,r)&&(e[n]=t[n])}function _T({transformTemplate:e},t,r){return g.useMemo(()=>{const n=eg();return Zm(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function TT(e,t,r){const n=e.style||{},i={};return wC(i,n,e),Object.assign(i,_T(e,t,r)),e.transformValues?e.transformValues(i):i}function MT(e,t,r){const n={},i=TT(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const IT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function x0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||IT.has(e)}let EC=e=>!x0(e);function NT(e){e&&(EC=t=>t.startsWith("on")?!x0(t):e(t))}try{NT(require("@emotion/is-prop-valid").default)}catch{}function $T(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(EC(i)||r===!0&&x0(i)||!t&&!x0(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function gw(e,t,r){return typeof e=="string"?e:Ce.transform(t+r*e)}function OT(e,t,r){const n=gw(t,e.x,e.width),i=gw(r,e.y,e.height);return`${n} ${i}`}const DT={offset:"stroke-dashoffset",array:"stroke-dasharray"},BT={offset:"strokeDashoffset",array:"strokeDasharray"};function LT(e,t,r=1,n=0,i=!0){e.pathLength=1;const s=i?DT:BT;e[s.offset]=Ce.transform(-n);const o=Ce.transform(t),a=Ce.transform(r);e[s.array]=`${o} ${a}`}function tg(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(Zm(e,c,f,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:m,dimensions:y}=e;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=OT(y,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(v.x=t),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&<(v,o,a,l,!1)}const CC=()=>({...eg(),attrs:{}}),rg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FT(e,t,r,n){const i=g.useMemo(()=>{const s=CC();return tg(s,t,{enableHardwareAcceleration:!1},rg(n),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wC(s,e.style,e),i.style={...s,...i.style}}return i}function jT(e=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Xm(r)?FT:MT)(n,s,o,r),f={...$T(n,typeof r=="string",e),...l,ref:i},{children:u}=n,d=g.useMemo(()=>Zr(u)?u.get():u,[u]);return g.createElement(r,{...f,children:d})}}const ng=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function SC(e,{style:t,vars:r},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const s in r)e.style.setProperty(s,r[s])}const AC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kC(e,t,r,n){SC(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(AC.has(i)?i:ng(i),t.attrs[i])}function ig(e,t){const{style:r}=e,n={};for(const i in r)(Zr(r[i])||t.style&&Zr(t.style[i])||pC(i,e))&&(n[i]=r[i]);return n}function PC(e,t){const r=ig(e,t);for(const n in e)if(Zr(e[n])||Zr(t[n])){const i=gu.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function sg(e,t,r,n={},i={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,i)),t}function RC(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const b0=e=>Array.isArray(e),zT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),UT=e=>b0(e)?e[e.length-1]||0:e;function Od(e){const t=Zr(e)?e.get():e;return zT(t)?t.toValue():t}function VT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,s){const o={latestValues:qT(n,i,s,e),renderState:t()};return r&&(o.mount=a=>r(n,a,o)),o}const _C=e=>(t,r)=>{const n=g.useContext(uh),i=g.useContext(dh),s=()=>VT(e,t,n,i);return r?s():RC(s)};function qT(e,t,r,n){const i={},s=n(e,{});for(const d in s)i[d]=Od(s[d]);let{initial:o,animate:a}=e;const l=yh(e),c=vC(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const u=f?a:o;return u&&typeof u!="boolean"&&!vh(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const m=sg(e,v);if(!m)return;const{transitionEnd:y,transition:w,...x}=m;for(const b in x){let S=x[b];if(Array.isArray(S)){const A=f?S.length-1:0;S=S[A]}S!==null&&(i[b]=S)}for(const b in y)i[b]=y[b]}),i}const qt=e=>e;class xw{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function HT(e){let t=new xw,r=new xw,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?t:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=t.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c(u[d]=HT(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,GT),1),i.timestamp=u,i.isProcessing=!0,rd.forEach(o),i.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,i.isProcessing||e(a)};return{schedule:rd.reduce((u,d)=>{const v=s[d];return u[d]=(m,y=!1,w=!1)=>(r||l(),v.schedule(m,y,w)),u},{}),cancel:u=>rd.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:Ct,cancel:bs,state:fr,steps:U1}=WT(typeof requestAnimationFrame<"u"?requestAnimationFrame:qt,!0),KT={useVisualState:_C({scrapeMotionValuesFromProps:PC,createRenderState:CC,onMount:(e,t,{renderState:r,latestValues:n})=>{Ct.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{tg(r,n,{enableHardwareAcceleration:!1},rg(t.tagName),e.transformTemplate),kC(t,r)})}})},YT={useVisualState:_C({scrapeMotionValuesFromProps:ig,createRenderState:eg})};function JT(e,{forwardMotionProps:t=!1},r,n){return{...Xm(e)?KT:YT,preloadedFeatures:r,useRender:jT(t),createVisualElement:n,Component:e}}function us(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const TC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function mh(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const QT=e=>t=>TC(t)&&e(t,mh(t));function hs(e,t,r,n){return us(e,t,QT(r),n)}const XT=(e,t)=>r=>t(e(r)),no=(...e)=>e.reduce(XT);function MC(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const bw=MC("dragHorizontal"),ww=MC("dragVertical");function IC(e){let t=!1;if(e==="y")t=ww();else if(e==="x")t=bw();else{const r=bw(),n=ww();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function NC(){const e=IC(!0);return e?(e(),!1):!0}class Co{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ew(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||NC())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&Ct.update(()=>a[n](s,o))};return hs(e.current,r,i,{passive:!e.getProps()[n]})}class ZT extends Co{mount(){this.unmount=no(Ew(this.node,!0),Ew(this.node,!1))}unmount(){}}class eM extends Co{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=no(us(this.node.current,"focus",()=>this.onFocus()),us(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const $C=(e,t)=>t?e===t?!0:$C(e,t.parentElement):!1;function V1(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,mh(r))}class tM extends Co{constructor(){super(...arguments),this.removeStartListeners=qt,this.removeEndListeners=qt,this.removeAccessibleListeners=qt,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=hs(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();Ct.update(()=>{$C(this.node.current,a.target)?c&&c(a,l):f&&f(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=hs(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=no(s,o),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||V1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Ct.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=us(this.node.current,"keyup",o),V1("down",(a,l)=>{this.startPress(a,l)})},r=us(this.node.current,"keydown",t),n=()=>{this.isPressing&&V1("cancel",(s,o)=>this.cancelPress(s,o))},i=us(this.node.current,"blur",n);this.removeAccessibleListeners=no(r,i)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ct.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!NC()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ct.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=hs(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=us(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=no(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Jy=new WeakMap,q1=new WeakMap,rM=e=>{const t=Jy.get(e.target);t&&t(e)},nM=e=>{e.forEach(rM)};function iM({root:e,...t}){const r=e||document;q1.has(r)||q1.set(r,{});const n=q1.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(nM,{root:e,...t})),n[i]}function sM(e,t,r){const n=iM(t);return Jy.set(e,r),n.observe(e),()=>{Jy.delete(e),n.unobserve(e)}}const oM={some:0,all:1};class aM extends Co{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:oM[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return sM(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(lM(t,r))&&this.startObserver()}unmount(){}}function lM({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const cM={inView:{Feature:aM},tap:{Feature:tM},focus:{Feature:eM},hover:{Feature:ZT}};function OC(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function uM(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function gh(e,t,r){const n=e.getProps();return sg(n,t,r!==void 0?r:n.custom,fM(e),uM(e))}const dM="framerAppearId",hM="data-"+ng(dM);let vM=qt,og=qt;const io=e=>e*1e3,vs=e=>e/1e3,yM={current:!1},DC=e=>Array.isArray(e)&&typeof e[0]=="number";function BC(e){return!!(!e||typeof e=="string"&&LC[e]||DC(e)||Array.isArray(e)&&e.every(BC))}const Xc=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,LC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xc([0,.65,.55,1]),circOut:Xc([.55,0,1,.45]),backIn:Xc([.31,.01,.66,-.59]),backOut:Xc([.33,1.53,.69,.99])};function FC(e){if(e)return DC(e)?Xc(e):Array.isArray(e)?e.map(FC):LC[e]}function pM(e,t,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[t]:r};l&&(c.offset=l);const f=FC(a);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function mM(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const jC=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,gM=1e-7,xM=12;function bM(e,t,r,n,i){let s,o,a=0;do o=t+(r-t)/2,s=jC(o,n,i)-e,s>0?r=o:t=o;while(Math.abs(s)>gM&&++abM(s,0,1,e,r);return s=>s===0||s===1?s:jC(i(s),t,n)}const wM=wu(.42,0,1,1),EM=wu(0,0,.58,1),zC=wu(.42,0,.58,1),CM=e=>Array.isArray(e)&&typeof e[0]!="number",UC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,VC=e=>t=>1-e(1-t),qC=e=>1-Math.sin(Math.acos(e)),ag=VC(qC),SM=UC(ag),HC=wu(.33,1.53,.69,.99),lg=VC(HC),AM=UC(lg),kM=e=>(e*=2)<1?.5*lg(e):.5*(2-Math.pow(2,-10*(e-1))),PM={linear:qt,easeIn:wM,easeInOut:zC,easeOut:EM,circIn:qC,circInOut:SM,circOut:ag,backIn:lg,backInOut:AM,backOut:HC,anticipate:kM},Cw=e=>{if(Array.isArray(e)){og(e.length===4);const[t,r,n,i]=e;return wu(t,r,n,i)}else if(typeof e=="string")return PM[e];return e},cg=(e,t)=>r=>!!(xu(r)&&kT.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),GC=(e,t,r)=>n=>{if(!xu(n))return n;const[i,s,o,a]=n.match(ph);return{[e]:parseFloat(i),[t]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},RM=e=>fo(0,255,e),H1={...ya,transform:e=>Math.round(RM(e))},Vo={test:cg("rgb","red"),parse:GC("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+H1.transform(e)+", "+H1.transform(t)+", "+H1.transform(r)+", "+uf(ff.transform(n))+")"};function _M(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Qy={test:cg("#"),parse:_M,transform:Vo.transform},Qa={test:cg("hsl","hue"),parse:GC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Fi.transform(uf(t))+", "+Fi.transform(uf(r))+", "+uf(ff.transform(n))+")"},Br={test:e=>Vo.test(e)||Qy.test(e)||Qa.test(e),parse:e=>Vo.test(e)?Vo.parse(e):Qa.test(e)?Qa.parse(e):Qy.parse(e),transform:e=>xu(e)?e:e.hasOwnProperty("red")?Vo.transform(e):Qa.transform(e)},Dt=(e,t,r)=>-r*e+r*t+e;function G1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function TM({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,s=0,o=0;if(!t)i=s=o=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;i=G1(l,a,e+1/3),s=G1(l,a,e),o=G1(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const W1=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},MM=[Qy,Vo,Qa],IM=e=>MM.find(t=>t.test(e));function Sw(e){const t=IM(e);let r=t.parse(e);return t===Qa&&(r=TM(r)),r}const WC=(e,t)=>{const r=Sw(e),n=Sw(t),i={...r};return s=>(i.red=W1(r.red,n.red,s),i.green=W1(r.green,n.green,s),i.blue=W1(r.blue,n.blue,s),i.alpha=Dt(r.alpha,n.alpha,s),Vo.transform(i))};function NM(e){var t,r;return isNaN(e)&&xu(e)&&(((t=e.match(ph))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(xC))===null||r===void 0?void 0:r.length)||0)>0}const KC={regex:ST,countKey:"Vars",token:"${v}",parse:qt},YC={regex:xC,countKey:"Colors",token:"${c}",parse:Br.parse},JC={regex:ph,countKey:"Numbers",token:"${n}",parse:ya.parse};function K1(e,{regex:t,countKey:r,token:n,parse:i}){const s=e.tokenised.match(t);s&&(e["num"+r]=s.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...s.map(i)))}function w0(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&K1(r,KC),K1(r,YC),K1(r,JC),r}function QC(e){return w0(e).values}function XC(e){const{values:t,numColors:r,numVars:n,tokenised:i}=w0(e),s=t.length;return o=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function OM(e){const t=QC(e);return XC(e)(t.map($M))}const uo={test:NM,parse:QC,createTransformer:XC,getAnimatableNone:OM},ZC=(e,t)=>r=>`${r>0?t:e}`;function eS(e,t){return typeof e=="number"?r=>Dt(e,t,r):Br.test(e)?WC(e,t):e.startsWith("var(")?ZC(e,t):rS(e,t)}const tS=(e,t)=>{const r=[...e],n=r.length,i=e.map((s,o)=>eS(s,t[o]));return s=>{for(let o=0;o{const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=eS(e[i],t[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},rS=(e,t)=>{const r=uo.createTransformer(t),n=w0(e),i=w0(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?no(tS(n.values,i.values),r):ZC(e,t)},Wf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Aw=(e,t)=>r=>Dt(e,t,r);function BM(e){return typeof e=="number"?Aw:typeof e=="string"?Br.test(e)?WC:rS:Array.isArray(e)?tS:typeof e=="object"?DM:Aw}function LM(e,t,r){const n=[],i=r||BM(e[0]),s=e.length-1;for(let o=0;ot[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=LM(t,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(fo(e[0],e[s-1],c)):l}function FM(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=Wf(0,t,n);e.push(Dt(r,1,i))}}function jM(e){const t=[0];return FM(t,e.length-1),t}function zM(e,t){return e.map(r=>r*t)}function UM(e,t){return e.map(()=>t||zC).splice(0,e.length-1)}function E0({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=CM(n)?n.map(Cw):Cw(n),s={done:!1,value:t[0]},o=zM(r&&r.length===t.length?r:jM(t),e),a=nS(o,t,{ease:Array.isArray(i)?i:UM(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}function iS(e,t){return t?e*(1e3/t):0}const VM=5;function sS(e,t,r){const n=Math.max(t-VM,0);return iS(r-e(n),t-n)}const Y1=.001,qM=.01,kw=10,HM=.05,GM=1;function WM({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,s;vM(e<=io(kw));let o=1-t;o=fo(HM,GM,o),e=fo(qM,kw,vs(e)),o<1?(i=c=>{const f=c*o,u=f*e,d=f-r,v=Xy(c,o),m=Math.exp(-u);return Y1-d/v*m},s=c=>{const u=c*o*e,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=Xy(Math.pow(c,2),o);return(-i(c)+Y1>0?-1:1)*((d-v)*m)/y}):(i=c=>{const f=Math.exp(-c*e),u=(c-r)*e+1;return-Y1+f*u},s=c=>{const f=Math.exp(-c*e),u=(r-c)*(e*e);return f*u});const a=5/e,l=YM(i,s,a);if(e=io(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:e}}}const KM=12;function YM(e,t,r){let n=r;for(let i=1;ie[r]!==void 0)}function XM(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pw(e,QM)&&Pw(e,JM)){const r=WM(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function oS({keyframes:e,restDelta:t,restSpeed:r,...n}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:f,duration:u,isResolvedFromDuration:d}=XM(n),v=f?-vs(f):0,m=l/(2*Math.sqrt(a*c)),y=s-i,w=vs(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let b;if(m<1){const S=Xy(w,m);b=A=>{const _=Math.exp(-m*w*A);return s-_*((v+m*w*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(m===1)b=S=>s-Math.exp(-w*S)*(y+(v+w*y)*S);else{const S=w*Math.sqrt(m*m-1);b=A=>{const _=Math.exp(-m*w*A),O=Math.min(S*A,300);return s-_*((v+m*w*y)*Math.sinh(O)+S*y*Math.cosh(O))/S}}return{calculatedDuration:d&&u||null,next:S=>{const A=b(S);if(d)o.done=S>=u;else{let _=v;S!==0&&(m<1?_=sS(b,S,A):_=0);const O=Math.abs(_)<=r,$=Math.abs(s-A)<=t;o.done=O&&$}return o.value=o.done?s:A,o}}}function Rw({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=e[0],d={done:!1,value:u},v=D=>a!==void 0&&Dl,m=D=>a===void 0?l:l===void 0||Math.abs(a-D)-y*Math.exp(-D/n),S=D=>x+b(D),A=D=>{const G=b(D),J=S(D);d.done=Math.abs(G)<=c,d.value=d.done?x:J};let _,O;const $=D=>{v(d.value)&&(_=D,O=oS({keyframes:[d.value,m(d.value)],velocity:sS(S,D,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return $(0),{calculatedDuration:null,next:D=>{let G=!1;return!O&&_===void 0&&(G=!0,A(D),$(D)),_!==void 0&&D>_?O.next(D-_):(!G&&A(D),d)}}}const ZM=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Ct.update(t,!0),stop:()=>bs(t),now:()=>fr.isProcessing?fr.timestamp:performance.now()}},_w=2e4;function Tw(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<_w;)t+=r,n=e.next(t);return t>=_w?1/0:t}const eI={decay:Rw,inertia:Rw,tween:E0,keyframes:E0,spring:oS};function C0({autoplay:e=!0,delay:t=0,driver:r=ZM,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,m=!1,y,w;const x=()=>{w=new Promise(k=>{y=k})};x();let b;const S=eI[i]||E0;let A;S!==E0&&typeof n[0]!="number"&&(A=nS([0,100],n,{clamp:!1}),n=[0,100]);const _=S({...d,keyframes:n});let O;a==="mirror"&&(O=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let $="idle",D=null,G=null,J=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=Tw(_));const{calculatedDuration:H}=_;let Z=1/0,I=1/0;H!==null&&(Z=H+o,I=Z*(s+1)-o);let h=0;const C=k=>{if(G===null)return;v>0&&(G=Math.min(G,k)),v<0&&(G=Math.min(k-I/v,G)),D!==null?h=D:h=Math.round(k-G)*v;const p=h-t*(v>=0?1:-1),R=v>=0?p<0:p>I;h=Math.max(p,0),$==="finished"&&D===null&&(h=I);let L=h,E=_;if(s){const K=h/Z;let ne=Math.floor(K),X=K%1;!X&&K>=1&&(X=1),X===1&&ne--,ne=Math.min(ne,s+1);const te=!!(ne%2);te&&(a==="reverse"?(X=1-X,o&&(X-=o/Z)):a==="mirror"&&(E=O));let Te=fo(0,1,X);h>I&&(Te=a==="reverse"&&te?1:0),L=Te*Z}const F=R?{done:!1,value:n[0]}:E.next(L);A&&(F.value=A(F.value));let{done:j}=F;!R&&H!==null&&(j=v>=0?h>=I:h<=0);const z=D===null&&($==="finished"||$==="running"&&j);return u&&u(F.value),z&&T(),F},P=()=>{b&&b.stop(),b=void 0},M=()=>{$="idle",P(),y(),x(),G=J=null},T=()=>{$="finished",f&&f(),P(),y()},N=()=>{if(m)return;b||(b=r(C));const k=b.now();l&&l(),D!==null?G=k-D:(!G||$==="finished")&&(G=k),$==="finished"&&x(),J=G,D=null,$="running",b.start()};e&&N();const B={then(k,p){return w.then(k,p)},get time(){return vs(h)},set time(k){k=io(k),h=k,D!==null||!b||v===0?D=k:G=b.now()-k/v},get duration(){const k=_.calculatedDuration===null?Tw(_):_.calculatedDuration;return vs(k)},get speed(){return v},set speed(k){k===v||!b||(v=k,B.time=vs(h))},get state(){return $},play:N,pause:()=>{$="paused",D=h},stop:()=>{m=!0,$!=="idle"&&($="idle",c&&c(),M())},cancel:()=>{J!==null&&C(J),M()},complete:()=>{$="finished"},sample:k=>(G=0,C(k))};return B}function tI(e){let t;return()=>(t===void 0&&(t=e()),t)}const rI=tI(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),nI=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nd=10,iI=2e4,sI=(e,t)=>t.type==="spring"||e==="backgroundColor"||!BC(t.ease);function oI(e,t,{onUpdate:r,onComplete:n,...i}){if(!(rI()&&nI.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const c=()=>{l=new Promise(b=>{a=b})};c();let{keyframes:f,duration:u=300,ease:d,times:v}=i;if(sI(t,i)){const b=C0({...i,repeat:0,delay:0});let S={done:!1,value:f[0]};const A=[];let _=0;for(;!S.done&&_m.cancel(),w=()=>{Ct.update(y),a(),c()};return m.onfinish=()=>{e.set(mM(f,i)),n&&n(),w()},{then(b,S){return l.then(b,S)},attachTimeline(b){return m.timeline=b,m.onfinish=null,qt},get time(){return vs(m.currentTime||0)},set time(b){m.currentTime=io(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return vs(u)},play:()=>{o||(m.play(),bs(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const S=C0({...i,autoplay:!1});e.setWithVelocity(S.sample(b-nd).value,S.sample(b).value,nd)}w()},complete:()=>m.finish(),cancel:w}}function aI({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:qt,pause:qt,stop:qt,then:s=>(s(),Promise.resolve()),cancel:qt,complete:qt});return t?C0({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const lI={type:"spring",stiffness:500,damping:25,restSpeed:10},cI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fI={type:"keyframes",duration:.8},uI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dI=(e,{keyframes:t})=>t.length>2?fI:va.has(e)?e.startsWith("scale")?cI(t[1]):lI:uI,Zy=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(uo.test(t)||t==="0")&&!t.startsWith("url(")),hI=new Set(["brightness","contrast","saturate","opacity"]);function vI(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ph)||[];if(!n)return e;const i=r.replace(n,"");let s=hI.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+i+")"}const yI=/([a-z-]*)\(.*?\)/g,ep={...uo,getAnimatableNone:e=>{const t=e.match(yI);return t?t.map(vI).join(" "):e}},pI={...bC,color:Br,backgroundColor:Br,outlineColor:Br,fill:Br,stroke:Br,borderColor:Br,borderTopColor:Br,borderRightColor:Br,borderBottomColor:Br,borderLeftColor:Br,filter:ep,WebkitFilter:ep},fg=e=>pI[e];function aS(e,t){let r=fg(e);return r!==ep&&(r=uo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const lS=e=>/^0[^.\s]+$/.test(e);function mI(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||lS(e)}function gI(e,t,r,n){const i=Zy(t,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:e.get();let a;const l=[];for(let c=0;ci=>{const s=cS(n,e)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-io(o);const l=gI(t,e,r,s),c=l[0],f=l[l.length-1],u=Zy(e,c),d=Zy(e,f);let v={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{t.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(xI(s)||(v={...v,...dI(e,v)}),v.duration&&(v.duration=io(v.duration)),v.repeatDelay&&(v.repeatDelay=io(v.repeatDelay)),!u||!d||yM.current||s.type===!1)return aI(v);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=oI(t,e,v);if(m)return m}return C0(v)};function S0(e){return!!(Zr(e)&&e.add)}const fS=e=>/^\-?\d*\.?\d+$/.test(e);function dg(e,t){e.indexOf(t)===-1&&e.push(t)}function hg(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class vg{constructor(){this.subscriptions=[]}add(t){return dg(this.subscriptions,t),()=>hg(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let s=0;s!isNaN(parseFloat(e));class wI{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:o}=fr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ct.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ct.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=bI(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new vg);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?iS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kl(e,t){return new wI(e,t)}const uS=e=>t=>t.test(e),EI={test:e=>e==="auto",parse:e=>e},dS=[ya,Ce,Fi,Os,RT,PT,EI],pc=e=>dS.find(uS(e)),CI=[...dS,Br,uo],SI=e=>CI.find(uS(e));function AI(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,kl(r))}function kI(e,t){const r=gh(e,t);let{transitionEnd:n={},transition:i={},...s}=r?e.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=UT(s[o]);AI(e,o,a)}}function PI(e,t,r){var n,i;const s=Object.keys(t).filter(a=>!e.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(u))),c.push(y)}return o&&Promise.all(c).then(()=>{o&&kI(e,o)}),c}function tp(e,t,r={}){const n=gh(e,t,r.custom);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(hS(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return MI(e,t,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function MI(e,t,r=0,n=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>a-c*n;return Array.from(e.variantChildren).sort(II).forEach((c,f)=>{c.notify("AnimationStart",t),o.push(tp(c,t,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function II(e,t){return e.sortNodePosition(t)}function NI(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(s=>tp(e,s,r));n=Promise.all(i)}else if(typeof t=="string")n=tp(e,t,r);else{const i=typeof t=="function"?gh(e,t,r.custom):t;n=Promise.all(hS(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))}const $I=[...Ym].reverse(),OI=Ym.length;function DI(e){return t=>Promise.all(t.map(({animation:r,options:n})=>NI(e,r,n)))}function BI(e){let t=DI(e);const r=FI();let n=!0;const i=(l,c)=>{const f=gh(e,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){t=l(e)}function o(l,c){const f=e.getProps(),u=e.getVariantContext(!0)||{},d=[],v=new Set;let m={},y=1/0;for(let x=0;xy&&_;const J=Array.isArray(A)?A:[A];let H=J.reduce(i,{});O===!1&&(H={});const{prevResolvedValues:Z={}}=S,I={...Z,...H},h=C=>{G=!0,v.delete(C),S.needsAnimating[C]=!0};for(const C in I){const P=H[C],M=Z[C];m.hasOwnProperty(C)||(P!==M?b0(P)&&b0(M)?!OC(P,M)||D?h(C):S.protectedKeys[C]=!0:P!==void 0?h(C):v.add(C):P!==void 0&&v.has(C)?h(C):S.protectedKeys[C]=!0)}S.prevProp=A,S.prevResolvedValues=H,S.isActive&&(m={...m,...H}),n&&e.blockInitialAnimation&&(G=!1),G&&!$&&d.push(...J.map(C=>({animation:C,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const S=e.getBaseTarget(b);S!==void 0&&(x[b]=S)}),d.push({animation:x})}let w=!!d.length;return n&&f.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(d):Promise.resolve()}function a(l,c,f){var u;if(r[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(v=>{var m;return(m=v.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function LI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!OC(t,e):!1}function To(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function FI(){return{animate:To(!0),whileInView:To(),whileHover:To(),whileTap:To(),whileDrag:To(),whileFocus:To(),exit:To()}}class jI extends Co{constructor(t){super(t),t.animationState||(t.animationState=BI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),vh(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let zI=0;class UI extends Co{constructor(){super(...arguments),this.id=zI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&s.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VI={animation:{Feature:jI},exit:{Feature:UI}},Mw=(e,t)=>Math.abs(e-t);function qI(e,t){const r=Mw(e.x,t.x),n=Mw(e.y,t.y);return Math.sqrt(r**2+n**2)}class vS{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Q1(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,u=qI(c.offset,{x:0,y:0})>=3;if(!f&&!u)return;const{point:d}=c,{timestamp:v}=fr;this.history.push({...d,timestamp:v});const{onStart:m,onMove:y}=this.handlers;f||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=J1(f,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:u,onSessionEnd:d}=this.handlers,v=Q1(c.type==="pointercancel"?this.lastMoveEventInfo:J1(f,this.transformPagePoint),this.history);this.startEvent&&u&&u(c,v),d&&d(c,v)},!TC(t))return;this.handlers=r,this.transformPagePoint=n;const i=mh(t),s=J1(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=fr;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=r;l&&l(t,Q1(s,this.history)),this.removeListeners=no(hs(window,"pointermove",this.handlePointerMove),hs(window,"pointerup",this.handlePointerUp),hs(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),bs(this.updatePoint)}}function J1(e,t){return t?{point:t(e.point)}:e}function Iw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Q1({point:e},t){return{point:e,delta:Iw(e,yS(t)),offset:Iw(e,HI(t)),velocity:GI(t,.1)}}function HI(e){return e[0]}function yS(e){return e[e.length-1]}function GI(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=yS(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>io(t)));)r--;if(!n)return{x:0,y:0};const s=vs(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function dn(e){return e.max-e.min}function rp(e,t=0,r=.01){return Math.abs(e-t)<=r}function Nw(e,t,r,n=.5){e.origin=n,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=dn(r)/dn(t),(rp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Dt(r.min,r.max,e.origin)-e.originPoint,(rp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function df(e,t,r,n){Nw(e.x,t.x,r.x,n?n.originX:void 0),Nw(e.y,t.y,r.y,n?n.originY:void 0)}function $w(e,t,r){e.min=r.min+t.min,e.max=e.min+dn(t)}function WI(e,t,r){$w(e.x,t.x,r.x),$w(e.y,t.y,r.y)}function Ow(e,t,r){e.min=t.min-r.min,e.max=e.min+dn(t)}function hf(e,t,r){Ow(e.x,t.x,r.x),Ow(e.y,t.y,r.y)}function KI(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Dt(r,e,n.max):Math.min(e,r)),e}function Dw(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function YI(e,{top:t,left:r,bottom:n,right:i}){return{x:Dw(e.x,r,i),y:Dw(e.y,t,n)}}function Bw(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Wf(t.min,t.max-n,e.min):n>i&&(r=Wf(e.min,e.max-i,t.min)),fo(0,1,r)}function XI(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const np=.35;function ZI(e=np){return e===!1?e=0:e===!0&&(e=np),{x:Lw(e,"left","right"),y:Lw(e,"top","bottom")}}function Lw(e,t,r){return{min:Fw(e,t),max:Fw(e,r)}}function Fw(e,t){return typeof e=="number"?e:e[t]||0}const jw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xa=()=>({x:jw(),y:jw()}),zw=()=>({min:0,max:0}),Xt=()=>({x:zw(),y:zw()});function Ci(e){return[e("x"),e("y")]}function pS({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function eN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tN(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function X1(e){return e===void 0||e===1}function ip({scale:e,scaleX:t,scaleY:r}){return!X1(e)||!X1(t)||!X1(r)}function Do(e){return ip(e)||mS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function mS(e){return Uw(e.x)||Uw(e.y)}function Uw(e){return e&&e!=="0%"}function A0(e,t,r){const n=e-r,i=t*n;return r+i}function Vw(e,t,r,n,i){return i!==void 0&&(e=A0(e,i,n)),A0(e,r,n)+t}function sp(e,t=0,r=1,n,i){e.min=Vw(e.min,t,r,n,i),e.max=Vw(e.max,t,r,n,i)}function gS(e,{x:t,y:r}){sp(e.x,t.translate,t.scale,t.originPoint),sp(e.y,r.translate,r.scale,r.originPoint)}function rN(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function zs(e,t){e.min=e.min+t,e.max=e.max+t}function Hw(e,t,[r,n,i]){const s=t[i]!==void 0?t[i]:.5,o=Dt(e.min,e.max,s);sp(e,t[r],t[n],o,t.scale)}const nN=["x","scaleX","originX"],iN=["y","scaleY","originY"];function Za(e,t){Hw(e.x,t,nN),Hw(e.y,t,iN)}function xS(e,t){return pS(tN(e.getBoundingClientRect(),t))}function sN(e,t,r){const n=xS(e,r),{scroll:i}=t;return i&&(zs(n.x,i.offset.x),zs(n.y,i.offset.y)),n}const oN=new WeakMap;class aN{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Xt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(mh(l,"page").point)},s=(l,c)=>{const{drag:f,dragPropagation:u,onDragStart:d}=this.getProps();if(f&&!u&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=IC(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ci(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Fi.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[m];x&&(y=dn(x)*(parseFloat(y)/100))}}this.originPoint[m]=y}),d&&Ct.update(()=>d(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:u,onDirectionLock:d,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:m}=c;if(u&&this.currentDirection===null){this.currentDirection=lN(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),v&&v(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new vS(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Ct.update(()=>s(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!id(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=KI(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&Ja(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=YI(n.layoutBox,t):this.constraints=!1,this.elastic=ZI(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ci(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=XI(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Ja(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=sN(n,i.root,this.visualElement.getTransformPagePoint());let o=JI(i.layout.layoutBox,s);if(r){const a=r(eN(o));this.hasMutatedConstraints=!!a,a&&(o=pS(a))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Ci(f=>{if(!id(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,m={type:"inertia",velocity:n?t[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(ug(t,n,0,r))}stopAnimation(){Ci(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ci(r=>{const{drag:n}=this.getProps();if(!id(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[r];s.set(t[r]-Dt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ja(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ci(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=QI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ci(o=>{if(!id(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Dt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;oN.set(this.visualElement,this);const t=this.visualElement.current,r=hs(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Ja(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=us(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ci(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=np,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function id(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function lN(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class cN extends Co{constructor(t){super(t),this.removeGroupControls=qt,this.removeListeners=qt,this.controls=new aN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gw=e=>(t,r)=>{e&&Ct.update(()=>e(t,r))};class fN extends Co{constructor(){super(...arguments),this.removePointerDownListener=qt}onPointerDown(t){this.session=new vS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gw(t),onStart:Gw(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&Ct.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=hs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function uN(){const e=g.useContext(dh);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=g.useId();return g.useEffect(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}const Dd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ww(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ce.test(e))e=parseFloat(e);else return e;const r=Ww(e,t.target.x),n=Ww(e,t.target.y);return`${r}% ${n}%`}},dN={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=uo.parse(e);if(i.length>5)return n;const s=uo.createTransformer(e),o=typeof i[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=Dt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class hN extends ur.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;bT(vN),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Dd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Ct.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bS(e){const[t,r]=uN(),n=g.useContext(Qm);return ur.createElement(hN,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(yC),isPresent:t,safeToRemove:r})}const vN={borderRadius:{...mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mc,borderTopRightRadius:mc,borderBottomLeftRadius:mc,borderBottomRightRadius:mc,boxShadow:dN},wS=["TopLeft","TopRight","BottomLeft","BottomRight"],yN=wS.length,Kw=e=>typeof e=="string"?parseFloat(e):e,Yw=e=>typeof e=="number"||Ce.test(e);function pN(e,t,r,n,i,s){i?(e.opacity=Dt(0,r.opacity!==void 0?r.opacity:1,mN(n)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,gN(n))):s&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;ont?1:r(Wf(e,t,n))}function Qw(e,t){e.min=t.min,e.max=t.max}function gn(e,t){Qw(e.x,t.x),Qw(e.y,t.y)}function Xw(e,t,r,n,i){return e-=t,e=A0(e,1/r,n),i!==void 0&&(e=A0(e,1/i,n)),e}function xN(e,t=0,r=1,n=.5,i,s=e,o=e){if(Fi.test(t)&&(t=parseFloat(t),t=Dt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Dt(s.min,s.max,n);e===s&&(a-=t),e.min=Xw(e.min,t,r,a,i),e.max=Xw(e.max,t,r,a,i)}function Zw(e,t,[r,n,i],s,o){xN(e,t[r],t[n],t[i],t.scale,s,o)}const bN=["x","scaleX","originX"],wN=["y","scaleY","originY"];function e3(e,t,r,n){Zw(e.x,t,bN,r?r.x:void 0,n?n.x:void 0),Zw(e.y,t,wN,r?r.y:void 0,n?n.y:void 0)}function t3(e){return e.translate===0&&e.scale===1}function CS(e){return t3(e.x)&&t3(e.y)}function EN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function SS(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function r3(e){return dn(e.x)/dn(e.y)}class CN{constructor(){this.members=[]}add(t){dg(this.members,t),t.scheduleRender()}remove(t){if(hg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function n3(e,t,r){let n="";const i=e.x.translate/t.x,s=e.y.translate/t.y;if((i||s)&&(n=`translate3d(${i}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:f}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),f&&(n+=`rotateY(${f}deg) `)}const o=e.x.scale*t.x,a=e.y.scale*t.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const SN=(e,t)=>e.depth-t.depth;class AN{constructor(){this.children=[],this.isDirty=!1}add(t){dg(this.children,t),this.isDirty=!0}remove(t){hg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SN),this.isDirty=!1,this.children.forEach(t)}}function kN(e,t){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=t&&(bs(n),e(s-t))};return Ct.read(n,!0),()=>bs(n)}function PN(e){window.MotionDebug&&window.MotionDebug.record(e)}function RN(e){return e instanceof SVGElement&&e.tagName!=="svg"}function _N(e,t,r){const n=Zr(e)?e:kl(e);return n.start(ug("",n,t,r)),n.animation}const i3=["","X","Y","Z"],s3=1e3;let TN=0;const Bo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function AS({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=TN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Bo.totalNodes=Bo.resolvedTargetDeltas=Bo.recalculatedProjection=0,this.nodes.forEach(NN),this.nodes.forEach(LN),this.nodes.forEach(FN),this.nodes.forEach($N),PN(Bo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=kN(d,250),Dd.hasAnimatedSinceResize&&(Dd.hasAnimatedSinceResize=!1,this.nodes.forEach(a3))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||qN,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!SS(this.targetLayout,m)||v,S=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,S);const A={...cS(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||a3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jN),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(ON),this.sharedNodes.forEach(zN)}scheduleUpdateProjection(){Ct.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const _=A/1e3;l3(u.x,o.x,_),l3(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hf(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UN(this.relativeTarget,this.relativeTargetOrigin,d,_),S&&EN(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Xt()),gn(S,this.relativeTarget)),y&&(this.animationValues=f,pN(f,c,this.latestValues,_,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{Dd.hasAnimatedSinceResize=!0,this.currentAnimation=_N(0,s3,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(s3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&kS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Xt();const u=dn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=dn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}gn(a,l),Za(a,f),df(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new CN),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(o3),this.root.sharedNodes.clear()}}}function MN(e){e.updateLayout()}function IN(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:s}=e.options,o=r.source!==e.layout.source;s==="size"?Ci(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=dn(d);d.min=n[u].min,d.max=d.min+v}):kS(s,r.layoutBox,n)&&Ci(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=dn(n[u]);d.max=d.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+v)});const a=Xa();df(a,n,r.layoutBox);const l=Xa();o?df(l,e.applyTransform(i,!0),r.measuredBox):df(l,n,r.layoutBox);const c=!CS(a);let f=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const m=Xt();hf(m,r.layoutBox,d.layoutBox);const y=Xt();hf(y,n,v.layoutBox),SS(m,y)||(f=!0),u.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function NN(e){Bo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $N(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ON(e){e.clearSnapshot()}function o3(e){e.clearMeasurements()}function DN(e){e.isLayoutDirty=!1}function BN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function a3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function LN(e){e.resolveTargetDelta()}function FN(e){e.calcProjection()}function jN(e){e.resetRotation()}function zN(e){e.removeLeadSnapshot()}function l3(e,t,r){e.translate=Dt(t.translate,0,r),e.scale=Dt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function c3(e,t,r,n){e.min=Dt(t.min,r.min,n),e.max=Dt(t.max,r.max,n)}function UN(e,t,r,n){c3(e.x,t.x,r.x,n),c3(e.y,t.y,r.y,n)}function VN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qN={duration:.45,ease:[.4,0,.1,1]},f3=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),u3=f3("applewebkit/")&&!f3("chrome/")?Math.round:qt;function d3(e){e.min=u3(e.min),e.max=u3(e.max)}function HN(e){d3(e.x),d3(e.y)}function kS(e,t,r){return e==="position"||e==="preserve-aspect"&&!rp(r3(t),r3(r),.2)}const GN=AS({attachResizeListener:(e,t)=>us(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Z1={current:void 0},PS=AS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Z1.current){const e=new GN({});e.mount(window),e.setOptions({layoutScroll:!0}),Z1.current=e}return Z1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),WN={pan:{Feature:fN},drag:{Feature:cN,ProjectionNode:PS,MeasureLayout:bS}},KN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function YN(e){const t=KN.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function op(e,t,r=1){const[n,i]=YN(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const o=s.trim();return fS(o)?parseFloat(o):o}else return Yy(i)?op(i,t,r+1):i}function JN(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(i=>{const s=i.get();if(!Yy(s))return;const o=op(s,n);o&&i.set(o)});for(const i in t){const s=t[i];if(!Yy(s))continue;const o=op(s,n);o&&(t[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:t,transitionEnd:r}}const QN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),RS=e=>QN.has(e),XN=e=>Object.keys(e).some(RS),h3=e=>e===ya||e===Ce,v3=(e,t)=>parseFloat(e.split(", ")[t]),y3=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return v3(i[1],t);{const s=n.match(/^matrix\((.+)\)$/);return s?v3(s[1],e):0}},ZN=new Set(["x","y","z"]),e$=gu.filter(e=>!ZN.has(e));function t$(e){const t=[];return e$.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Pl={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:y3(4,13),y:y3(5,14)};Pl.translateX=Pl.x;Pl.translateY=Pl.y;const r$=(e,t,r)=>{const n=t.measureViewportBox(),i=t.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{a[c]=Pl[c](n,s)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const f=t.getValue(c);f&&f.jump(a[c]),e[c]=Pl[c](l,s)}),e},n$=(e,t,r={},n={})=>{t={...t},n={...n};const i=Object.keys(t).filter(RS);let s=[],o=!1;const a=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let f=r[l],u=pc(f);const d=t[l];let v;if(b0(d)){const m=d.length,y=d[0]===null?1:0;f=d[y],u=pc(f);for(let w=y;w=0?window.pageYOffset:null,c=r$(t,e,a);return s.length&&s.forEach(([f,u])=>{e.getValue(f).set(u)}),e.render(),hh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function i$(e,t,r,n){return XN(t)?n$(e,t,r,n):{target:t,transitionEnd:n}}const s$=(e,t,r,n)=>{const i=JN(e,t,n);return t=i.target,n=i.transitionEnd,i$(e,t,r,n)},ap={current:null},_S={current:!1};function o$(){if(_S.current=!0,!!hh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ap.current=e.matches;e.addListener(t),t()}else ap.current=!1}function a$(e,t,r){const{willChange:n}=t;for(const i in t){const s=t[i],o=r[i];if(Zr(s))e.addValue(i,s),S0(n)&&n.add(i);else if(Zr(o))e.addValue(i,kl(s,{owner:e})),S0(n)&&n.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,kl(a!==void 0?a:s,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const p3=new WeakMap,TS=Object.keys(Gf),l$=TS.length,m3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],c$=Jm.length;class f${constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ct.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=yh(r),this.isVariantNode=vC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&Zr(d)&&(d.set(a[u],!1),S0(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,p3.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),_S.current||o$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ap.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){p3.delete(this.current),this.projection&&this.projection.unmount(),bs(this.notifyUpdate),bs(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=va.has(t),i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ct.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=kl(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=sg(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Zr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new vg),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class MS extends f${sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:i},s){let o=_I(n,t||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){PI(this,n,o);const a=s$(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:t,transitionEnd:r,...n}}}function u$(e){return window.getComputedStyle(e)}class d$ extends MS{readValueFromInstance(t,r){if(va.has(r)){const n=fg(r);return n&&n.default||0}else{const n=u$(t),i=(gC(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:r}){return xS(t,r)}build(t,r,n,i){Zm(t,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,r){return ig(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Zr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,i){SC(t,r,n,i)}}class h$ extends MS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(va.has(r)){const n=fg(r);return n&&n.default||0}return r=AC.has(r)?r:ng(r),t.getAttribute(r)}measureInstanceViewportBox(){return Xt()}scrapeMotionValuesFromProps(t,r){return PC(t,r)}build(t,r,n,i){tg(t,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,r,n,i){kC(t,r,n,i)}mount(t){this.isSVGTag=rg(t.tagName),super.mount(t)}}const v$=(e,t)=>Xm(e)?new h$(t,{enableHardwareAcceleration:!1}):new d$(t,{enableHardwareAcceleration:!0}),y$={layout:{ProjectionNode:PS,MeasureLayout:bS}},p$={...VI,...cM,...WN,...y$},ul=gT((e,t)=>JT(e,t,p$,v$));function IS(){const e=g.useRef(!1);return Km(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function m$(){const e=IS(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>Ct.postRender(n),[n]),t]}class g$ extends g.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function x$({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(t||!n.current||!s||!o)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${s}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(c)}},[t]),g.createElement(g$,{isPresent:t,childRef:n,sizeRef:i},g.cloneElement(e,{ref:n}))}const ev=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=RC(b$),l=g.useId(),c=g.useMemo(()=>({id:l,initial:t,isPresent:r,custom:i,onExitComplete:f=>{a.set(f,!0);for(const u of a.values())if(!u)return;n&&n()},register:f=>(a.set(f,!1),()=>a.delete(f))}),s?void 0:[r]);return g.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),g.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(e=g.createElement(x$,{isPresent:r},e)),g.createElement(dh.Provider,{value:c},e)};function b$(){return new Map}function w$(e){return g.useEffect(()=>()=>e(),[])}const Na=e=>e.key||"";function E$(e,t){e.forEach(r=>{const n=Na(r);t.set(n,r)})}function C$(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const NS=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=g.useContext(Qm).forceRender||m$()[0],l=IS(),c=C$(e);let f=c;const u=g.useRef(new Map).current,d=g.useRef(f),v=g.useRef(new Map).current,m=g.useRef(!0);if(Km(()=>{m.current=!1,E$(c,v),d.current=f}),w$(()=>{m.current=!0,v.clear(),u.clear()}),m.current)return g.createElement(g.Fragment,null,f.map(b=>g.createElement(ev,{key:Na(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Na),w=c.map(Na),x=y.length;for(let b=0;b{if(w.indexOf(S)!==-1)return;const A=v.get(S);if(!A)return;const _=y.indexOf(S);let O=b;if(!O){const $=()=>{v.delete(S),u.delete(S);const D=d.current.findIndex(G=>G.key===S);if(d.current.splice(D,1),!u.size){if(d.current=c,l.current===!1)return;a(),n&&n()}};O=g.createElement(ev,{key:Na(A),isPresent:!1,onExitComplete:$,custom:t,presenceAffectsLayout:s,mode:o},A),u.set(S,O)}f.splice(_,0,O)}),f=f.map(b=>{const S=b.key;return u.has(S)?b:g.createElement(ev,{key:Na(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),g.createElement(g.Fragment,null,u.size?f:f.map(b=>g.cloneElement(b)))},S$={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};function A$(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k$(e){var t=A$(e,"string");return typeof t=="symbol"?t:String(t)}function P$(e,t,r){return t=k$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tv(e){for(var t=1;tfunction(){for(var t=arguments.length,r=new Array(t),n=0;nl.styles)),s=Object.keys(i),o=s.filter(l=>"mappings"in i[l]),a=l=>{var c=[],f={},u=tv({},l),d=!1;for(var v of o){var m=l[v];if(m!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=m,u[w]==null&&delete u[w]}}var x=d?tv(tv({},f),u):l,b=function(){var O=x[S],$=i[S];try{if($.mappings)return"continue";if(typeof O=="string"||typeof O=="number")c.push($.values[O].defaultClass);else if(Array.isArray(O))for(var D=0;De,T$=function(){return R$(_$)(...arguments)},$S=T$({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},userSelect:{values:{none:{defaultClass:"fyvr11n2"},text:{defaultClass:"fyvr11n3"},all:{defaultClass:"fyvr11n4"},auto:{defaultClass:"fyvr11n5"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n6"},nowrap:{defaultClass:"fyvr11n7"},initial:{defaultClass:"fyvr11n8"},inherit:{defaultClass:"fyvr11n9"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11na"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nb"},"break-word":{defaultClass:"fyvr11nc"},initial:{defaultClass:"fyvr11nd"},inherit:{defaultClass:"fyvr11ne"}}},zIndex:{values:{0:{defaultClass:"fyvr11nf"},1:{defaultClass:"fyvr11ng"},10:{defaultClass:"fyvr11nh"},20:{defaultClass:"fyvr11ni"},30:{defaultClass:"fyvr11nj"},40:{defaultClass:"fyvr11nk"},50:{defaultClass:"fyvr11nl"},"-1":{defaultClass:"fyvr11nm"},auto:{defaultClass:"fyvr11nn"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11no"},"16/9":{defaultClass:"fyvr11np"},"4/3":{defaultClass:"fyvr11nq"},"3/1":{defaultClass:"fyvr11nr"},auto:{defaultClass:"fyvr11ns"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nt",active:"fyvr11nu",disabled:"fyvr11nv",focus:"fyvr11nw",hover:"fyvr11nx",checked:"fyvr11ny"},defaultClass:"fyvr11nt"},white:{conditions:{base:"fyvr11nz",active:"fyvr11o0",disabled:"fyvr11o1",focus:"fyvr11o2",hover:"fyvr11o3",checked:"fyvr11o4"},defaultClass:"fyvr11nz"},inherit:{conditions:{base:"fyvr11o5",active:"fyvr11o6",disabled:"fyvr11o7",focus:"fyvr11o8",hover:"fyvr11o9",checked:"fyvr11oa"},defaultClass:"fyvr11o5"},transparent:{conditions:{base:"fyvr11ob",active:"fyvr11oc",disabled:"fyvr11od",focus:"fyvr11oe",hover:"fyvr11of",checked:"fyvr11og"},defaultClass:"fyvr11ob"},positive:{conditions:{base:"fyvr11oh",active:"fyvr11oi",disabled:"fyvr11oj",focus:"fyvr11ok",hover:"fyvr11ol",checked:"fyvr11om"},defaultClass:"fyvr11oh"},negative:{conditions:{base:"fyvr11on",active:"fyvr11oo",disabled:"fyvr11op",focus:"fyvr11oq",hover:"fyvr11or",checked:"fyvr11os"},defaultClass:"fyvr11on"},info:{conditions:{base:"fyvr11ot",active:"fyvr11ou",disabled:"fyvr11ov",focus:"fyvr11ow",hover:"fyvr11ox",checked:"fyvr11oy"},defaultClass:"fyvr11ot"},warning:{conditions:{base:"fyvr11oz",active:"fyvr11p0",disabled:"fyvr11p1",focus:"fyvr11p2",hover:"fyvr11p3",checked:"fyvr11p4"},defaultClass:"fyvr11oz"},gradientBackdrop:{conditions:{base:"fyvr11p5",active:"fyvr11p6",disabled:"fyvr11p7",focus:"fyvr11p8",hover:"fyvr11p9",checked:"fyvr11pa"},defaultClass:"fyvr11p5"},gradientPrimary:{conditions:{base:"fyvr11pb",active:"fyvr11pc",disabled:"fyvr11pd",focus:"fyvr11pe",hover:"fyvr11pf",checked:"fyvr11pg"},defaultClass:"fyvr11pb"},gradientSecondary:{conditions:{base:"fyvr11ph",active:"fyvr11pi",disabled:"fyvr11pj",focus:"fyvr11pk",hover:"fyvr11pl",checked:"fyvr11pm"},defaultClass:"fyvr11ph"},backgroundPrimary:{conditions:{base:"fyvr11pn",active:"fyvr11po",disabled:"fyvr11pp",focus:"fyvr11pq",hover:"fyvr11pr",checked:"fyvr11ps"},defaultClass:"fyvr11pn"},backgroundSecondary:{conditions:{base:"fyvr11pt",active:"fyvr11pu",disabled:"fyvr11pv",focus:"fyvr11pw",hover:"fyvr11px",checked:"fyvr11py"},defaultClass:"fyvr11pt"},backgroundContrast:{conditions:{base:"fyvr11pz",active:"fyvr11q0",disabled:"fyvr11q1",focus:"fyvr11q2",hover:"fyvr11q3",checked:"fyvr11q4"},defaultClass:"fyvr11pz"},backgroundMuted:{conditions:{base:"fyvr11q5",active:"fyvr11q6",disabled:"fyvr11q7",focus:"fyvr11q8",hover:"fyvr11q9",checked:"fyvr11qa"},defaultClass:"fyvr11q5"},backgroundControl:{conditions:{base:"fyvr11qb",active:"fyvr11qc",disabled:"fyvr11qd",focus:"fyvr11qe",hover:"fyvr11qf",checked:"fyvr11qg"},defaultClass:"fyvr11qb"},backgroundInverse:{conditions:{base:"fyvr11qh",active:"fyvr11qi",disabled:"fyvr11qj",focus:"fyvr11qk",hover:"fyvr11ql",checked:"fyvr11qm"},defaultClass:"fyvr11qh"},backgroundBackdrop:{conditions:{base:"fyvr11qn",active:"fyvr11qo",disabled:"fyvr11qp",focus:"fyvr11qq",hover:"fyvr11qr",checked:"fyvr11qs"},defaultClass:"fyvr11qn"},backgroundOverlay:{conditions:{base:"fyvr11qt",active:"fyvr11qu",disabled:"fyvr11qv",focus:"fyvr11qw",hover:"fyvr11qx",checked:"fyvr11qy"},defaultClass:"fyvr11qt"},borderNormal:{conditions:{base:"fyvr11qz",active:"fyvr11r0",disabled:"fyvr11r1",focus:"fyvr11r2",hover:"fyvr11r3",checked:"fyvr11r4"},defaultClass:"fyvr11qz"},borderFocus:{conditions:{base:"fyvr11r5",active:"fyvr11r6",disabled:"fyvr11r7",focus:"fyvr11r8",hover:"fyvr11r9",checked:"fyvr11ra"},defaultClass:"fyvr11r5"},buttonGlass:{conditions:{base:"fyvr11rb",active:"fyvr11rc",disabled:"fyvr11rd",focus:"fyvr11re",hover:"fyvr11rf",checked:"fyvr11rg"},defaultClass:"fyvr11rb"},buttonEmphasis:{conditions:{base:"fyvr11rh",active:"fyvr11ri",disabled:"fyvr11rj",focus:"fyvr11rk",hover:"fyvr11rl",checked:"fyvr11rm"},defaultClass:"fyvr11rh"},buttonInverse:{conditions:{base:"fyvr11rn",active:"fyvr11ro",disabled:"fyvr11rp",focus:"fyvr11rq",hover:"fyvr11rr",checked:"fyvr11rs"},defaultClass:"fyvr11rn"},text50:{conditions:{base:"fyvr11rt",active:"fyvr11ru",disabled:"fyvr11rv",focus:"fyvr11rw",hover:"fyvr11rx",checked:"fyvr11ry"},defaultClass:"fyvr11rt"},text80:{conditions:{base:"fyvr11rz",active:"fyvr11s0",disabled:"fyvr11s1",focus:"fyvr11s2",hover:"fyvr11s3",checked:"fyvr11s4"},defaultClass:"fyvr11rz"},text100:{conditions:{base:"fyvr11s5",active:"fyvr11s6",disabled:"fyvr11s7",focus:"fyvr11s8",hover:"fyvr11s9",checked:"fyvr11sa"},defaultClass:"fyvr11s5"},textInverse100:{conditions:{base:"fyvr11sb",active:"fyvr11sc",disabled:"fyvr11sd",focus:"fyvr11se",hover:"fyvr11sf",checked:"fyvr11sg"},defaultClass:"fyvr11sb"},arbitrumDark:{conditions:{base:"fyvr11sh",active:"fyvr11si",disabled:"fyvr11sj",focus:"fyvr11sk",hover:"fyvr11sl",checked:"fyvr11sm"},defaultClass:"fyvr11sh"},arbitrumLight:{conditions:{base:"fyvr11sn",active:"fyvr11so",disabled:"fyvr11sp",focus:"fyvr11sq",hover:"fyvr11sr",checked:"fyvr11ss"},defaultClass:"fyvr11sn"},avalanceDark:{conditions:{base:"fyvr11st",active:"fyvr11su",disabled:"fyvr11sv",focus:"fyvr11sw",hover:"fyvr11sx",checked:"fyvr11sy"},defaultClass:"fyvr11st"},avalanceLight:{conditions:{base:"fyvr11sz",active:"fyvr11t0",disabled:"fyvr11t1",focus:"fyvr11t2",hover:"fyvr11t3",checked:"fyvr11t4"},defaultClass:"fyvr11sz"},bscDark:{conditions:{base:"fyvr11t5",active:"fyvr11t6",disabled:"fyvr11t7",focus:"fyvr11t8",hover:"fyvr11t9",checked:"fyvr11ta"},defaultClass:"fyvr11t5"},bscLight:{conditions:{base:"fyvr11tb",active:"fyvr11tc",disabled:"fyvr11td",focus:"fyvr11te",hover:"fyvr11tf",checked:"fyvr11tg"},defaultClass:"fyvr11tb"},ethereumDark:{conditions:{base:"fyvr11th",active:"fyvr11ti",disabled:"fyvr11tj",focus:"fyvr11tk",hover:"fyvr11tl",checked:"fyvr11tm"},defaultClass:"fyvr11th"},ethereumLight:{conditions:{base:"fyvr11tn",active:"fyvr11to",disabled:"fyvr11tp",focus:"fyvr11tq",hover:"fyvr11tr",checked:"fyvr11ts"},defaultClass:"fyvr11tn"},gnosisDark:{conditions:{base:"fyvr11tt",active:"fyvr11tu",disabled:"fyvr11tv",focus:"fyvr11tw",hover:"fyvr11tx",checked:"fyvr11ty"},defaultClass:"fyvr11tt"},gnosisLight:{conditions:{base:"fyvr11tz",active:"fyvr11u0",disabled:"fyvr11u1",focus:"fyvr11u2",hover:"fyvr11u3",checked:"fyvr11u4"},defaultClass:"fyvr11tz"},polygonDark:{conditions:{base:"fyvr11u5",active:"fyvr11u6",disabled:"fyvr11u7",focus:"fyvr11u8",hover:"fyvr11u9",checked:"fyvr11ua"},defaultClass:"fyvr11u5"},polygonLight:{conditions:{base:"fyvr11ub",active:"fyvr11uc",disabled:"fyvr11ud",focus:"fyvr11ue",hover:"fyvr11uf",checked:"fyvr11ug"},defaultClass:"fyvr11ub"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11uh",active:"fyvr11ui",disabled:"fyvr11uj",focus:"fyvr11uk",hover:"fyvr11ul",checked:"fyvr11um"},defaultClass:"fyvr11uh"},white:{conditions:{base:"fyvr11un",active:"fyvr11uo",disabled:"fyvr11up",focus:"fyvr11uq",hover:"fyvr11ur",checked:"fyvr11us"},defaultClass:"fyvr11un"},inherit:{conditions:{base:"fyvr11ut",active:"fyvr11uu",disabled:"fyvr11uv",focus:"fyvr11uw",hover:"fyvr11ux",checked:"fyvr11uy"},defaultClass:"fyvr11ut"},transparent:{conditions:{base:"fyvr11uz",active:"fyvr11v0",disabled:"fyvr11v1",focus:"fyvr11v2",hover:"fyvr11v3",checked:"fyvr11v4"},defaultClass:"fyvr11uz"},positive:{conditions:{base:"fyvr11v5",active:"fyvr11v6",disabled:"fyvr11v7",focus:"fyvr11v8",hover:"fyvr11v9",checked:"fyvr11va"},defaultClass:"fyvr11v5"},negative:{conditions:{base:"fyvr11vb",active:"fyvr11vc",disabled:"fyvr11vd",focus:"fyvr11ve",hover:"fyvr11vf",checked:"fyvr11vg"},defaultClass:"fyvr11vb"},info:{conditions:{base:"fyvr11vh",active:"fyvr11vi",disabled:"fyvr11vj",focus:"fyvr11vk",hover:"fyvr11vl",checked:"fyvr11vm"},defaultClass:"fyvr11vh"},warning:{conditions:{base:"fyvr11vn",active:"fyvr11vo",disabled:"fyvr11vp",focus:"fyvr11vq",hover:"fyvr11vr",checked:"fyvr11vs"},defaultClass:"fyvr11vn"},gradientBackdrop:{conditions:{base:"fyvr11vt",active:"fyvr11vu",disabled:"fyvr11vv",focus:"fyvr11vw",hover:"fyvr11vx",checked:"fyvr11vy"},defaultClass:"fyvr11vt"},gradientPrimary:{conditions:{base:"fyvr11vz",active:"fyvr11w0",disabled:"fyvr11w1",focus:"fyvr11w2",hover:"fyvr11w3",checked:"fyvr11w4"},defaultClass:"fyvr11vz"},gradientSecondary:{conditions:{base:"fyvr11w5",active:"fyvr11w6",disabled:"fyvr11w7",focus:"fyvr11w8",hover:"fyvr11w9",checked:"fyvr11wa"},defaultClass:"fyvr11w5"},backgroundPrimary:{conditions:{base:"fyvr11wb",active:"fyvr11wc",disabled:"fyvr11wd",focus:"fyvr11we",hover:"fyvr11wf",checked:"fyvr11wg"},defaultClass:"fyvr11wb"},backgroundSecondary:{conditions:{base:"fyvr11wh",active:"fyvr11wi",disabled:"fyvr11wj",focus:"fyvr11wk",hover:"fyvr11wl",checked:"fyvr11wm"},defaultClass:"fyvr11wh"},backgroundContrast:{conditions:{base:"fyvr11wn",active:"fyvr11wo",disabled:"fyvr11wp",focus:"fyvr11wq",hover:"fyvr11wr",checked:"fyvr11ws"},defaultClass:"fyvr11wn"},backgroundMuted:{conditions:{base:"fyvr11wt",active:"fyvr11wu",disabled:"fyvr11wv",focus:"fyvr11ww",hover:"fyvr11wx",checked:"fyvr11wy"},defaultClass:"fyvr11wt"},backgroundControl:{conditions:{base:"fyvr11wz",active:"fyvr11x0",disabled:"fyvr11x1",focus:"fyvr11x2",hover:"fyvr11x3",checked:"fyvr11x4"},defaultClass:"fyvr11wz"},backgroundInverse:{conditions:{base:"fyvr11x5",active:"fyvr11x6",disabled:"fyvr11x7",focus:"fyvr11x8",hover:"fyvr11x9",checked:"fyvr11xa"},defaultClass:"fyvr11x5"},backgroundBackdrop:{conditions:{base:"fyvr11xb",active:"fyvr11xc",disabled:"fyvr11xd",focus:"fyvr11xe",hover:"fyvr11xf",checked:"fyvr11xg"},defaultClass:"fyvr11xb"},backgroundOverlay:{conditions:{base:"fyvr11xh",active:"fyvr11xi",disabled:"fyvr11xj",focus:"fyvr11xk",hover:"fyvr11xl",checked:"fyvr11xm"},defaultClass:"fyvr11xh"},borderNormal:{conditions:{base:"fyvr11xn",active:"fyvr11xo",disabled:"fyvr11xp",focus:"fyvr11xq",hover:"fyvr11xr",checked:"fyvr11xs"},defaultClass:"fyvr11xn"},borderFocus:{conditions:{base:"fyvr11xt",active:"fyvr11xu",disabled:"fyvr11xv",focus:"fyvr11xw",hover:"fyvr11xx",checked:"fyvr11xy"},defaultClass:"fyvr11xt"},buttonGlass:{conditions:{base:"fyvr11xz",active:"fyvr11y0",disabled:"fyvr11y1",focus:"fyvr11y2",hover:"fyvr11y3",checked:"fyvr11y4"},defaultClass:"fyvr11xz"},buttonEmphasis:{conditions:{base:"fyvr11y5",active:"fyvr11y6",disabled:"fyvr11y7",focus:"fyvr11y8",hover:"fyvr11y9",checked:"fyvr11ya"},defaultClass:"fyvr11y5"},buttonInverse:{conditions:{base:"fyvr11yb",active:"fyvr11yc",disabled:"fyvr11yd",focus:"fyvr11ye",hover:"fyvr11yf",checked:"fyvr11yg"},defaultClass:"fyvr11yb"},text50:{conditions:{base:"fyvr11yh",active:"fyvr11yi",disabled:"fyvr11yj",focus:"fyvr11yk",hover:"fyvr11yl",checked:"fyvr11ym"},defaultClass:"fyvr11yh"},text80:{conditions:{base:"fyvr11yn",active:"fyvr11yo",disabled:"fyvr11yp",focus:"fyvr11yq",hover:"fyvr11yr",checked:"fyvr11ys"},defaultClass:"fyvr11yn"},text100:{conditions:{base:"fyvr11yt",active:"fyvr11yu",disabled:"fyvr11yv",focus:"fyvr11yw",hover:"fyvr11yx",checked:"fyvr11yy"},defaultClass:"fyvr11yt"},textInverse100:{conditions:{base:"fyvr11yz",active:"fyvr11z0",disabled:"fyvr11z1",focus:"fyvr11z2",hover:"fyvr11z3",checked:"fyvr11z4"},defaultClass:"fyvr11yz"},arbitrumDark:{conditions:{base:"fyvr11z5",active:"fyvr11z6",disabled:"fyvr11z7",focus:"fyvr11z8",hover:"fyvr11z9",checked:"fyvr11za"},defaultClass:"fyvr11z5"},arbitrumLight:{conditions:{base:"fyvr11zb",active:"fyvr11zc",disabled:"fyvr11zd",focus:"fyvr11ze",hover:"fyvr11zf",checked:"fyvr11zg"},defaultClass:"fyvr11zb"},avalanceDark:{conditions:{base:"fyvr11zh",active:"fyvr11zi",disabled:"fyvr11zj",focus:"fyvr11zk",hover:"fyvr11zl",checked:"fyvr11zm"},defaultClass:"fyvr11zh"},avalanceLight:{conditions:{base:"fyvr11zn",active:"fyvr11zo",disabled:"fyvr11zp",focus:"fyvr11zq",hover:"fyvr11zr",checked:"fyvr11zs"},defaultClass:"fyvr11zn"},bscDark:{conditions:{base:"fyvr11zt",active:"fyvr11zu",disabled:"fyvr11zv",focus:"fyvr11zw",hover:"fyvr11zx",checked:"fyvr11zy"},defaultClass:"fyvr11zt"},bscLight:{conditions:{base:"fyvr11zz",active:"fyvr1200",disabled:"fyvr1201",focus:"fyvr1202",hover:"fyvr1203",checked:"fyvr1204"},defaultClass:"fyvr11zz"},ethereumDark:{conditions:{base:"fyvr1205",active:"fyvr1206",disabled:"fyvr1207",focus:"fyvr1208",hover:"fyvr1209",checked:"fyvr120a"},defaultClass:"fyvr1205"},ethereumLight:{conditions:{base:"fyvr120b",active:"fyvr120c",disabled:"fyvr120d",focus:"fyvr120e",hover:"fyvr120f",checked:"fyvr120g"},defaultClass:"fyvr120b"},gnosisDark:{conditions:{base:"fyvr120h",active:"fyvr120i",disabled:"fyvr120j",focus:"fyvr120k",hover:"fyvr120l",checked:"fyvr120m"},defaultClass:"fyvr120h"},gnosisLight:{conditions:{base:"fyvr120n",active:"fyvr120o",disabled:"fyvr120p",focus:"fyvr120q",hover:"fyvr120r",checked:"fyvr120s"},defaultClass:"fyvr120n"},polygonDark:{conditions:{base:"fyvr120t",active:"fyvr120u",disabled:"fyvr120v",focus:"fyvr120w",hover:"fyvr120x",checked:"fyvr120y"},defaultClass:"fyvr120t"},polygonLight:{conditions:{base:"fyvr120z",active:"fyvr1210",disabled:"fyvr1211",focus:"fyvr1212",hover:"fyvr1213",checked:"fyvr1214"},defaultClass:"fyvr120z"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr1215",active:"fyvr1216",disabled:"fyvr1217",focus:"fyvr1218",hover:"fyvr1219",checked:"fyvr121a"},defaultClass:"fyvr1215"},dashed:{conditions:{base:"fyvr121b",active:"fyvr121c",disabled:"fyvr121d",focus:"fyvr121e",hover:"fyvr121f",checked:"fyvr121g"},defaultClass:"fyvr121b"},dotted:{conditions:{base:"fyvr121h",active:"fyvr121i",disabled:"fyvr121j",focus:"fyvr121k",hover:"fyvr121l",checked:"fyvr121m"},defaultClass:"fyvr121h"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr121n",active:"fyvr121o",disabled:"fyvr121p",focus:"fyvr121q",hover:"fyvr121r",checked:"fyvr121s"},defaultClass:"fyvr121n"},white:{conditions:{base:"fyvr121t",active:"fyvr121u",disabled:"fyvr121v",focus:"fyvr121w",hover:"fyvr121x",checked:"fyvr121y"},defaultClass:"fyvr121t"},inherit:{conditions:{base:"fyvr121z",active:"fyvr1220",disabled:"fyvr1221",focus:"fyvr1222",hover:"fyvr1223",checked:"fyvr1224"},defaultClass:"fyvr121z"},transparent:{conditions:{base:"fyvr1225",active:"fyvr1226",disabled:"fyvr1227",focus:"fyvr1228",hover:"fyvr1229",checked:"fyvr122a"},defaultClass:"fyvr1225"},positive:{conditions:{base:"fyvr122b",active:"fyvr122c",disabled:"fyvr122d",focus:"fyvr122e",hover:"fyvr122f",checked:"fyvr122g"},defaultClass:"fyvr122b"},negative:{conditions:{base:"fyvr122h",active:"fyvr122i",disabled:"fyvr122j",focus:"fyvr122k",hover:"fyvr122l",checked:"fyvr122m"},defaultClass:"fyvr122h"},info:{conditions:{base:"fyvr122n",active:"fyvr122o",disabled:"fyvr122p",focus:"fyvr122q",hover:"fyvr122r",checked:"fyvr122s"},defaultClass:"fyvr122n"},warning:{conditions:{base:"fyvr122t",active:"fyvr122u",disabled:"fyvr122v",focus:"fyvr122w",hover:"fyvr122x",checked:"fyvr122y"},defaultClass:"fyvr122t"},gradientBackdrop:{conditions:{base:"fyvr122z",active:"fyvr1230",disabled:"fyvr1231",focus:"fyvr1232",hover:"fyvr1233",checked:"fyvr1234"},defaultClass:"fyvr122z"},gradientPrimary:{conditions:{base:"fyvr1235",active:"fyvr1236",disabled:"fyvr1237",focus:"fyvr1238",hover:"fyvr1239",checked:"fyvr123a"},defaultClass:"fyvr1235"},gradientSecondary:{conditions:{base:"fyvr123b",active:"fyvr123c",disabled:"fyvr123d",focus:"fyvr123e",hover:"fyvr123f",checked:"fyvr123g"},defaultClass:"fyvr123b"},backgroundPrimary:{conditions:{base:"fyvr123h",active:"fyvr123i",disabled:"fyvr123j",focus:"fyvr123k",hover:"fyvr123l",checked:"fyvr123m"},defaultClass:"fyvr123h"},backgroundSecondary:{conditions:{base:"fyvr123n",active:"fyvr123o",disabled:"fyvr123p",focus:"fyvr123q",hover:"fyvr123r",checked:"fyvr123s"},defaultClass:"fyvr123n"},backgroundContrast:{conditions:{base:"fyvr123t",active:"fyvr123u",disabled:"fyvr123v",focus:"fyvr123w",hover:"fyvr123x",checked:"fyvr123y"},defaultClass:"fyvr123t"},backgroundMuted:{conditions:{base:"fyvr123z",active:"fyvr1240",disabled:"fyvr1241",focus:"fyvr1242",hover:"fyvr1243",checked:"fyvr1244"},defaultClass:"fyvr123z"},backgroundControl:{conditions:{base:"fyvr1245",active:"fyvr1246",disabled:"fyvr1247",focus:"fyvr1248",hover:"fyvr1249",checked:"fyvr124a"},defaultClass:"fyvr1245"},backgroundInverse:{conditions:{base:"fyvr124b",active:"fyvr124c",disabled:"fyvr124d",focus:"fyvr124e",hover:"fyvr124f",checked:"fyvr124g"},defaultClass:"fyvr124b"},backgroundBackdrop:{conditions:{base:"fyvr124h",active:"fyvr124i",disabled:"fyvr124j",focus:"fyvr124k",hover:"fyvr124l",checked:"fyvr124m"},defaultClass:"fyvr124h"},backgroundOverlay:{conditions:{base:"fyvr124n",active:"fyvr124o",disabled:"fyvr124p",focus:"fyvr124q",hover:"fyvr124r",checked:"fyvr124s"},defaultClass:"fyvr124n"},borderNormal:{conditions:{base:"fyvr124t",active:"fyvr124u",disabled:"fyvr124v",focus:"fyvr124w",hover:"fyvr124x",checked:"fyvr124y"},defaultClass:"fyvr124t"},borderFocus:{conditions:{base:"fyvr124z",active:"fyvr1250",disabled:"fyvr1251",focus:"fyvr1252",hover:"fyvr1253",checked:"fyvr1254"},defaultClass:"fyvr124z"},buttonGlass:{conditions:{base:"fyvr1255",active:"fyvr1256",disabled:"fyvr1257",focus:"fyvr1258",hover:"fyvr1259",checked:"fyvr125a"},defaultClass:"fyvr1255"},buttonEmphasis:{conditions:{base:"fyvr125b",active:"fyvr125c",disabled:"fyvr125d",focus:"fyvr125e",hover:"fyvr125f",checked:"fyvr125g"},defaultClass:"fyvr125b"},buttonInverse:{conditions:{base:"fyvr125h",active:"fyvr125i",disabled:"fyvr125j",focus:"fyvr125k",hover:"fyvr125l",checked:"fyvr125m"},defaultClass:"fyvr125h"},text50:{conditions:{base:"fyvr125n",active:"fyvr125o",disabled:"fyvr125p",focus:"fyvr125q",hover:"fyvr125r",checked:"fyvr125s"},defaultClass:"fyvr125n"},text80:{conditions:{base:"fyvr125t",active:"fyvr125u",disabled:"fyvr125v",focus:"fyvr125w",hover:"fyvr125x",checked:"fyvr125y"},defaultClass:"fyvr125t"},text100:{conditions:{base:"fyvr125z",active:"fyvr1260",disabled:"fyvr1261",focus:"fyvr1262",hover:"fyvr1263",checked:"fyvr1264"},defaultClass:"fyvr125z"},textInverse100:{conditions:{base:"fyvr1265",active:"fyvr1266",disabled:"fyvr1267",focus:"fyvr1268",hover:"fyvr1269",checked:"fyvr126a"},defaultClass:"fyvr1265"},arbitrumDark:{conditions:{base:"fyvr126b",active:"fyvr126c",disabled:"fyvr126d",focus:"fyvr126e",hover:"fyvr126f",checked:"fyvr126g"},defaultClass:"fyvr126b"},arbitrumLight:{conditions:{base:"fyvr126h",active:"fyvr126i",disabled:"fyvr126j",focus:"fyvr126k",hover:"fyvr126l",checked:"fyvr126m"},defaultClass:"fyvr126h"},avalanceDark:{conditions:{base:"fyvr126n",active:"fyvr126o",disabled:"fyvr126p",focus:"fyvr126q",hover:"fyvr126r",checked:"fyvr126s"},defaultClass:"fyvr126n"},avalanceLight:{conditions:{base:"fyvr126t",active:"fyvr126u",disabled:"fyvr126v",focus:"fyvr126w",hover:"fyvr126x",checked:"fyvr126y"},defaultClass:"fyvr126t"},bscDark:{conditions:{base:"fyvr126z",active:"fyvr1270",disabled:"fyvr1271",focus:"fyvr1272",hover:"fyvr1273",checked:"fyvr1274"},defaultClass:"fyvr126z"},bscLight:{conditions:{base:"fyvr1275",active:"fyvr1276",disabled:"fyvr1277",focus:"fyvr1278",hover:"fyvr1279",checked:"fyvr127a"},defaultClass:"fyvr1275"},ethereumDark:{conditions:{base:"fyvr127b",active:"fyvr127c",disabled:"fyvr127d",focus:"fyvr127e",hover:"fyvr127f",checked:"fyvr127g"},defaultClass:"fyvr127b"},ethereumLight:{conditions:{base:"fyvr127h",active:"fyvr127i",disabled:"fyvr127j",focus:"fyvr127k",hover:"fyvr127l",checked:"fyvr127m"},defaultClass:"fyvr127h"},gnosisDark:{conditions:{base:"fyvr127n",active:"fyvr127o",disabled:"fyvr127p",focus:"fyvr127q",hover:"fyvr127r",checked:"fyvr127s"},defaultClass:"fyvr127n"},gnosisLight:{conditions:{base:"fyvr127t",active:"fyvr127u",disabled:"fyvr127v",focus:"fyvr127w",hover:"fyvr127x",checked:"fyvr127y"},defaultClass:"fyvr127t"},polygonDark:{conditions:{base:"fyvr127z",active:"fyvr1280",disabled:"fyvr1281",focus:"fyvr1282",hover:"fyvr1283",checked:"fyvr1284"},defaultClass:"fyvr127z"},polygonLight:{conditions:{base:"fyvr1285",active:"fyvr1286",disabled:"fyvr1287",focus:"fyvr1288",hover:"fyvr1289",checked:"fyvr128a"},defaultClass:"fyvr1285"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128b",active:"fyvr128c",disabled:"fyvr128d",focus:"fyvr128e",hover:"fyvr128f",checked:"fyvr128g"},defaultClass:"fyvr128b"},dashed:{conditions:{base:"fyvr128h",active:"fyvr128i",disabled:"fyvr128j",focus:"fyvr128k",hover:"fyvr128l",checked:"fyvr128m"},defaultClass:"fyvr128h"},dotted:{conditions:{base:"fyvr128n",active:"fyvr128o",disabled:"fyvr128p",focus:"fyvr128q",hover:"fyvr128r",checked:"fyvr128s"},defaultClass:"fyvr128n"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr128t",active:"fyvr128u",disabled:"fyvr128v",focus:"fyvr128w",hover:"fyvr128x",checked:"fyvr128y"},defaultClass:"fyvr128t"},white:{conditions:{base:"fyvr128z",active:"fyvr1290",disabled:"fyvr1291",focus:"fyvr1292",hover:"fyvr1293",checked:"fyvr1294"},defaultClass:"fyvr128z"},inherit:{conditions:{base:"fyvr1295",active:"fyvr1296",disabled:"fyvr1297",focus:"fyvr1298",hover:"fyvr1299",checked:"fyvr129a"},defaultClass:"fyvr1295"},transparent:{conditions:{base:"fyvr129b",active:"fyvr129c",disabled:"fyvr129d",focus:"fyvr129e",hover:"fyvr129f",checked:"fyvr129g"},defaultClass:"fyvr129b"},positive:{conditions:{base:"fyvr129h",active:"fyvr129i",disabled:"fyvr129j",focus:"fyvr129k",hover:"fyvr129l",checked:"fyvr129m"},defaultClass:"fyvr129h"},negative:{conditions:{base:"fyvr129n",active:"fyvr129o",disabled:"fyvr129p",focus:"fyvr129q",hover:"fyvr129r",checked:"fyvr129s"},defaultClass:"fyvr129n"},info:{conditions:{base:"fyvr129t",active:"fyvr129u",disabled:"fyvr129v",focus:"fyvr129w",hover:"fyvr129x",checked:"fyvr129y"},defaultClass:"fyvr129t"},warning:{conditions:{base:"fyvr129z",active:"fyvr12a0",disabled:"fyvr12a1",focus:"fyvr12a2",hover:"fyvr12a3",checked:"fyvr12a4"},defaultClass:"fyvr129z"},gradientBackdrop:{conditions:{base:"fyvr12a5",active:"fyvr12a6",disabled:"fyvr12a7",focus:"fyvr12a8",hover:"fyvr12a9",checked:"fyvr12aa"},defaultClass:"fyvr12a5"},gradientPrimary:{conditions:{base:"fyvr12ab",active:"fyvr12ac",disabled:"fyvr12ad",focus:"fyvr12ae",hover:"fyvr12af",checked:"fyvr12ag"},defaultClass:"fyvr12ab"},gradientSecondary:{conditions:{base:"fyvr12ah",active:"fyvr12ai",disabled:"fyvr12aj",focus:"fyvr12ak",hover:"fyvr12al",checked:"fyvr12am"},defaultClass:"fyvr12ah"},backgroundPrimary:{conditions:{base:"fyvr12an",active:"fyvr12ao",disabled:"fyvr12ap",focus:"fyvr12aq",hover:"fyvr12ar",checked:"fyvr12as"},defaultClass:"fyvr12an"},backgroundSecondary:{conditions:{base:"fyvr12at",active:"fyvr12au",disabled:"fyvr12av",focus:"fyvr12aw",hover:"fyvr12ax",checked:"fyvr12ay"},defaultClass:"fyvr12at"},backgroundContrast:{conditions:{base:"fyvr12az",active:"fyvr12b0",disabled:"fyvr12b1",focus:"fyvr12b2",hover:"fyvr12b3",checked:"fyvr12b4"},defaultClass:"fyvr12az"},backgroundMuted:{conditions:{base:"fyvr12b5",active:"fyvr12b6",disabled:"fyvr12b7",focus:"fyvr12b8",hover:"fyvr12b9",checked:"fyvr12ba"},defaultClass:"fyvr12b5"},backgroundControl:{conditions:{base:"fyvr12bb",active:"fyvr12bc",disabled:"fyvr12bd",focus:"fyvr12be",hover:"fyvr12bf",checked:"fyvr12bg"},defaultClass:"fyvr12bb"},backgroundInverse:{conditions:{base:"fyvr12bh",active:"fyvr12bi",disabled:"fyvr12bj",focus:"fyvr12bk",hover:"fyvr12bl",checked:"fyvr12bm"},defaultClass:"fyvr12bh"},backgroundBackdrop:{conditions:{base:"fyvr12bn",active:"fyvr12bo",disabled:"fyvr12bp",focus:"fyvr12bq",hover:"fyvr12br",checked:"fyvr12bs"},defaultClass:"fyvr12bn"},backgroundOverlay:{conditions:{base:"fyvr12bt",active:"fyvr12bu",disabled:"fyvr12bv",focus:"fyvr12bw",hover:"fyvr12bx",checked:"fyvr12by"},defaultClass:"fyvr12bt"},borderNormal:{conditions:{base:"fyvr12bz",active:"fyvr12c0",disabled:"fyvr12c1",focus:"fyvr12c2",hover:"fyvr12c3",checked:"fyvr12c4"},defaultClass:"fyvr12bz"},borderFocus:{conditions:{base:"fyvr12c5",active:"fyvr12c6",disabled:"fyvr12c7",focus:"fyvr12c8",hover:"fyvr12c9",checked:"fyvr12ca"},defaultClass:"fyvr12c5"},buttonGlass:{conditions:{base:"fyvr12cb",active:"fyvr12cc",disabled:"fyvr12cd",focus:"fyvr12ce",hover:"fyvr12cf",checked:"fyvr12cg"},defaultClass:"fyvr12cb"},buttonEmphasis:{conditions:{base:"fyvr12ch",active:"fyvr12ci",disabled:"fyvr12cj",focus:"fyvr12ck",hover:"fyvr12cl",checked:"fyvr12cm"},defaultClass:"fyvr12ch"},buttonInverse:{conditions:{base:"fyvr12cn",active:"fyvr12co",disabled:"fyvr12cp",focus:"fyvr12cq",hover:"fyvr12cr",checked:"fyvr12cs"},defaultClass:"fyvr12cn"},text50:{conditions:{base:"fyvr12ct",active:"fyvr12cu",disabled:"fyvr12cv",focus:"fyvr12cw",hover:"fyvr12cx",checked:"fyvr12cy"},defaultClass:"fyvr12ct"},text80:{conditions:{base:"fyvr12cz",active:"fyvr12d0",disabled:"fyvr12d1",focus:"fyvr12d2",hover:"fyvr12d3",checked:"fyvr12d4"},defaultClass:"fyvr12cz"},text100:{conditions:{base:"fyvr12d5",active:"fyvr12d6",disabled:"fyvr12d7",focus:"fyvr12d8",hover:"fyvr12d9",checked:"fyvr12da"},defaultClass:"fyvr12d5"},textInverse100:{conditions:{base:"fyvr12db",active:"fyvr12dc",disabled:"fyvr12dd",focus:"fyvr12de",hover:"fyvr12df",checked:"fyvr12dg"},defaultClass:"fyvr12db"},arbitrumDark:{conditions:{base:"fyvr12dh",active:"fyvr12di",disabled:"fyvr12dj",focus:"fyvr12dk",hover:"fyvr12dl",checked:"fyvr12dm"},defaultClass:"fyvr12dh"},arbitrumLight:{conditions:{base:"fyvr12dn",active:"fyvr12do",disabled:"fyvr12dp",focus:"fyvr12dq",hover:"fyvr12dr",checked:"fyvr12ds"},defaultClass:"fyvr12dn"},avalanceDark:{conditions:{base:"fyvr12dt",active:"fyvr12du",disabled:"fyvr12dv",focus:"fyvr12dw",hover:"fyvr12dx",checked:"fyvr12dy"},defaultClass:"fyvr12dt"},avalanceLight:{conditions:{base:"fyvr12dz",active:"fyvr12e0",disabled:"fyvr12e1",focus:"fyvr12e2",hover:"fyvr12e3",checked:"fyvr12e4"},defaultClass:"fyvr12dz"},bscDark:{conditions:{base:"fyvr12e5",active:"fyvr12e6",disabled:"fyvr12e7",focus:"fyvr12e8",hover:"fyvr12e9",checked:"fyvr12ea"},defaultClass:"fyvr12e5"},bscLight:{conditions:{base:"fyvr12eb",active:"fyvr12ec",disabled:"fyvr12ed",focus:"fyvr12ee",hover:"fyvr12ef",checked:"fyvr12eg"},defaultClass:"fyvr12eb"},ethereumDark:{conditions:{base:"fyvr12eh",active:"fyvr12ei",disabled:"fyvr12ej",focus:"fyvr12ek",hover:"fyvr12el",checked:"fyvr12em"},defaultClass:"fyvr12eh"},ethereumLight:{conditions:{base:"fyvr12en",active:"fyvr12eo",disabled:"fyvr12ep",focus:"fyvr12eq",hover:"fyvr12er",checked:"fyvr12es"},defaultClass:"fyvr12en"},gnosisDark:{conditions:{base:"fyvr12et",active:"fyvr12eu",disabled:"fyvr12ev",focus:"fyvr12ew",hover:"fyvr12ex",checked:"fyvr12ey"},defaultClass:"fyvr12et"},gnosisLight:{conditions:{base:"fyvr12ez",active:"fyvr12f0",disabled:"fyvr12f1",focus:"fyvr12f2",hover:"fyvr12f3",checked:"fyvr12f4"},defaultClass:"fyvr12ez"},polygonDark:{conditions:{base:"fyvr12f5",active:"fyvr12f6",disabled:"fyvr12f7",focus:"fyvr12f8",hover:"fyvr12f9",checked:"fyvr12fa"},defaultClass:"fyvr12f5"},polygonLight:{conditions:{base:"fyvr12fb",active:"fyvr12fc",disabled:"fyvr12fd",focus:"fyvr12fe",hover:"fyvr12ff",checked:"fyvr12fg"},defaultClass:"fyvr12fb"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12fh",active:"fyvr12fi",disabled:"fyvr12fj",focus:"fyvr12fk",hover:"fyvr12fl",checked:"fyvr12fm"},defaultClass:"fyvr12fh"},dashed:{conditions:{base:"fyvr12fn",active:"fyvr12fo",disabled:"fyvr12fp",focus:"fyvr12fq",hover:"fyvr12fr",checked:"fyvr12fs"},defaultClass:"fyvr12fn"},dotted:{conditions:{base:"fyvr12ft",active:"fyvr12fu",disabled:"fyvr12fv",focus:"fyvr12fw",hover:"fyvr12fx",checked:"fyvr12fy"},defaultClass:"fyvr12ft"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12fz",active:"fyvr12g0",disabled:"fyvr12g1",focus:"fyvr12g2",hover:"fyvr12g3",checked:"fyvr12g4"},defaultClass:"fyvr12fz"},white:{conditions:{base:"fyvr12g5",active:"fyvr12g6",disabled:"fyvr12g7",focus:"fyvr12g8",hover:"fyvr12g9",checked:"fyvr12ga"},defaultClass:"fyvr12g5"},inherit:{conditions:{base:"fyvr12gb",active:"fyvr12gc",disabled:"fyvr12gd",focus:"fyvr12ge",hover:"fyvr12gf",checked:"fyvr12gg"},defaultClass:"fyvr12gb"},transparent:{conditions:{base:"fyvr12gh",active:"fyvr12gi",disabled:"fyvr12gj",focus:"fyvr12gk",hover:"fyvr12gl",checked:"fyvr12gm"},defaultClass:"fyvr12gh"},positive:{conditions:{base:"fyvr12gn",active:"fyvr12go",disabled:"fyvr12gp",focus:"fyvr12gq",hover:"fyvr12gr",checked:"fyvr12gs"},defaultClass:"fyvr12gn"},negative:{conditions:{base:"fyvr12gt",active:"fyvr12gu",disabled:"fyvr12gv",focus:"fyvr12gw",hover:"fyvr12gx",checked:"fyvr12gy"},defaultClass:"fyvr12gt"},info:{conditions:{base:"fyvr12gz",active:"fyvr12h0",disabled:"fyvr12h1",focus:"fyvr12h2",hover:"fyvr12h3",checked:"fyvr12h4"},defaultClass:"fyvr12gz"},warning:{conditions:{base:"fyvr12h5",active:"fyvr12h6",disabled:"fyvr12h7",focus:"fyvr12h8",hover:"fyvr12h9",checked:"fyvr12ha"},defaultClass:"fyvr12h5"},gradientBackdrop:{conditions:{base:"fyvr12hb",active:"fyvr12hc",disabled:"fyvr12hd",focus:"fyvr12he",hover:"fyvr12hf",checked:"fyvr12hg"},defaultClass:"fyvr12hb"},gradientPrimary:{conditions:{base:"fyvr12hh",active:"fyvr12hi",disabled:"fyvr12hj",focus:"fyvr12hk",hover:"fyvr12hl",checked:"fyvr12hm"},defaultClass:"fyvr12hh"},gradientSecondary:{conditions:{base:"fyvr12hn",active:"fyvr12ho",disabled:"fyvr12hp",focus:"fyvr12hq",hover:"fyvr12hr",checked:"fyvr12hs"},defaultClass:"fyvr12hn"},backgroundPrimary:{conditions:{base:"fyvr12ht",active:"fyvr12hu",disabled:"fyvr12hv",focus:"fyvr12hw",hover:"fyvr12hx",checked:"fyvr12hy"},defaultClass:"fyvr12ht"},backgroundSecondary:{conditions:{base:"fyvr12hz",active:"fyvr12i0",disabled:"fyvr12i1",focus:"fyvr12i2",hover:"fyvr12i3",checked:"fyvr12i4"},defaultClass:"fyvr12hz"},backgroundContrast:{conditions:{base:"fyvr12i5",active:"fyvr12i6",disabled:"fyvr12i7",focus:"fyvr12i8",hover:"fyvr12i9",checked:"fyvr12ia"},defaultClass:"fyvr12i5"},backgroundMuted:{conditions:{base:"fyvr12ib",active:"fyvr12ic",disabled:"fyvr12id",focus:"fyvr12ie",hover:"fyvr12if",checked:"fyvr12ig"},defaultClass:"fyvr12ib"},backgroundControl:{conditions:{base:"fyvr12ih",active:"fyvr12ii",disabled:"fyvr12ij",focus:"fyvr12ik",hover:"fyvr12il",checked:"fyvr12im"},defaultClass:"fyvr12ih"},backgroundInverse:{conditions:{base:"fyvr12in",active:"fyvr12io",disabled:"fyvr12ip",focus:"fyvr12iq",hover:"fyvr12ir",checked:"fyvr12is"},defaultClass:"fyvr12in"},backgroundBackdrop:{conditions:{base:"fyvr12it",active:"fyvr12iu",disabled:"fyvr12iv",focus:"fyvr12iw",hover:"fyvr12ix",checked:"fyvr12iy"},defaultClass:"fyvr12it"},backgroundOverlay:{conditions:{base:"fyvr12iz",active:"fyvr12j0",disabled:"fyvr12j1",focus:"fyvr12j2",hover:"fyvr12j3",checked:"fyvr12j4"},defaultClass:"fyvr12iz"},borderNormal:{conditions:{base:"fyvr12j5",active:"fyvr12j6",disabled:"fyvr12j7",focus:"fyvr12j8",hover:"fyvr12j9",checked:"fyvr12ja"},defaultClass:"fyvr12j5"},borderFocus:{conditions:{base:"fyvr12jb",active:"fyvr12jc",disabled:"fyvr12jd",focus:"fyvr12je",hover:"fyvr12jf",checked:"fyvr12jg"},defaultClass:"fyvr12jb"},buttonGlass:{conditions:{base:"fyvr12jh",active:"fyvr12ji",disabled:"fyvr12jj",focus:"fyvr12jk",hover:"fyvr12jl",checked:"fyvr12jm"},defaultClass:"fyvr12jh"},buttonEmphasis:{conditions:{base:"fyvr12jn",active:"fyvr12jo",disabled:"fyvr12jp",focus:"fyvr12jq",hover:"fyvr12jr",checked:"fyvr12js"},defaultClass:"fyvr12jn"},buttonInverse:{conditions:{base:"fyvr12jt",active:"fyvr12ju",disabled:"fyvr12jv",focus:"fyvr12jw",hover:"fyvr12jx",checked:"fyvr12jy"},defaultClass:"fyvr12jt"},text50:{conditions:{base:"fyvr12jz",active:"fyvr12k0",disabled:"fyvr12k1",focus:"fyvr12k2",hover:"fyvr12k3",checked:"fyvr12k4"},defaultClass:"fyvr12jz"},text80:{conditions:{base:"fyvr12k5",active:"fyvr12k6",disabled:"fyvr12k7",focus:"fyvr12k8",hover:"fyvr12k9",checked:"fyvr12ka"},defaultClass:"fyvr12k5"},text100:{conditions:{base:"fyvr12kb",active:"fyvr12kc",disabled:"fyvr12kd",focus:"fyvr12ke",hover:"fyvr12kf",checked:"fyvr12kg"},defaultClass:"fyvr12kb"},textInverse100:{conditions:{base:"fyvr12kh",active:"fyvr12ki",disabled:"fyvr12kj",focus:"fyvr12kk",hover:"fyvr12kl",checked:"fyvr12km"},defaultClass:"fyvr12kh"},arbitrumDark:{conditions:{base:"fyvr12kn",active:"fyvr12ko",disabled:"fyvr12kp",focus:"fyvr12kq",hover:"fyvr12kr",checked:"fyvr12ks"},defaultClass:"fyvr12kn"},arbitrumLight:{conditions:{base:"fyvr12kt",active:"fyvr12ku",disabled:"fyvr12kv",focus:"fyvr12kw",hover:"fyvr12kx",checked:"fyvr12ky"},defaultClass:"fyvr12kt"},avalanceDark:{conditions:{base:"fyvr12kz",active:"fyvr12l0",disabled:"fyvr12l1",focus:"fyvr12l2",hover:"fyvr12l3",checked:"fyvr12l4"},defaultClass:"fyvr12kz"},avalanceLight:{conditions:{base:"fyvr12l5",active:"fyvr12l6",disabled:"fyvr12l7",focus:"fyvr12l8",hover:"fyvr12l9",checked:"fyvr12la"},defaultClass:"fyvr12l5"},bscDark:{conditions:{base:"fyvr12lb",active:"fyvr12lc",disabled:"fyvr12ld",focus:"fyvr12le",hover:"fyvr12lf",checked:"fyvr12lg"},defaultClass:"fyvr12lb"},bscLight:{conditions:{base:"fyvr12lh",active:"fyvr12li",disabled:"fyvr12lj",focus:"fyvr12lk",hover:"fyvr12ll",checked:"fyvr12lm"},defaultClass:"fyvr12lh"},ethereumDark:{conditions:{base:"fyvr12ln",active:"fyvr12lo",disabled:"fyvr12lp",focus:"fyvr12lq",hover:"fyvr12lr",checked:"fyvr12ls"},defaultClass:"fyvr12ln"},ethereumLight:{conditions:{base:"fyvr12lt",active:"fyvr12lu",disabled:"fyvr12lv",focus:"fyvr12lw",hover:"fyvr12lx",checked:"fyvr12ly"},defaultClass:"fyvr12lt"},gnosisDark:{conditions:{base:"fyvr12lz",active:"fyvr12m0",disabled:"fyvr12m1",focus:"fyvr12m2",hover:"fyvr12m3",checked:"fyvr12m4"},defaultClass:"fyvr12lz"},gnosisLight:{conditions:{base:"fyvr12m5",active:"fyvr12m6",disabled:"fyvr12m7",focus:"fyvr12m8",hover:"fyvr12m9",checked:"fyvr12ma"},defaultClass:"fyvr12m5"},polygonDark:{conditions:{base:"fyvr12mb",active:"fyvr12mc",disabled:"fyvr12md",focus:"fyvr12me",hover:"fyvr12mf",checked:"fyvr12mg"},defaultClass:"fyvr12mb"},polygonLight:{conditions:{base:"fyvr12mh",active:"fyvr12mi",disabled:"fyvr12mj",focus:"fyvr12mk",hover:"fyvr12ml",checked:"fyvr12mm"},defaultClass:"fyvr12mh"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12mn",active:"fyvr12mo",disabled:"fyvr12mp",focus:"fyvr12mq",hover:"fyvr12mr",checked:"fyvr12ms"},defaultClass:"fyvr12mn"},dashed:{conditions:{base:"fyvr12mt",active:"fyvr12mu",disabled:"fyvr12mv",focus:"fyvr12mw",hover:"fyvr12mx",checked:"fyvr12my"},defaultClass:"fyvr12mt"},dotted:{conditions:{base:"fyvr12mz",active:"fyvr12n0",disabled:"fyvr12n1",focus:"fyvr12n2",hover:"fyvr12n3",checked:"fyvr12n4"},defaultClass:"fyvr12mz"}}},color:{values:{black:{conditions:{base:"fyvr12n5",active:"fyvr12n6",disabled:"fyvr12n7",focus:"fyvr12n8",hover:"fyvr12n9",checked:"fyvr12na"},defaultClass:"fyvr12n5"},white:{conditions:{base:"fyvr12nb",active:"fyvr12nc",disabled:"fyvr12nd",focus:"fyvr12ne",hover:"fyvr12nf",checked:"fyvr12ng"},defaultClass:"fyvr12nb"},inherit:{conditions:{base:"fyvr12nh",active:"fyvr12ni",disabled:"fyvr12nj",focus:"fyvr12nk",hover:"fyvr12nl",checked:"fyvr12nm"},defaultClass:"fyvr12nh"},transparent:{conditions:{base:"fyvr12nn",active:"fyvr12no",disabled:"fyvr12np",focus:"fyvr12nq",hover:"fyvr12nr",checked:"fyvr12ns"},defaultClass:"fyvr12nn"},positive:{conditions:{base:"fyvr12nt",active:"fyvr12nu",disabled:"fyvr12nv",focus:"fyvr12nw",hover:"fyvr12nx",checked:"fyvr12ny"},defaultClass:"fyvr12nt"},negative:{conditions:{base:"fyvr12nz",active:"fyvr12o0",disabled:"fyvr12o1",focus:"fyvr12o2",hover:"fyvr12o3",checked:"fyvr12o4"},defaultClass:"fyvr12nz"},info:{conditions:{base:"fyvr12o5",active:"fyvr12o6",disabled:"fyvr12o7",focus:"fyvr12o8",hover:"fyvr12o9",checked:"fyvr12oa"},defaultClass:"fyvr12o5"},warning:{conditions:{base:"fyvr12ob",active:"fyvr12oc",disabled:"fyvr12od",focus:"fyvr12oe",hover:"fyvr12of",checked:"fyvr12og"},defaultClass:"fyvr12ob"},gradientBackdrop:{conditions:{base:"fyvr12oh",active:"fyvr12oi",disabled:"fyvr12oj",focus:"fyvr12ok",hover:"fyvr12ol",checked:"fyvr12om"},defaultClass:"fyvr12oh"},gradientPrimary:{conditions:{base:"fyvr12on",active:"fyvr12oo",disabled:"fyvr12op",focus:"fyvr12oq",hover:"fyvr12or",checked:"fyvr12os"},defaultClass:"fyvr12on"},gradientSecondary:{conditions:{base:"fyvr12ot",active:"fyvr12ou",disabled:"fyvr12ov",focus:"fyvr12ow",hover:"fyvr12ox",checked:"fyvr12oy"},defaultClass:"fyvr12ot"},backgroundPrimary:{conditions:{base:"fyvr12oz",active:"fyvr12p0",disabled:"fyvr12p1",focus:"fyvr12p2",hover:"fyvr12p3",checked:"fyvr12p4"},defaultClass:"fyvr12oz"},backgroundSecondary:{conditions:{base:"fyvr12p5",active:"fyvr12p6",disabled:"fyvr12p7",focus:"fyvr12p8",hover:"fyvr12p9",checked:"fyvr12pa"},defaultClass:"fyvr12p5"},backgroundContrast:{conditions:{base:"fyvr12pb",active:"fyvr12pc",disabled:"fyvr12pd",focus:"fyvr12pe",hover:"fyvr12pf",checked:"fyvr12pg"},defaultClass:"fyvr12pb"},backgroundMuted:{conditions:{base:"fyvr12ph",active:"fyvr12pi",disabled:"fyvr12pj",focus:"fyvr12pk",hover:"fyvr12pl",checked:"fyvr12pm"},defaultClass:"fyvr12ph"},backgroundControl:{conditions:{base:"fyvr12pn",active:"fyvr12po",disabled:"fyvr12pp",focus:"fyvr12pq",hover:"fyvr12pr",checked:"fyvr12ps"},defaultClass:"fyvr12pn"},backgroundInverse:{conditions:{base:"fyvr12pt",active:"fyvr12pu",disabled:"fyvr12pv",focus:"fyvr12pw",hover:"fyvr12px",checked:"fyvr12py"},defaultClass:"fyvr12pt"},backgroundBackdrop:{conditions:{base:"fyvr12pz",active:"fyvr12q0",disabled:"fyvr12q1",focus:"fyvr12q2",hover:"fyvr12q3",checked:"fyvr12q4"},defaultClass:"fyvr12pz"},backgroundOverlay:{conditions:{base:"fyvr12q5",active:"fyvr12q6",disabled:"fyvr12q7",focus:"fyvr12q8",hover:"fyvr12q9",checked:"fyvr12qa"},defaultClass:"fyvr12q5"},borderNormal:{conditions:{base:"fyvr12qb",active:"fyvr12qc",disabled:"fyvr12qd",focus:"fyvr12qe",hover:"fyvr12qf",checked:"fyvr12qg"},defaultClass:"fyvr12qb"},borderFocus:{conditions:{base:"fyvr12qh",active:"fyvr12qi",disabled:"fyvr12qj",focus:"fyvr12qk",hover:"fyvr12ql",checked:"fyvr12qm"},defaultClass:"fyvr12qh"},buttonGlass:{conditions:{base:"fyvr12qn",active:"fyvr12qo",disabled:"fyvr12qp",focus:"fyvr12qq",hover:"fyvr12qr",checked:"fyvr12qs"},defaultClass:"fyvr12qn"},buttonEmphasis:{conditions:{base:"fyvr12qt",active:"fyvr12qu",disabled:"fyvr12qv",focus:"fyvr12qw",hover:"fyvr12qx",checked:"fyvr12qy"},defaultClass:"fyvr12qt"},buttonInverse:{conditions:{base:"fyvr12qz",active:"fyvr12r0",disabled:"fyvr12r1",focus:"fyvr12r2",hover:"fyvr12r3",checked:"fyvr12r4"},defaultClass:"fyvr12qz"},text50:{conditions:{base:"fyvr12r5",active:"fyvr12r6",disabled:"fyvr12r7",focus:"fyvr12r8",hover:"fyvr12r9",checked:"fyvr12ra"},defaultClass:"fyvr12r5"},text80:{conditions:{base:"fyvr12rb",active:"fyvr12rc",disabled:"fyvr12rd",focus:"fyvr12re",hover:"fyvr12rf",checked:"fyvr12rg"},defaultClass:"fyvr12rb"},text100:{conditions:{base:"fyvr12rh",active:"fyvr12ri",disabled:"fyvr12rj",focus:"fyvr12rk",hover:"fyvr12rl",checked:"fyvr12rm"},defaultClass:"fyvr12rh"},textInverse100:{conditions:{base:"fyvr12rn",active:"fyvr12ro",disabled:"fyvr12rp",focus:"fyvr12rq",hover:"fyvr12rr",checked:"fyvr12rs"},defaultClass:"fyvr12rn"},arbitrumDark:{conditions:{base:"fyvr12rt",active:"fyvr12ru",disabled:"fyvr12rv",focus:"fyvr12rw",hover:"fyvr12rx",checked:"fyvr12ry"},defaultClass:"fyvr12rt"},arbitrumLight:{conditions:{base:"fyvr12rz",active:"fyvr12s0",disabled:"fyvr12s1",focus:"fyvr12s2",hover:"fyvr12s3",checked:"fyvr12s4"},defaultClass:"fyvr12rz"},avalanceDark:{conditions:{base:"fyvr12s5",active:"fyvr12s6",disabled:"fyvr12s7",focus:"fyvr12s8",hover:"fyvr12s9",checked:"fyvr12sa"},defaultClass:"fyvr12s5"},avalanceLight:{conditions:{base:"fyvr12sb",active:"fyvr12sc",disabled:"fyvr12sd",focus:"fyvr12se",hover:"fyvr12sf",checked:"fyvr12sg"},defaultClass:"fyvr12sb"},bscDark:{conditions:{base:"fyvr12sh",active:"fyvr12si",disabled:"fyvr12sj",focus:"fyvr12sk",hover:"fyvr12sl",checked:"fyvr12sm"},defaultClass:"fyvr12sh"},bscLight:{conditions:{base:"fyvr12sn",active:"fyvr12so",disabled:"fyvr12sp",focus:"fyvr12sq",hover:"fyvr12sr",checked:"fyvr12ss"},defaultClass:"fyvr12sn"},ethereumDark:{conditions:{base:"fyvr12st",active:"fyvr12su",disabled:"fyvr12sv",focus:"fyvr12sw",hover:"fyvr12sx",checked:"fyvr12sy"},defaultClass:"fyvr12st"},ethereumLight:{conditions:{base:"fyvr12sz",active:"fyvr12t0",disabled:"fyvr12t1",focus:"fyvr12t2",hover:"fyvr12t3",checked:"fyvr12t4"},defaultClass:"fyvr12sz"},gnosisDark:{conditions:{base:"fyvr12t5",active:"fyvr12t6",disabled:"fyvr12t7",focus:"fyvr12t8",hover:"fyvr12t9",checked:"fyvr12ta"},defaultClass:"fyvr12t5"},gnosisLight:{conditions:{base:"fyvr12tb",active:"fyvr12tc",disabled:"fyvr12td",focus:"fyvr12te",hover:"fyvr12tf",checked:"fyvr12tg"},defaultClass:"fyvr12tb"},polygonDark:{conditions:{base:"fyvr12th",active:"fyvr12ti",disabled:"fyvr12tj",focus:"fyvr12tk",hover:"fyvr12tl",checked:"fyvr12tm"},defaultClass:"fyvr12th"},polygonLight:{conditions:{base:"fyvr12tn",active:"fyvr12to",disabled:"fyvr12tp",focus:"fyvr12tq",hover:"fyvr12tr",checked:"fyvr12ts"},defaultClass:"fyvr12tn"}}},cursor:{values:{default:{conditions:{base:"fyvr12tt",active:"fyvr12tu",disabled:"fyvr12tv",focus:"fyvr12tw",hover:"fyvr12tx",checked:"fyvr12ty"},defaultClass:"fyvr12tt"},pointer:{conditions:{base:"fyvr12tz",active:"fyvr12u0",disabled:"fyvr12u1",focus:"fyvr12u2",hover:"fyvr12u3",checked:"fyvr12u4"},defaultClass:"fyvr12tz"},text:{conditions:{base:"fyvr12u5",active:"fyvr12u6",disabled:"fyvr12u7",focus:"fyvr12u8",hover:"fyvr12u9",checked:"fyvr12ua"},defaultClass:"fyvr12u5"}}},opacity:{values:{0:{conditions:{base:"fyvr12ub",active:"fyvr12uc",disabled:"fyvr12ud",focus:"fyvr12ue",hover:"fyvr12uf",checked:"fyvr12ug"},defaultClass:"fyvr12ub"},50:{conditions:{base:"fyvr12uh",active:"fyvr12ui",disabled:"fyvr12uj",focus:"fyvr12uk",hover:"fyvr12ul",checked:"fyvr12um"},defaultClass:"fyvr12uh"},80:{conditions:{base:"fyvr12un",active:"fyvr12uo",disabled:"fyvr12up",focus:"fyvr12uq",hover:"fyvr12ur",checked:"fyvr12us"},defaultClass:"fyvr12un"},100:{conditions:{base:"fyvr12ut",active:"fyvr12uu",disabled:"fyvr12uv",focus:"fyvr12uw",hover:"fyvr12ux",checked:"fyvr12uy"},defaultClass:"fyvr12ut"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12uz",active:"fyvr12v0",disabled:"fyvr12v1",focus:"fyvr12v2",hover:"fyvr12v3",checked:"fyvr12v4"},defaultClass:"fyvr12uz"},auto:{conditions:{base:"fyvr12v5",active:"fyvr12v6",disabled:"fyvr12v7",focus:"fyvr12v8",hover:"fyvr12v9",checked:"fyvr12va"},defaultClass:"fyvr12v5"}}},outline:{values:{none:{conditions:{base:"fyvr12vb",active:"fyvr12vc",disabled:"fyvr12vd",focus:"fyvr12ve",hover:"fyvr12vf",checked:"fyvr12vg"},defaultClass:"fyvr12vb"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12vh",active:"fyvr12vi",disabled:"fyvr12vj",focus:"fyvr12vk",hover:"fyvr12vl",checked:"fyvr12vm"},defaultClass:"fyvr12vh"}}}}});const M$=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],lp=e=>(e.display||(e.display=Object.keys(e).some(t=>M$.includes(t))?"flex":void 0),$S(e));lp.properties=$S.properties;function OS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{const{as:r="div",sx:n={},className:i,...s}=e,o={},a={};for(const c in s)lp.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=lp({...o,...n});return g.createElement(r,{className:tn(l,i),...a,ref:t})});var DS={exports:{}},gc={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var x3;function I$(){if(x3)return gc;x3=1;var e=ur,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var f,u={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(u[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:a,key:d,ref:v,props:u,_owner:i.current}}return gc.Fragment=r,gc.jsx=o,gc.jsxs=o,gc}DS.exports=I$();var Y=DS.exports;function N$(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $$(e){var t=N$(e,"string");return typeof t=="symbol"?t:String(t)}function O$(e,t,r){return t=$$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function w3(e){for(var t=1;t{for(var n of Object.keys(e)){var i;if(e[n]!==((i=t[n])!==null&&i!==void 0?i:r[n]))return!1}return!0},jt=e=>{var t=r=>{var n=e.defaultClassName,i=w3(w3({},e.defaultVariants),r);for(var s in i){var o,a=(o=i[s])!==null&&o!==void 0?o:e.defaultVariants[s];if(a!=null){var l=a;typeof l=="boolean"&&(l=l===!0?"true":"false");var c=e.variantClassNames[s][l];c&&(n+=" "+c)}}for(var[f,u]of e.compoundVariants)D$(f,i,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return E3(e.variantClassNames,r=>E3(r,n=>n.split(" ")[0]))}},t};jt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const Mo=e=>{const{color:t="borderNormal",marginY:r="4",...n}=e;return Y.jsx(ie,{as:"hr",marginY:r,background:t,height:"px",borderWidth:"none",...n})};var B$=jt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Be=g.forwardRef((e,t)=>{const{as:r="span",variant:n="inherit",className:i,hidden:s,italic:o,underline:a,children:l,ellipsis:c,uppercase:f,capitalize:u,...d}=e,v=S$[n];return Y.jsx(ie,{as:r,className:tn(i,B$({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:t,...v,...d,children:l})});var L$=jt({defaultClassName:"_140wn8nf fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8ng",feature:"_140wn8nh fyvr11ph fyvr12nb",primary:"fyvr11pb fyvr12nb",glass:"fyvr11rb fyvr12rh",emphasis:"fyvr11rh fyvr12rh",danger:"fyvr11on fyvr12nb",text:"_140wn8nm _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12r5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12tt fyvr12uh",false:"fyvr12tz fyvr12ut fyvr12ur"},size:{xs:"_140wn8nr _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8ns _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nv"},hasLeftIcon:{true:"_140wn8nw"},hasRightIcon:{true:"_140wn8nx"},activeOutline:{light:"_140wn8ny",bold:"_140wn8nz"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n10"],[{iconOnly:!0,size:"sm"},"_140wn8n11"],[{iconOnly:!0,size:"md"},"_140wn8n12"],[{iconOnly:!0,size:"lg"},"_140wn8n13"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n14"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n16"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n17"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n19"]]});const Xr=g.forwardRef((e,t)=>{const{as:r="button",activeOutline:n,className:i,disabled:s=!1,display:o="inline-flex",fontWeight:a="bold",pending:l=!1,label:c,leftIcon:f,rightIcon:u,size:d="md",variant:v="glass",width:m="fit",shape:y="circle",type:w="button",...x}=e,b=f!==void 0&&c!==void 0,S=u!==void 0&&c!==void 0,A=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return Y.jsx(ie,{as:r,className:tn(i,L$({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:S,iconOnly:A,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:t,type:w,width:m,...x,children:A?Y.jsx(f,{size:_}):Y.jsxs(ie,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[Y.jsxs(ie,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&Y.jsx(f,{size:_}),Y.jsx(Be,{children:c})]}),u&&Y.jsx(u,{size:_})]})})});var F$=jt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12ur fyvr12tz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mn fyvr12fh fyvr1215 fyvr128b"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});g.forwardRef((e,t)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=e;return Y.jsx(ie,{className:tn(r,F$({clickable:i,outlined:s,disabled:o,blur:a})),background:s?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:l,ref:t,...c,children:n})});function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach(r=>j$(r,t))}function Pt(...e){return g.useCallback(BS(...e),e)}function Ir(e,t=[]){let r=[];function n(s,o){const a=g.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...m}=u,y=(d==null?void 0:d[e][l])||a,w=g.useMemo(()=>m,Object.values(m));return g.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[e][l])||a,m=g.useContext(v);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const i=()=>{const s=r.map(o=>g.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,z$(i,...t)]}function z$(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function In(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function sa({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=U$({defaultProp:t,onChange:r}),s=e!==void 0,o=s?e:n,a=In(r),l=g.useCallback(c=>{if(s){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[s,e,i,a]);return[o,l]}function U$({defaultProp:e,onChange:t}){const r=g.useState(e),[n]=r,i=g.useRef(n),s=In(t);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function yg(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const hn=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function pg(e){const[t,r]=g.useState(void 0);return hn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function V$(e,t){return g.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const So=e=>{const{present:t,children:r}=e,n=q$(t),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=Pt(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};So.displayName="Presence";function q$(e){const[t,r]=g.useState(),n=g.useRef({}),i=g.useRef(e),s=g.useRef("none"),o=e?"mounted":"unmounted",[a,l]=V$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=sd(n.current);s.current=a==="mounted"?c:"none"},[a]),hn(()=>{const c=n.current,f=i.current;if(f!==e){const d=s.current,v=sd(c);e?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),hn(()=>{if(t){const c=u=>{const v=sd(n.current).includes(u.animationName);u.target===t&&v&&Eo.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(s.current=sd(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function sd(e){return(e==null?void 0:e.animationName)||"none"}const Rl=g.forwardRef((e,t)=>{const{children:r,...n}=e,i=g.Children.toArray(r),s=i.find(G$);if(s){const o=s.props.children,a=i.map(l=>l===s?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return g.createElement(cp,me({},n,{ref:t}),g.isValidElement(o)?g.cloneElement(o,void 0,a):null)}return g.createElement(cp,me({},n,{ref:t}),r)});Rl.displayName="Slot";const cp=g.forwardRef((e,t)=>{const{children:r,...n}=e;return g.isValidElement(r)?g.cloneElement(r,{...W$(n,r.props),ref:t?BS(t,r.ref):r.ref}):g.Children.count(r)>1?g.Children.only(null):null});cp.displayName="SlotClone";const H$=({children:e})=>g.createElement(g.Fragment,null,e);function G$(e){return g.isValidElement(e)&&e.type===H$}function W$(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const K$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qe=K$.reduce((e,t)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?Rl:t;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,me({},o,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mg(e,t){e&&Eo.flushSync(()=>e.dispatchEvent(t))}const LS="Checkbox",[Y$,Dte]=Ir(LS),[J$,Q$]=Y$(LS),X$=g.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=e,[u,d]=g.useState(null),v=Pt(t,S=>d(S)),m=g.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=sa({prop:i,defaultProp:s,onChange:c}),b=g.useRef(w);return g.useEffect(()=>{const S=u==null?void 0:u.form;if(S){const A=()=>x(b.current);return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)}},[u,x]),g.createElement(J$,{scope:r,state:w,disabled:a},g.createElement(Qe.button,me({type:"button",role:"checkbox","aria-checked":Yo(w)?"mixed":w,"aria-required":o,"data-state":FS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Se(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Se(e.onClick,S=>{x(A=>Yo(A)?!0:!A),y&&(m.current=S.isPropagationStopped(),m.current||S.stopPropagation())})})),y&&g.createElement(tO,{control:u,bubbles:!m.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),Z$="CheckboxIndicator",eO=g.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,s=Q$(Z$,r);return g.createElement(So,{present:n||Yo(s.state)||s.state===!0},g.createElement(Qe.span,me({"data-state":FS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),tO=e=>{const{control:t,checked:r,bubbles:n=!0,...i}=e,s=g.useRef(null),o=yg(r),a=pg(t);return g.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=Yo(r),u.call(l,Yo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"checkbox","aria-hidden":!0,defaultChecked:Yo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Yo(e){return e==="indeterminate"}function FS(e){return Yo(e)?"indeterminate":e?"checked":"unchecked"}const rO=X$,nO=eO;var iO=jt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const Vl=e=>{const{id:t,label:r,description:n,labelLocation:i="top",children:s,...o}=e,a=()=>r||n?Y.jsxs(ie,{flexDirection:"column",gap:"0.5",children:[r&&Y.jsx(Be,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&Y.jsx(Be,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return Y.jsxs(ie,{as:"label",className:iO({labelLocation:i}),htmlFor:t,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var xh=jt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const sO=e=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:Y.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),jS=({size:e="sm",...t})=>Y.jsx(ie,{as:sO,className:xh({size:e}),...t}),oO=e=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),zS=({size:e="sm",...t})=>Y.jsx(ie,{as:oO,className:xh({size:e}),...t}),aO=e=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),gg=({size:e="sm",...t})=>Y.jsx(ie,{as:aO,className:xh({size:e}),...t}),lO=e=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...e,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),cO=({size:e="sm",...t})=>Y.jsx(ie,{as:lO,className:xh({size:e}),...t});var fO=jt({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11h0 fyvr11ko fyvr11jg fyvr12ut fyvr12ur fyvr12uj fyvr12tz fyvr12tv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),uO=jt({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rh fyvr11rt",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const dO=({size:e="sm"})=>Y.jsx(nO,{className:uO({size:e}),children:Y.jsx(jS,{size:e})});g.forwardRef((e,t)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=e;return Y.jsx(Vl,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:Y.jsx(rO,{className:fO({size:a}),disabled:r,id:n??i,name:i,ref:t,...l,children:Y.jsx(dO,{})})})});ur.createContext(null);const hO=a5["useId".toString()]||(()=>{});let vO=0;function so(e){const[t,r]=g.useState(hO());return hn(()=>{e||r(n=>n??String(vO++))},[e]),e||(t?`radix-${t}`:"")}const US="Collapsible",[yO,Bte]=Ir(US),[pO,xg]=yO(US),mO=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=e,[l=!1,c]=sa({prop:n,defaultProp:i,onChange:o});return g.createElement(pO,{scope:r,disabled:s,contentId:so(),open:l,onOpenToggle:g.useCallback(()=>c(f=>!f),[c])},g.createElement(Qe.div,me({"data-state":bg(l),"data-disabled":s?"":void 0},a,{ref:t})))}),gO="CollapsibleTrigger",xO=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,i=xg(gO,r);return g.createElement(Qe.button,me({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":bg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:t,onClick:Se(e.onClick,i.onOpenToggle)}))}),VS="CollapsibleContent",bO=g.forwardRef((e,t)=>{const{forceMount:r,...n}=e,i=xg(VS,e.__scopeCollapsible);return g.createElement(So,{present:r||i.open},({present:s})=>g.createElement(wO,me({},n,{ref:t,present:s})))}),wO=g.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=e,o=xg(VS,r),[a,l]=g.useState(n),c=g.useRef(null),f=Pt(t,c),u=g.useRef(0),d=u.current,v=g.useRef(0),m=v.current,y=o.open||a,w=g.useRef(y),x=g.useRef();return g.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),hn(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const S=b.getBoundingClientRect();u.current=S.height,v.current=S.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),g.createElement(Qe.div,me({"data-state":bg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style}}),y&&i)});function bg(e){return e?"open":"closed"}const EO=mO,CO=xO,SO=bO;var C3="64px",AO="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",kO="_4j62fl5",PO="_4j62fl0",RO="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12tz fyvr11n2";const xc=e=>{const{className:t,children:r,defaultOpen:n,onOpenChange:i,label:s,...o}=e,[a,l]=g.useState(n),c=f=>{l(f),i==null||i(f)};return Y.jsx(EO,{defaultOpen:n,onOpenChange:c,asChild:!0,children:Y.jsxs(ie,{as:ul.div,className:tn(t,PO),initial:{height:n?"auto":C3},animate:{height:a?"auto":C3},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...o,children:[Y.jsxs(CO,{className:RO,children:[Y.jsx(Be,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:s}),Y.jsx(ie,{as:ul.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:n?180:0},animate:{rotate:a?180:0},transition:{ease:"linear",duration:.1},children:Y.jsx(zS,{className:kO,color:"text50"})})]}),Y.jsx(NS,{children:a&&Y.jsx(SO,{className:AO,asChild:!0,forceMount:!0,children:Y.jsx(ul.div,{initial:{opacity:n?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function bh(e){const t=e+"CollectionProvider",[r,n]=Ir(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:m,children:y}=v,w=ur.useRef(null),x=ur.useRef(new Map).current;return ur.createElement(i,{scope:m,itemMap:x,collectionRef:w},y)},a=e+"CollectionSlot",l=ur.forwardRef((v,m)=>{const{scope:y,children:w}=v,x=s(a,y),b=Pt(m,x.collectionRef);return ur.createElement(Rl,{ref:b},w)}),c=e+"CollectionItemSlot",f="data-radix-collection-item",u=ur.forwardRef((v,m)=>{const{scope:y,children:w,...x}=v,b=ur.useRef(null),S=Pt(m,b),A=s(c,y);return ur.useEffect(()=>(A.itemMap.set(b,{ref:b,...x}),()=>void A.itemMap.delete(b))),ur.createElement(Rl,{[f]:"",ref:S},w)});function d(v){const m=s(e+"CollectionConsumer",v);return ur.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((A,_)=>x.indexOf(A.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const _O=g.createContext(void 0);function wg(e){const t=g.useContext(_O);return e||t||"ltr"}function TO(e,t=globalThis==null?void 0:globalThis.document){const r=In(e);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const fp="dismissableLayer.update",MO="dismissableLayer.pointerDownOutside",IO="dismissableLayer.focusOutside";let S3;const NO=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eg=g.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=e,f=g.useContext(NO),[u,d]=g.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=g.useState({}),y=Pt(t,D=>d(D)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),S=u?w.indexOf(u):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,_=S>=b,O=$O(D=>{const G=D.target,J=[...f.branches].some(H=>H.contains(G));!_||J||(s==null||s(D),a==null||a(D),D.defaultPrevented||l==null||l())},v),$=OO(D=>{const G=D.target;[...f.branches].some(H=>H.contains(G))||(o==null||o(D),a==null||a(D),D.defaultPrevented||l==null||l())},v);return TO(D=>{S===f.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))},v),g.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(S3=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),A3(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=S3)}},[u,v,n,f]),g.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),A3())},[u,f]),g.useEffect(()=>{const D=()=>m({});return document.addEventListener(fp,D),()=>document.removeEventListener(fp,D)},[]),g.createElement(Qe.div,me({},c,{ref:y,style:{pointerEvents:A?_?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,$.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,O.onPointerDownCapture)}))});function $O(e,t=globalThis==null?void 0:globalThis.document){const r=In(e),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){qS(MO,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function OO(e,t=globalThis==null?void 0:globalThis.document){const r=In(e),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&qS(IO,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function A3(){const e=new CustomEvent(fp);document.dispatchEvent(e)}function qS(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?mg(i,s):i.dispatchEvent(s)}const DO=Eg;let rv=0;function HS(){g.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:k3()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:k3()),rv++,()=>{rv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),rv--}},[])}function k3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const nv="focusScope.autoFocusOnMount",iv="focusScope.autoFocusOnUnmount",P3={bubbles:!1,cancelable:!0},GS=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=e,[a,l]=g.useState(null),c=In(i),f=In(s),u=g.useRef(null),d=Pt(t,y=>l(y)),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let y=function(S){if(v.paused||!a)return;const A=S.target;a.contains(A)?u.current=A:Ds(u.current,{select:!0})},w=function(S){if(v.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ds(u.current,{select:!0}))},x=function(S){const A=document.activeElement;for(const _ of S)_.removedNodes.length>0&&(a!=null&&a.contains(A)||Ds(a))};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),g.useEffect(()=>{if(a){_3.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(nv,P3);a.addEventListener(nv,c),a.dispatchEvent(x),x.defaultPrevented||(BO(UO(WS(a)),{select:!0}),document.activeElement===y&&Ds(a))}return()=>{a.removeEventListener(nv,c),setTimeout(()=>{const x=new CustomEvent(iv,P3);a.addEventListener(iv,f),a.dispatchEvent(x),x.defaultPrevented||Ds(y??document.body,{select:!0}),a.removeEventListener(iv,f),_3.remove(v)},0)}}},[a,c,f,v]);const m=g.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[S,A]=LO(b);S&&A?!y.shiftKey&&x===A?(y.preventDefault(),r&&Ds(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&Ds(A,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return g.createElement(Qe.div,me({tabIndex:-1},o,{ref:d,onKeyDown:m}))});function BO(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ds(n,{select:t}),document.activeElement!==r)return}function LO(e){const t=WS(e),r=R3(t,e),n=R3(t.reverse(),e);return[r,n]}function WS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function R3(e,t){for(const r of e)if(!FO(r,{upTo:t}))return r}function FO(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function jO(e){return e instanceof HTMLInputElement&&"select"in e}function Ds(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&jO(e)&&t&&e.select()}}const _3=zO();function zO(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=T3(e,t),e.unshift(t)},remove(t){var r;e=T3(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function T3(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function UO(e){return e.filter(t=>t.tagName!=="A")}function ql(e){return e.split("-")[1]}function Cg(e){return e==="y"?"height":"width"}function ys(e){return e.split("-")[0]}function pa(e){return["top","bottom"].includes(ys(e))?"x":"y"}function M3(e,t,r){let{reference:n,floating:i}=e;const s=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2,a=pa(t),l=Cg(a),c=n[l]/2-i[l]/2,f=a==="x";let u;switch(ys(t)){case"top":u={x:s,y:n.y-i.height};break;case"bottom":u={x:s,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:o};break;case"left":u={x:n.x-i.width,y:o};break;default:u={x:n.x,y:n.y}}switch(ql(t)){case"start":u[a]-=c*(r&&f?-1:1);break;case"end":u[a]+=c*(r&&f?-1:1)}return u}const VO=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:u}=M3(c,n,l),d=n,v={},m=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e||{},{x:i,y:s,placement:o,rects:a,platform:l,elements:c}=t;if(r==null)return{};const f=KS(n),u={x:i,y:s},d=pa(o),v=Cg(d),m=await l.getDimensions(r),y=d==="y",w=y?"top":"left",x=y?"bottom":"right",b=y?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[d]-u[d]-a.floating[v],A=u[d]-a.reference[d],_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let O=_?_[b]:0;O&&await(l.isElement==null?void 0:l.isElement(_))||(O=c.floating[b]||a.floating[v]);const $=S/2-A/2,D=f[w],G=O-m[v]-f[x],J=O/2-m[v]/2+$,H=dp(D,J,G),Z=ql(o)!=null&&J!=H&&a.reference[v]/2-(Je.concat(t,t+"-start",t+"-end"),[]);const qO={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(e){return e.replace(/left|right|bottom|top/g,t=>qO[t])}function HO(e,t,r){r===void 0&&(r=!1);const n=ql(e),i=pa(e),s=Cg(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=P0(o)),{main:o,cross:P0(o)}}const GO={start:"end",end:"start"};function sv(e){return e.replace(/start|end/g,t=>GO[t])}const WO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:i,rects:s,initialPlacement:o,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=e,w=ys(n),x=ys(o)===o,b=await(a.isRTL==null?void 0:a.isRTL(l.floating)),S=u||(x||!m?[P0(o)]:function(H){const Z=P0(H);return[sv(H),Z,sv(Z)]}(o));u||v==="none"||S.push(...function(H,Z,I,h){const C=ql(H);let P=function(M,T,N){const B=["left","right"],k=["right","left"],p=["top","bottom"],R=["bottom","top"];switch(M){case"top":case"bottom":return N?T?k:B:T?B:k;case"left":case"right":return T?p:R;default:return[]}}(ys(H),I==="start",h);return C&&(P=P.map(M=>M+"-"+C),Z&&(P=P.concat(P.map(sv)))),P}(o,m,v,b));const A=[o,...S],_=await Kf(t,y),O=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&O.push(_[w]),f){const{main:H,cross:Z}=HO(n,s,b);O.push(_[H],_[Z])}if($=[...$,{placement:n,overflows:O}],!O.every(H=>H<=0)){var D,G;const H=(((D=i.flip)==null?void 0:D.index)||0)+1,Z=A[H];if(Z)return{data:{index:H,overflows:$},reset:{placement:Z}};let I=(G=$.filter(h=>h.overflows[0]<=0).sort((h,C)=>h.overflows[1]-C.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(d){case"bestFit":{var J;const h=(J=$.map(C=>[C.placement,C.overflows.filter(P=>P>0).reduce((P,M)=>P+M,0)]).sort((C,P)=>C[1]-P[1])[0])==null?void 0:J[0];h&&(I=h);break}case"initialPlacement":I=o}if(n!==I)return{reset:{placement:I}}}return{}}}};function N3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $3(e){return YS.some(t=>e[t]>=0)}const KO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:r="referenceHidden",...n}=e,{rects:i}=t;switch(r){case"referenceHidden":{const s=N3(await Kf(t,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$3(s)}}}case"escaped":{const s=N3(await Kf(t,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:$3(s)}}}default:return{}}}}},YO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,i=await async function(s,o){const{placement:a,platform:l,elements:c}=s,f=await(l.isRTL==null?void 0:l.isRTL(c.floating)),u=ys(a),d=ql(a),v=pa(a)==="x",m=["left","top"].includes(u)?-1:1,y=f&&v?-1:1,w=typeof o=="function"?o(s):o;let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return d&&typeof S=="number"&&(b=d==="end"?-1*S:S),v?{x:b*y,y:x*m}:{x:x*m,y:b*y}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function JS(e){return e==="x"?"y":"x"}const JO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=e,c={x:r,y:n},f=await Kf(t,l),u=pa(ys(i)),d=JS(u);let v=c[u],m=c[d];if(s){const w=u==="y"?"bottom":"right";v=dp(v+f[u==="y"?"top":"left"],v,v-f[w])}if(o){const w=d==="y"?"bottom":"right";m=dp(m+f[d==="y"?"top":"left"],m,m-f[w])}const y=a.fn({...t,[u]:v,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},QO=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=e,f={x:r,y:n},u=pa(i),d=JS(u);let v=f[u],m=f[d];const y=typeof a=="function"?a(t):a,w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=u==="y"?"height":"width",A=s.reference[u]-s.floating[S]+w.mainAxis,_=s.reference[u]+s.reference[S]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const S=u==="y"?"width":"height",A=["top","left"].includes(ys(i)),_=s.reference[d]-s.floating[S]+(A&&((x=o.offset)==null?void 0:x[d])||0)+(A?0:w.crossAxis),O=s.reference[d]+s.reference[S]+(A?0:((b=o.offset)==null?void 0:b[d])||0)-(A?w.crossAxis:0);m<_?m=_:m>O&&(m=O)}return{[u]:v,[d]:m}}}},XO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:s}=t,{apply:o=()=>{},...a}=e,l=await Kf(t,a),c=ys(r),f=ql(r),u=pa(r)==="x",{width:d,height:v}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,m=f==="end"?"top":"bottom");const w=v-l[m],x=d-l[y],b=!t.middlewareData.shift;let S=w,A=x;if(u){const O=d-l.left-l.right;A=f||b?up(x,O):O}else{const O=v-l.top-l.bottom;S=f||b?up(w,O):O}if(b&&!f){const O=Lo(l.left,0),$=Lo(l.right,0),D=Lo(l.top,0),G=Lo(l.bottom,0);u?A=d-2*(O!==0||$!==0?O+$:Lo(l.left,l.right)):S=v-2*(D!==0||G!==0?D+G:Lo(l.top,l.bottom))}await o({...t,availableWidth:A,availableHeight:S});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function _n(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oi(e){return _n(e).getComputedStyle(e)}function QS(e){return e instanceof _n(e).Node}function ho(e){return QS(e)?(e.nodeName||"").toLowerCase():""}function ci(e){return e instanceof _n(e).HTMLElement}function cn(e){return e instanceof _n(e).Element}function O3(e){return typeof ShadowRoot>"u"?!1:e instanceof _n(e).ShadowRoot||e instanceof ShadowRoot}function Yf(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function ZO(e){return["table","td","th"].includes(ho(e))}function hp(e){const t=Sg(),r=oi(e);return r.transform!=="none"||r.perspective!=="none"||!t&&!!r.backdropFilter&&r.backdropFilter!=="none"||!t&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Sg(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function wh(e){return["html","body","#document"].includes(ho(e))}const D3=Math.min,vf=Math.max,R0=Math.round;function XS(e){const t=oi(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=ci(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=R0(r)!==s||R0(n)!==o;return a&&(r=s,n=o),{width:r,height:n,fallback:a}}function ZS(e){return cn(e)?e:e.contextElement}const e7={x:1,y:1};function dl(e){const t=ZS(e);if(!ci(t))return e7;const r=t.getBoundingClientRect(),{width:n,height:i,fallback:s}=XS(t);let o=(s?R0(r.width):r.width)/n,a=(s?R0(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const B3={x:0,y:0};function t7(e,t,r){var n,i;if(t===void 0&&(t=!0),!Sg())return B3;const s=e?_n(e):window;return!r||t&&r!==s?B3:{x:((n=s.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function oa(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=ZS(e);let o=e7;t&&(n?cn(n)&&(o=dl(n)):o=dl(e));const a=t7(s,r,n);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,f=i.width/o.x,u=i.height/o.y;if(s){const d=_n(s),v=n&&cn(n)?_n(n):n;let m=d.frameElement;for(;m&&n&&v!==d;){const y=dl(m),w=m.getBoundingClientRect(),x=getComputedStyle(m);w.x+=(m.clientLeft+parseFloat(x.paddingLeft))*y.x,w.y+=(m.clientTop+parseFloat(x.paddingTop))*y.y,l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=w.x,c+=w.y,m=_n(m).frameElement}}return k0({width:f,height:u,x:l,y:c})}function oo(e){return((QS(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eh(e){return cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function r7(e){return oa(oo(e)).left+Eh(e).scrollLeft}function _l(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||O3(e)&&e.host||oo(e);return O3(t)?t.host:t}function n7(e){const t=_l(e);return wh(t)?t.ownerDocument.body:ci(t)&&Yf(t)?t:n7(t)}function yf(e,t){var r;t===void 0&&(t=[]);const n=n7(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=_n(n);return i?t.concat(s,s.visualViewport||[],Yf(n)?n:[]):t.concat(n,yf(n))}function L3(e,t,r){let n;if(t==="viewport")n=function(i,s){const o=_n(i),a=oo(i),l=o.visualViewport;let c=a.clientWidth,f=a.clientHeight,u=0,d=0;if(l){c=l.width,f=l.height;const v=Sg();(!v||v&&s==="fixed")&&(u=l.offsetLeft,d=l.offsetTop)}return{width:c,height:f,x:u,y:d}}(e,r);else if(t==="document")n=function(i){const s=oo(i),o=Eh(i),a=i.ownerDocument.body,l=vf(s.scrollWidth,s.clientWidth,a.scrollWidth,a.clientWidth),c=vf(s.scrollHeight,s.clientHeight,a.scrollHeight,a.clientHeight);let f=-o.scrollLeft+r7(i);const u=-o.scrollTop;return oi(a).direction==="rtl"&&(f+=vf(s.clientWidth,a.clientWidth)-l),{width:l,height:c,x:f,y:u}}(oo(e));else if(cn(t))n=function(i,s){const o=oa(i,!0,s==="fixed"),a=o.top+i.clientTop,l=o.left+i.clientLeft,c=ci(i)?dl(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:a*c.y}}(t,r);else{const i=t7(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return k0(n)}function i7(e,t){const r=_l(e);return!(r===t||!cn(r)||wh(r))&&(oi(r).position==="fixed"||i7(r,t))}function F3(e,t){return ci(e)&&oi(e).position!=="fixed"?t?t(e):e.offsetParent:null}function j3(e,t){const r=_n(e);if(!ci(e))return r;let n=F3(e,t);for(;n&&ZO(n)&&oi(n).position==="static";)n=F3(n,t);return n&&(ho(n)==="html"||ho(n)==="body"&&oi(n).position==="static"&&!hp(n))?r:n||function(i){let s=_l(i);for(;ci(s)&&!wh(s);){if(hp(s))return s;s=_l(s)}return null}(e)||r}function eD(e,t,r){const n=ci(t),i=oo(t),s=r==="fixed",o=oa(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&!s)if((ho(t)!=="body"||Yf(i))&&(a=Eh(t)),ci(t)){const c=oa(t,!0,s,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else i&&(l.x=r7(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}const tD={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=r==="clippingAncestors"?function(c,f){const u=f.get(c);if(u)return u;let d=yf(c).filter(w=>cn(w)&&ho(w)!=="body"),v=null;const m=oi(c).position==="fixed";let y=m?_l(c):c;for(;cn(y)&&!wh(y);){const w=oi(y),x=hp(y);x||w.position!=="fixed"||(v=null),(m?!x&&!v:!x&&w.position==="static"&&v&&["absolute","fixed"].includes(v.position)||Yf(y)&&!x&&i7(c,y))?d=d.filter(b=>b!==y):v=w,y=_l(y)}return f.set(c,d),d}(t,this._c):[].concat(r),o=[...s,n],a=o[0],l=o.reduce((c,f)=>{const u=L3(t,f,i);return c.top=vf(u.top,c.top),c.right=D3(u.right,c.right),c.bottom=D3(u.bottom,c.bottom),c.left=vf(u.left,c.left),c},L3(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=ci(r),s=oo(r);if(r===s)return t;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((ho(r)!=="body"||Yf(s))&&(o=Eh(r)),ci(r))){const c=oa(r);a=dl(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}},isElement:cn,getDimensions:function(e){return XS(e)},getOffsetParent:j3,getDocumentElement:oo,getScale:dl,async getElementRects(e){let{reference:t,floating:r,strategy:n}=e;const i=this.getOffsetParent||j3,s=this.getDimensions;return{reference:eD(t,await i(r),n),floating:{x:0,y:0,...await s(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>oi(e).direction==="rtl"};function rD(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:a=!1}=n,l=i||s?[...cn(e)?yf(e):e.contextElement?yf(e.contextElement):[],...yf(t)]:[];l.forEach(d=>{const v=!cn(d)&&d.toString().includes("V");!i||a&&!v||d.addEventListener("scroll",r,{passive:!0}),s&&d.addEventListener("resize",r)});let c,f=null;o&&(f=new ResizeObserver(()=>{r()}),cn(e)&&!a&&f.observe(e),cn(e)||!e.contextElement||a||f.observe(e.contextElement),f.observe(t));let u=a?oa(e):null;return a&&function d(){const v=oa(e);!u||v.x===u.x&&v.y===u.y&&v.width===u.width&&v.height===u.height||r(),u=v,c=requestAnimationFrame(d)}(),r(),()=>{var d;l.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),(d=f)==null||d.disconnect(),f=null,a&&cancelAnimationFrame(c)}}const nD=(e,t,r)=>{const n=new Map,i={platform:tD,...r},s={...i.platform,_c:n};return VO(e,t,{...i,platform:s})},iD=e=>{const{element:t,padding:r}=e;function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&n(t)?t.current!=null?I3({element:t.current,padding:r}).fn(i):{}:t?I3({element:t,padding:r}).fn(i):{}}}};var Bd=typeof document<"u"?g.useLayoutEffect:g.useEffect;function _0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!_0(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!_0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function s7(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z3(e,t){const r=s7(e);return Math.round(t*r)/r}function U3(e){const t=g.useRef(e);return Bd(()=>{t.current=e}),t}function sD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[f,u]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=g.useState(n);_0(d,n)||v(n);const[m,y]=g.useState(null),[w,x]=g.useState(null),b=g.useCallback(P=>{P!=O.current&&(O.current=P,y(P))},[y]),S=g.useCallback(P=>{P!==$.current&&($.current=P,x(P))},[x]),A=s||m,_=o||w,O=g.useRef(null),$=g.useRef(null),D=g.useRef(f),G=U3(l),J=U3(i),H=g.useCallback(()=>{if(!O.current||!$.current)return;const P={placement:t,strategy:r,middleware:d};J.current&&(P.platform=J.current),nD(O.current,$.current,P).then(M=>{const T={...M,isPositioned:!0};Z.current&&!_0(D.current,T)&&(D.current=T,Eo.flushSync(()=>{u(T)}))})},[d,t,r,J]);Bd(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(P=>({...P,isPositioned:!1})))},[c]);const Z=g.useRef(!1);Bd(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Bd(()=>{if(A&&(O.current=A),_&&($.current=_),A&&_){if(G.current)return G.current(A,_,H);H()}},[A,_,H,G]);const I=g.useMemo(()=>({reference:O,floating:$,setReference:b,setFloating:S}),[b,S]),h=g.useMemo(()=>({reference:A,floating:_}),[A,_]),C=g.useMemo(()=>{const P={position:r,left:0,top:0};if(!h.floating)return P;const M=z3(h.floating,f.x),T=z3(h.floating,f.y);return a?{...P,transform:"translate("+M+"px, "+T+"px)",...s7(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:T}},[r,a,h.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:H,refs:I,elements:h,floatingStyles:C}),[f,H,I,h,C])}const o7="Popper",[a7,Hl]=Ir(o7),[oD,l7]=a7(o7),aD=e=>{const{__scopePopper:t,children:r}=e,[n,i]=g.useState(null);return g.createElement(oD,{scope:t,anchor:n,onAnchorChange:i},r)},lD="PopperAnchor",cD=g.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=l7(lD,r),o=g.useRef(null),a=Pt(t,o);return g.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:g.createElement(Qe.div,me({},i,{ref:a}))}),c7="PopperContent",[fD,Lte]=a7(c7),uD=g.forwardRef((e,t)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:m=0,arrowPadding:y=0,collisionBoundary:w=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:S=!1,avoidCollisions:A=!0,onPlaced:_,...O}=e,$=l7(c7,f),[D,G]=g.useState(null),J=Pt(t,ce=>G(ce)),[H,Z]=g.useState(null),I=pg(H),h=(r=I==null?void 0:I.width)!==null&&r!==void 0?r:0,C=(n=I==null?void 0:I.height)!==null&&n!==void 0?n:0,P=u+(v!=="center"?"-"+v:""),M=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},T=Array.isArray(w)?w:[w],N=T.length>0,B={padding:M,boundary:T.filter(dD),altBoundary:N},{refs:k,floatingStyles:p,placement:R,isPositioned:L,middlewareData:E}=sD({strategy:"fixed",placement:P,whileElementsMounted:rD,elements:{reference:$.anchor},middleware:[YO({mainAxis:d+C,alignmentAxis:m}),A&&JO({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?QO():void 0,...B}),A&&WO({...B}),XO({...B,apply:({elements:ce,rects:xe,availableWidth:Sr,availableHeight:je})=>{const{width:Je,height:rn}=xe.reference,Ie=ce.floating.style;Ie.setProperty("--radix-popper-available-width",`${Sr}px`),Ie.setProperty("--radix-popper-available-height",`${je}px`),Ie.setProperty("--radix-popper-anchor-width",`${Je}px`),Ie.setProperty("--radix-popper-anchor-height",`${rn}px`)}}),H&&iD({element:H,padding:y}),hD({arrowWidth:h,arrowHeight:C}),S&&KO({strategy:"referenceHidden"})]}),[F,j]=f7(R),z=In(_);hn(()=>{L&&(z==null||z())},[L,z]);const K=(i=E.arrow)===null||i===void 0?void 0:i.x,ne=(s=E.arrow)===null||s===void 0?void 0:s.y,X=((o=E.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[te,Te]=g.useState();return hn(()=>{D&&Te(window.getComputedStyle(D).zIndex)},[D]),g.createElement("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...p,transform:L?p.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(a=E.transformOrigin)===null||a===void 0?void 0:a.x,(l=E.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},g.createElement(fD,{scope:f,placedSide:F,onArrowChange:Z,arrowX:K,arrowY:ne,shouldHideArrow:X},g.createElement(Qe.div,me({"data-side":F,"data-align":j},O,{ref:J,style:{...O.style,animation:L?void 0:"none",opacity:(c=E.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function dD(e){return e!==null}const hD=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,s,o;const{placement:a,rects:l,middlewareData:c}=t,u=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,d=u?0:e.arrowWidth,v=u?0:e.arrowHeight,[m,y]=f7(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let S="",A="";return m==="bottom"?(S=u?w:`${x}px`,A=`${-v}px`):m==="top"?(S=u?w:`${x}px`,A=`${l.floating.height+v}px`):m==="right"?(S=`${-v}px`,A=u?w:`${b}px`):m==="left"&&(S=`${l.floating.width+v}px`,A=u?w:`${b}px`),{data:{x:S,y:A}}}});function f7(e){const[t,r="center"]=e.split("-");return[t,r]}const vD=aD,yD=cD,pD=uD,u7=g.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?cT.createPortal(g.createElement(Qe.div,me({},i,{ref:t})),n):null}),ov="rovingFocusGroup.onEntryFocus",mD={bubbles:!1,cancelable:!0},Ag="RovingFocusGroup",[vp,d7,gD]=bh(Ag),[xD,Gl]=Ir(Ag,[gD]),[bD,wD]=xD(Ag),ED=g.forwardRef((e,t)=>g.createElement(vp.Provider,{scope:e.__scopeRovingFocusGroup},g.createElement(vp.Slot,{scope:e.__scopeRovingFocusGroup},g.createElement(CD,me({},e,{ref:t}))))),CD=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=e,u=g.useRef(null),d=Pt(t,u),v=wg(s),[m=null,y]=sa({prop:o,defaultProp:a,onChange:l}),[w,x]=g.useState(!1),b=In(c),S=d7(r),A=g.useRef(!1),[_,O]=g.useState(0);return g.useEffect(()=>{const $=u.current;if($)return $.addEventListener(ov,b),()=>$.removeEventListener(ov,b)},[b]),g.createElement(bD,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:m,onItemFocus:g.useCallback($=>y($),[y]),onItemShiftTab:g.useCallback(()=>x(!0),[]),onFocusableItemAdd:g.useCallback(()=>O($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>O($=>$-1),[])},g.createElement(Qe.div,me({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{A.current=!0}),onFocus:Se(e.onFocus,$=>{const D=!A.current;if($.target===$.currentTarget&&D&&!w){const G=new CustomEvent(ov,mD);if($.currentTarget.dispatchEvent(G),!G.defaultPrevented){const J=S().filter(C=>C.focusable),H=J.find(C=>C.active),Z=J.find(C=>C.id===m),h=[H,Z,...J].filter(Boolean).map(C=>C.ref.current);h7(h)}}A.current=!1}),onBlur:Se(e.onBlur,()=>x(!1))})))}),SD="RovingFocusGroupItem",AD=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=e,a=so(),l=s||a,c=wD(SD,r),f=c.currentTabStopId===l,u=d7(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return g.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),g.createElement(vp.ItemSlot,{scope:r,id:l,focusable:n,active:i},g.createElement(Qe.span,me({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:t,onMouseDown:Se(e.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:Se(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=RD(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(m.currentTarget);x=c.loop?_D(x,b+1):x.slice(b+1)}setTimeout(()=>h7(x))}})})))}),kD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function PD(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function RD(e,t,r){const n=PD(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return kD[n]}function h7(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function _D(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const TD=ED,v7=AD;var MD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sa=new WeakMap,od=new WeakMap,ad={},av=0,y7=function(e){return e&&(e.host||y7(e.parentNode))},ID=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=y7(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ND=function(e,t,r,n){var i=ID(t,Array.isArray(e)?e:[e]);ad[r]||(ad[r]=new WeakMap);var s=ad[r],o=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),m=v!==null&&v!=="false",y=(Sa.get(d)||0)+1,w=(s.get(d)||0)+1;Sa.set(d,y),s.set(d,w),o.push(d),y===1&&m&&od.set(d,!0),w===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return f(t),a.clear(),av++,function(){o.forEach(function(u){var d=Sa.get(u)-1,v=s.get(u)-1;Sa.set(u,d),s.set(u,v),d||(od.has(u)||u.removeAttribute(n),od.delete(u)),v||u.removeAttribute(r)}),av--,av||(Sa=new WeakMap,Sa=new WeakMap,od=new WeakMap,ad={})}},p7=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||MD(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),ND(n,i,r,"aria-hidden")):function(){return null}},Pi=function(){return Pi=Object.assign||function(t){for(var r,n=1,i=arguments.length;n"u")return JD;var t=QD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ZD=b7(),eB=function(e,t,r,n){var i=e.left,s=e.top,o=e.right,a=e.gap;return r===void 0&&(r="margin"),` + .`.concat(OD,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(a,"px ").concat(n,`; + } + body { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(s,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(Ld,` { + right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Fd,` { + margin-right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Ld," .").concat(Ld,` { + right: 0 `).concat(n,`; + } + + .`).concat(Fd," .").concat(Fd,` { + margin-right: 0 `).concat(n,`; + } + + body { + `).concat(DD,": ").concat(a,`px; + } +`)},tB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return XD(i)},[i]);return g.createElement(ZD,{styles:eB(s,!t,i,r?"":"!important")})},yp=!1;if(typeof window<"u")try{var ld=Object.defineProperty({},"passive",{get:function(){return yp=!0,!0}});window.addEventListener("test",ld,ld),window.removeEventListener("test",ld,ld)}catch{yp=!1}var Aa=yp?{passive:!1}:!1,rB=function(e){return e.tagName==="TEXTAREA"},w7=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!rB(e)&&r[t]==="visible")},nB=function(e){return w7(e,"overflowY")},iB=function(e){return w7(e,"overflowX")},V3=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=E7(e,r);if(n){var i=C7(e,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},sB=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},oB=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},E7=function(e,t){return e==="v"?nB(t):iB(t)},C7=function(e,t){return e==="v"?sB(t):oB(t)},aB=function(e,t){return e==="h"&&t==="rtl"?-1:1},lB=function(e,t,r,n,i){var s=aB(e,window.getComputedStyle(t).direction),o=s*n,a=r.target,l=t.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=C7(e,a),m=v[0],y=v[1],w=v[2],x=y-w-s*m;(m||x)&&E7(e,a)&&(u+=x,d+=m),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(f&&(i&&u===0||!i&&o>u)||!f&&(i&&d===0||!i&&-o>d))&&(c=!0),c},cd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},q3=function(e){return[e.deltaX,e.deltaY]},H3=function(e){return e&&"current"in e?e.current:e},cB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fB=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},uB=0,ka=[];function dB(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(uB++)[0],s=g.useState(function(){return b7()})[0],o=g.useRef(e);g.useEffect(function(){o.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=$D([e.lockRef.current],(e.shards||[]).map(H3),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=cd(y),b=r.current,S="deltaX"in y?y.deltaX:b[0]-x[0],A="deltaY"in y?y.deltaY:b[1]-x[1],_,O=y.target,$=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in y&&$==="h"&&O.type==="range")return!1;var D=V3($,O);if(!D)return!0;if(D?_=$:(_=$==="v"?"h":"v",D=V3($,O)),!D)return!1;if(!n.current&&"changedTouches"in y&&(S||A)&&(n.current=_),!_)return!0;var G=n.current||_;return lB(G,w,y,G==="h"?S:A,!0)},[]),l=g.useCallback(function(y){var w=y;if(!(!ka.length||ka[ka.length-1]!==s)){var x="deltaY"in w?q3(w):cd(w),b=t.current.filter(function(_){return _.name===w.type&&_.target===w.target&&cB(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(H3).filter(Boolean).filter(function(_){return _.contains(w.target)}),A=S.length>0?a(w,S[0]):!o.current.noIsolation;A&&w.cancelable&&w.preventDefault()}}},[]),c=g.useCallback(function(y,w,x,b){var S={name:y,delta:w,target:x,should:b};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(A){return A!==S})},1)},[]),f=g.useCallback(function(y){r.current=cd(y),n.current=void 0},[]),u=g.useCallback(function(y){c(y.type,q3(y),y.target,a(y,e.lockRef.current))},[]),d=g.useCallback(function(y){c(y.type,cd(y),y.target,a(y,e.lockRef.current))},[]);g.useEffect(function(){return ka.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Aa),document.addEventListener("touchmove",l,Aa),document.addEventListener("touchstart",f,Aa),function(){ka=ka.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,Aa),document.removeEventListener("touchmove",l,Aa),document.removeEventListener("touchstart",f,Aa)}},[]);var v=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(s,{styles:fB(i)}):null,v?g.createElement(tB,{gapMode:"margin"}):null)}const hB=VD(x7,dB);var S7=g.forwardRef(function(e,t){return g.createElement(Ch,Pi({},e,{ref:t,sideCar:hB}))});S7.classNames=Ch.classNames;const A7=S7,vB=["Enter"," "],Sh="Menu",[yB,Fte,pB]=bh(Sh),[ma,k7]=Ir(Sh,[pB,Hl,Gl]);Hl();const mB=Gl();ma(Sh);const[jte,gB]=ma(Sh),xB="MenuPortal";ma(xB,{forceMount:void 0});const bB="MenuContent",[zte,P7]=ma(bB),pp="MenuItem",G3="menu.itemSelect",R7=g.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,s=g.useRef(null),o=gB(pp,e.__scopeMenu),a=P7(pp,e.__scopeMenu),l=Pt(t,s),c=g.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(G3,{bubbles:!0,cancelable:!0});u.addEventListener(G3,v=>n==null?void 0:n(v),{once:!0}),mg(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return g.createElement(wB,me({},i,{ref:l,disabled:r,onClick:Se(e.onClick,f),onPointerDown:u=>{var d;(d=e.onPointerDown)===null||d===void 0||d.call(e,u),c.current=!0},onPointerUp:Se(e.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Se(e.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||vB.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),wB=g.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=e,o=P7(pp,r),a=mB(r),l=g.useRef(null),c=Pt(t,l),[f,u]=g.useState(!1),[d,v]=g.useState("");return g.useEffect(()=>{const m=l.current;if(m){var y;v(((y=m.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),g.createElement(yB.ItemSlot,{scope:r,disabled:n,textValue:i??d},g.createElement(v7,me({asChild:!0},a,{focusable:!n}),g.createElement(Qe.div,me({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Se(e.onPointerMove,W3(m=>{n?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(e.onPointerLeave,W3(m=>o.onItemLeave(m))),onFocus:Se(e.onFocus,()=>u(!0)),onBlur:Se(e.onBlur,()=>u(!1))}))))}),EB=g.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...i}=e;return g.createElement(T7,{scope:e.__scopeMenu,checked:r},g.createElement(R7,me({role:"menuitemcheckbox","aria-checked":T0(r)?"mixed":r},i,{ref:t,"data-state":kg(r),onSelect:Se(i.onSelect,()=>n==null?void 0:n(T0(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),CB="MenuRadioGroup",[Ute,SB]=ma(CB,{value:void 0,onValueChange:()=>{}}),AB="MenuRadioItem",kB=g.forwardRef((e,t)=>{const{value:r,...n}=e,i=SB(AB,e.__scopeMenu),s=r===i.value;return g.createElement(T7,{scope:e.__scopeMenu,checked:s},g.createElement(R7,me({role:"menuitemradio","aria-checked":s},n,{ref:t,"data-state":kg(s),onSelect:Se(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),_7="MenuItemIndicator",[T7,PB]=ma(_7,{checked:!1}),RB=g.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...i}=e,s=PB(_7,r);return g.createElement(So,{present:n||T0(s.checked)||s.checked===!0},g.createElement(Qe.span,me({},i,{ref:t,"data-state":kg(s.checked)})))}),_B="MenuSub";ma(_B);function T0(e){return e==="indeterminate"}function kg(e){return T0(e)?"indeterminate":e?"checked":"unchecked"}function W3(e){return t=>t.pointerType==="mouse"?e(t):void 0}const TB=EB,MB=kB,IB=RB,M7="DropdownMenu",[NB,Vte]=Ir(M7,[k7]),Pg=k7();NB(M7);const $B=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pg(r);return g.createElement(TB,me({},i,n,{ref:t}))}),OB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pg(r);return g.createElement(MB,me({},i,n,{ref:t}))}),DB=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Pg(r);return g.createElement(IB,me({},i,n,{ref:t}))}),BB=$B,LB=OB,I7=DB;var N7="_1k2mbvi5",$7="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12vk fyvr12ve fyvr11h0 fyvr11ko fyvr11jw fyvr12tz fyvr11n2 fyvr11hw fyvr12r5";const FB=({children:e})=>Y.jsx(I7,{className:N7,children:e});g.forwardRef(({className:e,children:t,...r},n)=>Y.jsxs(BB,{className:tn($7,e),...r,ref:n,children:[Y.jsx(FB,{children:Y.jsx(jS,{size:"xs"})}),Y.jsx(Be,{variant:"small",children:t})]}));g.forwardRef(({className:e,children:t,...r},n)=>Y.jsxs(LB,{className:tn($7,e),...r,ref:n,children:[Y.jsx(I7,{className:N7,children:Y.jsx(Be,{children:"•"})}),Y.jsx(Be,{variant:"small",children:t})]}));const Rg=g.forwardRef((e,t)=>{const{icon:r,size:n="md",...i}=e;return Y.jsx(Xr,{leftIcon:r,size:n,flexShrink:"0",ref:t,...i})}),jB=(...e)=>t=>e.forEach(r=>{r&&(typeof r=="function"?r(t):r.current=t)});var zB="fyvr12vh fyvr12vb fyvr11ho fyvr12ub fyvr1ko fyvr1oo fyvr1mo fyvr1qo",UB="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mt fyvr12fn fyvr121b fyvr128h fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",VB=jt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const qB={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"};g.forwardRef((e,t)=>{const{borderRadius:r="md",description:n,disabled:i=!1,id:s,label:o="",labelLocation:a="hidden",name:l,onValueChange:c,placeholder:f="Upload a file",validExtensions:u,...d}=e,v=g.useRef(null),m=jB(v,t),[y,w]=g.useState(null),x=S=>{const A=S.currentTarget.files;if(!A||!A[0])return;const _=A[0],O=_.name,$=_.size/1e3;w({name:O,size:$,extension:O.split(".").pop()??""}),c==null||c(_)},b=u.map(S=>qB[S]).join(",");return Y.jsx(Vl,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:Y.jsx(ie,{width:"full",children:Y.jsxs(ie,{justifyContent:y?"space-between":"flex-start",color:y?"text100":"text50",className:tn(UB,VB({borderRadius:r})),children:[y?Y.jsxs(ie,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[Y.jsx(Be,{children:y.name}),Y.jsxs(Be,{color:"text50",variant:"xsmall",children:[y.size.toFixed(2)," kb"]})]}):Y.jsx(Be,{children:f}),Y.jsx(ie,{accept:b,as:"input",className:zB,cursor:y?"text":"pointer",disabled:i||!!y,id:s??l,name:l,onChange:x,ref:m,type:"file",...d}),y&&Y.jsx(Rg,{cursor:"pointer",icon:gg,size:"xs",onClick:S=>{var A;S.preventDefault(),S.stopPropagation(),(A=v.current)!=null&&A.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})})});var HB=jt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const mp=1e3,hl=64,fv=hl/2,uv=(e,t=mp)=>e%t/(mp/hl),Fo=(e,t=0)=>{let r=3735928559^t,n=1103547991^t;for(let i=0,s;i>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},GB=(e,t,r)=>{const n=Math.random().toString(36).slice(2,12),i=e%360,s=(e+120)%360,o=r%360;return{id:Fo(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},WB=(e,t)=>{const r=[];for(let n=0;n{const s=hl/10+uv(n.r,mp*1.5/(i+1));return{...GB(n.a,n.b,n.c),x:uv(n.x),y:uv(n.y),r:s}})};g.memo(e=>{const{className:t,address:r,size:n="md",complexity:i=1,...s}=e,o=WB(r,i);return Y.jsxs(ie,{as:"svg",className:tn(t,HB({size:n})),viewBox:`0 0 ${hl} ${hl}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[Y.jsxs("defs",{children:[Y.jsx("clipPath",{id:"circle-clip",children:Y.jsx("circle",{cx:fv,cy:fv,r:fv})}),Y.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:hl/10,result:"effect1_foregroundBlur"})]}),Y.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[Y.jsx("stop",{offset:"0",stopColor:o[0].c}),Y.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>Y.jsxs(g.Fragment,{children:[Y.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[Y.jsx("stop",{offset:"0",stopColor:a.a}),Y.jsx("stop",{offset:"1",stopColor:a.b})]}),Y.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[Y.jsx("stop",{offset:"0",stopColor:a.c}),Y.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),Y.jsxs("g",{clipPath:"url(#circle-clip)",children:[Y.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),Y.jsx("g",{filter:"url(#blur)",children:o.map(a=>Y.jsxs(g.Fragment,{children:[Y.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),Y.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const KB=e=>{const{disableAnimation:t=!1,onLoad:r,...n}=e,[i,s]=g.useState(!1),o=a=>{s(!0),r==null||r(a)};return Y.jsx(ie,{as:ul.img,initial:t?void 0:{opacity:0},animate:t?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:t?void 0:o,...n})},O7="Dialog",[D7,qte]=Ir(O7),[YB,Ao]=D7(O7),JB=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=e,a=g.useRef(null),l=g.useRef(null),[c=!1,f]=sa({prop:n,defaultProp:i,onChange:s});return g.createElement(YB,{scope:t,triggerRef:a,contentRef:l,contentId:so(),titleId:so(),descriptionId:so(),open:c,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(u=>!u),[f]),modal:o},r)},B7="DialogPortal",[QB,L7]=D7(B7,{forceMount:void 0}),XB=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=Ao(B7,t);return g.createElement(QB,{scope:t,forceMount:r},g.Children.map(n,o=>g.createElement(So,{present:r||s.open},g.createElement(u7,{asChild:!0,container:i},o))))},gp="DialogOverlay",ZB=g.forwardRef((e,t)=>{const r=L7(gp,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=Ao(gp,e.__scopeDialog);return s.modal?g.createElement(So,{present:n||s.open},g.createElement(eL,me({},i,{ref:t}))):null}),eL=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ao(gp,r);return g.createElement(A7,{as:Rl,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(Qe.div,me({"data-state":j7(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),Jf="DialogContent",tL=g.forwardRef((e,t)=>{const r=L7(Jf,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=Ao(Jf,e.__scopeDialog);return g.createElement(So,{present:n||s.open},s.modal?g.createElement(rL,me({},i,{ref:t})):g.createElement(nL,me({},i,{ref:t})))}),rL=g.forwardRef((e,t)=>{const r=Ao(Jf,e.__scopeDialog),n=g.useRef(null),i=Pt(t,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return p7(s)},[]),g.createElement(F7,me({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Se(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Se(e.onFocusOutside,s=>s.preventDefault())}))}),nL=g.forwardRef((e,t)=>{const r=Ao(Jf,e.__scopeDialog),n=g.useRef(!1),i=g.useRef(!1);return g.createElement(F7,me({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,s),!s.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=e.onInteractOutside)===null||o===void 0||o.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),F7=g.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=e,a=Ao(Jf,r),l=g.useRef(null),c=Pt(t,l);return HS(),g.createElement(g.Fragment,null,g.createElement(GS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(Eg,me({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":j7(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),iL="DialogClose",sL=g.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Ao(iL,r);return g.createElement(Qe.button,me({type:"button"},n,{ref:t,onClick:Se(e.onClick,()=>i.onOpenChange(!1))}))});function j7(e){return e?"open":"closed"}const oL=JB,aL=XB,lL=ZB,cL=tL,fL=sL;var uL=jt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),dL=jt({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const hL=e=>{const{children:t,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=e;return Y.jsx(ie,{className:uL({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:Y.jsx(ie,{className:dL({direction:n}),background:"backgroundPrimary",...i,children:t})})};var vL="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",yL=jt({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12vk fyvr12ve fyvr11h0 fyvr11i4 fyvr11hs fyvr11pn fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),pL="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",mL="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const gL=e=>{const{autoHeight:t=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:i=!1,isDismissible:s=!0,onClose:o,scroll:a=!0,size:l="lg",overlayProps:c,contentProps:f}=e;return Y.jsx(oL,{modal:!0,defaultOpen:!0,onOpenChange:o,children:Y.jsx(aL,{forceMount:!0,children:Y.jsxs(ie,{className:mL,children:[Y.jsx(ie,{as:lL,asChild:!0,background:r,className:pL,forceMount:!0,children:Y.jsx(ul.div,{initial:i?!1:{opacity:0},animate:i?!1:{opacity:1},exit:i?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...c},"modal-overlay")}),Y.jsx(cL,{asChild:!0,className:yL({autoHeight:t,size:l}),forceMount:!0,onEscapeKeyDown:u=>{s?o==null||o():u.preventDefault()},onInteractOutside:u=>{s||u.preventDefault()},children:Y.jsxs(ul.div,{initial:i?!1:{y:"100%",opacity:l==="sm"?0:1},animate:i?!1:{y:0,opacity:1},exit:i?void 0:{y:"100%",opacity:l==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...f,children:[a?Y.jsx(hL,{children:n}):n,s&&Y.jsx(fL,{asChild:!0,children:Y.jsx(Rg,{icon:gg,backdropFilter:"blur",size:"xs",className:vL,"aria-label":"Close"})})]},"modal-content")})]})})})};var xL=jt({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12vh fyvr12vb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),bL="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rh fyvr1g0 fyvr118g",wL=jt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const br=g.forwardRef((e,t)=>{const{as:r="input",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",leftIcon:f,rightIcon:u,name:d,controls:v,type:m="text",numeric:y=!1,...w}=e;return Y.jsx(Vl,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:Y.jsx(ie,{width:"full",children:Y.jsxs(ie,{className:tn(bL,wL({borderRadius:i})),children:[f&&Y.jsx(f,{size:"sm"}),Y.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:xL({numeric:y}),disabled:o,id:a??d,name:d,ref:t,type:m,...w}),u&&Y.jsx(u,{size:"sm"}),v]})})})}),EL=RegExp("^\\d*(?:\\\\[.])?\\d*$");function CL(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}g.forwardRef((e,t)=>{const{name:r="amount",placeholder:n,onChange:i,onBlur:s,...o}=e,a=c=>{let{value:f}=c.target;f=f.replace(/,/g,"."),f.startsWith(".")&&(f="0"+f),f.startsWith("0")&&(f=f.replace(/^0+(?=\d)/,"")),(f===""||EL.test(CL(f)))&&(i==null||i({...c,target:{...c.target,value:f}}))},l=c=>{const{value:f}=c.target;let u=f;u.endsWith(".")&&(u=u.slice(0,-1)),u.endsWith(".0")&&(u=u.slice(0,-2)),u==="0"&&(u=""),s==null||s(c),u!==f&&(i==null||i({...c,target:{...c.target,value:u}}))};return Y.jsx(br,{name:r,onChange:a,onBlur:l,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:t,...o})});jt({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const z7="Progress",Ah=100,[SL,Hte]=Ir(z7),[AL,Gte]=SL(z7),kL=g.forwardRef((e,t)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=PL,...o}=e,a=xp(i)?i:Ah,l=U7(n,a)?n:null,c=M0(l)?s(l,a):void 0;return g.createElement(AL,{scope:r,value:l,max:a},g.createElement(Qe.div,me({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":M0(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":RL(l,a),"data-value":l??void 0,"data-max":a},o,{ref:t})))});kL.propTypes={max(e,t,r){const n=e[t],i=String(n);return n&&!xp(n)?new Error(_L(i,r)):null},value(e,t,r){const n=e[t],i=String(n),s=xp(e.max)?e.max:Ah;return n!=null&&!U7(n,s)?new Error(TL(i,r)):null}};function PL(e,t){return`${Math.round(e/t*100)}%`}function RL(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function M0(e){return typeof e=="number"}function xp(e){return M0(e)&&!isNaN(e)&&e>0}function U7(e,t){return M0(e)&&!isNaN(e)&&e<=t&&e>=0}function _L(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ah}\`.`}function TL(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${Ah} if no \`max\` prop is set) + - \`null\` if the progress is indeterminate. + +Defaulting to \`null\`.`}const V7="Radio",[ML,q7]=Ir(V7),[IL,NL]=ML(V7),$L=g.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=e,[f,u]=g.useState(null),d=Pt(t,y=>u(y)),v=g.useRef(!1),m=f?!!f.closest("form"):!0;return g.createElement(IL,{scope:r,checked:i,disabled:o},g.createElement(Qe.button,me({type:"button",role:"radio","aria-checked":i,"data-state":H7(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Se(e.onClick,y=>{i||l==null||l(),m&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),m&&g.createElement(BL,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),OL="RadioIndicator",DL=g.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,s=NL(OL,r);return g.createElement(So,{present:n||s.checked},g.createElement(Qe.span,me({"data-state":H7(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:t})))}),BL=e=>{const{control:t,checked:r,bubbles:n=!0,...i}=e,s=g.useRef(null),o=yg(r),a=pg(t);return g.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function H7(e){return e?"checked":"unchecked"}const LL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G7="RadioGroup",[FL,Wte]=Ir(G7,[Gl,q7]),W7=Gl(),K7=q7(),[jL,zL]=FL(G7),UL=g.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:f=!0,onValueChange:u,...d}=e,v=W7(r),m=wg(c),[y,w]=sa({prop:s,defaultProp:i,onChange:u});return g.createElement(jL,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},g.createElement(TD,me({asChild:!0},v,{orientation:l,dir:m,loop:f}),g.createElement(Qe.div,me({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m},d,{ref:t}))))}),VL="RadioGroupItem",qL=g.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...i}=e,s=zL(VL,r),o=s.disabled||n,a=W7(r),l=K7(r),c=g.useRef(null),f=Pt(t,c),u=s.value===i.value,d=g.useRef(!1);return g.useEffect(()=>{const v=y=>{LL.includes(y.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",m)}},[]),g.createElement(v7,me({asChild:!0},a,{focusable:!o,active:u}),g.createElement($L,me({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Se(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Se(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),HL=g.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=K7(r);return g.createElement(DL,me({},i,n,{ref:t}))}),GL=UL,WL=qL,KL=HL;var YL=jt({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rh",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),JL=jt({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11ob fyvr12tz fyvr12tv fyvr12uj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const QL=e=>{const{id:t,label:r,size:n="sm",value:i,disabled:s}=e;return Y.jsx(ie,{alignItems:"center",children:Y.jsx(Vl,{disabled:s,display:"flex",id:t,label:r,labelLocation:"right",children:Y.jsx(WL,{className:JL({size:n}),value:i,id:t,disabled:s,children:Y.jsx(KL,{className:YL({size:n})})})})})};g.forwardRef((e,t)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=e;return Y.jsx(GL,{disabled:n,name:s,ref:t,...l,children:Y.jsx(ie,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>Y.jsx(QL,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function K3(e,[t,r]){return Math.min(r,Math.max(t,e))}const Y7=g.forwardRef((e,t)=>g.createElement(Qe.span,me({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),XL=[" ","Enter","ArrowUp","ArrowDown"],ZL=[" ","Enter"],kh="Select",[Ph,_g,eF]=bh(kh),[Wl,Kte]=Ir(kh,[eF,Hl]),Tg=Hl(),[tF,ga]=Wl(kh),[rF,nF]=Wl(kh),iF=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:d,required:v}=e,m=Tg(t),[y,w]=g.useState(null),[x,b]=g.useState(null),[S,A]=g.useState(!1),_=wg(c),[O=!1,$]=sa({prop:n,defaultProp:i,onChange:s}),[D,G]=sa({prop:o,defaultProp:a,onChange:l}),J=g.useRef(null),H=y?!!y.closest("form"):!0,[Z,I]=g.useState(new Set),h=Array.from(Z).map(C=>C.props.value).join(";");return g.createElement(vD,m,g.createElement(tF,{required:v,scope:t,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:so(),value:D,onValueChange:G,open:O,onOpenChange:$,dir:_,triggerPointerDownPosRef:J,disabled:d},g.createElement(Ph.Provider,{scope:t},g.createElement(rF,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(C=>{I(P=>new Set(P).add(C))},[]),onNativeOptionRemove:g.useCallback(C=>{I(P=>{const M=new Set(P);return M.delete(C),M})},[])},r)),H?g.createElement(Q7,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:D,onChange:C=>G(C.target.value),disabled:d},D===void 0?g.createElement("option",{value:""}):null,Array.from(Z)):null))},sF="SelectTrigger",oF=g.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,s=Tg(r),o=ga(sF,r),a=o.disabled||n,l=Pt(t,o.onTriggerChange),c=_g(r),[f,u,d]=X7(m=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=Z7(y,m,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return g.createElement(yD,me({asChild:!0},s),g.createElement(Qe.button,me({type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":o.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const y=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(y&&m.key===" ")&&XL.includes(m.key)&&(v(),m.preventDefault())})})))}),aF="SelectValue",lF=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o,...a}=e,l=ga(aF,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=Pt(t,l.onValueNodeChange);return hn(()=>{c(f)},[c,f]),g.createElement(Qe.span,me({},a,{ref:u,style:{pointerEvents:"none"}}),l.value===void 0&&o!==void 0?o:s)}),cF=g.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return g.createElement(Qe.span,me({"aria-hidden":!0},i,{ref:t}),n||"▼")}),Tl="SelectContent",fF=g.forwardRef((e,t)=>{const r=ga(Tl,e.__scopeSelect),[n,i]=g.useState();if(hn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?Eo.createPortal(g.createElement(J7,{scope:e.__scopeSelect},g.createElement(Ph.Slot,{scope:e.__scopeSelect},g.createElement("div",null,e.children))),s):null}return g.createElement(uF,me({},e,{ref:t}))}),ns=10,[J7,Rh]=Wl(Tl),uF=g.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w,...x}=e,b=ga(Tl,r),[S,A]=g.useState(null),[_,O]=g.useState(null),$=Pt(t,j=>A(j)),[D,G]=g.useState(null),[J,H]=g.useState(null),Z=_g(r),[I,h]=g.useState(!1),C=g.useRef(!1);g.useEffect(()=>{if(S)return p7(S)},[S]),HS();const P=g.useCallback(j=>{const[z,...K]=Z().map(te=>te.ref.current),[ne]=K.slice(-1),X=document.activeElement;for(const te of j)if(te===X||(te==null||te.scrollIntoView({block:"nearest"}),te===z&&_&&(_.scrollTop=0),te===ne&&_&&(_.scrollTop=_.scrollHeight),te==null||te.focus(),document.activeElement!==X))return},[Z,_]),M=g.useCallback(()=>P([D,S]),[P,D,S]);g.useEffect(()=>{I&&M()},[I,M]);const{onOpenChange:T,triggerPointerDownPosRef:N}=b;g.useEffect(()=>{if(S){let j={x:0,y:0};const z=ne=>{var X,te,Te,ce;j={x:Math.abs(Math.round(ne.pageX)-((X=(te=N.current)===null||te===void 0?void 0:te.x)!==null&&X!==void 0?X:0)),y:Math.abs(Math.round(ne.pageY)-((Te=(ce=N.current)===null||ce===void 0?void 0:ce.y)!==null&&Te!==void 0?Te:0))}},K=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():S.contains(ne.target)||T(!1),document.removeEventListener("pointermove",z),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",K,{capture:!0})}}},[S,T,N]),g.useEffect(()=>{const j=()=>T(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[T]);const[B,k]=X7(j=>{const z=Z().filter(X=>!X.disabled),K=z.find(X=>X.ref.current===document.activeElement),ne=Z7(z,j,K);ne&&setTimeout(()=>ne.ref.current.focus())}),p=g.useCallback((j,z,K)=>{const ne=!C.current&&!K;(b.value!==void 0&&b.value===z||ne)&&(G(j),ne&&(C.current=!0))},[b.value]),R=g.useCallback(()=>S==null?void 0:S.focus(),[S]),L=g.useCallback((j,z,K)=>{const ne=!C.current&&!K;(b.value!==void 0&&b.value===z||ne)&&H(j)},[b.value]),E=n==="popper"?Y3:dF,F=E===Y3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w}:{};return g.createElement(J7,{scope:r,content:S,viewport:_,onViewportChange:O,itemRefCallback:p,selectedItem:D,onItemLeave:R,itemTextRefCallback:L,focusSelectedItem:M,selectedItemText:J,position:n,isPositioned:I,searchRef:B},g.createElement(A7,{as:Rl,allowPinchZoom:!0},g.createElement(GS,{asChild:!0,trapped:b.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:Se(i,j=>{var z;(z=b.trigger)===null||z===void 0||z.focus({preventScroll:!0}),j.preventDefault()})},g.createElement(Eg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},g.createElement(E,me({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:j=>j.preventDefault()},x,F,{onPlaced:()=>h(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,j=>{const z=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!z&&j.key.length===1&&k(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=Z().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const X=j.target,te=ne.indexOf(X);ne=ne.slice(te+1)}setTimeout(()=>P(ne)),j.preventDefault()}})}))))))}),dF=g.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,s=ga(Tl,r),o=Rh(Tl,r),[a,l]=g.useState(null),[c,f]=g.useState(null),u=Pt(t,$=>f($)),d=_g(r),v=g.useRef(!1),m=g.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const $=s.trigger.getBoundingClientRect(),D=c.getBoundingClientRect(),G=s.valueNode.getBoundingClientRect(),J=x.getBoundingClientRect();if(s.dir!=="rtl"){const X=J.left-D.left,te=G.left-X,Te=$.left-te,ce=$.width+Te,xe=Math.max(ce,D.width),Sr=window.innerWidth-ns,je=K3(te,[ns,Sr-xe]);a.style.minWidth=ce+"px",a.style.left=je+"px"}else{const X=D.right-J.right,te=window.innerWidth-G.right-X,Te=window.innerWidth-$.right-te,ce=$.width+Te,xe=Math.max(ce,D.width),Sr=window.innerWidth-ns,je=K3(te,[ns,Sr-xe]);a.style.minWidth=ce+"px",a.style.right=je+"px"}const H=d(),Z=window.innerHeight-ns*2,I=y.scrollHeight,h=window.getComputedStyle(c),C=parseInt(h.borderTopWidth,10),P=parseInt(h.paddingTop,10),M=parseInt(h.borderBottomWidth,10),T=parseInt(h.paddingBottom,10),N=C+P+I+T+M,B=Math.min(w.offsetHeight*5,N),k=window.getComputedStyle(y),p=parseInt(k.paddingTop,10),R=parseInt(k.paddingBottom,10),L=$.top+$.height/2-ns,E=Z-L,F=w.offsetHeight/2,j=w.offsetTop+F,z=C+P+j,K=N-z;if(z<=L){const X=w===H[H.length-1].ref.current;a.style.bottom="0px";const te=c.clientHeight-y.offsetTop-y.offsetHeight,Te=Math.max(E,F+(X?R:0)+te+M),ce=z+Te;a.style.height=ce+"px"}else{const X=w===H[0].ref.current;a.style.top="0px";const Te=Math.max(L,C+y.offsetTop+(X?p:0)+F)+K;a.style.height=Te+"px",y.scrollTop=z-L+y.offsetTop}a.style.margin=`${ns}px 0`,a.style.minHeight=B+"px",a.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);hn(()=>S(),[S]);const[A,_]=g.useState();hn(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const O=g.useCallback($=>{$&&m.current===!0&&(S(),b==null||b(),m.current=!1)},[S,b]);return g.createElement(hF,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:O},g.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A}},g.createElement(Qe.div,me({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),Y3=g.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=ns,...s}=e,o=Tg(r);return g.createElement(pD,me({},o,s,{ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[hF,vF]=Wl(Tl,{}),J3="SelectViewport",yF=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Rh(J3,r),s=vF(J3,r),o=Pt(t,i.onViewportChange),a=g.useRef(0);return g.createElement(g.Fragment,null,g.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),g.createElement(Ph.Slot,{scope:r},g.createElement(Qe.div,me({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-ns*2,m=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(m,y);if(w0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),pF="SelectGroup",[mF,Yte]=Wl(pF),gF=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=so();return g.createElement(mF,{scope:r,id:i},g.createElement(Qe.div,me({role:"group","aria-labelledby":i},n,{ref:t})))}),bp="SelectItem",[xF,bF]=Wl(bp),wF=g.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=e,a=ga(bp,r),l=Rh(bp,r),c=a.value===n,[f,u]=g.useState(s??""),[d,v]=g.useState(!1),m=Pt(t,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=so(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};return g.createElement(xF,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:g.useCallback(x=>{u(b=>{var S;return b||((S=x==null?void 0:x.textContent)!==null&&S!==void 0?S:"").trim()})},[])},g.createElement(Ph.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},g.createElement(Qe.div,me({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:m,onFocus:Se(o.onFocus,()=>v(!0)),onBlur:Se(o.onBlur,()=>v(!1)),onPointerUp:Se(o.onPointerUp,w),onPointerMove:Se(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Se(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(ZL.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),fd="SelectItemText",EF=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...s}=e,o=ga(fd,r),a=Rh(fd,r),l=bF(fd,r),c=nF(fd,r),[f,u]=g.useState(null),d=Pt(t,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,m=g.useMemo(()=>g.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return hn(()=>(y(m),()=>w(m)),[y,w,m]),g.createElement(g.Fragment,null,g.createElement(Qe.span,me({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Eo.createPortal(s.children,o.valueNode):null)}),Q7=g.forwardRef((e,t)=>{const{value:r,...n}=e,i=g.useRef(null),s=Pt(t,i),o=yg(r);return g.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&f){const u=new Event("change",{bubbles:!0});f.call(a,r),a.dispatchEvent(u)}},[o,r]),g.createElement(Y7,{asChild:!0},g.createElement("select",me({},n,{ref:s,defaultValue:r})))});Q7.displayName="BubbleSelect";function X7(e){const t=In(e),r=g.useRef(""),n=g.useRef(0),i=g.useCallback(o=>{const a=r.current+o;t(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function Z7(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let o=CF(e,Math.max(s,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function CF(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const SF=iF,AF=oF,kF=lF,PF=cF,RF=fF,_F=yF,TF=gF,MF=wF,IF=EF;var NF="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11rb fyvr12rh fyvr11nj",$F="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12vk fyvr12vl fyvr12ve fyvr12vf fyvr11h0 fyvr11jw fyvr11ko fyvr12tz fyvr12tv fyvr12rh fyvr12ut fyvr12uj",OF="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rh fyvr118c fyvr11jw fyvr11n2 fyvr12tz",DF=jt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const BF=g.forwardRef(({children:e,className:t,...r},n)=>Y.jsx(MF,{className:tn($F,t),...r,ref:n,children:Y.jsx(IF,{children:e})})),eA=g.forwardRef((e,t)=>{const{borderRadius:r="md",disabled:n=!1,id:i,label:s="",description:o,labelLocation:a="hidden",name:l,options:c,placeholder:f,...u}=e;return Y.jsx(Vl,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:Y.jsxs(SF,{disabled:n,name:l,...u,children:[Y.jsxs(AF,{id:i??l,className:tn(OF,DF({borderRadius:r})),ref:t,children:[Y.jsx(kF,{placeholder:f}),Y.jsx(ie,{as:PF,display:"inline-flex",children:Y.jsx(zS,{})})]}),Y.jsx(RF,{className:NF,children:Y.jsx(_F,{children:Y.jsx(TF,{children:c.map(({value:d,label:v,...m})=>Y.jsx(BF,{value:d,...m,children:v},d))})})})]})})});g.forwardRef((e,t)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=e,l=o?Y.jsx(Rg,{icon:gg,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return Y.jsx(br,{ref:t,name:s,leftIcon:cO,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var LF=jt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const ws=g.forwardRef((e,t)=>{const{size:r="md",...n}=e;return Y.jsx(ie,{className:LF({size:r}),color:"text50",ref:t,...n,children:Y.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[Y.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),Y.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});g.forwardRef(({children:e},t)=>Y.jsx(ie,{ref:t,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:e}));const tA="Switch",[FF,Jte]=Ir(tA);FF(tA);jt({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12ux",false:"nwwh3zb"},disabled:{true:"fyvr12uh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11rn fyvr12rn"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rb"],[{active:!0,variant:"line"},"fyvr12rh"],[{active:!1,variant:"line"},"fyvr12rb"]]});const rA="Tabs",[jF,Qte]=Ir(rA,[Gl]);Gl();jF(rA);var zF="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";g.forwardRef((e,t)=>{const{icon:r,label:n,...i}=e;return Y.jsxs(ie,{className:zF,ref:t,background:"buttonGlass",...i,children:[r&&Y.jsx(r,{size:"xs"}),Y.jsx(Be,{children:n})]})});const UF="ToastProvider",[VF,Xte,qF]=bh("Toast"),[nA,Zte]=Ir("Toast",[qF]),[ere,iA]=nA(UF),Q3="toast.viewportPause",X3="toast.viewportResume",_h="Toast",HF="toast.swipeStart",GF="toast.swipeMove",WF="toast.swipeCancel",KF="toast.swipeEnd",[YF,JF]=nA(_h,{onClose(){}}),QF=g.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:d,onSwipeEnd:v,...m}=e,y=iA(_h,r),[w,x]=g.useState(null),b=Pt(t,h=>x(h)),S=g.useRef(null),A=g.useRef(null),_=i||y.duration,O=g.useRef(0),$=g.useRef(_),D=g.useRef(0),{onToastAdd:G,onToastRemove:J}=y,H=In(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),Z=g.useCallback(h=>{!h||h===1/0||(window.clearTimeout(D.current),O.current=new Date().getTime(),D.current=window.setTimeout(H,h))},[H]);g.useEffect(()=>{const h=y.viewport;if(h){const C=()=>{Z($.current),c==null||c()},P=()=>{const M=new Date().getTime()-O.current;$.current=$.current-M,window.clearTimeout(D.current),l==null||l()};return h.addEventListener(Q3,P),h.addEventListener(X3,C),()=>{h.removeEventListener(Q3,P),h.removeEventListener(X3,C)}}},[y.viewport,_,l,c,Z]),g.useEffect(()=>{s&&!y.isClosePausedRef.current&&Z(_)},[s,_,y.isClosePausedRef,Z]),g.useEffect(()=>(G(),()=>J()),[G,J]);const I=g.useMemo(()=>w?oA(w):null,[w]);return y.viewport?g.createElement(g.Fragment,null,I&&g.createElement(XF,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),g.createElement(YF,{scope:r,onClose:H},Eo.createPortal(g.createElement(VF.ItemSlot,{scope:r},g.createElement(DO,{asChild:!0,onEscapeKeyDown:Se(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||H(),y.isFocusedToastEscapeKeyDownRef.current=!1})},g.createElement(Qe.li,me({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},m,{ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:Se(e.onPointerDown,h=>{h.button===0&&(S.current={x:h.clientX,y:h.clientY})}),onPointerMove:Se(e.onPointerMove,h=>{if(!S.current)return;const C=h.clientX-S.current.x,P=h.clientY-S.current.y,M=!!A.current,T=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,B=T?N(0,C):0,k=T?0:N(0,P),p=h.pointerType==="touch"?10:2,R={x:B,y:k},L={originalEvent:h,delta:R};M?(A.current=R,ud(GF,u,L,{discrete:!1})):Z3(R,y.swipeDirection,p)?(A.current=R,ud(HF,f,L,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(C)>p||Math.abs(P)>p)&&(S.current=null)}),onPointerUp:Se(e.onPointerUp,h=>{const C=A.current,P=h.target;if(P.hasPointerCapture(h.pointerId)&&P.releasePointerCapture(h.pointerId),A.current=null,S.current=null,C){const M=h.currentTarget,T={originalEvent:h,delta:C};Z3(C,y.swipeDirection,y.swipeThreshold)?ud(KF,v,T,{discrete:!0}):ud(WF,d,T,{discrete:!0}),M.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});QF.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${_h}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const XF=e=>{const{__scopeToast:t,children:r,...n}=e,i=iA(_h,t),[s,o]=g.useState(!1),[a,l]=g.useState(!1);return nj(()=>o(!0)),g.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:g.createElement(u7,{asChild:!0},g.createElement(Y7,n,s&&g.createElement(g.Fragment,null,i.label," ",r)))},ZF="ToastAction",ej=g.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?g.createElement(sA,{altText:r,asChild:!0},g.createElement(rj,me({},n,{ref:t}))):null});ej.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${ZF}\``)}};const tj="ToastClose",rj=g.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=JF(tj,r);return g.createElement(sA,{asChild:!0},g.createElement(Qe.button,me({type:"button"},n,{ref:t,onClick:Se(e.onClick,i.onClose)})))}),sA=g.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return g.createElement(Qe.div,me({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function oA(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),ij(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...oA(n))}}),t}function ud(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?mg(i,s):i.dispatchEvent(s)}const Z3=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return t==="left"||t==="right"?s&&n>r:!s&&i>r};function nj(e=()=>{}){const t=In(e);hn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function ij(e){return e.nodeType===e.ELEMENT_NODE}jt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});g.createContext(null);var sj="_15pztn2",oj="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rh fyvr128 fyvr11h0";g.forwardRef((e,t)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",name:f,rows:u,resize:d=!1,...v}=e;return Y.jsx(Vl,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:Y.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:tn(oj,d&&sj),disabled:o,id:a??f,name:f,ref:t,rows:u,borderRadius:i,...v})})});const wp=["dark","light"],aj="dark",lj="data-theme",aA="@sequence.theme",cj=()=>{const e=localStorage.getItem(aA);return wp.includes(e)?e:aj},fj=g.createContext(null),uj=e=>{const[t,r]=g.useState(e.theme||cj());g.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),g.useEffect(()=>{e.theme&&wp.includes(e.theme)&&r(e.theme)},[e.theme]),g.useEffect(()=>{const i=document.querySelector(":root");i&&i.setAttribute(lj,t)},[t]);const n=g.useMemo(()=>({theme:t,setTheme:i=>{wp.includes(i)&&(localStorage.setItem(aA,i),r(i))}}),[t]);return Y.jsx(fj.Provider,{value:n,children:e.children})};var dj="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11pt fyvr128 fyvr15o fyvr11h0",hj="bnrrebe",vj=jt({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});g.memo(e=>{const{borderRadius:t="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=e;return Y.jsx(ie,{className:tn(r,vj({borderRadius:t,size:a})),style:i,flexShrink:"0",...l,children:s?Y.jsx(KB,{className:hj,disableAnimation:n,src:s}):Y.jsx(Be,{className:dj,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})});const[Th,tre]=Ir("Tooltip",[Hl]);Hl();const yj="TooltipProvider";Th(yj);const lA="Tooltip";Th(lA);const pj="TooltipPortal";Th(pj,{forceMount:void 0});Th(lA,{isInside:!1});/** + * @remix-run/router v1.7.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function aa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gj(){return Math.random().toString(36).substr(2,8)}function t6(e,t){return{usr:e.state,key:e.key,idx:t}}function Qf(e,t,r,n){return r===void 0&&(r=null),_t({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yi(t):t,{state:r,key:t&&t.key||n||gj()})}function Eu(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Yi(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function xj(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Zt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(_t({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Zt.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=Zt.Push;let b=Qf(y.location,w,x);r&&r(b,w),c=f()+1;let S=t6(b,c),A=y.createHref(b);try{o.pushState(S,"",A)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(A)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Zt.Replace;let b=Qf(y.location,w,x);r&&r(b,w),c=f();let S=t6(b,c),A=y.createHref(b);o.replaceState(S,"",A),s&&l&&l({action:a,location:y.location,delta:0})}function m(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:Eu(w);return He(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(e6,u),l=w,()=>{i.removeEventListener(e6,u),l=null}},createHref(w){return t(i,w)},createURL:m,encodeLocation(w){let x=m(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var sr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(sr||(sr={}));const bj=new Set(["lazy","caseSensitive","path","id","index","children"]);function wj(e){return e.index===!0}function Ep(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),wj(i)){let l=_t({},i,t(i),{id:a});return n[a]=l,l}else{let l=_t({},i,t(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=Ep(i.children,t,o,n)),l}})}function el(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Yi(t):t,i=Cu(n.pathname||"/",r);if(i==null)return null;let s=cA(e);Ej(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Jo([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),cA(s.children,t,f,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:_j(c,s.index),routesMeta:f})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of fA(s.path))i(s,o,l)}),t}function fA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=fA(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ej(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Tj(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Cj=/^:\w+$/,Sj=3,Aj=2,kj=1,Pj=10,Rj=-2,r6=e=>e==="*";function _j(e,t){let r=e.split("/"),n=r.length;return r.some(r6)&&(n+=Rj),t&&(n+=Aj),r.filter(i=>!r6(i)).reduce((i,s)=>i+(Cj.test(s)?Sj:s===""?kj:Pj),n)}function Tj(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Mj(e,t){let{routesMeta:r}=e,n={},i="/",s=[];for(let o=0;o{if(f==="*"){let d=a[u]||"";o=s.slice(0,s.length-d.length).replace(/(.)\/+$/,"$1")}return c[f]=Oj(a[u]||"",f),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Nj(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),aa(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,a)=>(n.push(a),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function $j(e){try{return decodeURI(e)}catch(t){return aa(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Oj(e,t){try{return decodeURIComponent(e)}catch(r){return aa(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Cu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Dj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Yi(e):e;return{pathname:r?r.startsWith("/")?r:Bj(r,t):t,search:jj(n),hash:zj(i)}}function Bj(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function dv(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uA(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lj(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Yi(e):(i=_t({},e),He(!i.pathname||!i.pathname.includes("?"),dv("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),dv("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),dv("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(n||o==null)a=r;else{let u=t.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?t[u]:"/"}let l=Dj(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Jo=e=>e.join("/").replace(/\/\/+/g,"/"),Fj=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Mg{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function dA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hA=["post","put","patch","delete"],Uj=new Set(hA),Vj=["get",...hA],qj=new Set(Vj),Hj=new Set([301,302,303,307,308]),Gj=new Set([307,308]),hv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Wj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kj=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Yj(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;He(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let W=e.detectErrorBoundary;i=q=>({hasErrorBoundary:W(q)})}else i=Kj;let s={},o=Ep(e.routes,i,void 0,s),a,l=e.basename||"/",c=_t({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),f=null,u=new Set,d=null,v=null,m=null,y=e.hydrationData!=null,w=el(o,e.history.location,l),x=null;if(w==null){let W=wn(404,{pathname:e.history.location.pathname}),{matches:q,route:Q}=f6(o);w=q,x={[Q.id]:W}}let b=!w.some(W=>W.route.lazy)&&(!w.some(W=>W.route.loader)||e.hydrationData!=null),S,A={historyAction:e.history.action,location:e.history.location,matches:w,initialized:b,navigation:hv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},_=Zt.Pop,O=!1,$,D=!1,G=!1,J=[],H=[],Z=new Map,I=0,h=-1,C=new Map,P=new Set,M=new Map,T=new Map,N=new Map,B=!1;function k(){return f=e.history.listen(W=>{let{action:q,location:Q,delta:he}=W;if(B){B=!1;return}aa(N.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ye=ut({currentLocation:A.location,nextLocation:Q,historyAction:q});if(ye&&he!=null){B=!0,e.history.go(he*-1),et(ye,{state:"blocked",location:Q,proceed(){et(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),e.history.go(he)},reset(){let ve=new Map(A.blockers);ve.set(ye,bc),L({blockers:ve})}});return}return z(q,Q)}),A.initialized||z(Zt.Pop,A.location),S}function p(){f&&f(),u.clear(),$&&$.abort(),A.fetchers.forEach((W,q)=>rn(q)),A.blockers.forEach((W,q)=>vi(q))}function R(W){return u.add(W),()=>u.delete(W)}function L(W){A=_t({},A,W),u.forEach(q=>q(A))}function E(W,q){var Q,he;let ye=A.actionData!=null&&A.navigation.formMethod!=null&&Xn(A.navigation.formMethod)&&A.navigation.state==="loading"&&((Q=W.state)==null?void 0:Q._isRedirect)!==!0,ve;q.actionData?Object.keys(q.actionData).length>0?ve=q.actionData:ve=null:ye?ve=A.actionData:ve=null;let Ee=q.loaderData?c6(A.loaderData,q.loaderData,q.matches||[],q.errors):A.loaderData,de=A.blockers;de.size>0&&(de=new Map(de),de.forEach((Ve,Me)=>de.set(Me,bc)));let fe=O===!0||A.navigation.formMethod!=null&&Xn(A.navigation.formMethod)&&((he=W.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),D||_===Zt.Pop||(_===Zt.Push?e.history.push(W,W.state):_===Zt.Replace&&e.history.replace(W,W.state)),L(_t({},q,{actionData:ve,loaderData:Ee,historyAction:_,location:W,initialized:!0,navigation:hv,revalidation:"idle",restoreScrollPosition:ht(W,q.matches||A.matches),preventScrollReset:fe,blockers:de})),_=Zt.Pop,O=!1,D=!1,G=!1,J=[],H=[]}async function F(W,q){if(typeof W=="number"){e.history.go(W);return}let Q=Cp(A.location,A.matches,l,c.v7_prependBasename,W,q==null?void 0:q.fromRouteId,q==null?void 0:q.relative),{path:he,submission:ye,error:ve}=n6(c.v7_normalizeFormMethod,!1,Q,q),Ee=A.location,de=Qf(A.location,he,q&&q.state);de=_t({},de,e.history.encodeLocation(de));let fe=q&&q.replace!=null?q.replace:void 0,Ve=Zt.Push;fe===!0?Ve=Zt.Replace:fe===!1||ye!=null&&Xn(ye.formMethod)&&ye.formAction===A.location.pathname+A.location.search&&(Ve=Zt.Replace);let Me=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,be=ut({currentLocation:Ee,nextLocation:de,historyAction:Ve});if(be){et(be,{state:"blocked",location:de,proceed(){et(be,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),F(W,q)},reset(){let rt=new Map(A.blockers);rt.set(be,bc),L({blockers:rt})}});return}return await z(Ve,de,{submission:ye,pendingError:ve,preventScrollReset:Me,replace:q&&q.replace})}function j(){if(je(),L({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){z(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}z(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function z(W,q,Q){$&&$.abort(),$=null,_=W,D=(Q&&Q.startUninterruptedRevalidation)===!0,Xi(A.location,A.matches),O=(Q&&Q.preventScrollReset)===!0;let he=a||o,ye=Q&&Q.overrideNavigation,ve=el(he,q,l);if(!ve){let rt=wn(404,{pathname:q.pathname}),{matches:ke,route:We}=f6(he);jn(),E(q,{matches:ke,loaderData:{},errors:{[We.id]:rt}});return}if(A.initialized&&!G&&ez(A.location,q)&&!(Q&&Q.submission&&Xn(Q.submission.formMethod))){E(q,{matches:ve});return}$=new AbortController;let Ee=Ec(e.history,q,$.signal,Q&&Q.submission),de,fe;if(Q&&Q.pendingError)fe={[tl(ve).route.id]:Q.pendingError};else if(Q&&Q.submission&&Xn(Q.submission.formMethod)){let rt=await K(Ee,q,Q.submission,ve,{replace:Q.replace});if(rt.shortCircuited)return;de=rt.pendingActionData,fe=rt.pendingActionError,ye=dd(q,Q.submission),Ee=new Request(Ee.url,{signal:Ee.signal})}let{shortCircuited:Ve,loaderData:Me,errors:be}=await ne(Ee,q,ve,ye,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,de,fe);Ve||($=null,E(q,_t({matches:ve},de?{actionData:de}:{},{loaderData:Me,errors:be})))}async function K(W,q,Q,he,ye){ye===void 0&&(ye={}),je();let ve=sz(q,Q);L({navigation:ve});let Ee,de=Ap(he,q);if(!de.route.action&&!de.route.lazy)Ee={type:sr.error,error:wn(405,{method:W.method,pathname:q.pathname,routeId:de.route.id})};else if(Ee=await wc("action",W,de,he,s,i,l),W.signal.aborted)return{shortCircuited:!0};if(vl(Ee)){let fe;return ye&&ye.replace!=null?fe=ye.replace:fe=Ee.location===A.location.pathname+A.location.search,await xe(A,Ee,{submission:Q,replace:fe}),{shortCircuited:!0}}if(pf(Ee)){let fe=tl(he,de.route.id);return(ye&&ye.replace)!==!0&&(_=Zt.Push),{pendingActionData:{},pendingActionError:{[fe.route.id]:Ee.error}}}if(qo(Ee))throw wn(400,{type:"defer-action"});return{pendingActionData:{[de.route.id]:Ee.data}}}async function ne(W,q,Q,he,ye,ve,Ee,de,fe){let Ve=he||dd(q,ye),Me=ye||ve||h6(Ve),be=a||o,[rt,ke]=i6(e.history,A,Q,Me,q,G,J,H,M,P,be,l,de,fe);if(jn(Oe=>!(Q&&Q.some($e=>$e.route.id===Oe))||rt&&rt.some($e=>$e.route.id===Oe)),h=++I,rt.length===0&&ke.length===0){let Oe=hi();return E(q,_t({matches:Q,loaderData:{},errors:fe||null},de?{actionData:de}:{},Oe?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!D){ke.forEach($e=>{let qe=A.fetchers.get($e.key),Un=Cc(void 0,qe?qe.data:void 0);A.fetchers.set($e.key,Un)});let Oe=de||A.actionData;L(_t({navigation:Ve},Oe?Object.keys(Oe).length===0?{actionData:null}:{actionData:Oe}:{},ke.length>0?{fetchers:new Map(A.fetchers)}:{}))}ke.forEach(Oe=>{Z.has(Oe.key)&&Ie(Oe.key),Oe.controller&&Z.set(Oe.key,Oe.controller)});let We=()=>ke.forEach(Oe=>Ie(Oe.key));$&&$.signal.addEventListener("abort",We);let{results:Nr,loaderResults:Xe,fetcherResults:nt}=await Sr(A.matches,Q,rt,ke,W);if(W.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",We),ke.forEach(Oe=>Z.delete(Oe.key));let yr=u6(Nr);if(yr){if(yr.idx>=rt.length){let Oe=ke[yr.idx-rt.length].key;P.add(Oe)}return await xe(A,yr.result,{replace:Ee}),{shortCircuited:!0}}let{loaderData:ze,errors:tt}=l6(A,Q,rt,Xe,fe,ke,nt,T);T.forEach((Oe,$e)=>{Oe.subscribe(qe=>{(qe||Oe.done)&&T.delete($e)})});let zn=hi(),it=ft(h),st=zn||it||ke.length>0;return _t({loaderData:ze,errors:tt},st?{fetchers:new Map(A.fetchers)}:{})}function X(W){return A.fetchers.get(W)||Wj}function te(W,q,Q,he){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Z.has(W)&&Ie(W);let ye=a||o,ve=Cp(A.location,A.matches,l,c.v7_prependBasename,Q,q,he==null?void 0:he.relative),Ee=el(ye,ve,l);if(!Ee){Je(W,q,wn(404,{pathname:ve}));return}let{path:de,submission:fe,error:Ve}=n6(c.v7_normalizeFormMethod,!0,ve,he);if(Ve){Je(W,q,Ve);return}let Me=Ap(Ee,de);if(O=(he&&he.preventScrollReset)===!0,fe&&Xn(fe.formMethod)){Te(W,q,de,Me,Ee,fe);return}M.set(W,{routeId:q,path:de}),ce(W,q,de,Me,Ee,fe)}async function Te(W,q,Q,he,ye,ve){if(je(),M.delete(W),!he.route.action&&!he.route.lazy){let Ae=wn(405,{method:ve.formMethod,pathname:Q,routeId:q});Je(W,q,Ae);return}let Ee=A.fetchers.get(W),de=oz(ve,Ee);A.fetchers.set(W,de),L({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=Ec(e.history,Q,fe.signal,ve);Z.set(W,fe);let Me=I,be=await wc("action",Ve,he,ye,s,i,l);if(Ve.signal.aborted){Z.get(W)===fe&&Z.delete(W);return}if(vl(be))if(Z.delete(W),h>Me){let Ae=$a(void 0);A.fetchers.set(W,Ae),L({fetchers:new Map(A.fetchers)});return}else{P.add(W);let Ae=Cc(ve);return A.fetchers.set(W,Ae),L({fetchers:new Map(A.fetchers)}),xe(A,be,{submission:ve,isFetchActionRedirect:!0})}if(pf(be)){Je(W,q,be.error);return}if(qo(be))throw wn(400,{type:"defer-action"});let rt=A.navigation.location||A.location,ke=Ec(e.history,rt,fe.signal),We=a||o,Nr=A.navigation.state!=="idle"?el(We,A.navigation.location,l):A.matches;He(Nr,"Didn't find any matches after fetcher action");let Xe=++I;C.set(W,Xe);let nt=Cc(ve,be.data);A.fetchers.set(W,nt);let[yr,ze]=i6(e.history,A,Nr,ve,rt,G,J,H,M,P,We,l,{[he.route.id]:be.data},void 0);ze.filter(Ae=>Ae.key!==W).forEach(Ae=>{let Ze=Ae.key,Vn=A.fetchers.get(Ze),yi=Cc(void 0,Vn?Vn.data:void 0);A.fetchers.set(Ze,yi),Z.has(Ze)&&Ie(Ze),Ae.controller&&Z.set(Ze,Ae.controller)}),L({fetchers:new Map(A.fetchers)});let tt=()=>ze.forEach(Ae=>Ie(Ae.key));fe.signal.addEventListener("abort",tt);let{results:zn,loaderResults:it,fetcherResults:st}=await Sr(A.matches,Nr,yr,ze,ke);if(fe.signal.aborted)return;fe.signal.removeEventListener("abort",tt),C.delete(W),Z.delete(W),ze.forEach(Ae=>Z.delete(Ae.key));let Oe=u6(zn);if(Oe){if(Oe.idx>=yr.length){let Ae=ze[Oe.idx-yr.length].key;P.add(Ae)}return xe(A,Oe.result)}let{loaderData:$e,errors:qe}=l6(A,A.matches,yr,it,void 0,ze,st,T);if(A.fetchers.has(W)){let Ae=$a(be.data);A.fetchers.set(W,Ae)}let Un=ft(Xe);A.navigation.state==="loading"&&Xe>h?(He(_,"Expected pending action"),$&&$.abort(),E(A.navigation.location,{matches:Nr,loaderData:$e,errors:qe,fetchers:new Map(A.fetchers)})):(L(_t({errors:qe,loaderData:c6(A.loaderData,$e,Nr,qe)},Un||ze.length>0?{fetchers:new Map(A.fetchers)}:{})),G=!1)}async function ce(W,q,Q,he,ye,ve){let Ee=A.fetchers.get(W),de=Cc(ve,Ee?Ee.data:void 0);A.fetchers.set(W,de),L({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=Ec(e.history,Q,fe.signal);Z.set(W,fe);let Me=I,be=await wc("loader",Ve,he,ye,s,i,l);if(qo(be)&&(be=await mA(be,Ve.signal,!0)||be),Z.get(W)===fe&&Z.delete(W),Ve.signal.aborted)return;if(vl(be))if(h>Me){let ke=$a(void 0);A.fetchers.set(W,ke),L({fetchers:new Map(A.fetchers)});return}else{P.add(W),await xe(A,be);return}if(pf(be)){let ke=tl(A.matches,q);A.fetchers.delete(W),L({fetchers:new Map(A.fetchers),errors:{[ke.route.id]:be.error}});return}He(!qo(be),"Unhandled fetcher deferred data");let rt=$a(be.data);A.fetchers.set(W,rt),L({fetchers:new Map(A.fetchers)})}async function xe(W,q,Q){let{submission:he,replace:ye,isFetchActionRedirect:ve}=Q===void 0?{}:Q;q.revalidate&&(G=!0);let Ee=Qf(W.location,q.location,_t({_isRedirect:!0},ve?{_isFetchActionRedirect:!0}:{}));if(He(Ee,"Expected a location on the redirect navigation"),vA.test(q.location)&&r){let Ve=e.history.createURL(q.location),Me=Cu(Ve.pathname,l)==null;if(t.location.origin!==Ve.origin||Me){ye?t.location.replace(q.location):t.location.assign(q.location);return}}$=null;let de=ye===!0?Zt.Replace:Zt.Push,fe=he||h6(W.navigation);if(Gj.has(q.status)&&fe&&Xn(fe.formMethod))await z(de,Ee,{submission:_t({},fe,{formAction:q.location}),preventScrollReset:O});else if(ve)await z(de,Ee,{overrideNavigation:dd(Ee),fetcherSubmission:fe,preventScrollReset:O});else{let Ve=dd(Ee,fe);await z(de,Ee,{overrideNavigation:Ve,preventScrollReset:O})}}async function Sr(W,q,Q,he,ye){let ve=await Promise.all([...Q.map(fe=>wc("loader",ye,fe,q,s,i,l)),...he.map(fe=>fe.matches&&fe.match&&fe.controller?wc("loader",Ec(e.history,fe.path,fe.controller.signal),fe.match,fe.matches,s,i,l):{type:sr.error,error:wn(404,{pathname:fe.path})})]),Ee=ve.slice(0,Q.length),de=ve.slice(Q.length);return await Promise.all([d6(W,Q,Ee,Ee.map(()=>ye.signal),!1,A.loaderData),d6(W,he.map(fe=>fe.match),de,he.map(fe=>fe.controller?fe.controller.signal:null),!0)]),{results:ve,loaderResults:Ee,fetcherResults:de}}function je(){G=!0,J.push(...jn()),M.forEach((W,q)=>{Z.has(q)&&(H.push(q),Ie(q))})}function Je(W,q,Q){let he=tl(A.matches,q);rn(W),L({errors:{[he.route.id]:Q},fetchers:new Map(A.fetchers)})}function rn(W){let q=A.fetchers.get(W);Z.has(W)&&!(q&&q.state==="loading"&&C.has(W))&&Ie(W),M.delete(W),C.delete(W),P.delete(W),A.fetchers.delete(W)}function Ie(W){let q=Z.get(W);He(q,"Expected fetch controller: "+W),q.abort(),Z.delete(W)}function ct(W){for(let q of W){let Q=X(q),he=$a(Q.data);A.fetchers.set(q,he)}}function hi(){let W=[],q=!1;for(let Q of P){let he=A.fetchers.get(Q);He(he,"Expected fetcher: "+Q),he.state==="loading"&&(P.delete(Q),W.push(Q),q=!0)}return ct(W),q}function ft(W){let q=[];for(let[Q,he]of C)if(he0}function vt(W,q){let Q=A.blockers.get(W)||bc;return N.get(W)!==q&&N.set(W,q),Q}function vi(W){A.blockers.delete(W),N.delete(W)}function et(W,q){let Q=A.blockers.get(W)||bc;He(Q.state==="unblocked"&&q.state==="blocked"||Q.state==="blocked"&&q.state==="blocked"||Q.state==="blocked"&&q.state==="proceeding"||Q.state==="blocked"&&q.state==="unblocked"||Q.state==="proceeding"&&q.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+q.state);let he=new Map(A.blockers);he.set(W,q),L({blockers:he})}function ut(W){let{currentLocation:q,nextLocation:Q,historyAction:he}=W;if(N.size===0)return;N.size>1&&aa(!1,"A router only supports one blocker at a time");let ye=Array.from(N.entries()),[ve,Ee]=ye[ye.length-1],de=A.blockers.get(ve);if(!(de&&de.state==="proceeding")&&Ee({currentLocation:q,nextLocation:Q,historyAction:he}))return ve}function jn(W){let q=[];return T.forEach((Q,he)=>{(!W||W(he))&&(Q.cancel(),q.push(he),T.delete(he))}),q}function yt(W,q,Q){if(d=W,m=q,v=Q||null,!y&&A.navigation===hv){y=!0;let he=ht(A.location,A.matches);he!=null&&L({restoreScrollPosition:he})}return()=>{d=null,m=null,v=null}}function dt(W,q){return v&&v(W,q.map(he=>iz(he,A.loaderData)))||W.key}function Xi(W,q){if(d&&m){let Q=dt(W,q);d[Q]=m()}}function ht(W,q){if(d){let Q=dt(W,q),he=d[Q];if(typeof he=="number")return he}return null}function pt(W){s={},a=Ep(W,i,void 0,s)}return S={get basename(){return l},get state(){return A},get routes(){return o},initialize:k,subscribe:R,enableScrollRestoration:yt,navigate:F,fetch:te,revalidate:j,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:X,deleteFetcher:rn,dispose:p,getBlocker:vt,deleteBlocker:vi,_internalFetchControllers:Z,_internalActiveDeferreds:T,_internalSetRoutes:pt},S}function Jj(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Cp(e,t,r,n,i,s,o){let a,l;if(s!=null&&o!=="path"){a=[];for(let f of t)if(a.push(f),f.route.id===s){l=f;break}}else a=t,l=t[t.length-1];let c=Lj(i||".",uA(a).map(f=>f.pathnameBase),Cu(e.pathname,r)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!Ig(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Jo([r,c.pathname])),Eu(c)}function n6(e,t,r,n){if(!n||!Jj(n))return{path:r};if(n.formMethod&&!nz(n.formMethod))return{path:r,error:wn(405,{method:n.formMethod})};let i=()=>({path:r,error:wn(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=e?s.toUpperCase():s.toLowerCase(),a=pA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Xn(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,m)=>{let[y,w]=m;return""+v+y+"="+w+` +`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!Xn(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Sp(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Sp(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=a6(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=a6(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Xn(f.formMethod))return{path:r,submission:f};let u=Yi(r);return t&&u.search&&Ig(u.search)&&l.append("index",""),u.search="?"+l,{path:Eu(u),submission:f}}function Qj(e,t){let r=e;if(t){let n=e.findIndex(i=>i.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function i6(e,t,r,n,i,s,o,a,l,c,f,u,d,v){let m=v?Object.values(v)[0]:d?Object.values(d)[0]:void 0,y=e.createURL(t.location),w=e.createURL(i),x=v?Object.keys(v)[0]:void 0,S=Qj(r,x).filter((_,O)=>{if(_.route.lazy)return!0;if(_.route.loader==null)return!1;if(Xj(t.loaderData,t.matches[O],_)||o.some(G=>G===_.route.id))return!0;let $=t.matches[O],D=_;return s6(_,_t({currentUrl:y,currentParams:$.params,nextUrl:w,nextParams:D.params},n,{actionResult:m,defaultShouldRevalidate:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||yA($,D)}))}),A=[];return l.forEach((_,O)=>{if(!r.some(H=>H.route.id===_.routeId))return;let $=el(f,_.path,u);if(!$){A.push({key:O,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(O),G=Ap($,_.path),J=!1;c.has(O)?J=!1:a.includes(O)?J=!0:D&&D.state!=="idle"&&D.data===void 0?J=s:J=s6(G,_t({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:s})),J&&A.push({key:O,routeId:_.routeId,path:_.path,matches:$,match:G,controller:new AbortController})}),[S,A]}function Xj(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function yA(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function s6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function o6(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];He(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";aa(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!bj.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,_t({},t(i),{lazy:void 0}))}async function wc(e,t,r,n,i,s,o,a){a===void 0&&(a={});let l,c,f,u=m=>{let y,w=new Promise((x,b)=>y=b);return f=()=>y(),t.signal.addEventListener("abort",f),Promise.race([m({request:t,params:r.params,context:a.requestContext}),w])};try{let m=r.route[e];if(r.route.lazy)if(m)c=(await Promise.all([u(m),o6(r.route,s,i)]))[0];else if(await o6(r.route,s,i),m=r.route[e],m)c=await u(m);else if(e==="action"){let y=new URL(t.url),w=y.pathname+y.search;throw wn(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:sr.data,data:void 0};else if(m)c=await u(m);else{let y=new URL(t.url),w=y.pathname+y.search;throw wn(404,{pathname:w})}He(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){l=sr.error,c=m}finally{f&&t.signal.removeEventListener("abort",f)}if(rz(c)){let m=c.status;if(Hj.has(m)){let x=c.headers.get("Location");if(He(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!vA.test(x))x=Cp(new URL(t.url),n.slice(0,n.indexOf(r)+1),o,!0,x);else if(!a.isStaticRequest){let b=new URL(t.url),S=x.startsWith("//")?new URL(b.protocol+x):new URL(x),A=Cu(S.pathname,o)!=null;S.origin===b.origin&&A&&(x=S.pathname+S.search+S.hash)}if(a.isStaticRequest)throw c.headers.set("Location",x),c;return{type:sr.redirect,status:m,location:x,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||sr.data,response:c};let y,w=c.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?y=await c.json():y=await c.text(),l===sr.error?{type:l,error:new Mg(m,c.statusText,y),headers:c.headers}:{type:sr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===sr.error)return{type:l,error:c};if(tz(c)){var d,v;return{type:sr.deferred,deferredData:c,statusCode:(d=c.init)==null?void 0:d.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:sr.data,data:c}}function Ec(e,t,r,n){let i=e.createURL(pA(t)).toString(),s={signal:r};if(n&&Xn(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=Sp(n.formData):s.body=n.formData}return new Request(i,s)}function Sp(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function a6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Zj(e,t,r,n,i){let s={},o=null,a,l=!1,c={};return r.forEach((f,u)=>{let d=t[u].route.id;if(He(!vl(f),"Cannot handle redirect results in processLoaderData"),pf(f)){let v=tl(e,d),m=f.error;n&&(m=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),s[d]=void 0,l||(l=!0,a=dA(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else qo(f)?(i.set(d,f.deferredData),s[d]=f.deferredData.data):s[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(a=f.statusCode),f.headers&&(c[d]=f.headers)}),n&&(o=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function l6(e,t,r,n,i,s,o,a){let{loaderData:l,errors:c}=Zj(t,r,n,i,a);for(let f=0;fn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function f6(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function wn(e,t){let{pathname:r,routeId:n,method:i,type:s}=t===void 0?{}:t,o="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):e===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):e===404?(o="Not Found",a='No route matches URL "'+r+'"'):e===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new Mg(e||500,o,new Error(a),!0)}function u6(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(vl(r))return{result:r,idx:t}}}function pA(e){let t=typeof e=="string"?Yi(e):e;return Eu(_t({},t,{hash:""}))}function ez(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function qo(e){return e.type===sr.deferred}function pf(e){return e.type===sr.error}function vl(e){return(e&&e.type)===sr.redirect}function tz(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function rz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function nz(e){return qj.has(e.toLowerCase())}function Xn(e){return Uj.has(e.toLowerCase())}async function d6(e,t,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!yA(c,l)&&(s&&s[l.route.id])!==void 0;if(qo(a)&&(i||f)){let u=n[o];He(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await mA(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function mA(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:sr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:sr.error,error:i}}return{type:sr.data,data:e.deferredData.data}}}function Ig(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function iz(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function Ap(e,t){let r=typeof t=="string"?Yi(t).search:t.search;if(e[e.length-1].route.index&&Ig(r||""))return e[e.length-1];let n=uA(e);return n[n.length-1]}function h6(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:s,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function dd(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sz(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Cc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function oz(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function $a(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function kp(){return kp=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},y,{params:Object.assign({},o,y.params),pathname:Jo([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:Jo([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r);return t&&m?g.createElement(Mh.Provider,{value:{location:kp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Zt.Pop}},m):m}function cz(){let e=mz(),t=dA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:i},r):null,s)}const fz=g.createElement(cz,null);class uz extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?g.createElement(Ih.Provider,{value:this.props.routeContext},g.createElement(wA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dz(e){let{routeContext:t,match:r,children:n}=e,i=g.useContext(gA);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(Ih.Provider,{value:t},n)}function hz(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var i;if((i=r)!=null&&i.errors)e=r.matches;else return null}let s=e,o=(n=r)==null?void 0:n.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||He(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,c)=>{let f=l.route.id?o==null?void 0:o[l.route.id]:null,u=null;r&&(u=l.route.errorElement||fz);let d=t.concat(s.slice(0,c+1)),v=()=>{let m;return f?m=u:l.route.Component?m=g.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,g.createElement(dz,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:m})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?g.createElement(uz,{location:r.location,revalidation:r.revalidation,component:u,error:f,children:v(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):v()},null)}var v6;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(v6||(v6={}));var I0;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(I0||(I0={}));function vz(e){let t=g.useContext(xA);return t||He(!1),t}function yz(e){let t=g.useContext(Ih);return t||He(!1),t}function pz(e){let t=yz(),r=t.matches[t.matches.length-1];return r.route.id||He(!1),r.route.id}function mz(){var e;let t=g.useContext(wA),r=vz(I0.UseRouteError),n=pz(I0.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}const gz="startTransition",y6=a5[gz];function xz(e){let{fallbackElement:t,router:r,future:n}=e,[i,s]=g.useState(r.state),{v7_startTransition:o}=n||{},a=g.useCallback(u=>{o&&y6?y6(()=>s(u)):s(u)},[s,o]);g.useLayoutEffect(()=>r.subscribe(a),[r,a]);let l=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:u=>r.navigate(u),push:(u,d,v)=>r.navigate(u,{state:d,preventScrollReset:v==null?void 0:v.preventScrollReset}),replace:(u,d,v)=>r.navigate(u,{replace:!0,state:d,preventScrollReset:v==null?void 0:v.preventScrollReset})}),[r]),c=r.basename||"/",f=g.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return g.createElement(g.Fragment,null,g.createElement(gA.Provider,{value:f},g.createElement(xA.Provider,{value:i},g.createElement(wz,{basename:c,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?g.createElement(bz,{routes:r.routes,state:i}):t))),null)}function bz(e){let{routes:t,state:r}=e;return lz(t,void 0,r)}function wz(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Zt.Pop,navigator:s,static:o=!1}=e;Ng()&&He(!1);let a=t.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof n=="string"&&(n=Yi(n));let{pathname:c="/",search:f="",hash:u="",state:d=null,key:v="default"}=n,m=g.useMemo(()=>{let y=Cu(c,a);return y==null?null:{location:{pathname:y,search:f,hash:u,state:d,key:v},navigationType:i}},[a,c,f,u,d,v,i]);return m==null?null:g.createElement(bA.Provider,{value:l},g.createElement(Mh.Provider,{children:r,value:m}))}var p6;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(p6||(p6={}));new Promise(()=>{});function Ez(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:g.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.14.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{value:t,digits:r=6,onChange:n,disabled:i=!1}=e,s=g.useMemo(()=>x6(0,r).map(()=>g.createRef()),[]);g.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...t];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var m,y;const u=s[c].current,d=(m=s[c-1])==null?void 0:m.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,m;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((m=(v=s[0])==null?void 0:v.current)==null||m.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return U.jsx(ie,{gap:"2",children:x6(0,r).map(c=>U.jsxs(g.Fragment,{children:[c===r/2&&U.jsx("span",{}),U.jsx(ie,{as:"input",className:kz,value:t[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},x6=(e,t)=>Array.from({length:t-e},(r,n)=>n+e),CA=()=>U.jsxs(ie,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[U.jsx(Be,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),U.jsx(Be,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function Pz(e={}){const{nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}=e,[i,s]=g.useState(!1),o=g.useRef(r);o.current=r;const a=g.useRef(n);return a.current=n,g.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),i}const SA=g.createContext(null);function Rz({clientId:e,nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=Pz({nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}),o=g.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:s}),[e,s]);return ur.createElement(SA.Provider,{value:o},i)}function _z(){const e=g.useContext(SA);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function Tz(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const Mz={large:40,medium:32,small:20};function Iz({onSuccess:e,onError:t,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...m}){const y=g.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=_z(),b=g.useRef(e);b.current=e;const S=g.useRef(t);S.current=t;const A=g.useRef(n);return A.current=n,g.useEffect(()=>{var _,O,$,D,G,J,H,Z,I;if(x)return($=(O=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||O===void 0?void 0:O.id)===null||$===void 0||$.initialize({client_id:w,callback:h=>{var C;if(!(h!=null&&h.credential))return(C=S.current)===null||C===void 0?void 0:C.call(S);const{credential:P,select_by:M}=h;b.current({credential:P,clientId:Tz(h),select_by:M})},...m}),(J=(G=(D=window==null?void 0:window.google)===null||D===void 0?void 0:D.accounts)===null||G===void 0?void 0:G.id)===null||J===void 0||J.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((I=(Z=(H=window==null?void 0:window.google)===null||H===void 0?void 0:H.accounts)===null||Z===void 0?void 0:Z.id)===null||I===void 0||I.prompt(A.current)),()=>{var h,C,P;r&&((P=(C=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||C===void 0?void 0:C.id)===null||P===void 0||P.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),ur.createElement("div",{...v,ref:y,style:{height:Mz[o],...v==null?void 0:v.style}})}function Nz(){var e,t,r;(r=(t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.accounts)===null||t===void 0?void 0:t.id)===null||r===void 0||r.disableAutoSelect()}var AA={},Nh={},Su={};Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var $z=g;function Oz(e){(0,$z.useEffect)(function(){if(e){var t=document.querySelectorAll('script[src="'.concat(e,'"]'))[0];t||(t=document.createElement("script"),t.src=e,t.async=!0,document.body.appendChild(t))}},[e])}var Dz=Oz;Su.default=Dz;var Au={},$h={};Object.defineProperty($h,"__esModule",{value:!0});$h.default=void 0;var Bz=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(t))return Promise.resolve(l[t]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return e(t,{pollFrequency:i,parent:l,retries:c})})},Lz=Bz;$h.default=Lz;Object.defineProperty(Au,"__esModule",{value:!0});Au.default=void 0;var Fz=jz($h);function jz(e){return e&&e.__esModule?e:{default:e}}var zz="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",Uz=function(t){var r=t.authOptions,n=t.onSuccess,i=t.onError;return(0,Fz.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},Vz={APPLE_SCRIPT_SRC:zz,signIn:Uz};Au.default=Vz;Object.defineProperty(Nh,"__esModule",{value:!0});Nh.default=void 0;var mi=$g(g),qz=$g(Su),b6=$g(Au),Hz=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function $g(e){return e&&e.__esModule?e:{default:e}}function $0(){return $0=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yz(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s=0)&&(r[i]=e[i]);return r}var Jz=` +.react-apple-signin-auth-btn { + background-color: transparent; + border: none; + padding: 0; + cursor: pointer; + border-radius: 4px; + padding: 0 8px 0 2px; + font-size: 14px; + font-size: 1em; + line-height: 1; + border: 1px solid #000; + overflow: hidden; + display: inline-flex; + justify-content: center; + align-items: center; +} +.react-apple-signin-auth-btn-light { + background-color: #FFF; + color: #000; + border-color: #000; +} +.react-apple-signin-auth-btn-dark { + background-color: #000; + color: #FFF; + border-color: #FFF; +}`.replace(/ {2}|\n/g,""),Qz=function(t){var r=t.onSuccess,n=t.onError,i=t.skipScript,s=i===void 0?!1:i,o=t.authOptions,a=t.iconProps,l=t.render,c=t.uiType,f=c===void 0?"dark":c,u=t.className,d=t.noDefaultStyle,v=d===void 0?!1:d,m=t.buttonExtraChildren,y=m===void 0?"Continue with Apple":m,w=Kz(t,Hz);(0,qz.default)(s?null:b6.default.APPLE_SCRIPT_SRC);var x=function(A){A&&(A.preventDefault(),A.stopPropagation()),b6.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=Gz({children:mi.default.createElement(mi.default.Fragment,null,mi.default.createElement("svg",$0({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),mi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},mi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),mi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):mi.default.createElement(mi.default.Fragment,null,mi.default.createElement("button",$0({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:mi.default.createElement("style",null,Jz))},Xz=Qz;Nh.default=Xz;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"useScript",{enumerable:!0,get:function(){return n.default}}),e.default=void 0;var t=i(Nh),r=i(Au),n=i(Su);function i(o){return o&&o.__esModule?o:{default:o}}var s=t.default;e.default=s})(AA);const Zz=As(AA);let ue=function(e){return e[e.MAINNET=1]="MAINNET",e[e.ROPSTEN=3]="ROPSTEN",e[e.RINKEBY=4]="RINKEBY",e[e.GOERLI=5]="GOERLI",e[e.KOVAN=42]="KOVAN",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",e[e.BSC=56]="BSC",e[e.BSC_TESTNET=97]="BSC_TESTNET",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_TESTNET=69]="OPTIMISM_TESTNET",e[e.ARBITRUM=42161]="ARBITRUM",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",e[e.AVALANCHE=43114]="AVALANCHE",e[e.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",e[e.FANTOM=250]="FANTOM",e[e.FANTOM_TESTNET=4002]="FANTOM_TESTNET",e[e.GNOSIS=100]="GNOSIS",e[e.AURORA=1313161554]="AURORA",e[e.AURORA_TESTNET=1313161556]="AURORA_TESTNET",e[e.BASE=8453]="BASE",e[e.BASE_GOERLI=84531]="BASE_GOERLI",e[e.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",e[e.HOMEVERSE=19011]="HOMEVERSE",e[e.HARDHAT=31337]="HARDHAT",e[e.HARDHAT_2=31338]="HARDHAT_2",e}({}),mt=function(e){return e.MAINNET="mainnet",e.TESTNET="testnet",e}({});const Gt={[ue.MAINNET]:{chainId:ue.MAINNET,type:mt.MAINNET,name:"mainnet",title:"Ethereum",blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.ROPSTEN]:{chainId:ue.ROPSTEN,type:mt.TESTNET,name:"ropsten",title:"Ropsten",testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.RINKEBY]:{chainId:ue.RINKEBY,type:mt.TESTNET,name:"rinkeby",title:"Rinkeby",testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.GOERLI]:{chainId:ue.GOERLI,type:mt.TESTNET,name:"goerli",title:"Goerli",testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.KOVAN]:{chainId:ue.KOVAN,type:mt.TESTNET,name:"kovan",title:"Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"}},[ue.SEPOLIA]:{chainId:ue.SEPOLIA,type:mt.TESTNET,name:"sepolia",title:"Sepolia",testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[ue.POLYGON]:{chainId:ue.POLYGON,type:mt.MAINNET,name:"polygon",title:"Polygon",blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[ue.POLYGON_MUMBAI]:{chainId:ue.POLYGON_MUMBAI,type:mt.TESTNET,name:"mumbai",title:"Polygon Mumbai",testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"}},[ue.POLYGON_ZKEVM]:{chainId:ue.POLYGON_ZKEVM,type:mt.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[ue.BSC]:{chainId:ue.BSC,type:mt.MAINNET,name:"bsc",title:"BNB Smart Chain",blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[ue.BSC_TESTNET]:{chainId:ue.BSC_TESTNET,type:mt.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[ue.OPTIMISM]:{chainId:ue.OPTIMISM,type:mt.MAINNET,name:"optimism",title:"Optimism",blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[ue.OPTIMISM_TESTNET]:{chainId:ue.OPTIMISM_TESTNET,type:mt.TESTNET,name:"optimism-testnet",title:"Optimistic Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Optimism Testnet)",rootUrl:"https://kovan-optimistic.etherscan.io/"}},[ue.ARBITRUM]:{chainId:ue.ARBITRUM,type:mt.MAINNET,name:"arbitrum",title:"Arbitrum One",blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[ue.ARBITRUM_GOERLI]:{chainId:ue.ARBITRUM_GOERLI,type:mt.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",testnet:!0,blockExplorer:{name:"Arbiscan (Testnet)",rootUrl:"https://testnet.arbiscan.io/"}},[ue.ARBITRUM_NOVA]:{chainId:ue.ARBITRUM_NOVA,type:mt.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[ue.AVALANCHE]:{chainId:ue.AVALANCHE,type:mt.MAINNET,name:"avalanche",title:"Avalanche",blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[ue.AVALANCHE_TESTNET]:{chainId:ue.AVALANCHE_TESTNET,type:mt.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[ue.FANTOM]:{chainId:ue.FANTOM,type:mt.MAINNET,name:"fantom",title:"Fantom",blockExplorer:{name:"FTMScan",rootUrl:"https://ftmscan.com/"}},[ue.FANTOM_TESTNET]:{chainId:ue.FANTOM_TESTNET,type:mt.TESTNET,name:"fantom-testnet",title:"Fantom Testnet",testnet:!0,blockExplorer:{name:"FTMScan (Testnet)",rootUrl:"https://testnet.ftmscan.com/"}},[ue.GNOSIS]:{chainId:ue.GNOSIS,type:mt.MAINNET,name:"gnosis",title:"Gnosis Chain",blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[ue.AURORA]:{chainId:ue.AURORA,type:mt.MAINNET,name:"aurora",title:"Aurora",blockExplorer:{name:"Aurora Explorer",rootUrl:"https://aurorascan.dev/"}},[ue.AURORA_TESTNET]:{chainId:ue.AURORA_TESTNET,type:mt.TESTNET,name:"aurora-testnet",title:"Aurora Testnet",testnet:!0,blockExplorer:{name:"Aurora Explorer (Testnet)",rootUrl:"https://testnet.aurorascan.dev/"}},[ue.BASE]:{chainId:ue.BASE,type:mt.MAINNET,name:"base",title:"Base (Coinbase)",blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[ue.BASE_GOERLI]:{chainId:ue.BASE_GOERLI,type:mt.TESTNET,name:"base-goerli",title:"Base Goerli",testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"}},[ue.HOMEVERSE]:{chainId:ue.HOMEVERSE,type:mt.MAINNET,name:"homeverse",title:"Oasys Homeverse",blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[ue.HOMEVERSE_TESTNET]:{chainId:ue.HOMEVERSE_TESTNET,type:mt.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[ue.HARDHAT]:{chainId:ue.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[ue.HARDHAT_2]:{chainId:ue.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var Og={exports:{}};const eU={},tU=Object.freeze(Object.defineProperty({__proto__:null,default:eU},Symbol.toStringTag,{value:"Module"})),rU=Rt(tU);Og.exports;(function(e){(function(t,r){function n(I,h){if(!I)throw new Error(h||"Assertion failed")}function i(I,h){I.super_=h;var C=function(){};C.prototype=h.prototype,I.prototype=new C,I.prototype.constructor=I}function s(I,h,C){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((h==="le"||h==="be")&&(C=h,h=10),this._init(I||0,h||10,C||"be"))}typeof t=="object"?t.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=rU.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,C){return h.cmp(C)>0?h:C},s.min=function(h,C){return h.cmp(C)<0?h:C},s.prototype._init=function(h,C,P){if(typeof h=="number")return this._initNumber(h,C,P);if(typeof h=="object")return this._initArray(h,C,P);C==="hex"&&(C=16),n(C===(C|0)&&C>=2&&C<=36),h=h.toString().replace(/\s+/g,"");var M=0;h[0]==="-"&&(M++,this.negative=1),M=0;M-=3)N=h[M]|h[M-1]<<8|h[M-2]<<16,this.words[T]|=N<>>26-B&67108863,B+=24,B>=26&&(B-=26,T++);else if(P==="le")for(M=0,T=0;M>>26-B&67108863,B+=24,B>=26&&(B-=26,T++);return this._strip()};function a(I,h){var C=I.charCodeAt(h);if(C>=48&&C<=57)return C-48;if(C>=65&&C<=70)return C-55;if(C>=97&&C<=102)return C-87;n(!1,"Invalid character in "+I)}function l(I,h,C){var P=a(I,C);return C-1>=h&&(P|=a(I,C-1)<<4),P}s.prototype._parseHex=function(h,C,P){this.length=Math.ceil((h.length-C)/6),this.words=new Array(this.length);for(var M=0;M=C;M-=2)B=l(h,C,M)<=18?(T-=18,N+=1,this.words[N]|=B>>>26):T+=8;else{var k=h.length-C;for(M=k%2===0?C+1:C;M=18?(T-=18,N+=1,this.words[N]|=B>>>26):T+=8}this._strip()};function c(I,h,C,P){for(var M=0,T=0,N=Math.min(I.length,C),B=h;B=49?T=k-49+10:k>=17?T=k-17+10:T=k,n(k>=0&&T1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(h,C){h=h||10,C=C|0||1;var P;if(h===16||h==="hex"){P="";for(var M=0,T=0,N=0;N>>24-M&16777215,M+=2,M>=26&&(M-=26,N--),T!==0||N!==this.length-1?P=d[6-k.length]+k+P:P=k+P}for(T!==0&&(P=T.toString(16)+P);P.length%C!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}if(h===(h|0)&&h>=2&&h<=36){var p=v[h],R=m[h];P="";var L=this.clone();for(L.negative=0;!L.isZero();){var E=L.modrn(R).toString(h);L=L.idivn(R),L.isZero()?P=E+P:P=d[p-E.length]+E+P}for(this.isZero()&&(P="0"+P);P.length%C!==0;)P="0"+P;return this.negative!==0&&(P="-"+P),P}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,C){return this.toArrayLike(o,h,C)}),s.prototype.toArray=function(h,C){return this.toArrayLike(Array,h,C)};var y=function(h,C){return h.allocUnsafe?h.allocUnsafe(C):new h(C)};s.prototype.toArrayLike=function(h,C,P){this._strip();var M=this.byteLength(),T=P||Math.max(1,M);n(M<=T,"byte array longer than desired length"),n(T>0,"Requested array length <= 0");var N=y(h,T),B=C==="le"?"LE":"BE";return this["_toArrayLike"+B](N,M),N},s.prototype._toArrayLikeLE=function(h,C){for(var P=0,M=0,T=0,N=0;T>8&255),P>16&255),N===6?(P>24&255),M=0,N=0):(M=B>>>24,N+=2)}if(P=0&&(h[P--]=B>>8&255),P>=0&&(h[P--]=B>>16&255),N===6?(P>=0&&(h[P--]=B>>24&255),M=0,N=0):(M=B>>>24,N+=2)}if(P>=0)for(h[P--]=M;P>=0;)h[P--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var C=h,P=0;return C>=4096&&(P+=13,C>>>=13),C>=64&&(P+=7,C>>>=7),C>=8&&(P+=4,C>>>=4),C>=2&&(P+=2,C>>>=2),P+C},s.prototype._zeroBits=function(h){if(h===0)return 26;var C=h,P=0;return C&8191||(P+=13,C>>>=13),C&127||(P+=7,C>>>=7),C&15||(P+=4,C>>>=4),C&3||(P+=2,C>>>=2),C&1||P++,P},s.prototype.bitLength=function(){var h=this.words[this.length-1],C=this._countBits(h);return(this.length-1)*26+C};function w(I){for(var h=new Array(I.bitLength()),C=0;C>>M&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,C=0;Ch.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var C;this.length>h.length?C=h:C=this;for(var P=0;Ph.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var C,P;this.length>h.length?(C=this,P=h):(C=h,P=this);for(var M=0;Mh.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var C=Math.ceil(h/26)|0,P=h%26;this._expand(C),P>0&&C--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-P),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,C){n(typeof h=="number"&&h>=0);var P=h/26|0,M=h%26;return this._expand(P+1),C?this.words[P]=this.words[P]|1<h.length?(P=this,M=h):(P=h,M=this);for(var T=0,N=0;N>>26;for(;T!==0&&N>>26;if(this.length=P.length,T!==0)this.words[this.length]=T,this.length++;else if(P!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var C=this.iadd(h);return h.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var P=this.cmp(h);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,T;P>0?(M=this,T=h):(M=h,T=this);for(var N=0,B=0;B>26,this.words[B]=C&67108863;for(;N!==0&&B>26,this.words[B]=C&67108863;if(N===0&&B>>26,L=k&67108863,E=Math.min(p,h.length-1),F=Math.max(0,p-I.length+1);F<=E;F++){var j=p-F|0;M=I.words[j]|0,T=h.words[F]|0,N=M*T+L,R+=N/67108864|0,L=N&67108863}C.words[p]=L|0,k=R|0}return k!==0?C.words[p]=k|0:C.length--,C._strip()}var b=function(h,C,P){var M=h.words,T=C.words,N=P.words,B=0,k,p,R,L=M[0]|0,E=L&8191,F=L>>>13,j=M[1]|0,z=j&8191,K=j>>>13,ne=M[2]|0,X=ne&8191,te=ne>>>13,Te=M[3]|0,ce=Te&8191,xe=Te>>>13,Sr=M[4]|0,je=Sr&8191,Je=Sr>>>13,rn=M[5]|0,Ie=rn&8191,ct=rn>>>13,hi=M[6]|0,ft=hi&8191,vt=hi>>>13,vi=M[7]|0,et=vi&8191,ut=vi>>>13,jn=M[8]|0,yt=jn&8191,dt=jn>>>13,Xi=M[9]|0,ht=Xi&8191,pt=Xi>>>13,W=T[0]|0,q=W&8191,Q=W>>>13,he=T[1]|0,ye=he&8191,ve=he>>>13,Ee=T[2]|0,de=Ee&8191,fe=Ee>>>13,Ve=T[3]|0,Me=Ve&8191,be=Ve>>>13,rt=T[4]|0,ke=rt&8191,We=rt>>>13,Nr=T[5]|0,Xe=Nr&8191,nt=Nr>>>13,yr=T[6]|0,ze=yr&8191,tt=yr>>>13,zn=T[7]|0,it=zn&8191,st=zn>>>13,Oe=T[8]|0,$e=Oe&8191,qe=Oe>>>13,Un=T[9]|0,Ae=Un&8191,Ze=Un>>>13;P.negative=h.negative^C.negative,P.length=19,k=Math.imul(E,q),p=Math.imul(E,Q),p=p+Math.imul(F,q)|0,R=Math.imul(F,Q);var Vn=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,k=Math.imul(z,q),p=Math.imul(z,Q),p=p+Math.imul(K,q)|0,R=Math.imul(K,Q),k=k+Math.imul(E,ye)|0,p=p+Math.imul(E,ve)|0,p=p+Math.imul(F,ye)|0,R=R+Math.imul(F,ve)|0;var yi=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(yi>>>26)|0,yi&=67108863,k=Math.imul(X,q),p=Math.imul(X,Q),p=p+Math.imul(te,q)|0,R=Math.imul(te,Q),k=k+Math.imul(z,ye)|0,p=p+Math.imul(z,ve)|0,p=p+Math.imul(K,ye)|0,R=R+Math.imul(K,ve)|0,k=k+Math.imul(E,de)|0,p=p+Math.imul(E,fe)|0,p=p+Math.imul(F,de)|0,R=R+Math.imul(F,fe)|0;var Rs=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(Rs>>>26)|0,Rs&=67108863,k=Math.imul(ce,q),p=Math.imul(ce,Q),p=p+Math.imul(xe,q)|0,R=Math.imul(xe,Q),k=k+Math.imul(X,ye)|0,p=p+Math.imul(X,ve)|0,p=p+Math.imul(te,ye)|0,R=R+Math.imul(te,ve)|0,k=k+Math.imul(z,de)|0,p=p+Math.imul(z,fe)|0,p=p+Math.imul(K,de)|0,R=R+Math.imul(K,fe)|0,k=k+Math.imul(E,Me)|0,p=p+Math.imul(E,be)|0,p=p+Math.imul(F,Me)|0,R=R+Math.imul(F,be)|0;var _s=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(_s>>>26)|0,_s&=67108863,k=Math.imul(je,q),p=Math.imul(je,Q),p=p+Math.imul(Je,q)|0,R=Math.imul(Je,Q),k=k+Math.imul(ce,ye)|0,p=p+Math.imul(ce,ve)|0,p=p+Math.imul(xe,ye)|0,R=R+Math.imul(xe,ve)|0,k=k+Math.imul(X,de)|0,p=p+Math.imul(X,fe)|0,p=p+Math.imul(te,de)|0,R=R+Math.imul(te,fe)|0,k=k+Math.imul(z,Me)|0,p=p+Math.imul(z,be)|0,p=p+Math.imul(K,Me)|0,R=R+Math.imul(K,be)|0,k=k+Math.imul(E,ke)|0,p=p+Math.imul(E,We)|0,p=p+Math.imul(F,ke)|0,R=R+Math.imul(F,We)|0;var Ts=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(Ts>>>26)|0,Ts&=67108863,k=Math.imul(Ie,q),p=Math.imul(Ie,Q),p=p+Math.imul(ct,q)|0,R=Math.imul(ct,Q),k=k+Math.imul(je,ye)|0,p=p+Math.imul(je,ve)|0,p=p+Math.imul(Je,ye)|0,R=R+Math.imul(Je,ve)|0,k=k+Math.imul(ce,de)|0,p=p+Math.imul(ce,fe)|0,p=p+Math.imul(xe,de)|0,R=R+Math.imul(xe,fe)|0,k=k+Math.imul(X,Me)|0,p=p+Math.imul(X,be)|0,p=p+Math.imul(te,Me)|0,R=R+Math.imul(te,be)|0,k=k+Math.imul(z,ke)|0,p=p+Math.imul(z,We)|0,p=p+Math.imul(K,ke)|0,R=R+Math.imul(K,We)|0,k=k+Math.imul(E,Xe)|0,p=p+Math.imul(E,nt)|0,p=p+Math.imul(F,Xe)|0,R=R+Math.imul(F,nt)|0;var r1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(r1>>>26)|0,r1&=67108863,k=Math.imul(ft,q),p=Math.imul(ft,Q),p=p+Math.imul(vt,q)|0,R=Math.imul(vt,Q),k=k+Math.imul(Ie,ye)|0,p=p+Math.imul(Ie,ve)|0,p=p+Math.imul(ct,ye)|0,R=R+Math.imul(ct,ve)|0,k=k+Math.imul(je,de)|0,p=p+Math.imul(je,fe)|0,p=p+Math.imul(Je,de)|0,R=R+Math.imul(Je,fe)|0,k=k+Math.imul(ce,Me)|0,p=p+Math.imul(ce,be)|0,p=p+Math.imul(xe,Me)|0,R=R+Math.imul(xe,be)|0,k=k+Math.imul(X,ke)|0,p=p+Math.imul(X,We)|0,p=p+Math.imul(te,ke)|0,R=R+Math.imul(te,We)|0,k=k+Math.imul(z,Xe)|0,p=p+Math.imul(z,nt)|0,p=p+Math.imul(K,Xe)|0,R=R+Math.imul(K,nt)|0,k=k+Math.imul(E,ze)|0,p=p+Math.imul(E,tt)|0,p=p+Math.imul(F,ze)|0,R=R+Math.imul(F,tt)|0;var n1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(n1>>>26)|0,n1&=67108863,k=Math.imul(et,q),p=Math.imul(et,Q),p=p+Math.imul(ut,q)|0,R=Math.imul(ut,Q),k=k+Math.imul(ft,ye)|0,p=p+Math.imul(ft,ve)|0,p=p+Math.imul(vt,ye)|0,R=R+Math.imul(vt,ve)|0,k=k+Math.imul(Ie,de)|0,p=p+Math.imul(Ie,fe)|0,p=p+Math.imul(ct,de)|0,R=R+Math.imul(ct,fe)|0,k=k+Math.imul(je,Me)|0,p=p+Math.imul(je,be)|0,p=p+Math.imul(Je,Me)|0,R=R+Math.imul(Je,be)|0,k=k+Math.imul(ce,ke)|0,p=p+Math.imul(ce,We)|0,p=p+Math.imul(xe,ke)|0,R=R+Math.imul(xe,We)|0,k=k+Math.imul(X,Xe)|0,p=p+Math.imul(X,nt)|0,p=p+Math.imul(te,Xe)|0,R=R+Math.imul(te,nt)|0,k=k+Math.imul(z,ze)|0,p=p+Math.imul(z,tt)|0,p=p+Math.imul(K,ze)|0,R=R+Math.imul(K,tt)|0,k=k+Math.imul(E,it)|0,p=p+Math.imul(E,st)|0,p=p+Math.imul(F,it)|0,R=R+Math.imul(F,st)|0;var i1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(i1>>>26)|0,i1&=67108863,k=Math.imul(yt,q),p=Math.imul(yt,Q),p=p+Math.imul(dt,q)|0,R=Math.imul(dt,Q),k=k+Math.imul(et,ye)|0,p=p+Math.imul(et,ve)|0,p=p+Math.imul(ut,ye)|0,R=R+Math.imul(ut,ve)|0,k=k+Math.imul(ft,de)|0,p=p+Math.imul(ft,fe)|0,p=p+Math.imul(vt,de)|0,R=R+Math.imul(vt,fe)|0,k=k+Math.imul(Ie,Me)|0,p=p+Math.imul(Ie,be)|0,p=p+Math.imul(ct,Me)|0,R=R+Math.imul(ct,be)|0,k=k+Math.imul(je,ke)|0,p=p+Math.imul(je,We)|0,p=p+Math.imul(Je,ke)|0,R=R+Math.imul(Je,We)|0,k=k+Math.imul(ce,Xe)|0,p=p+Math.imul(ce,nt)|0,p=p+Math.imul(xe,Xe)|0,R=R+Math.imul(xe,nt)|0,k=k+Math.imul(X,ze)|0,p=p+Math.imul(X,tt)|0,p=p+Math.imul(te,ze)|0,R=R+Math.imul(te,tt)|0,k=k+Math.imul(z,it)|0,p=p+Math.imul(z,st)|0,p=p+Math.imul(K,it)|0,R=R+Math.imul(K,st)|0,k=k+Math.imul(E,$e)|0,p=p+Math.imul(E,qe)|0,p=p+Math.imul(F,$e)|0,R=R+Math.imul(F,qe)|0;var s1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(s1>>>26)|0,s1&=67108863,k=Math.imul(ht,q),p=Math.imul(ht,Q),p=p+Math.imul(pt,q)|0,R=Math.imul(pt,Q),k=k+Math.imul(yt,ye)|0,p=p+Math.imul(yt,ve)|0,p=p+Math.imul(dt,ye)|0,R=R+Math.imul(dt,ve)|0,k=k+Math.imul(et,de)|0,p=p+Math.imul(et,fe)|0,p=p+Math.imul(ut,de)|0,R=R+Math.imul(ut,fe)|0,k=k+Math.imul(ft,Me)|0,p=p+Math.imul(ft,be)|0,p=p+Math.imul(vt,Me)|0,R=R+Math.imul(vt,be)|0,k=k+Math.imul(Ie,ke)|0,p=p+Math.imul(Ie,We)|0,p=p+Math.imul(ct,ke)|0,R=R+Math.imul(ct,We)|0,k=k+Math.imul(je,Xe)|0,p=p+Math.imul(je,nt)|0,p=p+Math.imul(Je,Xe)|0,R=R+Math.imul(Je,nt)|0,k=k+Math.imul(ce,ze)|0,p=p+Math.imul(ce,tt)|0,p=p+Math.imul(xe,ze)|0,R=R+Math.imul(xe,tt)|0,k=k+Math.imul(X,it)|0,p=p+Math.imul(X,st)|0,p=p+Math.imul(te,it)|0,R=R+Math.imul(te,st)|0,k=k+Math.imul(z,$e)|0,p=p+Math.imul(z,qe)|0,p=p+Math.imul(K,$e)|0,R=R+Math.imul(K,qe)|0,k=k+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ze)|0,p=p+Math.imul(F,Ae)|0,R=R+Math.imul(F,Ze)|0;var o1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(o1>>>26)|0,o1&=67108863,k=Math.imul(ht,ye),p=Math.imul(ht,ve),p=p+Math.imul(pt,ye)|0,R=Math.imul(pt,ve),k=k+Math.imul(yt,de)|0,p=p+Math.imul(yt,fe)|0,p=p+Math.imul(dt,de)|0,R=R+Math.imul(dt,fe)|0,k=k+Math.imul(et,Me)|0,p=p+Math.imul(et,be)|0,p=p+Math.imul(ut,Me)|0,R=R+Math.imul(ut,be)|0,k=k+Math.imul(ft,ke)|0,p=p+Math.imul(ft,We)|0,p=p+Math.imul(vt,ke)|0,R=R+Math.imul(vt,We)|0,k=k+Math.imul(Ie,Xe)|0,p=p+Math.imul(Ie,nt)|0,p=p+Math.imul(ct,Xe)|0,R=R+Math.imul(ct,nt)|0,k=k+Math.imul(je,ze)|0,p=p+Math.imul(je,tt)|0,p=p+Math.imul(Je,ze)|0,R=R+Math.imul(Je,tt)|0,k=k+Math.imul(ce,it)|0,p=p+Math.imul(ce,st)|0,p=p+Math.imul(xe,it)|0,R=R+Math.imul(xe,st)|0,k=k+Math.imul(X,$e)|0,p=p+Math.imul(X,qe)|0,p=p+Math.imul(te,$e)|0,R=R+Math.imul(te,qe)|0,k=k+Math.imul(z,Ae)|0,p=p+Math.imul(z,Ze)|0,p=p+Math.imul(K,Ae)|0,R=R+Math.imul(K,Ze)|0;var a1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(a1>>>26)|0,a1&=67108863,k=Math.imul(ht,de),p=Math.imul(ht,fe),p=p+Math.imul(pt,de)|0,R=Math.imul(pt,fe),k=k+Math.imul(yt,Me)|0,p=p+Math.imul(yt,be)|0,p=p+Math.imul(dt,Me)|0,R=R+Math.imul(dt,be)|0,k=k+Math.imul(et,ke)|0,p=p+Math.imul(et,We)|0,p=p+Math.imul(ut,ke)|0,R=R+Math.imul(ut,We)|0,k=k+Math.imul(ft,Xe)|0,p=p+Math.imul(ft,nt)|0,p=p+Math.imul(vt,Xe)|0,R=R+Math.imul(vt,nt)|0,k=k+Math.imul(Ie,ze)|0,p=p+Math.imul(Ie,tt)|0,p=p+Math.imul(ct,ze)|0,R=R+Math.imul(ct,tt)|0,k=k+Math.imul(je,it)|0,p=p+Math.imul(je,st)|0,p=p+Math.imul(Je,it)|0,R=R+Math.imul(Je,st)|0,k=k+Math.imul(ce,$e)|0,p=p+Math.imul(ce,qe)|0,p=p+Math.imul(xe,$e)|0,R=R+Math.imul(xe,qe)|0,k=k+Math.imul(X,Ae)|0,p=p+Math.imul(X,Ze)|0,p=p+Math.imul(te,Ae)|0,R=R+Math.imul(te,Ze)|0;var l1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(l1>>>26)|0,l1&=67108863,k=Math.imul(ht,Me),p=Math.imul(ht,be),p=p+Math.imul(pt,Me)|0,R=Math.imul(pt,be),k=k+Math.imul(yt,ke)|0,p=p+Math.imul(yt,We)|0,p=p+Math.imul(dt,ke)|0,R=R+Math.imul(dt,We)|0,k=k+Math.imul(et,Xe)|0,p=p+Math.imul(et,nt)|0,p=p+Math.imul(ut,Xe)|0,R=R+Math.imul(ut,nt)|0,k=k+Math.imul(ft,ze)|0,p=p+Math.imul(ft,tt)|0,p=p+Math.imul(vt,ze)|0,R=R+Math.imul(vt,tt)|0,k=k+Math.imul(Ie,it)|0,p=p+Math.imul(Ie,st)|0,p=p+Math.imul(ct,it)|0,R=R+Math.imul(ct,st)|0,k=k+Math.imul(je,$e)|0,p=p+Math.imul(je,qe)|0,p=p+Math.imul(Je,$e)|0,R=R+Math.imul(Je,qe)|0,k=k+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Ze)|0,p=p+Math.imul(xe,Ae)|0,R=R+Math.imul(xe,Ze)|0;var c1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(c1>>>26)|0,c1&=67108863,k=Math.imul(ht,ke),p=Math.imul(ht,We),p=p+Math.imul(pt,ke)|0,R=Math.imul(pt,We),k=k+Math.imul(yt,Xe)|0,p=p+Math.imul(yt,nt)|0,p=p+Math.imul(dt,Xe)|0,R=R+Math.imul(dt,nt)|0,k=k+Math.imul(et,ze)|0,p=p+Math.imul(et,tt)|0,p=p+Math.imul(ut,ze)|0,R=R+Math.imul(ut,tt)|0,k=k+Math.imul(ft,it)|0,p=p+Math.imul(ft,st)|0,p=p+Math.imul(vt,it)|0,R=R+Math.imul(vt,st)|0,k=k+Math.imul(Ie,$e)|0,p=p+Math.imul(Ie,qe)|0,p=p+Math.imul(ct,$e)|0,R=R+Math.imul(ct,qe)|0,k=k+Math.imul(je,Ae)|0,p=p+Math.imul(je,Ze)|0,p=p+Math.imul(Je,Ae)|0,R=R+Math.imul(Je,Ze)|0;var f1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(f1>>>26)|0,f1&=67108863,k=Math.imul(ht,Xe),p=Math.imul(ht,nt),p=p+Math.imul(pt,Xe)|0,R=Math.imul(pt,nt),k=k+Math.imul(yt,ze)|0,p=p+Math.imul(yt,tt)|0,p=p+Math.imul(dt,ze)|0,R=R+Math.imul(dt,tt)|0,k=k+Math.imul(et,it)|0,p=p+Math.imul(et,st)|0,p=p+Math.imul(ut,it)|0,R=R+Math.imul(ut,st)|0,k=k+Math.imul(ft,$e)|0,p=p+Math.imul(ft,qe)|0,p=p+Math.imul(vt,$e)|0,R=R+Math.imul(vt,qe)|0,k=k+Math.imul(Ie,Ae)|0,p=p+Math.imul(Ie,Ze)|0,p=p+Math.imul(ct,Ae)|0,R=R+Math.imul(ct,Ze)|0;var u1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(u1>>>26)|0,u1&=67108863,k=Math.imul(ht,ze),p=Math.imul(ht,tt),p=p+Math.imul(pt,ze)|0,R=Math.imul(pt,tt),k=k+Math.imul(yt,it)|0,p=p+Math.imul(yt,st)|0,p=p+Math.imul(dt,it)|0,R=R+Math.imul(dt,st)|0,k=k+Math.imul(et,$e)|0,p=p+Math.imul(et,qe)|0,p=p+Math.imul(ut,$e)|0,R=R+Math.imul(ut,qe)|0,k=k+Math.imul(ft,Ae)|0,p=p+Math.imul(ft,Ze)|0,p=p+Math.imul(vt,Ae)|0,R=R+Math.imul(vt,Ze)|0;var d1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(d1>>>26)|0,d1&=67108863,k=Math.imul(ht,it),p=Math.imul(ht,st),p=p+Math.imul(pt,it)|0,R=Math.imul(pt,st),k=k+Math.imul(yt,$e)|0,p=p+Math.imul(yt,qe)|0,p=p+Math.imul(dt,$e)|0,R=R+Math.imul(dt,qe)|0,k=k+Math.imul(et,Ae)|0,p=p+Math.imul(et,Ze)|0,p=p+Math.imul(ut,Ae)|0,R=R+Math.imul(ut,Ze)|0;var h1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(h1>>>26)|0,h1&=67108863,k=Math.imul(ht,$e),p=Math.imul(ht,qe),p=p+Math.imul(pt,$e)|0,R=Math.imul(pt,qe),k=k+Math.imul(yt,Ae)|0,p=p+Math.imul(yt,Ze)|0,p=p+Math.imul(dt,Ae)|0,R=R+Math.imul(dt,Ze)|0;var v1=(B+k|0)+((p&8191)<<13)|0;B=(R+(p>>>13)|0)+(v1>>>26)|0,v1&=67108863,k=Math.imul(ht,Ae),p=Math.imul(ht,Ze),p=p+Math.imul(pt,Ae)|0,R=Math.imul(pt,Ze);var y1=(B+k|0)+((p&8191)<<13)|0;return B=(R+(p>>>13)|0)+(y1>>>26)|0,y1&=67108863,N[0]=Vn,N[1]=yi,N[2]=Rs,N[3]=_s,N[4]=Ts,N[5]=r1,N[6]=n1,N[7]=i1,N[8]=s1,N[9]=o1,N[10]=a1,N[11]=l1,N[12]=c1,N[13]=f1,N[14]=u1,N[15]=d1,N[16]=h1,N[17]=v1,N[18]=y1,B!==0&&(N[19]=B,P.length++),P};Math.imul||(b=x);function S(I,h,C){C.negative=h.negative^I.negative,C.length=I.length+h.length;for(var P=0,M=0,T=0;T>>26)|0,M+=N>>>26,N&=67108863}C.words[T]=B,P=N,N=M}return P!==0?C.words[T]=P:C.length--,C._strip()}function A(I,h,C){return S(I,h,C)}s.prototype.mulTo=function(h,C){var P,M=this.length+h.length;return this.length===10&&h.length===10?P=b(this,h,C):M<63?P=x(this,h,C):M<1024?P=S(this,h,C):P=A(this,h,C),P},s.prototype.mul=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),this.mulTo(h,C)},s.prototype.mulf=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),A(this,h,C)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var C=h<0;C&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var P=0,M=0;M>=26,P+=T/67108864|0,P+=N>>>26,this.words[M]=N&67108863}return P!==0&&(this.words[M]=P,this.length++),C?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var C=w(h);if(C.length===0)return new s(1);for(var P=this,M=0;M=0);var C=h%26,P=(h-C)/26,M=67108863>>>26-C<<26-C,T;if(C!==0){var N=0;for(T=0;T>>26-C}N&&(this.words[T]=N,this.length++)}if(P!==0){for(T=this.length-1;T>=0;T--)this.words[T+P]=this.words[T];for(T=0;T=0);var M;C?M=(C-C%26)/26:M=0;var T=h%26,N=Math.min((h-T)/26,this.length),B=67108863^67108863>>>T<N)for(this.length-=N,p=0;p=0&&(R!==0||p>=M);p--){var L=this.words[p]|0;this.words[p]=R<<26-T|L>>>T,R=L&B}return k&&R!==0&&(k.words[k.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,C,P){return n(this.negative===0),this.iushrn(h,C,P)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var C=h%26,P=(h-C)/26,M=1<=0);var C=h%26,P=(h-C)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=P)return this;if(C!==0&&P++,this.length=Math.min(P,this.length),C!==0){var M=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C>26)-(k/67108864|0),this.words[T+P]=N&67108863}for(;T>26,this.words[T+P]=N&67108863;if(B===0)return this._strip();for(n(B===-1),B=0,T=0;T>26,this.words[T]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,C){var P=this.length-h.length,M=this.clone(),T=h,N=T.words[T.length-1]|0,B=this._countBits(N);P=26-B,P!==0&&(T=T.ushln(P),M.iushln(P),N=T.words[T.length-1]|0);var k=M.length-T.length,p;if(C!=="mod"){p=new s(null),p.length=k+1,p.words=new Array(p.length);for(var R=0;R=0;E--){var F=(M.words[T.length+E]|0)*67108864+(M.words[T.length+E-1]|0);for(F=Math.min(F/N|0,67108863),M._ishlnsubmul(T,F,E);M.negative!==0;)F--,M.negative=0,M._ishlnsubmul(T,1,E),M.isZero()||(M.negative^=1);p&&(p.words[E]=F)}return p&&p._strip(),M._strip(),C!=="div"&&P!==0&&M.iushrn(P),{div:p||null,mod:M}},s.prototype.divmod=function(h,C,P){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var M,T,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,C),C!=="mod"&&(M=N.div.neg()),C!=="div"&&(T=N.mod.neg(),P&&T.negative!==0&&T.iadd(h)),{div:M,mod:T}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),C),C!=="mod"&&(M=N.div.neg()),{div:M,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),C),C!=="div"&&(T=N.mod.neg(),P&&T.negative!==0&&T.isub(h)),{div:N.div,mod:T}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?C==="div"?{div:this.divn(h.words[0]),mod:null}:C==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,C)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var C=this.divmod(h);if(C.mod.isZero())return C.div;var P=C.div.negative!==0?C.mod.isub(h):C.mod,M=h.ushrn(1),T=h.andln(1),N=P.cmp(M);return N<0||T===1&&N===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modrn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var P=(1<<26)%h,M=0,T=this.length-1;T>=0;T--)M=(P*M+(this.words[T]|0))%h;return C?-M:M},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var P=0,M=this.length-1;M>=0;M--){var T=(this.words[M]|0)+P*67108864;this.words[M]=T/h|0,P=T%h}return this._strip(),C?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var C=this,P=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=new s(0),B=new s(1),k=0;C.isEven()&&P.isEven();)C.iushrn(1),P.iushrn(1),++k;for(var p=P.clone(),R=C.clone();!C.isZero();){for(var L=0,E=1;!(C.words[0]&E)&&L<26;++L,E<<=1);if(L>0)for(C.iushrn(L);L-- >0;)(M.isOdd()||T.isOdd())&&(M.iadd(p),T.isub(R)),M.iushrn(1),T.iushrn(1);for(var F=0,j=1;!(P.words[0]&j)&&F<26;++F,j<<=1);if(F>0)for(P.iushrn(F);F-- >0;)(N.isOdd()||B.isOdd())&&(N.iadd(p),B.isub(R)),N.iushrn(1),B.iushrn(1);C.cmp(P)>=0?(C.isub(P),M.isub(N),T.isub(B)):(P.isub(C),N.isub(M),B.isub(T))}return{a:N,b:B,gcd:P.iushln(k)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var C=this,P=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=P.clone();C.cmpn(1)>0&&P.cmpn(1)>0;){for(var B=0,k=1;!(C.words[0]&k)&&B<26;++B,k<<=1);if(B>0)for(C.iushrn(B);B-- >0;)M.isOdd()&&M.iadd(N),M.iushrn(1);for(var p=0,R=1;!(P.words[0]&R)&&p<26;++p,R<<=1);if(p>0)for(P.iushrn(p);p-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);C.cmp(P)>=0?(C.isub(P),M.isub(T)):(P.isub(C),T.isub(M))}var L;return C.cmpn(1)===0?L=M:L=T,L.cmpn(0)<0&&L.iadd(h),L},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var C=this.clone(),P=h.clone();C.negative=0,P.negative=0;for(var M=0;C.isEven()&&P.isEven();M++)C.iushrn(1),P.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;P.isEven();)P.iushrn(1);var T=C.cmp(P);if(T<0){var N=C;C=P,P=N}else if(T===0||P.cmpn(1)===0)break;C.isub(P)}while(!0);return P.iushln(M)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var C=h%26,P=(h-C)/26,M=1<>>26,B&=67108863,this.words[N]=B}return T!==0&&(this.words[N]=T,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var C=h<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this._strip();var P;if(this.length>1)P=1;else{C&&(h=-h),n(h<=67108863,"Number is too big");var M=this.words[0]|0;P=M===h?0:Mh.length)return 1;if(this.length=0;P--){var M=this.words[P]|0,T=h.words[P]|0;if(M!==T){MT&&(C=1);break}}return C},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new H(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var _={k256:null,p224:null,p192:null,p25519:null};function O(I,h){this.name=I,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},O.prototype.ireduce=function(h){var C=h,P;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),P=C.bitLength();while(P>this.n);var M=P0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},O.prototype.split=function(h,C){h.iushrn(this.n,0,C)},O.prototype.imulK=function(h){return h.imul(this.k)};function $(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i($,O),$.prototype.split=function(h,C){for(var P=4194303,M=Math.min(h.length,9),T=0;T>>22,N=B}N>>>=22,h.words[T-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},$.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var C=0,P=0;P>>=26,h.words[P]=T,C=M}return C!==0&&(h.words[h.length++]=C),h},s._prime=function(h){if(_[h])return _[h];var C;if(h==="k256")C=new $;else if(h==="p224")C=new D;else if(h==="p192")C=new G;else if(h==="p25519")C=new J;else throw new Error("Unknown prime "+h);return _[h]=C,C};function H(I){if(typeof I=="string"){var h=s._prime(I);this.m=h.p,this.prime=h}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}H.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},H.prototype._verify2=function(h,C){n((h.negative|C.negative)===0,"red works only with positives"),n(h.red&&h.red===C.red,"red works only with red numbers")},H.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},H.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},H.prototype.add=function(h,C){this._verify2(h,C);var P=h.add(C);return P.cmp(this.m)>=0&&P.isub(this.m),P._forceRed(this)},H.prototype.iadd=function(h,C){this._verify2(h,C);var P=h.iadd(C);return P.cmp(this.m)>=0&&P.isub(this.m),P},H.prototype.sub=function(h,C){this._verify2(h,C);var P=h.sub(C);return P.cmpn(0)<0&&P.iadd(this.m),P._forceRed(this)},H.prototype.isub=function(h,C){this._verify2(h,C);var P=h.isub(C);return P.cmpn(0)<0&&P.iadd(this.m),P},H.prototype.shl=function(h,C){return this._verify1(h),this.imod(h.ushln(C))},H.prototype.imul=function(h,C){return this._verify2(h,C),this.imod(h.imul(C))},H.prototype.mul=function(h,C){return this._verify2(h,C),this.imod(h.mul(C))},H.prototype.isqr=function(h){return this.imul(h,h.clone())},H.prototype.sqr=function(h){return this.mul(h,h)},H.prototype.sqrt=function(h){if(h.isZero())return h.clone();var C=this.m.andln(3);if(n(C%2===1),C===3){var P=this.m.add(new s(1)).iushrn(2);return this.pow(h,P)}for(var M=this.m.subn(1),T=0;!M.isZero()&&M.andln(1)===0;)T++,M.iushrn(1);n(!M.isZero());var N=new s(1).toRed(this),B=N.redNeg(),k=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);this.pow(p,k).cmp(B)!==0;)p.redIAdd(B);for(var R=this.pow(p,M),L=this.pow(h,M.addn(1).iushrn(1)),E=this.pow(h,M),F=T;E.cmp(N)!==0;){for(var j=E,z=0;j.cmp(N)!==0;z++)j=j.redSqr();n(z=0;T--){for(var R=C.words[T],L=p-1;L>=0;L--){var E=R>>L&1;if(N!==M[0]&&(N=this.sqr(N)),E===0&&B===0){k=0;continue}B<<=1,B|=E,k++,!(k!==P&&(T!==0||L!==0))&&(N=this.mul(N,M[B]),k=0,B=0)}p=26}return N},H.prototype.convertTo=function(h){var C=h.umod(this.m);return C===h?C.clone():C},H.prototype.convertFrom=function(h){var C=h.clone();return C.red=null,C},s.mont=function(h){return new Z(h)};function Z(I){H.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(Z,H),Z.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},Z.prototype.convertFrom=function(h){var C=this.imod(h.mul(this.rinv));return C.red=null,C},Z.prototype.imul=function(h,C){if(h.isZero()||C.isZero())return h.words[0]=0,h.length=1,h;var P=h.imul(C),M=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=P.isub(M).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},Z.prototype.mul=function(h,C){if(h.isZero()||C.isZero())return new s(0)._forceRed(this);var P=h.mul(C),M=P.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=P.isub(M).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},Z.prototype.invm=function(h){var C=this.imod(h._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(e,Ls)})(Og);var nU=Og.exports;const Re=As(nU),iU="logger/5.7.0";let E6=!1,C6=!1;const jd={debug:1,default:2,info:2,warning:3,error:4,off:5};let S6=jd.default,vv=null;function sU(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch{e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}const A6=sU();var O0;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(O0||(O0={}));var En;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(En||(En={}));const k6="0123456789abcdef";let V=class ir{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const n=t.toLowerCase();jd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(S6>jd[n])&&console.log.apply(console,r)}debug(...t){this._log(ir.levels.DEBUG,t)}info(...t){this._log(ir.levels.INFO,t)}warn(...t){this._log(ir.levels.WARNING,t)}makeError(t,r,n){if(C6)return this.makeError("censored error",r,{});r||(r=ir.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let f="";for(let u=0;u>4],f+=k6[c[u]&15];i.push(l+"=Uint8Array(0x"+f+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const s=t;let o="";switch(r){case En.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case En.CALL_EXCEPTION:case En.INSUFFICIENT_FUNDS:case En.MISSING_NEW:case En.NONCE_EXPIRED:case En.REPLACEMENT_UNDERPRICED:case En.TRANSACTION_REPLACED:case En.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(t+=" ("+i.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=r,Object.keys(n).forEach(function(l){a[l]=n[l]}),a}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,ir.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,i){t||this.throwError(r,n,i)}assertArgument(t,r,n,i){t||this.throwArgumentError(r,n,i)}checkNormalize(t){A6&&this.throwError("platform missing String.prototype.normalize",ir.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:A6})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,ir.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,ir.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",tr&&this.throwError("too many arguments"+n,ir.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",ir.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",ir.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",ir.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return vv||(vv=new ir(iU)),vv}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",ir.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),E6){if(!t)return;this.globalLogger().throwError("error censorship permanent",ir.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}C6=!!t,E6=!!r}static setLogLevel(t){const r=jd[t.toLowerCase()];if(r==null){ir.globalLogger().warn("invalid log level - "+t);return}S6=r}static from(t){return new ir(t)}};V.errors=En;V.levels=O0;const oU=Object.freeze(Object.defineProperty({__proto__:null,get ErrorCode(){return En},get LogLevel(){return O0},Logger:V},Symbol.toStringTag,{value:"Module"})),aU="bytes/5.7.0",zt=new V(aU);function kA(e){return!!e.toHexString}function yl(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return yl(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function ku(e){return Ge(e)&&!(e.length%2)||xa(e)}function P6(e){return typeof e=="number"&&e==e&&e%1===0}function xa(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!P6(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function se(e,t){if(t||(t={}),typeof e=="number"){zt.checkSafeUint53(e,"invalid arrayify value");const r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),yl(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),kA(e)&&(e=e.toHexString()),Ge(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":zt.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let i=0;ise(i)),r=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(r);return t.reduce((i,s)=>(n.set(s,i),i+s.length),0),yl(n)}function ji(e){let t=se(e);if(t.length===0)return t;let r=0;for(;rt&&zt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),yl(r)}function Ge(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const yv="0123456789abcdef";function le(e,t){if(t||(t={}),typeof e=="number"){zt.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=yv[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),kA(e))return e.toHexString();if(Ge(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":zt.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(xa(e)){let r="0x";for(let n=0;n>4]+yv[i&15]}return r}return zt.throwArgumentError("invalid hexlify value","value",e)}function qi(e){if(typeof e!="string")e=le(e);else if(!Ge(e)||e.length%2)return null;return(e.length-2)/2}function Jt(e,t,r){return typeof e!="string"?e=le(e):(!Ge(e)||e.length%2)&&zt.throwArgumentError("invalid hexData","value",e),t=2+2*t,r!=null?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function Fr(e){let t="0x";return e.forEach(r=>{t+=le(r).substring(2)}),t}function Oh(e){const t=PA(le(e,{hexPad:"left"}));return t==="0x"?"0x0":t}function PA(e){typeof e!="string"&&(e=le(e)),Ge(e)||zt.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&zt.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function ba(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(ku(e)){let r=se(e);r.length===64?(t.v=27+(r[32]>>7),r[32]&=127,t.r=le(r.slice(0,32)),t.s=le(r.slice(32,64))):r.length===65?(t.r=le(r.slice(0,32)),t.s=le(r.slice(32,64)),t.v=r[64]):zt.throwArgumentError("invalid signature string","signature",e),t.v<27&&(t.v===0||t.v===1?t.v+=27:zt.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=le(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,t._vs!=null){const i=mf(se(t._vs),32);t._vs=le(i);const s=i[0]>=128?1:0;t.recoveryParam==null?t.recoveryParam=s:t.recoveryParam!==s&&zt.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127;const o=le(i);t.s==null?t.s=o:t.s!==o&&zt.throwArgumentError("signature v mismatch _vs","signature",e)}if(t.recoveryParam==null)t.v==null?zt.throwArgumentError("signature missing v and recoveryParam","signature",e):t.v===0||t.v===1?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(t.v==null)t.v=27+t.recoveryParam;else{const i=t.v===0||t.v===1?t.v:1-t.v%2;t.recoveryParam!==i&&zt.throwArgumentError("signature recoveryParam mismatch v","signature",e)}t.r==null||!Ge(t.r)?zt.throwArgumentError("signature missing or invalid r","signature",e):t.r=xt(t.r,32),t.s==null||!Ge(t.s)?zt.throwArgumentError("signature missing or invalid s","signature",e):t.s=xt(t.s,32);const r=se(t.s);r[0]>=128&&zt.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=le(r);t._vs&&(Ge(t._vs)||zt.throwArgumentError("signature invalid _vs","signature",e),t._vs=xt(t._vs,32)),t._vs==null?t._vs=n:t._vs!==n&&zt.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function Pp(e){return e=ba(e),le(St([e.r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}const lU=Object.freeze(Object.defineProperty({__proto__:null,arrayify:se,concat:St,hexConcat:Fr,hexDataLength:qi,hexDataSlice:Jt,hexStripZeros:PA,hexValue:Oh,hexZeroPad:xt,hexlify:le,isBytes:xa,isBytesLike:ku,isHexString:Ge,joinSignature:Pp,splitSignature:ba,stripZeros:ji,zeroPad:mf},Symbol.toStringTag,{value:"Module"})),RA="bignumber/5.7.0";var Xf=Re.BN;const is=new V(RA),pv={},R6=9007199254740991;function cU(e){return e!=null&&(ae.isBigNumber(e)||typeof e=="number"&&e%1===0||typeof e=="string"&&!!e.match(/^-?[0-9]+$/)||Ge(e)||typeof e=="bigint"||xa(e))}let _6=!1;class ae{constructor(t,r){t!==pv&&is.throwError("cannot call constructor directly; use BigNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return qr(De(this).fromTwos(t))}toTwos(t){return qr(De(this).toTwos(t))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(t){return qr(De(this).add(De(t)))}sub(t){return qr(De(this).sub(De(t)))}div(t){return ae.from(t).isZero()&&xn("division-by-zero","div"),qr(De(this).div(De(t)))}mul(t){return qr(De(this).mul(De(t)))}mod(t){const r=De(t);return r.isNeg()&&xn("division-by-zero","mod"),qr(De(this).umod(r))}pow(t){const r=De(t);return r.isNeg()&&xn("negative-power","pow"),qr(De(this).pow(r))}and(t){const r=De(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","and"),qr(De(this).and(r))}or(t){const r=De(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","or"),qr(De(this).or(r))}xor(t){const r=De(t);return(this.isNegative()||r.isNeg())&&xn("unbound-bitwise-result","xor"),qr(De(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&xn("negative-width","mask"),qr(De(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&xn("negative-width","shl"),qr(De(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&xn("negative-width","shr"),qr(De(this).shrn(t))}eq(t){return De(this).eq(De(t))}lt(t){return De(this).lt(De(t))}lte(t){return De(this).lte(De(t))}gt(t){return De(this).gt(De(t))}gte(t){return De(this).gte(De(t))}isNegative(){return this._hex[0]==="-"}isZero(){return De(this).isZero()}toNumber(){try{return De(this).toNumber()}catch{xn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return is.throwError("this platform does not support BigInt",V.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?_6||(_6=!0,is.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?is.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",V.errors.UNEXPECTED_ARGUMENT,{}):is.throwError("BigNumber.toString does not accept parameters",V.errors.UNEXPECTED_ARGUMENT,{})),De(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof ae)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new ae(pv,Zf(t)):t.match(/^-?[0-9]+$/)?new ae(pv,Zf(new Xf(t))):is.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&xn("underflow","BigNumber.from",t),(t>=R6||t<=-R6)&&xn("overflow","BigNumber.from",t),ae.from(String(t));const r=t;if(typeof r=="bigint")return ae.from(r.toString());if(xa(r))return ae.from(le(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return ae.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Ge(n)||n[0]==="-"&&Ge(n.substring(1))))return ae.from(n)}return is.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function Zf(e){if(typeof e!="string")return Zf(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&is.throwArgumentError("invalid hex","value",e),e=Zf(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function qr(e){return ae.from(Zf(e))}function De(e){const t=ae.from(e).toHexString();return t[0]==="-"?new Xf("-"+t.substring(3),16):new Xf(t.substring(2),16)}function xn(e,t,r){const n={fault:e,operation:t};return r!=null&&(n.value=r),is.throwError(e,V.errors.NUMERIC_FAULT,n)}function fU(e){return new Xf(e,36).toString(16)}function uU(e){return new Xf(e,16).toString(36)}const jr=new V(RA),gf={},_A=ae.from(0),TA=ae.from(-1);function MA(e,t,r,n){const i={fault:t,operation:r};return n!==void 0&&(i.value=n),jr.throwError(e,V.errors.NUMERIC_FAULT,i)}let xf="0";for(;xf.length<256;)xf+=xf;function Dg(e){if(typeof e!="number")try{e=ae.from(e).toNumber()}catch{}return typeof e=="number"&&e>=0&&e<=256&&!(e%1)?"1"+xf.substring(0,e):jr.throwArgumentError("invalid decimal size","decimals",e)}function zd(e,t){t==null&&(t=0);const r=Dg(t);e=ae.from(e);const n=e.lt(_A);n&&(e=e.mul(TA));let i=e.mod(r).toString();for(;i.length2&&jr.throwArgumentError("too many decimal points","value",e);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");o[o.length-1]==="0";)o=o.substring(0,o.length-1);for(o.length>r.length-1&&MA("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengtht[o]==null?l:(typeof t[o]!==a&&jr.throwArgumentError("invalid fixed format ("+o+" not "+a+")","format."+o,t[o]),t[o]);r=s("signed","boolean",r),n=s("width","number",n),i=s("decimals","number",i)}return n%8&&jr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&jr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new pl(gf,r,n,i)}}class mr{constructor(t,r,n,i){t!==gf&&jr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&jr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const r=wi(this._value,this.format.decimals),n=wi(t._value,t.format.decimals);return mr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const r=wi(this._value,this.format.decimals),n=wi(t._value,t.format.decimals);return mr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const r=wi(this._value,this.format.decimals),n=wi(t._value,t.format.decimals);return mr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const r=wi(this._value,this.format.decimals),n=wi(t._value,t.format.decimals);return mr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");t.length===1&&t.push("0");let r=mr.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(T6.toFormat(r.format))),r}ceiling(){const t=this.toString().split(".");t.length===1&&t.push("0");let r=mr.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(T6.toFormat(r.format))),r}round(t){t==null&&(t=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(t<0||t>80||t%1)&&jr.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;const n=mr.from("1"+xf.substring(0,t),this.format),i=dU.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(t){if(t==null)return this._hex;t%8&&jr.throwArgumentError("invalid byte width","width",t);const r=ae.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return xt(r,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return mr.fromString(this._value,t)}static fromValue(t,r,n){return n==null&&r!=null&&!cU(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),mr.fromString(zd(t,r),pl.from(n))}static fromString(t,r){r==null&&(r="fixed");const n=pl.from(r),i=wi(t,n.decimals);!n.signed&&i.lt(_A)&&MA("unsigned value cannot be negative","overflow","value",t);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=xt(s,n.width/8));const o=zd(i,n.decimals);return new mr(gf,s,o,n)}static fromBytes(t,r){r==null&&(r="fixed");const n=pl.from(r);if(se(t).length>n.width/8)throw new Error("overflow");let i=ae.from(t);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=zd(i,n.decimals);return new mr(gf,s,o,n)}static from(t,r){if(typeof t=="string")return mr.fromString(t,r);if(xa(t))return mr.fromBytes(t,r);try{return mr.fromValue(t,0,r)}catch(n){if(n.code!==V.errors.INVALID_ARGUMENT)throw n}return jr.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}const T6=mr.from(1),dU=mr.from("0.5"),hU="properties/5.7.0";var vU=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const D0=new V(hU);function ee(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function ri(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||typeof e.prototype!="object")break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function Ut(e){return vU(this,void 0,void 0,function*(){const t=Object.keys(e).map(n=>{const i=e[n];return Promise.resolve(i).then(s=>({key:n,value:s}))});return(yield Promise.all(t)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function Bg(e,t){(!e||typeof e!="object")&&D0.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||D0.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function rr(e){const t={};for(const r in e)t[r]=e[r];return t}const yU={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function IA(e){if(e==null||yU[typeof e])return!0;if(Array.isArray(e)||typeof e=="object"){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rvo(t)));if(typeof e=="object"){const t={};for(const r in e){const n=e[r];n!==void 0&&ee(t,r,vo(n))}return t}return D0.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function vo(e){return pU(e)}class ko{constructor(t){for(const r in t)this[r]=vo(t[r])}}const mU=Object.freeze(Object.defineProperty({__proto__:null,Description:ko,checkProperties:Bg,deepCopy:vo,defineReadOnly:ee,getStatic:ri,resolveProperties:Ut,shallowCopy:rr},Symbol.toStringTag,{value:"Module"})),Pu="abi/5.7.0",Ue=new V(Pu),la={};let M6={calldata:!0,memory:!0,storage:!0},gU={calldata:!0,memory:!0};function hd(e,t){if(e==="bytes"||e==="string"){if(M6[t])return!0}else if(e==="address"){if(t==="payable")return!0}else if((e.indexOf("[")>=0||e==="tuple")&&gU[t])return!0;return(M6[t]||t==="payable")&&Ue.throwArgumentError("invalid modifier","name",t),!1}function xU(e,t){let r=e;function n(a){Ue.throwArgumentError(`unexpected character at position ${a}`,"param",e)}e=e.replace(/\s/g," ");function i(a){let l={type:"",name:"",parent:a,state:{allowType:!0}};return t&&(l.indexed=!1),l}let s={type:"",name:"",state:{allowType:!0}},o=s;for(let a=0;aJSON.parse(i.format(t)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(t),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(t!==Ke.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(t)).join(t===Ke.full?", ":",")+")"):r+=this.type,t!==Ke.sighash&&(this.indexed===!0&&(r+=" indexed"),t===Ke.full&&this.name&&(r+=" "+this.name)),r}static from(t,r){return typeof t=="string"?ar.fromString(t,r):ar.fromObject(t)}static fromObject(t){return ar.isParamType(t)?t:new ar(la,{name:t.name||null,type:Oa(t.type),indexed:t.indexed==null?null:!!t.indexed,components:t.components?t.components.map(ar.fromObject):null})}static fromString(t,r){function n(i){return ar.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(xU(t,!!r))}static isParamType(t){return!!(t!=null&&t._isParamType)}}function eu(e,t){return EU(e).map(r=>ar.fromString(r,t))}class Oi{constructor(t,r){t!==la&&Ue.throwError("use a static from method",V.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Ud(this,r),this._isFragment=!0,Object.freeze(this)}static from(t){return Oi.isFragment(t)?t:typeof t=="string"?Oi.fromString(t):Oi.fromObject(t)}static fromObject(t){if(Oi.isFragment(t))return t;switch(t.type){case"function":return ti.fromObject(t);case"event":return Ri.fromObject(t);case"constructor":return ei.fromObject(t);case"error":return ls.fromObject(t);case"fallback":case"receive":return null}return Ue.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),t.split(" ")[0]==="event"?Ri.fromString(t.substring(5).trim()):t.split(" ")[0]==="function"?ti.fromString(t.substring(8).trim()):t.split("(")[0].trim()==="constructor"?ei.fromString(t.trim()):t.split(" ")[0]==="error"?ls.fromString(t.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!!(t&&t._isFragment)}}class Ri extends Oi{format(t){if(t||(t=Ke.sighash),Ke[t]||Ue.throwArgumentError("invalid format type","format",t),t===Ke.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(t)))});let r="";return t!==Ke.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(t)).join(t===Ke.full?", ":",")+") ",t!==Ke.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(t){return typeof t=="string"?Ri.fromString(t):Ri.fromObject(t)}static fromObject(t){if(Ri.isEventFragment(t))return t;t.type!=="event"&&Ue.throwArgumentError("invalid event object","value",t);const r={name:tu(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(ar.fromObject):[],type:"event"};return new Ri(la,r)}static fromString(t){let r=t.match(ru);r||Ue.throwArgumentError("invalid event string","value",t);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:Ue.warn("unknown modifier: "+i)}}),Ri.fromObject({name:r[1].trim(),anonymous:n,inputs:eu(r[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&t.type==="event"}}function NA(e,t){t.gas=null;let r=e.split("@");return r.length!==1?(r.length>2&&Ue.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||Ue.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=ae.from(r[1]),r[0]):e}function $A(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(r=>{switch(r.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function OA(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return e.stateMutability!=null?(t.stateMutability=e.stateMutability,t.constant=t.stateMutability==="view"||t.stateMutability==="pure",e.constant!=null&&!!e.constant!==t.constant&&Ue.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable=t.stateMutability==="payable",e.payable!=null&&!!e.payable!==t.payable&&Ue.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):e.payable!=null?(t.payable=!!e.payable,e.constant==null&&!t.payable&&e.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&Ue.throwArgumentError("cannot have constant payable function","value",e)):e.constant!=null?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):e.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",e),t}class ei extends Oi{format(t){if(t||(t=Ke.sighash),Ke[t]||Ue.throwArgumentError("invalid format type","format",t),t===Ke.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(t)))});t===Ke.sighash&&Ue.throwError("cannot format a constructor for sighash",V.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(t)).join(t===Ke.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(t){return typeof t=="string"?ei.fromString(t):ei.fromObject(t)}static fromObject(t){if(ei.isConstructorFragment(t))return t;t.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",t);let r=OA(t);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",t);const n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(ar.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:t.gas?ae.from(t.gas):null};return new ei(la,n)}static fromString(t){let r={type:"constructor"};t=NA(t,r);let n=t.match(ru);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",t),r.inputs=eu(n[2].trim(),!1),$A(n[3].trim(),r),ei.fromObject(r)}static isConstructorFragment(t){return t&&t._isFragment&&t.type==="constructor"}}class ti extends ei{format(t){if(t||(t=Ke.sighash),Ke[t]||Ue.throwArgumentError("invalid format type","format",t),t===Ke.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(t))),outputs:this.outputs.map(n=>JSON.parse(n.format(t)))});let r="";return t!==Ke.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(t)).join(t===Ke.full?", ":",")+") ",t!==Ke.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(t)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(t){return typeof t=="string"?ti.fromString(t):ti.fromObject(t)}static fromObject(t){if(ti.isFunctionFragment(t))return t;t.type!=="function"&&Ue.throwArgumentError("invalid function object","value",t);let r=OA(t);const n={type:t.type,name:tu(t.name),constant:r.constant,inputs:t.inputs?t.inputs.map(ar.fromObject):[],outputs:t.outputs?t.outputs.map(ar.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:t.gas?ae.from(t.gas):null};return new ti(la,n)}static fromString(t){let r={type:"function"};t=NA(t,r);let n=t.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",t);let i=n[0].match(ru);if(i||Ue.throwArgumentError("invalid function signature","value",t),r.name=i[1].trim(),r.name&&tu(r.name),r.inputs=eu(i[2],!1),$A(i[3].trim(),r),n.length>1){let s=n[1].match(ru);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",t),r.outputs=eu(s[2],!1)}else r.outputs=[];return ti.fromObject(r)}static isFunctionFragment(t){return t&&t._isFragment&&t.type==="function"}}function I6(e){const t=e.format();return(t==="Error(string)"||t==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class ls extends Oi{format(t){if(t||(t=Ke.sighash),Ke[t]||Ue.throwArgumentError("invalid format type","format",t),t===Ke.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(t)))});let r="";return t!==Ke.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(t)).join(t===Ke.full?", ":",")+") ",r.trim()}static from(t){return typeof t=="string"?ls.fromString(t):ls.fromObject(t)}static fromObject(t){if(ls.isErrorFragment(t))return t;t.type!=="error"&&Ue.throwArgumentError("invalid error object","value",t);const r={type:t.type,name:tu(t.name),inputs:t.inputs?t.inputs.map(ar.fromObject):[]};return I6(new ls(la,r))}static fromString(t){let r={type:"error"},n=t.match(ru);return n||Ue.throwArgumentError("invalid error signature","value",t),r.name=n[1].trim(),r.name&&tu(r.name),r.inputs=eu(n[2],!1),I6(ls.fromObject(r))}static isErrorFragment(t){return t&&t._isFragment&&t.type==="error"}}function Oa(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const wU=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function tu(e){return(!e||!e.match(wU))&&Ue.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const ru=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function EU(e){e=e.trim();let t=[],r="",n=0;for(let i=0;ithis.wordSize&&Lg.throwError("value out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=St([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[t]=this._getValue(r)}}}class B0{constructor(t,r,n,i){ee(this,"_data",se(t)),ee(this,"wordSize",r||32),ee(this,"_coerceFunc",n),ee(this,"allowLoose",i),this._offset=0}get data(){return le(this._data)}get consumed(){return this._offset}static coerce(t,r){let n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(t,r){return this._coerceFunc?this._coerceFunc(t,r):B0.coerce(t,r)}_peekBytes(t,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:Lg.throwError("data out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(t){return new B0(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,r){let n=this._peekBytes(0,t,!!r);return this._offset+=n.length,n.slice(0,t)}readValue(){return ae.from(this.readBytes(this.wordSize))}}var BA={exports:{}};/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */(function(e){(function(){var t="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=Ls:s&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],u=[4,1024,262144,67108864],d=[1,256,65536,16777216],v=[6,1536,393216,100663296],m=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],w=[224,256,384,512],x=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return Object.prototype.toString.call(E)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return typeof E=="object"&&E.buffer&&E.buffer.constructor===ArrayBuffer});for(var A=function(E,F,j){return function(z){return new p(E,F,E).update(z)[j]()}},_=function(E,F,j){return function(z,K){return new p(E,F,K).update(z)[j]()}},O=function(E,F,j){return function(z,K,ne,X){return h["cshake"+E].update(z,K,ne,X)[j]()}},$=function(E,F,j){return function(z,K,ne,X){return h["kmac"+E].update(z,K,ne,X)[j]()}},D=function(E,F,j,z){for(var K=0;K>5,this.byteCount=this.blockCount<<2,this.outputBlocks=j>>5,this.extraBytes=(j&31)>>3;for(var z=0;z<50;++z)this.s[z]=0}p.prototype.update=function(E){if(this.finalized)throw new Error(r);var F,j=typeof E;if(j!=="string"){if(j==="object"){if(E===null)throw new Error(t);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(t)}else throw new Error(t);F=!0}for(var z=this.blocks,K=this.byteCount,ne=E.length,X=this.blockCount,te=0,Te=this.s,ce,xe;te>2]|=E[te]<>2]|=xe<>2]|=(192|xe>>6)<>2]|=(128|xe&63)<=57344?(z[ce>>2]|=(224|xe>>12)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<>2]|=(240|xe>>18)<>2]|=(128|xe>>12&63)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<=K){for(this.start=ce-K,this.block=z[X],ce=0;ce>8,j=E&255;j>0;)K.unshift(j),E=E>>8,j=E&255,++z;return F?K.push(z):K.unshift(z),this.update(K),K.length},p.prototype.encodeString=function(E){var F,j=typeof E;if(j!=="string"){if(j==="object"){if(E===null)throw new Error(t);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(t)}else throw new Error(t);F=!0}var z=0,K=E.length;if(F)z=K;else for(var ne=0;ne=57344?z+=3:(X=65536+((X&1023)<<10|E.charCodeAt(++ne)&1023),z+=4)}return z+=this.encode(z*8),this.update(E),z},p.prototype.bytepad=function(E,F){for(var j=this.encode(F),z=0;z>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(E[0]=E[j],F=1;F>4&15]+c[te&15]+c[te>>12&15]+c[te>>8&15]+c[te>>20&15]+c[te>>16&15]+c[te>>28&15]+c[te>>24&15];ne%E===0&&(L(F),K=0)}return z&&(te=F[K],X+=c[te>>4&15]+c[te&15],z>1&&(X+=c[te>>12&15]+c[te>>8&15]),z>2&&(X+=c[te>>20&15]+c[te>>16&15])),X},p.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,F=this.s,j=this.outputBlocks,z=this.extraBytes,K=0,ne=0,X=this.outputBits>>3,te;z?te=new ArrayBuffer(j+1<<2):te=new ArrayBuffer(X);for(var Te=new Uint32Array(te);ne>8&255,X[te+2]=Te>>16&255,X[te+3]=Te>>24&255;ne%E===0&&L(F)}return z&&(te=ne<<2,Te=F[K],X[te]=Te&255,z>1&&(X[te+1]=Te>>8&255),z>2&&(X[te+2]=Te>>16&255)),X};function R(E,F,j){p.call(this,E,F,j)}R.prototype=new p,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),p.prototype.finalize.call(this)};var L=function(E){var F,j,z,K,ne,X,te,Te,ce,xe,Sr,je,Je,rn,Ie,ct,hi,ft,vt,vi,et,ut,jn,yt,dt,Xi,ht,pt,W,q,Q,he,ye,ve,Ee,de,fe,Ve,Me,be,rt,ke,We,Nr,Xe,nt,yr,ze,tt,zn,it,st,Oe,$e,qe,Un,Ae,Ze,Vn,yi,Rs,_s,Ts;for(z=0;z<48;z+=2)K=E[0]^E[10]^E[20]^E[30]^E[40],ne=E[1]^E[11]^E[21]^E[31]^E[41],X=E[2]^E[12]^E[22]^E[32]^E[42],te=E[3]^E[13]^E[23]^E[33]^E[43],Te=E[4]^E[14]^E[24]^E[34]^E[44],ce=E[5]^E[15]^E[25]^E[35]^E[45],xe=E[6]^E[16]^E[26]^E[36]^E[46],Sr=E[7]^E[17]^E[27]^E[37]^E[47],je=E[8]^E[18]^E[28]^E[38]^E[48],Je=E[9]^E[19]^E[29]^E[39]^E[49],F=je^(X<<1|te>>>31),j=Je^(te<<1|X>>>31),E[0]^=F,E[1]^=j,E[10]^=F,E[11]^=j,E[20]^=F,E[21]^=j,E[30]^=F,E[31]^=j,E[40]^=F,E[41]^=j,F=K^(Te<<1|ce>>>31),j=ne^(ce<<1|Te>>>31),E[2]^=F,E[3]^=j,E[12]^=F,E[13]^=j,E[22]^=F,E[23]^=j,E[32]^=F,E[33]^=j,E[42]^=F,E[43]^=j,F=X^(xe<<1|Sr>>>31),j=te^(Sr<<1|xe>>>31),E[4]^=F,E[5]^=j,E[14]^=F,E[15]^=j,E[24]^=F,E[25]^=j,E[34]^=F,E[35]^=j,E[44]^=F,E[45]^=j,F=Te^(je<<1|Je>>>31),j=ce^(Je<<1|je>>>31),E[6]^=F,E[7]^=j,E[16]^=F,E[17]^=j,E[26]^=F,E[27]^=j,E[36]^=F,E[37]^=j,E[46]^=F,E[47]^=j,F=xe^(K<<1|ne>>>31),j=Sr^(ne<<1|K>>>31),E[8]^=F,E[9]^=j,E[18]^=F,E[19]^=j,E[28]^=F,E[29]^=j,E[38]^=F,E[39]^=j,E[48]^=F,E[49]^=j,rn=E[0],Ie=E[1],nt=E[11]<<4|E[10]>>>28,yr=E[10]<<4|E[11]>>>28,pt=E[20]<<3|E[21]>>>29,W=E[21]<<3|E[20]>>>29,yi=E[31]<<9|E[30]>>>23,Rs=E[30]<<9|E[31]>>>23,ke=E[40]<<18|E[41]>>>14,We=E[41]<<18|E[40]>>>14,ve=E[2]<<1|E[3]>>>31,Ee=E[3]<<1|E[2]>>>31,ct=E[13]<<12|E[12]>>>20,hi=E[12]<<12|E[13]>>>20,ze=E[22]<<10|E[23]>>>22,tt=E[23]<<10|E[22]>>>22,q=E[33]<<13|E[32]>>>19,Q=E[32]<<13|E[33]>>>19,_s=E[42]<<2|E[43]>>>30,Ts=E[43]<<2|E[42]>>>30,$e=E[5]<<30|E[4]>>>2,qe=E[4]<<30|E[5]>>>2,de=E[14]<<6|E[15]>>>26,fe=E[15]<<6|E[14]>>>26,ft=E[25]<<11|E[24]>>>21,vt=E[24]<<11|E[25]>>>21,zn=E[34]<<15|E[35]>>>17,it=E[35]<<15|E[34]>>>17,he=E[45]<<29|E[44]>>>3,ye=E[44]<<29|E[45]>>>3,yt=E[6]<<28|E[7]>>>4,dt=E[7]<<28|E[6]>>>4,Un=E[17]<<23|E[16]>>>9,Ae=E[16]<<23|E[17]>>>9,Ve=E[26]<<25|E[27]>>>7,Me=E[27]<<25|E[26]>>>7,vi=E[36]<<21|E[37]>>>11,et=E[37]<<21|E[36]>>>11,st=E[47]<<24|E[46]>>>8,Oe=E[46]<<24|E[47]>>>8,Nr=E[8]<<27|E[9]>>>5,Xe=E[9]<<27|E[8]>>>5,Xi=E[18]<<20|E[19]>>>12,ht=E[19]<<20|E[18]>>>12,Ze=E[29]<<7|E[28]>>>25,Vn=E[28]<<7|E[29]>>>25,be=E[38]<<8|E[39]>>>24,rt=E[39]<<8|E[38]>>>24,ut=E[48]<<14|E[49]>>>18,jn=E[49]<<14|E[48]>>>18,E[0]=rn^~ct&ft,E[1]=Ie^~hi&vt,E[10]=yt^~Xi&pt,E[11]=dt^~ht&W,E[20]=ve^~de&Ve,E[21]=Ee^~fe&Me,E[30]=Nr^~nt&ze,E[31]=Xe^~yr&tt,E[40]=$e^~Un&Ze,E[41]=qe^~Ae&Vn,E[2]=ct^~ft&vi,E[3]=hi^~vt&et,E[12]=Xi^~pt&q,E[13]=ht^~W&Q,E[22]=de^~Ve&be,E[23]=fe^~Me&rt,E[32]=nt^~ze&zn,E[33]=yr^~tt&it,E[42]=Un^~Ze&yi,E[43]=Ae^~Vn&Rs,E[4]=ft^~vi&ut,E[5]=vt^~et&jn,E[14]=pt^~q&he,E[15]=W^~Q&ye,E[24]=Ve^~be&ke,E[25]=Me^~rt&We,E[34]=ze^~zn&st,E[35]=tt^~it&Oe,E[44]=Ze^~yi&_s,E[45]=Vn^~Rs&Ts,E[6]=vi^~ut&rn,E[7]=et^~jn&Ie,E[16]=q^~he&yt,E[17]=Q^~ye&dt,E[26]=be^~ke&ve,E[27]=rt^~We&Ee,E[36]=zn^~st&Nr,E[37]=it^~Oe&Xe,E[46]=yi^~_s&$e,E[47]=Rs^~Ts&qe,E[8]=ut^~rn&ct,E[9]=jn^~Ie&hi,E[18]=he^~yt&Xi,E[19]=ye^~dt&ht,E[28]=ke^~ve&de,E[29]=We^~Ee&fe,E[38]=st^~Nr&nt,E[39]=Oe^~Xe&yr,E[48]=_s^~$e&Un,E[49]=Ts^~qe&Ae,E[0]^=y[z],E[1]^=y[z+1]};if(a)e.exports=h;else for(P=0;P>=8;return t}function $6(e,t,r){let n=0;for(let i=0;it+1+n&&Si.throwError("child data too short",V.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function FA(e,t){if(e.length===0&&Si.throwError("data too short",V.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&Si.throwError("data short segment too short",V.errors.BUFFER_OVERRUN,{});const n=$6(e,t+1,r);return t+1+r+n>e.length&&Si.throwError("data long segment too short",V.errors.BUFFER_OVERRUN,{}),O6(e,t,t+1+r,r+n)}else if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&Si.throwError("data array too short",V.errors.BUFFER_OVERRUN,{}),O6(e,t,t+1,r)}else if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&Si.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const n=$6(e,t+1,r);t+1+r+n>e.length&&Si.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const i=le(e.slice(t+1+r,t+1+r+n));return{consumed:1+r+n,result:i}}else if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&Si.throwError("data too short",V.errors.BUFFER_OVERRUN,{});const n=le(e.slice(t+1,t+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:le(e[t])}}function Dh(e){const t=se(e),r=FA(t,0);return r.consumed!==t.length&&Si.throwArgumentError("invalid rlp data","data",e),r.result}const PU=Object.freeze(Object.defineProperty({__proto__:null,decode:Dh,encode:ca},Symbol.toStringTag,{value:"Module"})),RU="address/5.7.0",Ws=new V(RU);function D6(e){Ge(e,20)||Ws.throwArgumentError("invalid address","address",e),e=e.toLowerCase();const t=e.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=se(ot(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(n[i>>1]&15)>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const _U=9007199254740991;function TU(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}const Fg={};for(let e=0;e<10;e++)Fg[String(e)]=String(e);for(let e=0;e<26;e++)Fg[String.fromCharCode(65+e)]=String(10+e);const B6=Math.floor(TU(_U));function jA(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+"00";let t=e.split("").map(n=>Fg[n]).join("");for(;t.length>=B6;){let n=t.substring(0,B6);t=parseInt(n,10)%97+t.substring(n.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function lt(e){let t=null;if(typeof e!="string"&&Ws.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!=="0x"&&(e="0x"+e),t=D6(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&Ws.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==jA(e)&&Ws.throwArgumentError("bad icap checksum","address",e),t=fU(e.substring(4));t.length<40;)t="0"+t;t=D6("0x"+t)}else Ws.throwArgumentError("invalid address","address",e);return t}function zA(e){try{return lt(e),!0}catch{}return!1}function MU(e){let t=uU(lt(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+jA("XE00"+t)+t}function jg(e){let t=null;try{t=lt(e.from)}catch{Ws.throwArgumentError("missing from address","transaction",e)}const r=ji(se(ae.from(e.nonce).toHexString()));return lt(Jt(ot(ca([t,r])),12))}function IU(e,t,r){return qi(t)!==32&&Ws.throwArgumentError("salt must be 32 bytes","salt",t),qi(r)!==32&&Ws.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),lt(Jt(ot(St(["0xff",lt(e),t,r])),12))}const NU=Object.freeze(Object.defineProperty({__proto__:null,getAddress:lt,getContractAddress:jg,getCreate2Address:IU,getIcapAddress:MU,isAddress:zA},Symbol.toStringTag,{value:"Module"}));class $U extends Ps{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,r){try{r=lt(r)}catch(n){this._throwError(n.message,r)}return t.writeValue(r)}decode(t){return lt(xt(t.readValue().toHexString(),20))}}class OU extends Ps{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,r){return this.coder.encode(t,r)}decode(t){return this.coder.decode(t)}}const rl=new V(Pu);function UA(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=t.map(c=>{const f=c.localName;return f||rl.throwError("cannot encode object for signature with missing names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&rl.throwError("cannot encode object for signature with duplicate names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else rl.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&rl.throwArgumentError("types/value length mismatch","tuple",r);let i=new Rp(e.wordSize),s=new Rp(e.wordSize),o=[];t.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+u)})}else l.encode(i,f)}),o.forEach(l=>{l(i.length)});let a=e.appendWriter(i);return a+=e.appendWriter(s),a}function VA(e,t){let r=[],n=e.subReader(0);t.forEach(s=>{let o=null;if(s.dynamic){let a=e.readValue(),l=n.subReader(a.toNumber());try{o=s.decode(l)}catch(c){if(c.code===V.errors.BUFFER_OVERRUN)throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(e)}catch(a){if(a.code===V.errors.BUFFER_OVERRUN)throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}o!=null&&r.push(o)});const i=t.reduce((s,o)=>{const a=o.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});t.forEach((s,o)=>{let a=s.localName;if(!a||i[a]!==1||(a==="length"&&(a="_length"),r[a]!=null))return;const l=r[o];l instanceof Error?Object.defineProperty(r,a,{enumerable:!0,get:()=>{throw l}}):r[a]=l});for(let s=0;s{throw o}})}return Object.freeze(r)}class DU extends Ps{constructor(t,r,n){const i=t.type+"["+(r>=0?r:"")+"]",s=r===-1||t.dynamic;super("array",i,n,s),this.coder=t,this.length=r}defaultValue(){const t=this.coder.defaultValue(),r=[];for(let n=0;nt._data.length&&rl.throwError("insufficient data length",V.errors.BUFFER_OVERRUN,{length:t._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return e===Gr.OVERRUN?r.length-t-1:0}function WU(e,t,r,n,i){return e===Gr.OVERLONG?(n.push(i),0):(n.push(65533),YA(e,t,r))}const JA=Object.freeze({error:GU,ignore:YA,replace:WU});function zg(e,t){t==null&&(t=JA.error),e=se(e);const r=[];let n=0;for(;n>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?n+=t(Gr.UNEXPECTED_CONTINUE,n-1,e,r):n+=t(Gr.BAD_PREFIX,n-1,e,r);continue}if(n-1+s>=e.length){n+=t(Gr.OVERRUN,n-1,e,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=t(Gr.OUT_OF_RANGE,n-1-s,e,r,a);continue}if(a>=55296&&a<=57343){n+=t(Gr.UTF16_SURROGATE,n-1-s,e,r,a);continue}if(a<=o){n+=t(Gr.OVERLONG,n-1-s,e,r,a);continue}r.push(a)}}return r}function Lt(e,t=Hi.current){t!=Hi.current&&(KA.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=e.charCodeAt(n);if(n>=e.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return se(r)}function mv(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function KU(e,t){return'"'+zg(e,t).map(r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?mv(r):(r-=65536,mv((r>>10&1023)+55296)+mv((r&1023)+56320))}).join("")+'"'}function _p(e){return e.map(t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10&1023)+55296,(t&1023)+56320))).join("")}function Po(e,t){return _p(zg(e,t))}function L0(e,t=Hi.current){return zg(Lt(e,t))}function YU(e){const t=Lt(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return le(St([t,WA]).slice(0,32))}function JU(e){const t=se(e);if(t.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(t[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;t[r-1]===0;)r--;return Po(t.slice(0,r))}function QU(e){if(e.length%4!==0)throw new Error("bad data");let t=[];for(let r=0;r{let s=i.split(":");r+=parseInt(s[0],16),n[r]=t(s[1])}),n}function QA(e){let t=0;return e.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=t+parseInt(n[0],16);return t=parseInt(n[1],16),{l:i,h:t}})}function Vg(e,t){let r=0;for(let n=0;n=r&&e<=r+i.h&&(e-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(e-r)!==-1)continue;return i}}return null}const XU=QA("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),ZU="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),eV=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],tV=Ug("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),rV=Ug("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),nV=Ug("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",QU),iV=QA("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function sV(e){return e.reduce((t,r)=>(r.forEach(n=>{t.push(n)}),t),[])}function oV(e){return!!Vg(e,XU)}function aV(e){let t=Vg(e,eV);if(t)return[e+t.s];let r=tV[e];if(r)return r;let n=rV[e];if(n)return[e+n[0]];let i=nV[e];return i||null}function lV(e){return!!Vg(e,iV)}function cV(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();let t=L0(e);t=sV(t.map(n=>{if(ZU.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=aV(n);return i||[n]})),t=L0(_p(t),Hi.NFKC),t.forEach(n=>{if(lV(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(n=>{if(oV(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=_p(t);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}const fV=Object.freeze(Object.defineProperty({__proto__:null,get UnicodeNormalizationForm(){return Hi},Utf8ErrorFuncs:JA,get Utf8ErrorReason(){return Gr},_toEscapedUtf8String:KU,formatBytes32String:YU,nameprep:cV,parseBytes32String:JU,toUtf8Bytes:Lt,toUtf8CodePoints:L0,toUtf8String:Po},Symbol.toStringTag,{value:"Module"}));class uV extends qA{constructor(t){super("string",t)}defaultValue(){return""}encode(t,r){return super.encode(t,Lt(r))}decode(t){return Po(super.decode(t))}}class vd extends Ps{constructor(t,r){let n=!1;const i=[];t.forEach(o=>{o.dynamic&&(n=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,n),this.coders=t}defaultValue(){const t=[];this.coders.forEach(n=>{t.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const s=i.localName;return s&&(n[s]||(n[s]=0),n[s]++),n},{});return this.coders.forEach((n,i)=>{let s=n.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)}encode(t,r){return UA(t,this.coders,r)}decode(t){return t.coerce(this.name,VA(t,this.coders))}}const yd=new V(Pu),dV=new RegExp(/^bytes([0-9]*)$/),hV=new RegExp(/^(u?int)([0-9]*)$/);class XA{constructor(t){ee(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new $U(t.name);case"bool":return new BU(t.name);case"string":return new uV(t.name);case"bytes":return new LU(t.name);case"array":return new DU(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new vd((t.components||[]).map(n=>this._getCoder(n)),t.name);case"":return new jU(t.name)}let r=t.type.match(hV);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&yd.throwArgumentError("invalid "+r[1]+" bit length","param",t),new qU(n/8,r[1]==="int",t.name)}if(r=t.type.match(dV),r){let n=parseInt(r[1]);return(n===0||n>32)&&yd.throwArgumentError("invalid bytes length","param",t),new FU(n,t.name)}return yd.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,r){return new B0(t,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Rp(this._getWordSize())}getDefaultValue(t){const r=t.map(i=>this._getCoder(ar.from(i)));return new vd(r,"_").defaultValue()}encode(t,r){t.length!==r.length&&yd.throwError("types/values length mismatch",V.errors.INVALID_ARGUMENT,{count:{types:t.length,values:r.length},value:{types:t,values:r}});const n=t.map(o=>this._getCoder(ar.from(o))),i=new vd(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(t,r,n){const i=t.map(o=>this._getCoder(ar.from(o)));return new vd(i,"_").decode(this._getReader(se(r),n))}}const ZA=new XA;function Ks(e){return ot(Lt(e))}const e9="hash/5.7.0";function qg(e){e=atob(e);const t=[];for(let r=0;r0&&Array.isArray(a)?i(a,o-1):r.push(a)})};return i(e,t),r}function yV(e){const t={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,m=v>>1,y=d-1;let w=0;for(let _=0;_1;){let J=O+$>>>1;_>>1|f(),D=D<<1^v,G=(G^v)<<1|v|1;b=D,S=1+G-D}let A=n-4;return x.map(_=>{switch(_-A){case 3:return A+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return A+256+(e[a++]<<8|e[a++]);case 1:return A+e[a++];default:return _-1}})}function mV(e){let t=0;return()=>e[t++]}function gV(e){return mV(pV(e))}function xV(e){return e&1?~e>>1:e>>1}function bV(e,t){let r=Array(e);for(let n=0;nt[o]):r}function EV(e){let t=[];for(;;){let r=e();if(r==0)break;t.push(SV(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(AV(r,e))}return yV(t9(t))}function CV(e){let t=[];for(;;){let r=e();if(r==0)break;t.push(r)}return t}function r9(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function SV(e,t){let r=1+t(),n=t(),i=CV(t),s=r9(i.length,1+e,t);return t9(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function AV(e,t){let r=1+t();return r9(r,1+e,t).map(i=>[i[0],i.slice(1)])}function kV(e){let t=F0(e).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=F0(e,t);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,f)=>f.set.size-c.set.size);let i=e(),s=i%3;i=i/3|0;let o=!!(i&1);i>>=1;let a=i==1,l=i==2;return{branches:n,valid:s,fe0f:o,save:a,check:l}}}function PV(){return gV(qg("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const Bh=PV(),RV=new Set(F0(Bh)),_V=new Set(F0(Bh)),TV=EV(Bh),MV=kV(Bh),F6=45,j6=95;function n9(e){return L0(e)}function IV(e){return e.filter(t=>t!=65039)}function i9(e){for(let t of e.split(".")){let r=n9(t);try{for(let n=r.lastIndexOf(j6)-1;n>=0;n--)if(r[n]!==j6)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===F6&&r[3]===F6)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${t}": ${n.message}`)}}return e}function NV(e){return i9($V(e,IV))}function $V(e,t){let r=n9(e).reverse(),n=[];for(;r.length;){let i=DV(r);if(i){n.push(...t(i));continue}let s=r.pop();if(RV.has(s)){n.push(s);continue}if(_V.has(s))continue;let o=TV[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return i9(OV(String.fromCodePoint(...n)))}function OV(e){return e.normalize("NFC")}function DV(e,t){var r;let n=MV,i,s,o=[],a=e.length;for(t&&(t.length=0);a;){let l=e[--a];if(n=(r=n.branches.find(c=>c.set.has(l)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)s=l;else if(n.check&&l===s)break;o.push(l),n.fe0f&&(o.push(65039),a>0&&e[a-1]==65039&&a--),n.valid&&(i=o.slice(),n.valid==2&&i.splice(1,1),t&&t.push(...e.slice(a).reverse()),e.length=a)}return i}const BV=new V(e9),s9=new Uint8Array(32);s9.fill(0);function z6(e){if(e.length===0)throw new Error("invalid ENS name; empty component");return e}function Lh(e){const t=Lt(NV(e)),r=[];if(e.length===0)return r;let n=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return r.push(z6(t.slice(n))),r}function LV(e){return Lh(e).map(t=>Po(t)).join(".")}function FV(e){try{return Lh(e).length!==0}catch{}return!1}function bf(e){typeof e!="string"&&BV.throwArgumentError("invalid ENS name; not a string","name",e);let t=s9;const r=Lh(e);for(;r.length;)t=ot(St([t,ot(r.pop())]));return le(t)}function o9(e){return le(St(Lh(e).map(t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r})))+"00"}const a9=`Ethereum Signed Message: +`;function Gg(e){return typeof e=="string"&&(e=Lt(e)),ot(St([Lt(a9),Lt(String(e.length)),e]))}var jV=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const $t=new V(e9),l9=new Uint8Array(32);l9.fill(0);const zV=ae.from(-1),c9=ae.from(0),f9=ae.from(1),UV=ae.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function VV(e){const t=se(e),r=t.length%32;return r?Fr([t,l9.slice(r)]):le(t)}const qV=xt(f9.toHexString(),32),HV=xt(c9.toHexString(),32),U6={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},gv=["name","version","chainId","verifyingContract","salt"];function V6(e){return function(t){return typeof t!="string"&&$t.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const GV={name:V6("name"),version:V6("version"),chainId:function(e){try{return ae.from(e).toString()}catch{}return $t.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return lt(e).toLowerCase()}catch{}return $t.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=se(e);if(t.length!==32)throw new Error("bad length");return le(t)}catch{}return $t.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function xv(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=t[1]==="",n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&$t.throwArgumentError("invalid numeric width","type",e);const i=UV.mask(r?n-1:n),s=r?i.add(f9).mul(zV):c9;return function(o){const a=ae.from(o);return(a.lt(s)||a.gt(i))&&$t.throwArgumentError(`value out-of-bounds for ${e}`,"value",o),xt(a.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(r===0||r>32||t[1]!==String(r))&&$t.throwArgumentError("invalid bytes width","type",e),function(n){return se(n).length!==r&&$t.throwArgumentError(`invalid length for ${e}`,"value",n),VV(n)}}}switch(e){case"address":return function(t){return xt(lt(t),32)};case"bool":return function(t){return t?qV:HV};case"bytes":return function(t){return ot(t)};case"string":return function(t){return Ks(t)}}return null}function q6(e,t){return`${e}(${t.map(({name:r,type:n})=>n+" "+r).join(",")})`}class xr{constructor(t){ee(this,"types",Object.freeze(vo(t))),ee(this,"_encoderCache",{}),ee(this,"_types",{});const r={},n={},i={};Object.keys(t).forEach(a=>{r[a]={},n[a]=[],i[a]={}});for(const a in t){const l={};t[a].forEach(c=>{l[c.name]&&$t.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(a)}`,"types",t),l[c.name]=!0;const f=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];f===a&&$t.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",t),!xv(f)&&(n[f]||$t.throwArgumentError(`unknown type ${JSON.stringify(f)}`,"types",t),n[f].push(a),r[a][f]=!0)})}const s=Object.keys(n).filter(a=>n[a].length===0);s.length===0?$t.throwArgumentError("missing primary type","types",t):s.length>1&&$t.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",t),ee(this,"primaryType",s[0]);function o(a,l){l[a]&&$t.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",t),l[a]=!0,Object.keys(r[a]).forEach(c=>{n[c]&&(o(c,l),Object.keys(l).forEach(f=>{i[f][c]=!0}))}),delete l[a]}o(this.primaryType,{});for(const a in i){const l=Object.keys(i[a]);l.sort(),this._types[a]=q6(a,t[a])+l.map(c=>q6(c,t[c])).join("")}}getEncoder(t){let r=this._encoderCache[t];return r||(r=this._encoderCache[t]=this._getEncoder(t)),r}_getEncoder(t){{const i=xv(t);if(i)return i}const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],s=this.getEncoder(i),o=parseInt(r[3]);return a=>{o>=0&&a.length!==o&&$t.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(ot)),ot(Fr(l))}}const n=this.types[t];if(n){const i=Ks(this._types[t]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?ot(c):c});return o.unshift(i),Fr(o)}}return $t.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const r=this._types[t];return r||$t.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),r}encodeData(t,r){return this.getEncoder(t)(r)}hashStruct(t,r){return ot(this.encodeData(t,r))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,r,n){if(xv(t))return n(t,r);const i=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const o=i[1],a=parseInt(i[3]);return a>=0&&r.length!==a&&$t.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(o,l,n))}const s=this.types[t];return s?s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{}):$t.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,r){return this._visit(this.primaryType,t,r)}static from(t){return new xr(t)}static getPrimaryType(t){return xr.from(t).primaryType}static hashStruct(t,r,n){return xr.from(r).hashStruct(t,n)}static hashDomain(t){const r=[];for(const n in t){const i=U6[n];i||$t.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),r.push({name:n,type:i})}return r.sort((n,i)=>gv.indexOf(n.name)-gv.indexOf(i.name)),xr.hashStruct("EIP712Domain",{EIP712Domain:r},t)}static encode(t,r,n){return Fr(["0x1901",xr.hashDomain(t),xr.from(r).hash(n)])}static hash(t,r,n){return ot(xr.encode(t,r,n))}static resolveNames(t,r,n,i){return jV(this,void 0,void 0,function*(){t=rr(t);const s={};t.verifyingContract&&!Ge(t.verifyingContract,20)&&(s[t.verifyingContract]="0x");const o=xr.from(r);o.visit(n,(a,l)=>(a==="address"&&!Ge(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=yield i(a);return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:t,value:n}})}static getPayload(t,r,n){xr.hashDomain(t);const i={},s=[];gv.forEach(l=>{const c=t[l];c!=null&&(i[l]=GV[l](c),s.push({name:l,type:U6[l]}))});const o=xr.from(r),a=rr(r);return a.EIP712Domain?$t.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return le(se(c));if(l.match(/^u?int/))return ae.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&$t.throwArgumentError("invalid string","value",c),c}return $t.throwArgumentError("unsupported type","type",l)})}}}const WV=Object.freeze(Object.defineProperty({__proto__:null,_TypedDataEncoder:xr,dnsEncode:o9,ensNormalize:LV,hashMessage:Gg,id:Ks,isValidName:FV,messagePrefix:a9,namehash:bf},Symbol.toStringTag,{value:"Module"})),It=new V(Pu);class u9 extends ko{}class d9 extends ko{}class KV extends ko{}class j0 extends ko{static isIndexed(t){return!!(t&&t._isIndexed)}}const YV={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function H6(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class Tp{constructor(t){let r=[];typeof t=="string"?r=JSON.parse(t):r=t,ee(this,"fragments",r.map(n=>Oi.from(n)).filter(n=>n!=null)),ee(this,"_abiCoder",ri(new.target,"getAbiCoder")()),ee(this,"functions",{}),ee(this,"errors",{}),ee(this,"events",{}),ee(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){It.warn("duplicate definition - constructor");return}ee(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=n.format();if(i[s]){It.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ee(this,"deploy",ei.from({payable:!1,type:"constructor"})),ee(this,"_isInterface",!0)}format(t){t||(t=Ke.full),t===Ke.sighash&&It.throwArgumentError("interface does not support formatting sighash","format",t);const r=this.fragments.map(n=>n.format(t));return t===Ke.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return ZA}static getAddress(t){return lt(t)}static getSighash(t){return Jt(Ks(t.format()),0,4)}static getEventTopic(t){return Ks(t.format())}getFunction(t){if(Ge(t)){for(const n in this.functions)if(t===this.getSighash(n))return this.functions[n];It.throwArgumentError("no matching function","sighash",t)}if(t.indexOf("(")===-1){const n=t.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===n);return i.length===0?It.throwArgumentError("no matching function","name",n):i.length>1&&It.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[ti.fromString(t).format()];return r||It.throwArgumentError("no matching function","signature",t),r}getEvent(t){if(Ge(t)){const n=t.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];It.throwArgumentError("no matching event","topichash",n)}if(t.indexOf("(")===-1){const n=t.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===n);return i.length===0?It.throwArgumentError("no matching event","name",n):i.length>1&&It.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[Ri.fromString(t).format()];return r||It.throwArgumentError("no matching event","signature",t),r}getError(t){if(Ge(t)){const n=ri(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(t===n(s))return this.errors[i]}It.throwArgumentError("no matching error","sighash",t)}if(t.indexOf("(")===-1){const n=t.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===n);return i.length===0?It.throwArgumentError("no matching error","name",n):i.length>1&&It.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[ti.fromString(t).format()];return r||It.throwArgumentError("no matching error","signature",t),r}getSighash(t){if(typeof t=="string")try{t=this.getFunction(t)}catch(r){try{t=this.getError(t)}catch{throw r}}return ri(this.constructor,"getSighash")(t)}getEventTopic(t){return typeof t=="string"&&(t=this.getEvent(t)),ri(this.constructor,"getEventTopic")(t)}_decodeParams(t,r){return this._abiCoder.decode(t,r)}_encodeParams(t,r){return this._abiCoder.encode(t,r)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,r){typeof t=="string"&&(t=this.getError(t));const n=se(r);return le(n.slice(0,4))!==this.getSighash(t)&&It.throwArgumentError(`data signature does not match error ${t.name}.`,"data",le(n)),this._decodeParams(t.inputs,n.slice(4))}encodeErrorResult(t,r){return typeof t=="string"&&(t=this.getError(t)),le(St([this.getSighash(t),this._encodeParams(t.inputs,r||[])]))}decodeFunctionData(t,r){typeof t=="string"&&(t=this.getFunction(t));const n=se(r);return le(n.slice(0,4))!==this.getSighash(t)&&It.throwArgumentError(`data signature does not match function ${t.name}.`,"data",le(n)),this._decodeParams(t.inputs,n.slice(4))}encodeFunctionData(t,r){return typeof t=="string"&&(t=this.getFunction(t)),le(St([this.getSighash(t),this._encodeParams(t.inputs,r||[])]))}decodeFunctionResult(t,r){typeof t=="string"&&(t=this.getFunction(t));let n=se(r),i=null,s="",o=null,a=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,n)}catch{}break;case 4:{const c=le(n.slice(0,4)),f=YV[c];if(f)o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,l=f.signature,f.reason&&(i=o[0]),a==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:a==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const u=this.getError(c);o=this._abiCoder.decode(u.inputs,n.slice(4)),a=u.name,l=u.format()}catch{}break}}return It.throwError("call revert exception"+s,V.errors.CALL_EXCEPTION,{method:t.format(),data:le(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(t,r){return typeof t=="string"&&(t=this.getFunction(t)),le(this._abiCoder.encode(t.outputs,r||[]))}encodeFilterTopics(t,r){typeof t=="string"&&(t=this.getEvent(t)),r.length>t.inputs.length&&It.throwError("too many arguments for "+t.format(),V.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];t.anonymous||n.push(this.getEventTopic(t));const i=(s,o)=>s.type==="string"?Ks(o):s.type==="bytes"?ot(le(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=ae.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),xt(le(o),32));for(r.forEach((s,o)=>{let a=t.inputs[o];if(!a.indexed){s!=null&&It.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?It.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(t,r){typeof t=="string"&&(t=this.getEvent(t));const n=[],i=[],s=[];return t.anonymous||n.push(this.getEventTopic(t)),r.length!==t.inputs.length&&It.throwArgumentError("event arguments/values mismatch","values",r),t.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push(Ks(l));else if(o.type==="bytes")n.push(ot(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:this._abiCoder.encode(i,s),topics:n}}decodeEventLog(t,r,n){if(typeof t=="string"&&(t=this.getEvent(t)),n!=null&&!t.anonymous){let d=this.getEventTopic(t);(!Ge(n[0],32)||n[0].toLowerCase()!==d)&&It.throwError("fragment/topic mismatch",V.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];t.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(ar.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,St(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;t.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new j0({_isIndexed:!0,hash:null});else if(o[v])c[v]=new j0({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(m){c[v]=m}else try{c[v]=l[f++]}catch(m){c[v]=m}if(d.name&&c[d.name]==null){const m=c[v];m instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw H6(`property ${JSON.stringify(d.name)}`,m)}}):c[d.name]=m}});for(let d=0;d{throw H6(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(t){let r=this.getFunction(t.data.substring(0,10).toLowerCase());return r?new d9({args:this._abiCoder.decode(r.inputs,"0x"+t.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:ae.from(t.value||"0")}):null}parseLog(t){let r=this.getEvent(t.topics[0]);return!r||r.anonymous?null:new u9({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,t.data,t.topics)})}parseError(t){const r=le(t);let n=this.getError(r.substring(0,10).toLowerCase());return n?new KV({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(t){return!!(t&&t._isInterface)}}const JV=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:XA,ConstructorFragment:ei,ErrorFragment:ls,EventFragment:Ri,FormatTypes:Ke,Fragment:Oi,FunctionFragment:ti,Indexed:j0,Interface:Tp,LogDescription:u9,ParamType:ar,TransactionDescription:d9,checkResultErrors:DA,defaultAbiCoder:ZA},Symbol.toStringTag,{value:"Module"})),QV="abstract-provider/5.7.0";var XV=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const ZV=new V(QV);class eq extends ko{static isForkEvent(t){return!!(t&&t._isForkEvent)}}class Ru{constructor(){ZV.checkAbstract(new.target,Ru),ee(this,"_isProvider",!0)}getFeeData(){return XV(this,void 0,void 0,function*(){const{block:t,gasPrice:r}=yield Ut({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null,s=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,s=ae.from("1500000000"),i=t.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:s,gasPrice:r}})}addListener(t,r){return this.on(t,r)}removeListener(t,r){return this.off(t,r)}static isProvider(t){return!!(t&&t._isProvider)}}const tq="abstract-signer/5.7.0";var Hn=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const bn=new V(tq),rq=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],nq=[V.errors.INSUFFICIENT_FUNDS,V.errors.NONCE_EXPIRED,V.errors.REPLACEMENT_UNDERPRICED];class Kl{constructor(){bn.checkAbstract(new.target,Kl),ee(this,"_isSigner",!0)}getBalance(t){return Hn(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)})}getTransactionCount(t){return Hn(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)})}estimateGas(t){return Hn(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield Ut(this.checkTransaction(t));return yield this.provider.estimateGas(r)})}call(t,r){return Hn(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield Ut(this.checkTransaction(t));return yield this.provider.call(n,r)})}sendTransaction(t){return Hn(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(t),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return Hn(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Hn(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Hn(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(t){return Hn(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)})}checkTransaction(t){for(const n in t)rq.indexOf(n)===-1&&bn.throwArgumentError("invalid transaction key: "+n,"transaction",t);const r=rr(t);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&bn.throwArgumentError("from address mismatch","transaction",t),n[0])),r}populateTransaction(t){return Hn(this,void 0,void 0,function*(){const r=yield Ut(this.checkTransaction(t));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>Hn(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&bn.throwArgumentError("provided ENS name resolves to null","tx.to",i),s})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?bn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t):(r.type===0||r.type===1)&&n&&bn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const s=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=s,r.maxPriorityFeePerGas=s}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&bn.throwError("network does not support EIP-1559",V.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):bn.throwError("failed to get consistent fee data",V.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(nq.indexOf(i.code)>=0)throw i;return bn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&bn.throwArgumentError("chainId address mismatch","transaction",t),i[0])),yield Ut(r)})}_checkProvider(t){this.provider||bn.throwError("missing provider",V.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!!(t&&t._isSigner)}}class Wg extends Kl{constructor(t,r){super(),ee(this,"address",t),ee(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,r){return Promise.resolve().then(()=>{bn.throwError(t,V.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new Wg(this.address,t)}}var h9={},Fe={},_u=v9;function v9(e,t){if(!e)throw new Error(t||"Assertion failed")}v9.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)};var Mp={exports:{}};typeof Object.create=="function"?Mp.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Mp.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}};var iq=Mp.exports,sq=_u,oq=iq;Fe.inherits=oq;function aq(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function lq(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=s&63|128):aq(e,i)?(s=65536+((s&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}Fe.htonl=y9;function fq(e,t){for(var r="",n=0;n>>0}return s}Fe.join32=uq;function dq(e,t){for(var r=new Array(e.length*4),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}Fe.split32=dq;function hq(e,t){return e>>>t|e<<32-t}Fe.rotr32=hq;function vq(e,t){return e<>>32-t}Fe.rotl32=vq;function yq(e,t){return e+t>>>0}Fe.sum32=yq;function pq(e,t,r){return e+t+r>>>0}Fe.sum32_3=pq;function mq(e,t,r,n){return e+t+r+n>>>0}Fe.sum32_4=mq;function gq(e,t,r,n,i){return e+t+r+n+i>>>0}Fe.sum32_5=gq;function xq(e,t,r,n){var i=e[t],s=e[t+1],o=n+s>>>0,a=(o>>0,e[t+1]=o}Fe.sum64=xq;function bq(e,t,r,n){var i=t+n>>>0,s=(i>>0}Fe.sum64_hi=bq;function wq(e,t,r,n){var i=t+n;return i>>>0}Fe.sum64_lo=wq;function Eq(e,t,r,n,i,s,o,a){var l=0,c=t;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}Fe.sum64_4_hi=Eq;function Cq(e,t,r,n,i,s,o,a){var l=t+n+s+a;return l>>>0}Fe.sum64_4_lo=Cq;function Sq(e,t,r,n,i,s,o,a,l,c){var f=0,u=t;u=u+n>>>0,f+=u>>0,f+=u>>0,f+=u>>0,f+=u>>0}Fe.sum64_5_hi=Sq;function Aq(e,t,r,n,i,s,o,a,l,c){var f=t+n+s+a+c;return f>>>0}Fe.sum64_5_lo=Aq;function kq(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.rotr64_hi=kq;function Pq(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.rotr64_lo=Pq;function Rq(e,t,r){return e>>>r}Fe.shr64_hi=Rq;function _q(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.shr64_lo=_q;var Yl={},G6=Fe,Tq=_u;function Fh(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Yl.BlockHash=Fh;Fh.prototype.update=function(t,r){if(t=G6.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=G6.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,i[s++]=t>>>16&255,i[s++]=t>>>8&255,i[s++]=t&255}else for(i[s++]=t&255,i[s++]=t>>>8&255,i[s++]=t>>>16&255,i[s++]=t>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o>>3}Ji.g0_256=Oq;function Dq(e){return zi(e,17)^zi(e,19)^e>>>10}Ji.g1_256=Dq;var Ml=Fe,Bq=Yl,Lq=Ji,bv=Ml.rotl32,Sc=Ml.sum32,Fq=Ml.sum32_5,jq=Lq.ft_1,w9=Bq.BlockHash,zq=[1518500249,1859775393,2400959708,3395469782];function Gi(){if(!(this instanceof Gi))return new Gi;w9.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Ml.inherits(Gi,w9);var Uq=Gi;Gi.blockSize=512;Gi.outSize=160;Gi.hmacStrength=80;Gi.padLength=64;Gi.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;ithis.blockSize&&(t=new this.Hash().update(t).digest()),_H(t.length<=this.blockSize);for(var r=t.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}return l}r.toArray=n;function i(o){return o.length===1?"0"+o:o}r.zero2=i;function s(o){for(var a="",l=0;l(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[m]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var m=l.andln(3)+u&3,y=c.andln(3)+d&3;m===3&&(m=-1),y===3&&(y=-1);var w;m&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-m:w=m):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&m===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),l.iushrn(1),c.iushrn(1)}return f}r.getJSF=i;function s(l,c,f){var u="_"+c;l.prototype[c]=function(){return this[u]!==void 0?this[u]:this[u]=f.call(this)}}r.cachedProperty=s;function o(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=o;function a(l){return new Re(l,"hex","le")}r.intFromLE=a}),z0=mn.getNAF,IH=mn.getJSF,U0=mn.assert;function Ro(e,t){this.type=e,this.p=new Re(t.p,16),this.red=t.prime?Re.red(t.prime):Re.mont(this.p),this.zero=new Re(0).toRed(this.red),this.one=new Re(1).toRed(this.red),this.two=new Re(2).toRed(this.red),this.n=t.n&&new Re(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var wa=Ro;Ro.prototype.point=function(){throw new Error("Not implemented")};Ro.prototype.validate=function(){throw new Error("Not implemented")};Ro.prototype._fixedNafMul=function(t,r){U0(t.precomputed);var n=t._getDoubles(),i=z0(r,1,this._bitLength),s=(1<=a;c--)l=(l<<1)+i[c];o.push(l)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(a=0;a=0;l--){for(var c=0;l>=0&&o[l]===0;l--)c++;if(l>=0&&c++,a=a.dblp(c),l<0)break;var f=o[l];U0(f!==0),t.type==="affine"?f>0?a=a.mixedAdd(s[f-1>>1]):a=a.mixedAdd(s[-f-1>>1].neg()):f>0?a=a.add(s[f-1>>1]):a=a.add(s[-f-1>>1].neg())}return t.type==="affine"?a.toP():a};Ro.prototype._wnafMulAdd=function(t,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var m=f-1,y=f;if(o[m]!==1||o[y]!==1){l[m]=z0(n[m],o[m],this._bitLength),l[y]=z0(n[y],o[y],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[y].length,c);continue}var w=[r[m],null,null,r[y]];r[m].y.cmp(r[y].y)===0?(w[1]=r[m].add(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg())):r[m].y.cmp(r[y].y.redNeg())===0?(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].add(r[y].neg())):(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=IH(n[m],n[y]);for(c=Math.max(b[0].length,c),l[m]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var $=0;f>=0;){var D=!0;for(u=0;u=0&&$++,_=_.dblp($),f<0)break;for(u=0;u0?d=a[u][G-1>>1]:G<0&&(d=a[u][-G-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((t.bitLength()+1)/r.step):!1};On.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,s=0;s=0&&(v=c,m=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),m=m.neg()),[{a:u,b:d},{a:v,b:m}]};Dn.prototype._endoSplit=function(t){var r=this.endo.basis,n=r[0],i=r[1],s=i.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=s.mul(n.a),l=o.mul(i.a),c=s.mul(n.b),f=o.mul(i.b),u=t.sub(a).sub(l),d=c.add(f).neg();return{k1:u,k2:d}};Dn.prototype.pointFromX=function(t,r){t=new Re(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(t,i)};Dn.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,n=t.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(s).cmpn(0)===0};Dn.prototype._endoWnafMulAdd=function(t,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};vr.prototype.isInfinity=function(){return this.inf};vr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(t.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};vr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),s=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};vr.prototype.getX=function(){return this.x.fromRed()};vr.prototype.getY=function(){return this.y.fromRed()};vr.prototype.mul=function(t){return t=new Re(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};vr.prototype.mulAdd=function(t,r,n){var i=[this,r],s=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};vr.prototype.jmulAdd=function(t,r,n){var i=[this,r],s=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};vr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};vr.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(s){return s.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};vr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function Cr(e,t,r,n){wa.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Re(0)):(this.x=new Re(t,16),this.y=new Re(r,16),this.z=new Re(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Yg(Cr,wa.BasePoint);Dn.prototype.jpoint=function(t,r,n){return new Cr(this,t,r,n)};Cr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(t);return this.curve.point(n,i)};Cr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Cr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),s=t.x.redMul(n),o=this.y.redMul(r.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),l=i.redSub(s),c=o.redSub(a);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),u=f.redMul(l),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),m=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(t.z).redMul(l);return this.curve.jpoint(v,m,y)};Cr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=t.x.redMul(r),s=this.y,o=t.y.redMul(r).redMul(this.z),a=n.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),m=this.z.redMul(a);return this.curve.jpoint(d,v,m)};Cr.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(s),this.x.cmp(n)===0)return!0}};Cr.prototype.inspect=function(){return this.isInfinity()?"":""};Cr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Vd=Xl(function(e,t){var r=t;r.base=wa,r.short=$H,r.mont=null,r.edwards=null}),qd=Xl(function(e,t){var r=t,n=mn.assert;function i(a){a.type==="short"?this.curve=new Vd.short(a):a.type==="edwards"?this.curve=new Vd.edwards(a):this.curve=new Vd.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function s(a,l){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:c}),c}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Hr.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Hr.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Hr.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Hr.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Hr.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Hr.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Hr.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Hr.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function yo(e){if(!(this instanceof yo))return new yo(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=ni.toArray(e.entropy,e.entropyEnc||"hex"),r=ni.toArray(e.nonce,e.nonceEnc||"hex"),n=ni.toArray(e.pers,e.persEnc||"hex");Kg(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var N9=yo;yo.prototype._init=function(t,r,n){var i=t.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1};yo.prototype.generate=function(t,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=ni.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var OH=mn.assert;function jh(e,t){if(e instanceof jh)return e;this._importDER(e,t)||(OH(e.r&&e.s,"Signature without r or s"),this.r=new Re(e.r,16),this.s=new Re(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var zh=jh;function DH(){this.place=0}function Cv(e,t){var r=e[t.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,s=0,o=t.place;s>>=0;return i<=127?!1:(t.place=o,i)}function J6(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}jh.prototype.toDER=function(t){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=J6(r),n=J6(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Sv(i,r.length),i=i.concat(r),i.push(2),Sv(i,n.length);var s=i.concat(n),o=[48];return Sv(o,s.length),o=o.concat(s),mn.encode(o,t)};var BH=function(){throw new Error("unsupported")},$9=mn.assert;function Nn(e){if(!(this instanceof Nn))return new Nn(e);typeof e=="string"&&($9(Object.prototype.hasOwnProperty.call(qd,e),"Unknown curve "+e),e=qd[e]),e instanceof qd.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var LH=Nn;Nn.prototype.keyPair=function(t){return new Jg(this,t)};Nn.prototype.keyFromPrivate=function(t,r){return Jg.fromPrivate(this,t,r)};Nn.prototype.keyFromPublic=function(t,r){return Jg.fromPublic(this,t,r)};Nn.prototype.genKeyPair=function(t){t||(t={});for(var r=new N9({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||BH(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Re(2));;){var s=new Re(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Nn.prototype._truncateToN=function(t,r){var n=t.byteLength()*8-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!r&&t.cmp(this.n)>=0?t.sub(this.n):t};Nn.prototype.sign=function(t,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),t=this._truncateToN(new Re(t,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=t.toArray("be",s),l=new N9({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Re(1)),f=0;;f++){var u=i.k?i.k(f):new Re(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),m=v.umod(this.n);if(m.cmpn(0)!==0){var y=u.invm(this.n).mul(m.mul(r.getPrivate()).iadd(t));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(m)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new zh({r:m,s:y,recoveryParam:w})}}}}}};Nn.prototype.verify=function(t,r,n,i){t=this._truncateToN(new Re(t,16)),n=this.keyFromPublic(n,i),r=new zh(r,"hex");var s=r.r,o=r.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(t).umod(this.n),c=a.mul(s).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.eqXToP(s)):(f=this.g.mulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.getX().umod(this.n).cmp(s)===0)};Nn.prototype.recoverPubKey=function(e,t,r,n){$9((3&r)===r,"The recovery param is more than two bits"),t=new zh(t,n);var i=this.n,s=new Re(e),o=t.r,a=t.s,l=r&1,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var f=t.r.invm(i),u=i.sub(s).mul(f).umod(i),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};Nn.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new zh(t,n),t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(e,t,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var FH=Xl(function(e,t){var r=t;r.version="6.5.4",r.utils=mn,r.rand=function(){throw new Error("unsupported")},r.curve=Vd,r.curves=qd,r.ec=LH,r.eddsa=null}),jH=FH.ec;const zH="signing-key/5.7.0",Op=new V(zH);let Av=null;function Ai(){return Av||(Av=new jH("secp256k1")),Av}class Qo{constructor(t){ee(this,"curve","secp256k1"),ee(this,"privateKey",le(t)),qi(this.privateKey)!==32&&Op.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Ai().keyFromPrivate(se(this.privateKey));ee(this,"publicKey","0x"+r.getPublic(!1,"hex")),ee(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),ee(this,"_isSigningKey",!0)}_addPoint(t){const r=Ai().keyFromPublic(se(this.publicKey)),n=Ai().keyFromPublic(se(t));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const r=Ai().keyFromPrivate(se(this.privateKey)),n=se(t);n.length!==32&&Op.throwArgumentError("bad digest length","digest",t);const i=r.sign(n,{canonical:!0});return ba({recoveryParam:i.recoveryParam,r:xt("0x"+i.r.toString(16),32),s:xt("0x"+i.s.toString(16),32)})}computeSharedSecret(t){const r=Ai().keyFromPrivate(se(this.privateKey)),n=Ai().keyFromPublic(se(Qg(t)));return xt("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!!(t&&t._isSigningKey)}}function O9(e,t){const r=ba(t),n={r:se(r.r),s:se(r.s)};return"0x"+Ai().recoverPubKey(se(e),n,r.recoveryParam).encode("hex",!1)}function Qg(e,t){const r=se(e);if(r.length===32){const n=new Qo(r);return t?"0x"+Ai().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return t?le(r):"0x"+Ai().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return t?"0x"+Ai().keyFromPublic(r).getPublic(!0,"hex"):le(r)}return Op.throwArgumentError("invalid public or private key","key","[REDACTED]")}const UH=Object.freeze(Object.defineProperty({__proto__:null,SigningKey:Qo,computePublicKey:Qg,recoverPublicKey:O9},Symbol.toStringTag,{value:"Module"})),VH="transactions/5.7.0",_r=new V(VH);var Dp;(function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"})(Dp||(Dp={}));function Xg(e){return e==="0x"?null:lt(e)}function Rr(e){return e==="0x"?GA:ae.from(e)}const qH=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],HH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function ao(e){const t=Qg(e);return lt(Jt(ot(Jt(t,1)),12))}function Tu(e,t){return ao(O9(se(e),t))}function on(e,t){const r=ji(ae.from(e).toHexString());return r.length>32&&_r.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function kv(e,t){return{address:lt(e),storageKeys:(t||[]).map((r,n)=>(qi(r)!==32&&_r.throwArgumentError("invalid access list storageKey",`accessList[${e}:${n}]`,r),r.toLowerCase()))}}function Ea(e){if(Array.isArray(e))return e.map((r,n)=>Array.isArray(r)?(r.length>2&&_r.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),kv(r[0],r[1])):kv(r.address,r.storageKeys));const t=Object.keys(e).map(r=>{const n=e[r].reduce((i,s)=>(i[s]=!0,i),{});return kv(r,Object.keys(n).sort())});return t.sort((r,n)=>r.address.localeCompare(n.address)),t}function D9(e){return Ea(e).map(t=>[t.address,t.storageKeys])}function B9(e,t){if(e.gasPrice!=null){const n=ae.from(e.gasPrice),i=ae.from(e.maxFeePerGas||0);n.eq(i)||_r.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[on(e.chainId||0,"chainId"),on(e.nonce||0,"nonce"),on(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),on(e.maxFeePerGas||0,"maxFeePerGas"),on(e.gasLimit||0,"gasLimit"),e.to!=null?lt(e.to):"0x",on(e.value||0,"value"),e.data||"0x",D9(e.accessList||[])];if(t){const n=ba(t);r.push(on(n.recoveryParam,"recoveryParam")),r.push(ji(n.r)),r.push(ji(n.s))}return Fr(["0x02",ca(r)])}function L9(e,t){const r=[on(e.chainId||0,"chainId"),on(e.nonce||0,"nonce"),on(e.gasPrice||0,"gasPrice"),on(e.gasLimit||0,"gasLimit"),e.to!=null?lt(e.to):"0x",on(e.value||0,"value"),e.data||"0x",D9(e.accessList||[])];if(t){const n=ba(t);r.push(on(n.recoveryParam,"recoveryParam")),r.push(ji(n.r)),r.push(ji(n.s))}return Fr(["0x01",ca(r)])}function GH(e,t){Bg(e,HH);const r=[];qH.forEach(function(o){let a=e[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=se(le(a,l)),o.length&&a.length!==o.length&&a.length>0&&_r.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=ji(a),a.length>o.maxLength&&_r.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(le(a))});let n=0;if(e.chainId!=null?(n=e.chainId,typeof n!="number"&&_r.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!ku(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),n!==0&&(r.push(le(n)),r.push("0x"),r.push("0x")),!t)return ca(r);const i=ba(t);let s=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),s+=n*2+8,i.v>28&&i.v!==s&&_r.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==s&&_r.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(le(s)),r.push(ji(se(i.r))),r.push(ji(se(i.s))),ca(r)}function Bp(e,t){if(e.type==null||e.type===0)return e.accessList!=null&&_r.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),GH(e,t);switch(e.type){case 1:return L9(e,t);case 2:return B9(e,t)}return _r.throwError(`unsupported transaction type: ${e.type}`,V.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function F9(e,t,r){try{const n=Rr(t[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");e.v=n}catch{_r.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=xt(t[1],32),e.s=xt(t[2],32);try{const n=ot(r(e));e.from=Tu(n,{r:e.r,s:e.s,recoveryParam:e.v})}catch{}}function WH(e){const t=Dh(e.slice(1));t.length!==9&&t.length!==12&&_r.throwArgumentError("invalid component count for transaction type: 2","payload",le(e));const r=Rr(t[2]),n=Rr(t[3]),i={type:2,chainId:Rr(t[0]).toNumber(),nonce:Rr(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Rr(t[4]),to:Xg(t[5]),value:Rr(t[6]),data:t[7],accessList:Ea(t[8])};return t.length===9||(i.hash=ot(e),F9(i,t.slice(9),B9)),i}function KH(e){const t=Dh(e.slice(1));t.length!==8&&t.length!==11&&_r.throwArgumentError("invalid component count for transaction type: 1","payload",le(e));const r={type:1,chainId:Rr(t[0]).toNumber(),nonce:Rr(t[1]).toNumber(),gasPrice:Rr(t[2]),gasLimit:Rr(t[3]),to:Xg(t[4]),value:Rr(t[5]),data:t[6],accessList:Ea(t[7])};return t.length===8||(r.hash=ot(e),F9(r,t.slice(8),L9)),r}function YH(e){const t=Dh(e);t.length!==9&&t.length!==6&&_r.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:Rr(t[0]).toNumber(),gasPrice:Rr(t[1]),gasLimit:Rr(t[2]),to:Xg(t[3]),value:Rr(t[4]),data:t[5],chainId:0};if(t.length===6)return r;try{r.v=ae.from(t[6]).toNumber()}catch{return r}if(r.r=xt(t[7],32),r.s=xt(t[8],32),ae.from(r.r).isZero()&&ae.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=t.slice(0,6);r.chainId!==0&&(i.push(le(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=ot(ca(i));try{r.from=Tu(s,{r:le(r.r),s:le(r.s),recoveryParam:n})}catch{}r.hash=ot(e)}return r.type=null,r}function j9(e){const t=se(e);if(t[0]>127)return YH(t);switch(t[0]){case 1:return KH(t);case 2:return WH(t)}return _r.throwError(`unsupported transaction type: ${t[0]}`,V.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}const JH=Object.freeze(Object.defineProperty({__proto__:null,get TransactionTypes(){return Dp},accessListify:Ea,computeAddress:ao,parse:j9,recoverAddress:Tu,serialize:Bp},Symbol.toStringTag,{value:"Module"})),QH="contracts/5.7.0";var ua=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Kt=new V(QH);function V0(e,t){return ua(this,void 0,void 0,function*(){const r=yield t;typeof r!="string"&&Kt.throwArgumentError("invalid address or ENS name","name",r);try{return lt(r)}catch{}e||Kt.throwError("a provider or signer is needed to resolve ENS names",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return n==null&&Kt.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Hd(e,t,r){return ua(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Hd(e,Array.isArray(t)?t[i]:t[n.name],n))):r.type==="address"?yield V0(e,t):r.type==="tuple"?yield Hd(e,t,r.components):r.baseType==="array"?Array.isArray(t)?yield Promise.all(t.map(n=>Hd(e,n,r.arrayChildren))):Promise.reject(Kt.makeError("invalid value for array",V.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function Uh(e,t,r){return ua(this,void 0,void 0,function*(){let n={};r.length===t.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=rr(r.pop())),Kt.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=Ut({override:V0(e.signer,n.from),signer:e.signer.getAddress()}).then(c=>ua(this,void 0,void 0,function*(){return lt(c.signer)!==c.override&&Kt.throwError("Contract with a Signer cannot override from",V.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=e.signer.getAddress():n.from&&(n.from=V0(e.provider,n.from));const i=yield Ut({args:Hd(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:Ut(n)||{}}),s=e.interface.encodeFunctionData(t,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=ae.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=ae.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=ae.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=ae.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=ae.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Ea(a.accessList)),o.gasLimit==null&&t.gas!=null){let c=21e3;const f=se(s);for(let u=0;un[c]!=null);return l.length&&Kt.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,V.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function XH(e,t){return function(...r){return Uh(e,t,r)}}function ZH(e,t){const r=e.signer||e.provider;return function(...n){return ua(this,void 0,void 0,function*(){r||Kt.throwError("estimate require a provider or signer",V.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield Uh(e,t,n);return yield r.estimateGas(i)})}}function eG(e,t){const r=t.wait.bind(t);t.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=vo(s),a=null;try{a=e.interface.parseLog(s)}catch{}return a&&(o.args=a.args,o.decode=(l,c)=>e.interface.decodeEventLog(a.eventFragment,l,c),o.event=a.name,o.eventSignature=a.signature),o.removeListener=()=>e.provider,o.getBlock=()=>e.provider.getBlock(i.blockHash),o.getTransaction=()=>e.provider.getTransaction(i.transactionHash),o.getTransactionReceipt=()=>Promise.resolve(i),o}),i))}function z9(e,t,r){const n=e.signer||e.provider;return function(...i){return ua(this,void 0,void 0,function*(){let s;if(i.length===t.inputs.length+1&&typeof i[i.length-1]=="object"){const l=rr(i.pop());l.blockTag!=null&&(s=yield l.blockTag),delete l.blockTag,i.push(l)}e.deployTransaction!=null&&(yield e._deployed(s));const o=yield Uh(e,t,i),a=yield n.call(o,s);try{let l=e.interface.decodeFunctionResult(t,a);return r&&t.outputs.length===1&&(l=l[0]),l}catch(l){throw l.code===V.errors.CALL_EXCEPTION&&(l.address=e.address,l.args=i,l.transaction=o),l}})}}function tG(e,t){return function(...r){return ua(this,void 0,void 0,function*(){e.signer||Kt.throwError("sending a transaction requires a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),e.deployTransaction!=null&&(yield e._deployed());const n=yield Uh(e,t,r),i=yield e.signer.sendTransaction(n);return eG(e,i),i})}}function Q6(e,t,r){return t.constant?z9(e,t,r):tG(e,t)}function U9(e){return e.address&&(e.topics==null||e.topics.length===0)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(t=>Array.isArray(t)?t.join("|"):t).join(":"):"")}class nu{constructor(t,r){ee(this,"tag",t),ee(this,"filter",r),this._listeners=[]}addListener(t,r){this._listeners.push({listener:t,once:r})}removeListener(t){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==t?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(t=>t.listener)}listenerCount(){return this._listeners.length}run(t){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=t.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(t){}getEmit(t){return[t]}}class rG extends nu{constructor(){super("error",null)}}class X6 extends nu{constructor(t,r,n,i){const s={address:t};let o=r.getEventTopic(n);i?(o!==i[0]&&Kt.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(U9(s),s),ee(this,"address",t),ee(this,"interface",r),ee(this,"fragment",n)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(r){t.args=null,t.decodeError=r}}getEmit(t){const r=DA(t.args);if(r.length)throw r[0].error;const n=(t.args||[]).slice();return n.push(t),n}}class Z6 extends nu{constructor(t,r){super("*",{address:t}),ee(this,"address",t),ee(this,"interface",r)}prepareEvent(t){super.prepareEvent(t);try{const r=this.interface.parseLog(t);t.event=r.name,t.eventSignature=r.signature,t.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),t.args=r.args}catch{}}}class nG{constructor(t,r,n){ee(this,"interface",ri(new.target,"getInterface")(r)),n==null?(ee(this,"provider",null),ee(this,"signer",null)):Kl.isSigner(n)?(ee(this,"provider",n.provider||null),ee(this,"signer",n)):Ru.isProvider(n)?(ee(this,"provider",n),ee(this,"signer",null)):Kt.throwArgumentError("invalid signer or provider","signerOrProvider",n),ee(this,"callStatic",{}),ee(this,"estimateGas",{}),ee(this,"functions",{}),ee(this,"populateTransaction",{}),ee(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];ee(this.filters,a,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(l,c)})),o[l.name]||(o[l.name]=[]),o[l.name].push(a)}),Object.keys(o).forEach(a=>{const l=o[a];l.length===1?ee(this.filters,a,this.filters[l[0]]):Kt.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ee(this,"_runningEvents",{}),ee(this,"_wrappedEmits",{}),t==null&&Kt.throwArgumentError("invalid contract address or ENS name","addressOrName",t),ee(this,"address",t),this.provider)ee(this,"resolvedAddress",V0(this.provider,t));else try{ee(this,"resolvedAddress",Promise.resolve(lt(t)))}catch{Kt.throwError("provider is required to use ENS name as contract address",V.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(o=>{});const i={},s={};Object.keys(this.interface.functions).forEach(o=>{const a=this.interface.functions[o];if(s[o]){Kt.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`);return}s[o]=!0;{const l=a.name;i[`%${l}`]||(i[`%${l}`]=[]),i[`%${l}`].push(o)}this[o]==null&&ee(this,o,Q6(this,a,!0)),this.functions[o]==null&&ee(this.functions,o,Q6(this,a,!1)),this.callStatic[o]==null&&ee(this.callStatic,o,z9(this,a,!0)),this.populateTransaction[o]==null&&ee(this.populateTransaction,o,XH(this,a)),this.estimateGas[o]==null&&ee(this.estimateGas,o,ZH(this,a))}),Object.keys(i).forEach(o=>{const a=i[o];if(a.length>1)return;o=o.substring(1);const l=a[0];try{this[o]==null&&ee(this,o,this[l])}catch{}this.functions[o]==null&&ee(this.functions,o,this.functions[l]),this.callStatic[o]==null&&ee(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&ee(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&ee(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(t){return jg(t)}static getInterface(t){return Tp.isInterface(t)?t:new Tp(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,t).then(r=>(r==="0x"&&Kt.throwError("contract not deployed",V.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(t){this.signer||Kt.throwError("sending a transactions require a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=rr(t||{});return["from","to"].forEach(function(n){r[n]!=null&&Kt.throwError("cannot override "+n,V.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(t){typeof t=="string"&&(t=new Wg(t,this.provider));const r=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&ee(r,"deployTransaction",this.deployTransaction),r}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return j0.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if(typeof t=="string"){if(t==="error")return this._normalizeRunningEvent(new rG);if(t==="event")return this._normalizeRunningEvent(new nu("event",null));if(t==="*")return this._normalizeRunningEvent(new Z6(this.address,this.interface));const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new X6(this.address,this.interface,r))}if(t.topics&&t.topics.length>0){try{const n=t.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new X6(this.address,this.interface,i,t.topics))}catch{}const r={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new nu(U9(r),r))}return this._normalizeRunningEvent(new Z6(this.address,this.interface))}_checkRunningEvents(t){if(t.listenerCount()===0){delete this._runningEvents[t.tag];const r=this._wrappedEmits[t.tag];r&&t.filter&&(this.provider.off(t.filter,r),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,r,n){const i=vo(r);return i.removeListener=()=>{n&&(t.removeListener(n),this._checkRunningEvents(t))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),t.prepareEvent(i),i}_addEventListener(t,r,n){if(this.provider||Kt.throwError("events require a provider or a signer with a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(r,n),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const i=s=>{let o=this._wrapEvent(t,s,r);if(o.decodeError==null)try{const a=t.getEmit(o);this.emit(t.filter,...a)}catch(a){o.decodeError=a.error}t.filter!=null&&this.emit("event",o),o.decodeError!=null&&this.emit("error",o.decodeError,o)};this._wrappedEmits[t.tag]=i,t.filter!=null&&this.provider.on(t.filter,i)}}queryFilter(t,r,n){const i=this._getRunningEvent(t),s=rr(i.filter);return typeof r=="string"&&Ge(r,32)?(n!=null&&Kt.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=r):(s.fromBlock=r??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(o=>o.map(a=>this._wrapEvent(i,a,null)))}on(t,r){return this._addEventListener(this._getRunningEvent(t),r,!1),this}once(t,r){return this._addEventListener(this._getRunningEvent(t),r,!0),this}emit(t,...r){if(!this.provider)return!1;const n=this._getRunningEvent(t),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(t){return this.provider?t==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(t==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(t==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(t);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(t,r){if(!this.provider)return this;const n=this._getRunningEvent(t);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(t,r){return this.off(t,r)}}class iG extends nG{}class Zg{constructor(t){ee(this,"alphabet",t),ee(this,"base",t.length),ee(this,"_alphabetMap",{}),ee(this,"_leader",t.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let i="";for(let s=0;r[s]===0&&s=0;--s)i+=this.alphabet[n[s]];return i}decode(t){if(typeof t!="string")throw new TypeError("Expected String");let r=[];if(t.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;s>0;)r.push(s&255),s>>=8}for(let n=0;t[n]===this._leader&&n>24&255,l[t.length+1]=u>>16&255,l[t.length+2]=u>>8&255,l[t.length+3]=u&255;let d=se(iu(i,e,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y=256)throw new Error("Depth too large!");return t4(St([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",le(this.depth),this.parentFingerprint,xt(le(this.index),4),this.chainCode,this.privateKey!=null?St(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new an(Pa,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw new Error("invalid index - "+String(t));let r=this.path;r&&(r+="/"+(t&~Da));const n=new Uint8Array(37);if(t&Da){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(se(this.privateKey),1),r&&(r+="'")}else n.set(se(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=t>>24-u&255;const i=se(iu(Ol.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=md(ae.from(s).add(this.privateKey).mod(pG)):l=new Qo(le(s))._addPoint(this.publicKey);let c=r;const f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new an(Pa,a,l,this.fingerprint,md(o),t,this.depth+1,c)}derivePath(t){const r=t.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+t);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=Da)throw new Error("invalid path index - "+s);n=n._derive(Da+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=Da)throw new Error("invalid path index - "+s);n=n._derive(o)}else throw new Error("invalid path component - "+s)}return n}static _fromSeed(t,r){const n=se(t);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=se(iu(Ol.sha512,mG,n));return new an(Pa,md(i.slice(0,32)),null,"0x00000000",md(i.slice(32)),0,0,r)}static fromMnemonic(t,r,n){return n=tx(n),t=qh(Vh(t,n),n),an._fromSeed(G9(t,r),{phrase:t,path:"m",locale:n.locale})}static fromSeed(t){return an._fromSeed(t,null)}static fromExtendedKey(t){const r=$l.decode(t);(r.length!==82||t4(r.slice(0,78))!==t)&&su.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=le(r.slice(5,9)),s=parseInt(le(r.slice(9,13)).substring(2),16),o=le(r.slice(13,45)),a=r.slice(45,78);switch(le(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new an(Pa,null,le(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new an(Pa,le(a.slice(1)),null,i,o,s,n,null)}return su.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function G9(e,t){t||(t="");const r=Lt("mnemonic"+t,Hi.NFKD);return ex(Lt(e,Hi.NFKD),r,2048,64,"sha512")}function Vh(e,t){t=tx(t),su.checkNormalize();const r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=se(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const s=32*r.length/3,o=r.length/3,a=H9(o);if((se(Ss(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return le(n.slice(0,s/8))}function qh(e,t){if(t=tx(t),e=se(e),e.length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=e[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[o]>>8-n,r.push(e[o]&gG(8-n)),n+=3);const i=e.length/4,s=se(Ss(e))[0]&H9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,t.join(r.map(o=>t.getWord(o)))}function xG(e,t){try{return Vh(e,t),!0}catch{}return!1}function bG(e){return(typeof e!="number"||e<0||e>=Da||e%1)&&su.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}const wG=Object.freeze(Object.defineProperty({__proto__:null,HDNode:an,defaultPath:Dl,entropyToMnemonic:qh,getAccountPath:bG,isValidMnemonic:xG,mnemonicToEntropy:Vh,mnemonicToSeed:G9},Symbol.toStringTag,{value:"Module"})),EG="random/5.7.0",Fp=new V(EG);function CG(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const r4=CG();let Gd=r4.crypto||r4.msCrypto;(!Gd||!Gd.getRandomValues)&&(Fp.warn("WARNING: Missing strong random number source"),Gd={getRandomValues:function(e){return Fp.throwError("no secure random source avaialble",V.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function nl(e){(e<=0||e>1024||e%1||e!=e)&&Fp.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return Gd.getRandomValues(t),se(t)}function SG(e){e=e.slice();for(let t=e.length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}const AG=Object.freeze(Object.defineProperty({__proto__:null,randomBytes:nl,shuffled:SG},Symbol.toStringTag,{value:"Module"}));var W9={exports:{}};(function(e,t){(function(r){function n(k){return parseInt(k)===k}function i(k){if(!n(k.length))return!1;for(var p=0;p255)return!1;return!0}function s(k,p){if(k.buffer&&ArrayBuffer.isView(k)&&k.name==="Uint8Array")return p&&(k.slice?k=k.slice():k=Array.prototype.slice.call(k)),k;if(Array.isArray(k)){if(!i(k))throw new Error("Array contains invalid value: "+k);return new Uint8Array(k)}if(n(k.length)&&i(k))return new Uint8Array(k);throw new Error("unsupported array-like object")}function o(k){return new Uint8Array(k)}function a(k,p,R,L,E){(L!=null||E!=null)&&(k.slice?k=k.slice(L,E):k=Array.prototype.slice.call(k,L,E)),p.set(k,R)}var l=function(){function k(R){var L=[],E=0;for(R=encodeURI(R);E191&&F<224?(L.push(String.fromCharCode((F&31)<<6|R[E+1]&63)),E+=2):(L.push(String.fromCharCode((F&15)<<12|(R[E+1]&63)<<6|R[E+2]&63)),E+=3)}return L.join("")}return{toBytes:k,fromBytes:p}}(),c=function(){function k(L){for(var E=[],F=0;F>4]+p[j&15])}return E.join("")}return{toBytes:k,fromBytes:R}}(),f={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],v=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],w=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],S=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],O=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],$=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],D=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],G=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function J(k){for(var p=[],R=0;R>2,this._Ke[F][p%4]=E[p],this._Kd[k-F][p%4]=E[p];for(var j=0,z=L,K;z>16&255]<<24^d[K>>8&255]<<16^d[K&255]<<8^d[K>>24&255]^u[j]<<24,j+=1,L!=8)for(var p=1;p>8&255]<<8^d[K>>16&255]<<16^d[K>>24&255]<<24;for(var p=L/2+1;p>2,X=z%4,this._Ke[ne][X]=E[p],this._Kd[k-ne][X]=E[p++],z++}for(var ne=1;ne>24&255]^$[K>>16&255]^D[K>>8&255]^G[K&255]},H.prototype.encrypt=function(k){if(k.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,R=[0,0,0,0],L=J(k),E=0;E<4;E++)L[E]^=this._Ke[0][E];for(var F=1;F>24&255]^y[L[(E+1)%4]>>16&255]^w[L[(E+2)%4]>>8&255]^x[L[(E+3)%4]&255]^this._Ke[F][E];L=R.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Ke[p][E],j[4*E]=(d[L[E]>>24&255]^z>>24)&255,j[4*E+1]=(d[L[(E+1)%4]>>16&255]^z>>16)&255,j[4*E+2]=(d[L[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(d[L[(E+3)%4]&255]^z)&255;return j},H.prototype.decrypt=function(k){if(k.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,R=[0,0,0,0],L=J(k),E=0;E<4;E++)L[E]^=this._Kd[0][E];for(var F=1;F>24&255]^S[L[(E+3)%4]>>16&255]^A[L[(E+2)%4]>>8&255]^_[L[(E+1)%4]&255]^this._Kd[F][E];L=R.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Kd[p][E],j[4*E]=(v[L[E]>>24&255]^z>>24)&255,j[4*E+1]=(v[L[(E+3)%4]>>16&255]^z>>16)&255,j[4*E+2]=(v[L[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(v[L[(E+1)%4]&255]^z)&255;return j};var Z=function(k){if(!(this instanceof Z))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new H(k)};Z.prototype.encrypt=function(k){if(k=s(k),k.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=o(k.length),R=o(16),L=0;L=0;--p)this._counter[p]=k%256,k=k>>8},P.prototype.setBytes=function(k){if(k=s(k,!0),k.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=k},P.prototype.increment=function(){for(var k=15;k>=0;k--)if(this._counter[k]===255)this._counter[k]=0;else{this._counter[k]++;break}};var M=function(k,p){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof P||(p=new P(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new H(k)};M.prototype.encrypt=function(k){for(var p=s(k,!0),R=0;R16)throw new Error("PKCS#7 padding byte out of range");for(var R=k.length-p,L=0;L=64;){let B=x,k=b,p=S,R=A,L=_,E=O,F=$,j=D,z,K,ne,X,te;for(K=0;K<16;K++)ne=T+K*4,G[K]=(M[ne]&255)<<24|(M[ne+1]&255)<<16|(M[ne+2]&255)<<8|M[ne+3]&255;for(K=16;K<64;K++)z=G[K-2],X=(z>>>17|z<<32-17)^(z>>>19|z<<32-19)^z>>>10,z=G[K-15],te=(z>>>7|z<<32-7)^(z>>>18|z<<32-18)^z>>>3,G[K]=(X+G[K-7]|0)+(te+G[K-16]|0)|0;for(K=0;K<64;K++)X=(((L>>>6|L<<32-6)^(L>>>11|L<<32-11)^(L>>>25|L<<32-25))+(L&E^~L&F)|0)+(j+(w[K]+G[K]|0)|0)|0,te=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&k^B&p^k&p)|0,j=F,F=E,E=L,L=R+X|0,R=p,p=k,k=B,B=X+te|0;x=x+B|0,b=b+k|0,S=S+p|0,A=A+R|0,_=_+L|0,O=O+E|0,$=$+F|0,D=D+j|0,T+=64,N-=64}}J(y);let H,Z=y.length%64,I=y.length/536870912|0,h=y.length<<3,C=Z<56?56:120,P=y.slice(y.length-Z,y.length);for(P.push(128),H=Z+1;H>>24&255),P.push(I>>>16&255),P.push(I>>>8&255),P.push(I>>>0&255),P.push(h>>>24&255),P.push(h>>>16&255),P.push(h>>>8&255),P.push(h>>>0&255),J(P),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,S=new Array(b),A=new Array(64);let _,O=[];for(_=0;_<64;_++)S[_]=54;for(_=0;_=b-4;D--){if(S[D]++,S[D]<=255)return;S[D]=0}}for(;x>=32;)$(),O=O.concat(i(A.concat(i(S)))),x-=32;return x>0&&($(),O=O.concat(i(A.concat(i(S))).slice(0,x))),O}function o(y,w,x,b,S){let A;for(f(y,(2*x-1)*16,S,0,16),A=0;A<2*x;A++)c(y,A*16,S,16),l(S,b),f(S,0,y,w+A*16,16);for(A=0;A>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let S=0;S=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,S,A,_){if(x=d(x,"N"),b=d(b,"r"),S=d(S,"p"),A=d(A,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/S)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let O=s(y,w,S*128*b);const $=new Uint32Array(S*32*b);for(let L=0;L<$.length;L++){const E=L*4;$[L]=(O[E+3]&255)<<24|(O[E+2]&255)<<16|(O[E+1]&255)<<8|(O[E+0]&255)<<0}const D=new Uint32Array(64*b),G=new Uint32Array(32*b*x),J=32*b,H=new Uint32Array(16),Z=new Uint32Array(16),I=S*x*2;let h=0,C=null,P=!1,M=0,T=0,N,B;const k=_?parseInt(1e3/b):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,R=function(){if(P)return _(new Error("cancelled"),h/I);let L;switch(M){case 0:B=T*32*b,f($,B,D,0,J),M=1,N=0;case 1:L=x-N,L>k&&(L=k);for(let F=0;Fk&&(L=k);for(let F=0;F>0&255),O.push($[F]>>8&255),O.push($[F]>>16&255),O.push($[F]>>24&255);const E=s(y,O,A);return _&&_(null,1,E),E}_&&p(R)};if(!_)for(;;){const L=R();if(L!=null)return L}R()}const m={scrypt:function(y,w,x,b,S,A,_){return new Promise(function(O,$){let D=0;_&&_(0),v(y,w,x,b,S,A,function(G,J,H){if(G)$(G);else if(H)_&&D!==1&&_(1),O(new Uint8Array(H));else if(_&&J!==D)return D=J,_(J)})})},syncScrypt:function(y,w,x,b,S,A){return new Uint8Array(v(y,w,x,b,S,A))}};e.exports=m})()})(Y9);var MG=Y9.exports;const ix=As(MG);var IG=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const jp=new V(K9);function n4(e){return e!=null&&e.mnemonic&&e.mnemonic.phrase}class NG extends ko{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function $G(e,t,r){if(Yt(e,"crypto/cipher")==="aes-128-ctr"){const i=Xo(Yt(e,"crypto/cipherparams/iv")),s=new Di.Counter(i),o=new Di.ModeOfOperation.ctr(t,s);return se(o.decrypt(r))}return null}function J9(e,t){const r=Xo(Yt(e,"crypto/ciphertext"));if(le(ot(St([t.slice(16,32),r]))).substring(2)!==Yt(e,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=$G(e,t.slice(0,16),r);i||jp.throwError("unsupported cipher",V.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=t.slice(32,64),o=ao(i);if(e.address){let l=e.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),lt(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:le(i)};if(Yt(e,"x-ethers/version")==="0.1"){const l=Xo(Yt(e,"x-ethers/mnemonicCiphertext")),c=Xo(Yt(e,"x-ethers/mnemonicCounter")),f=new Di.Counter(c),u=new Di.ModeOfOperation.ctr(s,f),d=Yt(e,"x-ethers/path")||Dl,v=Yt(e,"x-ethers/locale")||"en",m=se(u.decrypt(l));try{const y=qh(m,v),w=an.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==V.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new NG(a)}function Q9(e,t,r,n,i){return se(ex(e,t,r,n,i))}function OG(e,t,r,n,i){return Promise.resolve(Q9(e,t,r,n,i))}function X9(e,t,r,n,i){const s=rx(t),o=Yt(e,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return jp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Xo(Yt(e,"crypto/kdfparams/salt")),c=parseInt(Yt(e,"crypto/kdfparams/n")),f=parseInt(Yt(e,"crypto/kdfparams/r")),u=parseInt(Yt(e,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(Yt(e,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=Xo(Yt(e,"crypto/kdfparams/salt"));let c=null;const f=Yt(e,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(Yt(e,"crypto/kdfparams/c")),d=parseInt(Yt(e,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return jp.throwArgumentError("unsupported key-derivation function","kdf",o)}function Z9(e,t){const r=JSON.parse(e),n=X9(r,t,Q9,ix.syncScrypt);return J9(r,n)}function ek(e,t,r){return IG(this,void 0,void 0,function*(){const n=JSON.parse(e),i=yield X9(n,t,OG,ix.scrypt,r);return J9(n,i)})}function tk(e,t,r,n){try{if(lt(e.address)!==ao(e.privateKey))throw new Error("address/privateKey mismatch");if(n4(e)){const w=e.mnemonic;if(an.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Dl).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=se(e.privateKey),s=rx(t);let o=null,a=null,l=null;if(n4(e)){const w=e.mnemonic;o=se(Vh(w.phrase,w.locale||"en")),a=w.path||Dl,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=se(r.salt):f=nl(32);let u=null;if(r.iv){if(u=se(r.iv),u.length!==16)throw new Error("invalid iv")}else u=nl(16);let d=null;if(r.uuid){if(d=se(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=nl(16);let v=1<<17,m=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),ix.scrypt(s,f,v,m,y,64,n).then(w=>{w=se(w);const x=w.slice(0,16),b=w.slice(16,32),S=w.slice(32,64),A=new Di.Counter(u),_=new Di.ModeOfOperation.ctr(x,A),O=se(_.encrypt(i)),$=ot(St([b,O])),D={address:e.address.substring(2).toLowerCase(),id:PG(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:le(u).substring(2)},ciphertext:le(O).substring(2),kdf:"scrypt",kdfparams:{salt:le(f).substring(2),n:v,dklen:32,p:y,r:m},mac:$.substring(2)}};if(o){const G=nl(16),J=new Di.Counter(G),H=new Di.ModeOfOperation.ctr(S,J),Z=se(H.encrypt(o)),I=new Date,h=I.getUTCFullYear()+"-"+kc(I.getUTCMonth()+1,2)+"-"+kc(I.getUTCDate(),2)+"T"+kc(I.getUTCHours(),2)+"-"+kc(I.getUTCMinutes(),2)+"-"+kc(I.getUTCSeconds(),2)+".0Z";D["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+D.address,mnemonicCounter:le(G).substring(2),mnemonicCiphertext:le(Z).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(D)})}function rk(e,t,r){if(Hh(e)){r&&r(0);const n=nx(e,t);return r&&r(1),Promise.resolve(n)}return Gh(e)?ek(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function nk(e,t){if(Hh(e))return nx(e,t);if(Gh(e))return Z9(e,t);throw new Error("invalid JSON wallet")}const DG=Object.freeze(Object.defineProperty({__proto__:null,decryptCrowdsale:nx,decryptJsonWallet:rk,decryptJsonWalletSync:nk,decryptKeystore:ek,decryptKeystoreSync:Z9,encryptKeystore:tk,getJsonWalletAddress:TG,isCrowdsaleWallet:Hh,isKeystoreWallet:Gh},Symbol.toStringTag,{value:"Module"})),BG="wallet/5.7.0";var i4=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Ra=new V(BG);function LG(e){return e!=null&&Ge(e.privateKey,32)&&e.address!=null}function FG(e){const t=e.mnemonic;return t&&t.phrase}class An extends Kl{constructor(t,r){if(super(),LG(t)){const n=new Qo(t.privateKey);if(ee(this,"_signingKey",()=>n),ee(this,"address",ao(this.publicKey)),this.address!==lt(t.address)&&Ra.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),FG(t)){const i=t.mnemonic;ee(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Dl,locale:i.locale||"en"}));const s=this.mnemonic,o=an.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);ao(o.privateKey)!==this.address&&Ra.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ee(this,"_mnemonic",()=>null)}else{if(Qo.isSigningKey(t))t.curve!=="secp256k1"&&Ra.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),ee(this,"_signingKey",()=>t);else{typeof t=="string"&&t.match(/^[0-9a-f]*$/i)&&t.length===64&&(t="0x"+t);const n=new Qo(t);ee(this,"_signingKey",()=>n)}ee(this,"_mnemonic",()=>null),ee(this,"address",ao(this.publicKey))}r&&!Ru.isProvider(r)&&Ra.throwArgumentError("invalid provider","provider",r),ee(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new An(this,t)}signTransaction(t){return Ut(t).then(r=>{r.from!=null&&(lt(r.from)!==this.address&&Ra.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete r.from);const n=this._signingKey().signDigest(ot(Bp(r)));return Bp(r,n)})}signMessage(t){return i4(this,void 0,void 0,function*(){return Pp(this._signingKey().signDigest(Gg(t)))})}_signTypedData(t,r,n){return i4(this,void 0,void 0,function*(){const i=yield xr.resolveNames(t,r,n,s=>(this.provider==null&&Ra.throwError("cannot resolve ENS names without a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return Pp(this._signingKey().signDigest(xr.hash(i.domain,r,i.value)))})}encrypt(t,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),tk(this,t,r,n)}static createRandom(t){let r=nl(16);t||(t={}),t.extraEntropy&&(r=se(Jt(ot(St([r,t.extraEntropy])),0,16)));const n=qh(r,t.locale);return An.fromMnemonic(n,t.path,t.locale)}static fromEncryptedJson(t,r,n){return rk(t,r,n).then(i=>new An(i))}static fromEncryptedJsonSync(t,r){return new An(nk(t,r))}static fromMnemonic(t,r,n){return r||(r=Dl),new An(an.fromMnemonic(t,null,n).derivePath(r))}}function jG(e,t){return Tu(Gg(e),t)}function zG(e,t,r,n){return Tu(xr.hash(e,t,r),n)}const UG=Object.freeze(Object.defineProperty({__proto__:null,Wallet:An,verifyMessage:jG,verifyTypedData:zG},Symbol.toStringTag,{value:"Module"})),VG="networks/5.7.1",s4=new V(VG);function qG(e){return e&&typeof e.renetwork=="function"}function as(e){const t=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(e,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(e,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(e,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const s=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(e,n.pocket);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(e))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const s=["ropsten"],o=new r.AnkrProvider(e,n.ankr);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let s=1;return n.quorum!=null?s=n.quorum:e==="homestead"&&(s=2),new r.FallbackProvider(i,s)}return i[0]};return t.renetwork=function(r){return as(r)},t}function q0(e,t){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return r.renetwork=function(n){return q0(e,n)},r}const o4={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:as("homestead")},a4={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:as("ropsten")},l4={chainId:63,name:"classicMordor",_defaultProvider:q0("https://www.ethercluster.com/mordor","classicMordor")},gd={unspecified:{chainId:0,name:"unspecified"},homestead:o4,mainnet:o4,morden:{chainId:2,name:"morden"},ropsten:a4,testnet:a4,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:as("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:as("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:as("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:as("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:q0("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l4,classicTestnet:l4,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:q0("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:as("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:as("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function HG(e){if(e==null)return null;if(typeof e=="number"){for(const n in gd){const i=gd[n];if(i.chainId===e)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:e,name:"unknown"}}if(typeof e=="string"){const n=gd[e];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const t=gd[e.name];if(!t)return typeof e.chainId!="number"&&s4.throwArgumentError("invalid network chainId","network",e),e;e.chainId!==0&&e.chainId!==t.chainId&&s4.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;return r==null&&t._defaultProvider&&(qG(t._defaultProvider)?r=t._defaultProvider.renetwork(e):r=t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}const GG="web/5.7.1";var WG=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};function KG(e,t){return WG(this,void 0,void 0,function*(){t==null&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(t.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),t.fetchOptions!=null){const o=t.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(e,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((o,a)=>{s[a.toLowerCase()]=o}):n.headers.keys().forEach(o=>{s[o.toLowerCase()]=n.headers.get(o)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:se(new Uint8Array(i))}})}var YG=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Kn=new V(GG);function c4(e){return new Promise(t=>{setTimeout(t,e)})}function Ns(e,t){if(e==null)return null;if(typeof e=="string")return e;if(ku(e)){if(t&&(t.split("/")[0]==="text"||t.split(";")[0].trim()==="application/json"))try{return Po(e)}catch{}return le(e)}return e}function JG(e){return Lt(e.replace(/%([0-9a-f][0-9a-f])/gi,(t,r)=>String.fromCharCode(parseInt(r,16))))}function ik(e,t,r){const n=typeof e=="object"&&e.throttleLimit!=null?e.throttleLimit:12;Kn.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof e=="object"?e.throttleCallback:null,s=typeof e=="object"&&typeof e.throttleSlotInterval=="number"?e.throttleSlotInterval:100;Kn.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);const o=typeof e=="object"?!!e.errorPassThrough:!1,a={};let l=null;const c={method:"GET"};let f=!1,u=2*60*1e3;if(typeof e=="string")l=e;else if(typeof e=="object"){if((e==null||e.url==null)&&Kn.throwArgumentError("missing URL","connection.url",e),l=e.url,typeof e.timeout=="number"&&e.timeout>0&&(u=e.timeout),e.headers)for(const x in e.headers)a[x.toLowerCase()]={key:x,value:String(e.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!e.allowGzip,e.user!=null&&e.password!=null){l.substring(0,6)!=="https:"&&e.allowInsecureAuthentication!==!0&&Kn.throwError("basic authentication requires a secure https url",V.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:e.user,password:"[REDACTED]"});const x=e.user+":"+e.password;a.authorization={key:"Authorization",value:"Basic "+Hg(Lt(x))}}e.skipFetchSetup!=null&&(c.skipFetchSetup=!!e.skipFetchSetup),e.fetchOptions!=null&&(c.fetchOptions=rr(e.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?qg(v[3]):JG(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){Kn.throwError("processing response error",V.errors.SERVER_ERROR,{body:Ns(v[1],v[2]),error:x,requestBody:null,requestMethod:"GET",url:l})}t&&(c.method="POST",c.body=t,a["content-type"]==null&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),a["content-length"]==null&&(a["content-length"]={key:"Content-Length",value:String(t.length)}));const m={};Object.keys(a).forEach(x=>{const b=a[x];m[b.key]=b.value}),c.headers=m;const y=function(){let x=null;return{promise:new Promise(function(A,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(Kn.makeError("timeout",V.errors.TIMEOUT,{requestBody:Ns(c.body,m["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return YG(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),Kn.throwError("bad response",V.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:Ns(S,b.headers?b.headers["content-type"]:null),requestBody:Ns(c.body,m["content-type"]),requestMethod:c.method,url:l})),r)try{const A=yield r(S,b);return y.cancel(),A}catch(A){if(A.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(Po(s))}catch(l){Kn.throwError("invalid JSON",V.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(t!=null){i=Lt(t);const s=typeof e=="string"?{url:e}:rr(e);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=rr(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},e=s}return ik(e,i,n)}function il(e,t){return t||(t={}),t=rr(t),t.floor==null&&(t.floor=0),t.ceiling==null&&(t.ceiling=1e4),t.interval==null&&(t.interval=250),new Promise(function(r,n){let i=null,s=!1;const o=()=>s?!1:(s=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout(()=>{o()&&n(new Error("timeout"))},t.timeout));const a=t.retryLimit;let l=0;function c(){return e().then(function(f){if(f!==void 0)o()&&r(f);else if(t.oncePoll)t.oncePoll.once("poll",c);else if(t.onceBlock)t.onceBlock.once("block",c);else if(!s){if(l++,l>a){o()&&n(new Error("retry limit reached"));return}let u=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));ut.ceiling&&(u=t.ceiling),setTimeout(c,u)}return null},function(f){o()&&n(f)})}c()})}const QG=Object.freeze(Object.defineProperty({__proto__:null,_fetchData:ik,fetchJson:Wh,poll:il},Symbol.toStringTag,{value:"Module"}));var H0="qpzry9x8gf2tvdw0s3jn54khce6mua7l",zp={};for(var xd=0;xd>25;return(e&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function sk(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=ml(t)^n>>5}for(t=ml(t),r=0;rr)throw new TypeError("Exceeds length limit");e=e.toLowerCase();var n=sk(e);if(typeof n=="string")throw new Error(n);for(var i=e+"1",s=0;s>5)throw new Error("Non 5-bit word");n=ml(n)^o,i+=H0.charAt(o)}for(s=0;s<6;++s)n=ml(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=H0.charAt(a)}return i}function ok(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;e=r;var i=e.lastIndexOf("1");if(i===-1)return"No separator character for "+e;if(i===0)return"Missing prefix for "+e;var s=e.slice(0,i),o=e.slice(i+1);if(o.length<6)return"Data too short";var a=sk(s);if(typeof a=="string")return a;for(var l=[],c=0;c=o.length)&&l.push(u)}return a!==1?"Invalid checksum for "+e:{prefix:s,words:l}}function ZG(){var e=ok.apply(null,arguments);if(typeof e=="object")return e}function eW(e){var t=ok.apply(null,arguments);if(typeof t=="object")return t;throw new Error(t)}function Kh(e,t,r,n){for(var i=0,s=0,o=(1<=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<=t)return"Excess padding";if(i<this.data(u,!0);return t.transaction={hash:o,type:c,accessList:ge.allowNull(this.accessList.bind(this),null),blockHash:ge.allowNull(o,null),blockNumber:ge.allowNull(l,null),transactionIndex:ge.allowNull(l,null),confirmations:ge.allowNull(l,null),from:r,gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),gasLimit:n,to:ge.allowNull(r,null),value:n,nonce:l,data:s,r:ge.allowNull(this.uint256),s:ge.allowNull(this.uint256),v:ge.allowNull(l),creates:ge.allowNull(r,null),raw:ge.allowNull(s)},t.transactionRequest={from:ge.allowNull(r),nonce:ge.allowNull(l),gasLimit:ge.allowNull(n),gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),to:ge.allowNull(r),value:ge.allowNull(n),data:ge.allowNull(f),type:ge.allowNull(l),accessList:ge.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:ge.arrayOf(o),data:s,logIndex:l,blockHash:o},t.receipt={to:ge.allowNull(this.address,null),from:ge.allowNull(this.address,null),contractAddress:ge.allowNull(r,null),transactionIndex:l,root:ge.allowNull(a),gasUsed:n,logsBloom:ge.allowNull(s),blockHash:o,transactionHash:o,logs:ge.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:ge.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:ge.allowNull(n),status:ge.allowNull(l),type:c},t.block={hash:ge.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:ge.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:ge.allowNull(r),extraData:s,transactions:ge.allowNull(ge.arrayOf(o)),baseFeePerGas:ge.allowNull(n)},t.blockWithTransactions=rr(t.block),t.blockWithTransactions.transactions=ge.allowNull(ge.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:ge.allowNull(i,void 0),toBlock:ge.allowNull(i,void 0),blockHash:ge.allowNull(o,void 0),address:ge.allowNull(r,void 0),topics:ge.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:ge.allowNull(l),blockHash:ge.allowNull(o),transactionIndex:l,removed:ge.allowNull(this.boolean.bind(this)),address:r,data:ge.allowFalsish(s,"0x"),topics:ge.arrayOf(o),transactionHash:o,logIndex:l},t}accessList(t){return Ea(t||[])}number(t){return t==="0x"?0:ae.from(t).toNumber()}type(t){return t==="0x"||t==null?0:ae.from(t).toNumber()}bigNumber(t){return ae.from(t)}boolean(t){if(typeof t=="boolean")return t;if(typeof t=="string"){if(t=t.toLowerCase(),t==="true")return!0;if(t==="false")return!1}throw new Error("invalid boolean - "+t)}hex(t,r){return typeof t=="string"&&(!r&&t.substring(0,2)!=="0x"&&(t="0x"+t),Ge(t))?t.toLowerCase():Pc.throwArgumentError("invalid hash","value",t)}data(t,r){const n=this.hex(t,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+t);return n}address(t){return lt(t)}callAddress(t){if(!Ge(t,32))return null;const r=lt(Jt(t,12));return r===HA?null:r}contractAddress(t){return jg(t)}blockTag(t){if(t==null)return"latest";if(t==="earliest")return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if(typeof t=="number"||Ge(t))return Oh(t);throw new Error("invalid blockTag")}hash(t,r){const n=this.hex(t,r);return qi(n)!==32?Pc.throwArgumentError("invalid hash","value",t):n}difficulty(t){if(t==null)return null;const r=ae.from(t);try{return r.toNumber()}catch{}return null}uint256(t){if(!Ge(t))throw new Error("invalid uint256");return xt(t,32)}_block(t,r){t.author!=null&&t.miner==null&&(t.miner=t.author);const n=t._difficulty!=null?t._difficulty:t.difficulty,i=ge.check(r,t);return i._difficulty=n==null?null:ae.from(n),i}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return ge.check(this.formats.transactionRequest,t)}transactionResponse(t){t.gas!=null&&t.gasLimit==null&&(t.gasLimit=t.gas),t.to&&ae.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),t.input!=null&&t.data==null&&(t.data=t.input),t.to==null&&t.creates==null&&(t.creates=this.contractAddress(t)),(t.type===1||t.type===2)&&t.accessList==null&&(t.accessList=[]);const r=ge.check(this.formats.transaction,t);if(t.chainId!=null){let n=t.chainId;Ge(n)&&(n=ae.from(n).toNumber()),r.chainId=n}else{let n=t.networkId;n==null&&r.v==null&&(n=t.chainId),Ge(n)&&(n=ae.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(t){return j9(t)}receiptLog(t){return ge.check(this.formats.receiptLog,t)}receipt(t){const r=ge.check(this.formats.receipt,t);if(r.root!=null)if(r.root.length<=4){const n=ae.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&Pc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Pc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&Pc.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(t){return Array.isArray(t)?t.map(r=>this.topics(r)):t!=null?this.hash(t,!0):null}filter(t){return ge.check(this.formats.filter,t)}filterLog(t){return ge.check(this.formats.filterLog,t)}static check(t,r){const n={};for(const i in t)try{const s=t[i](r[i]);s!==void 0&&(n[i]=s)}catch(s){throw s.checkKey=i,s.checkValue=r[i],s}return n}static allowNull(t,r){return function(n){return n==null?r:t(n)}}static allowFalsish(t,r){return function(n){return n?t(n):r}}static arrayOf(t){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(t(i))}),n}}}var Pe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const Ne=new V(sx),oW=10;function u4(e){return e==null?"null":(qi(e)!==32&&Ne.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function d4(e){for(e=e.slice();e.length>0&&e[e.length-1]==null;)e.pop();return e.map(t=>{if(Array.isArray(t)){const r={};t.forEach(i=>{r[u4(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return u4(t)}).join("&")}function aW(e){return e===""?[]:e.split(/&/g).map(t=>{if(t==="")return[];const r=t.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function _a(e){if(typeof e=="string"){if(e=e.toLowerCase(),qi(e)===32)return"tx:"+e;if(e.indexOf(":")===-1)return e}else{if(Array.isArray(e))return"filter:*:"+d4(e);if(eq.isForkEvent(e))throw Ne.warn("not implemented"),new Error("not implemented");if(e&&typeof e=="object")return"filter:"+(e.address||"*")+":"+d4(e.topics||[])}throw new Error("invalid event - "+e)}function Rc(){return new Date().getTime()}function h4(e){return new Promise(t=>{setTimeout(t,e)})}const lW=["block","network","pending","poll"];let cW=class{constructor(t,r,n){ee(this,"tag",t),ee(this,"listener",r),ee(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return t[0]!=="tx"?null:t[1]}get filter(){const t=this.tag.split(":");if(t[0]!=="filter")return null;const r=t[1],n=aW(t[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||lW.indexOf(this.tag)>=0}};const fW={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function Rv(e){return xt(ae.from(e).toHexString(),32)}function v4(e){return $l.encode(St([e,Jt(Ss(Ss(e)),0,4)]))}const ak=new RegExp("^(ipfs)://(.*)$","i"),y4=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),ak,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Wd(e,t){try{return Po(ou(e,t))}catch{}return null}function ou(e,t){if(e==="0x")return null;const r=ae.from(Jt(e,t,t+32)).toNumber(),n=ae.from(Jt(e,r,r+32)).toNumber();return Jt(e,r+32,r+32+n)}function _v(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Ne.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function p4(e){const t=se(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function uW(e){if(e.length%32===0)return e;const t=new Uint8Array(Math.ceil(e.length/32)*32);return t.set(e),t}function lk(e){const t=[];let r=0;for(let n=0;nae.from(t).eq(1)).catch(t=>{if(t.code===V.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t})),this._supportsEip2544}_fetch(t,r){return Pe(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:Fr([t,bf(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=Fr(["0x9061b923",lk([o9(this.name),n.data])]));try{let s=yield this.provider.call(n);return se(s).length%32===4&&Ne.throwError("resolver threw error",V.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=ou(s,0)),s}catch(s){if(s.code===V.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(t,r){return Pe(this,void 0,void 0,function*(){const n=yield this._fetch(t,r);return n!=null?ou(n,0):null})}_getAddress(t,r){const n=fW[String(t)];if(n==null&&Ne.throwError(`unsupported coin type: ${t}`,V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=se(r);if(n.p2pkh!=null){const s=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return v4(St([[n.p2pkh],"0x"+s[2]]))}}if(n.p2sh!=null){const s=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return v4(St([[n.p2sh],"0x"+s[2]]))}}if(n.prefix!=null){const s=i[1];let o=i[0];if(o===0?s!==20&&s!==32&&(o=-1):o=-1,o>=0&&i.length===2+s&&s>=1&&s<=75){const a=f4.toWords(i.slice(2));return a.unshift(o),f4.encode(n.prefix,a)}}return null}getAddress(t){return Pe(this,void 0,void 0,function*(){if(t==null&&(t=60),t===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===WA?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===V.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",Rv(t));if(r==null||r==="0x")return null;const n=this._getAddress(t,r);return n==null&&Ne.throwError("invalid or unsupported coin data",V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:r}),n})}getAvatar(){return Pe(this,void 0,void 0,function*(){const t=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;no[l])}return Ne.throwError("invalid or unsupported content hash data",V.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})})}getText(t){return Pe(this,void 0,void 0,function*(){let r=Lt(t);r=St([Rv(64),Rv(r.length),r]),r.length%32!==0&&(r=St([r,xt("0x",32-t.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",le(r));return n==null||n==="0x"?null:Po(n)})}}let Tv=null,dW=1;class hW extends Ru{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ee(this,"anyNetwork",t==="any"),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch(r=>{}),this._ready().catch(r=>{});else{const r=ri(new.target,"getNetwork")(t);r?(ee(this,"_network",r),this.emit("network",r,null)):Ne.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Pe(this,void 0,void 0,function*(){if(this._network==null){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch{}t==null&&(t=yield this.detectNetwork()),t||Ne.throwError("no network detected",V.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=t:ee(this,"_network",t),this.emit("network",t,null))}return this._network})}get ready(){return il(()=>this._ready().then(t=>t,t=>{if(!(t.code===V.errors.NETWORK_ERROR&&t.event==="noNetwork"))throw t}))}static getFormatter(){return Tv==null&&(Tv=new ge),Tv}static getNetwork(t){return HG(t??"homestead")}ccipReadFetch(t,r,n){return Pe(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=t.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a=0?null:JSON.stringify({data:s,sender:i}),u=yield Wh({url:c,errorPassThrough:!0},f,(v,m)=>(v.status=m.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Ne.throwError(`response not found during CCIP fetch: ${d}`,V.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Ne.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,V.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(t){return Pe(this,void 0,void 0,function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const s=yield i;if(Rc()-s.respTime<=t)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=Rc(),n=Ut({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:s})=>{if(s)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),s;const o=Rc();return i=ae.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Pe(this,void 0,void 0,function*(){const t=dW++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",t,n),n===this._lastBlockNumber){this.emit("didPoll",t);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Ne.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Ne.makeError("network block skew detected",V.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const s=this._emitted[i];s!=="pending"&&n-s>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const s=i.hash;let o=this.getTransactionReceipt(s).then(a=>(!a||a.blockNumber==null||(this._emitted["t:"+s]=a.blockNumber,this.emit(s,a)),null)).catch(a=>{this.emit("error",a)});r.push(o);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const s=i.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=n;const o=s.toBlock-this._maxFilterBlockRange;o>s.fromBlock&&(s.fromBlock=o),s.fromBlock<0&&(s.fromBlock=0);const a=this.getLogs(s).then(l=>{i._inflight=!1,l.length!==0&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(s,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});r.push(a)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",t)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Pe(this,void 0,void 0,function*(){return Ne.throwError("provider does not support network detection",V.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Pe(this,void 0,void 0,function*(){const t=yield this._ready(),r=yield this.detectNetwork();if(t.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),yield h4(0),this._network;const n=Ne.makeError("underlying network changed",V.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r});throw this.emit("error",n),n}return t})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(t=>{this._setFastBlockNumber(t)},t=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(t){t&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const t=Rc();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,r,n){return Pe(this,void 0,void 0,function*(){return this._waitForTransaction(t,r??1,n||0,null)})}_waitForTransaction(t,r,n,i){return Pe(this,void 0,void 0,function*(){const s=yield this.getTransactionReceipt(t);return(s?s.confirmations:0)>=r?s:new Promise((o,a)=>{const l=[];let c=!1;const f=function(){return c?!0:(c=!0,l.forEach(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(t,u)}),i){let d=i.startBlock,v=null;const m=y=>Pe(this,void 0,void 0,function*(){c||(yield h4(1e3),this.getTransactionCount(i.from).then(w=>Pe(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(t);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{c||this.once("block",m)}))});if(c)return;this.once("block",m),l.push(()=>{this.removeListener("block",m)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Ne.makeError("timeout exceeded",V.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Pe(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return ae.from(t)}catch(r){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:r})}})}getBalance(t,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Ut({address:this._getAddress(t),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return ae.from(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(t,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Ut({address:this._getAddress(t),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return ae.from(i).toNumber()}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(t,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Ut({address:this._getAddress(t),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return le(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(t,r,n){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield Ut({address:this._getAddress(t),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>Oh(o))}),s=yield this.perform("getStorageAt",i);try{return le(s)}catch(o){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(t,r,n){if(r!=null&&qi(r)!==32)throw new Error("invalid response - sendTransaction");const i=t;return r!=null&&t.hash!==r&&Ne.throwError("Transaction hash mismatch from Provider.sendTransaction.",V.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:r}),i.wait=(s,o)=>Pe(this,void 0,void 0,function*(){s==null&&(s=1),o==null&&(o=0);let a;s!==0&&n!=null&&(a={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:n});const l=yield this._waitForTransaction(t.hash,s,o,a);return l==null&&s===0?null:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Ne.throwError("transaction failed",V.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),l)}),i}sendTransaction(t){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(t).then(s=>le(s)),n=this.formatter.transaction(t);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const s=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,s,i)}catch(s){throw s.transaction=n,s.transactionHash=n.hash,s}})}_getTransactionRequest(t){return Pe(this,void 0,void 0,function*(){const r=yield t,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?this._getAddress(s):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?ae.from(s):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?le(s):null))}),this.formatter.transactionRequest(yield Ut(n))})}_getFilter(t){return Pe(this,void 0,void 0,function*(){t=yield t;const r={};return t.address!=null&&(r.address=this._getAddress(t.address)),["blockHash","topics"].forEach(n=>{t[n]!=null&&(r[n]=t[n])}),["fromBlock","toBlock"].forEach(n=>{t[n]!=null&&(r[n]=this._getBlockTag(t[n]))}),this.formatter.filter(yield Ut(r))})}_call(t,r,n){return Pe(this,void 0,void 0,function*(){n>=oW&&Ne.throwError("CCIP read exceeded maximum redirections",V.errors.SERVER_ERROR,{redirects:n,transaction:t});const i=t.to,s=yield this.perform("call",{transaction:t,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&qi(s)%32===4)try{const o=Jt(s,4),a=Jt(o,0,32);ae.from(a).eq(i)||Ne.throwError("CCIP Read sender did not match",V.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s});const l=[],c=ae.from(Jt(o,32,64)).toNumber(),f=ae.from(Jt(o,c,c+32)).toNumber(),u=Jt(o,c+32);for(let x=0;xPe(this,void 0,void 0,function*(){const s=yield this.perform("getBlock",i);if(s==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let l=0;lthis._wrapTransaction(l)),a}return this.formatter.block(s)}),{oncePoll:this})})}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return Pe(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const r={transactionHash:this.formatter.hash(t,!0)};return il(()=>Pe(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+t]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(t){return Pe(this,void 0,void 0,function*(){yield this.getNetwork(),t=yield t;const r={transactionHash:this.formatter.hash(t,!0)};return il(()=>Pe(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+t]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return i}),{oncePoll:this})})}getLogs(t){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Ut({filter:this._getFilter(t)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),ge.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Pe(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(t){return Pe(this,void 0,void 0,function*(){if(t=yield t,typeof t=="number"&&t<0){t%1&&Ne.throwArgumentError("invalid BlockTag","blockTag",t);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=t,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(t)})}getResolver(t){return Pe(this,void 0,void 0,function*(){let r=t;for(;;){if(r===""||r==="."||t!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new m4(this,n,t);return r!==t&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(t,r){return Pe(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Ne.throwError("network does not support ENS",V.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+bf(t).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(t){return Pe(this,void 0,void 0,function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(n){if(Ge(t))throw n}typeof t!="string"&&Ne.throwArgumentError("invalid ENS name","name",t);const r=yield this.getResolver(t);return r?yield r.getAddress():null})}lookupAddress(t){return Pe(this,void 0,void 0,function*(){t=yield t,t=this.formatter.address(t);const r=t.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=Wd(yield this.call({to:n,data:"0x691f3431"+bf(r).substring(2)}),0);return(yield this.resolveName(i))!=t?null:i})}getAvatar(t){return Pe(this,void 0,void 0,function*(){let r=null;if(Ge(t)){const s=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new m4(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a}try{const a=Wd(yield this.call({to:o,data:"0x691f3431"+bf(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a;return null}}else if(r=yield this.getResolver(t),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(t,r){return Ne.throwError(t+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(t){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(t,r,n){const i=new cW(_a(t),r,n);return this._events.push(i),this._startEvent(i),this}on(t,r){return this._addEventListener(t,r,!1)}once(t,r){return this._addEventListener(t,r,!0)}emit(t,...r){let n=!1,i=[],s=_a(t);return this._events=this._events.filter(o=>o.tag!==s?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(i.push(o),!1):!0)),i.forEach(o=>{this._stopEvent(o)}),n}listenerCount(t){if(!t)return this._events.length;let r=_a(t);return this._events.filter(n=>n.tag===r).length}listeners(t){if(t==null)return this._events.map(n=>n.listener);let r=_a(t);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(t,r){if(r==null)return this.removeAllListeners(t);const n=[];let i=!1,s=_a(t);return this._events=this._events.filter(o=>o.tag!==s||o.listener!=r||i?!0:(i=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(t){let r=[];if(t==null)r=this._events,this._events=[];else{const n=_a(t);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var ss=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})};const er=new V(sx),vW=["call","estimateGas"];function Ef(e,t){if(e==null)return null;if(typeof e.message=="string"&&e.message.match("reverted")){const r=Ge(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if(typeof e=="object"){for(const r in e){const n=Ef(e[r],t);if(n)return n}return null}if(typeof e=="string")try{return Ef(JSON.parse(e),t)}catch{}return null}function ck(e,t,r){const n=r.transaction||r.signedTransaction;if(e==="call"){const s=Ef(t,!0);if(s)return s.data;er.throwError("missing revert data in call exception; Transaction reverted without a reason string",V.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if(e==="estimateGas"){let s=Ef(t.body,!1);s==null&&(s=Ef(t,!1)),s&&er.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===V.errors.SERVER_ERROR&&t.error&&typeof t.error.message=="string"?i=t.error.message:typeof t.body=="string"?i=t.body:typeof t.responseText=="string"&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&er.throwError("insufficient funds for intrinsic transaction cost",V.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&er.throwError("nonce has already been used",V.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&er.throwError("replacement fee too low",V.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&er.throwError("legacy pre-eip-155 transactions not supported",V.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),vW.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&er.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function g4(e){return new Promise(function(t){setTimeout(t,e)})}function yW(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function _c(e){return e&&e.toLowerCase()}const Up={};class fk extends Kl{constructor(t,r,n){if(super(),t!==Up)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ee(this,"provider",r),n==null&&(n=0),typeof n=="string"?(ee(this,"_address",this.provider.formatter.address(n)),ee(this,"_index",null)):typeof n=="number"?(ee(this,"_index",n),ee(this,"_address",null)):er.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(t){return er.throwError("cannot alter JSON-RPC Signer connection",V.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new pW(Up,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(t=>(t.length<=this._index&&er.throwError("unknown account #"+this._index,V.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index])))}sendUncheckedTransaction(t){t=rr(t);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(t.gasLimit==null){const n=rr(t);n.from=r,t.gasLimit=this.provider.estimateGas(n)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(n=>ss(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&er.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),Ut({tx:Ut(t),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&er.throwArgumentError("from address mismatch","transaction",t):n.from=i;const s=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(o=>o,o=>(typeof o.message=="string"&&o.message.match(/user denied/i)&&er.throwError("user rejected transaction",V.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),ck("sendTransaction",o,s)))})}signTransaction(t){return er.throwError("signing transactions is unsupported",V.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return ss(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(t);try{return yield il(()=>ss(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(t){return ss(this,void 0,void 0,function*(){const r=typeof t=="string"?Lt(t):t,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[le(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&er.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:t}),i}})}_legacySignMessage(t){return ss(this,void 0,void 0,function*(){const r=typeof t=="string"?Lt(t):t,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),le(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&er.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:t}),i}})}_signTypedData(t,r,n){return ss(this,void 0,void 0,function*(){const i=yield xr.resolveNames(t,r,n,o=>this.provider.resolveName(o)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(xr.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&er.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(t){return ss(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),t,null])})}}class pW extends fk{sendTransaction(t){return this.sendUncheckedTransaction(t).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const mW={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let gW=class extends hW{constructor(t,r){let n=r;n==null&&(n=new Promise((i,s)=>{setTimeout(()=>{this.detectNetwork().then(o=>{i(o)},o=>{s(o)})},0)})),super(n),t||(t=ri(this.constructor,"defaultUrl")()),typeof t=="string"?ee(this,"connection",Object.freeze({url:t})):ee(this,"connection",Object.freeze(rr(t))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ss(this,void 0,void 0,function*(){yield g4(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch{try{t=yield this.send("net_version",[])}catch{}}if(t!=null){const r=ri(this.constructor,"getNetwork");try{return r(ae.from(t).toNumber())}catch(n){return er.throwError("could not detect network",V.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:n})}}return er.throwError("could not detect network",V.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(t){return new fk(Up,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(t=>t.map(r=>this.formatter.address(r)))}send(t,r){const n={method:t,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:vo(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(i&&this._cache[t])return this._cache[t];const s=Wh(this.connection,JSON.stringify(n),yW).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return i&&(this._cache[t]=s,setTimeout(()=>{this._cache[t]=null},0)),s}prepareRequest(t,r){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[_c(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[_c(r.address),r.blockTag]];case"getCode":return["eth_getCode",[_c(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[_c(r.address),xt(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[ri(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[ri(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=_c(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(t,r){return ss(this,void 0,void 0,function*(){if(t==="call"||t==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&ae.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=rr(r),r.transaction=rr(i),delete r.transaction.type)}}const n=this.prepareRequest(t,r);n==null&&er.throwError(t+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(n[0],n[1])}catch(i){return ck(t,i,r)}})}_startEvent(t){t.tag==="pending"&&this._startPending(),super._startEvent(t)}_startPending(){if(this._pendingFilter!=null)return;const t=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){t.send("eth_getFilterChanges",[n]).then(function(s){if(t._pendingFilter!=r)return null;let o=Promise.resolve();return s.forEach(function(a){t._emitted["t:"+a.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(a).then(function(l){return t.emit("pending",l),null})})}),o.then(function(){return g4(1e3)})}).then(function(){if(t._pendingFilter!=r){t.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(s=>{})}return i(),n}).catch(n=>{})}_stopEvent(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,r){const n=rr(mW);if(r)for(const s in r)r[s]&&(n[s]=!0);Bg(t,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(t[s]==null)return;const o=Oh(ae.from(t[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){t[s]!=null&&(i[s]=le(t[s]))}),t.accessList&&(i.accessList=Ea(t.accessList)),i}};const xW="solidity/5.7.0",bW=new RegExp("^bytes([0-9]+)$"),wW=new RegExp("^(u?int)([0-9]*)$"),EW=new RegExp("^(.*)\\[([0-9]*)\\]$"),CW="0000000000000000000000000000000000000000000000000000000000000000",Ba=new V(xW);function uk(e,t,r){switch(e){case"address":return r?mf(t,32):se(t);case"string":return Lt(t);case"bytes":return se(t);case"bool":return t=t?"0x01":"0x00",r?mf(t,32):se(t)}let n=e.match(wW);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&Ba.throwArgumentError("invalid number type","type",e),r&&(i=256),t=ae.from(t).toTwos(i),mf(t,i/8)}if(n=e.match(bW),n){const i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&Ba.throwArgumentError("invalid bytes type","type",e),se(t).byteLength!==i&&Ba.throwArgumentError(`invalid value for ${e}`,"value",t),r?se((t+CW).substring(0,66)):t}if(n=e.match(EW),n&&Array.isArray(t)){const i=n[1];parseInt(n[2]||String(t.length))!=t.length&&Ba.throwArgumentError(`invalid array length for ${e}`,"value",t);const o=[];return t.forEach(function(a){o.push(uk(i,a,!0))}),St(o)}return Ba.throwArgumentError("invalid type","type",e)}function ox(e,t){e.length!=t.length&&Ba.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach(function(n,i){r.push(uk(n,t[i]))}),le(St(r))}function SW(e,t){return ot(ox(e,t))}function AW(e,t){return Ss(ox(e,t))}const kW=Object.freeze(Object.defineProperty({__proto__:null,keccak256:SW,pack:ox,sha256:AW},Symbol.toStringTag,{value:"Module"})),PW="units/5.7.0",dk=new V(PW),hk=["wei","kwei","mwei","gwei","szabo","finney","ether"];function RW(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||e==="."||e==="-.")&&dk.throwArgumentError("invalid value","value",e);let r=t[0],n="";for(r.substring(0,1)==="-"&&(n="-",r=r.substring(1));r.substring(0,1)==="0";)r=r.substring(1);r===""&&(r="0");let i="";for(t.length===2&&(i="."+(t[1]||"0"));i.length>2&&i[i.length-1]==="0";)i=i.substring(0,i.length-1);const s=[];for(;r.length;)if(r.length<=3){s.unshift(r);break}else{const o=r.length-3;s.unshift(r.substring(o)),r=r.substring(0,o)}return n+s.join(",")+i}function ax(e,t){if(typeof t=="string"){const r=hk.indexOf(t);r!==-1&&(t=3*r)}return zd(e,t??18)}function Yh(e,t){if(typeof e!="string"&&dk.throwArgumentError("value must be a string","value",e),typeof t=="string"){const r=hk.indexOf(t);r!==-1&&(t=3*r)}return wi(e,t??18)}function vk(e){return ax(e,18)}function yk(e){return Yh(e,18)}const _W=Object.freeze(Object.defineProperty({__proto__:null,commify:RW,formatEther:vk,formatUnits:ax,parseEther:yk,parseUnits:Yh},Symbol.toStringTag,{value:"Module"}));function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(!e)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(e)?n.push(...e):n.push(e),n.length===0){if(t)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(t)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(t)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(MW(e,!0,t),e),NW=e=>IW($W(e)),$W=e=>{if(!e)return[];const t=e.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&t.splice(0,0,t.splice(r,1)[0]),t},lx=(e,t)=>typeof e=="string"?(t=t||{},e.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=t[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",OW=e=>lx("https://${network}-indexer.sequence.app",{network:e}),DW=e=>lx("https://${network}-relayer.sequence.app",{network:e}),BW=e=>lx("https://nodes.sequence.app/${network}",{network:e}),nr=e=>{const t=BW(e);return{rpcUrl:t,relayer:{url:DW(e),provider:{url:t}},indexerUrl:OW(e)}};NW([Nt({},Gt[ue.POLYGON],nr("polygon"),{isDefaultChain:!0,isAuthChain:!0}),Nt({},Gt[ue.MAINNET],nr("mainnet")),Nt({},Gt[ue.BSC],nr("bsc")),Nt({},Gt[ue.AVALANCHE],nr("avalanche")),Nt({},Gt[ue.ARBITRUM],nr("arbitrum")),Nt({},Gt[ue.ARBITRUM_NOVA],nr("arbitrum-nova")),Nt({},Gt[ue.OPTIMISM],nr("optimism")),Nt({},Gt[ue.POLYGON_ZKEVM],nr("polygon-zkevm")),Nt({},Gt[ue.GNOSIS],nr("gnosis")),Nt({},Gt[ue.RINKEBY],nr("rinkeby"),{disabled:!0}),Nt({},Gt[ue.GOERLI],nr("goerli")),Nt({},Gt[ue.SEPOLIA],nr("sepolia")),Nt({},Gt[ue.POLYGON_MUMBAI],nr("mumbai")),Nt({},Gt[ue.BSC_TESTNET],nr("bsc-testnet")),Nt({},Gt[ue.ARBITRUM_GOERLI],nr("arbitrum-goerli")),Nt({},Gt[ue.BASE],nr("base")),Nt({},Gt[ue.BASE_GOERLI],nr("base-goerli")),Nt({},Gt[ue.HOMEVERSE_TESTNET],nr("homeverse-testnet")),Nt({},Gt[ue.AVALANCHE_TESTNET],nr("avalanche-testnet")),Nt({},Gt[ue.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),Nt({},Gt[ue.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]);const x4=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function Mv(){const t=Lp.en,r=x4[Math.floor(Math.random()*x4.length)],n=t.getWord(Math.floor(Math.random()*2048)),i=t.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function LW({onSuccess:e}){const[t,r]=g.useState(""),[n,i]=g.useState(),[s,o]=g.useState(!1),[a,l]=g.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await Mt.email.initiateAuth({email:u});l(d),r(u)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const{idToken:d}=await Mt.email.finalizeAuth({instance:a,answer:u,email:t});e(d)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function FW(){var w;const[e,t]=g.useState(""),r=g.useRef(null),n=(w=r.current)==null?void 0:w.validity.valid,[i,s]=g.useState(!1),[o,a]=g.useState([]),[l,c]=g.useState(!1),{inProgress:f,loading:u,initiateAuth:d,sendChallengeAnswer:v}=LW({onSuccess:async x=>{c(!0);const b=await Mt.signIn({idToken:x},Mv());console.log(`Wallet address: ${b}`),Go.navigate("/")}});g.useEffect(()=>{(async()=>await Mt.isSignedIn()&&Go.navigate("/"))()},[]);const m=async x=>{const b=await Mt.signIn({idToken:x.credential},Mv());console.log(`Wallet address: ${b}`),Go.navigate("/")},y=async x=>{const b=await Mt.signIn({idToken:x.authorization.id_token},Mv());console.log(`Wallet address: ${b}`),Go.navigate("/")};return U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"16",children:U.jsx(CA,{})}),U.jsx(ie,{children:U.jsx(Be,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),v?U.jsxs(ie,{flexDirection:"column",children:[U.jsx(ie,{marginTop:"6",children:U.jsx(Be,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),U.jsx(ie,{marginTop:"4",children:U.jsx(EA,{value:o,digits:6,onChange:a})}),U.jsx(ie,{gap:"2",marginY:"4",children:u||l?U.jsx(ws,{}):U.jsx(Xr,{variant:"primary",disabled:o.includes(""),label:"Verify",onClick:()=>v(o.join("")),"data-id":"verifyButton"})})]}):U.jsxs(ie,{marginTop:"5",marginBottom:"4",children:[U.jsxs(Be,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",U.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),U.jsxs(ie,{marginTop:"6",children:[U.jsx(br,{name:"email",type:"email",onChange:x=>{t(x.target.value)},ref:r,onKeyDown:x=>{e&&x.key==="Enter"&&d(e)},onBlur:()=>s(!!e&&!n),value:e,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),i&&U.jsx(Be,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:u?U.jsx(ws,{}):U.jsx(Xr,{variant:"primary",disabled:!n,label:"Continue",onClick:()=>d(e),"data-id":"continueButton"})})]}),U.jsx("hr",{}),!f&&U.jsxs(U.Fragment,{children:[U.jsx(ie,{children:U.jsx(Be,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),U.jsx(Iz,{onSuccess:m,shape:"circle",width:230}),{}.VITE_APPLE_CLIENT_ID&&U.jsx(Zz,{authOptions:{clientId:{}.VITE_APPLE_CLIENT_ID,scope:"openid email",redirectURI:"https://"+window.location.host,usePopup:!0},onError:x=>console.error(x),onSuccess:y,uiType:"dark"})]})]})}function jW(e){var t="";return r(e),t;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)t+=JSON.stringify(i);else if(Array.isArray(i)){t+="[";var s=!1;i.forEach(function(a){s&&(t+=","),s=!0,a===void 0&&(a=null),r(a)}),t+="]"}else{t+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),t+="}"}}function n(i,s,o){o>0&&(t+=","),t+=JSON.stringify(s),t+=":",r(i[s])}}const cx=e=>{let t=e.httpHandler;return{setHttpHandler(r){t=r},httpHandler(){return t},updateHttpClientConfig(r,n){t.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},fx=e=>({httpHandler:e.httpHandler()});var b4;(function(e){e.HEADER="header",e.QUERY="query"})(b4||(b4={}));var w4;(function(e){e.HEADER="header",e.QUERY="query"})(w4||(w4={}));var au;(function(e){e.HTTP="http",e.HTTPS="https"})(au||(au={}));var G0;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(G0||(G0={}));var E4;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(E4||(E4={}));const po="__smithy_context";var C4;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(C4||(C4={}));var S4;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(S4||(S4={}));class $n{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static isInstance(t){if(!t)return!1;const r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const t=new $n({...this,headers:{...this.headers}});return t.query&&(t.query=zW(t.query)),t}}function zW(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class W0{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const UW=e=>t=>async r=>{if(!$n.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return t(r)},VW={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},ux=e=>({applyToStack:t=>{t.add(UW(e),VW)}}),qW=()=>(e,t)=>async r=>{var n,i;try{const s=await e(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??t.inputFilterSensitiveLog,v=u??t.outputFilterSensitiveLog,{$metadata:m,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:m}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:f}=c,u=f??t.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},HW={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},dx=e=>({applyToStack:t=>{t.add(qW(),HW)}}),A4="X-Amzn-Trace-Id",GW="AWS_LAMBDA_FUNCTION_NAME",WW="_X_AMZN_TRACE_ID",KW=e=>t=>async r=>{const{request:n}=r;if(!$n.isInstance(n)||e.runtime!=="node"||n.headers.hasOwnProperty(A4))return t(r);const i=process.env[GW],s=process.env[WW],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[A4]=s),t({...r,request:n})},YW={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},hx=e=>({applyToStack:t=>{t.add(KW(e),YW)}});class vx extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,vx.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}}class Zl extends vx{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Zl.prototype)}}const pk=(e,t,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};var Iv={};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var qp=function(e,t){return qp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},qp(e,t)};function JW(e,t){qp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Hp=function(){return Hp=Object.assign||function(t){for(var r,n=1,i=arguments.length;n=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function ZW(e,t){return function(r,n){t(r,n,e)}}function eK(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function tK(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(e,t||[])).next())})}function rK(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mk(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function sK(){for(var e=[],t=0;t1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(m){u(s[0][3],m)}}function l(d){d.value instanceof lu?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function lK(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(o){return(r=!r)?{value:lu(e[i](o)),done:i==="return"}:s?s(o):o}:s}}function cK(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Gp=="function"?Gp(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function fK(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function uK(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function dK(e){return e&&e.__esModule?e:{default:e}}function hK(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function vK(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const yK=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Hp},__asyncDelegator:lK,__asyncGenerator:aK,__asyncValues:cK,__await:lu,__awaiter:tK,__classPrivateFieldGet:hK,__classPrivateFieldSet:vK,__createBinding:nK,__decorate:XW,__exportStar:iK,__extends:JW,__generator:rK,__importDefault:dK,__importStar:uK,__makeTemplateObject:fK,__metadata:eK,__param:ZW,__read:mk,__rest:QW,__spread:sK,__spreadArrays:oK,__values:Gp},Symbol.toStringTag,{value:"Module"})),_o=Rt(yK);var Nv={},Tc={};const pK=e=>{const t=[];for(let r=0,n=e.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else t.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(t)},mK=e=>{let t="";for(let r=0,n=e.length;ra.toString(16)).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((i&15)<<12|(e[++r]&63)<<6|e[++r]&63)}return t};function gK(e){return new TextEncoder().encode(e)}function xK(e){return new TextDecoder("utf-8").decode(e)}const bK=e=>typeof TextEncoder=="function"?gK(e):pK(e),wK=e=>typeof TextDecoder=="function"?xK(e):mK(e),EK=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:bK,toUtf8:wK},Symbol.toStringTag,{value:"Module"})),gk=Rt(EK);var k4;function CK(){if(k4)return Tc;k4=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.convertToBuffer=void 0;var e=gk,t=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:e.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?t(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return Tc.convertToBuffer=r,Tc}var Mc={},P4;function SK(){if(P4)return Mc;P4=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.isEmptyData=void 0;function e(t){return typeof t=="string"?t.length===0:t.byteLength===0}return Mc.isEmptyData=e,Mc}var Ic={},R4;function AK(){if(R4)return Ic;R4=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.numToUint8=void 0;function e(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return Ic.numToUint8=e,Ic}var Nc={},_4;function kK(){if(_4)return Nc;_4=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.uint32ArrayFrom=void 0;function e(t){if(!Uint32Array.from){for(var r=new Uint32Array(t.length),n=0;n>>8^o[(this.checksum^m)&255]}}catch(y){f={error:y}}finally{try{v&&!v.done&&(u=d.return)&&u.call(d)}finally{if(f)throw f.error}}return this},l.prototype.digest=function(){return(this.checksum^4294967295)>>>0},l}();e.Crc32=i;var s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],o=(0,r.uint32ArrayFrom)(s),a=PK();Object.defineProperty(e,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})}(Iv)),Iv}xk();const bk={},Wp={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),bk[e]=t,Wp[t]=e}function RK(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(t));n>-1&&i>0;n--,i/=256)r[n]=i;return t<0&&N4(r),new Cf(r)}valueOf(){const t=this.bytes.slice(0),r=t[0]&128;return r&&N4(t),parseInt(kn(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function N4(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class _K{constructor(t,r){this.toUtf8=t,this.fromUtf8=r}format(t){const r=[];for(const s of Object.keys(t)){const o=this.fromUtf8(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(t[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,t.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(t.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(t.value,3),o;case"string":const a=this.fromUtf8(t.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(Cf.fromNumber(t.value.valueOf()).bytes,1),f;case"uuid":if(!LK.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(RK(t.value.replace(/\-/g,"")),1),u}}parse(t){const r={};let n=0;for(;ne[po]||(e[po]={}),ai=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},ec=e=>new TextEncoder().encode(e),Sf=e=>typeof e=="string"?ec(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Nu=e=>new TextDecoder("utf-8").decode(e),jK="X-Amz-Algorithm",zK="X-Amz-Credential",wk="X-Amz-Date",UK="X-Amz-SignedHeaders",VK="X-Amz-Expires",Ek="X-Amz-Signature",Ck="X-Amz-Security-Token",Sk="authorization",Ak=wk.toLowerCase(),qK="date",HK=[Sk,Ak,qK],GK=Ek.toLowerCase(),Kp="x-amz-content-sha256",WK=Ck.toLowerCase(),KK={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},YK=/^proxy-/,JK=/^sec-/,$v="AWS4-HMAC-SHA256",QK="AWS4-HMAC-SHA256-PAYLOAD",XK="UNSIGNED-PAYLOAD",ZK=50,kk="aws4_request",eY=60*60*24*7,bd={},Ov=[],Dv=(e,t,r)=>`${e}/${t}/${r}/${kk}`,tY=async(e,t,r,n,i)=>{const s=await D4(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${kn(s)}:${t.sessionToken}`;if(o in bd)return bd[o];for(Ov.push(o);Ov.length>ZK;)delete bd[Ov.shift()];let a=`AWS4${t.secretAccessKey}`;for(const l of[r,n,i,kk])a=await D4(e,a,l);return bd[o]=a},D4=(e,t,r)=>{const n=new e(t);return n.update(Sf(r)),n.digest()},B4=({headers:e},t,r)=>{const n={};for(const i of Object.keys(e).sort()){if(e[i]==null)continue;const s=i.toLowerCase();(s in KK||t!=null&&t.has(s)||YK.test(s)||JK.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n},Ho=e=>encodeURIComponent(e).replace(/[!'()*]/g,rY),rY=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,nY=({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e).sort()){if(n.toLowerCase()===GK)continue;t.push(n);const i=e[n];typeof i=="string"?r[n]=`${Ho(n)}=${Ho(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Ho(n)}=${Ho(o)}`]),[]).sort().join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")},iY=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",Bv=async({headers:e,body:t},r)=>{for(const n of Object.keys(e))if(n.toLowerCase()===Kp)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||iY(t)){const n=new r;return n.update(Sf(t)),kn(await n.digest())}return XK},sY=(e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Pk=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?oY(t):void 0}),oY=e=>Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{}),aY=(e,t={})=>{var i;const{headers:r,query:n={}}=typeof e.clone=="function"?e.clone():Pk(e);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=t.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...e,headers:r,query:n}},L4=e=>{e=typeof e.clone=="function"?e.clone():Pk(e);for(const t of Object.keys(e.headers))HK.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},lY=e=>cY(e).toISOString().replace(/\.\d{3}Z$/,"Z"),cY=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class F4{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerMarshaller=new _K(Nu,ec),this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=ai(n),this.credentialProvider=ai(r)}async presign(t,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=wd(n);if(i>eY)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=Dv(v,u,c??this.service),y=aY(L4(t),{unhoistableHeaders:o});f.sessionToken&&(y.query[Ck]=f.sessionToken),y.query[jK]=$v,y.query[zK]=`${f.accessKeyId}/${m}`,y.query[wk]=d,y.query[VK]=i.toString(10);const w=B4(y,s,a);return y.query[UK]=j4(w),y.query[Ek]=await this.getSignature(d,m,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await Bv(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):t.message?this.signMessage(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=wd(n),f=Dv(l,a,o??this.service),u=await Bv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(t);const v=kn(await d.digest()),m=[QK,c,f,i,v,u].join(` +`);return this.signString(m,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(t,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerMarshaller.format(t.message.headers),payload:t.message.body},{signingDate:r,signingRegion:n,signingService:i,priorSignature:t.priorSignature}).then(o=>({message:t.message,signature:o}))}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=n??await this.regionProvider(),{shortDate:a}=wd(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(Sf(t)),kn(await l.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const l=s??await this.regionProvider(),c=L4(t),{longDate:f,shortDate:u}=wd(r),d=Dv(u,l,o??this.service);c.headers[Ak]=f,a.sessionToken&&(c.headers[WK]=a.sessionToken);const v=await Bv(c,this.sha256);!sY(Kp,c.headers)&&this.applyChecksum&&(c.headers[Kp]=v);const m=B4(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,m,v));return c.headers[Sk]=`${$v} Credential=${a.accessKeyId}/${d}, SignedHeaders=${j4(m)}, Signature=${y}`,c}createCanonicalRequest(t,r,n){const i=Object.keys(r).sort();return`${t.method} +${this.getCanonicalPath(t)} +${nY(t)} +${i.map(s=>`${s}:${r[s]}`).join(` +`)} + +${i.join(";")} +${n}`}async createStringToSign(t,r,n){const i=new this.sha256;i.update(Sf(n));const s=await i.digest();return`${$v} +${t} +${r} +${kn(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const r=[];for(const s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t!=null&&t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){const s=await this.createStringToSign(t,r,i),o=new this.sha256(await n);return o.update(Sf(s)),kn(await o.digest())}getSigningKey(t,r,n,i){return tY(this.sha256,t,n,r,i||this.service)}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const wd=e=>{const t=lY(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},j4=e=>Object.keys(e).sort().join(";"),fY=3e5,yx=e=>{const t=e.credentials?uY(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e;let s;return e.signer?s=ai(e.signer):e.regionInfoProvider?s=()=>ai(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;e.signingRegion=e.signingRegion||l||a,e.signingName=e.signingName||c||e.serviceId;const f={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r},u=e.signerConstructor||F4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await ai(e.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;e.signingRegion=e.signingRegion||a,e.signingName=e.signingName||l||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r},f=e.signerConstructor||F4;return new f(c)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}},uY=e=>typeof e=="function"?pk(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()t.expiration!==void 0):ai(e),Rk=e=>new Date(Date.now()+e),dY=(e,t)=>Math.abs(Rk(t).getTime()-e)>=3e5,z4=(e,t)=>{const r=Date.parse(e);return dY(r,t)?r-Date.now():t},hY=e=>(t,r)=>async function(n){var u,d,v,m;if(!$n.isInstance(n.request))return t(n);const i=(v=(d=(u=r.endpointV2)==null?void 0:u.properties)==null?void 0:d.authSchemes)==null?void 0:v[0],s=(i==null?void 0:i.name)==="sigv4a"?(m=i==null?void 0:i.signingRegionSet)==null?void 0:m.join(","):void 0,o=await e.signer(i);let a;const l={signingDate:Rk(e.systemClockOffset),signingRegion:s||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){if(a=await o.signWithCredentials(n.request,r.s3ExpressIdentity,l),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await o.sign(n.request,l);const c=await t({...n,request:a}).catch(y=>{const w=y.ServerTime??U4(y.$response);throw w&&(e.systemClockOffset=z4(w,e.systemClockOffset)),y}),f=U4(c.response);return f&&(e.systemClockOffset=z4(f,e.systemClockOffset)),c},U4=e=>{var t,r;return W0.isInstance(e)?((t=e.headers)==null?void 0:t.date)??((r=e.headers)==null?void 0:r.Date):void 0},vY={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},yY=e=>({applyToStack:t=>{t.addRelativeTo(hY(e),vY)}});function px(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}const pY=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),_k=e=>pY.test(e)||e.startsWith("[")&&e.endsWith("]"),mY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),mx=(e,t=!1)=>{if(!t)return mY.test(e);const r=e.split(".");for(const n of r)if(!mx(n))return!1;return!0},Yp={},cu="endpoints";function mo(e){return typeof e!="object"||e==null?e:"ref"in e?`$${mo(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(mo).join(", ")})`:JSON.stringify(e,null,2)}class vn extends Error{constructor(t){super(t),this.name="EndpointError"}}const gY=(e,t)=>e===t,xY=e=>{const t=e.split("."),r=[];for(const n of t){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new vn(`Path: '${e}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new vn(`Invalid array index: '${s}' in path: '${e}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},Tk=(e,t)=>xY(t).reduce((r,n)=>{if(typeof r!="object")throw new vn(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},e),bY=e=>e!=null,wY=e=>!e,Lv={[au.HTTP]:80,[au.HTTPS]:443},EY=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:d,port:v,protocol:m="",path:y="",query:w={}}=e,x=new URL(`${m}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,S])=>`${b}=${S}`).join("&"),x}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=t;if(a)return null;const l=o.slice(0,-1);if(!Object.values(au).includes(l))return null;const c=_k(i),f=r.includes(`${n}:${Lv[l]}`)||typeof e=="string"&&e.includes(`${n}:${Lv[l]}`),u=`${n}${f?`:${Lv[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},CY=(e,t)=>e===t,SY=(e,t,r,n)=>t>=r||e.lengthencodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),kY={booleanEquals:gY,getAttr:Tk,isSet:bY,isValidHostLabel:mx,not:wY,parseURL:EY,stringEquals:CY,substring:SY,uriEncode:AY},Mk=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let i=0;for(;i({...t.endpointParams,...t.referenceRecord})[e],Jh=(e,t,r)=>{if(typeof e=="string")return Mk(e,r);if(e.fn)return Ik(e,r);if(e.ref)return PY(e,r);throw new vn(`'${t}': ${String(e)} is not a string, function or reference.`)},Ik=({fn:e,argv:t},r)=>{const n=t.map(s=>["boolean","number"].includes(typeof s)?s:Jh(s,"arg",r)),i=e.split(".");return i[0]in Yp&&i[1]!=null?Yp[i[0]][i[1]](...n):kY[e](...n)},RY=({assign:e,...t},r)=>{var i,s;if(e&&e in r.referenceRecord)throw new vn(`'${e}' is already defined in Reference Record.`);const n=Ik(t,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,cu,`evaluateCondition: ${mo(t)} = ${mo(n)}`),{result:n===""?!0:!!n,...e!=null&&{toAssign:{name:e,value:n}}}},gx=(e=[],t)=>{var n,i;const r={};for(const s of e){const{result:o,toAssign:a}=RY(s,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=t.logger)==null?void 0:n.debug)==null||i.call(n,cu,`assign: ${a.name} := ${mo(a.value)}`))}return{result:!0,referenceRecord:r}},_Y=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=Jh(s,"Header value entry",t);if(typeof o!="string")throw new vn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),Nk=(e,t)=>{if(Array.isArray(e))return e.map(r=>Nk(r,t));switch(typeof e){case"string":return Mk(e,t);case"object":if(e===null)throw new vn(`Unexpected endpoint property: ${e}`);return $k(e,t);case"boolean":return e;default:throw new vn(`Unexpected endpoint property type: ${typeof e}`)}},$k=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[n]:Nk(i,t)}),{}),TY=(e,t)=>{const r=Jh(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new vn(`Endpoint URL must be a string, got ${typeof r}`)},MY=(e,t)=>{var f,u;const{conditions:r,endpoint:n}=e,{result:i,referenceRecord:s}=gx(r,t);if(!i)return;const o={...t,referenceRecord:{...t.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=t.logger)==null?void 0:f.debug)==null||u.call(f,cu,`Resolving endpoint from template: ${mo(n)}`),{...c!=null&&{headers:_Y(c,o)},...l!=null&&{properties:$k(l,o)},url:TY(a,o)}},IY=(e,t)=>{const{conditions:r,error:n}=e,{result:i,referenceRecord:s}=gx(r,t);if(i)throw new vn(Jh(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...s}}))},NY=(e,t)=>{const{conditions:r,rules:n}=e,{result:i,referenceRecord:s}=gx(r,t);if(i)return Ok(n,{...t,referenceRecord:{...t.referenceRecord,...s}})},Ok=(e,t)=>{for(const r of e)if(r.type==="endpoint"){const n=MY(r,t);if(n)return n}else if(r.type==="error")IY(r,t);else if(r.type==="tree"){const n=NY(r,t);if(n)return n}else throw new vn(`Unknown endpoint rule: ${r}`);throw new vn("Rules evaluation failed")},xx=(e,t)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=t,{parameters:i,rules:s}=e;(f=(c=t.logger)==null?void 0:c.debug)==null||f.call(c,`${cu} Initial EndpointParams: ${mo(r)}`);const o=Object.entries(i).filter(([,m])=>m.default!=null).map(([m,y])=>[m,y.default]);if(o.length>0)for(const[m,y]of o)r[m]=r[m]??y;const a=Object.entries(i).filter(([,m])=>m.required).map(([m])=>m);for(const m of a)if(r[m]==null)throw new vn(`Missing required parameter: '${m}'`);const l=Ok(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=t.endpointParams)!=null&&u.Endpoint)try{const m=new URL(t.endpointParams.Endpoint),{protocol:y,port:w}=m;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=t.logger)==null?void 0:d.debug)==null||v.call(d,`${cu} Resolved endpoint: ${mo(l)}`),l},Dk=(e,t=!1)=>{if(t){for(const r of e.split("."))if(!Dk(r))return!1;return!0}return!(!mx(e)||e.length<3||e.length>63||e!==e.toLowerCase()||_k(e))},$Y=e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,s,o,...a]=t;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},OY=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],DY="1.1",BY={partitions:OY,version:DY};let LY=BY;const FY=e=>{const{partitions:t}=LY;for(const n of t){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===e)return{...s,...a}}for(const n of t){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(e))return{...s}}const r=t.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},jY={isVirtualHostableS3Bucket:Dk,parseArn:$Y,partition:FY};Yp.aws=jY;const V4="user-agent",Fv="x-amz-user-agent",q4=" ",jv="/",zY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,UY=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,H4="-",VY=e=>(t,r)=>async n=>{var u,d;const{request:i}=n;if(!$n.isInstance(i))return t(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(zv))||[],a=(await e.defaultUserAgentProvider()).map(zv),l=((d=e==null?void 0:e.customUserAgent)==null?void 0:d.map(zv))||[],c=[].concat([...a,...o,...l]).join(q4),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(q4);return e.runtime!=="browser"?(f&&(s[Fv]=s[Fv]?`${s[V4]} ${f}`:f),s[V4]=c):s[Fv]=c,t({...n,request:i})},zv=e=>{var o;const t=e[0].split(jv).map(a=>a.replace(zY,H4)).join(jv),r=(o=e[1])==null?void 0:o.replace(UY,H4),n=t.indexOf(jv),i=t.substring(0,n);let s=t.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},qY={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},bx=e=>({applyToStack:t=>{t.add(VY(e),qY)}});var G4;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(G4||(G4={}));const wx=!1,Ex=!1,Bk=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),W4=e=>Bk(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,Cx=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return W4(t);const n=await t();return W4(n)},useFipsEndpoint:async()=>{const n=typeof t=="string"?t:await t();return Bk(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}},K4="content-length";function HY(e){return t=>async r=>{const n=r.request;if($n.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(K4)===-1)try{const o=e(i);n.headers={...n.headers,[K4]:String(o)}}catch{}}return t({...r,request:n})}}const GY={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Sx=e=>({applyToStack:t=>{t.add(HY(e.bodyLengthChecker),GY)}}),WY=async e=>{const t=(e==null?void 0:e.Bucket)||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),XY(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!QY(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},KY=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,YY=/(\d+\.){3}\d+/,JY=/\.\./,QY=e=>KY.test(e)&&!YY.test(e)&&!JY.test(e),XY=e=>{const[t,r,n,i,s,o]=e.split(":"),a=t==="arn"&&e.split(":").length>=6,l=[t,r,n,s,o].filter(Boolean).length===5;if(a&&!l)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return t==="arn"&&!!r&&!!n&&!!s&&!!o},ZY=(e,t,r)=>{const n=async()=>{const i=r[e]??r[t];return typeof i=="function"?i():i};return e==="endpoint"||t==="endpoint"?async()=>{const i=await n();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:n},eJ=async e=>{};function tJ(e){const t={};if(e=e.replace(/^\?/,""),e)for(const r of e.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in t?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i}return t}const Bl=e=>{if(typeof e=="string")return Bl(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:s}=e;let o;return s&&(o=tJ(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},Lk=e=>typeof e=="object"?"url"in e?Bl(e.url):e:Bl(e),rJ=async(e,t,r,n)=>{if(!r.endpoint){const o=await eJ(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(Lk(o)))}const i=await nJ(e,t,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},nJ=async(e,t,r)=>{var s;const n={},i=((s=t==null?void 0:t.getEndpointParameterInstructions)==null?void 0:s.call(t))||{};for(const[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=e[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await ZY(a.name,o,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await WY(n),n},iJ=({config:e,instructions:t})=>(r,n)=>async i=>{var a,l,c;const s=await rJ(i.input,{getEndpointParameterInstructions(){return t}},{...e},n);n.endpointV2=s,n.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;const o=(l=n.authSchemes)==null?void 0:l[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const f=FK(n),u=(c=f==null?void 0:f.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})},sJ=(e,t)=>(r,n)=>async i=>{const{response:s}=await r(i);try{const o=await t(s,e);return{response:s,output:o}}catch(o){if(Object.defineProperty(o,"$response",{value:s}),!("$metadata"in o)){const a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";o.message+=` + `+a}throw o}},oJ=(e,t)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await t(i.input,{...e,endpoint:s});return r({...i,request:o})},aJ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Fk={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function tc(e,t,r){return{applyToStack:n=>{n.add(sJ(e,r),aJ),n.add(oJ(e,t),Fk)}}}const lJ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Fk.name},rc=(e,t)=>({applyToStack:r=>{r.addRelativeTo(iJ({config:e,instructions:t}),lJ)}}),Ax=e=>{const t=e.tls??!0,{endpoint:r}=e,n=r!=null?async()=>Lk(await ai(r)()):void 0;return{...e,endpoint:n,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:ai(e.useDualstackEndpoint??!1),useFipsEndpoint:ai(e.useFipsEndpoint??!1)}};var Ll;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Ll||(Ll={}));const Fl=3,kx=Ll.STANDARD,cJ=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],fJ=["TimeoutError","RequestTimeout","RequestTimeoutException"],uJ=[500,502,503,504],dJ=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],jk=e=>{var t,r;return((t=e.$metadata)==null?void 0:t.httpStatusCode)===429||cJ.includes(e.name)||((r=e.$retryable)==null?void 0:r.throttling)==!0},zk=e=>{var t;return fJ.includes(e.name)||dJ.includes((e==null?void 0:e.code)||"")||uJ.includes(((t=e.$metadata)==null?void 0:t.httpStatusCode)||0)},hJ=e=>{var t;if(((t=e.$metadata)==null?void 0:t.httpStatusCode)!==void 0){const r=e.$metadata.httpStatusCode;return 500<=r&&r<=599&&!zk(e)}return!1};class vJ{constructor(t){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(t==null?void 0:t.beta)??.7,this.minCapacity=(t==null?void 0:t.minCapacity)??1,this.minFillRate=(t==null?void 0:t.minFillRate)??.5,this.scaleConstant=(t==null?void 0:t.scaleConstant)??.4,this.smooth=(t==null?void 0:t.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),jk(t)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}}const Jp=100,Uk=20*1e3,yJ=500,Y4=500,pJ=5,mJ=10,gJ=1,xJ="amz-sdk-invocation-id",bJ="amz-sdk-request",wJ=()=>{let e=Jp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(Uk,Math.random()*2**n*e)),setDelayBase:n=>{e=n}}},J4=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(Uk,e),getRetryCost:()=>r});class Vk{constructor(t){this.maxAttempts=t,this.mode=Ll.STANDARD,this.capacity=Y4,this.retryBackoffStrategy=wJ(),this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return J4({retryDelay:Jp,retryCount:0})}async refreshRetryTokenForRetry(t,r){const n=await this.getMaxAttempts();if(this.shouldRetry(t,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?yJ:Jp);const s=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,J4({retryDelay:o,retryCount:t.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(Y4,this.capacity+(t.getRetryCost()??gJ))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Fl}`),Fl}}shouldRetry(t,r,n){return t.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(t){return t==="TRANSIENT"?mJ:pJ}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class EJ{constructor(t,r){this.maxAttemptsProvider=t,this.mode=Ll.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new vJ,this.standardRetryStrategy=new Vk(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(t,r)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}var Ed,CJ=new Uint8Array(16);function SJ(){if(!Ed&&(Ed=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ed))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ed(CJ)}const AJ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function kJ(e){return typeof e=="string"&&AJ.test(e)}var pr=[];for(var Uv=0;Uv<256;++Uv)pr.push((Uv+256).toString(16).substr(1));function PJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(pr[e[t+0]]+pr[e[t+1]]+pr[e[t+2]]+pr[e[t+3]]+"-"+pr[e[t+4]]+pr[e[t+5]]+"-"+pr[e[t+6]]+pr[e[t+7]]+"-"+pr[e[t+8]]+pr[e[t+9]]+"-"+pr[e[t+10]]+pr[e[t+11]]+pr[e[t+12]]+pr[e[t+13]]+pr[e[t+14]]+pr[e[t+15]]).toLowerCase();if(!kJ(r))throw TypeError("Stringified UUID is invalid");return r}function RJ(e,t,r){e=e||{};var n=e.random||(e.rng||SJ)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return PJ(n)}const _J=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),Px=e=>{const{retryStrategy:t}=e,r=ai(e.maxAttempts??Fl);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await ai(e.retryMode)()===Ll.ADAPTIVE?new EJ(r):new Vk(r))}},TJ=e=>(t,r)=>async n=>{let i=await e.retryStrategy();const s=await e.maxAttempts();if(MJ(i)){i=i;let o=await i.acquireInitialRetryToken(r.partition_id),a=new Error,l=0,c=0;const{request:f}=n;for($n.isInstance(f)&&(f.headers[xJ]=RJ());;)try{$n.isInstance(f)&&(f.headers[bJ]=`attempt=${l+1}; max=${s}`);const{response:u,output:d}=await t(n);return i.recordSuccess(o),d.$metadata.attempts=l+1,d.$metadata.totalRetryDelay=c,{response:u,output:d}}catch(u){const d=IJ(u);a=_J(u);try{o=await i.refreshRetryTokenForRetry(o,d)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=l+1,a.$metadata.totalRetryDelay=c,a}l=o.getRetryCount();const v=o.getRetryDelay();c+=v,await new Promise(m=>setTimeout(m,v))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n)},MJ=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",IJ=e=>{const t={errorType:NJ(e)},r=OJ(e.$response);return r&&(t.retryAfterHint=r),t},NJ=e=>jk(e)?"THROTTLING":zk(e)?"TRANSIENT":hJ(e)?"SERVER_ERROR":"CLIENT_ERROR",$J={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Rx=e=>({applyToStack:t=>{t.add(TJ(e),$J)}}),OJ=e=>{if(!W0.isInstance(e))return;const t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;const r=e.headers[t],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)};class _x{trace(){}debug(){}info(){}warn(){}error(){}}const Io=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const n of t)r.push(n);return r},$s=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,K0=()=>{let e=[],t=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>Q4[v.step]-Q4[d.step]||X4[v.priority||"normal"]-X4[d.priority||"normal"]),s=u=>{let d=!1;const v=m=>{const y=Io(m.name,m.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return e=e.filter(v),t=t.filter(v),d},o=u=>{let d=!1;const v=m=>{if(m.middleware===u){d=!0;for(const y of Io(m.name,m.aliases))n.delete(y);return!1}return!0};return e=e.filter(v),t=t.filter(v),d},a=u=>{var d;return e.forEach(v=>{u.add(v.middleware,{...v})}),t.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],m={};return e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Io(x.name,x.aliases))m[b]=x;d.push(x)}),t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Io(x.name,x.aliases))m[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=m[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${$s(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:m,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=Io(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${$s(v,y)}'`);for(const b of x){const S=e.findIndex(_=>{var O;return _.name===b||((O=_.aliases)==null?void 0:O.some($=>$===b))});if(S===-1)continue;const A=e[S];if(A.step!==w.step||w.priority!==A.priority)throw new Error(`"${$s(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${$s(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);e.splice(S,1)}}for(const b of x)n.add(b)}e.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:m,aliases:y}=d,w={middleware:u,...d},x=Io(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${$s(v,y)}'`);for(const b of x){const S=t.findIndex(_=>{var O;return _.name===b||((O=_.aliases)==null?void 0:O.some($=>$===b))});if(S===-1)continue;const A=t[S];if(A.toMiddleware!==w.toMiddleware||A.relation!==w.relation)throw new Error(`"${$s(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${$s(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);t.splice(S,1)}}for(const b of x)n.add(b)}t.push(w)},clone:()=>a(K0()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=m=>{const{tags:y,name:w,aliases:x}=m;if(y&&y.includes(u)){const b=Io(w,x);for(const S of b)n.delete(S);return d=!0,!1}return!0};return e=e.filter(v),t=t.filter(v),d},concat:u=>{var v;const d=a(K0());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return $s(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(m=>m.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},Q4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},X4={high:3,normal:2,low:1};class Tx{constructor(t){this.middlewareStack=K0(),this.config=t}send(t,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(t).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const go={},nc=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const n=String.fromCharCode(e+t);go[n]=e,nc[e]=n}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const n=String.fromCharCode(e+t),i=e+26;go[n]=i,nc[i]=n}for(let e=0;e<10;e++){go[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;go[t]=r,nc[r]=t}go["+"]=62;nc[62]="+";go["/"]=63;nc[63]="/";const gl=6,Af=8,DJ=63,$u=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let i=0;i>=gl;const a=i/4*3;s>>=o%Af;const l=Math.floor(o/Af);for(let c=0;c>f)}}return new Uint8Array(r)};function Qh(e){let t="";for(let r=0;r>a]}t+="==".slice(0,4-s)}return t}function BJ(e,t="utf-8"){return t==="base64"?Qh(e):Nu(e)}function LJ(e,t){return t==="base64"?Zo.mutate($u(e)):Zo.mutate(ec(e))}class Zo extends Uint8Array{static fromString(t,r="utf-8"){switch(typeof t){case"string":return LJ(t,r);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,Zo.prototype),t}transformToString(t="utf-8"){return BJ(this,t)}}function FJ(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Ho(r),Array.isArray(n))for(let i=0,s=n.length;i{e&&setTimeout(()=>{const n=new Error(`Request did not complete within ${e} ms`);n.name="TimeoutError",r(n)},e)})}const zJ={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class Mx{constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(t,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=t.path;const o=FJ(t.query||{});o&&(s+=`?${o}`),t.fragment&&(s+=`#${t.fragment}`);let a="";if(t.username!=null||t.password!=null){const y=t.username??"",w=t.password??"";a=`${y}:${w}@`}const{port:l,method:c}=t,f=`${t.protocol}//${a}${t.hostname}${l?`:${l}`:""}${s}`,d={body:c==="GET"||c==="HEAD"?void 0:t.body,headers:new Headers(t.headers),method:c};typeof AbortController<"u"&&(d.signal=r),zJ.supported&&(d.keepalive=i);const v=new Request(f,d),m=[fetch(v).then(y=>{const w=y.headers,x={};for(const S of w.entries())x[S[0]]=S[1];return y.body!=null?{response:new W0({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(S=>({response:new W0({headers:x,reason:y.statusText,statusCode:y.status,body:S})}))}),jJ(n)];return r&&m.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(m)}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[t]=r,n))}httpHandlerConfigs(){return this.config??{}}}const Ix=e=>typeof Blob=="function"&&e instanceof Blob?UJ(e):VJ(e);async function UJ(e){const t=await qJ(e),r=$u(t);return new Uint8Array(r)}async function VJ(e){let t=new Uint8Array(0);const r=e.getReader();let n=!1;for(;!n;){const{done:i,value:s}=await r.read();if(s){const o=t;t=new Uint8Array(o.length+s.length),t.set(o),t.set(s,o.length)}n=i}return t}function qJ(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;t(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}const Nx=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Zo.mutate(e);if(!e)return Zo.mutate(new Uint8Array);const r=t.streamCollector(e);return Zo.mutate(await r)};class ic{constructor(){this.middlewareStack=K0()}}const lr="***SensitiveInformation***",Qp=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Hk.warn(qk(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},HJ=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},kf=e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Hk.warn(qk(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},GJ=e=>Qp(typeof e=="string"?KJ(e):e),WJ=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,KJ=e=>{const t=e.match(WJ);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},qk=e=>String(new TypeError(e).stack||e).split(` +`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(` +`),Hk={warn:console.warn},YJ=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=GJ(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};class Ou extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Ou.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}const _e=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(e[n]==null||e[n]==="")&&(e[n]=i)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},JJ=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const i=QJ(e),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(t==null?void 0:t.code)||(t==null?void 0:t.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw _e(o,t)},$x=e=>({output:t,parsedBody:r,errorCode:n})=>{JJ({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},QJ=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),Ox=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},XJ=e=>{const t=[];for(const r in G0){const n=G0[r];e[n]!==void 0&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},ZJ=e=>{const t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},eQ=e=>{let t=e.retryStrategy;return{setRetryStrategy(r){t=r},retryStrategy(){return t}}},tQ=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},Dx=e=>({...XJ(e),...eQ(e)}),Bx=e=>({...ZJ(e),...tQ(e)}),Xp=function(){const e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};Xp.prototype=Object.create(String.prototype,{constructor:{value:Xp,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Xp,String);const Du=(e,t)=>{const r={};for(const n in t)rQ(r,e,t,n);return r},rQ=(e,t,r,n)=>{if(t!==null){let o=r[n];typeof o=="function"&&(o=[,o]);const[a=nQ,l=iQ,c=n]=o;(typeof a=="function"&&a(t[c])||typeof a!="function"&&a)&&(e[n]=l(t[c]));return}let[i,s]=r[n];if(typeof s=="function"){let o;const a=i===void 0&&(o=s())!=null,l=typeof i=="function"&&!!i(void 0)||typeof i!="function"&&!!i;a?e[n]=o:l&&(e[n]=s())}else{const o=i===void 0&&s!=null,a=typeof i=="function"&&!!i(s)||typeof i!="function"&&!!i;(o||a)&&(e[n]=s)}},nQ=e=>e!=null,iQ=e=>e,we=e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(t=>t!=null);if(typeof e=="object"){const t={};for(const r of Object.keys(e))e[r]!=null&&(t[r]=we(e[r]));return t}return e},sQ=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),oQ="@aws-sdk/client-cognito-identity",aQ="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",lQ="3.462.0",cQ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},fQ="./dist-cjs/index.js",uQ="./dist-types/index.d.ts",dQ="./dist-es/index.js",hQ=!1,vQ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},yQ={"@aws-sdk/client-iam":"3.462.0","@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},pQ={node:">=14.0.0"},mQ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},gQ=["dist-*/**"],xQ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},bQ="Apache-2.0",wQ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},EQ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",CQ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},SQ={name:oQ,description:aQ,version:lQ,scripts:cQ,main:fQ,types:uQ,module:dQ,sideEffects:hQ,dependencies:vQ,devDependencies:yQ,engines:pQ,typesVersions:mQ,files:gQ,author:xQ,license:bQ,browser:wQ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:EQ,repository:CQ};var Xh={},Oc={},Dc={},Bc={},Z4;function AQ(){if(Z4)return Bc;Z4=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.isEmptyData=void 0;function e(t){return typeof t=="string"?t.length===0:t.byteLength===0}return Bc.isEmptyData=e,Bc}var Vv={},eE;function Gk(){return eE||(eE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_DATA_SHA_256=e.SHA_256_HMAC_ALGO=e.SHA_256_HASH=void 0,e.SHA_256_HASH={name:"SHA-256"},e.SHA_256_HMAC_ALGO={name:"HMAC",hash:e.SHA_256_HASH},e.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(Vv)),Vv}const kQ={};function PQ(){return typeof window<"u"?window:typeof self<"u"?self:kQ}const RQ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:PQ},Symbol.toStringTag,{value:"Module"})),Lx=Rt(RQ);var tE;function Wk(){if(tE)return Dc;tE=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.Sha256=void 0;var e=AQ(),t=Gk(),r=gk,n=Lx,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,e.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(t.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();Dc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),t.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return Dc}var Lc={},rE;function Kk(){if(rE)return Lc;rE=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.Sha256=void 0;var e=Iu(),t=Gk(),r=Lx,n=function(){function i(s){this.toHash=new Uint8Array(0),this.secret=s,this.reset()}return i.prototype.update=function(s){if(!(0,e.isEmptyData)(s)){var o=(0,e.convertToBuffer)(s),a=new Uint8Array(this.toHash.byteLength+o.byteLength);a.set(this.toHash,0),a.set(o,this.toHash.byteLength),this.toHash=a}},i.prototype.digest=function(){var s=this;return this.key?this.key.then(function(o){return(0,r.locateWindow)().crypto.subtle.sign(t.SHA_256_HMAC_ALGO,o,s.toHash).then(function(a){return new Uint8Array(a)})}):(0,e.isEmptyData)(this.toHash)?Promise.resolve(t.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,r.locateWindow)().crypto.subtle.digest(t.SHA_256_HASH,s.toHash)}).then(function(o){return Promise.resolve(new Uint8Array(o))})},i.prototype.reset=function(){var s=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(o,a){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,e.convertToBuffer)(s.secret),t.SHA_256_HMAC_ALGO,!1,["sign"]).then(o,a)}),this.key.catch(function(){}))},i}();return Lc.Sha256=n,Lc}var qv={},Fc={},nn={},nE;function Yk(){return nE||(nE=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.MAX_HASHABLE_LENGTH=nn.INIT=nn.KEY=nn.DIGEST_LENGTH=nn.BLOCK_SIZE=void 0,nn.BLOCK_SIZE=64,nn.DIGEST_LENGTH=32,nn.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nn.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],nn.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),nn}var jc={},iE;function _Q(){if(iE)return jc;iE=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.RawSha256=void 0;var e=Yk(),t=function(){function r(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,s=n.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(w+this.temp[m-7]|0)+(x+this.temp[m-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(e.KEY[m]+this.temp[m]|0)|0)|0,S=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+S|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return jc.RawSha256=t,jc}var sE;function TQ(){if(sE)return Fc;sE=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.Sha256=void 0;var e=_o,t=Yk(),r=_Q(),n=Iu(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(t.BLOCK_SIZE);l.set(a);for(var c=0;ct.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(t.BLOCK_SIZE);return c.set(a),c}return Fc}var oE;function MQ(){return oE||(oE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_o;t.__exportStar(TQ(),e)}(qv)),qv}var Hv={},Wn={},aE;function IQ(){if(aE)return Wn;aE=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.supportsZeroByteGCM=Wn.supportsSubtleCrypto=Wn.supportsSecureRandom=Wn.supportsWebCrypto=void 0;var e=_o,t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}Wn.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}Wn.supportsSecureRandom=n;function i(o){return o&&t.every(function(a){return typeof o[a]=="function"})}Wn.supportsSubtleCrypto=i;function s(o){return e.__awaiter(this,void 0,void 0,function(){var a,l;return e.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return Wn.supportsZeroByteGCM=s,Wn}var lE;function NQ(){return lE||(lE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_o;t.__exportStar(IQ(),e)}(Hv)),Hv}var Gv={},Wv={},cE;function $Q(){return cE||(cE=1,Object.defineProperty(Wv,"__esModule",{value:!0})),Wv}var Kv={},fE;function OQ(){return fE||(fE=1,Object.defineProperty(Kv,"__esModule",{value:!0})),Kv}var Yv={},uE;function DQ(){return uE||(uE=1,Object.defineProperty(Yv,"__esModule",{value:!0})),Yv}var Jv={},dE;function BQ(){return dE||(dE=1,Object.defineProperty(Jv,"__esModule",{value:!0})),Jv}var zc={},hE;function LQ(){if(hE)return zc;hE=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.isMsWindow=void 0;var e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function t(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(t(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return e.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return zc.isMsWindow=r,zc}var vE;function FQ(){return vE||(vE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_o;t.__exportStar($Q(),e),t.__exportStar(OQ(),e),t.__exportStar(DQ(),e),t.__exportStar(BQ(),e),t.__exportStar(LQ(),e)}(Gv)),Gv}var yE;function jQ(){if(yE)return Oc;yE=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.Sha256=void 0;var e=Wk(),t=Kk(),r=MQ(),n=NQ(),i=FQ(),s=Lx,o=Iu(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new t.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new e.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return Oc.Sha256=a,Oc}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WebCryptoSha256=e.Ie11Sha256=void 0;var t=_o;t.__exportStar(jQ(),e);var r=Wk();Object.defineProperty(e,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=Kk();Object.defineProperty(e,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(Xh);const zQ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Jk={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Wt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Dr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Bs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class re{static getFirstMatch(t,r){const n=r.match(t);return n&&n.length>0&&n[1]||""}static getSecondMatch(t,r){const n=r.match(t);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(t,r,n){if(t.test(r))return n}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,r,n=!1){const i=re.getVersionPrecision(t),s=re.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=re.map([t,r],c=>{const f=o-re.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return re.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return t}static getBrowserAlias(t){return zQ[t]}static getBrowserTypeByAlias(t){return Jk[t]||""}}const gt=/version\/(\d+(\.?_?\d+)+)/i,UQ=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=re.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},r=re.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},r=re.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},r=re.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},r=re.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},r=re.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},r=re.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},r=re.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=re.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},r=re.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},r=re.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},r=re.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},r=re.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},r=re.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},r=re.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},r=re.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},r=re.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},r=re.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},r=re.getFirstMatch(gt,e)||re.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},r=re.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},r=re.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},r=re.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},r=re.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},r=re.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},r=re.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},r=re.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},r=re.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},r=re.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t={name:"Android Browser"},r=re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=re.getFirstMatch(gt,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?r:t;return{name:re.getFirstMatch(i,e),version:re.getSecondMatch(i,e)}}}],VQ=[{test:[/Roku\/DVP/],describe(e){const t=re.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Dr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=re.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Dr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=re.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=re.getWindowsVersionName(t);return{name:Dr.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Dr.iOS},r=re.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){const t=re.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=re.getMacOSVersionName(t),n={name:Dr.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=re.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Dr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t=re.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=re.getAndroidVersionName(t),n={name:Dr.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=re.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Dr.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=re.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||re.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||re.getFirstMatch(/\bbb(\d+)/i,e);return{name:Dr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=re.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Dr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=re.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Dr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Dr.Linux}}},{test:[/CrOS/],describe(){return{name:Dr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=re.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Dr.PlayStation4,version:t}}}],qQ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=re.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:Wt.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Wt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Wt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Wt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Wt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Wt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Wt.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){const t=re.getFirstMatch(/(ipod|iphone)/i,e);return{type:Wt.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Wt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Wt.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Wt.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Wt.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Wt.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Wt.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Wt.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Wt.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Wt.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Wt.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Wt.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Wt.tv}}}],HQ=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Bs.Blink};const r=re.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Bs.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const t={name:Bs.Trident},r=re.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Bs.Presto},r=re.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){const t={name:Bs.Gecko},r=re.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Bs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Bs.WebKit},r=re.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];class pE{constructor(t,r=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=re.find(UQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=re.find(VQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:r}=this.getOS();return t?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:r}=this.getPlatform();return t?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const t=re.find(qQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=re.find(HQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return re.assign({},this.parsedResult)}satisfies(t){const r={};let n=0;const i={};let s=0;if(Object.keys(t).forEach(a=>{const l=t[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=re.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=re.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=re.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,r=!1){const n=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const s=re.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(t){let r=[0],n=t,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return t[0]===">"||t[0]==="<"?(n=t.substr(1),t[1]==="="?(i=!0,n=t.substr(2)):r=[],t[0]===">"?r.push(1):r.push(-1)):t[0]==="="?n=t.substr(1):t[0]==="~"&&(i=!0,n=t.substr(1)),r.indexOf(re.compareVersions(s,n,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,r=!1){return this.isBrowser(t,r)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(r=>this.is(r))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class Qk{static getParser(t,r=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new pE(t,r)}static parse(t){return new pE(t).getResult()}static get BROWSER_MAP(){return Jk}static get ENGINE_MAP(){return Bs}static get OS_MAP(){return Dr}static get PLATFORMS_MAP(){return Wt}}const Fx=({serviceId:e,clientVersion:t})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?Qk.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n},jx=e=>()=>Promise.reject(e),zx=e=>{if(typeof e=="string"){let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},Xk="required",_i="fn",Ti="argv",sc="ref",mE=!0,gE="isSet",fu="booleanEquals",Ta="error",Uc="endpoint",Zi="tree",Ux="PartitionResult",xE={[Xk]:!1,type:"String"},bE={[Xk]:!0,default:!1,type:"Boolean"},wE={[sc]:"Endpoint"},Zk={[_i]:fu,[Ti]:[{[sc]:"UseFIPS"},!0]},eP={[_i]:fu,[Ti]:[{[sc]:"UseDualStack"},!0]},gi={},EE={[_i]:"getAttr",[Ti]:[{[sc]:Ux},"supportsFIPS"]},CE={[_i]:fu,[Ti]:[!0,{[_i]:"getAttr",[Ti]:[{[sc]:Ux},"supportsDualStack"]}]},SE=[Zk],AE=[eP],kE=[{[sc]:"Region"}],GQ={version:"1.0",parameters:{Region:xE,UseDualStack:bE,UseFIPS:bE,Endpoint:xE},rules:[{conditions:[{[_i]:gE,[Ti]:[wE]}],rules:[{conditions:SE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ta},{conditions:AE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ta},{endpoint:{url:wE,properties:gi,headers:gi},type:Uc}],type:Zi},{conditions:[{[_i]:gE,[Ti]:kE}],rules:[{conditions:[{[_i]:"aws.partition",[Ti]:kE,assign:Ux}],rules:[{conditions:[Zk,eP],rules:[{conditions:[{[_i]:fu,[Ti]:[mE,EE]},CE],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:gi,headers:gi},type:Uc}],type:Zi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ta}],type:Zi},{conditions:SE,rules:[{conditions:[{[_i]:fu,[Ti]:[EE,mE]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:gi,headers:gi},type:Uc}],type:Zi},{error:"FIPS is enabled but this partition does not support FIPS",type:Ta}],type:Zi},{conditions:AE,rules:[{conditions:[CE],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:gi,headers:gi},type:Uc}],type:Zi},{error:"DualStack is enabled but this partition does not support DualStack",type:Ta}],type:Zi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:gi,headers:gi},type:Uc}],type:Zi}],type:Zi},{error:"Invalid Configuration: Missing Region",type:Ta}]},WQ=GQ,KQ=(e,t={})=>xx(WQ,{endpointParams:e,logger:t.logger}),YQ=e=>({apiVersion:"2014-06-30",base64Decoder:(e==null?void 0:e.base64Decoder)??$u,base64Encoder:(e==null?void 0:e.base64Encoder)??Qh,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??KQ,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new _x,serviceId:(e==null?void 0:e.serviceId)??"Cognito Identity",urlParser:(e==null?void 0:e.urlParser)??Bl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??ec,utf8Encoder:(e==null?void 0:e.utf8Encoder)??Nu}),JQ=["in-region","cross-region","mobile","standard","legacy"],Vx=({defaultsMode:e}={})=>pk(async()=>{const t=typeof e=="function"?await e():e;switch(t==null?void 0:t.toLowerCase()){case"auto":return Promise.resolve(QQ()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t==null?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${JQ.join(", ")}, got ${t}`)}}),QQ=()=>{var r,n;const e=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?Qk.parse(window.navigator.userAgent):void 0,t=(n=e==null?void 0:e.platform)==null?void 0:n.type;return t==="tablet"||t==="mobile"},XQ=e=>{const t=Vx(e),r=()=>t().then(Ox),n=YQ(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??zx,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??Fx({serviceId:n.serviceId,clientVersion:SQ.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??Fl,region:(e==null?void 0:e.region)??jx("Region is missing"),requestHandler:(e==null?void 0:e.requestHandler)??new Mx(r),retryMode:(e==null?void 0:e.retryMode)??(async()=>(await r()).retryMode||kx),sha256:(e==null?void 0:e.sha256)??Xh.Sha256,streamCollector:(e==null?void 0:e.streamCollector)??Ix,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(()=>Promise.resolve(wx)),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(()=>Promise.resolve(Ex))}},qx=e=>{let t=async()=>{if(e.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=e.region;return typeof r=="string"?r:r()};return{setRegion(r){t=r},region(){return t}}},Hx=e=>({region:e.region()}),Qv=e=>e,ZQ=(e,t)=>{const r={...Qv(qx(e)),...Qv(Dx(e)),...Qv(cx(e))};return t.forEach(n=>n.configure(r)),{...e,...Hx(r),...Bx(r),...fx(r)}};class eX extends Tx{constructor(...[t]){const r=XQ(t||{}),n=sQ(r),i=Cx(n),s=Ax(i),o=Px(s),a=o,l=yx(a),c=px(l),f=ZQ(c,(t==null?void 0:t.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Rx(this.config)),this.middlewareStack.use(Sx(this.config)),this.middlewareStack.use(ux(this.config)),this.middlewareStack.use(dx(this.config)),this.middlewareStack.use(hx(this.config)),this.middlewareStack.use(bx(this.config))}destroy(){super.destroy()}}class Bn extends Ou{constructor(t){super(t),Object.setPrototypeOf(this,Bn.prototype)}}let tX=class tP extends Bn{constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,tP.prototype)}},rX=class rP extends Bn{constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,rP.prototype)}};class Gx extends Bn{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}let nX=class nP extends Bn{constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,nP.prototype)}};class Wx extends Bn{constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}let iX=class iP extends Bn{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,iP.prototype)}},sX=class sP extends Bn{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,sP.prototype)}};class Kx extends Bn{constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}class Yx extends Bn{constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Yx.prototype)}}const oX=async(e,t)=>{const r=yP("GetCredentialsForIdentity");let n;return n=JSON.stringify(we(e)),vP(t,r,"/",void 0,n)},aX=async(e,t)=>{const r=yP("GetId");let n;return n=JSON.stringify(we(e)),vP(t,r,"/",void 0,n)},lX=async(e,t)=>{if(e.statusCode>=300)return cX(e,t);const r=await Jx(e.body,t);let n={};return n=yX(r),{$metadata:ui(e),...n}},cX=async(e,t)=>{const r={...e,body:await pP(e.body,t)},n=mP(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await oP(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await aP(r);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await dX(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await lP(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await cP(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await fP(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await uP(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await dP(r);default:const i=r.body;return hP({output:e,parsedBody:i,errorCode:n})}},fX=async(e,t)=>{if(e.statusCode>=300)return uX(e,t);const r=await Jx(e.body,t);let n={};return n=we(r),{$metadata:ui(e),...n}},uX=async(e,t)=>{const r={...e,body:await pP(e.body,t)},n=mP(e,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await oP(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await aP(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await lP(r);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await hX(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await cP(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await fP(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await uP(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await dP(r);default:const i=r.body;return hP({output:e,parsedBody:i,errorCode:n})}},oP=async(e,t)=>{const r=e.body,n=we(r),i=new Kx({$metadata:ui(e),...n});return _e(i,r)},aP=async(e,t)=>{const r=e.body,n=we(r),i=new tX({$metadata:ui(e),...n});return _e(i,r)},dX=async(e,t)=>{const r=e.body,n=we(r),i=new Yx({$metadata:ui(e),...n});return _e(i,r)},lP=async(e,t)=>{const r=e.body,n=we(r),i=new rX({$metadata:ui(e),...n});return _e(i,r)},hX=async(e,t)=>{const r=e.body,n=we(r),i=new Gx({$metadata:ui(e),...n});return _e(i,r)},cP=async(e,t)=>{const r=e.body,n=we(r),i=new nX({$metadata:ui(e),...n});return _e(i,r)},fP=async(e,t)=>{const r=e.body,n=we(r),i=new Wx({$metadata:ui(e),...n});return _e(i,r)},uP=async(e,t)=>{const r=e.body,n=we(r),i=new sX({$metadata:ui(e),...n});return _e(i,r)},dP=async(e,t)=>{const r=e.body,n=we(r),i=new iX({$metadata:ui(e),...n});return _e(i,r)},vX=(e,t)=>Du(e,{AccessKeyId:kf,Expiration:r=>HJ(YJ(Qp(r))),SecretKey:kf,SessionToken:kf}),yX=(e,t)=>Du(e,{Credentials:r=>vX(r),IdentityId:kf}),ui=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),pX=(e,t)=>Nx(e,t).then(r=>t.utf8Encoder(r)),hP=$x(Bn),vP=async(e,t,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await e.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new $n(c)};function yP(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}}const Jx=(e,t)=>pX(e,t).then(r=>r.length?JSON.parse(r):{}),pP=async(e,t)=>{const r=await Jx(e,t);return r.message=r.message??r.Message,r},mP=(e,t)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");if(i!==void 0)return n(e.headers[i]);if(t.code!==void 0)return n(t.code);if(t.__type!==void 0)return n(t.__type)};class Qx extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,Qx.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[po]:{service:"AWSCognitoIdentityService",operation:"GetCredentialsForIdentity"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return oX(t,r)}deserialize(t,r){return lX(t,r)}}class Xx extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,Xx.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[po]:{service:"AWSCognitoIdentityService",operation:"GetId"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return aX(t,r)}deserialize(t,r){return fX(t,r)}}function gP(e){return Promise.all(Object.keys(e).reduce((t,r)=>{const n=e[r];return typeof n=="string"?t.push([r,n]):t.push(n().then(i=>[r,i])),t},[])).then(t=>t.reduce((r,[n,i])=>(r[n]=i,r),{}))}function mX(e){return async()=>{const{Credentials:{AccessKeyId:t=gX(),Expiration:r,SecretKey:n=bX(),SessionToken:i}=xX()}=await e.client.send(new Qx({CustomRoleArn:e.customRoleArn,IdentityId:e.identityId,Logins:e.logins?await gP(e.logins):void 0}));return{identityId:e.identityId,accessKeyId:t,secretAccessKey:n,sessionToken:i,expiration:r}}}function gX(){throw new Zl("Response from Amazon Cognito contained no access key ID")}function xX(){throw new Zl("Response from Amazon Cognito contained no credentials")}function bX(){throw new Zl("Response from Amazon Cognito contained no secret key")}const Xv="IdentityIds";class wX{constructor(t="aws:cognito-identity-ids"){this.dbName=t}getItem(t){return this.withObjectStore("readonly",r=>{const n=r.get(t);return new Promise(i=>{n.onerror=()=>i(null),n.onsuccess=()=>i(n.result?n.result.value:null)})}).catch(()=>null)}removeItem(t){return this.withObjectStore("readwrite",r=>{const n=r.delete(t);return new Promise((i,s)=>{n.onerror=()=>s(n.error),n.onsuccess=()=>i()})})}setItem(t,r){return this.withObjectStore("readwrite",n=>{const i=n.put({id:t,value:r});return new Promise((s,o)=>{i.onerror=()=>o(i.error),i.onsuccess=()=>s()})})}getDb(){const t=self.indexedDB.open(this.dbName,1);return new Promise((r,n)=>{t.onsuccess=()=>{r(t.result)},t.onerror=()=>{n(t.error)},t.onblocked=()=>{n(new Error("Unable to access DB"))},t.onupgradeneeded=()=>{const i=t.result;i.onerror=()=>{n(new Error("Failed to create object store"))},i.createObjectStore(Xv,{keyPath:"id"})}})}withObjectStore(t,r){return this.getDb().then(n=>{const i=n.transaction(Xv,t);return i.oncomplete=()=>n.close(),new Promise((s,o)=>{i.onerror=()=>o(i.error),s(r(i.objectStore(Xv)))}).catch(s=>{throw n.close(),s})})}}class EX{constructor(t={}){this.store=t}getItem(t){return t in this.store?this.store[t]:null}removeItem(t){delete this.store[t]}setItem(t,r){this.store[t]=r}}const CX=new EX;function SX(){return typeof self=="object"&&self.indexedDB?new wX:typeof window=="object"&&window.localStorage?window.localStorage:CX}function AX({accountId:e,cache:t=SX(),client:r,customRoleArn:n,identityPoolId:i,logins:s,userIdentifier:o=!s||Object.keys(s).length===0?"ANONYMOUS":void 0}){const a=o?`aws:cognito-identity-credentials:${i}:${o}`:void 0;let l=async()=>{let c=a&&await t.getItem(a);if(!c){const{IdentityId:f=kX()}=await r.send(new Xx({AccountId:e,IdentityPoolId:i,Logins:s?await gP(s):void 0}));c=f,a&&Promise.resolve(t.setItem(a,c)).catch(()=>{})}return l=mX({client:r,customRoleArn:n,logins:s,identityId:c}),l()};return()=>l().catch(async c=>{throw a&&Promise.resolve(t.removeItem(a)).catch(()=>{}),c})}function kX(){throw new Zl("Response from Amazon Cognito contained no identity ID")}const PX=e=>AX({...e,client:new eX(e.clientConfig??{})});class Zc extends Error{}Zc.prototype.name="InvalidTokenError";function RX(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function _X(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return RX(t)}catch{return atob(t)}}function TX(e,t){if(typeof e!="string")throw new Zc("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,n=e.split(".")[r];if(typeof n!="string")throw new Zc(`Invalid token specified: missing part #${r+1}`);let i;try{i=_X(n)}catch(s){throw new Zc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Zc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const MX=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"kms"}),IX="@aws-sdk/client-kms",NX="AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",$X="3.462.0",OX={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo kms"},DX="./dist-cjs/index.js",BX="./dist-types/index.d.ts",LX="./dist-es/index.js",FX=!1,jX={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},zX={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},UX={node:">=14.0.0"},VX={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},qX=["dist-*/**"],HX={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},GX="Apache-2.0",WX={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},KX="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",YX={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-kms"},JX={name:IX,description:NX,version:$X,scripts:OX,main:DX,types:BX,module:LX,sideEffects:FX,dependencies:jX,devDependencies:zX,engines:UX,typesVersions:VX,files:qX,author:HX,license:GX,browser:WX,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:KX,repository:YX},xP="required",Mi="fn",Ii="argv",oc="ref",PE=!0,RE="isSet",uu="booleanEquals",Ma="error",Vc="endpoint",es="tree",Zx="PartitionResult",_E={[xP]:!1,type:"String"},TE={[xP]:!0,default:!1,type:"Boolean"},ME={[oc]:"Endpoint"},bP={[Mi]:uu,[Ii]:[{[oc]:"UseFIPS"},!0]},wP={[Mi]:uu,[Ii]:[{[oc]:"UseDualStack"},!0]},xi={},IE={[Mi]:"getAttr",[Ii]:[{[oc]:Zx},"supportsFIPS"]},NE={[Mi]:uu,[Ii]:[!0,{[Mi]:"getAttr",[Ii]:[{[oc]:Zx},"supportsDualStack"]}]},$E=[bP],OE=[wP],DE=[{[oc]:"Region"}],QX={version:"1.0",parameters:{Region:_E,UseDualStack:TE,UseFIPS:TE,Endpoint:_E},rules:[{conditions:[{[Mi]:RE,[Ii]:[ME]}],rules:[{conditions:$E,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ma},{conditions:OE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ma},{endpoint:{url:ME,properties:xi,headers:xi},type:Vc}],type:es},{conditions:[{[Mi]:RE,[Ii]:DE}],rules:[{conditions:[{[Mi]:"aws.partition",[Ii]:DE,assign:Zx}],rules:[{conditions:[bP,wP],rules:[{conditions:[{[Mi]:uu,[Ii]:[PE,IE]},NE],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xi,headers:xi},type:Vc}],type:es},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ma}],type:es},{conditions:$E,rules:[{conditions:[{[Mi]:uu,[Ii]:[IE,PE]}],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:xi,headers:xi},type:Vc}],type:es},{error:"FIPS is enabled but this partition does not support FIPS",type:Ma}],type:es},{conditions:OE,rules:[{conditions:[NE],rules:[{endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xi,headers:xi},type:Vc}],type:es},{error:"DualStack is enabled but this partition does not support DualStack",type:Ma}],type:es},{endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:xi,headers:xi},type:Vc}],type:es}],type:es},{error:"Invalid Configuration: Missing Region",type:Ma}]},XX=QX,ZX=(e,t={})=>xx(XX,{endpointParams:e,logger:t.logger}),eZ=e=>({apiVersion:"2014-11-01",base64Decoder:(e==null?void 0:e.base64Decoder)??$u,base64Encoder:(e==null?void 0:e.base64Encoder)??Qh,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??ZX,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new _x,serviceId:(e==null?void 0:e.serviceId)??"KMS",urlParser:(e==null?void 0:e.urlParser)??Bl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??ec,utf8Encoder:(e==null?void 0:e.utf8Encoder)??Nu}),tZ=e=>{const t=Vx(e),r=()=>t().then(Ox),n=eZ(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??zx,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??Fx({serviceId:n.serviceId,clientVersion:JX.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??Fl,region:(e==null?void 0:e.region)??jx("Region is missing"),requestHandler:(e==null?void 0:e.requestHandler)??new Mx(r),retryMode:(e==null?void 0:e.retryMode)??(async()=>(await r()).retryMode||kx),sha256:(e==null?void 0:e.sha256)??Xh.Sha256,streamCollector:(e==null?void 0:e.streamCollector)??Ix,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(()=>Promise.resolve(wx)),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(()=>Promise.resolve(Ex))}},Zv=e=>e,rZ=(e,t)=>{const r={...Zv(qx(e)),...Zv(Dx(e)),...Zv(cx(e))};return t.forEach(n=>n.configure(r)),{...e,...Hx(r),...Bx(r),...fx(r)}};class nZ extends Tx{constructor(...[t]){const r=tZ(t||{}),n=MX(r),i=Cx(n),s=Ax(i),o=Px(s),a=o,l=yx(a),c=px(l),f=rZ(c,(t==null?void 0:t.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Rx(this.config)),this.middlewareStack.use(Sx(this.config)),this.middlewareStack.use(ux(this.config)),this.middlewareStack.use(dx(this.config)),this.middlewareStack.use(hx(this.config)),this.middlewareStack.use(yY(this.config)),this.middlewareStack.use(bx(this.config))}destroy(){super.destroy()}}class Ln extends Ou{constructor(t){super(t),Object.setPrototypeOf(this,Ln.prototype)}}class eb extends Ln{constructor(t){super({name:"DependencyTimeoutException",$fault:"server",...t}),this.name="DependencyTimeoutException",this.$fault="server",Object.setPrototypeOf(this,eb.prototype)}}class tb extends Ln{constructor(t){super({name:"KMSInternalException",$fault:"server",...t}),this.name="KMSInternalException",this.$fault="server",Object.setPrototypeOf(this,tb.prototype)}}class rb extends Ln{constructor(t){super({name:"KMSInvalidStateException",$fault:"client",...t}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,rb.prototype)}}class nb extends Ln{constructor(t){super({name:"NotFoundException",$fault:"client",...t}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,nb.prototype)}}class ib extends Ln{constructor(t){super({name:"DisabledException",$fault:"client",...t}),this.name="DisabledException",this.$fault="client",Object.setPrototypeOf(this,ib.prototype)}}class sb extends Ln{constructor(t){super({name:"DryRunOperationException",$fault:"client",...t}),this.name="DryRunOperationException",this.$fault="client",Object.setPrototypeOf(this,sb.prototype)}}class ob extends Ln{constructor(t){super({name:"InvalidGrantTokenException",$fault:"client",...t}),this.name="InvalidGrantTokenException",this.$fault="client",Object.setPrototypeOf(this,ob.prototype)}}class ab extends Ln{constructor(t){super({name:"InvalidKeyUsageException",$fault:"client",...t}),this.name="InvalidKeyUsageException",this.$fault="client",Object.setPrototypeOf(this,ab.prototype)}}class lb extends Ln{constructor(t){super({name:"KeyUnavailableException",$fault:"server",...t}),this.name="KeyUnavailableException",this.$fault="server",Object.setPrototypeOf(this,lb.prototype)}}const iZ=e=>({...e,...e.Plaintext&&{Plaintext:lr}}),sZ=async(e,t)=>{const r=CZ("GenerateDataKey");let n;return n=JSON.stringify(mZ(e,t)),EZ(t,r,"/",void 0,n)},oZ=async(e,t)=>{if(e.statusCode>=300)return aZ(e,t);const r=await EP(e.body,t);let n={};return n=xZ(r,t),{$metadata:Qi(e),...n}},aZ=async(e,t)=>{const r={...e,body:await SZ(e.body,t)},n=AZ(e,r.body);switch(n){case"DependencyTimeoutException":case"com.amazonaws.kms#DependencyTimeoutException":throw await lZ(r);case"DisabledException":case"com.amazonaws.kms#DisabledException":throw await cZ(r);case"DryRunOperationException":case"com.amazonaws.kms#DryRunOperationException":throw await fZ(r);case"InvalidGrantTokenException":case"com.amazonaws.kms#InvalidGrantTokenException":throw await uZ(r);case"InvalidKeyUsageException":case"com.amazonaws.kms#InvalidKeyUsageException":throw await dZ(r);case"KMSInternalException":case"com.amazonaws.kms#KMSInternalException":throw await vZ(r);case"KMSInvalidStateException":case"com.amazonaws.kms#KMSInvalidStateException":throw await yZ(r);case"KeyUnavailableException":case"com.amazonaws.kms#KeyUnavailableException":throw await hZ(r);case"NotFoundException":case"com.amazonaws.kms#NotFoundException":throw await pZ(r);default:const i=r.body;return wZ({output:e,parsedBody:i,errorCode:n})}},lZ=async(e,t)=>{const r=e.body,n=we(r),i=new eb({$metadata:Qi(e),...n});return _e(i,r)},cZ=async(e,t)=>{const r=e.body,n=we(r),i=new ib({$metadata:Qi(e),...n});return _e(i,r)},fZ=async(e,t)=>{const r=e.body,n=we(r),i=new sb({$metadata:Qi(e),...n});return _e(i,r)},uZ=async(e,t)=>{const r=e.body,n=we(r),i=new ob({$metadata:Qi(e),...n});return _e(i,r)},dZ=async(e,t)=>{const r=e.body,n=we(r),i=new ab({$metadata:Qi(e),...n});return _e(i,r)},hZ=async(e,t)=>{const r=e.body,n=we(r),i=new lb({$metadata:Qi(e),...n});return _e(i,r)},vZ=async(e,t)=>{const r=e.body,n=we(r),i=new tb({$metadata:Qi(e),...n});return _e(i,r)},yZ=async(e,t)=>{const r=e.body,n=we(r),i=new rb({$metadata:Qi(e),...n});return _e(i,r)},pZ=async(e,t)=>{const r=e.body,n=we(r),i=new nb({$metadata:Qi(e),...n});return _e(i,r)},mZ=(e,t)=>Du(e,{DryRun:[],EncryptionContext:we,GrantTokens:we,KeyId:[],KeySpec:[],NumberOfBytes:[],Recipient:r=>gZ(r,t)}),gZ=(e,t)=>Du(e,{AttestationDocument:t.base64Encoder,KeyEncryptionAlgorithm:[]}),xZ=(e,t)=>Du(e,{CiphertextBlob:t.base64Decoder,CiphertextForRecipient:t.base64Decoder,KeyId:kf,Plaintext:t.base64Decoder}),Qi=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),bZ=(e,t)=>Nx(e,t).then(r=>t.utf8Encoder(r)),wZ=$x(Ln),EZ=async(e,t,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await e.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new $n(c)};function CZ(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`TrentService.${e}`}}const EP=(e,t)=>bZ(e,t).then(r=>r.length?JSON.parse(r):{}),SZ=async(e,t)=>{const r=await EP(e,t);return r.message=r.message??r.Message,r},AZ=(e,t)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");if(i!==void 0)return n(e.headers[i]);if(t.code!==void 0)return n(t.code);if(t.__type!==void 0)return n(t.__type)};class cb extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,cb.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"KMSClient",commandName:"GenerateDataKeyCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:iZ,[po]:{service:"TrentService",operation:"GenerateDataKey"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return sZ(t,r)}deserialize(t,r){return oZ(t,r)}}const kZ=e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),PZ="@aws-sdk/client-cognito-identity-provider",RZ="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",_Z="3.462.0",TZ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},MZ="./dist-cjs/index.js",IZ="./dist-types/index.d.ts",NZ="./dist-es/index.js",$Z=!1,OZ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},DZ={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},BZ={node:">=14.0.0"},LZ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},FZ=["dist-*/**"],jZ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},zZ="Apache-2.0",UZ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},VZ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",qZ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},HZ={name:PZ,description:RZ,version:_Z,scripts:TZ,main:MZ,types:IZ,module:NZ,sideEffects:$Z,dependencies:OZ,devDependencies:DZ,engines:BZ,typesVersions:LZ,files:FZ,author:jZ,license:zZ,browser:UZ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:VZ,repository:qZ},CP="required",Ni="fn",$i="argv",ac="ref",BE=!0,LE="isSet",du="booleanEquals",Ia="error",qc="endpoint",ts="tree",fb="PartitionResult",FE={[CP]:!1,type:"String"},jE={[CP]:!0,default:!1,type:"Boolean"},zE={[ac]:"Endpoint"},SP={[Ni]:du,[$i]:[{[ac]:"UseFIPS"},!0]},AP={[Ni]:du,[$i]:[{[ac]:"UseDualStack"},!0]},bi={},UE={[Ni]:"getAttr",[$i]:[{[ac]:fb},"supportsFIPS"]},VE={[Ni]:du,[$i]:[!0,{[Ni]:"getAttr",[$i]:[{[ac]:fb},"supportsDualStack"]}]},qE=[SP],HE=[AP],GE=[{[ac]:"Region"}],GZ={version:"1.0",parameters:{Region:FE,UseDualStack:jE,UseFIPS:jE,Endpoint:FE},rules:[{conditions:[{[Ni]:LE,[$i]:[zE]}],rules:[{conditions:qE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ia},{conditions:HE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ia},{endpoint:{url:zE,properties:bi,headers:bi},type:qc}],type:ts},{conditions:[{[Ni]:LE,[$i]:GE}],rules:[{conditions:[{[Ni]:"aws.partition",[$i]:GE,assign:fb}],rules:[{conditions:[SP,AP],rules:[{conditions:[{[Ni]:du,[$i]:[BE,UE]},VE],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:bi,headers:bi},type:qc}],type:ts},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ia}],type:ts},{conditions:qE,rules:[{conditions:[{[Ni]:du,[$i]:[UE,BE]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:bi,headers:bi},type:qc}],type:ts},{error:"FIPS is enabled but this partition does not support FIPS",type:Ia}],type:ts},{conditions:HE,rules:[{conditions:[VE],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:bi,headers:bi},type:qc}],type:ts},{error:"DualStack is enabled but this partition does not support DualStack",type:Ia}],type:ts},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:bi,headers:bi},type:qc}],type:ts}],type:ts},{error:"Invalid Configuration: Missing Region",type:Ia}]},WZ=GZ,KZ=(e,t={})=>xx(WZ,{endpointParams:e,logger:t.logger}),YZ=e=>({apiVersion:"2016-04-18",base64Decoder:(e==null?void 0:e.base64Decoder)??$u,base64Encoder:(e==null?void 0:e.base64Encoder)??Qh,disableHostPrefix:(e==null?void 0:e.disableHostPrefix)??!1,endpointProvider:(e==null?void 0:e.endpointProvider)??KZ,extensions:(e==null?void 0:e.extensions)??[],logger:(e==null?void 0:e.logger)??new _x,serviceId:(e==null?void 0:e.serviceId)??"Cognito Identity Provider",urlParser:(e==null?void 0:e.urlParser)??Bl,utf8Decoder:(e==null?void 0:e.utf8Decoder)??ec,utf8Encoder:(e==null?void 0:e.utf8Encoder)??Nu}),JZ=e=>{const t=Vx(e),r=()=>t().then(Ox),n=YZ(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(e==null?void 0:e.bodyLengthChecker)??zx,credentialDefaultProvider:(e==null?void 0:e.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(e==null?void 0:e.defaultUserAgentProvider)??Fx({serviceId:n.serviceId,clientVersion:HZ.version}),maxAttempts:(e==null?void 0:e.maxAttempts)??Fl,region:(e==null?void 0:e.region)??jx("Region is missing"),requestHandler:(e==null?void 0:e.requestHandler)??new Mx(r),retryMode:(e==null?void 0:e.retryMode)??(async()=>(await r()).retryMode||kx),sha256:(e==null?void 0:e.sha256)??Xh.Sha256,streamCollector:(e==null?void 0:e.streamCollector)??Ix,useDualstackEndpoint:(e==null?void 0:e.useDualstackEndpoint)??(()=>Promise.resolve(wx)),useFipsEndpoint:(e==null?void 0:e.useFipsEndpoint)??(()=>Promise.resolve(Ex))}},ey=e=>e,QZ=(e,t)=>{const r={...ey(qx(e)),...ey(Dx(e)),...ey(cx(e))};return t.forEach(n=>n.configure(r)),{...e,...Hx(r),...Bx(r),...fx(r)}};class XZ extends Tx{constructor(...[t]){const r=JZ(t||{}),n=kZ(r),i=Cx(n),s=Ax(i),o=Px(s),a=o,l=yx(a),c=px(l),f=QZ(c,(t==null?void 0:t.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(Rx(this.config)),this.middlewareStack.use(Sx(this.config)),this.middlewareStack.use(ux(this.config)),this.middlewareStack.use(dx(this.config)),this.middlewareStack.use(hx(this.config)),this.middlewareStack.use(bx(this.config))}destroy(){super.destroy()}}class bt extends Ou{constructor(t){super(t),Object.setPrototypeOf(this,bt.prototype)}}class ub extends bt{constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,ub.prototype)}}class db extends bt{constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,db.prototype)}}class hb extends bt{constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,hb.prototype)}}class vb extends bt{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,vb.prototype)}}class yb extends bt{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,yb.prototype)}}class pb extends bt{constructor(t){super({name:"UserNotFoundException",$fault:"client",...t}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,pb.prototype)}}class mb extends bt{constructor(t){super({name:"InvalidLambdaResponseException",$fault:"client",...t}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,mb.prototype)}}class gb extends bt{constructor(t){super({name:"UnexpectedLambdaException",$fault:"client",...t}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,gb.prototype)}}class Zh extends bt{constructor(t){super({name:"UserLambdaValidationException",$fault:"client",...t}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,Zh.prototype)}}class xb extends bt{constructor(t){super({name:"CodeDeliveryFailureException",$fault:"client",...t}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,xb.prototype)}}class bb extends bt{constructor(t){super({name:"InvalidPasswordException",$fault:"client",...t}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,bb.prototype)}}class wb extends bt{constructor(t){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...t}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,wb.prototype)}}class Eb extends bt{constructor(t){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...t}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Eb.prototype)}}class Cb extends bt{constructor(t){super({name:"UsernameExistsException",$fault:"client",...t}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,Cb.prototype)}}class Sb extends bt{constructor(t){super({name:"AliasExistsException",$fault:"client",...t}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Sb.prototype)}}class Ab extends bt{constructor(t){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...t}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Ab.prototype)}}class kb extends bt{constructor(t){super({name:"MFAMethodNotFoundException",$fault:"client",...t}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,kb.prototype)}}class Pb extends bt{constructor(t){super({name:"PasswordResetRequiredException",$fault:"client",...t}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Pb.prototype)}}class Rb extends bt{constructor(t){super({name:"UserNotConfirmedException",$fault:"client",...t}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,Rb.prototype)}}class _b extends bt{constructor(t){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...t}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,_b.prototype)}}class Tb extends bt{constructor(t){super({name:"CodeMismatchException",$fault:"client",...t}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,Tb.prototype)}}class Mb extends bt{constructor(t){super({name:"ExpiredCodeException",$fault:"client",...t}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,Mb.prototype)}}class Ib extends bt{constructor(t){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...t}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ib.prototype)}}class Nb extends bt{constructor(t){super({name:"ForbiddenException",$fault:"client",...t}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Nb.prototype)}}const WE=e=>({...e,...e.Value&&{Value:lr}}),kP=e=>({...e,...e.AccessToken&&{AccessToken:lr},...e.RefreshToken&&{RefreshToken:lr},...e.IdToken&&{IdToken:lr}}),ZZ=e=>({...e,...e.AuthParameters&&{AuthParameters:lr},...e.ClientId&&{ClientId:lr},...e.UserContextData&&{UserContextData:lr}}),eee=e=>({...e,...e.Session&&{Session:lr},...e.AuthenticationResult&&{AuthenticationResult:kP(e.AuthenticationResult)}}),tee=e=>({...e,...e.ClientId&&{ClientId:lr},...e.Session&&{Session:lr},...e.ChallengeResponses&&{ChallengeResponses:lr},...e.UserContextData&&{UserContextData:lr}}),ree=e=>({...e,...e.Session&&{Session:lr},...e.AuthenticationResult&&{AuthenticationResult:kP(e.AuthenticationResult)}}),nee=e=>({...e,...e.ClientId&&{ClientId:lr},...e.SecretHash&&{SecretHash:lr},...e.Username&&{Username:lr},...e.Password&&{Password:lr},...e.UserAttributes&&{UserAttributes:e.UserAttributes.map(t=>WE(t))},...e.ValidationData&&{ValidationData:e.ValidationData.map(t=>WE(t))},...e.UserContextData&&{UserContextData:lr}}),iee=async(e,t)=>{const r=Wb("InitiateAuth");let n;return n=JSON.stringify(we(e)),Gb(t,r,"/",void 0,n)},see=async(e,t)=>{const r=Wb("RespondToAuthChallenge");let n;return n=JSON.stringify(we(e)),Gb(t,r,"/",void 0,n)},oee=async(e,t)=>{const r=Wb("SignUp");let n;return n=JSON.stringify(we(e)),Gb(t,r,"/",void 0,n)},aee=async(e,t)=>{if(e.statusCode>=300)return lee(e,t);const r=await e1(e.body,t);let n={};return n=we(r),{$metadata:wt(e),...n}},lee=async(e,t)=>{const r={...e,body:await Kb(e.body,t)},n=Yb(e,r.body);switch(n){case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await $b(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Ob(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await Db(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await Bb(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await Lb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await Fb(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await RP(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await jb(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await _P(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await zb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await Ub(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await Vb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await qb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await TP(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await MP(r);default:const i=r.body;return Hb({output:e,parsedBody:i,errorCode:n})}},cee=async(e,t)=>{if(e.statusCode>=300)return fee(e,t);const r=await e1(e.body,t);let n={};return n=we(r),{$metadata:wt(e),...n}},fee=async(e,t)=>{const r={...e,body:await Kb(e.body,t)},n=Yb(e,r.body);switch(n){case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await hee(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await yee(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await pee(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await $b(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Ob(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await Db(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await Bb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await PP(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await Lb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await Fb(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await RP(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await gee(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await jb(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await _P(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await zb(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await xee(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await Ub(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await Vb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await qb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await TP(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await MP(r);default:const i=r.body;return Hb({output:e,parsedBody:i,errorCode:n})}},uee=async(e,t)=>{if(e.statusCode>=300)return dee(e,t);const r=await e1(e.body,t);let n={};return n=we(r),{$metadata:wt(e),...n}},dee=async(e,t)=>{const r={...e,body:await Kb(e.body,t)},n=Yb(e,r.body);switch(n){case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await vee(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await $b(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await Ob(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await mee(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await Db(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await Bb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await PP(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await Lb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await Fb(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await jb(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await zb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await Ub(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await Vb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await qb(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await bee(r);default:const i=r.body;return Hb({output:e,parsedBody:i,errorCode:n})}},hee=async(e,t)=>{const r=e.body,n=we(r),i=new Sb({$metadata:wt(e),...n});return _e(i,r)},vee=async(e,t)=>{const r=e.body,n=we(r),i=new xb({$metadata:wt(e),...n});return _e(i,r)},yee=async(e,t)=>{const r=e.body,n=we(r),i=new Tb({$metadata:wt(e),...n});return _e(i,r)},pee=async(e,t)=>{const r=e.body,n=we(r),i=new Mb({$metadata:wt(e),...n});return _e(i,r)},$b=async(e,t)=>{const r=e.body,n=we(r),i=new Nb({$metadata:wt(e),...n});return _e(i,r)},Ob=async(e,t)=>{const r=e.body,n=we(r),i=new ub({$metadata:wt(e),...n});return _e(i,r)},mee=async(e,t)=>{const r=e.body,n=we(r),i=new _b({$metadata:wt(e),...n});return _e(i,r)},Db=async(e,t)=>{const r=e.body,n=we(r),i=new mb({$metadata:wt(e),...n});return _e(i,r)},Bb=async(e,t)=>{const r=e.body,n=we(r),i=new db({$metadata:wt(e),...n});return _e(i,r)},PP=async(e,t)=>{const r=e.body,n=we(r),i=new bb({$metadata:wt(e),...n});return _e(i,r)},Lb=async(e,t)=>{const r=e.body,n=we(r),i=new wb({$metadata:wt(e),...n});return _e(i,r)},Fb=async(e,t)=>{const r=e.body,n=we(r),i=new Eb({$metadata:wt(e),...n});return _e(i,r)},RP=async(e,t)=>{const r=e.body,n=we(r),i=new Ab({$metadata:wt(e),...n});return _e(i,r)},gee=async(e,t)=>{const r=e.body,n=we(r),i=new kb({$metadata:wt(e),...n});return _e(i,r)},jb=async(e,t)=>{const r=e.body,n=we(r),i=new hb({$metadata:wt(e),...n});return _e(i,r)},_P=async(e,t)=>{const r=e.body,n=we(r),i=new Pb({$metadata:wt(e),...n});return _e(i,r)},zb=async(e,t)=>{const r=e.body,n=we(r),i=new vb({$metadata:wt(e),...n});return _e(i,r)},xee=async(e,t)=>{const r=e.body,n=we(r),i=new Ib({$metadata:wt(e),...n});return _e(i,r)},Ub=async(e,t)=>{const r=e.body,n=we(r),i=new yb({$metadata:wt(e),...n});return _e(i,r)},Vb=async(e,t)=>{const r=e.body,n=we(r),i=new gb({$metadata:wt(e),...n});return _e(i,r)},qb=async(e,t)=>{const r=e.body,n=we(r),i=new Zh({$metadata:wt(e),...n});return _e(i,r)},bee=async(e,t)=>{const r=e.body,n=we(r),i=new Cb({$metadata:wt(e),...n});return _e(i,r)},TP=async(e,t)=>{const r=e.body,n=we(r),i=new Rb({$metadata:wt(e),...n});return _e(i,r)},MP=async(e,t)=>{const r=e.body,n=we(r),i=new pb({$metadata:wt(e),...n});return _e(i,r)},wt=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),wee=(e,t)=>Nx(e,t).then(r=>t.utf8Encoder(r)),Hb=$x(bt),Gb=async(e,t,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await e.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:t};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new $n(c)};function Wb(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}}const e1=(e,t)=>wee(e,t).then(r=>r.length?JSON.parse(r):{}),Kb=async(e,t)=>{const r=await e1(e,t);return r.message=r.message??r.Message,r},Yb=(e,t)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");if(i!==void 0)return n(e.headers[i]);if(t.code!==void 0)return n(t.code);if(t.__type!==void 0)return n(t.__type)};class Jb extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,Jb.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"InitiateAuthCommand",inputFilterSensitiveLog:ZZ,outputFilterSensitiveLog:eee,[po]:{service:"AWSCognitoIdentityProviderService",operation:"InitiateAuth"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return iee(t,r)}deserialize(t,r){return aee(t,r)}}class Qb extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,Qb.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"RespondToAuthChallengeCommand",inputFilterSensitiveLog:tee,outputFilterSensitiveLog:ree,[po]:{service:"AWSCognitoIdentityProviderService",operation:"RespondToAuthChallenge"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return see(t,r)}deserialize(t,r){return cee(t,r)}}class Xb extends ic{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use(tc(r,this.serialize,this.deserialize)),this.middlewareStack.use(rc(r,Xb.getEndpointParameterInstructions()));const i=t.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"SignUpCommand",inputFilterSensitiveLog:nee,outputFilterSensitiveLog:f=>f,[po]:{service:"AWSCognitoIdentityProviderService",operation:"SignUp"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(t,r){return oee(t,r)}deserialize(t,r){return uee(t,r)}}function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(!s.to||s.to===HA)throw new Error("Contract creation not supported");return{type:"transaction",to:s.to,value:ae.from(s.value||0).toHexString(),data:le(s.data||[])}})})}function Ree({wallet:e,token:t,to:r,value:n,chainId:i,lifespan:s,identifier:o}){return Ht({},Fn(s),{identifier:o,code:"sendTransaction",wallet:e,network:i.toString(),transactions:[{type:"erc20send",token:t,to:r,value:ae.from(n).toString()}]})}function _ee({wallet:e,token:t,to:r,id:n,chainId:i,lifespan:s,identifier:o,safe:a,data:l}){return Ht({},Fn(s),{identifier:o,code:"sendTransaction",wallet:e,network:i.toString(),transactions:[{type:"erc721send",token:t,to:r,id:n,safe:a,data:l}]})}function Tee({wallet:e,token:t,to:r,values:n,chainId:i,lifespan:s,identifier:o,data:a}){return Ht({},Fn(s),{identifier:o,code:"sendTransaction",wallet:e,network:i.toString(),transactions:[{type:"erc1155send",token:t,to:r,vals:n.map(l=>({id:l.id,amount:ae.from(l.amount).toString()})),data:a}]})}function Mee({wallet:e,to:t,value:r,abi:n,func:i,args:s,chainId:o,lifespan:a,identifier:l}){return Ht({},Fn(a),{identifier:l,code:"sendTransaction",wallet:e,network:o.toString(),transactions:[{type:"delayedEncode",to:t,value:ae.from(r).toString(),data:{abi:n,func:i,args:s}}]})}function Iee(e){if(e.length===0)throw new Error("No packets provided");const t=e[0].network,r=e[0].wallet,n=e[0].expires-e[0].issued,i=e[0].identifier;if(!e.every(s=>s.network===t))throw new Error("All packets must have the same chainId");if(!e.every(s=>s.wallet===r))throw new Error("All packets must have the same wallet");return Ht({},Fn(n),{identifier:i,code:"sendTransaction",network:t,wallet:r,transactions:e.reduce((s,o)=>s.concat(o.transactions),[])})}function Bu(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="transactionReceipt"&&typeof e.data=="object"&&typeof e.data.txHash=="string"&&typeof e.data.receipt=="object"&&typeof e.data.request=="object"}function Nee(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="transactionFailed"&&typeof e.data=="object"&&typeof e.data.request=="object"&&Array.isArray(e.data.simulations)&&typeof e.data.error=="string"}function Hc(e){return Bu(e)||Nee(e)}function $ee(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="signedMessage"&&typeof e.data=="object"&&typeof e.data.message=="string"&&typeof e.data.signature=="string"}function Oee(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="validationRequired"&&typeof e.data=="object"&&typeof e.data.sessionId=="string"}function Dee(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="finishedSessionValidation"&&typeof e.data=="object"}function Bee(e){return typeof e=="object"&&typeof e.code=="string"&&e.code==="getSessionResponse"&&typeof e.data=="object"&&typeof e.data.session=="string"&&typeof e.data.wallet=="string"}function Lee(e){"version"in e&&(e=e.packet);const t=Lt(jW(e));return se(ot(t))}function Fee(e,t){const r=Lee(t);return e.signMessage(r)}class jee{constructor(t,r){this.path="/rpc/Guard/",this.ping=n=>this.fetch(this.url("Ping"),$r({},n)).then(i=>Or(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),$r({},n)).then(i=>Or(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),$r({},n)).then(i=>Or(i).then(s=>({status:s.status}))),this.signTransactions=(n,i)=>this.fetch(this.url("SignTransactions"),$r(n,i)).then(s=>Or(s).then(o=>({sig:o.sig}))),this.signMessage=(n,i)=>this.fetch(this.url("SignMessage"),$r(n,i)).then(s=>Or(s).then(o=>({sig:o.sig}))),this.getGuardSignerAddress=(n,i)=>this.fetch(this.url("GetGuardSignerAddress"),$r(n,i)).then(s=>Or(s).then(o=>({address:o.address}))),this.getWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("GetWalletTransactionPolicyList"),$r(n,i)).then(s=>Or(s).then(o=>({policyList:o.policyList}))),this.setWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("SetWalletTransactionPolicyList"),$r(n,i)).then(s=>Or(s).then(o=>({}))),this.getSessionUserMapRules=(n,i)=>this.fetch(this.url("GetSessionUserMapRules"),$r(n,i)).then(s=>Or(s).then(o=>({rules:o.rules}))),this.setSessionUserMapRules=(n,i)=>this.fetch(this.url("SetSessionUserMapRules"),$r(n,i)).then(s=>Or(s).then(o=>({}))),this.getSession=(n,i)=>this.fetch(this.url("GetSession"),$r(n,i)).then(s=>Or(s).then(o=>({validated:o.validated}))),this.registerSession=(n,i)=>this.fetch(this.url("RegisterSession"),$r(n,i)).then(s=>Or(s).then(o=>({sessionId:o.sessionId}))),this.startSessionValidation=(n,i)=>this.fetch(this.url("StartSessionValidation"),$r(n,i)).then(s=>Or(s).then(o=>({salt:o.salt}))),this.validateSession=(n,i)=>this.fetch(this.url("ValidateSession"),$r(n,i)).then(s=>Or(s).then(o=>({status:o.status}))),this.invalidateSession=(n,i)=>this.fetch(this.url("InvalidateSession"),$r(n,i)).then(s=>Or(s).then(o=>({status:o.status}))),this.hostname=t,this.fetch=(n,i)=>r(n,i)}url(t){return this.hostname+this.path+t}}const $r=(e={},t={})=>({method:"POST",headers:Ht({},t,{"Content-Type":"application/json"}),body:JSON.stringify(e||{})}),Or=e=>e.text().then(t=>{let r;try{r=JSON.parse(t)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${t}`,status:e.status}}if(!e.ok)throw r;return r});function zee({wallet:e,chainId:t,message:r,lifespan:n}){return Ht({},Fn(n),{code:"signMessage",wallet:e,network:t.toString(),message:r.startsWith("0x")?r:le(Lt(r))})}const Zp={mainnet:1,goerli:5,polygon:137,"polygon-zkevm":1101,mumbai:80001,bsc:56,"bsc-testnet":97,arbitrum:42161,"arbitrum-nova":42170,"arbitrum-goerli":421613,optimism:10,gnosis:100,avalanche:43114,"avalanche-testnet":43113,"base-goerli":84531},Uee=Object.entries(Zp).reduce((e,[t,r])=>(e[r]=t,e),{});function KE(e){if(typeof e=="number"){if(e in Uee)return e;throw new Error(`Unknown network id ${e}`)}const t=e.toLowerCase();if(t in Zp)return Zp[t];throw new Error(`Unknown network name ${e}`)}const NP="https://guard2.sequence.app",$P={rpcServer:"http://localhost:9123",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-1:000000000000:key/aeb99e0f-9e89-44de-a084-e1817af47778",endpoint:"http://localstack:4566"},Vee={rpcServer:"https://d14tu8valot5m0.cloudfront.net",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-2:170768627592:key/0fd8f803-9cb5-4de5-86e4-41963fb6043d",endpoint:void 0};var qee=Object.freeze({__proto__:null,DEFAULT_GUARD:NP,TEMPLATE_LOCAL:$P,TEMPLATE_NEXT:Vee});const Hee="@0xsequence.waas.wallet",Gee="@0xsequence.waas.signer",Wee="@0xsequence.waas.status",No=5*60;class Kee{constructor(t={network:1},r=new IP,n=NP){this.VERSION="0.0.0-dev1",this.config=t,this.store=r,this.guardUrl=n,this.status=new Pf(this.store,Wee,"signed-out"),this.signer=new Pf(this.store,Gee,void 0),this.wallet=new Pf(this.store,Hee,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const t=await this.wallet.get();if(!t)throw new Error("No wallet");return t}async commonArgs(t){var r;return Ht({},t,{identifier:t==null?void 0:t.identifier,wallet:await this.getWalletAddress(),lifespan:(r=t==null?void 0:t.lifespan)!=null?r:No,chainId:KE(t.network||this.config.network)})}async buildPayload(t){if(!await this.isSignedIn())throw new Error("Not signed in");const r=await this.signer.get();if(!r)throw new Error("No signer");const n=new An(r),i=await Fee(n,t);return{version:this.VERSION,packet:t,signatures:[{session:n.address,signature:i}]}}async signUsingSessionKey(t){const r=await this.signer.get();if(!r)throw new Error("No signer");return new An(r).signMessage(t)}async getSignerAddress(){const t=await this.signer.get();if(!t)throw new Error("No signer");return new An(t).address}async getSessionID(){return this.getSignerAddress()}async getSessionShortID(){return(await this.getSessionID()).substring(2,8)}async signIn(t){await this.status.get()!=="signed-out"&&await this.completeSignOut();const n=await Eee({proof:t,lifespan:No});return await Promise.all([this.status.set("pending"),this.signer.set(n.signer.privateKey)]),{version:this.VERSION,packet:n.packet,signatures:[]}}async signOut({lifespan:t,sessionId:r}={}){const n=await Cee({lifespan:t||No,wallet:await this.getWalletAddress(),session:r||await this.getSignerAddress()});return this.buildPayload(n)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.signer.set(void 0),this.wallet.set(void 0)])}async completeSignIn(t){if(t.result)return this.completeSignIn(t.result);const r=await this.status.get(),n=await this.signer.get();if(t.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending"||!n)throw new Error("No pending sign in");if(new An(n).address.toLowerCase()!==t.data.sessionId.toLowerCase())throw new Error("Invalid signer");return await Promise.all([this.status.set("signed-in"),this.wallet.set(t.data.wallet)]),t.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async signMessage(t){var r;const n=zee(Ht({chainId:KE(t.network||this.config.network),lifespan:(r=t.lifespan)!=null?r:No,wallet:await this.getWalletAddress()},t));return this.buildPayload(n)}async sendTransaction(t){const r=Pee(await this.commonArgs(t));return this.buildPayload(r)}async sendERC20(t){if(t.token.toLowerCase()===t.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=Ree(await this.commonArgs(t));return this.buildPayload(r)}async sendERC721(t){if(t.token.toLowerCase()===t.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=_ee(await this.commonArgs(t));return this.buildPayload(r)}async sendERC1155(t){if(t.token.toLowerCase()===t.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=Tee(await this.commonArgs(t));return this.buildPayload(r)}async callContract(t){const r=Mee(await this.commonArgs(t));return this.buildPayload(r)}async validateSession({deviceMetadata:t,redirectURL:r}){const n=await See({lifespan:No,session:await this.getSignerAddress(),deviceMetadata:t,redirectURL:r,wallet:await this.getWalletAddress()});return this.buildPayload(n)}async getSession(){const t=await kee({session:await this.getSignerAddress(),wallet:await this.getWalletAddress(),lifespan:No});return this.buildPayload(t)}async finishValidateSession(t,r){const n=await this.getSignerAddress(),i=await this.getWalletAddress(),s=Aee(i,n,t,r,No);return this.buildPayload(s)}async isSessionValid(){const t=await this.getSignerAddress(),r=new jee(this.guardUrl,fetch);try{if((await r.getSession({sessionAddress:t})).validated)return!0}catch{}return!1}async waitForSessionValid(t=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async batch(t){const r=Iee(t.map(n=>n.packet));return this.buildPayload(r)}}class Yee{constructor(t,r){this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Gc(n,i,s)).then(o=>Wc(o).then(a=>({session:a.session,data:a.data})),o=>{throw qs.new({cause:`fetch(): ${o.message||""}`})}),this.listSessions=(n,i,s)=>this.fetch(this.url("ListSessions"),Gc(n,i,s)).then(o=>Wc(o).then(a=>({sessions:a.sessions})),o=>{throw qs.new({cause:`fetch(): ${o.message||""}`})}),this.dropSession=(n,i,s)=>this.fetch(this.url("DropSession"),Gc(n,i,s)).then(o=>Wc(o).then(a=>({ok:a.ok})),o=>{throw qs.new({cause:`fetch(): ${o.message||""}`})}),this.getAddress=(n,i,s)=>this.fetch(this.url("GetAddress"),Gc(n,i,s)).then(o=>Wc(o).then(a=>({address:a.address})),o=>{throw qs.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Gc(n,i,s)).then(o=>Wc(o).then(a=>({code:a.code,data:a.data})),o=>{throw qs.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=t,this.fetch=(n,i)=>r(n,i)}url(t){return this.hostname+this.path+t}}const Gc=(e={},t={},r=null)=>({method:"POST",headers:Ht({},t,{"Content-Type":"application/json"}),body:JSON.stringify(e||{}),signal:r}),Wc=e=>e.text().then(t=>{let r;try{r=JSON.parse(t)}catch(n){let i="";throw n instanceof Error&&(i=n.message),t1.new({status:e.status,cause:`JSON.parse(): ${i}: response text: ${t}`})}if(!e.ok){const n=typeof r.code=="number"?r.code:0;throw(Jee[n]||di).new(r)}return r});class di extends Error{constructor(t,r,n,i,s){super(n),this.name=t||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,di.prototype)}static new(t){return new this(t.error,t.code,t.message||t.msg,t.status,t.cause)}}class Zb extends di{constructor(t="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,Zb.prototype)}}class qs extends di{constructor(t="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,qs.prototype)}}class e2 extends di{constructor(t="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,e2.prototype)}}class t2 extends di{constructor(t="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,t2.prototype)}}class r2 extends di{constructor(t="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,r2.prototype)}}class t1 extends di{constructor(t="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,t1.prototype)}}class n2 extends di{constructor(t="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,n2.prototype)}}class i2 extends di{constructor(t="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(t,r,n,i,s),Object.setPrototypeOf(this,i2.prototype)}}const Jee={0:Zb,[-1]:qs,[-2]:e2,[-3]:t2,[-4]:r2,[-5]:t1,[-6]:n2,[-7]:i2};function Qee(e){const t=new Uint8Array(e);return window.crypto.getRandomValues(t),Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}class Xee{constructor(t,r){this.region=t,this.clientId=r}cognito(){return this.cognitoMemo||(this.cognitoMemo=new XZ({region:this.region})),this.cognitoMemo}signUp(t){return this.cognito().send(new Xb({ClientId:this.clientId,Username:t,Password:"aB1%"+Qee(14),UserAttributes:[{Name:"email",Value:t}]}))}signIn(t){return this.cognito().send(new Jb({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:t}}))}async initiateAuth({email:t}){let r;try{r=await this.signIn(t)}catch(n){if(n instanceof Zh&&n.message.includes("user not found"))await this.signUp(t),r=await this.signIn(t);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:t}}async finalizeAuth({instance:t,email:r,answer:n}){const i=await this.cognito().send(new Qb({ClientId:this.clientId,Session:t,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n}}));if(!i.AuthenticationResult||!i.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:i.AuthenticationResult.IdToken}}}function ty(e){return"0x"+Array.from(typeof e=="string"?new TextEncoder().encode(e):e,t=>t.toString(16).padStart(2,"0")).join("")}function Zee(e){return new Uint8Array(e.substring(2).match(/.{1,2}/g).map(t=>parseInt(t,16)))}function ete(e){return JSON.parse(atob(e))}function tte(e,t){const r=e.key,n=r?ete(r):{},i=Ht({},t,e,n);if(i.network===void 0&&(i.network=1),i.tenant===void 0)throw new Error("Missing tenant");if(i.secret===void 0)throw new Error("Missing secret");if(i.identityPoolId===void 0)throw new Error("Missing identityPoolId");return i}class rte{constructor(t,r=$P,n=new IP){this.validationRequiredCallback=[],this.store=n,this.config=tte(t,r),this.waas=new Kee(Ht({network:1},t),this.store),this.client=new Yee(this.config.rpcServer,window.fetch),this.kmsKey=new Pf(this.store,"@0xsequence.waas.auth.key",void 0),this.deviceName=new Pf(this.store,"@0xsequence.waas.auth.deviceName",void 0)}get email(){if(this.emailClient)return this.emailClient;if(!this.config.emailRegion)throw new Error("Missing emailRegion");if(!this.config.emailClientId)throw new Error("Missing emailClientId");return this.emailClient=new Xee(this.config.emailRegion,this.config.emailClientId),this.emailClient}async onValidationRequired(t){return this.validationRequiredCallback.push(t),()=>{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==t)}}async handleValidationRequired({onValidationRequired:t}={}){var r;if(!(t?t():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}async useStoredCypherKey(){const t=await this.kmsKey.get();if(!t)throw new Error("No stored key");const r=JSON.parse(t);if(r.encryptedPayloadKey&&r.plainHex)return r;throw new Error("Invalid stored key")}async saveCypherKey(t){const r=await t.send(new cb({KeyId:this.config.keyId,KeySpec:"AES_256"}));if(!r.CiphertextBlob||!r.Plaintext)throw new Error("invalid response from KMS");return this.kmsKey.set(JSON.stringify({encryptedPayloadKey:ty(r.CiphertextBlob),plainHex:ty(r.Plaintext)}))}async sendIntent(t){const r={sessionId:await this.waas.getSessionID(),intentJson:JSON.stringify(t,null,0)},{args:n,headers:i}=await this.preparePayload(r);return this.client.sendIntent(n,i)}async preparePayload(t){const{encryptedPayloadKey:r,plainHex:n}=await this.useStoredCypherKey(),i={name:"AES-CBC",iv:window.crypto.getRandomValues(new Uint8Array(16))},s=await window.crypto.subtle.importKey("raw",Zee(n),i,!1,["encrypt"]),o=new TextEncoder().encode(JSON.stringify(t)),a=await window.crypto.subtle.encrypt(i,s,o),l=ty(new Uint8Array([...i.iv,...new Uint8Array(a)])),c=await this.waas.signUsingSessionKey(o);return{headers:{"X-Sequence-Tenant":this.config.tenant},args:{encryptedPayloadKey:r,payloadCiphertext:l,payloadSig:c}}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(t,r){const n=await this.waas.signIn({idToken:t.idToken}),i=TX(t.idToken);if(!i.iss)throw new Error("Invalid idToken");const s=new nZ({region:this.config.kmsRegion,endpoint:this.config.endpoint,credentials:PX({identityPoolId:this.config.identityPoolId,logins:{[i.iss.replace("https://","").replace("http://","")]:t.idToken},clientConfig:{region:this.config.idpRegion}})});await this.saveCypherKey(s);const o={projectId:this.config.tenant,idToken:t.idToken,sessionAddress:n.packet.session,friendlyName:r,intentJSON:JSON.stringify(n,null,0)},{args:a,headers:l}=await this.preparePayload(o),c=await this.client.registerSession(a,l);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:c.session.id,wallet:c.data.wallet}}),this.deviceName.set(r),c.session.address}async refreshSession(){throw new Error("Not implemented")}async getSessionID(){return this.waas.getSessionID()}async dropSession({sessionId:t,strict:r}={}){const n=await this.waas.getSessionID(),i=t||n;try{const s={dropSessionId:i,sessionId:n},{args:o,headers:a}=await this.preparePayload(s);await this.client.dropSession(o,a)}catch(s){if(r)throw s;console.error(s)}i.toLowerCase()===n.toLowerCase()&&(await this.waas.completeSignOut(),this.kmsKey.set(void 0),this.deviceName.set(void 0))}async listSessions(){const t={sessionId:await this.waas.getSessionID()},r=await this.waas.getSessionID().then(o=>o.toLowerCase()),{args:n,headers:i}=await this.preparePayload(t);return(await this.client.listSessions(n,i)).sessions.map(o=>Ht({},o,{isThis:o.address.toLowerCase()===r}))}async getAddress(){return this.waas.getAddress()}async validateSession(t){return await this.waas.isSessionValid()?!0:this.handleValidationRequired(t)}async finishValidateSession(t){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,t),n=await this.sendIntent(r);if(!Dee(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const t=await this.waas.getSession(),r=await this.sendIntent(t);if(!Bee(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(t=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async useIdentifier(t){if(t.identifier)return t;const r=`ts-sdk-${Date.now()}-${await this.waas.getSignerAddress()}`;return Ht({},t,{identifier:r})}async trySendIntent(t,r,n){const i=await this.sendIntent(r);if(n(i))return i;if(Oee(i)&&await this.handleValidationRequired(t.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(t){const r=await this.waas.signMessage(await this.useIdentifier(t));return this.trySendIntent(t,r,$ee)}async sendTransaction(t){const r=await this.waas.sendTransaction(await this.useIdentifier(t));return this.trySendIntent(t,r,Hc)}async sendERC20(t){const r=await this.waas.sendERC20(await this.useIdentifier(t));return this.trySendIntent(t,r,Hc)}async sendERC721(t){const r=await this.waas.sendERC721(await this.useIdentifier(t));return this.trySendIntent(t,r,Hc)}async sendERC1155(t){const r=await this.waas.sendERC1155(await this.useIdentifier(t));return this.trySendIntent(t,r,Hc)}async callContract(t){const r=await this.waas.callContract(await this.useIdentifier(t));return this.trySendIntent(t,r,Hc)}}function nte(){const[e,t]=g.useState(),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(),[l,c]=g.useState(!1),[f,u]=g.useState();g.useEffect(()=>{d()},[]);const d=async()=>{const m=Mt.getAddress();t(await DP.getBalance(m))},v=async(m,y)=>{try{u(void 0),c(!0);const w=await Mt.sendTransaction({transactions:[{to:m,value:yk(y)}]});Bu(w)?a(w.data.txHash):u(w.data.error),c(!1)}catch(w){console.error(w),c(!1)}};return U.jsxs(ie,{children:[U.jsxs(Be,{variant:"normal",fontWeight:"bold",children:["Native token balance: ",vk(e||0)," MATIC"]}),U.jsx(Xr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:d}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"sendNativeTokenTo",type:"text",onChange:m=>{n(m.target.value)},value:r,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"sendNativeTokenAmount",type:"text",onChange:m=>{s(m.target.value)},value:i,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),f&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",f]}),l?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ws,{})}):U.jsx(Xr,{marginTop:"5",label:"Send native token",disabled:r===""&&i==="",onClick:()=>v(r,i)}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function ite(){const[e,t]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState(!0),[o,a]=g.useState(),l=async c=>{s(!0),t(void 0);try{await Mt.dropSession({sessionId:c}),t(await Mt.listSessions())}catch(f){a(f.message),t(await Mt.listSessions())}s(!1)};return g.useEffect(()=>{Promise.all([Mt.listSessions(),Mt.getSessionID()]).then(([c,f])=>{t(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),U.jsxs(ie,{children:[U.jsxs(ie,{marginBottom:"5",children:[U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),e&&U.jsx(U.Fragment,{children:e.map(c=>U.jsxs(ie,{children:[c.friendlyName,!c.isThis&&U.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&U.jsx(U.Fragment,{children:" (current)"})]},c.id))}),i&&U.jsx(ws,{})]}),o&&U.jsxs(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function ste(){const[e,t]=g.useState(""),[r,n]=g.useState(),i=async()=>{const s=await Mt.signMessage({message:e});n(s.data.signature)};return U.jsxs(ie,{children:[U.jsx(br,{name:"signMessageText",type:"text",onChange:s=>{t(s.target.value),r!=""&&n("")},value:e,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),U.jsx(Xr,{marginTop:"5",label:"Sign message",disabled:e==="",onClick:()=>i()}),r&&r!==""&&U.jsxs(ie,{flexDirection:"column",marginTop:"5",children:[U.jsxs(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",e,":"]}),U.jsx(ie,{children:U.jsx(Be,{as:"p",wordBreak:"break-word",children:r})})]})]})}function ote(){const[e,t]=g.useState(""),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(),[f,u]=g.useState(!1),[d,v]=g.useState(),m=async()=>{try{v(void 0),u(!0);const y=await Mt.callContract({to:e,abi:r,func:i,args:JSON.parse(o),value:0});Bu(y)?c(y.data.txHash):v(y.data.error),u(!1)}catch(y){console.error(y),u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"callContractAddress",type:"text",onChange:y=>{t(y.target.value)},value:e,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"callContractAbi",type:"text",onChange:y=>{n(y.target.value)},value:r,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"callContractMethod",type:"text",onChange:y=>{s(y.target.value)},value:i,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{name:"callContractArgs",type:"text",onChange:y=>{a(y.target.value)},value:o,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),d&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",d]}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ws,{})}):U.jsx(Xr,{marginTop:"5",label:"Call contract",disabled:e===""&&r===""&&i===""&&o==="",onClick:()=>m()}),l&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${l}`,target:"_blank",rel:"noopener noreferrer",children:l})]})]})}const YE=[{label:"Custom Token",value:""},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function ate(){const[e,t]=g.useState(YE[0].value),[r,n]=g.useState(""),[i,s]=g.useState(!0),[o,a]=g.useState("---"),[l,c]=g.useState(""),[f,u]=g.useState(""),[d,v]=g.useState(""),[m,y]=g.useState(""),[w,x]=g.useState(!1),[b,S]=g.useState(0);g.useEffect(()=>{A(r)},[r]);const A=async $=>{if(!zA($)){a("---");return}a("...");const D=new iG($,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],DP),[G,J,H]=await Promise.all([D.balanceOf(Mt.getAddress()),D.decimals(),D.symbol()]);S(J),a(`${ax(G,J)} ${H}`)},_=async()=>{try{y(""),x(!0);const $=await Mt.sendERC20({token:r,to:l,value:Yh(f,b)});Bu($)?v($.data.txHash):y($.data.error)}catch($){console.error($)}finally{x(!1)}},O=$=>{t($),$===""?(n(""),s(!0)):(n($),s(!1))};return U.jsxs(ie,{children:[U.jsxs(ie,{marginTop:"5",children:[U.jsx(eA,{name:"token",options:YE,value:e??"",onValueChange:$=>O($)}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{type:"text",value:r,disabled:!i,onChange:$=>n($.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),U.jsxs(ie,{marginTop:"3",children:[U.jsxs(Be,{variant:"normal",children:["Token Balance: ",o]}),U.jsx(Xr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>A(r)})]}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{type:"text",value:l,onChange:$=>c($.target.value),placeholder:"Destination Address"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{type:"text",value:f,onChange:$=>u($.target.value),placeholder:"Amount"})}),m&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Be,{color:"error",children:["Error: ",m]})}),w?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ws,{})}):U.jsx(Xr,{marginTop:"5",label:"Send Token",onClick:_}),d&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${d}`,target:"_blank",rel:"noopener noreferrer",children:d})]})]})}function lte(e){var a;const[t,r]=g.useState(""),[n,i]=g.useState("");g.useEffect(()=>{e.onChange(e.index,t,n)},[t,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return U.jsxs(ie,{style:s,children:[U.jsx(ie,{style:o,children:U.jsx(eA,{name:`sendERC1155TokenId${e.index}`,value:t,disabled:!e.options,onValueChange:l=>{r(l)},options:((a=e.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),U.jsx(ie,{style:o,children:U.jsx(br,{type:"text",value:t,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),U.jsx(ie,{style:o,children:U.jsx(br,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),U.jsx(ie,{style:o,children:U.jsx(Xr,{label:"Remove",onClick:()=>e.removeTokenEntry(e.index)})})]})}function cte(){const[e,t]=g.useState(""),[r,n]=g.useState([]),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(""),[f,u]=g.useState(!1),[d,v]=g.useState(void 0),m=()=>{n([...r,{tokenId:"",amount:""}])},y=async()=>{{console.error("Missing INDEXER_API_KEY, ERC1155 token metadata will not be fetched");return}};g.useEffect(()=>{y()},[e]);const w=(S,A)=>{const _=[...r];_[S]=A,n(_)},x=S=>{const A=[...r];A.splice(S,1),n(A)},b=async()=>{try{c(""),u(!0);const S=await Mt.sendERC1155({to:i,token:e,values:r.map(A=>({id:A.tokenId,amount:Yh(A.amount,0)}))});Bu(S)?a(S.data.txHash):c(S.data.error)}catch(S){console.error(S)}finally{u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginBottom:"5",children:U.jsx(br,{type:"text",value:e,onChange:S=>t(S.target.value),placeholder:"Token Contract Address"})}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Xr,{label:"Fetch metadata",onClick:()=>y()})}),r.map((S,A)=>U.jsx(ie,{marginBottom:"3",children:U.jsx(lte,{index:A,options:d,onChange:(_,O,$)=>w(_,{tokenId:O,amount:$}),removeTokenEntry:x})},A)),U.jsx(Xr,{label:"Add Token",onClick:m}),U.jsx(ie,{marginTop:"5",children:U.jsx(br,{type:"text",value:i,onChange:S=>s(S.target.value),placeholder:"Destination Address"})}),l&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Be,{color:"error",children:["Error: ",l]})}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ws,{})}):U.jsx(Xr,{marginTop:"5",label:"Send Tokens",onClick:b}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function fte(){const[e,t]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState([]),[o,a]=g.useState(!1),[l,c]=g.useState(!1);return g.useEffect(()=>{Mt.getAddress().then(f=>{t(f)}).catch(f=>{n(f.message)})},[]),g.useEffect(()=>{Mt.isSignedIn().then(f=>{f||Go.navigate("/login")})},[]),g.useEffect(()=>{const f=i.join("");f.length===6&&(c(!0),Mt.finishValidateSession(f))},[i]),g.useEffect(()=>{const f=Mt.onValidationRequired(()=>{a(!0),Mt.waitForSessionValid(6e5,4e3).then(u=>{console.log("isValid",u),s([]),a(!1),c(!1)})});return()=>{f.then(u=>u())}},[]),U.jsxs(U.Fragment,{children:[U.jsx(NS,{children:o&&U.jsx(gL,{children:U.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:U.jsxs(ie,{flexDirection:"column",alignItems:"center",children:[U.jsx(Be,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),U.jsx(EA,{value:i,digits:6,onChange:s}),U.jsx(ie,{marginTop:"5",children:l&&U.jsx(ws,{})})]})})})}),U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"10",children:U.jsx(CA,{})}),U.jsxs(ie,{marginBottom:"5",flexDirection:"row",children:[U.jsxs(Be,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),U.jsx(Xr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await Mt.dropSession({strict:!1})}catch(f){console.warn(`Could not drop session: ${f.message}`)}Nz(),Go.navigate("/login")}})]}),U.jsx(Mo,{background:"buttonGlass"}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Be,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),U.jsx(ie,{marginBottom:"4",children:e?U.jsx(ie,{children:U.jsx(Be,{children:e})}):U.jsx(ws,{})}),U.jsx(ie,{children:r&&U.jsxs(Be,{children:["Error fetching wallet address: ",r]})}),U.jsx(Mo,{background:"buttonGlass"}),U.jsx(ite,{}),U.jsxs(xc,{marginY:"3",label:"Send native token transaction",children:[U.jsx(Mo,{background:"buttonGlass"}),U.jsx(nte,{})]}),U.jsxs(xc,{marginY:"3",label:"Send ERC20 transaction",children:[U.jsx(Mo,{background:"buttonGlass"}),U.jsx(ate,{})]}),U.jsxs(xc,{marginY:"3",label:"Send ERC1155 transaction",children:[U.jsx(Mo,{background:"buttonGlass"}),U.jsx(cte,{})]}),U.jsxs(xc,{marginY:"3",label:"Sign a message",children:[U.jsx(Mo,{background:"buttonGlass"}),U.jsx(ste,{})]}),U.jsxs(xc,{marginY:"3",label:"Call contracts",children:[U.jsx(Mo,{background:"buttonGlass"}),U.jsx(ote,{})]})]})]})}var OP={};const ute=Rt(JV),dte=Rt(NU),hte=Rt(vV),vte=Rt(oG),yte=Rt(lU),pte=Rt(WV),mte=Rt(wG),gte=Rt(DG),xte=Rt(AU),bte=Rt(oU),JE=Rt(fG),wte=Rt(kW),Ete=Rt(AG),Cte=Rt(mU),Ste=Rt(PU),Ate=Rt(UH),QE=Rt(fV),kte=Rt(JH),Pte=Rt(_W),Rte=Rt(UG),_te=Rt(QG);(function(e){var t=Ls&&Ls.__createBinding||(Object.create?function(H,Z,I,h){h===void 0&&(h=I),Object.defineProperty(H,h,{enumerable:!0,get:function(){return Z[I]}})}:function(H,Z,I,h){h===void 0&&(h=I),H[h]=Z[I]}),r=Ls&&Ls.__setModuleDefault||(Object.create?function(H,Z){Object.defineProperty(H,"default",{enumerable:!0,value:Z})}:function(H,Z){H.default=Z}),n=Ls&&Ls.__importStar||function(H){if(H&&H.__esModule)return H;var Z={};if(H!=null)for(var I in H)I!=="default"&&Object.prototype.hasOwnProperty.call(H,I)&&t(Z,H,I);return r(Z,H),Z};Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e._toEscapedUtf8String=e.nameprep=e.hexDataSlice=e.hexDataLength=e.hexZeroPad=e.hexValue=e.hexStripZeros=e.hexConcat=e.isHexString=e.hexlify=e.base64=e.base58=e.TransactionDescription=e.LogDescription=e.Interface=e.SigningKey=e.HDNode=e.defaultPath=e.isBytesLike=e.isBytes=e.zeroPad=e.stripZeros=e.concat=e.arrayify=e.shallowCopy=e.resolveProperties=e.getStatic=e.defineReadOnly=e.deepCopy=e.checkProperties=e.poll=e.fetchJson=e._fetchData=e.RLP=e.Logger=e.checkResultErrors=e.FormatTypes=e.ParamType=e.FunctionFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.Fragment=e.defaultAbiCoder=e.AbiCoder=void 0,e.Indexed=e.Utf8ErrorReason=e.UnicodeNormalizationForm=e.SupportedAlgorithm=e.mnemonicToSeed=e.isValidMnemonic=e.entropyToMnemonic=e.mnemonicToEntropy=e.getAccountPath=e.verifyTypedData=e.verifyMessage=e.recoverPublicKey=e.computePublicKey=e.recoverAddress=e.computeAddress=e.getJsonWalletAddress=e.TransactionTypes=e.serializeTransaction=e.parseTransaction=e.accessListify=e.joinSignature=e.splitSignature=e.soliditySha256=e.solidityKeccak256=e.solidityPack=e.shuffled=e.randomBytes=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.computeHmac=e.commify=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.isAddress=e.getCreate2Address=e.getContractAddress=e.getIcapAddress=e.getAddress=e._TypedDataEncoder=e.id=e.isValidName=e.namehash=e.hashMessage=e.dnsEncode=e.parseBytes32String=void 0;var i=ute;Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return i.defaultAbiCoder}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return i.FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}});var s=dte;Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return s.getContractAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return s.isAddress}});var o=n(hte);e.base64=o;var a=vte;Object.defineProperty(e,"base58",{enumerable:!0,get:function(){return a.Base58}});var l=yte;Object.defineProperty(e,"arrayify",{enumerable:!0,get:function(){return l.arrayify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return l.concat}}),Object.defineProperty(e,"hexConcat",{enumerable:!0,get:function(){return l.hexConcat}}),Object.defineProperty(e,"hexDataSlice",{enumerable:!0,get:function(){return l.hexDataSlice}}),Object.defineProperty(e,"hexDataLength",{enumerable:!0,get:function(){return l.hexDataLength}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return l.hexlify}}),Object.defineProperty(e,"hexStripZeros",{enumerable:!0,get:function(){return l.hexStripZeros}}),Object.defineProperty(e,"hexValue",{enumerable:!0,get:function(){return l.hexValue}}),Object.defineProperty(e,"hexZeroPad",{enumerable:!0,get:function(){return l.hexZeroPad}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return l.isBytes}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return l.isBytesLike}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return l.isHexString}}),Object.defineProperty(e,"joinSignature",{enumerable:!0,get:function(){return l.joinSignature}}),Object.defineProperty(e,"zeroPad",{enumerable:!0,get:function(){return l.zeroPad}}),Object.defineProperty(e,"splitSignature",{enumerable:!0,get:function(){return l.splitSignature}}),Object.defineProperty(e,"stripZeros",{enumerable:!0,get:function(){return l.stripZeros}});var c=pte;Object.defineProperty(e,"_TypedDataEncoder",{enumerable:!0,get:function(){return c._TypedDataEncoder}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return c.namehash}});var f=mte;Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(e,"entropyToMnemonic",{enumerable:!0,get:function(){return f.entropyToMnemonic}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(e,"HDNode",{enumerable:!0,get:function(){return f.HDNode}}),Object.defineProperty(e,"isValidMnemonic",{enumerable:!0,get:function(){return f.isValidMnemonic}}),Object.defineProperty(e,"mnemonicToEntropy",{enumerable:!0,get:function(){return f.mnemonicToEntropy}}),Object.defineProperty(e,"mnemonicToSeed",{enumerable:!0,get:function(){return f.mnemonicToSeed}});var u=gte;Object.defineProperty(e,"getJsonWalletAddress",{enumerable:!0,get:function(){return u.getJsonWalletAddress}});var d=xte;Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return d.keccak256}});var v=bte;Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return v.Logger}});var m=JE;Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return m.computeHmac}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return m.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return m.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return m.sha512}});var y=wte;Object.defineProperty(e,"solidityKeccak256",{enumerable:!0,get:function(){return y.keccak256}}),Object.defineProperty(e,"solidityPack",{enumerable:!0,get:function(){return y.pack}}),Object.defineProperty(e,"soliditySha256",{enumerable:!0,get:function(){return y.sha256}});var w=Ete;Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return w.randomBytes}}),Object.defineProperty(e,"shuffled",{enumerable:!0,get:function(){return w.shuffled}});var x=Cte;Object.defineProperty(e,"checkProperties",{enumerable:!0,get:function(){return x.checkProperties}}),Object.defineProperty(e,"deepCopy",{enumerable:!0,get:function(){return x.deepCopy}}),Object.defineProperty(e,"defineReadOnly",{enumerable:!0,get:function(){return x.defineReadOnly}}),Object.defineProperty(e,"getStatic",{enumerable:!0,get:function(){return x.getStatic}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return x.resolveProperties}}),Object.defineProperty(e,"shallowCopy",{enumerable:!0,get:function(){return x.shallowCopy}});var b=n(Ste);e.RLP=b;var S=Ate;Object.defineProperty(e,"computePublicKey",{enumerable:!0,get:function(){return S.computePublicKey}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return S.recoverPublicKey}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return S.SigningKey}});var A=QE;Object.defineProperty(e,"formatBytes32String",{enumerable:!0,get:function(){return A.formatBytes32String}}),Object.defineProperty(e,"nameprep",{enumerable:!0,get:function(){return A.nameprep}}),Object.defineProperty(e,"parseBytes32String",{enumerable:!0,get:function(){return A.parseBytes32String}}),Object.defineProperty(e,"_toEscapedUtf8String",{enumerable:!0,get:function(){return A._toEscapedUtf8String}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return A.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return A.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return A.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return A.Utf8ErrorFuncs}});var _=kte;Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return _.accessListify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return _.computeAddress}}),Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return _.parse}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return _.recoverAddress}}),Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return _.serialize}}),Object.defineProperty(e,"TransactionTypes",{enumerable:!0,get:function(){return _.TransactionTypes}});var O=Pte;Object.defineProperty(e,"commify",{enumerable:!0,get:function(){return O.commify}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return O.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return O.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return O.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return O.parseUnits}});var $=Rte;Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return $.verifyMessage}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return $.verifyTypedData}});var D=_te;Object.defineProperty(e,"_fetchData",{enumerable:!0,get:function(){return D._fetchData}}),Object.defineProperty(e,"fetchJson",{enumerable:!0,get:function(){return D.fetchJson}}),Object.defineProperty(e,"poll",{enumerable:!0,get:function(){return D.poll}});var G=JE;Object.defineProperty(e,"SupportedAlgorithm",{enumerable:!0,get:function(){return G.SupportedAlgorithm}});var J=QE;Object.defineProperty(e,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return J.UnicodeNormalizationForm}}),Object.defineProperty(e,"Utf8ErrorReason",{enumerable:!0,get:function(){return J.Utf8ErrorReason}})})(OP);const Tte="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",Mte="eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyIsImVtYWlsQ2xpZW50SWQiOiI1Zmw3ZGc3bXZ1NTM0bzl2ZmpiYzZoajMxcCIsImlkcFJlZ2lvbiI6InVzLWVhc3QtMiJ9",DP=new gW("https://nodes.sequence.app/polygon"),BP=new URLSearchParams(window.location.search);let Ite=BP.get("sequenceKey")??Mte,Nte=$te(BP.get("extendedConfig")??"")??qee.TEMPLATE_NEXT;function $te(e){if(e!=="")return JSON.parse(new TextDecoder().decode(OP.base64.decode(e)))}const Mt=new rte({network:"polygon",key:Ite},Nte),Go=Cz([{path:"/login",element:U.jsx(FW,{})},{path:"/",element:U.jsx(fte,{})}]);ry.createRoot(document.getElementById("root")).render(U.jsx(ur.StrictMode,{children:U.jsx(uj,{children:U.jsx(Rz,{clientId:Tte,children:U.jsx(xz,{router:Go})})})})); diff --git a/assets/index-8a01af79.js b/assets/index-8a01af79.js deleted file mode 100644 index a18f1bb..0000000 --- a/assets/index-8a01af79.js +++ /dev/null @@ -1,197 +0,0 @@ -function Xk(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(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 kE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function jh(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 RE={exports:{}},zh={},PE={exports:{}},Be={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var iu=Symbol.for("react.element"),Zk=Symbol.for("react.portal"),eR=Symbol.for("react.fragment"),tR=Symbol.for("react.strict_mode"),rR=Symbol.for("react.profiler"),nR=Symbol.for("react.provider"),iR=Symbol.for("react.context"),sR=Symbol.for("react.forward_ref"),oR=Symbol.for("react.suspense"),aR=Symbol.for("react.memo"),lR=Symbol.for("react.lazy"),Mb=Symbol.iterator;function cR(t){return t===null||typeof t!="object"?null:(t=Mb&&t[Mb]||t["@@iterator"],typeof t=="function"?t:null)}var TE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_E=Object.assign,ME={};function Rl(t,e,r){this.props=t,this.context=e,this.refs=ME,this.updater=r||TE}Rl.prototype.isReactComponent={};Rl.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")};Rl.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function IE(){}IE.prototype=Rl.prototype;function $p(t,e,r){this.props=t,this.context=e,this.refs=ME,this.updater=r||TE}var Dp=$p.prototype=new IE;Dp.constructor=$p;_E(Dp,Rl.prototype);Dp.isPureReactComponent=!0;var Ib=Array.isArray,NE=Object.prototype.hasOwnProperty,Op={current:null},$E={key:!0,ref:!0,__self:!0,__source:!0};function DE(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)NE.call(e,n)&&!$E.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1>>1,p=T[k];if(0>>1;ki(E,L))Fi(j,E)?(T[k]=j,T[F]=L,k=F):(T[k]=E,T[B]=L,k=B);else if(Fi(j,L))T[k]=j,T[F]=L,k=F;else break e}}return N}function i(T,N){var L=T.sortIndex-N.sortIndex;return L!==0?L:T.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],f=1,u=null,d=3,v=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(T){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=T)n(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=r(c)}}function A(T){if(y=!1,S(T),!m)if(r(l)!==null)m=!0,R(_);else{var N=r(c);N!==null&&M(A,N.startTime-T)}}function _(T,N){m=!1,y&&(y=!1,x(O),O=-1),v=!0;var L=d;try{for(S(N),u=r(l);u!==null&&(!(u.expirationTime>N)||T&&!Q());){var k=u.callback;if(typeof k=="function"){u.callback=null,d=u.priorityLevel;var p=k(u.expirationTime<=N);N=t.unstable_now(),typeof p=="function"?u.callback=p:u===r(l)&&n(l),S(N)}else n(l);u=r(l)}if(u!==null)var P=!0;else{var B=r(c);B!==null&&M(A,B.startTime-N),P=!1}return P}finally{u=null,d=L,v=!1}}var D=!1,$=null,O=-1,H=5,Y=-1;function Q(){return!(t.unstable_now()-YT||125k?(T.sortIndex=L,e(c,T),r(l)===null&&T===r(c)&&(y?(x(O),O=-1):y=!0,M(A,L-k))):(T.sortIndex=p,e(l,T),m||v||(m=!0,R(_))),T},t.unstable_shouldYield=Q,t.unstable_wrapCallback=function(T){var N=d;return function(){var L=d;d=N;try{return T.apply(this,arguments)}finally{d=L}}}})(jE);FE.exports=jE;var bR=FE.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zE=g,cn=bR;function se(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jv=Object.prototype.hasOwnProperty,wR=/^[: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]*$/,$b={},Db={};function ER(t){return jv.call(Db,t)?!0:jv.call($b,t)?!1:wR.test(t)?Db[t]=!0:($b[t]=!0,!1)}function CR(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 SR(t,e,r,n){if(e===null||typeof e>"u"||CR(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 zr(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 br={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){br[t]=new zr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];br[e]=new zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){br[t]=new zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){br[t]=new zr(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){br[t]=new zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){br[t]=new zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){br[t]=new zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){br[t]=new zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){br[t]=new zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bp=/[\-:]([a-z])/g;function Fp(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(Bp,Fp);br[e]=new zr(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(Bp,Fp);br[e]=new zr(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(Bp,Fp);br[e]=new zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!1,!1)});br.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){br[t]=new zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function jp(t,e,r,n){var i=br.hasOwnProperty(e)?br[e]:null;(i!==null?i.type!==0:n||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{r1=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Fc(t):""}function AR(t){switch(t.tag){case 5:return Fc(t.type);case 16:return Fc("Lazy");case 13:return Fc("Suspense");case 19:return Fc("SuspenseList");case 0:case 2:case 15:return t=n1(t.type,!1),t;case 11:return t=n1(t.type.render,!1),t;case 1:return t=n1(t.type,!0),t;default:return""}}function qv(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 Pa:return"Fragment";case Ra:return"Portal";case zv:return"Profiler";case zp:return"StrictMode";case Uv:return"Suspense";case Vv:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case qE:return(t.displayName||"Context")+".Consumer";case VE:return(t._context.displayName||"Context")+".Provider";case Up:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Vp:return e=t.displayName||null,e!==null?e:qv(t.type)||"Memo";case Ns:e=t._payload,t=t._init;try{return qv(t(e))}catch{}}return null}function kR(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 qv(e);case 8:return e===zp?"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 eo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function GE(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function RR(t){var e=GE(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 _u(t){t._valueTracker||(t._valueTracker=RR(t))}function WE(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=GE(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Fd(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 Hv(t,e){var r=e.checked;return Dt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Lb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=eo(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 KE(t,e){e=e.checked,e!=null&&jp(t,"checked",e,!1)}function Gv(t,e){KE(t,e);var r=eo(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")?Wv(t,e.type,r):e.hasOwnProperty("defaultValue")&&Wv(t,e.type,eo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Bb(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 Wv(t,e,r){(e!=="number"||Fd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var jc=Array.isArray;function Wa(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Mu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function bf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Wc={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},PR=["Webkit","ms","Moz","O"];Object.keys(Wc).forEach(function(t){PR.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wc[e]=Wc[t]})});function XE(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Wc.hasOwnProperty(t)&&Wc[t]?(""+e).trim():e+"px"}function ZE(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=XE(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var TR=Dt({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 Qv(t,e){if(e){if(TR[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(se(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(se(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(se(61))}if(e.style!=null&&typeof e.style!="object")throw Error(se(62))}}function Jv(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 Xv=null;function qp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zv=null,Ka=null,Ya=null;function zb(t){if(t=au(t)){if(typeof Zv!="function")throw Error(se(280));var e=t.stateNode;e&&(e=Gh(e),Zv(t.stateNode,t.type,e))}}function e5(t){Ka?Ya?Ya.push(t):Ya=[t]:Ka=t}function t5(){if(Ka){var t=Ka,e=Ya;if(Ya=Ka=null,zb(t),e)for(t=0;t>>=0,t===0?32:31-(jR(t)/zR|0)|0}var Iu=64,Nu=4194304;function zc(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 Vd(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 a=o&~i;a!==0?n=zc(a):(s&=o,s!==0&&(n=zc(s)))}else o=r&~i,o!==0?n=zc(o):s!==0&&(n=zc(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;0r;r++)e.push(t);return e}function su(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ei(e),t[e]=r}function HR(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=Yc),Qb=String.fromCharCode(32),Jb=!1;function w5(t,e){switch(t){case"keyup":return xP.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E5(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ta=!1;function wP(t,e){switch(t){case"compositionend":return E5(e);case"keypress":return e.which!==32?null:(Jb=!0,Qb);case"textInput":return t=e.data,t===Qb&&Jb?null:t;default:return null}}function EP(t,e){if(Ta)return t==="compositionend"||!Xp&&w5(t,e)?(t=x5(),pd=Yp=js=null,Ta=!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)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=t2(r)}}function k5(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?k5(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function R5(){for(var t=window,e=Fd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Fd(t.document)}return e}function Zp(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 MP(t){var e=R5(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&k5(r.ownerDocument.documentElement,r)){if(n!==null&&Zp(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=r2(r,s);var o=r2(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=document.documentMode,_a=null,sy=null,Jc=null,oy=!1;function n2(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;oy||_a==null||_a!==Fd(n)||(n=_a,"selectionStart"in n&&Zp(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Jc&&kf(Jc,n)||(Jc=n,n=Gd(sy,"onSelect"),0Na||(t.current=dy[Na],dy[Na]=null,Na--)}function xt(t,e){Na++,dy[Na]=t.current,t.current=e}var to={},Tr=uo(to),Gr=uo(!1),Ho=to;function cl(t,e){var r=t.type.contextTypes;if(!r)return to;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 Kd(){St(Gr),St(Tr)}function f2(t,e,r){if(Tr.current!==to)throw Error(se(168));xt(Tr,e),xt(Gr,r)}function O5(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(se(108,kR(t)||"Unknown",i));return Dt({},r,n)}function Yd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||to,Ho=Tr.current,xt(Tr,t),xt(Gr,Gr.current),!0}function u2(t,e,r){var n=t.stateNode;if(!n)throw Error(se(169));r?(t=O5(t,e,Ho),n.__reactInternalMemoizedMergedChildContext=t,St(Gr),St(Tr),xt(Tr,t)):St(Gr),xt(Gr,r)}var es=null,Wh=!1,m1=!1;function L5(t){es===null?es=[t]:es.push(t)}function VP(t){Wh=!0,L5(t)}function ho(){if(!m1&&es!==null){m1=!0;var t=0,e=ot;try{var r=es;for(ot=1;t>=o,i-=o,ns=1<<32-ei(e)+i|r<O?(H=$,$=null):H=$.sibling;var Y=d(x,$,S[O],A);if(Y===null){$===null&&($=H);break}t&&$&&Y.alternate===null&&e(x,$),b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y,$=H}if(O===S.length)return r(x,$),Rt&&So(x,O),_;if($===null){for(;OO?(H=$,$=null):H=$.sibling;var Q=d(x,$,Y.value,A);if(Q===null){$===null&&($=H);break}t&&$&&Q.alternate===null&&e(x,$),b=s(Q,b,O),D===null?_=Q:D.sibling=Q,D=Q,$=H}if(Y.done)return r(x,$),Rt&&So(x,O),_;if($===null){for(;!Y.done;O++,Y=S.next())Y=u(x,Y.value,A),Y!==null&&(b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y);return Rt&&So(x,O),_}for($=n(x,$);!Y.done;O++,Y=S.next())Y=v($,x,O,Y.value,A),Y!==null&&(t&&Y.alternate!==null&&$.delete(Y.key===null?O:Y.key),b=s(Y,b,O),D===null?_=Y:D.sibling=Y,D=Y);return t&&$.forEach(function(re){return e(x,re)}),Rt&&So(x,O),_}function w(x,b,S,A){if(typeof S=="object"&&S!==null&&S.type===Pa&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Tu:e:{for(var _=S.key,D=b;D!==null;){if(D.key===_){if(_=S.type,_===Pa){if(D.tag===7){r(x,D.sibling),b=i(D,S.props.children),b.return=x,x=b;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ns&&g2(_)===D.type){r(x,D.sibling),b=i(D,S.props),b.ref=nc(x,D,S),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}S.type===Pa?(b=Fo(S.props.children,x.mode,A,S.key),b.return=x,x=b):(A=Sd(S.type,S.key,S.props,null,x.mode,A),A.ref=nc(x,b,S),A.return=x,x=A)}return o(x);case Ra:e:{for(D=S.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){r(x,b.sibling),b=i(b,S.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=A1(S,x.mode,A),b.return=x,x=b}return o(x);case Ns:return D=S._init,w(x,b,D(S._payload),A)}if(jc(S))return m(x,b,S,A);if(Xl(S))return y(x,b,S,A);ju(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,S),b.return=x,x=b):(r(x,b),b=S1(S,x.mode,A),b.return=x,x=b),o(x)):r(x,b)}return w}var ul=H5(!0),G5=H5(!1),lu={},Di=uo(lu),_f=uo(lu),Mf=uo(lu);function Io(t){if(t===lu)throw Error(se(174));return t}function lm(t,e){switch(xt(Mf,e),xt(_f,t),xt(Di,lu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Yv(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Yv(e,t)}St(Di),xt(Di,e)}function dl(){St(Di),St(_f),St(Mf)}function W5(t){Io(Mf.current);var e=Io(Di.current),r=Yv(e,t.type);e!==r&&(xt(_f,t),xt(Di,r))}function cm(t){_f.current===t&&(St(Di),St(_f))}var It=uo(0);function th(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 g1=[];function fm(){for(var t=0;tr?r:4,t(!0);var n=x1.transition;x1.transition={};try{t(!1),e()}finally{ot=r,x1.transition=n}}function c8(){return Pn().memoizedState}function WP(t,e,r){var n=Ks(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},f8(t))u8(e,r);else if(r=z5(t,e,r,n),r!==null){var i=Fr();ti(r,t,n,i),d8(r,e,n)}}function KP(t,e,r){var n=Ks(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(f8(t))u8(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,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,ii(a,o)){var l=e.interleaved;l===null?(i.next=i,om(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=z5(t,e,i,n),r!==null&&(i=Fr(),ti(r,t,n,i),d8(r,e,n))}}function f8(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function u8(t,e){Xc=rh=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function d8(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Gp(t,r)}}var nh={readContext:Rn,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},YP={readContext:Rn,useCallback:function(t,e){return gi().memoizedState=[t,e===void 0?null:e],t},useContext:Rn,useEffect:b2,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,bd(4194308,4,i8.bind(null,e,t),r)},useLayoutEffect:function(t,e){return bd(4194308,4,t,e)},useInsertionEffect:function(t,e){return bd(4,2,t,e)},useMemo:function(t,e){var r=gi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=gi();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=WP.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=gi();return t={current:t},e.memoizedState=t},useState:x2,useDebugValue:ym,useDeferredValue:function(t){return gi().memoizedState=t},useTransition:function(){var t=x2(!1),e=t[0];return t=GP.bind(null,t[1]),gi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=gi();if(Rt){if(r===void 0)throw Error(se(407));r=r()}else{if(r=e(),dr===null)throw Error(se(349));Wo&30||Q5(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,b2(X5.bind(null,n,s,t),[t]),n.flags|=2048,$f(9,J5.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=gi(),e=dr.identifierPrefix;if(Rt){var r=is,n=ns;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=If++,0<\/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[Ei]=e,t[Tf]=n,w8(t,e,!1,!1),e.stateNode=t;e:{switch(o=Jv(r,n),r){case"dialog":Ct("cancel",t),Ct("close",t),i=n;break;case"iframe":case"object":case"embed":Ct("load",t),i=n;break;case"video":case"audio":for(i=0;ivl&&(e.flags|=128,n=!0,ic(s,!1),e.lanes=4194304)}else{if(!n)if(t=th(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),ic(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Rt)return Sr(e),null}else 2*Wt()-s.renderingStartTime>vl&&r!==1073741824&&(e.flags|=128,n=!0,ic(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=Wt(),e.sibling=null,r=It.current,xt(It,n?r&1|2:r&1),e):(Sr(e),null);case 22:case 23:return wm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?tn&1073741824&&(Sr(e),e.subtreeFlags&6&&(e.flags|=8192)):Sr(e),null;case 24:return null;case 25:return null}throw Error(se(156,e.tag))}function nT(t,e){switch(tm(e),e.tag){case 1:return Wr(e.type)&&Kd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return dl(),St(Gr),St(Tr),fm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cm(e),null;case 13:if(St(It),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(se(340));fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return St(It),null;case 4:return dl(),null;case 10:return sm(e.type._context),null;case 22:case 23:return wm(),null;case 24:return null;default:return null}}var Uu=!1,Ar=!1,iT=typeof WeakSet=="function"?WeakSet:Set,pe=null;function La(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ft(t,e,n)}else r.current=null}function Sy(t,e,r){try{r()}catch(n){Ft(t,e,n)}}var T2=!1;function sT(t,e){if(ay=qd,t=R5(),Zp(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,a=-1,l=-1,c=0,f=0,u=t,d=null;t:for(;;){for(var v;u!==r||i!==0&&u.nodeType!==3||(a=o+i),u!==s||n!==0&&u.nodeType!==3||(l=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===t)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ly={focusedElem:t,selectionRange:r},qd=!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 m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:Wn(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(se(163))}}catch(A){Ft(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return m=T2,T2=!1,m}function Zc(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&&Sy(e,r,s)}i=i.next}while(i!==n)}}function Qh(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 Ay(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 S8(t){var e=t.alternate;e!==null&&(t.alternate=null,S8(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ei],delete e[Tf],delete e[uy],delete e[zP],delete e[UP])),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 A8(t){return t.tag===5||t.tag===3||t.tag===4}function _2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||A8(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 ky(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=Wd));else if(n!==4&&(t=t.child,t!==null))for(ky(t,e,r),t=t.sibling;t!==null;)ky(t,e,r),t=t.sibling}function Ry(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(Ry(t,e,r),t=t.sibling;t!==null;)Ry(t,e,r),t=t.sibling}var mr=null,Yn=!1;function ks(t,e,r){for(r=r.child;r!==null;)k8(t,e,r),r=r.sibling}function k8(t,e,r){if($i&&typeof $i.onCommitFiberUnmount=="function")try{$i.onCommitFiberUnmount(Uh,r)}catch{}switch(r.tag){case 5:Ar||La(r,e);case 6:var n=mr,i=Yn;mr=null,ks(t,e,r),mr=n,Yn=i,mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):mr.removeChild(r.stateNode));break;case 18:mr!==null&&(Yn?(t=mr,r=r.stateNode,t.nodeType===8?p1(t.parentNode,r):t.nodeType===1&&p1(t,r),Sf(t)):p1(mr,r.stateNode));break;case 4:n=mr,i=Yn,mr=r.stateNode.containerInfo,Yn=!0,ks(t,e,r),mr=n,Yn=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(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)&&Sy(r,e,o),i=i.next}while(i!==n)}ks(t,e,r);break;case 1:if(!Ar&&(La(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Ft(r,e,a)}ks(t,e,r);break;case 21:ks(t,e,r);break;case 22:r.mode&1?(Ar=(n=Ar)||r.memoizedState!==null,ks(t,e,r),Ar=n):ks(t,e,r);break;default:ks(t,e,r)}}function M2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new iT),e.forEach(function(n){var i=vT.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function zn(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~s}if(n=i,n=Wt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aT(n/1960))-n,10t?16:t,zs===null)var n=!1;else{if(t=zs,zs=null,oh=0,Ke&6)throw Error(se(331));var i=Ke;for(Ke|=4,pe=t.current;pe!==null;){var s=pe,o=s.child;if(pe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lWt()-xm?Bo(t,0):gm|=r),Kr(t,e)}function $8(t,e){e===0&&(t.mode&1?(e=Nu,Nu<<=1,!(Nu&130023424)&&(Nu=4194304)):e=1);var r=Fr();t=vs(t,e),t!==null&&(su(t,e,r),Kr(t,r))}function hT(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),$8(t,r)}function vT(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(se(314))}n!==null&&n.delete(e),$8(t,r)}var D8;D8=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gr.current)Hr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return Hr=!1,tT(t,e,r);Hr=!!(t.flags&131072)}else Hr=!1,Rt&&e.flags&1048576&&B5(e,Jd,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;wd(t,e),t=e.pendingProps;var i=cl(e,Tr.current);Ja(e,r),i=dm(null,e,n,t,i,r);var s=hm();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,Yd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,am(e),i.updater=Kh,e.stateNode=i,i._reactInternals=e,my(e,n,t,r),e=by(null,e,n,!0,s,r)):(e.tag=0,Rt&&s&&em(e),Lr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(wd(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=pT(n),t=Wn(n,t),i){case 0:e=xy(null,e,n,t,r);break e;case 1:e=k2(null,e,n,t,r);break e;case 11:e=S2(null,e,n,t,r);break e;case 14:e=A2(null,e,n,Wn(n.type,t),r);break e}throw Error(se(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),xy(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),k2(t,e,n,i,r);case 3:e:{if(g8(e),t===null)throw Error(se(387));n=e.pendingProps,s=e.memoizedState,i=s.element,U5(t,e),eh(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=hl(Error(se(423)),e),e=R2(t,e,n,r,i);break e}else if(n!==i){i=hl(Error(se(424)),e),e=R2(t,e,n,r,i);break e}else for(on=Hs(e.stateNode.containerInfo.firstChild),ln=e,Rt=!0,Jn=null,r=G5(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fl(),n===i){e=ys(t,e,r);break e}Lr(t,e,n,r)}e=e.child}return e;case 5:return W5(e),t===null&&vy(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,cy(n,i)?o=null:s!==null&&cy(n,s)&&(e.flags|=32),m8(t,e),Lr(t,e,o,r),e.child;case 6:return t===null&&vy(e),null;case 13:return x8(t,e,r);case 4:return lm(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=ul(e,null,n,r):Lr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),S2(t,e,n,i,r);case 7:return Lr(t,e,e.pendingProps,r),e.child;case 8:return Lr(t,e,e.pendingProps.children,r),e.child;case 12:return Lr(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,xt(Xd,n._currentValue),n._currentValue=o,s!==null)if(ii(s.value,o)){if(s.children===i.children&&!Gr.current){e=ys(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=as(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),yy(s.return,r,e),a.lanes|=r;break}l=l.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(se(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),yy(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}Lr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Ja(e,r),i=Rn(i),n=n(i),e.flags|=1,Lr(t,e,n,r),e.child;case 14:return n=e.type,i=Wn(n,e.pendingProps),i=Wn(n.type,i),A2(t,e,n,i,r);case 15:return y8(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Wn(n,i),wd(t,e),e.tag=1,Wr(n)?(t=!0,Yd(e)):t=!1,Ja(e,r),q5(e,n,i),my(e,n,i,r),by(null,e,n,!0,t,r);case 19:return b8(t,e,r);case 22:return p8(t,e,r)}throw Error(se(156,e.tag))};function O8(t,e){return l5(t,e)}function yT(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 Sn(t,e,r,n){return new yT(t,e,r,n)}function Cm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pT(t){if(typeof t=="function")return Cm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Up)return 11;if(t===Vp)return 14}return 2}function Ys(t,e){var r=t.alternate;return r===null?(r=Sn(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 Sd(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")Cm(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Pa:return Fo(r.children,i,s,e);case zp:o=8,i|=8;break;case zv:return t=Sn(12,r,e,i|2),t.elementType=zv,t.lanes=s,t;case Uv:return t=Sn(13,r,e,i),t.elementType=Uv,t.lanes=s,t;case Vv:return t=Sn(19,r,e,i),t.elementType=Vv,t.lanes=s,t;case HE:return Xh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case VE:o=10;break e;case qE:o=9;break e;case Up:o=11;break e;case Vp:o=14;break e;case Ns:o=16,n=null;break e}throw Error(se(130,t==null?t:typeof t,""))}return e=Sn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Fo(t,e,r,n){return t=Sn(7,t,n,e),t.lanes=r,t}function Xh(t,e,r,n){return t=Sn(22,t,n,e),t.elementType=HE,t.lanes=r,t.stateNode={isHidden:!1},t}function S1(t,e,r){return t=Sn(6,t,null,e),t.lanes=r,t}function A1(t,e,r){return e=Sn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function mT(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=s1(0),this.expirationTimes=s1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sm(t,e,r,n,i,s,o,a,l){return t=new mT(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Sn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},am(s),t}function gT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j8)}catch(t){console.error(t)}}j8(),BE.exports=hn;var vo=BE.exports;const CT=bs(vo);var F2=vo;Fv.createRoot=F2.createRoot,Fv.hydrateRoot=F2.hydrateRoot;const z8=g.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),n0=g.createContext({}),i0=g.createContext(null),s0=typeof document<"u",Pm=s0?g.useLayoutEffect:g.useEffect,U8=g.createContext({strict:!1});function ST(t,e,r,n){const{visualElement:i}=g.useContext(n0),s=g.useContext(U8),o=g.useContext(i0),a=g.useContext(z8).reducedMotion,l=g.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;g.useInsertionEffect(()=>{c&&c.update(r,o)});const f=g.useRef(!!window.HandoffAppearAnimations);return Pm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),g.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)}),c}function Fa(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function AT(t,e,r){return g.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Fa(r)&&(r.current=n))},[e])}function Of(t){return typeof t=="string"||Array.isArray(t)}function o0(t){return typeof t=="object"&&typeof t.start=="function"}const Tm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_m=["initial",...Tm];function a0(t){return o0(t.animate)||_m.some(e=>Of(t[e]))}function V8(t){return!!(a0(t)||t.variants)}function kT(t,e){if(a0(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Of(r)?r:void 0,animate:Of(n)?n:void 0}}return t.inherit!==!1?e:{}}function RT(t){const{initial:e,animate:r}=kT(t,g.useContext(n0));return g.useMemo(()=>({initial:e,animate:r}),[j2(e),j2(r)])}function j2(t){return Array.isArray(t)?t.join(" "):t}const z2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Lf={};for(const t in z2)Lf[t]={isEnabled:e=>z2[t].some(r=>!!e[r])};function PT(t){for(const e in t)Lf[e]={...Lf[e],...t[e]}}const Mm=g.createContext({}),q8=g.createContext({}),TT=Symbol.for("motionComponentSymbol");function _T({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&PT(t);function s(a,l){let c;const f={...g.useContext(z8),...a,layoutId:MT(a)},{isStatic:u}=f,d=RT(a),v=n(a,u);if(!u&&s0){d.visualElement=ST(i,v,f,e);const m=g.useContext(q8),y=g.useContext(U8).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,m))}return g.createElement(n0.Provider,{value:d},c&&d.visualElement?g.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,AT(v,d.visualElement,l),v,u,d.visualElement))}const o=g.forwardRef(s);return o[TT]=i,o}function MT({layoutId:t}){const e=g.useContext(Mm).id;return e&&t!==void 0?e+"-"+t:t}function IT(t){function e(n,i={}){return _T(t(n,i))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,i)=>(r.has(i)||r.set(i,e(i)),r.get(i))})}const NT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Im(t){return typeof t!="string"||t.includes("-")?!1:!!(NT.indexOf(t)>-1||/[A-Z]/.test(t))}const ch={};function $T(t){Object.assign(ch,t)}const cu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],aa=new Set(cu);function H8(t,{layout:e,layoutId:r}){return aa.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!ch[t]||t==="opacity")}const Qr=t=>!!(t&&t.getVelocity),DT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OT=cu.length;function LT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),W8=G8("--"),Iy=G8("var(--"),BT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,FT=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ro=(t,e,r)=>Math.min(Math.max(r,t),e),la={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},rf={...la,transform:t=>ro(0,1,t)},Hu={...la,default:1},nf=t=>Math.round(t*1e5)/1e5,l0=/(-)?([\d]*\.?[\d])+/g,K8=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function fu(t){return typeof t=="string"}const uu=t=>({test:e=>fu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),_s=uu("deg"),Oi=uu("%"),Ce=uu("px"),zT=uu("vh"),UT=uu("vw"),U2={...Oi,parse:t=>Oi.parse(t)/100,transform:t=>Oi.transform(t*100)},V2={...la,transform:Math.round},Y8={borderWidth:Ce,borderTopWidth:Ce,borderRightWidth:Ce,borderBottomWidth:Ce,borderLeftWidth:Ce,borderRadius:Ce,radius:Ce,borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomRightRadius:Ce,borderBottomLeftRadius:Ce,width:Ce,maxWidth:Ce,height:Ce,maxHeight:Ce,size:Ce,top:Ce,right:Ce,bottom:Ce,left:Ce,padding:Ce,paddingTop:Ce,paddingRight:Ce,paddingBottom:Ce,paddingLeft:Ce,margin:Ce,marginTop:Ce,marginRight:Ce,marginBottom:Ce,marginLeft:Ce,rotate:_s,rotateX:_s,rotateY:_s,rotateZ:_s,scale:Hu,scaleX:Hu,scaleY:Hu,scaleZ:Hu,skew:_s,skewX:_s,skewY:_s,distance:Ce,translateX:Ce,translateY:Ce,translateZ:Ce,x:Ce,y:Ce,z:Ce,perspective:Ce,transformPerspective:Ce,opacity:rf,originX:U2,originY:U2,originZ:Ce,zIndex:V2,fillOpacity:rf,strokeOpacity:rf,numOctaves:V2};function Nm(t,e,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const d=e[u];if(W8(u)){s[u]=d;continue}const v=Y8[u],m=FT(d,v);if(aa.has(u)){if(l=!0,o[u]=m,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(e.transform||(l||n?i.transform=LT(t.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const $m=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Q8(t,e,r){for(const n in e)!Qr(e[n])&&!H8(n,r)&&(t[n]=e[n])}function VT({transformTemplate:t},e,r){return g.useMemo(()=>{const n=$m();return Nm(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function qT(t,e,r){const n=t.style||{},i={};return Q8(i,n,t),Object.assign(i,VT(t,e,r)),t.transformValues?t.transformValues(i):i}function HT(t,e,r){const n={},i=qT(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const GT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function fh(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||GT.has(t)}let J8=t=>!fh(t);function WT(t){t&&(J8=e=>e.startsWith("on")?!fh(e):t(e))}try{WT(require("@emotion/is-prop-valid").default)}catch{}function KT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(J8(i)||r===!0&&fh(i)||!e&&!fh(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function q2(t,e,r){return typeof t=="string"?t:Ce.transform(e+r*t)}function YT(t,e,r){const n=q2(e,t.x,t.width),i=q2(r,t.y,t.height);return`${n} ${i}`}const QT={offset:"stroke-dashoffset",array:"stroke-dasharray"},JT={offset:"strokeDashoffset",array:"strokeDasharray"};function XT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?QT:JT;t[s.offset]=Ce.transform(-n);const o=Ce.transform(e),a=Ce.transform(r);t[s.array]=`${o} ${a}`}function Dm(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(Nm(t,c,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:m,dimensions:y}=t;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=YT(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(v.x=e),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&&XT(v,o,a,l,!1)}const X8=()=>({...$m(),attrs:{}}),Om=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ZT(t,e,r,n){const i=g.useMemo(()=>{const s=X8();return Dm(s,e,{enableHardwareAcceleration:!1},Om(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Q8(s,t.style,t),i.style={...s,...i.style}}return i}function e_(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Im(r)?ZT:HT)(n,s,o,r),f={...KT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=g.useMemo(()=>Qr(u)?u.get():u,[u]);return g.createElement(r,{...f,children:d})}}const Lm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Z8(t,{style:e,vars:r},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const eC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tC(t,e,r,n){Z8(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(eC.has(i)?i:Lm(i),e.attrs[i])}function Bm(t,e){const{style:r}=t,n={};for(const i in r)(Qr(r[i])||e.style&&Qr(e.style[i])||H8(i,t))&&(n[i]=r[i]);return n}function rC(t,e){const r=Bm(t,e);for(const n in t)if(Qr(t[n])||Qr(e[n])){const i=cu.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function Fm(t,e,r,n={},i={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),e}function nC(t){const e=g.useRef(null);return e.current===null&&(e.current=t()),e.current}const uh=t=>Array.isArray(t),t_=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),r_=t=>uh(t)?t[t.length-1]||0:t;function Ad(t){const e=Qr(t)?t.get():t;return t_(e)?e.toValue():e}function n_({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:i_(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const iC=t=>(e,r)=>{const n=g.useContext(n0),i=g.useContext(i0),s=()=>n_(t,e,n,i);return r?s():nC(s)};function i_(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=Ad(s[d]);let{initial:o,animate:a}=t;const l=a0(t),c=V8(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const u=f?a:o;return u&&typeof u!="boolean"&&!o0(u)&&(Array.isArray(u)?u:[u]).forEach(v=>{const m=Fm(t,v);if(!m)return;const{transitionEnd:y,transition:w,...x}=m;for(const b in x){let S=x[b];if(Array.isArray(S)){const A=f?S.length-1:0;S=S[A]}S!==null&&(i[b]=S)}for(const b in y)i[b]=y[b]}),i}const jt=t=>t;class H2{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function s_(t){let e=new H2,r=new H2,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?e:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=e.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c(u[d]=s_(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,o_),1),i.timestamp=u,i.isProcessing=!0,Gu.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:Gu.reduce((u,d)=>{const v=s[d];return u[d]=(m,y=!1,w=!1)=>(r||l(),v.schedule(m,y,w)),u},{}),cancel:u=>Gu.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:wt,cancel:ps,state:lr,steps:k1}=a_(typeof requestAnimationFrame<"u"?requestAnimationFrame:jt,!0),l_={useVisualState:iC({scrapeMotionValuesFromProps:rC,createRenderState:X8,onMount:(t,e,{renderState:r,latestValues:n})=>{wt.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),wt.render(()=>{Dm(r,n,{enableHardwareAcceleration:!1},Om(e.tagName),t.transformTemplate),tC(e,r)})}})},c_={useVisualState:iC({scrapeMotionValuesFromProps:Bm,createRenderState:$m})};function f_(t,{forwardMotionProps:e=!1},r,n){return{...Im(t)?l_:c_,preloadedFeatures:r,useRender:e_(e),createVisualElement:n,Component:t}}function ss(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const sC=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function c0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const u_=t=>e=>sC(e)&&t(e,c0(e));function ls(t,e,r,n){return ss(t,e,u_(r),n)}const d_=(t,e)=>r=>e(t(r)),Qs=(...t)=>t.reduce(d_);function oC(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const G2=oC("dragHorizontal"),W2=oC("dragVertical");function aC(t){let e=!1;if(t==="y")e=W2();else if(t==="x")e=G2();else{const r=G2(),n=W2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function lC(){const t=aC(!0);return t?(t(),!1):!0}class yo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function K2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||lC())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&wt.update(()=>a[n](s,o))};return ls(t.current,r,i,{passive:!t.getProps()[n]})}class h_ extends yo{mount(){this.unmount=Qs(K2(this.node,!0),K2(this.node,!1))}unmount(){}}class v_ extends yo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Qs(ss(this.node.current,"focus",()=>this.onFocus()),ss(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cC=(t,e)=>e?t===e?!0:cC(t,e.parentElement):!1;function R1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,c0(r))}class y_ extends yo{constructor(){super(...arguments),this.removeStartListeners=jt,this.removeEndListeners=jt,this.removeAccessibleListeners=jt,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=ls(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f}=this.node.getProps();wt.update(()=>{cC(this.node.current,a.target)?c&&c(a,l):f&&f(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=ls(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qs(s,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||R1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&wt.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ss(this.node.current,"keyup",o),R1("down",(a,l)=>{this.startPress(a,l)})},r=ss(this.node.current,"keydown",e),n=()=>{this.isPressing&&R1("cancel",(s,o)=>this.cancelPress(s,o))},i=ss(this.node.current,"blur",n);this.removeAccessibleListeners=Qs(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&wt.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!lC()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&wt.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=ls(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ss(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qs(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ny=new WeakMap,P1=new WeakMap,p_=t=>{const e=Ny.get(t.target);e&&e(t)},m_=t=>{t.forEach(p_)};function g_({root:t,...e}){const r=t||document;P1.has(r)||P1.set(r,{});const n=P1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(m_,{root:t,...e})),n[i]}function x_(t,e,r){const n=g_(e);return Ny.set(t,r),n.observe(t),()=>{Ny.delete(t),n.unobserve(t)}}const b_={some:0,all:1};class w_ extends yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:b_[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return x_(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(E_(e,r))&&this.startObserver()}unmount(){}}function E_({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const C_={inView:{Feature:w_},tap:{Feature:y_},focus:{Feature:v_},hover:{Feature:h_}};function fC(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;ne[n]=r.get()),e}function A_(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function f0(t,e,r){const n=t.getProps();return Fm(n,e,r!==void 0?r:n.custom,S_(t),A_(t))}const k_="framerAppearId",R_="data-"+Lm(k_);let P_=jt,jm=jt;const Js=t=>t*1e3,cs=t=>t/1e3,T_={current:!1},uC=t=>Array.isArray(t)&&typeof t[0]=="number";function dC(t){return!!(!t||typeof t=="string"&&hC[t]||uC(t)||Array.isArray(t)&&t.every(dC))}const Vc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,hC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vc([0,.65,.55,1]),circOut:Vc([.55,0,1,.45]),backIn:Vc([.31,.01,.66,-.59]),backOut:Vc([.33,1.53,.69,.99])};function vC(t){if(t)return uC(t)?Vc(t):Array.isArray(t)?t.map(vC):hC[t]}function __(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:r};l&&(c.offset=l);const f=vC(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function M_(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const yC=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,I_=1e-7,N_=12;function $_(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=yC(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>I_&&++a$_(s,0,1,t,r);return s=>s===0||s===1?s:yC(i(s),e,n)}const D_=du(.42,0,1,1),O_=du(0,0,.58,1),pC=du(.42,0,.58,1),L_=t=>Array.isArray(t)&&typeof t[0]!="number",mC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,gC=t=>e=>1-t(1-e),xC=t=>1-Math.sin(Math.acos(t)),zm=gC(xC),B_=mC(zm),bC=du(.33,1.53,.69,.99),Um=gC(bC),F_=mC(Um),j_=t=>(t*=2)<1?.5*Um(t):.5*(2-Math.pow(2,-10*(t-1))),z_={linear:jt,easeIn:D_,easeInOut:pC,easeOut:O_,circIn:xC,circInOut:B_,circOut:zm,backIn:Um,backInOut:F_,backOut:bC,anticipate:j_},Y2=t=>{if(Array.isArray(t)){jm(t.length===4);const[e,r,n,i]=t;return du(e,r,n,i)}else if(typeof t=="string")return z_[t];return t},Vm=(t,e)=>r=>!!(fu(r)&&jT.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),wC=(t,e,r)=>n=>{if(!fu(n))return n;const[i,s,o,a]=n.match(l0);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},U_=t=>ro(0,255,t),T1={...la,transform:t=>Math.round(U_(t))},No={test:Vm("rgb","red"),parse:wC("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+T1.transform(t)+", "+T1.transform(e)+", "+T1.transform(r)+", "+nf(rf.transform(n))+")"};function V_(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const $y={test:Vm("#"),parse:V_,transform:No.transform},ja={test:Vm("hsl","hue"),parse:wC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Oi.transform(nf(e))+", "+Oi.transform(nf(r))+", "+nf(rf.transform(n))+")"},Dr={test:t=>No.test(t)||$y.test(t)||ja.test(t),parse:t=>No.test(t)?No.parse(t):ja.test(t)?ja.parse(t):$y.parse(t),transform:t=>fu(t)?t:t.hasOwnProperty("red")?No.transform(t):ja.transform(t)},Nt=(t,e,r)=>-r*t+r*e+t;function _1(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function q_({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;i=_1(l,a,t+1/3),s=_1(l,a,t),o=_1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const M1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},H_=[$y,No,ja],G_=t=>H_.find(e=>e.test(t));function Q2(t){const e=G_(t);let r=e.parse(t);return e===ja&&(r=q_(r)),r}const EC=(t,e)=>{const r=Q2(t),n=Q2(e),i={...r};return s=>(i.red=M1(r.red,n.red,s),i.green=M1(r.green,n.green,s),i.blue=M1(r.blue,n.blue,s),i.alpha=Nt(r.alpha,n.alpha,s),No.transform(i))};function W_(t){var e,r;return isNaN(t)&&fu(t)&&(((e=t.match(l0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(K8))===null||r===void 0?void 0:r.length)||0)>0}const CC={regex:BT,countKey:"Vars",token:"${v}",parse:jt},SC={regex:K8,countKey:"Colors",token:"${c}",parse:Dr.parse},AC={regex:l0,countKey:"Numbers",token:"${n}",parse:la.parse};function I1(t,{regex:e,countKey:r,token:n,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(i)))}function dh(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&I1(r,CC),I1(r,SC),I1(r,AC),r}function kC(t){return dh(t).values}function RC(t){const{values:e,numColors:r,numVars:n,tokenised:i}=dh(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function Y_(t){const e=kC(t);return RC(t)(e.map(K_))}const no={test:W_,parse:kC,createTransformer:RC,getAnimatableNone:Y_},PC=(t,e)=>r=>`${r>0?e:t}`;function TC(t,e){return typeof t=="number"?r=>Nt(t,e,r):Dr.test(t)?EC(t,e):t.startsWith("var(")?PC(t,e):MC(t,e)}const _C=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>TC(s,e[o]));return s=>{for(let o=0;o{const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=TC(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},MC=(t,e)=>{const r=no.createTransformer(e),n=dh(t),i=dh(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Qs(_C(n.values,i.values),r):PC(t,e)},Bf=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},J2=(t,e)=>r=>Nt(t,e,r);function J_(t){return typeof t=="number"?J2:typeof t=="string"?Dr.test(t)?EC:MC:Array.isArray(t)?_C:typeof t=="object"?Q_:J2}function X_(t,e,r){const n=[],i=r||J_(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=X_(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(ro(t[0],t[s-1],c)):l}function Z_(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Bf(0,e,n);t.push(Nt(r,1,i))}}function eM(t){const e=[0];return Z_(e,t.length-1),e}function tM(t,e){return t.map(r=>r*e)}function rM(t,e){return t.map(()=>e||pC).splice(0,t.length-1)}function hh({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=L_(n)?n.map(Y2):Y2(n),s={done:!1,value:e[0]},o=tM(r&&r.length===e.length?r:eM(e),t),a=IC(o,e,{ease:Array.isArray(i)?i:rM(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function NC(t,e){return e?t*(1e3/e):0}const nM=5;function $C(t,e,r){const n=Math.max(e-nM,0);return NC(r-t(n),e-n)}const N1=.001,iM=.01,X2=10,sM=.05,oM=1;function aM({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;P_(t<=Js(X2));let o=1-e;o=ro(sM,oM,o),t=ro(iM,X2,cs(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Dy(c,o),m=Math.exp(-u);return N1-d/v*m},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-u),y=Dy(Math.pow(c,2),o);return(-i(c)+N1>0?-1:1)*((d-v)*m)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-N1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=cM(i,s,a);if(t=Js(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const lM=12;function cM(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function dM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Z2(t,uM)&&Z2(t,fM)){const r=aM(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}function DC({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:f,duration:u,isResolvedFromDuration:d}=dM(n),v=f?-cs(f):0,m=l/(2*Math.sqrt(a*c)),y=s-i,w=cs(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(m<1){const S=Dy(w,m);b=A=>{const _=Math.exp(-m*w*A);return s-_*((v+m*w*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(m===1)b=S=>s-Math.exp(-w*S)*(y+(v+w*y)*S);else{const S=w*Math.sqrt(m*m-1);b=A=>{const _=Math.exp(-m*w*A),D=Math.min(S*A,300);return s-_*((v+m*w*y)*Math.sinh(D)+S*y*Math.cosh(D))/S}}return{calculatedDuration:d&&u||null,next:S=>{const A=b(S);if(d)o.done=S>=u;else{let _=v;S!==0&&(m<1?_=$C(b,S,A):_=0);const D=Math.abs(_)<=r,$=Math.abs(s-A)<=e;o.done=D&&$}return o.value=o.done?s:A,o}}}function ew({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},v=O=>a!==void 0&&Ol,m=O=>a===void 0?l:l===void 0||Math.abs(a-O)-y*Math.exp(-O/n),S=O=>x+b(O),A=O=>{const H=b(O),Y=S(O);d.done=Math.abs(H)<=c,d.value=d.done?x:Y};let _,D;const $=O=>{v(d.value)&&(_=O,D=DC({keyframes:[d.value,m(d.value)],velocity:$C(S,O,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return $(0),{calculatedDuration:null,next:O=>{let H=!1;return!D&&_===void 0&&(H=!0,A(O),$(O)),_!==void 0&&O>_?D.next(O-_):(!H&&A(O),d)}}}const hM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>wt.update(e,!0),stop:()=>ps(e),now:()=>lr.isProcessing?lr.timestamp:performance.now()}},tw=2e4;function rw(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=tw?1/0:e}const vM={decay:ew,inertia:ew,tween:hh,keyframes:hh,spring:DC};function vh({autoplay:t=!0,delay:e=0,driver:r=hM,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,m=!1,y,w;const x=()=>{w=new Promise(k=>{y=k})};x();let b;const S=vM[i]||hh;let A;S!==hh&&typeof n[0]!="number"&&(A=IC([0,100],n,{clamp:!1}),n=[0,100]);const _=S({...d,keyframes:n});let D;a==="mirror"&&(D=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let $="idle",O=null,H=null,Y=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=rw(_));const{calculatedDuration:Q}=_;let re=1/0,I=1/0;Q!==null&&(re=Q+o,I=re*(s+1)-o);let h=0;const C=k=>{if(H===null)return;v>0&&(H=Math.min(H,k)),v<0&&(H=Math.min(k-I/v,H)),O!==null?h=O:h=Math.round(k-H)*v;const p=h-e*(v>=0?1:-1),P=v>=0?p<0:p>I;h=Math.max(p,0),$==="finished"&&O===null&&(h=I);let B=h,E=_;if(s){const W=h/re;let ne=Math.floor(W),X=W%1;!X&&W>=1&&(X=1),X===1&&ne--,ne=Math.min(ne,s+1);const ee=!!(ne%2);ee&&(a==="reverse"?(X=1-X,o&&(X-=o/re)):a==="mirror"&&(E=D));let _e=ro(0,1,X);h>I&&(_e=a==="reverse"&&ee?1:0),B=_e*re}const F=P?{done:!1,value:n[0]}:E.next(B);A&&(F.value=A(F.value));let{done:j}=F;!P&&Q!==null&&(j=v>=0?h>=I:h<=0);const z=O===null&&($==="finished"||$==="running"&&j);return u&&u(F.value),z&&T(),F},R=()=>{b&&b.stop(),b=void 0},M=()=>{$="idle",R(),y(),x(),H=Y=null},T=()=>{$="finished",f&&f(),R(),y()},N=()=>{if(m)return;b||(b=r(C));const k=b.now();l&&l(),O!==null?H=k-O:(!H||$==="finished")&&(H=k),$==="finished"&&x(),Y=H,O=null,$="running",b.start()};t&&N();const L={then(k,p){return w.then(k,p)},get time(){return cs(h)},set time(k){k=Js(k),h=k,O!==null||!b||v===0?O=k:H=b.now()-k/v},get duration(){const k=_.calculatedDuration===null?rw(_):_.calculatedDuration;return cs(k)},get speed(){return v},set speed(k){k===v||!b||(v=k,L.time=cs(h))},get state(){return $},play:N,pause:()=>{$="paused",O=h},stop:()=>{m=!0,$!=="idle"&&($="idle",c&&c(),M())},cancel:()=>{Y!==null&&C(Y),M()},complete:()=>{$="finished"},sample:k=>(H=0,C(k))};return L}function yM(t){let e;return()=>(e===void 0&&(e=t()),e)}const pM=yM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),mM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Wu=10,gM=2e4,xM=(t,e)=>e.type==="spring"||t==="backgroundColor"||!dC(e.ease);function bM(t,e,{onUpdate:r,onComplete:n,...i}){if(!(pM()&&mM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l;const c=()=>{l=new Promise(b=>{a=b})};c();let{keyframes:f,duration:u=300,ease:d,times:v}=i;if(xM(e,i)){const b=vh({...i,repeat:0,delay:0});let S={done:!1,value:f[0]};const A=[];let _=0;for(;!S.done&&_m.cancel(),w=()=>{wt.update(y),a(),c()};return m.onfinish=()=>{t.set(M_(f,i)),n&&n(),w()},{then(b,S){return l.then(b,S)},attachTimeline(b){return m.timeline=b,m.onfinish=null,jt},get time(){return cs(m.currentTime||0)},set time(b){m.currentTime=Js(b)},get speed(){return m.playbackRate},set speed(b){m.playbackRate=b},get duration(){return cs(u)},play:()=>{o||(m.play(),ps(y))},pause:()=>m.pause(),stop:()=>{if(o=!0,m.playState==="idle")return;const{currentTime:b}=m;if(b){const S=vh({...i,autoplay:!1});t.setWithVelocity(S.sample(b-Wu).value,S.sample(b).value,Wu)}w()},complete:()=>m.finish(),cancel:w}}function wM({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const i=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:jt,pause:jt,stop:jt,then:s=>(s(),Promise.resolve()),cancel:jt,complete:jt});return e?vh({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const EM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),SM={type:"keyframes",duration:.8},AM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kM=(t,{keyframes:e})=>e.length>2?SM:aa.has(t)?t.startsWith("scale")?CM(e[1]):EM:AM,Oy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(no.test(e)||e==="0")&&!e.startsWith("url(")),RM=new Set(["brightness","contrast","saturate","opacity"]);function PM(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(l0)||[];if(!n)return t;const i=r.replace(n,"");let s=RM.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const TM=/([a-z-]*)\(.*?\)/g,Ly={...no,getAnimatableNone:t=>{const e=t.match(TM);return e?e.map(PM).join(" "):t}},_M={...Y8,color:Dr,backgroundColor:Dr,outlineColor:Dr,fill:Dr,stroke:Dr,borderColor:Dr,borderTopColor:Dr,borderRightColor:Dr,borderBottomColor:Dr,borderLeftColor:Dr,filter:Ly,WebkitFilter:Ly},qm=t=>_M[t];function OC(t,e){let r=qm(t);return r!==Ly&&(r=no),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const LC=t=>/^0[^.\s]+$/.test(t);function MM(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||LC(t)}function IM(t,e,r,n){const i=Oy(e,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:t.get();let a;const l=[];for(let c=0;ci=>{const s=BC(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Js(o);const l=IM(e,t,r,s),c=l[0],f=l[l.length-1],u=Oy(t,c),d=Oy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:m=>{e.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(NM(s)||(v={...v,...kM(t,v)}),v.duration&&(v.duration=Js(v.duration)),v.repeatDelay&&(v.repeatDelay=Js(v.repeatDelay)),!u||!d||T_.current||s.type===!1)return wM(v);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=bM(e,t,v);if(m)return m}return vh(v)};function yh(t){return!!(Qr(t)&&t.add)}const FC=t=>/^\-?\d*\.?\d+$/.test(t);function Gm(t,e){t.indexOf(e)===-1&&t.push(e)}function Wm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Km{constructor(){this.subscriptions=[]}add(e){return Gm(this.subscriptions,e),()=>Wm(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let s=0;s!isNaN(parseFloat(t));class DM{constructor(e,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:o}=lr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,wt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>wt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=$M(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Km);const n=this.events[e].add(r);return e==="change"?()=>{n(),wt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?NC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yl(t,e){return new DM(t,e)}const jC=t=>e=>e.test(t),OM={test:t=>t==="auto",parse:t=>t},zC=[la,Ce,Oi,_s,UT,zT,OM],oc=t=>zC.find(jC(t)),LM=[...zC,Dr,no],BM=t=>LM.find(jC(t));function FM(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,yl(r))}function jM(t,e){const r=f0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=r_(s[o]);FM(t,o,a)}}function zM(t,e,r){var n,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;al.remove(u))),c.push(y)}return o&&Promise.all(c).then(()=>{o&&jM(t,o)}),c}function By(t,e,r={}){const n=f0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(UC(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return HM(t,e,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function HM(t,e,r=0,n=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>a-c*n;return Array.from(t.variantChildren).sort(GM).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(By(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function GM(t,e){return t.sortNodePosition(e)}function WM(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>By(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=By(t,e,r);else{const i=typeof e=="function"?f0(t,e,r.custom):e;n=Promise.all(UC(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const KM=[...Tm].reverse(),YM=Tm.length;function QM(t){return e=>Promise.all(e.map(({animation:r,options:n})=>WM(t,r,n)))}function JM(t){let e=QM(t);const r=ZM();let n=!0;const i=(l,c)=>{const f=f0(t,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],v=new Set;let m={},y=1/0;for(let x=0;xy&&_;const Y=Array.isArray(A)?A:[A];let Q=Y.reduce(i,{});D===!1&&(Q={});const{prevResolvedValues:re={}}=S,I={...re,...Q},h=C=>{H=!0,v.delete(C),S.needsAnimating[C]=!0};for(const C in I){const R=Q[C],M=re[C];m.hasOwnProperty(C)||(R!==M?uh(R)&&uh(M)?!fC(R,M)||O?h(C):S.protectedKeys[C]=!0:R!==void 0?h(C):v.add(C):R!==void 0&&v.has(C)?h(C):S.protectedKeys[C]=!0)}S.prevProp=A,S.prevResolvedValues=Q,S.isActive&&(m={...m,...Q}),n&&t.blockInitialAnimation&&(H=!1),H&&!$&&d.push(...Y.map(C=>({animation:C,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const S=t.getBaseTarget(b);S!==void 0&&(x[b]=S)}),d.push({animation:x})}let w=!!d.length;return n&&f.initial===!1&&!t.manuallyAnimateOnMount&&(w=!1),n=!1,w?e(d):Promise.resolve()}function a(l,c,f){var u;if(r[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(v=>{var m;return(m=v.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function XM(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!fC(e,t):!1}function bo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ZM(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}class eI extends yo{constructor(e){super(e),e.animationState||(e.animationState=JM(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),o0(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let tI=0;class rI extends yo{constructor(){super(...arguments),this.id=tI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const nI={animation:{Feature:eI},exit:{Feature:rI}},nw=(t,e)=>Math.abs(t-e);function iI(t,e){const r=nw(t.x,e.x),n=nw(t.y,e.y);return Math.sqrt(r**2+n**2)}class VC{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=D1(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,u=iI(c.offset,{x:0,y:0})>=3;if(!f&&!u)return;const{point:d}=c,{timestamp:v}=lr;this.history.push({...d,timestamp:v});const{onStart:m,onMove:y}=this.handlers;f||(m&&m(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=$1(f,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:u,onSessionEnd:d}=this.handlers,v=D1(c.type==="pointercancel"?this.lastMoveEventInfo:$1(f,this.transformPagePoint),this.history);this.startEvent&&u&&u(c,v),d&&d(c,v)},!sC(e))return;this.handlers=r,this.transformPagePoint=n;const i=c0(e),s=$1(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=lr;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=r;l&&l(e,D1(s,this.history)),this.removeListeners=Qs(ls(window,"pointermove",this.handlePointerMove),ls(window,"pointerup",this.handlePointerUp),ls(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ps(this.updatePoint)}}function $1(t,e){return e?{point:e(t.point)}:t}function iw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function D1({point:t},e){return{point:t,delta:iw(t,qC(e)),offset:iw(t,sI(e)),velocity:oI(e,.1)}}function sI(t){return t[0]}function qC(t){return t[t.length-1]}function oI(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=qC(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Js(e)));)r--;if(!n)return{x:0,y:0};const s=cs(i.timestamp-n.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function fn(t){return t.max-t.min}function Fy(t,e=0,r=.01){return Math.abs(t-e)<=r}function sw(t,e,r,n=.5){t.origin=n,t.originPoint=Nt(e.min,e.max,t.origin),t.scale=fn(r)/fn(e),(Fy(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nt(r.min,r.max,t.origin)-t.originPoint,(Fy(t.translate)||isNaN(t.translate))&&(t.translate=0)}function sf(t,e,r,n){sw(t.x,e.x,r.x,n?n.originX:void 0),sw(t.y,e.y,r.y,n?n.originY:void 0)}function ow(t,e,r){t.min=r.min+e.min,t.max=t.min+fn(e)}function aI(t,e,r){ow(t.x,e.x,r.x),ow(t.y,e.y,r.y)}function aw(t,e,r){t.min=e.min-r.min,t.max=t.min+fn(e)}function of(t,e,r){aw(t.x,e.x,r.x),aw(t.y,e.y,r.y)}function lI(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Nt(r,t,n.max):Math.min(t,r)),t}function lw(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function cI(t,{top:e,left:r,bottom:n,right:i}){return{x:lw(t.x,r,i),y:lw(t.y,e,n)}}function cw(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Bf(e.min,e.max-n,t.min):n>i&&(r=Bf(t.min,t.max-i,e.min)),ro(0,1,r)}function dI(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const jy=.35;function hI(t=jy){return t===!1?t=0:t===!0&&(t=jy),{x:fw(t,"left","right"),y:fw(t,"top","bottom")}}function fw(t,e,r){return{min:uw(t,e),max:uw(t,r)}}function uw(t,e){return typeof t=="number"?t:t[e]||0}const dw=()=>({translate:0,scale:1,origin:0,originPoint:0}),za=()=>({x:dw(),y:dw()}),hw=()=>({min:0,max:0}),Yt=()=>({x:hw(),y:hw()});function xi(t){return[t("x"),t("y")]}function HC({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function vI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function yI(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function O1(t){return t===void 0||t===1}function zy({scale:t,scaleX:e,scaleY:r}){return!O1(t)||!O1(e)||!O1(r)}function ko(t){return zy(t)||GC(t)||t.z||t.rotate||t.rotateX||t.rotateY}function GC(t){return vw(t.x)||vw(t.y)}function vw(t){return t&&t!=="0%"}function ph(t,e,r){const n=t-r,i=e*n;return r+i}function yw(t,e,r,n,i){return i!==void 0&&(t=ph(t,i,n)),ph(t,r,n)+e}function Uy(t,e=0,r=1,n,i){t.min=yw(t.min,e,r,n,i),t.max=yw(t.max,e,r,n,i)}function WC(t,{x:e,y:r}){Uy(t.x,e.translate,e.scale,e.originPoint),Uy(t.y,r.translate,r.scale,r.originPoint)}function pI(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Ds(t,e){t.min=t.min+e,t.max=t.max+e}function mw(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Nt(t.min,t.max,s);Uy(t,e[r],e[n],o,e.scale)}const mI=["x","scaleX","originX"],gI=["y","scaleY","originY"];function Ua(t,e){mw(t.x,e,mI),mw(t.y,e,gI)}function KC(t,e){return HC(yI(t.getBoundingClientRect(),e))}function xI(t,e,r){const n=KC(t,r),{scroll:i}=e;return i&&(Ds(n.x,i.offset.x),Ds(n.y,i.offset.y)),n}const bI=new WeakMap;class wI{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Yt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=l=>{this.stopAnimation(),r&&this.snapToCursor(c0(l,"page").point)},s=(l,c)=>{const{drag:f,dragPropagation:u,onDragStart:d}=this.getProps();if(f&&!u&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=aC(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xi(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Oi.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[m];x&&(y=fn(x)*(parseFloat(y)/100))}}this.originPoint[m]=y}),d&&wt.update(()=>d(l,c),!1,!0);const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(l,c)=>{const{dragPropagation:f,dragDirectionLock:u,onDirectionLock:d,onDrag:v}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:m}=c;if(u&&this.currentDirection===null){this.currentDirection=EI(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),v&&v(l,c)},a=(l,c)=>this.stop(l,c);this.panSession=new VC(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&wt.update(()=>s(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!Ku(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=lI(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&Fa(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=cI(n.layoutBox,e):this.constraints=!1,this.elastic=hI(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&xi(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=dI(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Fa(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=xI(n,i.root,this.visualElement.getTransformPagePoint());let o=fI(i.layout.layoutBox,s);if(r){const a=r(vI(o));this.hasMutatedConstraints=!!a,a&&(o=HC(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=xi(f=>{if(!Ku(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,m={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(Hm(e,n,0,r))}stopAnimation(){xi(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){xi(r=>{const{drag:n}=this.getProps();if(!Ku(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[r];s.set(e[r]-Nt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Fa(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};xi(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=uI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),xi(o=>{if(!Ku(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Nt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;bI.set(this.visualElement,this);const e=this.visualElement.current,r=ls(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Fa(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ss(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(xi(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=jy,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ku(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function EI(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class CI extends yo{constructor(e){super(e),this.removeGroupControls=jt,this.removeListeners=jt,this.controls=new wI(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jt}unmount(){this.removeGroupControls(),this.removeListeners()}}const gw=t=>(e,r)=>{t&&wt.update(()=>t(e,r))};class SI extends yo{constructor(){super(...arguments),this.removePointerDownListener=jt}onPointerDown(e){this.session=new VC(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:gw(e),onStart:gw(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&wt.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=ls(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function AI(){const t=g.useContext(i0);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=g.useId();return g.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const kd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ac={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ce.test(t))t=parseFloat(t);else return t;const r=xw(t,e.target.x),n=xw(t,e.target.y);return`${r}% ${n}%`}},kI={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=no.parse(t);if(i.length>5)return n;const s=no.createTransformer(t),o=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=Nt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class RI extends cr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;$T(PI),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),kd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||wt.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function YC(t){const[e,r]=AI(),n=g.useContext(Mm);return cr.createElement(RI,{...t,layoutGroup:n,switchLayoutGroup:g.useContext(q8),isPresent:e,safeToRemove:r})}const PI={borderRadius:{...ac,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ac,borderTopRightRadius:ac,borderBottomLeftRadius:ac,borderBottomRightRadius:ac,boxShadow:kI},QC=["TopLeft","TopRight","BottomLeft","BottomRight"],TI=QC.length,bw=t=>typeof t=="string"?parseFloat(t):t,ww=t=>typeof t=="number"||Ce.test(t);function _I(t,e,r,n,i,s){i?(t.opacity=Nt(0,r.opacity!==void 0?r.opacity:1,MI(n)),t.opacityExit=Nt(e.opacity!==void 0?e.opacity:1,0,II(n))):s&&(t.opacity=Nt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Bf(t,e,n))}function Cw(t,e){t.min=e.min,t.max=e.max}function pn(t,e){Cw(t.x,e.x),Cw(t.y,e.y)}function Sw(t,e,r,n,i){return t-=e,t=ph(t,1/r,n),i!==void 0&&(t=ph(t,1/i,n)),t}function NI(t,e=0,r=1,n=.5,i,s=t,o=t){if(Oi.test(e)&&(e=parseFloat(e),e=Nt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Nt(s.min,s.max,n);t===s&&(a-=e),t.min=Sw(t.min,e,r,a,i),t.max=Sw(t.max,e,r,a,i)}function Aw(t,e,[r,n,i],s,o){NI(t,e[r],e[n],e[i],e.scale,s,o)}const $I=["x","scaleX","originX"],DI=["y","scaleY","originY"];function kw(t,e,r,n){Aw(t.x,e,$I,r?r.x:void 0,n?n.x:void 0),Aw(t.y,e,DI,r?r.y:void 0,n?n.y:void 0)}function Rw(t){return t.translate===0&&t.scale===1}function XC(t){return Rw(t.x)&&Rw(t.y)}function OI(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function ZC(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Pw(t){return fn(t.x)/fn(t.y)}class LI{constructor(){this.members=[]}add(e){Gm(this.members,e),e.scheduleRender()}remove(e){if(Wm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(i=>e===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Tw(t,e,r){let n="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(n=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:l,rotateX:c,rotateY:f}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),f&&(n+=`rotateY(${f}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const BI=(t,e)=>t.depth-e.depth;class FI{constructor(){this.children=[],this.isDirty=!1}add(e){Gm(this.children,e),this.isDirty=!0}remove(e){Wm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(BI),this.isDirty=!1,this.children.forEach(e)}}function jI(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(ps(n),t(s-e))};return wt.read(n,!0),()=>ps(n)}function zI(t){window.MotionDebug&&window.MotionDebug.record(t)}function UI(t){return t instanceof SVGElement&&t.tagName!=="svg"}function VI(t,e,r){const n=Qr(t)?t:yl(t);return n.start(Hm("",n,e,r)),n.animation}const _w=["","X","Y","Z"],Mw=1e3;let qI=0;const Ro={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function eS({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=qI++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Ro.totalNodes=Ro.resolvedTargetDeltas=Ro.recalculatedProjection=0,this.nodes.forEach(WI),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.nodes.forEach(KI),zI(Ro)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=jI(d,250),kd.hasAnimatedSinceResize&&(kd.hasAnimatedSinceResize=!1,this.nodes.forEach(Nw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||iN,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!ZC(this.targetLayout,m)||v,S=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,S);const A={...BC(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||Nw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ps(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eN),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(YI),this.sharedNodes.forEach(tN)}scheduleUpdateProjection(){wt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const _=A/1e3;$w(u.x,o.x,_),$w(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(of(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rN(this.relativeTarget,this.relativeTargetOrigin,d,_),S&&OI(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Yt()),pn(S,this.relativeTarget)),y&&(this.animationValues=f,_I(f,c,this.latestValues,_,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ps(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{kd.hasAnimatedSinceResize=!0,this.currentAnimation=VI(0,Mw,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&tS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Yt();const u=fn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=fn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}pn(a,l),Ua(a,f),sf(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new LI),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f<_w.length;f++){const u="rotate"+_w[f];l[u]&&(c[u]=l[u],o.setStaticValue(u,0))}o.render();for(const f in c)o.setStaticValue(f,c[f]);o.scheduleRender()}getProjectionStyles(o={}){var a,l;const c={};if(!this.instance||this.isSVG)return c;if(this.isVisible)c.visibility="";else return{visibility:"hidden"};const f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ad(o.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Ad(o.pointerEvents)||""),this.hasProjected&&!ko(this.latestValues)&&(y.transform=f?f({},""):"none",this.hasProjected=!1),y}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=Tw(this.projectionDeltaWithTransform,this.treeScale,d),f&&(c.transform=f(d,c.transform));const{x:v,y:m}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${m.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in ch){if(d[y]===void 0)continue;const{correct:w,applyTo:x}=ch[y],b=c.transform==="none"?d[y]:w(d[y],u);if(x){const S=x.length;for(let A=0;A{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Iw),this.root.sharedNodes.clear()}}}function HI(t){t.updateLayout()}function GI(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:s}=t.options,o=r.source!==t.layout.source;s==="size"?xi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(d);d.min=n[u].min,d.max=d.min+v}):tS(s,r.layoutBox,n)&&xi(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=fn(n[u]);d.max=d.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+v)});const a=za();sf(a,n,r.layoutBox);const l=za();o?sf(l,t.applyTransform(i,!0),r.measuredBox):sf(l,n,r.layoutBox);const c=!XC(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const m=Yt();of(m,r.layoutBox,d.layoutBox);const y=Yt();of(y,n,v.layoutBox),ZC(m,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function WI(t){Ro.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function KI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function YI(t){t.clearSnapshot()}function Iw(t){t.clearMeasurements()}function QI(t){t.isLayoutDirty=!1}function JI(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Nw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function XI(t){t.resolveTargetDelta()}function ZI(t){t.calcProjection()}function eN(t){t.resetRotation()}function tN(t){t.removeLeadSnapshot()}function $w(t,e,r){t.translate=Nt(e.translate,0,r),t.scale=Nt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Dw(t,e,r,n){t.min=Nt(e.min,r.min,n),t.max=Nt(e.max,r.max,n)}function rN(t,e,r,n){Dw(t.x,e.x,r.x,n),Dw(t.y,e.y,r.y,n)}function nN(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const iN={duration:.45,ease:[.4,0,.1,1]},Ow=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Lw=Ow("applewebkit/")&&!Ow("chrome/")?Math.round:jt;function Bw(t){t.min=Lw(t.min),t.max=Lw(t.max)}function sN(t){Bw(t.x),Bw(t.y)}function tS(t,e,r){return t==="position"||t==="preserve-aspect"&&!Fy(Pw(e),Pw(r),.2)}const oN=eS({attachResizeListener:(t,e)=>ss(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),L1={current:void 0},rS=eS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!L1.current){const t=new oN({});t.mount(window),t.setOptions({layoutScroll:!0}),L1.current=t}return L1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),aN={pan:{Feature:SI},drag:{Feature:CI,ProjectionNode:rS,MeasureLayout:YC}},lN=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function cN(t){const e=lN.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Vy(t,e,r=1){const[n,i]=cN(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return FC(o)?parseFloat(o):o}else return Iy(i)?Vy(i,e,r+1):i}function fN(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(i=>{const s=i.get();if(!Iy(s))return;const o=Vy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!Iy(s))continue;const o=Vy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const uN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nS=t=>uN.has(t),dN=t=>Object.keys(t).some(nS),Fw=t=>t===la||t===Ce,jw=(t,e)=>parseFloat(t.split(", ")[e]),zw=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return jw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?jw(s[1],t):0}},hN=new Set(["x","y","z"]),vN=cu.filter(t=>!hN.has(t));function yN(t){const e=[];return vN.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const pl={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:zw(4,13),y:zw(5,14)};pl.translateX=pl.x;pl.translateY=pl.y;const pN=(t,e,r)=>{const n=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(c=>{a[c]=pl[c](n,s)}),e.render();const l=e.measureViewportBox();return r.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=pl[c](l,s)}),t},mN=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter(nS);let s=[],o=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=r[l],u=oc(f);const d=e[l];let v;if(uh(d)){const m=d.length,y=d[0]===null?1:0;f=d[y],u=oc(f);for(let w=y;w=0?window.pageYOffset:null,c=pN(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),s0&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function gN(t,e,r,n){return dN(e)?mN(t,e,r,n):{target:e,transitionEnd:n}}const xN=(t,e,r,n)=>{const i=fN(t,e,n);return e=i.target,n=i.transitionEnd,gN(t,e,r,n)},qy={current:null},iS={current:!1};function bN(){if(iS.current=!0,!!s0)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>qy.current=t.matches;t.addListener(e),e()}else qy.current=!1}function wN(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(Qr(s))t.addValue(i,s),yh(n)&&n.add(i);else if(Qr(o))t.addValue(i,yl(s,{owner:t})),yh(n)&&n.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,yl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Uw=new WeakMap,sS=Object.keys(Lf),EN=sS.length,Vw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CN=_m.length;class SN{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>wt.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=a0(r),this.isVariantNode=V8(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&Qr(d)&&(d.set(a[u],!1),yh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,Uw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),iS.current||bN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Uw.delete(this.current),this.projection&&this.projection.unmount(),ps(this.notifyUpdate),ps(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=aa.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&wt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,i,s){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Yt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=yl(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=Fm(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Qr(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Km),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class oS extends SN{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:i},s){let o=VM(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){zM(this,n,o);const a=xN(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function AN(t){return window.getComputedStyle(t)}class kN extends oS{readValueFromInstance(e,r){if(aa.has(r)){const n=qm(r);return n&&n.default||0}else{const n=AN(e),i=(W8(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return KC(e,r)}build(e,r,n,i){Nm(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return Bm(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Qr(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){Z8(e,r,n,i)}}class RN extends oS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(aa.has(r)){const n=qm(r);return n&&n.default||0}return r=eC.has(r)?r:Lm(r),e.getAttribute(r)}measureInstanceViewportBox(){return Yt()}scrapeMotionValuesFromProps(e,r){return rC(e,r)}build(e,r,n,i){Dm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){tC(e,r,n,i)}mount(e){this.isSVGTag=Om(e.tagName),super.mount(e)}}const PN=(t,e)=>Im(t)?new RN(e,{enableHardwareAcceleration:!1}):new kN(e,{enableHardwareAcceleration:!0}),TN={layout:{ProjectionNode:rS,MeasureLayout:YC}},_N={...nI,...C_,...aN,...TN},Za=IT((t,e)=>f_(t,e,_N,PN));function aS(){const t=g.useRef(!1);return Pm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function MN(){const t=aS(),[e,r]=g.useState(0),n=g.useCallback(()=>{t.current&&r(e+1)},[e]);return[g.useCallback(()=>wt.postRender(n),[n]),e]}class IN extends g.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function NN({children:t,isPresent:e}){const r=g.useId(),n=g.useRef(null),i=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(e||!n.current||!s||!o)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${s}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(c)}},[e]),g.createElement(IN,{isPresent:e,childRef:n,sizeRef:i},g.cloneElement(t,{ref:n}))}const B1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=nC($N),l=g.useId(),c=g.useMemo(()=>({id:l,initial:e,isPresent:r,custom:i,onExitComplete:f=>{a.set(f,!0);for(const u of a.values())if(!u)return;n&&n()},register:f=>(a.set(f,!1),()=>a.delete(f))}),s?void 0:[r]);return g.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),g.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=g.createElement(NN,{isPresent:r},t)),g.createElement(i0.Provider,{value:c},t)};function $N(){return new Map}function DN(t){return g.useEffect(()=>()=>t(),[])}const Sa=t=>t.key||"";function ON(t,e){t.forEach(r=>{const n=Sa(r);e.set(n,r)})}function LN(t){const e=[];return g.Children.forEach(t,r=>{g.isValidElement(r)&&e.push(r)}),e}const lS=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=g.useContext(Mm).forceRender||MN()[0],l=aS(),c=LN(t);let f=c;const u=g.useRef(new Map).current,d=g.useRef(f),v=g.useRef(new Map).current,m=g.useRef(!0);if(Pm(()=>{m.current=!1,ON(c,v),d.current=f}),DN(()=>{m.current=!0,v.clear(),u.clear()}),m.current)return g.createElement(g.Fragment,null,f.map(b=>g.createElement(B1,{key:Sa(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Sa),w=c.map(Sa),x=y.length;for(let b=0;b{if(w.indexOf(S)!==-1)return;const A=v.get(S);if(!A)return;const _=y.indexOf(S);let D=b;if(!D){const $=()=>{v.delete(S),u.delete(S);const O=d.current.findIndex(H=>H.key===S);if(d.current.splice(O,1),!u.size){if(d.current=c,l.current===!1)return;a(),n&&n()}};D=g.createElement(B1,{key:Sa(A),isPresent:!1,onExitComplete:$,custom:e,presenceAffectsLayout:s,mode:o},A),u.set(S,D)}f.splice(_,0,D)}),f=f.map(b=>{const S=b.key;return u.has(S)?b:g.createElement(B1,{key:Sa(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),g.createElement(g.Fragment,null,u.size?f:f.map(b=>g.cloneElement(b)))},BN={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};function FN(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jN(t){var e=FN(t,"string");return typeof e=="symbol"?e:String(e)}function zN(t,e,r){return e=jN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function F1(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nl.styles)),s=Object.keys(i),o=s.filter(l=>"mappings"in i[l]),a=l=>{var c=[],f={},u=F1({},l),d=!1;for(var v of o){var m=l[v];if(m!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=m,u[w]==null&&delete u[w]}}var x=d?F1(F1({},f),u):l,b=function(){var D=x[S],$=i[S];try{if($.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push($.values[D].defaultClass);else if(Array.isArray(D))for(var O=0;Ot,qN=function(){return UN(VN)(...arguments)},cS=qN({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},userSelect:{values:{none:{defaultClass:"fyvr11n2"},text:{defaultClass:"fyvr11n3"},all:{defaultClass:"fyvr11n4"},auto:{defaultClass:"fyvr11n5"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n6"},nowrap:{defaultClass:"fyvr11n7"},initial:{defaultClass:"fyvr11n8"},inherit:{defaultClass:"fyvr11n9"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11na"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nb"},"break-word":{defaultClass:"fyvr11nc"},initial:{defaultClass:"fyvr11nd"},inherit:{defaultClass:"fyvr11ne"}}},zIndex:{values:{0:{defaultClass:"fyvr11nf"},1:{defaultClass:"fyvr11ng"},10:{defaultClass:"fyvr11nh"},20:{defaultClass:"fyvr11ni"},30:{defaultClass:"fyvr11nj"},40:{defaultClass:"fyvr11nk"},50:{defaultClass:"fyvr11nl"},"-1":{defaultClass:"fyvr11nm"},auto:{defaultClass:"fyvr11nn"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11no"},"16/9":{defaultClass:"fyvr11np"},"4/3":{defaultClass:"fyvr11nq"},"3/1":{defaultClass:"fyvr11nr"},auto:{defaultClass:"fyvr11ns"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nt",active:"fyvr11nu",disabled:"fyvr11nv",focus:"fyvr11nw",hover:"fyvr11nx",checked:"fyvr11ny"},defaultClass:"fyvr11nt"},white:{conditions:{base:"fyvr11nz",active:"fyvr11o0",disabled:"fyvr11o1",focus:"fyvr11o2",hover:"fyvr11o3",checked:"fyvr11o4"},defaultClass:"fyvr11nz"},inherit:{conditions:{base:"fyvr11o5",active:"fyvr11o6",disabled:"fyvr11o7",focus:"fyvr11o8",hover:"fyvr11o9",checked:"fyvr11oa"},defaultClass:"fyvr11o5"},transparent:{conditions:{base:"fyvr11ob",active:"fyvr11oc",disabled:"fyvr11od",focus:"fyvr11oe",hover:"fyvr11of",checked:"fyvr11og"},defaultClass:"fyvr11ob"},positive:{conditions:{base:"fyvr11oh",active:"fyvr11oi",disabled:"fyvr11oj",focus:"fyvr11ok",hover:"fyvr11ol",checked:"fyvr11om"},defaultClass:"fyvr11oh"},negative:{conditions:{base:"fyvr11on",active:"fyvr11oo",disabled:"fyvr11op",focus:"fyvr11oq",hover:"fyvr11or",checked:"fyvr11os"},defaultClass:"fyvr11on"},info:{conditions:{base:"fyvr11ot",active:"fyvr11ou",disabled:"fyvr11ov",focus:"fyvr11ow",hover:"fyvr11ox",checked:"fyvr11oy"},defaultClass:"fyvr11ot"},warning:{conditions:{base:"fyvr11oz",active:"fyvr11p0",disabled:"fyvr11p1",focus:"fyvr11p2",hover:"fyvr11p3",checked:"fyvr11p4"},defaultClass:"fyvr11oz"},gradientBackdrop:{conditions:{base:"fyvr11p5",active:"fyvr11p6",disabled:"fyvr11p7",focus:"fyvr11p8",hover:"fyvr11p9",checked:"fyvr11pa"},defaultClass:"fyvr11p5"},gradientPrimary:{conditions:{base:"fyvr11pb",active:"fyvr11pc",disabled:"fyvr11pd",focus:"fyvr11pe",hover:"fyvr11pf",checked:"fyvr11pg"},defaultClass:"fyvr11pb"},gradientSecondary:{conditions:{base:"fyvr11ph",active:"fyvr11pi",disabled:"fyvr11pj",focus:"fyvr11pk",hover:"fyvr11pl",checked:"fyvr11pm"},defaultClass:"fyvr11ph"},backgroundPrimary:{conditions:{base:"fyvr11pn",active:"fyvr11po",disabled:"fyvr11pp",focus:"fyvr11pq",hover:"fyvr11pr",checked:"fyvr11ps"},defaultClass:"fyvr11pn"},backgroundSecondary:{conditions:{base:"fyvr11pt",active:"fyvr11pu",disabled:"fyvr11pv",focus:"fyvr11pw",hover:"fyvr11px",checked:"fyvr11py"},defaultClass:"fyvr11pt"},backgroundContrast:{conditions:{base:"fyvr11pz",active:"fyvr11q0",disabled:"fyvr11q1",focus:"fyvr11q2",hover:"fyvr11q3",checked:"fyvr11q4"},defaultClass:"fyvr11pz"},backgroundMuted:{conditions:{base:"fyvr11q5",active:"fyvr11q6",disabled:"fyvr11q7",focus:"fyvr11q8",hover:"fyvr11q9",checked:"fyvr11qa"},defaultClass:"fyvr11q5"},backgroundControl:{conditions:{base:"fyvr11qb",active:"fyvr11qc",disabled:"fyvr11qd",focus:"fyvr11qe",hover:"fyvr11qf",checked:"fyvr11qg"},defaultClass:"fyvr11qb"},backgroundInverse:{conditions:{base:"fyvr11qh",active:"fyvr11qi",disabled:"fyvr11qj",focus:"fyvr11qk",hover:"fyvr11ql",checked:"fyvr11qm"},defaultClass:"fyvr11qh"},backgroundBackdrop:{conditions:{base:"fyvr11qn",active:"fyvr11qo",disabled:"fyvr11qp",focus:"fyvr11qq",hover:"fyvr11qr",checked:"fyvr11qs"},defaultClass:"fyvr11qn"},backgroundOverlay:{conditions:{base:"fyvr11qt",active:"fyvr11qu",disabled:"fyvr11qv",focus:"fyvr11qw",hover:"fyvr11qx",checked:"fyvr11qy"},defaultClass:"fyvr11qt"},borderNormal:{conditions:{base:"fyvr11qz",active:"fyvr11r0",disabled:"fyvr11r1",focus:"fyvr11r2",hover:"fyvr11r3",checked:"fyvr11r4"},defaultClass:"fyvr11qz"},borderFocus:{conditions:{base:"fyvr11r5",active:"fyvr11r6",disabled:"fyvr11r7",focus:"fyvr11r8",hover:"fyvr11r9",checked:"fyvr11ra"},defaultClass:"fyvr11r5"},buttonGlass:{conditions:{base:"fyvr11rb",active:"fyvr11rc",disabled:"fyvr11rd",focus:"fyvr11re",hover:"fyvr11rf",checked:"fyvr11rg"},defaultClass:"fyvr11rb"},buttonEmphasis:{conditions:{base:"fyvr11rh",active:"fyvr11ri",disabled:"fyvr11rj",focus:"fyvr11rk",hover:"fyvr11rl",checked:"fyvr11rm"},defaultClass:"fyvr11rh"},buttonInverse:{conditions:{base:"fyvr11rn",active:"fyvr11ro",disabled:"fyvr11rp",focus:"fyvr11rq",hover:"fyvr11rr",checked:"fyvr11rs"},defaultClass:"fyvr11rn"},text50:{conditions:{base:"fyvr11rt",active:"fyvr11ru",disabled:"fyvr11rv",focus:"fyvr11rw",hover:"fyvr11rx",checked:"fyvr11ry"},defaultClass:"fyvr11rt"},text80:{conditions:{base:"fyvr11rz",active:"fyvr11s0",disabled:"fyvr11s1",focus:"fyvr11s2",hover:"fyvr11s3",checked:"fyvr11s4"},defaultClass:"fyvr11rz"},text100:{conditions:{base:"fyvr11s5",active:"fyvr11s6",disabled:"fyvr11s7",focus:"fyvr11s8",hover:"fyvr11s9",checked:"fyvr11sa"},defaultClass:"fyvr11s5"},textInverse100:{conditions:{base:"fyvr11sb",active:"fyvr11sc",disabled:"fyvr11sd",focus:"fyvr11se",hover:"fyvr11sf",checked:"fyvr11sg"},defaultClass:"fyvr11sb"},arbitrumDark:{conditions:{base:"fyvr11sh",active:"fyvr11si",disabled:"fyvr11sj",focus:"fyvr11sk",hover:"fyvr11sl",checked:"fyvr11sm"},defaultClass:"fyvr11sh"},arbitrumLight:{conditions:{base:"fyvr11sn",active:"fyvr11so",disabled:"fyvr11sp",focus:"fyvr11sq",hover:"fyvr11sr",checked:"fyvr11ss"},defaultClass:"fyvr11sn"},avalanceDark:{conditions:{base:"fyvr11st",active:"fyvr11su",disabled:"fyvr11sv",focus:"fyvr11sw",hover:"fyvr11sx",checked:"fyvr11sy"},defaultClass:"fyvr11st"},avalanceLight:{conditions:{base:"fyvr11sz",active:"fyvr11t0",disabled:"fyvr11t1",focus:"fyvr11t2",hover:"fyvr11t3",checked:"fyvr11t4"},defaultClass:"fyvr11sz"},bscDark:{conditions:{base:"fyvr11t5",active:"fyvr11t6",disabled:"fyvr11t7",focus:"fyvr11t8",hover:"fyvr11t9",checked:"fyvr11ta"},defaultClass:"fyvr11t5"},bscLight:{conditions:{base:"fyvr11tb",active:"fyvr11tc",disabled:"fyvr11td",focus:"fyvr11te",hover:"fyvr11tf",checked:"fyvr11tg"},defaultClass:"fyvr11tb"},ethereumDark:{conditions:{base:"fyvr11th",active:"fyvr11ti",disabled:"fyvr11tj",focus:"fyvr11tk",hover:"fyvr11tl",checked:"fyvr11tm"},defaultClass:"fyvr11th"},ethereumLight:{conditions:{base:"fyvr11tn",active:"fyvr11to",disabled:"fyvr11tp",focus:"fyvr11tq",hover:"fyvr11tr",checked:"fyvr11ts"},defaultClass:"fyvr11tn"},gnosisDark:{conditions:{base:"fyvr11tt",active:"fyvr11tu",disabled:"fyvr11tv",focus:"fyvr11tw",hover:"fyvr11tx",checked:"fyvr11ty"},defaultClass:"fyvr11tt"},gnosisLight:{conditions:{base:"fyvr11tz",active:"fyvr11u0",disabled:"fyvr11u1",focus:"fyvr11u2",hover:"fyvr11u3",checked:"fyvr11u4"},defaultClass:"fyvr11tz"},polygonDark:{conditions:{base:"fyvr11u5",active:"fyvr11u6",disabled:"fyvr11u7",focus:"fyvr11u8",hover:"fyvr11u9",checked:"fyvr11ua"},defaultClass:"fyvr11u5"},polygonLight:{conditions:{base:"fyvr11ub",active:"fyvr11uc",disabled:"fyvr11ud",focus:"fyvr11ue",hover:"fyvr11uf",checked:"fyvr11ug"},defaultClass:"fyvr11ub"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11uh",active:"fyvr11ui",disabled:"fyvr11uj",focus:"fyvr11uk",hover:"fyvr11ul",checked:"fyvr11um"},defaultClass:"fyvr11uh"},white:{conditions:{base:"fyvr11un",active:"fyvr11uo",disabled:"fyvr11up",focus:"fyvr11uq",hover:"fyvr11ur",checked:"fyvr11us"},defaultClass:"fyvr11un"},inherit:{conditions:{base:"fyvr11ut",active:"fyvr11uu",disabled:"fyvr11uv",focus:"fyvr11uw",hover:"fyvr11ux",checked:"fyvr11uy"},defaultClass:"fyvr11ut"},transparent:{conditions:{base:"fyvr11uz",active:"fyvr11v0",disabled:"fyvr11v1",focus:"fyvr11v2",hover:"fyvr11v3",checked:"fyvr11v4"},defaultClass:"fyvr11uz"},positive:{conditions:{base:"fyvr11v5",active:"fyvr11v6",disabled:"fyvr11v7",focus:"fyvr11v8",hover:"fyvr11v9",checked:"fyvr11va"},defaultClass:"fyvr11v5"},negative:{conditions:{base:"fyvr11vb",active:"fyvr11vc",disabled:"fyvr11vd",focus:"fyvr11ve",hover:"fyvr11vf",checked:"fyvr11vg"},defaultClass:"fyvr11vb"},info:{conditions:{base:"fyvr11vh",active:"fyvr11vi",disabled:"fyvr11vj",focus:"fyvr11vk",hover:"fyvr11vl",checked:"fyvr11vm"},defaultClass:"fyvr11vh"},warning:{conditions:{base:"fyvr11vn",active:"fyvr11vo",disabled:"fyvr11vp",focus:"fyvr11vq",hover:"fyvr11vr",checked:"fyvr11vs"},defaultClass:"fyvr11vn"},gradientBackdrop:{conditions:{base:"fyvr11vt",active:"fyvr11vu",disabled:"fyvr11vv",focus:"fyvr11vw",hover:"fyvr11vx",checked:"fyvr11vy"},defaultClass:"fyvr11vt"},gradientPrimary:{conditions:{base:"fyvr11vz",active:"fyvr11w0",disabled:"fyvr11w1",focus:"fyvr11w2",hover:"fyvr11w3",checked:"fyvr11w4"},defaultClass:"fyvr11vz"},gradientSecondary:{conditions:{base:"fyvr11w5",active:"fyvr11w6",disabled:"fyvr11w7",focus:"fyvr11w8",hover:"fyvr11w9",checked:"fyvr11wa"},defaultClass:"fyvr11w5"},backgroundPrimary:{conditions:{base:"fyvr11wb",active:"fyvr11wc",disabled:"fyvr11wd",focus:"fyvr11we",hover:"fyvr11wf",checked:"fyvr11wg"},defaultClass:"fyvr11wb"},backgroundSecondary:{conditions:{base:"fyvr11wh",active:"fyvr11wi",disabled:"fyvr11wj",focus:"fyvr11wk",hover:"fyvr11wl",checked:"fyvr11wm"},defaultClass:"fyvr11wh"},backgroundContrast:{conditions:{base:"fyvr11wn",active:"fyvr11wo",disabled:"fyvr11wp",focus:"fyvr11wq",hover:"fyvr11wr",checked:"fyvr11ws"},defaultClass:"fyvr11wn"},backgroundMuted:{conditions:{base:"fyvr11wt",active:"fyvr11wu",disabled:"fyvr11wv",focus:"fyvr11ww",hover:"fyvr11wx",checked:"fyvr11wy"},defaultClass:"fyvr11wt"},backgroundControl:{conditions:{base:"fyvr11wz",active:"fyvr11x0",disabled:"fyvr11x1",focus:"fyvr11x2",hover:"fyvr11x3",checked:"fyvr11x4"},defaultClass:"fyvr11wz"},backgroundInverse:{conditions:{base:"fyvr11x5",active:"fyvr11x6",disabled:"fyvr11x7",focus:"fyvr11x8",hover:"fyvr11x9",checked:"fyvr11xa"},defaultClass:"fyvr11x5"},backgroundBackdrop:{conditions:{base:"fyvr11xb",active:"fyvr11xc",disabled:"fyvr11xd",focus:"fyvr11xe",hover:"fyvr11xf",checked:"fyvr11xg"},defaultClass:"fyvr11xb"},backgroundOverlay:{conditions:{base:"fyvr11xh",active:"fyvr11xi",disabled:"fyvr11xj",focus:"fyvr11xk",hover:"fyvr11xl",checked:"fyvr11xm"},defaultClass:"fyvr11xh"},borderNormal:{conditions:{base:"fyvr11xn",active:"fyvr11xo",disabled:"fyvr11xp",focus:"fyvr11xq",hover:"fyvr11xr",checked:"fyvr11xs"},defaultClass:"fyvr11xn"},borderFocus:{conditions:{base:"fyvr11xt",active:"fyvr11xu",disabled:"fyvr11xv",focus:"fyvr11xw",hover:"fyvr11xx",checked:"fyvr11xy"},defaultClass:"fyvr11xt"},buttonGlass:{conditions:{base:"fyvr11xz",active:"fyvr11y0",disabled:"fyvr11y1",focus:"fyvr11y2",hover:"fyvr11y3",checked:"fyvr11y4"},defaultClass:"fyvr11xz"},buttonEmphasis:{conditions:{base:"fyvr11y5",active:"fyvr11y6",disabled:"fyvr11y7",focus:"fyvr11y8",hover:"fyvr11y9",checked:"fyvr11ya"},defaultClass:"fyvr11y5"},buttonInverse:{conditions:{base:"fyvr11yb",active:"fyvr11yc",disabled:"fyvr11yd",focus:"fyvr11ye",hover:"fyvr11yf",checked:"fyvr11yg"},defaultClass:"fyvr11yb"},text50:{conditions:{base:"fyvr11yh",active:"fyvr11yi",disabled:"fyvr11yj",focus:"fyvr11yk",hover:"fyvr11yl",checked:"fyvr11ym"},defaultClass:"fyvr11yh"},text80:{conditions:{base:"fyvr11yn",active:"fyvr11yo",disabled:"fyvr11yp",focus:"fyvr11yq",hover:"fyvr11yr",checked:"fyvr11ys"},defaultClass:"fyvr11yn"},text100:{conditions:{base:"fyvr11yt",active:"fyvr11yu",disabled:"fyvr11yv",focus:"fyvr11yw",hover:"fyvr11yx",checked:"fyvr11yy"},defaultClass:"fyvr11yt"},textInverse100:{conditions:{base:"fyvr11yz",active:"fyvr11z0",disabled:"fyvr11z1",focus:"fyvr11z2",hover:"fyvr11z3",checked:"fyvr11z4"},defaultClass:"fyvr11yz"},arbitrumDark:{conditions:{base:"fyvr11z5",active:"fyvr11z6",disabled:"fyvr11z7",focus:"fyvr11z8",hover:"fyvr11z9",checked:"fyvr11za"},defaultClass:"fyvr11z5"},arbitrumLight:{conditions:{base:"fyvr11zb",active:"fyvr11zc",disabled:"fyvr11zd",focus:"fyvr11ze",hover:"fyvr11zf",checked:"fyvr11zg"},defaultClass:"fyvr11zb"},avalanceDark:{conditions:{base:"fyvr11zh",active:"fyvr11zi",disabled:"fyvr11zj",focus:"fyvr11zk",hover:"fyvr11zl",checked:"fyvr11zm"},defaultClass:"fyvr11zh"},avalanceLight:{conditions:{base:"fyvr11zn",active:"fyvr11zo",disabled:"fyvr11zp",focus:"fyvr11zq",hover:"fyvr11zr",checked:"fyvr11zs"},defaultClass:"fyvr11zn"},bscDark:{conditions:{base:"fyvr11zt",active:"fyvr11zu",disabled:"fyvr11zv",focus:"fyvr11zw",hover:"fyvr11zx",checked:"fyvr11zy"},defaultClass:"fyvr11zt"},bscLight:{conditions:{base:"fyvr11zz",active:"fyvr1200",disabled:"fyvr1201",focus:"fyvr1202",hover:"fyvr1203",checked:"fyvr1204"},defaultClass:"fyvr11zz"},ethereumDark:{conditions:{base:"fyvr1205",active:"fyvr1206",disabled:"fyvr1207",focus:"fyvr1208",hover:"fyvr1209",checked:"fyvr120a"},defaultClass:"fyvr1205"},ethereumLight:{conditions:{base:"fyvr120b",active:"fyvr120c",disabled:"fyvr120d",focus:"fyvr120e",hover:"fyvr120f",checked:"fyvr120g"},defaultClass:"fyvr120b"},gnosisDark:{conditions:{base:"fyvr120h",active:"fyvr120i",disabled:"fyvr120j",focus:"fyvr120k",hover:"fyvr120l",checked:"fyvr120m"},defaultClass:"fyvr120h"},gnosisLight:{conditions:{base:"fyvr120n",active:"fyvr120o",disabled:"fyvr120p",focus:"fyvr120q",hover:"fyvr120r",checked:"fyvr120s"},defaultClass:"fyvr120n"},polygonDark:{conditions:{base:"fyvr120t",active:"fyvr120u",disabled:"fyvr120v",focus:"fyvr120w",hover:"fyvr120x",checked:"fyvr120y"},defaultClass:"fyvr120t"},polygonLight:{conditions:{base:"fyvr120z",active:"fyvr1210",disabled:"fyvr1211",focus:"fyvr1212",hover:"fyvr1213",checked:"fyvr1214"},defaultClass:"fyvr120z"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr1215",active:"fyvr1216",disabled:"fyvr1217",focus:"fyvr1218",hover:"fyvr1219",checked:"fyvr121a"},defaultClass:"fyvr1215"},dashed:{conditions:{base:"fyvr121b",active:"fyvr121c",disabled:"fyvr121d",focus:"fyvr121e",hover:"fyvr121f",checked:"fyvr121g"},defaultClass:"fyvr121b"},dotted:{conditions:{base:"fyvr121h",active:"fyvr121i",disabled:"fyvr121j",focus:"fyvr121k",hover:"fyvr121l",checked:"fyvr121m"},defaultClass:"fyvr121h"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr121n",active:"fyvr121o",disabled:"fyvr121p",focus:"fyvr121q",hover:"fyvr121r",checked:"fyvr121s"},defaultClass:"fyvr121n"},white:{conditions:{base:"fyvr121t",active:"fyvr121u",disabled:"fyvr121v",focus:"fyvr121w",hover:"fyvr121x",checked:"fyvr121y"},defaultClass:"fyvr121t"},inherit:{conditions:{base:"fyvr121z",active:"fyvr1220",disabled:"fyvr1221",focus:"fyvr1222",hover:"fyvr1223",checked:"fyvr1224"},defaultClass:"fyvr121z"},transparent:{conditions:{base:"fyvr1225",active:"fyvr1226",disabled:"fyvr1227",focus:"fyvr1228",hover:"fyvr1229",checked:"fyvr122a"},defaultClass:"fyvr1225"},positive:{conditions:{base:"fyvr122b",active:"fyvr122c",disabled:"fyvr122d",focus:"fyvr122e",hover:"fyvr122f",checked:"fyvr122g"},defaultClass:"fyvr122b"},negative:{conditions:{base:"fyvr122h",active:"fyvr122i",disabled:"fyvr122j",focus:"fyvr122k",hover:"fyvr122l",checked:"fyvr122m"},defaultClass:"fyvr122h"},info:{conditions:{base:"fyvr122n",active:"fyvr122o",disabled:"fyvr122p",focus:"fyvr122q",hover:"fyvr122r",checked:"fyvr122s"},defaultClass:"fyvr122n"},warning:{conditions:{base:"fyvr122t",active:"fyvr122u",disabled:"fyvr122v",focus:"fyvr122w",hover:"fyvr122x",checked:"fyvr122y"},defaultClass:"fyvr122t"},gradientBackdrop:{conditions:{base:"fyvr122z",active:"fyvr1230",disabled:"fyvr1231",focus:"fyvr1232",hover:"fyvr1233",checked:"fyvr1234"},defaultClass:"fyvr122z"},gradientPrimary:{conditions:{base:"fyvr1235",active:"fyvr1236",disabled:"fyvr1237",focus:"fyvr1238",hover:"fyvr1239",checked:"fyvr123a"},defaultClass:"fyvr1235"},gradientSecondary:{conditions:{base:"fyvr123b",active:"fyvr123c",disabled:"fyvr123d",focus:"fyvr123e",hover:"fyvr123f",checked:"fyvr123g"},defaultClass:"fyvr123b"},backgroundPrimary:{conditions:{base:"fyvr123h",active:"fyvr123i",disabled:"fyvr123j",focus:"fyvr123k",hover:"fyvr123l",checked:"fyvr123m"},defaultClass:"fyvr123h"},backgroundSecondary:{conditions:{base:"fyvr123n",active:"fyvr123o",disabled:"fyvr123p",focus:"fyvr123q",hover:"fyvr123r",checked:"fyvr123s"},defaultClass:"fyvr123n"},backgroundContrast:{conditions:{base:"fyvr123t",active:"fyvr123u",disabled:"fyvr123v",focus:"fyvr123w",hover:"fyvr123x",checked:"fyvr123y"},defaultClass:"fyvr123t"},backgroundMuted:{conditions:{base:"fyvr123z",active:"fyvr1240",disabled:"fyvr1241",focus:"fyvr1242",hover:"fyvr1243",checked:"fyvr1244"},defaultClass:"fyvr123z"},backgroundControl:{conditions:{base:"fyvr1245",active:"fyvr1246",disabled:"fyvr1247",focus:"fyvr1248",hover:"fyvr1249",checked:"fyvr124a"},defaultClass:"fyvr1245"},backgroundInverse:{conditions:{base:"fyvr124b",active:"fyvr124c",disabled:"fyvr124d",focus:"fyvr124e",hover:"fyvr124f",checked:"fyvr124g"},defaultClass:"fyvr124b"},backgroundBackdrop:{conditions:{base:"fyvr124h",active:"fyvr124i",disabled:"fyvr124j",focus:"fyvr124k",hover:"fyvr124l",checked:"fyvr124m"},defaultClass:"fyvr124h"},backgroundOverlay:{conditions:{base:"fyvr124n",active:"fyvr124o",disabled:"fyvr124p",focus:"fyvr124q",hover:"fyvr124r",checked:"fyvr124s"},defaultClass:"fyvr124n"},borderNormal:{conditions:{base:"fyvr124t",active:"fyvr124u",disabled:"fyvr124v",focus:"fyvr124w",hover:"fyvr124x",checked:"fyvr124y"},defaultClass:"fyvr124t"},borderFocus:{conditions:{base:"fyvr124z",active:"fyvr1250",disabled:"fyvr1251",focus:"fyvr1252",hover:"fyvr1253",checked:"fyvr1254"},defaultClass:"fyvr124z"},buttonGlass:{conditions:{base:"fyvr1255",active:"fyvr1256",disabled:"fyvr1257",focus:"fyvr1258",hover:"fyvr1259",checked:"fyvr125a"},defaultClass:"fyvr1255"},buttonEmphasis:{conditions:{base:"fyvr125b",active:"fyvr125c",disabled:"fyvr125d",focus:"fyvr125e",hover:"fyvr125f",checked:"fyvr125g"},defaultClass:"fyvr125b"},buttonInverse:{conditions:{base:"fyvr125h",active:"fyvr125i",disabled:"fyvr125j",focus:"fyvr125k",hover:"fyvr125l",checked:"fyvr125m"},defaultClass:"fyvr125h"},text50:{conditions:{base:"fyvr125n",active:"fyvr125o",disabled:"fyvr125p",focus:"fyvr125q",hover:"fyvr125r",checked:"fyvr125s"},defaultClass:"fyvr125n"},text80:{conditions:{base:"fyvr125t",active:"fyvr125u",disabled:"fyvr125v",focus:"fyvr125w",hover:"fyvr125x",checked:"fyvr125y"},defaultClass:"fyvr125t"},text100:{conditions:{base:"fyvr125z",active:"fyvr1260",disabled:"fyvr1261",focus:"fyvr1262",hover:"fyvr1263",checked:"fyvr1264"},defaultClass:"fyvr125z"},textInverse100:{conditions:{base:"fyvr1265",active:"fyvr1266",disabled:"fyvr1267",focus:"fyvr1268",hover:"fyvr1269",checked:"fyvr126a"},defaultClass:"fyvr1265"},arbitrumDark:{conditions:{base:"fyvr126b",active:"fyvr126c",disabled:"fyvr126d",focus:"fyvr126e",hover:"fyvr126f",checked:"fyvr126g"},defaultClass:"fyvr126b"},arbitrumLight:{conditions:{base:"fyvr126h",active:"fyvr126i",disabled:"fyvr126j",focus:"fyvr126k",hover:"fyvr126l",checked:"fyvr126m"},defaultClass:"fyvr126h"},avalanceDark:{conditions:{base:"fyvr126n",active:"fyvr126o",disabled:"fyvr126p",focus:"fyvr126q",hover:"fyvr126r",checked:"fyvr126s"},defaultClass:"fyvr126n"},avalanceLight:{conditions:{base:"fyvr126t",active:"fyvr126u",disabled:"fyvr126v",focus:"fyvr126w",hover:"fyvr126x",checked:"fyvr126y"},defaultClass:"fyvr126t"},bscDark:{conditions:{base:"fyvr126z",active:"fyvr1270",disabled:"fyvr1271",focus:"fyvr1272",hover:"fyvr1273",checked:"fyvr1274"},defaultClass:"fyvr126z"},bscLight:{conditions:{base:"fyvr1275",active:"fyvr1276",disabled:"fyvr1277",focus:"fyvr1278",hover:"fyvr1279",checked:"fyvr127a"},defaultClass:"fyvr1275"},ethereumDark:{conditions:{base:"fyvr127b",active:"fyvr127c",disabled:"fyvr127d",focus:"fyvr127e",hover:"fyvr127f",checked:"fyvr127g"},defaultClass:"fyvr127b"},ethereumLight:{conditions:{base:"fyvr127h",active:"fyvr127i",disabled:"fyvr127j",focus:"fyvr127k",hover:"fyvr127l",checked:"fyvr127m"},defaultClass:"fyvr127h"},gnosisDark:{conditions:{base:"fyvr127n",active:"fyvr127o",disabled:"fyvr127p",focus:"fyvr127q",hover:"fyvr127r",checked:"fyvr127s"},defaultClass:"fyvr127n"},gnosisLight:{conditions:{base:"fyvr127t",active:"fyvr127u",disabled:"fyvr127v",focus:"fyvr127w",hover:"fyvr127x",checked:"fyvr127y"},defaultClass:"fyvr127t"},polygonDark:{conditions:{base:"fyvr127z",active:"fyvr1280",disabled:"fyvr1281",focus:"fyvr1282",hover:"fyvr1283",checked:"fyvr1284"},defaultClass:"fyvr127z"},polygonLight:{conditions:{base:"fyvr1285",active:"fyvr1286",disabled:"fyvr1287",focus:"fyvr1288",hover:"fyvr1289",checked:"fyvr128a"},defaultClass:"fyvr1285"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128b",active:"fyvr128c",disabled:"fyvr128d",focus:"fyvr128e",hover:"fyvr128f",checked:"fyvr128g"},defaultClass:"fyvr128b"},dashed:{conditions:{base:"fyvr128h",active:"fyvr128i",disabled:"fyvr128j",focus:"fyvr128k",hover:"fyvr128l",checked:"fyvr128m"},defaultClass:"fyvr128h"},dotted:{conditions:{base:"fyvr128n",active:"fyvr128o",disabled:"fyvr128p",focus:"fyvr128q",hover:"fyvr128r",checked:"fyvr128s"},defaultClass:"fyvr128n"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr128t",active:"fyvr128u",disabled:"fyvr128v",focus:"fyvr128w",hover:"fyvr128x",checked:"fyvr128y"},defaultClass:"fyvr128t"},white:{conditions:{base:"fyvr128z",active:"fyvr1290",disabled:"fyvr1291",focus:"fyvr1292",hover:"fyvr1293",checked:"fyvr1294"},defaultClass:"fyvr128z"},inherit:{conditions:{base:"fyvr1295",active:"fyvr1296",disabled:"fyvr1297",focus:"fyvr1298",hover:"fyvr1299",checked:"fyvr129a"},defaultClass:"fyvr1295"},transparent:{conditions:{base:"fyvr129b",active:"fyvr129c",disabled:"fyvr129d",focus:"fyvr129e",hover:"fyvr129f",checked:"fyvr129g"},defaultClass:"fyvr129b"},positive:{conditions:{base:"fyvr129h",active:"fyvr129i",disabled:"fyvr129j",focus:"fyvr129k",hover:"fyvr129l",checked:"fyvr129m"},defaultClass:"fyvr129h"},negative:{conditions:{base:"fyvr129n",active:"fyvr129o",disabled:"fyvr129p",focus:"fyvr129q",hover:"fyvr129r",checked:"fyvr129s"},defaultClass:"fyvr129n"},info:{conditions:{base:"fyvr129t",active:"fyvr129u",disabled:"fyvr129v",focus:"fyvr129w",hover:"fyvr129x",checked:"fyvr129y"},defaultClass:"fyvr129t"},warning:{conditions:{base:"fyvr129z",active:"fyvr12a0",disabled:"fyvr12a1",focus:"fyvr12a2",hover:"fyvr12a3",checked:"fyvr12a4"},defaultClass:"fyvr129z"},gradientBackdrop:{conditions:{base:"fyvr12a5",active:"fyvr12a6",disabled:"fyvr12a7",focus:"fyvr12a8",hover:"fyvr12a9",checked:"fyvr12aa"},defaultClass:"fyvr12a5"},gradientPrimary:{conditions:{base:"fyvr12ab",active:"fyvr12ac",disabled:"fyvr12ad",focus:"fyvr12ae",hover:"fyvr12af",checked:"fyvr12ag"},defaultClass:"fyvr12ab"},gradientSecondary:{conditions:{base:"fyvr12ah",active:"fyvr12ai",disabled:"fyvr12aj",focus:"fyvr12ak",hover:"fyvr12al",checked:"fyvr12am"},defaultClass:"fyvr12ah"},backgroundPrimary:{conditions:{base:"fyvr12an",active:"fyvr12ao",disabled:"fyvr12ap",focus:"fyvr12aq",hover:"fyvr12ar",checked:"fyvr12as"},defaultClass:"fyvr12an"},backgroundSecondary:{conditions:{base:"fyvr12at",active:"fyvr12au",disabled:"fyvr12av",focus:"fyvr12aw",hover:"fyvr12ax",checked:"fyvr12ay"},defaultClass:"fyvr12at"},backgroundContrast:{conditions:{base:"fyvr12az",active:"fyvr12b0",disabled:"fyvr12b1",focus:"fyvr12b2",hover:"fyvr12b3",checked:"fyvr12b4"},defaultClass:"fyvr12az"},backgroundMuted:{conditions:{base:"fyvr12b5",active:"fyvr12b6",disabled:"fyvr12b7",focus:"fyvr12b8",hover:"fyvr12b9",checked:"fyvr12ba"},defaultClass:"fyvr12b5"},backgroundControl:{conditions:{base:"fyvr12bb",active:"fyvr12bc",disabled:"fyvr12bd",focus:"fyvr12be",hover:"fyvr12bf",checked:"fyvr12bg"},defaultClass:"fyvr12bb"},backgroundInverse:{conditions:{base:"fyvr12bh",active:"fyvr12bi",disabled:"fyvr12bj",focus:"fyvr12bk",hover:"fyvr12bl",checked:"fyvr12bm"},defaultClass:"fyvr12bh"},backgroundBackdrop:{conditions:{base:"fyvr12bn",active:"fyvr12bo",disabled:"fyvr12bp",focus:"fyvr12bq",hover:"fyvr12br",checked:"fyvr12bs"},defaultClass:"fyvr12bn"},backgroundOverlay:{conditions:{base:"fyvr12bt",active:"fyvr12bu",disabled:"fyvr12bv",focus:"fyvr12bw",hover:"fyvr12bx",checked:"fyvr12by"},defaultClass:"fyvr12bt"},borderNormal:{conditions:{base:"fyvr12bz",active:"fyvr12c0",disabled:"fyvr12c1",focus:"fyvr12c2",hover:"fyvr12c3",checked:"fyvr12c4"},defaultClass:"fyvr12bz"},borderFocus:{conditions:{base:"fyvr12c5",active:"fyvr12c6",disabled:"fyvr12c7",focus:"fyvr12c8",hover:"fyvr12c9",checked:"fyvr12ca"},defaultClass:"fyvr12c5"},buttonGlass:{conditions:{base:"fyvr12cb",active:"fyvr12cc",disabled:"fyvr12cd",focus:"fyvr12ce",hover:"fyvr12cf",checked:"fyvr12cg"},defaultClass:"fyvr12cb"},buttonEmphasis:{conditions:{base:"fyvr12ch",active:"fyvr12ci",disabled:"fyvr12cj",focus:"fyvr12ck",hover:"fyvr12cl",checked:"fyvr12cm"},defaultClass:"fyvr12ch"},buttonInverse:{conditions:{base:"fyvr12cn",active:"fyvr12co",disabled:"fyvr12cp",focus:"fyvr12cq",hover:"fyvr12cr",checked:"fyvr12cs"},defaultClass:"fyvr12cn"},text50:{conditions:{base:"fyvr12ct",active:"fyvr12cu",disabled:"fyvr12cv",focus:"fyvr12cw",hover:"fyvr12cx",checked:"fyvr12cy"},defaultClass:"fyvr12ct"},text80:{conditions:{base:"fyvr12cz",active:"fyvr12d0",disabled:"fyvr12d1",focus:"fyvr12d2",hover:"fyvr12d3",checked:"fyvr12d4"},defaultClass:"fyvr12cz"},text100:{conditions:{base:"fyvr12d5",active:"fyvr12d6",disabled:"fyvr12d7",focus:"fyvr12d8",hover:"fyvr12d9",checked:"fyvr12da"},defaultClass:"fyvr12d5"},textInverse100:{conditions:{base:"fyvr12db",active:"fyvr12dc",disabled:"fyvr12dd",focus:"fyvr12de",hover:"fyvr12df",checked:"fyvr12dg"},defaultClass:"fyvr12db"},arbitrumDark:{conditions:{base:"fyvr12dh",active:"fyvr12di",disabled:"fyvr12dj",focus:"fyvr12dk",hover:"fyvr12dl",checked:"fyvr12dm"},defaultClass:"fyvr12dh"},arbitrumLight:{conditions:{base:"fyvr12dn",active:"fyvr12do",disabled:"fyvr12dp",focus:"fyvr12dq",hover:"fyvr12dr",checked:"fyvr12ds"},defaultClass:"fyvr12dn"},avalanceDark:{conditions:{base:"fyvr12dt",active:"fyvr12du",disabled:"fyvr12dv",focus:"fyvr12dw",hover:"fyvr12dx",checked:"fyvr12dy"},defaultClass:"fyvr12dt"},avalanceLight:{conditions:{base:"fyvr12dz",active:"fyvr12e0",disabled:"fyvr12e1",focus:"fyvr12e2",hover:"fyvr12e3",checked:"fyvr12e4"},defaultClass:"fyvr12dz"},bscDark:{conditions:{base:"fyvr12e5",active:"fyvr12e6",disabled:"fyvr12e7",focus:"fyvr12e8",hover:"fyvr12e9",checked:"fyvr12ea"},defaultClass:"fyvr12e5"},bscLight:{conditions:{base:"fyvr12eb",active:"fyvr12ec",disabled:"fyvr12ed",focus:"fyvr12ee",hover:"fyvr12ef",checked:"fyvr12eg"},defaultClass:"fyvr12eb"},ethereumDark:{conditions:{base:"fyvr12eh",active:"fyvr12ei",disabled:"fyvr12ej",focus:"fyvr12ek",hover:"fyvr12el",checked:"fyvr12em"},defaultClass:"fyvr12eh"},ethereumLight:{conditions:{base:"fyvr12en",active:"fyvr12eo",disabled:"fyvr12ep",focus:"fyvr12eq",hover:"fyvr12er",checked:"fyvr12es"},defaultClass:"fyvr12en"},gnosisDark:{conditions:{base:"fyvr12et",active:"fyvr12eu",disabled:"fyvr12ev",focus:"fyvr12ew",hover:"fyvr12ex",checked:"fyvr12ey"},defaultClass:"fyvr12et"},gnosisLight:{conditions:{base:"fyvr12ez",active:"fyvr12f0",disabled:"fyvr12f1",focus:"fyvr12f2",hover:"fyvr12f3",checked:"fyvr12f4"},defaultClass:"fyvr12ez"},polygonDark:{conditions:{base:"fyvr12f5",active:"fyvr12f6",disabled:"fyvr12f7",focus:"fyvr12f8",hover:"fyvr12f9",checked:"fyvr12fa"},defaultClass:"fyvr12f5"},polygonLight:{conditions:{base:"fyvr12fb",active:"fyvr12fc",disabled:"fyvr12fd",focus:"fyvr12fe",hover:"fyvr12ff",checked:"fyvr12fg"},defaultClass:"fyvr12fb"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12fh",active:"fyvr12fi",disabled:"fyvr12fj",focus:"fyvr12fk",hover:"fyvr12fl",checked:"fyvr12fm"},defaultClass:"fyvr12fh"},dashed:{conditions:{base:"fyvr12fn",active:"fyvr12fo",disabled:"fyvr12fp",focus:"fyvr12fq",hover:"fyvr12fr",checked:"fyvr12fs"},defaultClass:"fyvr12fn"},dotted:{conditions:{base:"fyvr12ft",active:"fyvr12fu",disabled:"fyvr12fv",focus:"fyvr12fw",hover:"fyvr12fx",checked:"fyvr12fy"},defaultClass:"fyvr12ft"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12fz",active:"fyvr12g0",disabled:"fyvr12g1",focus:"fyvr12g2",hover:"fyvr12g3",checked:"fyvr12g4"},defaultClass:"fyvr12fz"},white:{conditions:{base:"fyvr12g5",active:"fyvr12g6",disabled:"fyvr12g7",focus:"fyvr12g8",hover:"fyvr12g9",checked:"fyvr12ga"},defaultClass:"fyvr12g5"},inherit:{conditions:{base:"fyvr12gb",active:"fyvr12gc",disabled:"fyvr12gd",focus:"fyvr12ge",hover:"fyvr12gf",checked:"fyvr12gg"},defaultClass:"fyvr12gb"},transparent:{conditions:{base:"fyvr12gh",active:"fyvr12gi",disabled:"fyvr12gj",focus:"fyvr12gk",hover:"fyvr12gl",checked:"fyvr12gm"},defaultClass:"fyvr12gh"},positive:{conditions:{base:"fyvr12gn",active:"fyvr12go",disabled:"fyvr12gp",focus:"fyvr12gq",hover:"fyvr12gr",checked:"fyvr12gs"},defaultClass:"fyvr12gn"},negative:{conditions:{base:"fyvr12gt",active:"fyvr12gu",disabled:"fyvr12gv",focus:"fyvr12gw",hover:"fyvr12gx",checked:"fyvr12gy"},defaultClass:"fyvr12gt"},info:{conditions:{base:"fyvr12gz",active:"fyvr12h0",disabled:"fyvr12h1",focus:"fyvr12h2",hover:"fyvr12h3",checked:"fyvr12h4"},defaultClass:"fyvr12gz"},warning:{conditions:{base:"fyvr12h5",active:"fyvr12h6",disabled:"fyvr12h7",focus:"fyvr12h8",hover:"fyvr12h9",checked:"fyvr12ha"},defaultClass:"fyvr12h5"},gradientBackdrop:{conditions:{base:"fyvr12hb",active:"fyvr12hc",disabled:"fyvr12hd",focus:"fyvr12he",hover:"fyvr12hf",checked:"fyvr12hg"},defaultClass:"fyvr12hb"},gradientPrimary:{conditions:{base:"fyvr12hh",active:"fyvr12hi",disabled:"fyvr12hj",focus:"fyvr12hk",hover:"fyvr12hl",checked:"fyvr12hm"},defaultClass:"fyvr12hh"},gradientSecondary:{conditions:{base:"fyvr12hn",active:"fyvr12ho",disabled:"fyvr12hp",focus:"fyvr12hq",hover:"fyvr12hr",checked:"fyvr12hs"},defaultClass:"fyvr12hn"},backgroundPrimary:{conditions:{base:"fyvr12ht",active:"fyvr12hu",disabled:"fyvr12hv",focus:"fyvr12hw",hover:"fyvr12hx",checked:"fyvr12hy"},defaultClass:"fyvr12ht"},backgroundSecondary:{conditions:{base:"fyvr12hz",active:"fyvr12i0",disabled:"fyvr12i1",focus:"fyvr12i2",hover:"fyvr12i3",checked:"fyvr12i4"},defaultClass:"fyvr12hz"},backgroundContrast:{conditions:{base:"fyvr12i5",active:"fyvr12i6",disabled:"fyvr12i7",focus:"fyvr12i8",hover:"fyvr12i9",checked:"fyvr12ia"},defaultClass:"fyvr12i5"},backgroundMuted:{conditions:{base:"fyvr12ib",active:"fyvr12ic",disabled:"fyvr12id",focus:"fyvr12ie",hover:"fyvr12if",checked:"fyvr12ig"},defaultClass:"fyvr12ib"},backgroundControl:{conditions:{base:"fyvr12ih",active:"fyvr12ii",disabled:"fyvr12ij",focus:"fyvr12ik",hover:"fyvr12il",checked:"fyvr12im"},defaultClass:"fyvr12ih"},backgroundInverse:{conditions:{base:"fyvr12in",active:"fyvr12io",disabled:"fyvr12ip",focus:"fyvr12iq",hover:"fyvr12ir",checked:"fyvr12is"},defaultClass:"fyvr12in"},backgroundBackdrop:{conditions:{base:"fyvr12it",active:"fyvr12iu",disabled:"fyvr12iv",focus:"fyvr12iw",hover:"fyvr12ix",checked:"fyvr12iy"},defaultClass:"fyvr12it"},backgroundOverlay:{conditions:{base:"fyvr12iz",active:"fyvr12j0",disabled:"fyvr12j1",focus:"fyvr12j2",hover:"fyvr12j3",checked:"fyvr12j4"},defaultClass:"fyvr12iz"},borderNormal:{conditions:{base:"fyvr12j5",active:"fyvr12j6",disabled:"fyvr12j7",focus:"fyvr12j8",hover:"fyvr12j9",checked:"fyvr12ja"},defaultClass:"fyvr12j5"},borderFocus:{conditions:{base:"fyvr12jb",active:"fyvr12jc",disabled:"fyvr12jd",focus:"fyvr12je",hover:"fyvr12jf",checked:"fyvr12jg"},defaultClass:"fyvr12jb"},buttonGlass:{conditions:{base:"fyvr12jh",active:"fyvr12ji",disabled:"fyvr12jj",focus:"fyvr12jk",hover:"fyvr12jl",checked:"fyvr12jm"},defaultClass:"fyvr12jh"},buttonEmphasis:{conditions:{base:"fyvr12jn",active:"fyvr12jo",disabled:"fyvr12jp",focus:"fyvr12jq",hover:"fyvr12jr",checked:"fyvr12js"},defaultClass:"fyvr12jn"},buttonInverse:{conditions:{base:"fyvr12jt",active:"fyvr12ju",disabled:"fyvr12jv",focus:"fyvr12jw",hover:"fyvr12jx",checked:"fyvr12jy"},defaultClass:"fyvr12jt"},text50:{conditions:{base:"fyvr12jz",active:"fyvr12k0",disabled:"fyvr12k1",focus:"fyvr12k2",hover:"fyvr12k3",checked:"fyvr12k4"},defaultClass:"fyvr12jz"},text80:{conditions:{base:"fyvr12k5",active:"fyvr12k6",disabled:"fyvr12k7",focus:"fyvr12k8",hover:"fyvr12k9",checked:"fyvr12ka"},defaultClass:"fyvr12k5"},text100:{conditions:{base:"fyvr12kb",active:"fyvr12kc",disabled:"fyvr12kd",focus:"fyvr12ke",hover:"fyvr12kf",checked:"fyvr12kg"},defaultClass:"fyvr12kb"},textInverse100:{conditions:{base:"fyvr12kh",active:"fyvr12ki",disabled:"fyvr12kj",focus:"fyvr12kk",hover:"fyvr12kl",checked:"fyvr12km"},defaultClass:"fyvr12kh"},arbitrumDark:{conditions:{base:"fyvr12kn",active:"fyvr12ko",disabled:"fyvr12kp",focus:"fyvr12kq",hover:"fyvr12kr",checked:"fyvr12ks"},defaultClass:"fyvr12kn"},arbitrumLight:{conditions:{base:"fyvr12kt",active:"fyvr12ku",disabled:"fyvr12kv",focus:"fyvr12kw",hover:"fyvr12kx",checked:"fyvr12ky"},defaultClass:"fyvr12kt"},avalanceDark:{conditions:{base:"fyvr12kz",active:"fyvr12l0",disabled:"fyvr12l1",focus:"fyvr12l2",hover:"fyvr12l3",checked:"fyvr12l4"},defaultClass:"fyvr12kz"},avalanceLight:{conditions:{base:"fyvr12l5",active:"fyvr12l6",disabled:"fyvr12l7",focus:"fyvr12l8",hover:"fyvr12l9",checked:"fyvr12la"},defaultClass:"fyvr12l5"},bscDark:{conditions:{base:"fyvr12lb",active:"fyvr12lc",disabled:"fyvr12ld",focus:"fyvr12le",hover:"fyvr12lf",checked:"fyvr12lg"},defaultClass:"fyvr12lb"},bscLight:{conditions:{base:"fyvr12lh",active:"fyvr12li",disabled:"fyvr12lj",focus:"fyvr12lk",hover:"fyvr12ll",checked:"fyvr12lm"},defaultClass:"fyvr12lh"},ethereumDark:{conditions:{base:"fyvr12ln",active:"fyvr12lo",disabled:"fyvr12lp",focus:"fyvr12lq",hover:"fyvr12lr",checked:"fyvr12ls"},defaultClass:"fyvr12ln"},ethereumLight:{conditions:{base:"fyvr12lt",active:"fyvr12lu",disabled:"fyvr12lv",focus:"fyvr12lw",hover:"fyvr12lx",checked:"fyvr12ly"},defaultClass:"fyvr12lt"},gnosisDark:{conditions:{base:"fyvr12lz",active:"fyvr12m0",disabled:"fyvr12m1",focus:"fyvr12m2",hover:"fyvr12m3",checked:"fyvr12m4"},defaultClass:"fyvr12lz"},gnosisLight:{conditions:{base:"fyvr12m5",active:"fyvr12m6",disabled:"fyvr12m7",focus:"fyvr12m8",hover:"fyvr12m9",checked:"fyvr12ma"},defaultClass:"fyvr12m5"},polygonDark:{conditions:{base:"fyvr12mb",active:"fyvr12mc",disabled:"fyvr12md",focus:"fyvr12me",hover:"fyvr12mf",checked:"fyvr12mg"},defaultClass:"fyvr12mb"},polygonLight:{conditions:{base:"fyvr12mh",active:"fyvr12mi",disabled:"fyvr12mj",focus:"fyvr12mk",hover:"fyvr12ml",checked:"fyvr12mm"},defaultClass:"fyvr12mh"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12mn",active:"fyvr12mo",disabled:"fyvr12mp",focus:"fyvr12mq",hover:"fyvr12mr",checked:"fyvr12ms"},defaultClass:"fyvr12mn"},dashed:{conditions:{base:"fyvr12mt",active:"fyvr12mu",disabled:"fyvr12mv",focus:"fyvr12mw",hover:"fyvr12mx",checked:"fyvr12my"},defaultClass:"fyvr12mt"},dotted:{conditions:{base:"fyvr12mz",active:"fyvr12n0",disabled:"fyvr12n1",focus:"fyvr12n2",hover:"fyvr12n3",checked:"fyvr12n4"},defaultClass:"fyvr12mz"}}},color:{values:{black:{conditions:{base:"fyvr12n5",active:"fyvr12n6",disabled:"fyvr12n7",focus:"fyvr12n8",hover:"fyvr12n9",checked:"fyvr12na"},defaultClass:"fyvr12n5"},white:{conditions:{base:"fyvr12nb",active:"fyvr12nc",disabled:"fyvr12nd",focus:"fyvr12ne",hover:"fyvr12nf",checked:"fyvr12ng"},defaultClass:"fyvr12nb"},inherit:{conditions:{base:"fyvr12nh",active:"fyvr12ni",disabled:"fyvr12nj",focus:"fyvr12nk",hover:"fyvr12nl",checked:"fyvr12nm"},defaultClass:"fyvr12nh"},transparent:{conditions:{base:"fyvr12nn",active:"fyvr12no",disabled:"fyvr12np",focus:"fyvr12nq",hover:"fyvr12nr",checked:"fyvr12ns"},defaultClass:"fyvr12nn"},positive:{conditions:{base:"fyvr12nt",active:"fyvr12nu",disabled:"fyvr12nv",focus:"fyvr12nw",hover:"fyvr12nx",checked:"fyvr12ny"},defaultClass:"fyvr12nt"},negative:{conditions:{base:"fyvr12nz",active:"fyvr12o0",disabled:"fyvr12o1",focus:"fyvr12o2",hover:"fyvr12o3",checked:"fyvr12o4"},defaultClass:"fyvr12nz"},info:{conditions:{base:"fyvr12o5",active:"fyvr12o6",disabled:"fyvr12o7",focus:"fyvr12o8",hover:"fyvr12o9",checked:"fyvr12oa"},defaultClass:"fyvr12o5"},warning:{conditions:{base:"fyvr12ob",active:"fyvr12oc",disabled:"fyvr12od",focus:"fyvr12oe",hover:"fyvr12of",checked:"fyvr12og"},defaultClass:"fyvr12ob"},gradientBackdrop:{conditions:{base:"fyvr12oh",active:"fyvr12oi",disabled:"fyvr12oj",focus:"fyvr12ok",hover:"fyvr12ol",checked:"fyvr12om"},defaultClass:"fyvr12oh"},gradientPrimary:{conditions:{base:"fyvr12on",active:"fyvr12oo",disabled:"fyvr12op",focus:"fyvr12oq",hover:"fyvr12or",checked:"fyvr12os"},defaultClass:"fyvr12on"},gradientSecondary:{conditions:{base:"fyvr12ot",active:"fyvr12ou",disabled:"fyvr12ov",focus:"fyvr12ow",hover:"fyvr12ox",checked:"fyvr12oy"},defaultClass:"fyvr12ot"},backgroundPrimary:{conditions:{base:"fyvr12oz",active:"fyvr12p0",disabled:"fyvr12p1",focus:"fyvr12p2",hover:"fyvr12p3",checked:"fyvr12p4"},defaultClass:"fyvr12oz"},backgroundSecondary:{conditions:{base:"fyvr12p5",active:"fyvr12p6",disabled:"fyvr12p7",focus:"fyvr12p8",hover:"fyvr12p9",checked:"fyvr12pa"},defaultClass:"fyvr12p5"},backgroundContrast:{conditions:{base:"fyvr12pb",active:"fyvr12pc",disabled:"fyvr12pd",focus:"fyvr12pe",hover:"fyvr12pf",checked:"fyvr12pg"},defaultClass:"fyvr12pb"},backgroundMuted:{conditions:{base:"fyvr12ph",active:"fyvr12pi",disabled:"fyvr12pj",focus:"fyvr12pk",hover:"fyvr12pl",checked:"fyvr12pm"},defaultClass:"fyvr12ph"},backgroundControl:{conditions:{base:"fyvr12pn",active:"fyvr12po",disabled:"fyvr12pp",focus:"fyvr12pq",hover:"fyvr12pr",checked:"fyvr12ps"},defaultClass:"fyvr12pn"},backgroundInverse:{conditions:{base:"fyvr12pt",active:"fyvr12pu",disabled:"fyvr12pv",focus:"fyvr12pw",hover:"fyvr12px",checked:"fyvr12py"},defaultClass:"fyvr12pt"},backgroundBackdrop:{conditions:{base:"fyvr12pz",active:"fyvr12q0",disabled:"fyvr12q1",focus:"fyvr12q2",hover:"fyvr12q3",checked:"fyvr12q4"},defaultClass:"fyvr12pz"},backgroundOverlay:{conditions:{base:"fyvr12q5",active:"fyvr12q6",disabled:"fyvr12q7",focus:"fyvr12q8",hover:"fyvr12q9",checked:"fyvr12qa"},defaultClass:"fyvr12q5"},borderNormal:{conditions:{base:"fyvr12qb",active:"fyvr12qc",disabled:"fyvr12qd",focus:"fyvr12qe",hover:"fyvr12qf",checked:"fyvr12qg"},defaultClass:"fyvr12qb"},borderFocus:{conditions:{base:"fyvr12qh",active:"fyvr12qi",disabled:"fyvr12qj",focus:"fyvr12qk",hover:"fyvr12ql",checked:"fyvr12qm"},defaultClass:"fyvr12qh"},buttonGlass:{conditions:{base:"fyvr12qn",active:"fyvr12qo",disabled:"fyvr12qp",focus:"fyvr12qq",hover:"fyvr12qr",checked:"fyvr12qs"},defaultClass:"fyvr12qn"},buttonEmphasis:{conditions:{base:"fyvr12qt",active:"fyvr12qu",disabled:"fyvr12qv",focus:"fyvr12qw",hover:"fyvr12qx",checked:"fyvr12qy"},defaultClass:"fyvr12qt"},buttonInverse:{conditions:{base:"fyvr12qz",active:"fyvr12r0",disabled:"fyvr12r1",focus:"fyvr12r2",hover:"fyvr12r3",checked:"fyvr12r4"},defaultClass:"fyvr12qz"},text50:{conditions:{base:"fyvr12r5",active:"fyvr12r6",disabled:"fyvr12r7",focus:"fyvr12r8",hover:"fyvr12r9",checked:"fyvr12ra"},defaultClass:"fyvr12r5"},text80:{conditions:{base:"fyvr12rb",active:"fyvr12rc",disabled:"fyvr12rd",focus:"fyvr12re",hover:"fyvr12rf",checked:"fyvr12rg"},defaultClass:"fyvr12rb"},text100:{conditions:{base:"fyvr12rh",active:"fyvr12ri",disabled:"fyvr12rj",focus:"fyvr12rk",hover:"fyvr12rl",checked:"fyvr12rm"},defaultClass:"fyvr12rh"},textInverse100:{conditions:{base:"fyvr12rn",active:"fyvr12ro",disabled:"fyvr12rp",focus:"fyvr12rq",hover:"fyvr12rr",checked:"fyvr12rs"},defaultClass:"fyvr12rn"},arbitrumDark:{conditions:{base:"fyvr12rt",active:"fyvr12ru",disabled:"fyvr12rv",focus:"fyvr12rw",hover:"fyvr12rx",checked:"fyvr12ry"},defaultClass:"fyvr12rt"},arbitrumLight:{conditions:{base:"fyvr12rz",active:"fyvr12s0",disabled:"fyvr12s1",focus:"fyvr12s2",hover:"fyvr12s3",checked:"fyvr12s4"},defaultClass:"fyvr12rz"},avalanceDark:{conditions:{base:"fyvr12s5",active:"fyvr12s6",disabled:"fyvr12s7",focus:"fyvr12s8",hover:"fyvr12s9",checked:"fyvr12sa"},defaultClass:"fyvr12s5"},avalanceLight:{conditions:{base:"fyvr12sb",active:"fyvr12sc",disabled:"fyvr12sd",focus:"fyvr12se",hover:"fyvr12sf",checked:"fyvr12sg"},defaultClass:"fyvr12sb"},bscDark:{conditions:{base:"fyvr12sh",active:"fyvr12si",disabled:"fyvr12sj",focus:"fyvr12sk",hover:"fyvr12sl",checked:"fyvr12sm"},defaultClass:"fyvr12sh"},bscLight:{conditions:{base:"fyvr12sn",active:"fyvr12so",disabled:"fyvr12sp",focus:"fyvr12sq",hover:"fyvr12sr",checked:"fyvr12ss"},defaultClass:"fyvr12sn"},ethereumDark:{conditions:{base:"fyvr12st",active:"fyvr12su",disabled:"fyvr12sv",focus:"fyvr12sw",hover:"fyvr12sx",checked:"fyvr12sy"},defaultClass:"fyvr12st"},ethereumLight:{conditions:{base:"fyvr12sz",active:"fyvr12t0",disabled:"fyvr12t1",focus:"fyvr12t2",hover:"fyvr12t3",checked:"fyvr12t4"},defaultClass:"fyvr12sz"},gnosisDark:{conditions:{base:"fyvr12t5",active:"fyvr12t6",disabled:"fyvr12t7",focus:"fyvr12t8",hover:"fyvr12t9",checked:"fyvr12ta"},defaultClass:"fyvr12t5"},gnosisLight:{conditions:{base:"fyvr12tb",active:"fyvr12tc",disabled:"fyvr12td",focus:"fyvr12te",hover:"fyvr12tf",checked:"fyvr12tg"},defaultClass:"fyvr12tb"},polygonDark:{conditions:{base:"fyvr12th",active:"fyvr12ti",disabled:"fyvr12tj",focus:"fyvr12tk",hover:"fyvr12tl",checked:"fyvr12tm"},defaultClass:"fyvr12th"},polygonLight:{conditions:{base:"fyvr12tn",active:"fyvr12to",disabled:"fyvr12tp",focus:"fyvr12tq",hover:"fyvr12tr",checked:"fyvr12ts"},defaultClass:"fyvr12tn"}}},cursor:{values:{default:{conditions:{base:"fyvr12tt",active:"fyvr12tu",disabled:"fyvr12tv",focus:"fyvr12tw",hover:"fyvr12tx",checked:"fyvr12ty"},defaultClass:"fyvr12tt"},pointer:{conditions:{base:"fyvr12tz",active:"fyvr12u0",disabled:"fyvr12u1",focus:"fyvr12u2",hover:"fyvr12u3",checked:"fyvr12u4"},defaultClass:"fyvr12tz"},text:{conditions:{base:"fyvr12u5",active:"fyvr12u6",disabled:"fyvr12u7",focus:"fyvr12u8",hover:"fyvr12u9",checked:"fyvr12ua"},defaultClass:"fyvr12u5"}}},opacity:{values:{0:{conditions:{base:"fyvr12ub",active:"fyvr12uc",disabled:"fyvr12ud",focus:"fyvr12ue",hover:"fyvr12uf",checked:"fyvr12ug"},defaultClass:"fyvr12ub"},50:{conditions:{base:"fyvr12uh",active:"fyvr12ui",disabled:"fyvr12uj",focus:"fyvr12uk",hover:"fyvr12ul",checked:"fyvr12um"},defaultClass:"fyvr12uh"},80:{conditions:{base:"fyvr12un",active:"fyvr12uo",disabled:"fyvr12up",focus:"fyvr12uq",hover:"fyvr12ur",checked:"fyvr12us"},defaultClass:"fyvr12un"},100:{conditions:{base:"fyvr12ut",active:"fyvr12uu",disabled:"fyvr12uv",focus:"fyvr12uw",hover:"fyvr12ux",checked:"fyvr12uy"},defaultClass:"fyvr12ut"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12uz",active:"fyvr12v0",disabled:"fyvr12v1",focus:"fyvr12v2",hover:"fyvr12v3",checked:"fyvr12v4"},defaultClass:"fyvr12uz"},auto:{conditions:{base:"fyvr12v5",active:"fyvr12v6",disabled:"fyvr12v7",focus:"fyvr12v8",hover:"fyvr12v9",checked:"fyvr12va"},defaultClass:"fyvr12v5"}}},outline:{values:{none:{conditions:{base:"fyvr12vb",active:"fyvr12vc",disabled:"fyvr12vd",focus:"fyvr12ve",hover:"fyvr12vf",checked:"fyvr12vg"},defaultClass:"fyvr12vb"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12vh",active:"fyvr12vi",disabled:"fyvr12vj",focus:"fyvr12vk",hover:"fyvr12vl",checked:"fyvr12vm"},defaultClass:"fyvr12vh"}}}}});const HN=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],Hy=t=>(t.display||(t.display=Object.keys(t).some(e=>HN.includes(e))?"flex":void 0),cS(t));Hy.properties=cS.properties;function fS(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)Hy.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=Hy({...o,...n});return g.createElement(r,{className:Xr(l,i),...a,ref:e})});var uS={exports:{}},lc={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Hw;function GN(){if(Hw)return lc;Hw=1;var t=cr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var f,u={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(u[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:e,type:a,key:d,ref:v,props:u,_owner:i.current}}return lc.Fragment=r,lc.jsx=o,lc.jsxs=o,lc}uS.exports=GN();var K=uS.exports;function WN(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KN(t){var e=WN(t,"string");return typeof e=="symbol"?e:String(e)}function YN(t,e,r){return e=KN(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ww(t){for(var e=1;e{for(var n of Object.keys(t)){var i;if(t[n]!==((i=e[n])!==null&&i!==void 0?i:r[n]))return!1}return!0},Lt=t=>{var e=r=>{var n=t.defaultClassName,i=Ww(Ww({},t.defaultVariants),r);for(var s in i){var o,a=(o=i[s])!==null&&o!==void 0?o:t.defaultVariants[s];if(a!=null){var l=a;typeof l=="boolean"&&(l=l===!0?"true":"false");var c=t.variantClassNames[s][l];c&&(n+=" "+c)}}for(var[f,u]of t.compoundVariants)QN(f,i,t.defaultVariants)&&(n+=" "+u);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return Kw(t.variantClassNames,r=>Kw(r,n=>n.split(" ")[0]))}},e};Lt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"fyvr11ot",warning:"fyvr11oz",success:"fyvr11oh",error:"fyvr11on"},size:{sm:"_1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_1qxj1ib9 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const wo=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return K.jsx(ie,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var JN=Lt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"fyvr11ls fyvr11m8 fyvr11n7 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Le=g.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:i,hidden:s,italic:o,underline:a,children:l,ellipsis:c,uppercase:f,capitalize:u,...d}=t,v=BN[n];return K.jsx(ie,{as:r,className:Xr(i,JN({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var XN=Lt({defaultClassName:"_140wn8nf fyvr11ls fyvr11m8 fyvr11n7 fyvr11ko fyvr11h0",variantClassNames:{variant:{base:"_140wn8ng",feature:"_140wn8nh fyvr11ph fyvr12nb",primary:"fyvr11pb fyvr12nb",glass:"fyvr11rb fyvr12rh",emphasis:"fyvr11rh fyvr12rh",danger:"fyvr11on fyvr12nb",text:"_140wn8nm _1qxj1ib9 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11ob fyvr12r5"},shape:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"fyvr12tt fyvr12uh",false:"fyvr12tz fyvr12ut fyvr12ur"},size:{xs:"_140wn8nr _1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr1ws fyvr1yo",sm:"_140wn8ns _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys",md:"_140wn8nt _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw",lg:"_140wn8nu _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nv"},hasLeftIcon:{true:"_140wn8nw"},hasRightIcon:{true:"_140wn8nx"},activeOutline:{light:"_140wn8ny",bold:"_140wn8nz"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n10"],[{iconOnly:!0,size:"sm"},"_140wn8n11"],[{iconOnly:!0,size:"md"},"_140wn8n12"],[{iconOnly:!0,size:"lg"},"_140wn8n13"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n14"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n16"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n17"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n19"]]});const Yr=g.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:i,disabled:s=!1,display:o="inline-flex",fontWeight:a="bold",pending:l=!1,label:c,leftIcon:f,rightIcon:u,size:d="md",variant:v="glass",width:m="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,S=u!==void 0&&c!==void 0,A=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return K.jsx(ie,{as:r,className:Xr(i,XN({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:S,iconOnly:A,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:e,type:w,width:m,...x,children:A?K.jsx(f,{size:_}):K.jsxs(ie,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[K.jsxs(ie,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&K.jsx(f,{size:_}),K.jsx(Le,{children:c})]}),u&&K.jsx(u,{size:_})]})})});var ZN=Lt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"fyvr12ur fyvr12tz"},disabled:{true:"rhmai65"},outlined:{true:"fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mn fyvr12fh fyvr1215 fyvr128b"},blur:{true:"fyvr11ms"}},defaultVariants:{},compoundVariants:[]});g.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return K.jsx(ie,{className:Xr(r,ZN({clickable:i,outlined:s,disabled:o,blur:a})),background:s?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:l,ref:e,...c,children:n})});function me(){return me=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>e$(r,e))}function At(...t){return g.useCallback(dS(...t),t)}function _r(t,e=[]){let r=[];function n(s,o){const a=g.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...m}=u,y=(d==null?void 0:d[t][l])||a,w=g.useMemo(()=>m,Object.values(m));return g.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,m=g.useContext(v);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const i=()=>{const s=r.map(o=>g.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return g.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,t$(i,...e)]}function t$(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Se(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Tn(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function Qo({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=r$({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Tn(r),l=g.useCallback(c=>{if(s){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[s,t,i,a]);return[o,l]}function r$({defaultProp:t,onChange:e}){const r=g.useState(t),[n]=r,i=g.useRef(n),s=Tn(e);return g.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function Ym(t){const e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const un=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{};function Qm(t){const[e,r]=g.useState(void 0);return un(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function n$(t,e){return g.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const po=t=>{const{present:e,children:r}=t,n=i$(e),i=typeof r=="function"?r({present:n.isPresent}):g.Children.only(r),s=At(n.ref,i.ref);return typeof r=="function"||n.isPresent?g.cloneElement(i,{ref:s}):null};po.displayName="Presence";function i$(t){const[e,r]=g.useState(),n=g.useRef({}),i=g.useRef(t),s=g.useRef("none"),o=t?"mounted":"unmounted",[a,l]=n$(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Yu(n.current);s.current=a==="mounted"?c:"none"},[a]),un(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Yu(c);t?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),un(()=>{if(e){const c=u=>{const v=Yu(n.current).includes(u.animationName);u.target===e&&v&&vo.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Yu(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:g.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Yu(t){return(t==null?void 0:t.animationName)||"none"}const ml=g.forwardRef((t,e)=>{const{children:r,...n}=t,i=g.Children.toArray(r),s=i.find(o$);if(s){const o=s.props.children,a=i.map(l=>l===s?g.Children.count(o)>1?g.Children.only(null):g.isValidElement(o)?o.props.children:null:l);return g.createElement(Gy,me({},n,{ref:e}),g.isValidElement(o)?g.cloneElement(o,void 0,a):null)}return g.createElement(Gy,me({},n,{ref:e}),r)});ml.displayName="Slot";const Gy=g.forwardRef((t,e)=>{const{children:r,...n}=t;return g.isValidElement(r)?g.cloneElement(r,{...a$(n,r.props),ref:e?dS(e,r.ref):r.ref}):g.Children.count(r)>1?g.Children.only(null):null});Gy.displayName="SlotClone";const s$=({children:t})=>g.createElement(g.Fragment,null,t);function o$(t){return g.isValidElement(t)&&t.type===s$}function a$(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}const l$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Je=l$.reduce((t,e)=>{const r=g.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?ml:e;return g.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),g.createElement(a,me({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Jm(t,e){t&&vo.flushSync(()=>t.dispatchEvent(e))}const hS="Checkbox",[c$,ZZ]=_r(hS),[f$,u$]=c$(hS),d$=g.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,d]=g.useState(null),v=At(e,S=>d(S)),m=g.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=Qo({prop:i,defaultProp:s,onChange:c}),b=g.useRef(w);return g.useEffect(()=>{const S=u==null?void 0:u.form;if(S){const A=()=>x(b.current);return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)}},[u,x]),g.createElement(f$,{scope:r,state:w,disabled:a},g.createElement(Je.button,me({type:"button",role:"checkbox","aria-checked":jo(w)?"mixed":w,"aria-required":o,"data-state":vS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Se(t.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Se(t.onClick,S=>{x(A=>jo(A)?!0:!A),y&&(m.current=S.isPropagationStopped(),m.current||S.stopPropagation())})})),y&&g.createElement(y$,{control:u,bubbles:!m.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),h$="CheckboxIndicator",v$=g.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=u$(h$,r);return g.createElement(po,{present:n||jo(s.state)||s.state===!0},g.createElement(Je.span,me({"data-state":vS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),y$=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Ym(r),a=Qm(e);return g.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=jo(r),u.call(l,jo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"checkbox","aria-hidden":!0,defaultChecked:jo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function jo(t){return t==="indeterminate"}function vS(t){return jo(t)?"indeterminate":t?"checked":"unchecked"}const p$=d$,m$=v$;var g$=Lt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const _l=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?K.jsxs(ie,{flexDirection:"column",gap:"0.5",children:[r&&K.jsx(Le,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&K.jsx(Le,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return K.jsxs(ie,{as:"label",className:g$({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var u0=Lt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const x$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),yS=({size:t="sm",...e})=>K.jsx(ie,{as:x$,className:u0({size:t}),...e}),b$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),pS=({size:t="sm",...e})=>K.jsx(ie,{as:b$,className:u0({size:t}),...e}),w$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),Xm=({size:t="sm",...e})=>K.jsx(ie,{as:w$,className:u0({size:t}),...e}),E$=t=>K.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:K.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),C$=({size:t="sm",...e})=>K.jsx(ie,{as:E$,className:u0({size:t}),...e});var S$=Lt({defaultClassName:"_1c9x66f1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11h0 fyvr11ko fyvr11jg fyvr12ut fyvr12ur fyvr12uj fyvr12tz fyvr12tv",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),A$=Lt({defaultClassName:"_1c9x66f5 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12rh fyvr11rt",variantClassNames:{size:{sm:"_1c9x66f6",lg:"_1c9x66f7"}},defaultVariants:{},compoundVariants:[]});const k$=({size:t="sm"})=>K.jsx(m$,{className:A$({size:t}),children:K.jsx(yS,{size:t})});g.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return K.jsx(_l,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:K.jsx(p$,{className:S$({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:K.jsx(k$,{})})})});cr.createContext(null);const R$=OE["useId".toString()]||(()=>{});let P$=0;function Xs(t){const[e,r]=g.useState(R$());return un(()=>{t||r(n=>n??String(P$++))},[t]),t||(e?`radix-${e}`:"")}const mS="Collapsible",[T$,eee]=_r(mS),[_$,Zm]=T$(mS),M$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=Qo({prop:n,defaultProp:i,onChange:o});return g.createElement(_$,{scope:r,disabled:s,contentId:Xs(),open:l,onOpenToggle:g.useCallback(()=>c(f=>!f),[c])},g.createElement(Je.div,me({"data-state":eg(l),"data-disabled":s?"":void 0},a,{ref:e})))}),I$="CollapsibleTrigger",N$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Zm(I$,r);return g.createElement(Je.button,me({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":eg(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Se(t.onClick,i.onOpenToggle)}))}),gS="CollapsibleContent",$$=g.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Zm(gS,t.__scopeCollapsible);return g.createElement(po,{present:r||i.open},({present:s})=>g.createElement(D$,me({},n,{ref:e,present:s})))}),D$=g.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Zm(gS,r),[a,l]=g.useState(n),c=g.useRef(null),f=At(e,c),u=g.useRef(0),d=u.current,v=g.useRef(0),m=v.current,y=o.open||a,w=g.useRef(y),x=g.useRef();return g.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),un(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const S=b.getBoundingClientRect();u.current=S.height,v.current=S.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),g.createElement(Je.div,me({"data-state":eg(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style}}),y&&i)});function eg(t){return t?"open":"closed"}const O$=M$,L$=N$,B$=$$;var Yw="64px",F$="_4j62fl4 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",j$="_4j62fl5",z$="_4j62fl0",U$="_4j62fl2 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11ob fyvr128 fyvr12tz fyvr11n2";const cc=t=>{const{className:e,children:r,defaultOpen:n,onOpenChange:i,label:s,...o}=t,[a,l]=g.useState(n),c=f=>{l(f),i==null||i(f)};return K.jsx(O$,{defaultOpen:n,onOpenChange:c,asChild:!0,children:K.jsxs(ie,{as:Za.div,className:Xr(e,z$),initial:{height:n?"auto":Yw},animate:{height:a?"auto":Yw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...o,children:[K.jsxs(L$,{className:U$,children:[K.jsx(Le,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:s}),K.jsx(ie,{as:Za.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:n?180:0},animate:{rotate:a?180:0},transition:{ease:"linear",duration:.1},children:K.jsx(pS,{className:j$,color:"text50"})})]}),K.jsx(lS,{children:a&&K.jsx(B$,{className:F$,asChild:!0,forceMount:!0,children:K.jsx(Za.div,{initial:{opacity:n?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function d0(t){const e=t+"CollectionProvider",[r,n]=_r(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:m,children:y}=v,w=cr.useRef(null),x=cr.useRef(new Map).current;return cr.createElement(i,{scope:m,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=cr.forwardRef((v,m)=>{const{scope:y,children:w}=v,x=s(a,y),b=At(m,x.collectionRef);return cr.createElement(ml,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=cr.forwardRef((v,m)=>{const{scope:y,children:w,...x}=v,b=cr.useRef(null),S=At(m,b),A=s(c,y);return cr.useEffect(()=>(A.itemMap.set(b,{ref:b,...x}),()=>void A.itemMap.delete(b))),cr.createElement(ml,{[f]:"",ref:S},w)});function d(v){const m=s(t+"CollectionConsumer",v);return cr.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((A,_)=>x.indexOf(A.ref.current)-x.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const V$=g.createContext(void 0);function tg(t){const e=g.useContext(V$);return t||e||"ltr"}function q$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t);g.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const Wy="dismissableLayer.update",H$="dismissableLayer.pointerDownOutside",G$="dismissableLayer.focusOutside";let Qw;const W$=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rg=g.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=g.useContext(W$),[u,d]=g.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=g.useState({}),y=At(e,O=>d(O)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),S=u?w.indexOf(u):-1,A=f.layersWithOutsidePointerEventsDisabled.size>0,_=S>=b,D=K$(O=>{const H=O.target,Y=[...f.branches].some(Q=>Q.contains(H));!_||Y||(s==null||s(O),a==null||a(O),O.defaultPrevented||l==null||l())},v),$=Y$(O=>{const H=O.target;[...f.branches].some(Q=>Q.contains(H))||(o==null||o(O),a==null||a(O),O.defaultPrevented||l==null||l())},v);return q$(O=>{S===f.layers.size-1&&(i==null||i(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},v),g.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Qw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),Jw(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Qw)}},[u,v,n,f]),g.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),Jw())},[u,f]),g.useEffect(()=>{const O=()=>m({});return document.addEventListener(Wy,O),()=>document.removeEventListener(Wy,O)},[]),g.createElement(Je.div,me({},c,{ref:y,style:{pointerEvents:A?_?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,$.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,D.onPointerDownCapture)}))});function K$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1),i=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){xS(H$,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Y$(t,e=globalThis==null?void 0:globalThis.document){const r=Tn(t),n=g.useRef(!1);return g.useEffect(()=>{const i=s=>{s.target&&!n.current&&xS(G$,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Jw(){const t=new CustomEvent(Wy);document.dispatchEvent(t)}function xS(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Jm(i,s):i.dispatchEvent(s)}const Q$=rg;let j1=0;function bS(){g.useEffect(()=>{var t,e;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=r[0])!==null&&t!==void 0?t:Xw()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Xw()),j1++,()=>{j1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),j1--}},[])}function Xw(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const z1="focusScope.autoFocusOnMount",U1="focusScope.autoFocusOnUnmount",Zw={bubbles:!1,cancelable:!0},wS=g.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=g.useState(null),c=Tn(i),f=Tn(s),u=g.useRef(null),d=At(e,y=>l(y)),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let y=function(S){if(v.paused||!a)return;const A=S.target;a.contains(A)?u.current=A:Ms(u.current,{select:!0})},w=function(S){if(v.paused||!a)return;const A=S.relatedTarget;A!==null&&(a.contains(A)||Ms(u.current,{select:!0}))},x=function(S){const A=document.activeElement;for(const _ of S)_.removedNodes.length>0&&(a!=null&&a.contains(A)||Ms(a))};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),g.useEffect(()=>{if(a){t3.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(z1,Zw);a.addEventListener(z1,c),a.dispatchEvent(x),x.defaultPrevented||(J$(rD(ES(a)),{select:!0}),document.activeElement===y&&Ms(a))}return()=>{a.removeEventListener(z1,c),setTimeout(()=>{const x=new CustomEvent(U1,Zw);a.addEventListener(U1,f),a.dispatchEvent(x),x.defaultPrevented||Ms(y??document.body,{select:!0}),a.removeEventListener(U1,f),t3.remove(v)},0)}}},[a,c,f,v]);const m=g.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[S,A]=X$(b);S&&A?!y.shiftKey&&x===A?(y.preventDefault(),r&&Ms(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&Ms(A,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return g.createElement(Je.div,me({tabIndex:-1},o,{ref:d,onKeyDown:m}))});function J$(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ms(n,{select:e}),document.activeElement!==r)return}function X$(t){const e=ES(t),r=e3(e,t),n=e3(e.reverse(),t);return[r,n]}function ES(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function e3(t,e){for(const r of t)if(!Z$(r,{upTo:e}))return r}function Z$(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function eD(t){return t instanceof HTMLInputElement&&"select"in t}function Ms(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&eD(t)&&e&&t.select()}}const t3=tD();function tD(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=r3(t,e),t.unshift(e)},remove(e){var r;t=r3(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function r3(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function rD(t){return t.filter(e=>e.tagName!=="A")}function Ml(t){return t.split("-")[1]}function ng(t){return t==="y"?"height":"width"}function fs(t){return t.split("-")[0]}function ca(t){return["top","bottom"].includes(fs(t))?"x":"y"}function n3(t,e,r){let{reference:n,floating:i}=t;const s=n.x+n.width/2-i.width/2,o=n.y+n.height/2-i.height/2,a=ca(e),l=ng(a),c=n[l]/2-i[l]/2,f=a==="x";let u;switch(fs(e)){case"top":u={x:s,y:n.y-i.height};break;case"bottom":u={x:s,y:n.y+n.height};break;case"right":u={x:n.x+n.width,y:o};break;case"left":u={x:n.x-i.width,y:o};break;default:u={x:n.x,y:n.y}}switch(Ml(e)){case"start":u[a]-=c*(r&&f?-1:1);break;case"end":u[a]+=c*(r&&f?-1:1)}return u}const nD=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=n3(c,n,l),d=n,v={},m=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{element:r,padding:n=0}=t||{},{x:i,y:s,placement:o,rects:a,platform:l,elements:c}=e;if(r==null)return{};const f=CS(n),u={x:i,y:s},d=ca(o),v=ng(d),m=await l.getDimensions(r),y=d==="y",w=y?"top":"left",x=y?"bottom":"right",b=y?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[d]-u[d]-a.floating[v],A=u[d]-a.reference[d],_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let D=_?_[b]:0;D&&await(l.isElement==null?void 0:l.isElement(_))||(D=c.floating[b]||a.floating[v]);const $=S/2-A/2,O=f[w],H=D-m[v]-f[x],Y=D/2-m[v]/2+$,Q=Yy(O,Y,H),re=Ml(o)!=null&&Y!=Q&&a.reference[v]/2-(Yt.concat(e,e+"-start",e+"-end"),[]);const iD={left:"right",right:"left",bottom:"top",top:"bottom"};function gh(t){return t.replace(/left|right|bottom|top/g,e=>iD[e])}function sD(t,e,r){r===void 0&&(r=!1);const n=Ml(t),i=ca(t),s=ng(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=gh(o)),{main:o,cross:gh(o)}}const oD={start:"end",end:"start"};function V1(t){return t.replace(/start|end/g,e=>oD[e])}const aD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;const{placement:n,middlewareData:i,rects:s,initialPlacement:o,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=t,w=fs(n),x=fs(o)===o,b=await(a.isRTL==null?void 0:a.isRTL(l.floating)),S=u||(x||!m?[gh(o)]:function(Q){const re=gh(Q);return[V1(Q),re,V1(re)]}(o));u||v==="none"||S.push(...function(Q,re,I,h){const C=Ml(Q);let R=function(M,T,N){const L=["left","right"],k=["right","left"],p=["top","bottom"],P=["bottom","top"];switch(M){case"top":case"bottom":return N?T?k:L:T?L:k;case"left":case"right":return T?p:P;default:return[]}}(fs(Q),I==="start",h);return C&&(R=R.map(M=>M+"-"+C),re&&(R=R.concat(R.map(V1)))),R}(o,m,v,b));const A=[o,...S],_=await Ff(e,y),D=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&D.push(_[w]),f){const{main:Q,cross:re}=sD(n,s,b);D.push(_[Q],_[re])}if($=[...$,{placement:n,overflows:D}],!D.every(Q=>Q<=0)){var O,H;const Q=(((O=i.flip)==null?void 0:O.index)||0)+1,re=A[Q];if(re)return{data:{index:Q,overflows:$},reset:{placement:re}};let I=(H=$.filter(h=>h.overflows[0]<=0).sort((h,C)=>h.overflows[1]-C.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(d){case"bestFit":{var Y;const h=(Y=$.map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:Y[0];h&&(I=h);break}case"initialPlacement":I=o}if(n!==I)return{reset:{placement:I}}}return{}}}};function s3(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function o3(t){return SS.some(e=>t[e]>=0)}const lD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{strategy:r="referenceHidden",...n}=t,{rects:i}=e;switch(r){case"referenceHidden":{const s=s3(await Ff(e,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:o3(s)}}}case"escaped":{const s=s3(await Ff(e,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:o3(s)}}}default:return{}}}}},cD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await async function(s,o){const{placement:a,platform:l,elements:c}=s,f=await(l.isRTL==null?void 0:l.isRTL(c.floating)),u=fs(a),d=Ml(a),v=ca(a)==="x",m=["left","top"].includes(u)?-1:1,y=f&&v?-1:1,w=typeof o=="function"?o(s):o;let{mainAxis:x,crossAxis:b,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return d&&typeof S=="number"&&(b=d==="end"?-1*S:S),v?{x:b*y,y:x*m}:{x:x*m,y:b*y}}(e,t);return{x:r+i.x,y:n+i.y,data:i}}}};function AS(t){return t==="x"?"y":"x"}const fD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=t,c={x:r,y:n},f=await Ff(e,l),u=ca(fs(i)),d=AS(u);let v=c[u],m=c[d];if(s){const w=u==="y"?"bottom":"right";v=Yy(v+f[u==="y"?"top":"left"],v,v-f[w])}if(o){const w=d==="y"?"bottom":"right";m=Yy(m+f[d==="y"?"top":"left"],m,m-f[w])}const y=a.fn({...e,[u]:v,[d]:m});return{...y,data:{x:y.x-r,y:y.y-n}}}}},uD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=t,f={x:r,y:n},u=ca(i),d=AS(u);let v=f[u],m=f[d];const y=typeof a=="function"?a(e):a,w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=u==="y"?"height":"width",A=s.reference[u]-s.floating[S]+w.mainAxis,_=s.reference[u]+s.reference[S]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const S=u==="y"?"width":"height",A=["top","left"].includes(fs(i)),_=s.reference[d]-s.floating[S]+(A&&((x=o.offset)==null?void 0:x[d])||0)+(A?0:w.crossAxis),D=s.reference[d]+s.reference[S]+(A?0:((b=o.offset)==null?void 0:b[d])||0)-(A?w.crossAxis:0);m<_?m=_:m>D&&(m=D)}return{[u]:v,[d]:m}}}},dD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:s}=e,{apply:o=()=>{},...a}=t,l=await Ff(e,a),c=fs(r),f=Ml(r),u=ca(r)==="x",{width:d,height:v}=n.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,m=f==="end"?"top":"bottom");const w=v-l[m],x=d-l[y],b=!e.middlewareData.shift;let S=w,A=x;if(u){const D=d-l.left-l.right;A=f||b?Ky(x,D):D}else{const D=v-l.top-l.bottom;S=f||b?Ky(w,D):D}if(b&&!f){const D=Po(l.left,0),$=Po(l.right,0),O=Po(l.top,0),H=Po(l.bottom,0);u?A=d-2*(D!==0||$!==0?D+$:Po(l.left,l.right)):S=v-2*(O!==0||H!==0?O+H:Po(l.top,l.bottom))}await o({...e,availableWidth:A,availableHeight:S});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function kn(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ri(t){return kn(t).getComputedStyle(t)}function kS(t){return t instanceof kn(t).Node}function io(t){return kS(t)?(t.nodeName||"").toLowerCase():""}function si(t){return t instanceof kn(t).HTMLElement}function an(t){return t instanceof kn(t).Element}function a3(t){return typeof ShadowRoot>"u"?!1:t instanceof kn(t).ShadowRoot||t instanceof ShadowRoot}function jf(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=ri(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function hD(t){return["table","td","th"].includes(io(t))}function Qy(t){const e=ig(),r=ri(t);return r.transform!=="none"||r.perspective!=="none"||!e&&!!r.backdropFilter&&r.backdropFilter!=="none"||!e&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ig(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function h0(t){return["html","body","#document"].includes(io(t))}const l3=Math.min,af=Math.max,xh=Math.round;function RS(t){const e=ri(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=si(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=xh(r)!==s||xh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,fallback:a}}function PS(t){return an(t)?t:t.contextElement}const TS={x:1,y:1};function el(t){const e=PS(t);if(!si(e))return TS;const r=e.getBoundingClientRect(),{width:n,height:i,fallback:s}=RS(e);let o=(s?xh(r.width):r.width)/n,a=(s?xh(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const c3={x:0,y:0};function _S(t,e,r){var n,i;if(e===void 0&&(e=!0),!ig())return c3;const s=t?kn(t):window;return!r||e&&r!==s?c3:{x:((n=s.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function Jo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=PS(t);let o=TS;e&&(n?an(n)&&(o=el(n)):o=el(t));const a=_S(s,r,n);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,f=i.width/o.x,u=i.height/o.y;if(s){const d=kn(s),v=n&&an(n)?kn(n):n;let m=d.frameElement;for(;m&&n&&v!==d;){const y=el(m),w=m.getBoundingClientRect(),x=getComputedStyle(m);w.x+=(m.clientLeft+parseFloat(x.paddingLeft))*y.x,w.y+=(m.clientTop+parseFloat(x.paddingTop))*y.y,l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=w.x,c+=w.y,m=kn(m).frameElement}}return mh({width:f,height:u,x:l,y:c})}function Zs(t){return((kS(t)?t.ownerDocument:t.document)||window.document).documentElement}function v0(t){return an(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function MS(t){return Jo(Zs(t)).left+v0(t).scrollLeft}function gl(t){if(io(t)==="html")return t;const e=t.assignedSlot||t.parentNode||a3(t)&&t.host||Zs(t);return a3(e)?e.host:e}function IS(t){const e=gl(t);return h0(e)?e.ownerDocument.body:si(e)&&jf(e)?e:IS(e)}function lf(t,e){var r;e===void 0&&(e=[]);const n=IS(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),s=kn(n);return i?e.concat(s,s.visualViewport||[],jf(n)?n:[]):e.concat(n,lf(n))}function f3(t,e,r){let n;if(e==="viewport")n=function(i,s){const o=kn(i),a=Zs(i),l=o.visualViewport;let c=a.clientWidth,f=a.clientHeight,u=0,d=0;if(l){c=l.width,f=l.height;const v=ig();(!v||v&&s==="fixed")&&(u=l.offsetLeft,d=l.offsetTop)}return{width:c,height:f,x:u,y:d}}(t,r);else if(e==="document")n=function(i){const s=Zs(i),o=v0(i),a=i.ownerDocument.body,l=af(s.scrollWidth,s.clientWidth,a.scrollWidth,a.clientWidth),c=af(s.scrollHeight,s.clientHeight,a.scrollHeight,a.clientHeight);let f=-o.scrollLeft+MS(i);const u=-o.scrollTop;return ri(a).direction==="rtl"&&(f+=af(s.clientWidth,a.clientWidth)-l),{width:l,height:c,x:f,y:u}}(Zs(t));else if(an(e))n=function(i,s){const o=Jo(i,!0,s==="fixed"),a=o.top+i.clientTop,l=o.left+i.clientLeft,c=si(i)?el(i):{x:1,y:1};return{width:i.clientWidth*c.x,height:i.clientHeight*c.y,x:l*c.x,y:a*c.y}}(e,r);else{const i=_S(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return mh(n)}function NS(t,e){const r=gl(t);return!(r===e||!an(r)||h0(r))&&(ri(r).position==="fixed"||NS(r,e))}function u3(t,e){return si(t)&&ri(t).position!=="fixed"?e?e(t):t.offsetParent:null}function d3(t,e){const r=kn(t);if(!si(t))return r;let n=u3(t,e);for(;n&&hD(n)&&ri(n).position==="static";)n=u3(n,e);return n&&(io(n)==="html"||io(n)==="body"&&ri(n).position==="static"&&!Qy(n))?r:n||function(i){let s=gl(i);for(;si(s)&&!h0(s);){if(Qy(s))return s;s=gl(s)}return null}(t)||r}function vD(t,e,r){const n=si(e),i=Zs(e),s=r==="fixed",o=Jo(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&!s)if((io(e)!=="body"||jf(i))&&(a=v0(e)),si(e)){const c=Jo(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=MS(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}const yD={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const s=r==="clippingAncestors"?function(c,f){const u=f.get(c);if(u)return u;let d=lf(c).filter(w=>an(w)&&io(w)!=="body"),v=null;const m=ri(c).position==="fixed";let y=m?gl(c):c;for(;an(y)&&!h0(y);){const w=ri(y),x=Qy(y);x||w.position!=="fixed"||(v=null),(m?!x&&!v:!x&&w.position==="static"&&v&&["absolute","fixed"].includes(v.position)||jf(y)&&!x&&NS(c,y))?d=d.filter(b=>b!==y):v=w,y=gl(y)}return f.set(c,d),d}(e,this._c):[].concat(r),o=[...s,n],a=o[0],l=o.reduce((c,f)=>{const u=f3(e,f,i);return c.top=af(u.top,c.top),c.right=l3(u.right,c.right),c.bottom=l3(u.bottom,c.bottom),c.left=af(u.left,c.left),c},f3(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=si(r),s=Zs(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((io(r)!=="body"||jf(s))&&(o=v0(r)),si(r))){const c=Jo(r);a=el(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}},isElement:an,getDimensions:function(t){return RS(t)},getOffsetParent:d3,getDocumentElement:Zs,getScale:el,async getElementRects(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||d3,s=this.getDimensions;return{reference:vD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ri(t).direction==="rtl"};function pD(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=!0,animationFrame:a=!1}=n,l=i||s?[...an(t)?lf(t):t.contextElement?lf(t.contextElement):[],...lf(e)]:[];l.forEach(d=>{const v=!an(d)&&d.toString().includes("V");!i||a&&!v||d.addEventListener("scroll",r,{passive:!0}),s&&d.addEventListener("resize",r)});let c,f=null;o&&(f=new ResizeObserver(()=>{r()}),an(t)&&!a&&f.observe(t),an(t)||!t.contextElement||a||f.observe(t.contextElement),f.observe(e));let u=a?Jo(t):null;return a&&function d(){const v=Jo(t);!u||v.x===u.x&&v.y===u.y&&v.width===u.width&&v.height===u.height||r(),u=v,c=requestAnimationFrame(d)}(),r(),()=>{var d;l.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),(d=f)==null||d.disconnect(),f=null,a&&cancelAnimationFrame(c)}}const mD=(t,e,r)=>{const n=new Map,i={platform:yD,...r},s={...i.platform,_c:n};return nD(t,e,{...i,platform:s})},gD=t=>{const{element:e,padding:r}=t;function n(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){return e&&n(e)?e.current!=null?i3({element:e.current,padding:r}).fn(i):{}:e?i3({element:e,padding:r}).fn(i):{}}}};var Rd=typeof document<"u"?g.useLayoutEffect:g.useEffect;function bh(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!bh(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&t.$$typeof)&&!bh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function $S(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function h3(t,e){const r=$S(t);return Math.round(e*r)/r}function v3(t){const e=g.useRef(t);return Rd(()=>{e.current=t}),e}function xD(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[f,u]=g.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=g.useState(n);bh(d,n)||v(n);const[m,y]=g.useState(null),[w,x]=g.useState(null),b=g.useCallback(R=>{R!=D.current&&(D.current=R,y(R))},[y]),S=g.useCallback(R=>{R!==$.current&&($.current=R,x(R))},[x]),A=s||m,_=o||w,D=g.useRef(null),$=g.useRef(null),O=g.useRef(f),H=v3(l),Y=v3(i),Q=g.useCallback(()=>{if(!D.current||!$.current)return;const R={placement:e,strategy:r,middleware:d};Y.current&&(R.platform=Y.current),mD(D.current,$.current,R).then(M=>{const T={...M,isPositioned:!0};re.current&&!bh(O.current,T)&&(O.current=T,vo.flushSync(()=>{u(T)}))})},[d,e,r,Y]);Rd(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[c]);const re=g.useRef(!1);Rd(()=>(re.current=!0,()=>{re.current=!1}),[]),Rd(()=>{if(A&&(D.current=A),_&&($.current=_),A&&_){if(H.current)return H.current(A,_,Q);Q()}},[A,_,Q,H]);const I=g.useMemo(()=>({reference:D,floating:$,setReference:b,setFloating:S}),[b,S]),h=g.useMemo(()=>({reference:A,floating:_}),[A,_]),C=g.useMemo(()=>{const R={position:r,left:0,top:0};if(!h.floating)return R;const M=h3(h.floating,f.x),T=h3(h.floating,f.y);return a?{...R,transform:"translate("+M+"px, "+T+"px)",...$S(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:T}},[r,a,h.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:Q,refs:I,elements:h,floatingStyles:C}),[f,Q,I,h,C])}const DS="Popper",[OS,Il]=_r(DS),[bD,LS]=OS(DS),wD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=g.useState(null);return g.createElement(bD,{scope:e,anchor:n,onAnchorChange:i},r)},ED="PopperAnchor",CD=g.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=LS(ED,r),o=g.useRef(null),a=At(e,o);return g.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:g.createElement(Je.div,me({},i,{ref:a}))}),BS="PopperContent",[SD,tee]=OS(BS),AD=g.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:m=0,arrowPadding:y=0,collisionBoundary:w=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:S=!1,avoidCollisions:A=!0,onPlaced:_,...D}=t,$=LS(BS,f),[O,H]=g.useState(null),Y=At(e,ce=>H(ce)),[Q,re]=g.useState(null),I=Qm(Q),h=(r=I==null?void 0:I.width)!==null&&r!==void 0?r:0,C=(n=I==null?void 0:I.height)!==null&&n!==void 0?n:0,R=u+(v!=="center"?"-"+v:""),M=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},T=Array.isArray(w)?w:[w],N=T.length>0,L={padding:M,boundary:T.filter(kD),altBoundary:N},{refs:k,floatingStyles:p,placement:P,isPositioned:B,middlewareData:E}=xD({strategy:"fixed",placement:R,whileElementsMounted:pD,elements:{reference:$.anchor},middleware:[cD({mainAxis:d+C,alignmentAxis:m}),A&&fD({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?uD():void 0,...L}),A&&aD({...L}),dD({...L,apply:({elements:ce,rects:xe,availableWidth:Er,availableHeight:je})=>{const{width:Ye,height:Zr}=xe.reference,Ie=ce.floating.style;Ie.setProperty("--radix-popper-available-width",`${Er}px`),Ie.setProperty("--radix-popper-available-height",`${je}px`),Ie.setProperty("--radix-popper-anchor-width",`${Ye}px`),Ie.setProperty("--radix-popper-anchor-height",`${Zr}px`)}}),Q&&gD({element:Q,padding:y}),RD({arrowWidth:h,arrowHeight:C}),S&&lD({strategy:"referenceHidden"})]}),[F,j]=FS(P),z=Tn(_);un(()=>{B&&(z==null||z())},[B,z]);const W=(i=E.arrow)===null||i===void 0?void 0:i.x,ne=(s=E.arrow)===null||s===void 0?void 0:s.y,X=((o=E.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ee,_e]=g.useState();return un(()=>{O&&_e(window.getComputedStyle(O).zIndex)},[O]),g.createElement("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...p,transform:B?p.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(a=E.transformOrigin)===null||a===void 0?void 0:a.x,(l=E.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},g.createElement(SD,{scope:f,placedSide:F,onArrowChange:re,arrowX:W,arrowY:ne,shouldHideArrow:X},g.createElement(Je.div,me({"data-side":F,"data-align":j},D,{ref:Y,style:{...D.style,animation:B?void 0:"none",opacity:(c=E.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function kD(t){return t!==null}const RD=t=>({name:"transformOrigin",options:t,fn(e){var r,n,i,s,o;const{placement:a,rects:l,middlewareData:c}=e,u=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,d=u?0:t.arrowWidth,v=u?0:t.arrowHeight,[m,y]=FS(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let S="",A="";return m==="bottom"?(S=u?w:`${x}px`,A=`${-v}px`):m==="top"?(S=u?w:`${x}px`,A=`${l.floating.height+v}px`):m==="right"?(S=`${-v}px`,A=u?w:`${b}px`):m==="left"&&(S=`${l.floating.width+v}px`,A=u?w:`${b}px`),{data:{x:S,y:A}}}});function FS(t){const[e,r="center"]=t.split("-");return[e,r]}const PD=wD,TD=CD,_D=AD,jS=g.forwardRef((t,e)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=t;return n?CT.createPortal(g.createElement(Je.div,me({},i,{ref:e})),n):null}),q1="rovingFocusGroup.onEntryFocus",MD={bubbles:!1,cancelable:!0},sg="RovingFocusGroup",[Jy,zS,ID]=d0(sg),[ND,Nl]=_r(sg,[ID]),[$D,DD]=ND(sg),OD=g.forwardRef((t,e)=>g.createElement(Jy.Provider,{scope:t.__scopeRovingFocusGroup},g.createElement(Jy.Slot,{scope:t.__scopeRovingFocusGroup},g.createElement(LD,me({},t,{ref:e}))))),LD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=g.useRef(null),d=At(e,u),v=tg(s),[m=null,y]=Qo({prop:o,defaultProp:a,onChange:l}),[w,x]=g.useState(!1),b=Tn(c),S=zS(r),A=g.useRef(!1),[_,D]=g.useState(0);return g.useEffect(()=>{const $=u.current;if($)return $.addEventListener(q1,b),()=>$.removeEventListener(q1,b)},[b]),g.createElement($D,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:m,onItemFocus:g.useCallback($=>y($),[y]),onItemShiftTab:g.useCallback(()=>x(!0),[]),onFocusableItemAdd:g.useCallback(()=>D($=>$+1),[]),onFocusableItemRemove:g.useCallback(()=>D($=>$-1),[])},g.createElement(Je.div,me({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Se(t.onMouseDown,()=>{A.current=!0}),onFocus:Se(t.onFocus,$=>{const O=!A.current;if($.target===$.currentTarget&&O&&!w){const H=new CustomEvent(q1,MD);if($.currentTarget.dispatchEvent(H),!H.defaultPrevented){const Y=S().filter(C=>C.focusable),Q=Y.find(C=>C.active),re=Y.find(C=>C.id===m),h=[Q,re,...Y].filter(Boolean).map(C=>C.ref.current);US(h)}}A.current=!1}),onBlur:Se(t.onBlur,()=>x(!1))})))}),BD="RovingFocusGroupItem",FD=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=Xs(),l=s||a,c=DD(BD,r),f=c.currentTabStopId===l,u=zS(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return g.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),g.createElement(Jy.ItemSlot,{scope:r,id:l,focusable:n,active:i},g.createElement(Je.span,me({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Se(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:Se(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Se(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=UD(m,c.orientation,c.dir);if(y!==void 0){m.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(m.currentTarget);x=c.loop?VD(x,b+1):x.slice(b+1)}setTimeout(()=>US(x))}})})))}),jD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function UD(t,e,r){const n=zD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return jD[n]}function US(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function VD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const qD=OD,VS=FD;var HD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ya=new WeakMap,Qu=new WeakMap,Ju={},H1=0,qS=function(t){return t&&(t.host||qS(t.parentNode))},GD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=qS(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},WD=function(t,e,r,n){var i=GD(e,Array.isArray(t)?t:[t]);Ju[r]||(Ju[r]=new WeakMap);var s=Ju[r],o=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),m=v!==null&&v!=="false",y=(ya.get(d)||0)+1,w=(s.get(d)||0)+1;ya.set(d,y),s.set(d,w),o.push(d),y===1&&m&&Qu.set(d,!0),w===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return f(e),a.clear(),H1++,function(){o.forEach(function(u){var d=ya.get(u)-1,v=s.get(u)-1;ya.set(u,d),s.set(u,v),d||(Qu.has(u)||u.removeAttribute(n),Qu.delete(u)),v||u.removeAttribute(r)}),H1--,H1||(ya=new WeakMap,ya=new WeakMap,Qu=new WeakMap,Ju={})}},HS=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=e||HD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),WD(n,i,r,"aria-hidden")):function(){return null}},Ci=function(){return Ci=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return fO;var e=uO(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},hO=YS(),vO=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` - .`.concat(YD,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(a,"px ").concat(n,`; - } - body { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(s,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(Pd,` { - right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Td,` { - margin-right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Pd," .").concat(Pd,` { - right: 0 `).concat(n,`; - } - - .`).concat(Td," .").concat(Td,` { - margin-right: 0 `).concat(n,`; - } - - body { - `).concat(QD,": ").concat(a,`px; - } -`)},yO=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=g.useMemo(function(){return dO(i)},[i]);return g.createElement(hO,{styles:vO(s,!e,i,r?"":"!important")})},Xy=!1;if(typeof window<"u")try{var Xu=Object.defineProperty({},"passive",{get:function(){return Xy=!0,!0}});window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,Xu)}catch{Xy=!1}var pa=Xy?{passive:!1}:!1,pO=function(t){return t.tagName==="TEXTAREA"},QS=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!pO(t)&&r[e]==="visible")},mO=function(t){return QS(t,"overflowY")},gO=function(t){return QS(t,"overflowX")},y3=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=JS(t,r);if(n){var i=XS(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},xO=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},bO=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},JS=function(t,e){return t==="v"?mO(e):gO(e)},XS=function(t,e){return t==="v"?xO(e):bO(e)},wO=function(t,e){return t==="h"&&e==="rtl"?-1:1},EO=function(t,e,r,n,i){var s=wO(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=XS(t,a),m=v[0],y=v[1],w=v[2],x=y-w-s*m;(m||x)&&JS(t,a)&&(u+=x,d+=m),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(i&&u===0||!i&&o>u)||!f&&(i&&d===0||!i&&-o>d))&&(c=!0),c},Zu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},p3=function(t){return[t.deltaX,t.deltaY]},m3=function(t){return t&&"current"in t?t.current:t},CO=function(t,e){return t[0]===e[0]&&t[1]===e[1]},SO=function(t){return` - .block-interactivity-`.concat(t,` {pointer-events: none;} - .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},AO=0,ma=[];function kO(t){var e=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),i=g.useState(AO++)[0],s=g.useState(function(){return YS()})[0],o=g.useRef(t);g.useEffect(function(){o.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=KD([t.lockRef.current],(t.shards||[]).map(m3),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=g.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Zu(y),b=r.current,S="deltaX"in y?y.deltaX:b[0]-x[0],A="deltaY"in y?y.deltaY:b[1]-x[1],_,D=y.target,$=Math.abs(S)>Math.abs(A)?"h":"v";if("touches"in y&&$==="h"&&D.type==="range")return!1;var O=y3($,D);if(!O)return!0;if(O?_=$:(_=$==="v"?"h":"v",O=y3($,D)),!O)return!1;if(!n.current&&"changedTouches"in y&&(S||A)&&(n.current=_),!_)return!0;var H=n.current||_;return EO(H,w,y,H==="h"?S:A,!0)},[]),l=g.useCallback(function(y){var w=y;if(!(!ma.length||ma[ma.length-1]!==s)){var x="deltaY"in w?p3(w):Zu(w),b=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&CO(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(m3).filter(Boolean).filter(function(_){return _.contains(w.target)}),A=S.length>0?a(w,S[0]):!o.current.noIsolation;A&&w.cancelable&&w.preventDefault()}}},[]),c=g.useCallback(function(y,w,x,b){var S={name:y,delta:w,target:x,should:b};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(A){return A!==S})},1)},[]),f=g.useCallback(function(y){r.current=Zu(y),n.current=void 0},[]),u=g.useCallback(function(y){c(y.type,p3(y),y.target,a(y,t.lockRef.current))},[]),d=g.useCallback(function(y){c(y.type,Zu(y),y.target,a(y,t.lockRef.current))},[]);g.useEffect(function(){return ma.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,pa),document.addEventListener("touchmove",l,pa),document.addEventListener("touchstart",f,pa),function(){ma=ma.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,pa),document.removeEventListener("touchmove",l,pa),document.removeEventListener("touchstart",f,pa)}},[]);var v=t.removeScrollBar,m=t.inert;return g.createElement(g.Fragment,null,m?g.createElement(s,{styles:SO(i)}):null,v?g.createElement(yO,{gapMode:"margin"}):null)}const RO=nO(KS,kO);var ZS=g.forwardRef(function(t,e){return g.createElement(y0,Ci({},t,{ref:e,sideCar:RO}))});ZS.classNames=y0.classNames;const eA=ZS,PO=["Enter"," "],p0="Menu",[TO,ree,_O]=d0(p0),[fa,tA]=_r(p0,[_O,Il,Nl]);Il();const MO=Nl();fa(p0);const[nee,IO]=fa(p0),NO="MenuPortal";fa(NO,{forceMount:void 0});const $O="MenuContent",[iee,rA]=fa($O),Zy="MenuItem",g3="menu.itemSelect",nA=g.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=g.useRef(null),o=IO(Zy,t.__scopeMenu),a=rA(Zy,t.__scopeMenu),l=At(e,s),c=g.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(g3,{bubbles:!0,cancelable:!0});u.addEventListener(g3,v=>n==null?void 0:n(v),{once:!0}),Jm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return g.createElement(DO,me({},i,{ref:l,disabled:r,onClick:Se(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Se(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Se(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||PO.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),DO=g.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=rA(Zy,r),a=MO(r),l=g.useRef(null),c=At(e,l),[f,u]=g.useState(!1),[d,v]=g.useState("");return g.useEffect(()=>{const m=l.current;if(m){var y;v(((y=m.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),g.createElement(TO.ItemSlot,{scope:r,disabled:n,textValue:i??d},g.createElement(VS,me({asChild:!0},a,{focusable:!n}),g.createElement(Je.div,me({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Se(t.onPointerMove,x3(m=>{n?o.onItemLeave(m):(o.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(t.onPointerLeave,x3(m=>o.onItemLeave(m))),onFocus:Se(t.onFocus,()=>u(!0)),onBlur:Se(t.onBlur,()=>u(!1))}))))}),OO=g.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return g.createElement(sA,{scope:t.__scopeMenu,checked:r},g.createElement(nA,me({role:"menuitemcheckbox","aria-checked":wh(r)?"mixed":r},i,{ref:e,"data-state":og(r),onSelect:Se(i.onSelect,()=>n==null?void 0:n(wh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),LO="MenuRadioGroup",[see,BO]=fa(LO,{value:void 0,onValueChange:()=>{}}),FO="MenuRadioItem",jO=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=BO(FO,t.__scopeMenu),s=r===i.value;return g.createElement(sA,{scope:t.__scopeMenu,checked:s},g.createElement(nA,me({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":og(s),onSelect:Se(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),iA="MenuItemIndicator",[sA,zO]=fa(iA,{checked:!1}),UO=g.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=zO(iA,r);return g.createElement(po,{present:n||wh(s.checked)||s.checked===!0},g.createElement(Je.span,me({},i,{ref:e,"data-state":og(s.checked)})))}),VO="MenuSub";fa(VO);function wh(t){return t==="indeterminate"}function og(t){return wh(t)?"indeterminate":t?"checked":"unchecked"}function x3(t){return e=>e.pointerType==="mouse"?t(e):void 0}const qO=OO,HO=jO,GO=UO,oA="DropdownMenu",[WO,oee]=_r(oA,[tA]),ag=tA();WO(oA);const KO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(qO,me({},i,n,{ref:e}))}),YO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(HO,me({},i,n,{ref:e}))}),QO=g.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=ag(r);return g.createElement(GO,me({},i,n,{ref:e}))}),JO=KO,XO=YO,aA=QO;var lA="_1k2mbvi5",cA="_1k2mbvi4 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12vk fyvr12ve fyvr11h0 fyvr11ko fyvr11jw fyvr12tz fyvr11n2 fyvr11hw fyvr12r5";const ZO=({children:t})=>K.jsx(aA,{className:lA,children:t});g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(JO,{className:Xr(cA,t),...r,ref:n,children:[K.jsx(ZO,{children:K.jsx(yS,{size:"xs"})}),K.jsx(Le,{variant:"small",children:e})]}));g.forwardRef(({className:t,children:e,...r},n)=>K.jsxs(XO,{className:Xr(cA,t),...r,ref:n,children:[K.jsx(aA,{className:lA,children:K.jsx(Le,{children:"•"})}),K.jsx(Le,{variant:"small",children:e})]}));const lg=g.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return K.jsx(Yr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),eL=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var tL="fyvr12vh fyvr12vb fyvr11ho fyvr12ub fyvr1ko fyvr1oo fyvr1mo fyvr1qo",rL="_1hq71vk1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12j5 fyvr12bz fyvr11xn fyvr124t fyvr12mt fyvr12fn fyvr121b fyvr128h fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",nL=Lt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const iL={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"};g.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:i=!1,id:s,label:o="",labelLocation:a="hidden",name:l,onValueChange:c,placeholder:f="Upload a file",validExtensions:u,...d}=t,v=g.useRef(null),m=eL(v,e),[y,w]=g.useState(null),x=S=>{const A=S.currentTarget.files;if(!A||!A[0])return;const _=A[0],D=_.name,$=_.size/1e3;w({name:D,size:$,extension:D.split(".").pop()??""}),c==null||c(_)},b=u.map(S=>iL[S]).join(",");return K.jsx(_l,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{justifyContent:y?"space-between":"flex-start",color:y?"text100":"text50",className:Xr(rL,nL({borderRadius:r})),children:[y?K.jsxs(ie,{flexDirection:"row",gap:"2",alignItems:"baseline",children:[K.jsx(Le,{children:y.name}),K.jsxs(Le,{color:"text50",variant:"xsmall",children:[y.size.toFixed(2)," kb"]})]}):K.jsx(Le,{children:f}),K.jsx(ie,{accept:b,as:"input",className:tL,cursor:y?"text":"pointer",disabled:i||!!y,id:s??l,name:l,onChange:x,ref:m,type:"file",...d}),y&&K.jsx(lg,{cursor:"pointer",icon:Xm,size:"xs",onClick:S=>{var A;S.preventDefault(),S.stopPropagation(),(A=v.current)!=null&&A.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})})});var sL=Lt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const ep=1e3,tl=64,K1=tl/2,Y1=(t,e=ep)=>t%e/(ep/tl),To=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let i=0,s;i>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},oL=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:To(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},aL=(t,e)=>{const r=[];for(let n=0;n{const s=tl/10+Y1(n.r,ep*1.5/(i+1));return{...oL(n.a,n.b,n.c),x:Y1(n.x),y:Y1(n.y),r:s}})};g.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=aL(r,i);return K.jsxs(ie,{as:"svg",className:Xr(e,sL({size:n})),viewBox:`0 0 ${tl} ${tl}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[K.jsxs("defs",{children:[K.jsx("clipPath",{id:"circle-clip",children:K.jsx("circle",{cx:K1,cy:K1,r:K1})}),K.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[K.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),K.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),K.jsx("feGaussianBlur",{stdDeviation:tl/10,result:"effect1_foregroundBlur"})]}),K.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[K.jsx("stop",{offset:"0",stopColor:o[0].c}),K.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>K.jsxs(g.Fragment,{children:[K.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.a}),K.jsx("stop",{offset:"1",stopColor:a.b})]}),K.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[K.jsx("stop",{offset:"0",stopColor:a.c}),K.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),K.jsxs("g",{clipPath:"url(#circle-clip)",children:[K.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),K.jsx("g",{filter:"url(#blur)",children:o.map(a=>K.jsxs(g.Fragment,{children:[K.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),K.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const lL=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=g.useState(!1),o=a=>{s(!0),r==null||r(a)};return K.jsx(ie,{as:Za.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},fA="Dialog",[uA,aee]=_r(fA),[cL,mo]=uA(fA),fL=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=g.useRef(null),l=g.useRef(null),[c=!1,f]=Qo({prop:n,defaultProp:i,onChange:s});return g.createElement(cL,{scope:e,triggerRef:a,contentRef:l,contentId:Xs(),titleId:Xs(),descriptionId:Xs(),open:c,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(u=>!u),[f]),modal:o},r)},dA="DialogPortal",[uL,hA]=uA(dA,{forceMount:void 0}),dL=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=mo(dA,e);return g.createElement(uL,{scope:e,forceMount:r},g.Children.map(n,o=>g.createElement(po,{present:r||s.open},g.createElement(jS,{asChild:!0,container:i},o))))},tp="DialogOverlay",hL=g.forwardRef((t,e)=>{const r=hA(tp,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=mo(tp,t.__scopeDialog);return s.modal?g.createElement(po,{present:n||s.open},g.createElement(vL,me({},i,{ref:e}))):null}),vL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=mo(tp,r);return g.createElement(eA,{as:ml,allowPinchZoom:!0,shards:[i.contentRef]},g.createElement(Je.div,me({"data-state":yA(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),zf="DialogContent",yL=g.forwardRef((t,e)=>{const r=hA(zf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=mo(zf,t.__scopeDialog);return g.createElement(po,{present:n||s.open},s.modal?g.createElement(pL,me({},i,{ref:e})):g.createElement(mL,me({},i,{ref:e})))}),pL=g.forwardRef((t,e)=>{const r=mo(zf,t.__scopeDialog),n=g.useRef(null),i=At(e,r.contentRef,n);return g.useEffect(()=>{const s=n.current;if(s)return HS(s)},[]),g.createElement(vA,me({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Se(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Se(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Se(t.onFocusOutside,s=>s.preventDefault())}))}),mL=g.forwardRef((t,e)=>{const r=mo(zf,t.__scopeDialog),n=g.useRef(!1),i=g.useRef(!1);return g.createElement(vA,me({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,s),!s.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=t.onInteractOutside)===null||o===void 0||o.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),vA=g.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=mo(zf,r),l=g.useRef(null),c=At(e,l);return bS(),g.createElement(g.Fragment,null,g.createElement(wS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},g.createElement(rg,me({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":yA(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),gL="DialogClose",xL=g.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=mo(gL,r);return g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,()=>i.onOpenChange(!1))}))});function yA(t){return t?"open":"closed"}const bL=fL,wL=dL,EL=hL,CL=yL,SL=xL;var AL=Lt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]}),kL=Lt({defaultClassName:"_1vqx0w91 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]});const RL=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return K.jsx(ie,{className:AL({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:K.jsx(ie,{className:kL({direction:n}),background:"backgroundPrimary",...i,children:e})})};var PL="fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11ni",TL=Lt({defaultClassName:"_5b32m95 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12vk fyvr12ve fyvr11h0 fyvr11i4 fyvr11hs fyvr11pn fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),_L="fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",ML="fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11ni fyvr1ko fyvr1oo fyvr1qo fyvr1mo";const IL=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:i=!1,isDismissible:s=!0,onClose:o,scroll:a=!0,size:l="lg",overlayProps:c,contentProps:f}=t;return K.jsx(bL,{modal:!0,defaultOpen:!0,onOpenChange:o,children:K.jsx(wL,{forceMount:!0,children:K.jsxs(ie,{className:ML,children:[K.jsx(ie,{as:EL,asChild:!0,background:r,className:_L,forceMount:!0,children:K.jsx(Za.div,{initial:i?!1:{opacity:0},animate:i?!1:{opacity:1},exit:i?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...c},"modal-overlay")}),K.jsx(CL,{asChild:!0,className:TL({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:u=>{s?o==null||o():u.preventDefault()},onInteractOutside:u=>{s||u.preventDefault()},children:K.jsxs(Za.div,{initial:i?!1:{y:"100%",opacity:l==="sm"?0:1},animate:i?!1:{y:0,opacity:1},exit:i?void 0:{y:"100%",opacity:l==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...f,children:[a?K.jsx(RL,{children:n}):n,s&&K.jsx(SL,{asChild:!0,children:K.jsx(lg,{icon:Xm,backdropFilter:"blur",size:"xs",className:PL,"aria-label":"Close"})})]},"modal-content")})]})})})};var NL=Lt({defaultClassName:"_1acm19ya fyvr1t4 fyvr1v0 fyvr12vh fyvr12vb fyvr11gw fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1qxj1ib9 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]}),$L="_1acm19y1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11ob fyvr12rh fyvr1g0 fyvr118g",DL=Lt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const gr=g.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",leftIcon:f,rightIcon:u,name:d,controls:v,type:m="text",numeric:y=!1,...w}=t;return K.jsx(_l,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:K.jsx(ie,{width:"full",children:K.jsxs(ie,{className:Xr($L,DL({borderRadius:i})),children:[f&&K.jsx(f,{size:"sm"}),K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:NL({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:m,...w}),u&&K.jsx(u,{size:"sm"}),v]})})})}),OL=RegExp("^\\d*(?:\\\\[.])?\\d*$");function LL(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}g.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:i,onBlur:s,...o}=t,a=c=>{let{value:f}=c.target;f=f.replace(/,/g,"."),f.startsWith(".")&&(f="0"+f),f.startsWith("0")&&(f=f.replace(/^0+(?=\d)/,"")),(f===""||OL.test(LL(f)))&&(i==null||i({...c,target:{...c.target,value:f}}))},l=c=>{const{value:f}=c.target;let u=f;u.endsWith(".")&&(u=u.slice(0,-1)),u.endsWith(".0")&&(u=u.slice(0,-2)),u==="0"&&(u=""),s==null||s(c),u!==f&&(i==null||i({...c,target:{...c.target,value:u}}))};return K.jsx(gr,{name:r,onChange:a,onBlur:l,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});Lt({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const pA="Progress",m0=100,[BL,lee]=_r(pA),[FL,cee]=BL(pA),jL=g.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=zL,...o}=t,a=rp(i)?i:m0,l=mA(n,a)?n:null,c=Eh(l)?s(l,a):void 0;return g.createElement(FL,{scope:r,value:l,max:a},g.createElement(Je.div,me({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Eh(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":UL(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});jL.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!rp(n)?new Error(VL(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=rp(t.max)?t.max:m0;return n!=null&&!mA(n,s)?new Error(qL(i,r)):null}};function zL(t,e){return`${Math.round(t/e*100)}%`}function UL(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Eh(t){return typeof t=="number"}function rp(t){return Eh(t)&&!isNaN(t)&&t>0}function mA(t,e){return Eh(t)&&!isNaN(t)&&t<=e&&t>=0}function VL(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${m0}\`.`}function qL(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${m0} if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`}const gA="Radio",[HL,xA]=_r(gA),[GL,WL]=HL(gA),KL=g.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=g.useState(null),d=At(e,y=>u(y)),v=g.useRef(!1),m=f?!!f.closest("form"):!0;return g.createElement(GL,{scope:r,checked:i,disabled:o},g.createElement(Je.button,me({type:"button",role:"radio","aria-checked":i,"data-state":bA(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Se(t.onClick,y=>{i||l==null||l(),m&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),m&&g.createElement(JL,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),YL="RadioIndicator",QL=g.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=WL(YL,r);return g.createElement(po,{present:n||s.checked},g.createElement(Je.span,me({"data-state":bA(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),JL=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=g.useRef(null),o=Ym(r),a=Qm(e);return g.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),g.createElement("input",me({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function bA(t){return t?"checked":"unchecked"}const XL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wA="RadioGroup",[ZL,fee]=_r(wA,[Nl,xA]),EA=Nl(),CA=xA(),[eB,tB]=ZL(wA),rB=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:f=!0,onValueChange:u,...d}=t,v=EA(r),m=tg(c),[y,w]=Qo({prop:s,defaultProp:i,onChange:u});return g.createElement(eB,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},g.createElement(qD,me({asChild:!0},v,{orientation:l,dir:m,loop:f}),g.createElement(Je.div,me({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m},d,{ref:e}))))}),nB="RadioGroupItem",iB=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=tB(nB,r),o=s.disabled||n,a=EA(r),l=CA(r),c=g.useRef(null),f=At(e,c),u=s.value===i.value,d=g.useRef(!1);return g.useEffect(()=>{const v=y=>{XL.includes(y.key)&&(d.current=!0)},m=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",m)}},[]),g.createElement(VS,me({asChild:!0},a,{focusable:!o,active:u}),g.createElement(KL,me({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Se(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Se(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),sB=g.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=CA(r);return g.createElement(QL,me({},i,n,{ref:e}))}),oB=rB,aB=iB,lB=sB;var cB=Lt({defaultClassName:"io59uy8 io59uy7 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12rh",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]}),fB=Lt({defaultClassName:"io59uy3 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr12jb fyvr12c5 fyvr11xt fyvr124z fyvr12mn fyvr12fh fyvr1215 fyvr128b fyvr11ob fyvr12tz fyvr12tv fyvr12uj",variantClassNames:{size:{sm:"io59uy4 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]});const uB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return K.jsx(ie,{alignItems:"center",children:K.jsx(_l,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:K.jsx(aB,{className:fB({size:n}),value:i,id:e,disabled:s,children:K.jsx(lB,{className:cB({size:n})})})})})};g.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return K.jsx(oB,{disabled:n,name:s,ref:e,...l,children:K.jsx(ie,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>K.jsx(uB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function b3(t,[e,r]){return Math.min(r,Math.max(e,t))}const SA=g.forwardRef((t,e)=>g.createElement(Je.span,me({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),dB=[" ","Enter","ArrowUp","ArrowDown"],hB=[" ","Enter"],g0="Select",[x0,cg,vB]=d0(g0),[$l,uee]=_r(g0,[vB,Il]),fg=Il(),[yB,ua]=$l(g0),[pB,mB]=$l(g0),gB=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:d,required:v}=t,m=fg(e),[y,w]=g.useState(null),[x,b]=g.useState(null),[S,A]=g.useState(!1),_=tg(c),[D=!1,$]=Qo({prop:n,defaultProp:i,onChange:s}),[O,H]=Qo({prop:o,defaultProp:a,onChange:l}),Y=g.useRef(null),Q=y?!!y.closest("form"):!0,[re,I]=g.useState(new Set),h=Array.from(re).map(C=>C.props.value).join(";");return g.createElement(PD,m,g.createElement(yB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:Xs(),value:O,onValueChange:H,open:D,onOpenChange:$,dir:_,triggerPointerDownPosRef:Y,disabled:d},g.createElement(x0.Provider,{scope:e},g.createElement(pB,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(C=>{I(R=>new Set(R).add(C))},[]),onNativeOptionRemove:g.useCallback(C=>{I(R=>{const M=new Set(R);return M.delete(C),M})},[])},r)),Q?g.createElement(kA,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:O,onChange:C=>H(C.target.value),disabled:d},O===void 0?g.createElement("option",{value:""}):null,Array.from(re)):null))},xB="SelectTrigger",bB=g.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=fg(r),o=ua(xB,r),a=o.disabled||n,l=At(e,o.onTriggerChange),c=cg(r),[f,u,d]=RA(m=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=PA(y,m,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return g.createElement(TD,me({asChild:!0},s),g.createElement(Je.button,me({type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":o.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const y=m.target;y.hasPointerCapture(m.pointerId)&&y.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const y=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(y&&m.key===" ")&&dB.includes(m.key)&&(v(),m.preventDefault())})})))}),wB="SelectValue",EB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o,...a}=t,l=ua(wB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=At(e,l.onValueNodeChange);return un(()=>{c(f)},[c,f]),g.createElement(Je.span,me({},a,{ref:u,style:{pointerEvents:"none"}}),l.value===void 0&&o!==void 0?o:s)}),CB=g.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return g.createElement(Je.span,me({"aria-hidden":!0},i,{ref:e}),n||"▼")}),xl="SelectContent",SB=g.forwardRef((t,e)=>{const r=ua(xl,t.__scopeSelect),[n,i]=g.useState();if(un(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?vo.createPortal(g.createElement(AA,{scope:t.__scopeSelect},g.createElement(x0.Slot,{scope:t.__scopeSelect},g.createElement("div",null,t.children))),s):null}return g.createElement(AB,me({},t,{ref:e}))}),Ji=10,[AA,b0]=$l(xl),AB=g.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=ua(xl,r),[S,A]=g.useState(null),[_,D]=g.useState(null),$=At(e,j=>A(j)),[O,H]=g.useState(null),[Y,Q]=g.useState(null),re=cg(r),[I,h]=g.useState(!1),C=g.useRef(!1);g.useEffect(()=>{if(S)return HS(S)},[S]),bS();const R=g.useCallback(j=>{const[z,...W]=re().map(ee=>ee.ref.current),[ne]=W.slice(-1),X=document.activeElement;for(const ee of j)if(ee===X||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===z&&_&&(_.scrollTop=0),ee===ne&&_&&(_.scrollTop=_.scrollHeight),ee==null||ee.focus(),document.activeElement!==X))return},[re,_]),M=g.useCallback(()=>R([O,S]),[R,O,S]);g.useEffect(()=>{I&&M()},[I,M]);const{onOpenChange:T,triggerPointerDownPosRef:N}=b;g.useEffect(()=>{if(S){let j={x:0,y:0};const z=ne=>{var X,ee,_e,ce;j={x:Math.abs(Math.round(ne.pageX)-((X=(ee=N.current)===null||ee===void 0?void 0:ee.x)!==null&&X!==void 0?X:0)),y:Math.abs(Math.round(ne.pageY)-((_e=(ce=N.current)===null||ce===void 0?void 0:ce.y)!==null&&_e!==void 0?_e:0))}},W=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():S.contains(ne.target)||T(!1),document.removeEventListener("pointermove",z),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",W,{capture:!0})}}},[S,T,N]),g.useEffect(()=>{const j=()=>T(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[T]);const[L,k]=RA(j=>{const z=re().filter(X=>!X.disabled),W=z.find(X=>X.ref.current===document.activeElement),ne=PA(z,j,W);ne&&setTimeout(()=>ne.ref.current.focus())}),p=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(b.value!==void 0&&b.value===z||ne)&&(H(j),ne&&(C.current=!0))},[b.value]),P=g.useCallback(()=>S==null?void 0:S.focus(),[S]),B=g.useCallback((j,z,W)=>{const ne=!C.current&&!W;(b.value!==void 0&&b.value===z||ne)&&Q(j)},[b.value]),E=n==="popper"?w3:kB,F=E===w3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:m,hideWhenDetached:y,avoidCollisions:w}:{};return g.createElement(AA,{scope:r,content:S,viewport:_,onViewportChange:D,itemRefCallback:p,selectedItem:O,onItemLeave:P,itemTextRefCallback:B,focusSelectedItem:M,selectedItemText:Y,position:n,isPositioned:I,searchRef:L},g.createElement(eA,{as:ml,allowPinchZoom:!0},g.createElement(wS,{asChild:!0,trapped:b.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:Se(i,j=>{var z;(z=b.trigger)===null||z===void 0||z.focus({preventScroll:!0}),j.preventDefault()})},g.createElement(rg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},g.createElement(E,me({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:j=>j.preventDefault()},x,F,{onPlaced:()=>h(!0),ref:$,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Se(x.onKeyDown,j=>{const z=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!z&&j.key.length===1&&k(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=re().filter(X=>!X.disabled).map(X=>X.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const X=j.target,ee=ne.indexOf(X);ne=ne.slice(ee+1)}setTimeout(()=>R(ne)),j.preventDefault()}})}))))))}),kB=g.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=ua(xl,r),o=b0(xl,r),[a,l]=g.useState(null),[c,f]=g.useState(null),u=At(e,$=>f($)),d=cg(r),v=g.useRef(!1),m=g.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const $=s.trigger.getBoundingClientRect(),O=c.getBoundingClientRect(),H=s.valueNode.getBoundingClientRect(),Y=x.getBoundingClientRect();if(s.dir!=="rtl"){const X=Y.left-O.left,ee=H.left-X,_e=$.left-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Ji,je=b3(ee,[Ji,Er-xe]);a.style.minWidth=ce+"px",a.style.left=je+"px"}else{const X=O.right-Y.right,ee=window.innerWidth-H.right-X,_e=window.innerWidth-$.right-ee,ce=$.width+_e,xe=Math.max(ce,O.width),Er=window.innerWidth-Ji,je=b3(ee,[Ji,Er-xe]);a.style.minWidth=ce+"px",a.style.right=je+"px"}const Q=d(),re=window.innerHeight-Ji*2,I=y.scrollHeight,h=window.getComputedStyle(c),C=parseInt(h.borderTopWidth,10),R=parseInt(h.paddingTop,10),M=parseInt(h.borderBottomWidth,10),T=parseInt(h.paddingBottom,10),N=C+R+I+T+M,L=Math.min(w.offsetHeight*5,N),k=window.getComputedStyle(y),p=parseInt(k.paddingTop,10),P=parseInt(k.paddingBottom,10),B=$.top+$.height/2-Ji,E=re-B,F=w.offsetHeight/2,j=w.offsetTop+F,z=C+R+j,W=N-z;if(z<=B){const X=w===Q[Q.length-1].ref.current;a.style.bottom="0px";const ee=c.clientHeight-y.offsetTop-y.offsetHeight,_e=Math.max(E,F+(X?P:0)+ee+M),ce=z+_e;a.style.height=ce+"px"}else{const X=w===Q[0].ref.current;a.style.top="0px";const _e=Math.max(B,C+y.offsetTop+(X?p:0)+F)+W;a.style.height=_e+"px",y.scrollTop=z-B+y.offsetTop}a.style.margin=`${Ji}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);un(()=>S(),[S]);const[A,_]=g.useState();un(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=g.useCallback($=>{$&&m.current===!0&&(S(),b==null||b(),m.current=!1)},[S,b]);return g.createElement(RB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},g.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:A}},g.createElement(Je.div,me({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),w3=g.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ji,...s}=t,o=fg(r);return g.createElement(_D,me({},o,s,{ref:e,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[RB,PB]=$l(xl,{}),E3="SelectViewport",TB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=b0(E3,r),s=PB(E3,r),o=At(e,i.onViewportChange),a=g.useRef(0);return g.createElement(g.Fragment,null,g.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),g.createElement(x0.Slot,{scope:r},g.createElement(Je.div,me({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-Ji*2,m=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(m,y);if(w0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),_B="SelectGroup",[MB,dee]=$l(_B),IB=g.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=Xs();return g.createElement(MB,{scope:r,id:i},g.createElement(Je.div,me({role:"group","aria-labelledby":i},n,{ref:e})))}),np="SelectItem",[NB,$B]=$l(np),DB=g.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=ua(np,r),l=b0(np,r),c=a.value===n,[f,u]=g.useState(s??""),[d,v]=g.useState(!1),m=At(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=Xs(),w=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};return g.createElement(NB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:g.useCallback(x=>{u(b=>{var S;return b||((S=x==null?void 0:x.textContent)!==null&&S!==void 0?S:"").trim()})},[])},g.createElement(x0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},g.createElement(Je.div,me({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:m,onFocus:Se(o.onFocus,()=>v(!0)),onBlur:Se(o.onBlur,()=>v(!1)),onPointerUp:Se(o.onPointerUp,w),onPointerMove:Se(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Se(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(hB.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),ed="SelectItemText",OB=g.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=ua(ed,r),a=b0(ed,r),l=$B(ed,r),c=mB(ed,r),[f,u]=g.useState(null),d=At(e,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,m=g.useMemo(()=>g.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return un(()=>(y(m),()=>w(m)),[y,w,m]),g.createElement(g.Fragment,null,g.createElement(Je.span,me({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?vo.createPortal(s.children,o.valueNode):null)}),kA=g.forwardRef((t,e)=>{const{value:r,...n}=t,i=g.useRef(null),s=At(e,i),o=Ym(r);return g.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&f){const u=new Event("change",{bubbles:!0});f.call(a,r),a.dispatchEvent(u)}},[o,r]),g.createElement(SA,{asChild:!0},g.createElement("select",me({},n,{ref:s,defaultValue:r})))});kA.displayName="BubbleSelect";function RA(t){const e=Tn(t),r=g.useRef(""),n=g.useRef(0),i=g.useCallback(o=>{const a=r.current+o;e(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),s=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function PA(t,e,r){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=r?t.indexOf(r):-1;let o=LB(t,Math.max(s,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function LB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const BB=gB,FB=bB,jB=EB,zB=CB,UB=SB,VB=TB,qB=IB,HB=DB,GB=OB;var WB="gohwuma fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11rb fyvr12rh fyvr11nj",KB="gohwume _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12vk fyvr12vl fyvr12ve fyvr12vf fyvr11h0 fyvr11jw fyvr11ko fyvr12tz fyvr12tv fyvr12rh fyvr12ut fyvr12uj",YB="gohwum1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr11hc fyvr11f4 fyvr12rh fyvr118c fyvr11jw fyvr11n2 fyvr12tz",QB=Lt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]});const JB=g.forwardRef(({children:t,className:e,...r},n)=>K.jsx(HB,{className:Xr(KB,e),...r,ref:n,children:K.jsx(GB,{children:t})})),TA=g.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:i,label:s="",description:o,labelLocation:a="hidden",name:l,options:c,placeholder:f,...u}=t;return K.jsx(_l,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:K.jsxs(BB,{disabled:n,name:l,...u,children:[K.jsxs(FB,{id:i??l,className:Xr(YB,QB({borderRadius:r})),ref:e,children:[K.jsx(jB,{placeholder:f}),K.jsx(ie,{as:zB,display:"inline-flex",children:K.jsx(pS,{})})]}),K.jsx(UB,{className:WB,children:K.jsx(VB,{children:K.jsx(qB,{children:c.map(({value:d,label:v,...m})=>K.jsx(JB,{value:d,...m,children:v},d))})})})]})})});g.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?K.jsx(lg,{icon:Xm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return K.jsx(gr,{ref:e,name:s,leftIcon:C$,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var XB=Lt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const ms=g.forwardRef((t,e)=>{const{size:r="md",...n}=t;return K.jsx(ie,{className:XB({size:r}),color:"text50",ref:e,...n,children:K.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[K.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),K.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});g.forwardRef(({children:t},e)=>K.jsx(ie,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));const _A="Switch",[ZB,hee]=_r(_A);ZB(_A);Lt({defaultClassName:"nwwh3z7",variantClassNames:{variant:{pill:"nwwh3z8",line:"nwwh3z9 fyvr11g0"},active:{true:"fyvr12ux",false:"nwwh3zb"},disabled:{true:"fyvr12uh"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"fyvr11rn fyvr12rn"],[{active:!1,variant:"pill"},"fyvr11ob fyvr12rb"],[{active:!0,variant:"line"},"fyvr12rh"],[{active:!1,variant:"line"},"fyvr12rb"]]});const MA="Tabs",[eF,vee]=_r(MA,[Nl]);Nl();eF(MA);var tF="_1qxj1ib9 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n7";g.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return K.jsxs(ie,{className:tF,ref:e,background:"buttonGlass",...i,children:[r&&K.jsx(r,{size:"xs"}),K.jsx(Le,{children:n})]})});const rF="ToastProvider",[nF,yee,iF]=d0("Toast"),[IA,pee]=_r("Toast",[iF]),[mee,NA]=IA(rF),C3="toast.viewportPause",S3="toast.viewportResume",w0="Toast",sF="toast.swipeStart",oF="toast.swipeMove",aF="toast.swipeCancel",lF="toast.swipeEnd",[cF,fF]=IA(w0,{onClose(){}}),uF=g.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:d,onSwipeEnd:v,...m}=t,y=NA(w0,r),[w,x]=g.useState(null),b=At(e,h=>x(h)),S=g.useRef(null),A=g.useRef(null),_=i||y.duration,D=g.useRef(0),$=g.useRef(_),O=g.useRef(0),{onToastAdd:H,onToastRemove:Y}=y,Q=Tn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),re=g.useCallback(h=>{!h||h===1/0||(window.clearTimeout(O.current),D.current=new Date().getTime(),O.current=window.setTimeout(Q,h))},[Q]);g.useEffect(()=>{const h=y.viewport;if(h){const C=()=>{re($.current),c==null||c()},R=()=>{const M=new Date().getTime()-D.current;$.current=$.current-M,window.clearTimeout(O.current),l==null||l()};return h.addEventListener(C3,R),h.addEventListener(S3,C),()=>{h.removeEventListener(C3,R),h.removeEventListener(S3,C)}}},[y.viewport,_,l,c,re]),g.useEffect(()=>{s&&!y.isClosePausedRef.current&&re(_)},[s,_,y.isClosePausedRef,re]),g.useEffect(()=>(H(),()=>Y()),[H,Y]);const I=g.useMemo(()=>w?DA(w):null,[w]);return y.viewport?g.createElement(g.Fragment,null,I&&g.createElement(dF,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),g.createElement(cF,{scope:r,onClose:Q},vo.createPortal(g.createElement(nF.ItemSlot,{scope:r},g.createElement(Q$,{asChild:!0,onEscapeKeyDown:Se(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Q(),y.isFocusedToastEscapeKeyDownRef.current=!1})},g.createElement(Je.li,me({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},m,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Se(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:Se(t.onPointerDown,h=>{h.button===0&&(S.current={x:h.clientX,y:h.clientY})}),onPointerMove:Se(t.onPointerMove,h=>{if(!S.current)return;const C=h.clientX-S.current.x,R=h.clientY-S.current.y,M=!!A.current,T=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,L=T?N(0,C):0,k=T?0:N(0,R),p=h.pointerType==="touch"?10:2,P={x:L,y:k},B={originalEvent:h,delta:P};M?(A.current=P,td(oF,u,B,{discrete:!1})):A3(P,y.swipeDirection,p)?(A.current=P,td(sF,f,B,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(C)>p||Math.abs(R)>p)&&(S.current=null)}),onPointerUp:Se(t.onPointerUp,h=>{const C=A.current,R=h.target;if(R.hasPointerCapture(h.pointerId)&&R.releasePointerCapture(h.pointerId),A.current=null,S.current=null,C){const M=h.currentTarget,T={originalEvent:h,delta:C};A3(C,y.swipeDirection,y.swipeThreshold)?td(lF,v,T,{discrete:!0}):td(aF,d,T,{discrete:!0}),M.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});uF.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${w0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const dF=t=>{const{__scopeToast:e,children:r,...n}=t,i=NA(w0,e),[s,o]=g.useState(!1),[a,l]=g.useState(!1);return mF(()=>o(!0)),g.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:g.createElement(jS,{asChild:!0},g.createElement(SA,n,s&&g.createElement(g.Fragment,null,i.label," ",r)))},hF="ToastAction",vF=g.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?g.createElement($A,{altText:r,asChild:!0},g.createElement(pF,me({},n,{ref:e}))):null});vF.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${hF}\``)}};const yF="ToastClose",pF=g.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=fF(yF,r);return g.createElement($A,{asChild:!0},g.createElement(Je.button,me({type:"button"},n,{ref:e,onClick:Se(t.onClick,i.onClose)})))}),$A=g.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return g.createElement(Je.div,me({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function DA(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),gF(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...DA(n))}}),e}function td(t,e,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?Jm(i,s):i.dispatchEvent(s)}const A3=(t,e,r=0)=>{const n=Math.abs(t.x),i=Math.abs(t.y),s=n>i;return e==="left"||e==="right"?s&&n>r:!s&&i>r};function mF(t=()=>{}){const e=Tn(t);un(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function gF(t){return t.nodeType===t.ELEMENT_NODE}Lt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});g.createContext(null);var xF="_15pztn2",bF="_15pztn1 _1qxj1ib9 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11ob fyvr12rh fyvr128 fyvr11h0";g.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",name:f,rows:u,resize:d=!1,...v}=t;return K.jsx(_l,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:K.jsx(ie,{as:r,autoComplete:n,spellCheck:"false",className:Xr(bF,d&&xF),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});const ip=["dark","light"],wF="dark",EF="data-theme",OA="@sequence.theme",CF=()=>{const t=localStorage.getItem(OA);return ip.includes(t)?t:wF},SF=g.createContext(null),AF=t=>{const[e,r]=g.useState(t.theme||CF());g.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),g.useEffect(()=>{t.theme&&ip.includes(t.theme)&&r(t.theme)},[t.theme]),g.useEffect(()=>{const i=document.querySelector(":root");i&&i.setAttribute(EF,e)},[e]);const n=g.useMemo(()=>({theme:e,setTheme:i=>{ip.includes(i)&&(localStorage.setItem(OA,i),r(i))}}),[e]);return K.jsx(SF.Provider,{value:n,children:t.children})};var kF="bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11pt fyvr128 fyvr15o fyvr11h0",RF="bnrrebe",PF=Lt({defaultClassName:"bnrreb5 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9"},borderRadius:{circle:"fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]});g.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return K.jsx(ie,{className:Xr(r,PF({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?K.jsx(lL,{className:RF,disableAnimation:n,src:s}):K.jsx(Le,{className:kF,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})});const[E0,gee]=_r("Tooltip",[Il]);Il();const TF="TooltipProvider";E0(TF);const LA="Tooltip";E0(LA);const _F="TooltipPortal";E0(_F,{forceMount:void 0});E0(LA,{isInside:!1});/** - * @remix-run/router v1.7.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function kt(){return kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Xo(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function IF(){return Math.random().toString(36).substr(2,8)}function R3(t,e){return{usr:t.state,key:t.key,idx:e}}function Uf(t,e,r,n){return r===void 0&&(r=null),kt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Vi(e):e,{state:r,key:e&&e.key||n||IF()})}function hu(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Vi(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function NF(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Qt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(kt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Qt.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=Qt.Push;let b=Uf(y.location,w,x);r&&r(b,w),c=f()+1;let S=R3(b,c),A=y.createHref(b);try{o.pushState(S,"",A)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(A)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Qt.Replace;let b=Uf(y.location,w,x);r&&r(b,w),c=f();let S=R3(b,c),A=y.createHref(b);o.replaceState(S,"",A),s&&l&&l({action:a,location:y.location,delta:0})}function m(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:hu(w);return He(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return t(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(k3,u),l=w,()=>{i.removeEventListener(k3,u),l=null}},createHref(w){return e(i,w)},createURL:m,encodeLocation(w){let x=m(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var rr;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(rr||(rr={}));const $F=new Set(["lazy","caseSensitive","path","id","index","children"]);function DF(t){return t.index===!0}function sp(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(He(i.index!==!0||!i.children,"Cannot specify children on an index route"),He(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),DF(i)){let l=kt({},i,e(i),{id:a});return n[a]=l,l}else{let l=kt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=sp(i.children,e,o,n)),l}})}function Va(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Vi(e):e,i=vu(n.pathname||"/",r);if(i==null)return null;let s=BA(t);OF(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(He(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=zo([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(He(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),BA(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:VF(c,s.index),routesMeta:f})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of FA(s.path))i(s,o,l)}),e}function FA(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=FA(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function OF(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:qF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const LF=/^:\w+$/,BF=3,FF=2,jF=1,zF=10,UF=-2,P3=t=>t==="*";function VF(t,e){let r=t.split("/"),n=r.length;return r.some(P3)&&(n+=UF),e&&(n+=FF),r.filter(i=>!P3(i)).reduce((i,s)=>i+(LF.test(s)?BF:s===""?jF:zF),n)}function qF(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function HF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{if(f==="*"){let d=a[u]||"";o=s.slice(0,s.length-d.length).replace(/(.)\/+$/,"$1")}return c[f]=YF(a[u]||"",f),c},{}),pathname:s,pathnameBase:o,pattern:t}}function WF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Xo(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,a)=>(n.push(a),"/([^\\/]+)"));return t.endsWith("*")?(n.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function KF(t){try{return decodeURI(t)}catch(e){return Xo(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function YF(t,e){try{return decodeURIComponent(t)}catch(r){return Xo(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function vu(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function QF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Vi(t):t;return{pathname:r?r.startsWith("/")?r:JF(r,e):e,search:ej(n),hash:tj(i)}}function JF(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Q1(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function jA(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function XF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Vi(t):(i=kt({},t),He(!i.pathname||!i.pathname.includes("?"),Q1("?","pathname","search",i)),He(!i.pathname||!i.pathname.includes("#"),Q1("#","pathname","hash",i)),He(!i.search||!i.search.includes("#"),Q1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(n||o==null)a=r;else{let u=e.length-1;if(o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=QF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const zo=t=>t.join("/").replace(/\/\/+/g,"/"),ZF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ej=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,tj=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class ug{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function zA(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const UA=["post","put","patch","delete"],rj=new Set(UA),nj=["get",...UA],ij=new Set(nj),sj=new Set([301,302,303,307,308]),oj=new Set([307,308]),J1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},aj={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},fc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},VA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lj=t=>({hasErrorBoundary:!!t.hasErrorBoundary});function cj(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;He(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let G=t.detectErrorBoundary;i=q=>({hasErrorBoundary:G(q)})}else i=lj;let s={},o=sp(t.routes,i,void 0,s),a,l=t.basename||"/",c=kt({v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),f=null,u=new Set,d=null,v=null,m=null,y=t.hydrationData!=null,w=Va(o,t.history.location,l),x=null;if(w==null){let G=xn(404,{pathname:t.history.location.pathname}),{matches:q,route:J}=O3(o);w=q,x={[J.id]:G}}let b=!w.some(G=>G.route.lazy)&&(!w.some(G=>G.route.loader)||t.hydrationData!=null),S,A={historyAction:t.history.action,location:t.history.location,matches:w,initialized:b,navigation:J1,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},_=Qt.Pop,D=!1,$,O=!1,H=!1,Y=[],Q=[],re=new Map,I=0,h=-1,C=new Map,R=new Set,M=new Map,T=new Map,N=new Map,L=!1;function k(){return f=t.history.listen(G=>{let{action:q,location:J,delta:he}=G;if(L){L=!1;return}Xo(N.size===0||he!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ye=ct({currentLocation:A.location,nextLocation:J,historyAction:q});if(ye&&he!=null){L=!0,t.history.go(he*-1),et(ye,{state:"blocked",location:J,proceed(){et(ye,{state:"proceeding",proceed:void 0,reset:void 0,location:J}),t.history.go(he)},reset(){let ve=new Map(A.blockers);ve.set(ye,fc),B({blockers:ve})}});return}return z(q,J)}),A.initialized||z(Qt.Pop,A.location),S}function p(){f&&f(),u.clear(),$&&$.abort(),A.fetchers.forEach((G,q)=>Zr(q)),A.blockers.forEach((G,q)=>fi(q))}function P(G){return u.add(G),()=>u.delete(G)}function B(G){A=kt({},A,G),u.forEach(q=>q(A))}function E(G,q){var J,he;let ye=A.actionData!=null&&A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&A.navigation.state==="loading"&&((J=G.state)==null?void 0:J._isRedirect)!==!0,ve;q.actionData?Object.keys(q.actionData).length>0?ve=q.actionData:ve=null:ye?ve=A.actionData:ve=null;let Ee=q.loaderData?D3(A.loaderData,q.loaderData,q.matches||[],q.errors):A.loaderData,de=A.blockers;de.size>0&&(de=new Map(de),de.forEach((Ve,Me)=>de.set(Me,fc)));let fe=D===!0||A.navigation.formMethod!=null&&Qn(A.navigation.formMethod)&&((he=G.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),O||_===Qt.Pop||(_===Qt.Push?t.history.push(G,G.state):_===Qt.Replace&&t.history.replace(G,G.state)),B(kt({},q,{actionData:ve,loaderData:Ee,historyAction:_,location:G,initialized:!0,navigation:J1,revalidation:"idle",restoreScrollPosition:ut(G,q.matches||A.matches),preventScrollReset:fe,blockers:de})),_=Qt.Pop,D=!1,O=!1,H=!1,Y=[],Q=[]}async function F(G,q){if(typeof G=="number"){t.history.go(G);return}let J=op(A.location,A.matches,l,c.v7_prependBasename,G,q==null?void 0:q.fromRouteId,q==null?void 0:q.relative),{path:he,submission:ye,error:ve}=T3(c.v7_normalizeFormMethod,!1,J,q),Ee=A.location,de=Uf(A.location,he,q&&q.state);de=kt({},de,t.history.encodeLocation(de));let fe=q&&q.replace!=null?q.replace:void 0,Ve=Qt.Push;fe===!0?Ve=Qt.Replace:fe===!1||ye!=null&&Qn(ye.formMethod)&&ye.formAction===A.location.pathname+A.location.search&&(Ve=Qt.Replace);let Me=q&&"preventScrollReset"in q?q.preventScrollReset===!0:void 0,be=ct({currentLocation:Ee,nextLocation:de,historyAction:Ve});if(be){et(be,{state:"blocked",location:de,proceed(){et(be,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),F(G,q)},reset(){let rt=new Map(A.blockers);rt.set(be,fc),B({blockers:rt})}});return}return await z(Ve,de,{submission:ye,pendingError:ve,preventScrollReset:Me,replace:q&&q.replace})}function j(){if(je(),B({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){z(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}z(_||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function z(G,q,J){$&&$.abort(),$=null,_=G,O=(J&&J.startUninterruptedRevalidation)===!0,Gi(A.location,A.matches),D=(J&&J.preventScrollReset)===!0;let he=a||o,ye=J&&J.overrideNavigation,ve=Va(he,q,l);if(!ve){let rt=xn(404,{pathname:q.pathname}),{matches:ke,route:Ge}=O3(he);Ln(),E(q,{matches:ke,loaderData:{},errors:{[Ge.id]:rt}});return}if(A.initialized&&!H&&vj(A.location,q)&&!(J&&J.submission&&Qn(J.submission.formMethod))){E(q,{matches:ve});return}$=new AbortController;let Ee=dc(t.history,q,$.signal,J&&J.submission),de,fe;if(J&&J.pendingError)fe={[qa(ve).route.id]:J.pendingError};else if(J&&J.submission&&Qn(J.submission.formMethod)){let rt=await W(Ee,q,J.submission,ve,{replace:J.replace});if(rt.shortCircuited)return;de=rt.pendingActionData,fe=rt.pendingActionError,ye=rd(q,J.submission),Ee=new Request(Ee.url,{signal:Ee.signal})}let{shortCircuited:Ve,loaderData:Me,errors:be}=await ne(Ee,q,ve,ye,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,de,fe);Ve||($=null,E(q,kt({matches:ve},de?{actionData:de}:{},{loaderData:Me,errors:be})))}async function W(G,q,J,he,ye){ye===void 0&&(ye={}),je();let ve=xj(q,J);B({navigation:ve});let Ee,de=lp(he,q);if(!de.route.action&&!de.route.lazy)Ee={type:rr.error,error:xn(405,{method:G.method,pathname:q.pathname,routeId:de.route.id})};else if(Ee=await uc("action",G,de,he,s,i,l),G.signal.aborted)return{shortCircuited:!0};if(rl(Ee)){let fe;return ye&&ye.replace!=null?fe=ye.replace:fe=Ee.location===A.location.pathname+A.location.search,await xe(A,Ee,{submission:J,replace:fe}),{shortCircuited:!0}}if(cf(Ee)){let fe=qa(he,de.route.id);return(ye&&ye.replace)!==!0&&(_=Qt.Push),{pendingActionData:{},pendingActionError:{[fe.route.id]:Ee.error}}}if($o(Ee))throw xn(400,{type:"defer-action"});return{pendingActionData:{[de.route.id]:Ee.data}}}async function ne(G,q,J,he,ye,ve,Ee,de,fe){let Ve=he||rd(q,ye),Me=ye||ve||F3(Ve),be=a||o,[rt,ke]=_3(t.history,A,J,Me,q,H,Y,Q,M,R,be,l,de,fe);if(Ln(De=>!(J&&J.some($e=>$e.route.id===De))||rt&&rt.some($e=>$e.route.id===De)),h=++I,rt.length===0&&ke.length===0){let De=ci();return E(q,kt({matches:J,loaderData:{},errors:fe||null},de?{actionData:de}:{},De?{fetchers:new Map(A.fetchers)}:{})),{shortCircuited:!0}}if(!O){ke.forEach($e=>{let qe=A.fetchers.get($e.key),Fn=hc(void 0,qe?qe.data:void 0);A.fetchers.set($e.key,Fn)});let De=de||A.actionData;B(kt({navigation:Ve},De?Object.keys(De).length===0?{actionData:null}:{actionData:De}:{},ke.length>0?{fetchers:new Map(A.fetchers)}:{}))}ke.forEach(De=>{re.has(De.key)&&Ie(De.key),De.controller&&re.set(De.key,De.controller)});let Ge=()=>ke.forEach(De=>Ie(De.key));$&&$.signal.addEventListener("abort",Ge);let{results:Mr,loaderResults:Xe,fetcherResults:nt}=await Er(A.matches,J,rt,ke,G);if(G.signal.aborted)return{shortCircuited:!0};$&&$.signal.removeEventListener("abort",Ge),ke.forEach(De=>re.delete(De.key));let vr=L3(Mr);if(vr){if(vr.idx>=rt.length){let De=ke[vr.idx-rt.length].key;R.add(De)}return await xe(A,vr.result,{replace:Ee}),{shortCircuited:!0}}let{loaderData:ze,errors:tt}=$3(A,J,rt,Xe,fe,ke,nt,T);T.forEach((De,$e)=>{De.subscribe(qe=>{(qe||De.done)&&T.delete($e)})});let Bn=ci(),it=lt(h),st=Bn||it||ke.length>0;return kt({loaderData:ze,errors:tt},st?{fetchers:new Map(A.fetchers)}:{})}function X(G){return A.fetchers.get(G)||aj}function ee(G,q,J,he){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(G)&&Ie(G);let ye=a||o,ve=op(A.location,A.matches,l,c.v7_prependBasename,J,q,he==null?void 0:he.relative),Ee=Va(ye,ve,l);if(!Ee){Ye(G,q,xn(404,{pathname:ve}));return}let{path:de,submission:fe,error:Ve}=T3(c.v7_normalizeFormMethod,!0,ve,he);if(Ve){Ye(G,q,Ve);return}let Me=lp(Ee,de);if(D=(he&&he.preventScrollReset)===!0,fe&&Qn(fe.formMethod)){_e(G,q,de,Me,Ee,fe);return}M.set(G,{routeId:q,path:de}),ce(G,q,de,Me,Ee,fe)}async function _e(G,q,J,he,ye,ve){if(je(),M.delete(G),!he.route.action&&!he.route.lazy){let Ae=xn(405,{method:ve.formMethod,pathname:J,routeId:q});Ye(G,q,Ae);return}let Ee=A.fetchers.get(G),de=bj(ve,Ee);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=dc(t.history,J,fe.signal,ve);re.set(G,fe);let Me=I,be=await uc("action",Ve,he,ye,s,i,l);if(Ve.signal.aborted){re.get(G)===fe&&re.delete(G);return}if(rl(be))if(re.delete(G),h>Me){let Ae=Aa(void 0);A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)});return}else{R.add(G);let Ae=hc(ve);return A.fetchers.set(G,Ae),B({fetchers:new Map(A.fetchers)}),xe(A,be,{submission:ve,isFetchActionRedirect:!0})}if(cf(be)){Ye(G,q,be.error);return}if($o(be))throw xn(400,{type:"defer-action"});let rt=A.navigation.location||A.location,ke=dc(t.history,rt,fe.signal),Ge=a||o,Mr=A.navigation.state!=="idle"?Va(Ge,A.navigation.location,l):A.matches;He(Mr,"Didn't find any matches after fetcher action");let Xe=++I;C.set(G,Xe);let nt=hc(ve,be.data);A.fetchers.set(G,nt);let[vr,ze]=_3(t.history,A,Mr,ve,rt,H,Y,Q,M,R,Ge,l,{[he.route.id]:be.data},void 0);ze.filter(Ae=>Ae.key!==G).forEach(Ae=>{let Ze=Ae.key,jn=A.fetchers.get(Ze),ui=hc(void 0,jn?jn.data:void 0);A.fetchers.set(Ze,ui),re.has(Ze)&&Ie(Ze),Ae.controller&&re.set(Ze,Ae.controller)}),B({fetchers:new Map(A.fetchers)});let tt=()=>ze.forEach(Ae=>Ie(Ae.key));fe.signal.addEventListener("abort",tt);let{results:Bn,loaderResults:it,fetcherResults:st}=await Er(A.matches,Mr,vr,ze,ke);if(fe.signal.aborted)return;fe.signal.removeEventListener("abort",tt),C.delete(G),re.delete(G),ze.forEach(Ae=>re.delete(Ae.key));let De=L3(Bn);if(De){if(De.idx>=vr.length){let Ae=ze[De.idx-vr.length].key;R.add(Ae)}return xe(A,De.result)}let{loaderData:$e,errors:qe}=$3(A,A.matches,vr,it,void 0,ze,st,T);if(A.fetchers.has(G)){let Ae=Aa(be.data);A.fetchers.set(G,Ae)}let Fn=lt(Xe);A.navigation.state==="loading"&&Xe>h?(He(_,"Expected pending action"),$&&$.abort(),E(A.navigation.location,{matches:Mr,loaderData:$e,errors:qe,fetchers:new Map(A.fetchers)})):(B(kt({errors:qe,loaderData:D3(A.loaderData,$e,Mr,qe)},Fn||ze.length>0?{fetchers:new Map(A.fetchers)}:{})),H=!1)}async function ce(G,q,J,he,ye,ve){let Ee=A.fetchers.get(G),de=hc(ve,Ee?Ee.data:void 0);A.fetchers.set(G,de),B({fetchers:new Map(A.fetchers)});let fe=new AbortController,Ve=dc(t.history,J,fe.signal);re.set(G,fe);let Me=I,be=await uc("loader",Ve,he,ye,s,i,l);if($o(be)&&(be=await GA(be,Ve.signal,!0)||be),re.get(G)===fe&&re.delete(G),Ve.signal.aborted)return;if(rl(be))if(h>Me){let ke=Aa(void 0);A.fetchers.set(G,ke),B({fetchers:new Map(A.fetchers)});return}else{R.add(G),await xe(A,be);return}if(cf(be)){let ke=qa(A.matches,q);A.fetchers.delete(G),B({fetchers:new Map(A.fetchers),errors:{[ke.route.id]:be.error}});return}He(!$o(be),"Unhandled fetcher deferred data");let rt=Aa(be.data);A.fetchers.set(G,rt),B({fetchers:new Map(A.fetchers)})}async function xe(G,q,J){let{submission:he,replace:ye,isFetchActionRedirect:ve}=J===void 0?{}:J;q.revalidate&&(H=!0);let Ee=Uf(G.location,q.location,kt({_isRedirect:!0},ve?{_isFetchActionRedirect:!0}:{}));if(He(Ee,"Expected a location on the redirect navigation"),VA.test(q.location)&&r){let Ve=t.history.createURL(q.location),Me=vu(Ve.pathname,l)==null;if(e.location.origin!==Ve.origin||Me){ye?e.location.replace(q.location):e.location.assign(q.location);return}}$=null;let de=ye===!0?Qt.Replace:Qt.Push,fe=he||F3(G.navigation);if(oj.has(q.status)&&fe&&Qn(fe.formMethod))await z(de,Ee,{submission:kt({},fe,{formAction:q.location}),preventScrollReset:D});else if(ve)await z(de,Ee,{overrideNavigation:rd(Ee),fetcherSubmission:fe,preventScrollReset:D});else{let Ve=rd(Ee,fe);await z(de,Ee,{overrideNavigation:Ve,preventScrollReset:D})}}async function Er(G,q,J,he,ye){let ve=await Promise.all([...J.map(fe=>uc("loader",ye,fe,q,s,i,l)),...he.map(fe=>fe.matches&&fe.match&&fe.controller?uc("loader",dc(t.history,fe.path,fe.controller.signal),fe.match,fe.matches,s,i,l):{type:rr.error,error:xn(404,{pathname:fe.path})})]),Ee=ve.slice(0,J.length),de=ve.slice(J.length);return await Promise.all([B3(G,J,Ee,Ee.map(()=>ye.signal),!1,A.loaderData),B3(G,he.map(fe=>fe.match),de,he.map(fe=>fe.controller?fe.controller.signal:null),!0)]),{results:ve,loaderResults:Ee,fetcherResults:de}}function je(){H=!0,Y.push(...Ln()),M.forEach((G,q)=>{re.has(q)&&(Q.push(q),Ie(q))})}function Ye(G,q,J){let he=qa(A.matches,q);Zr(G),B({errors:{[he.route.id]:J},fetchers:new Map(A.fetchers)})}function Zr(G){let q=A.fetchers.get(G);re.has(G)&&!(q&&q.state==="loading"&&C.has(G))&&Ie(G),M.delete(G),C.delete(G),R.delete(G),A.fetchers.delete(G)}function Ie(G){let q=re.get(G);He(q,"Expected fetch controller: "+G),q.abort(),re.delete(G)}function at(G){for(let q of G){let J=X(q),he=Aa(J.data);A.fetchers.set(q,he)}}function ci(){let G=[],q=!1;for(let J of R){let he=A.fetchers.get(J);He(he,"Expected fetcher: "+J),he.state==="loading"&&(R.delete(J),G.push(J),q=!0)}return at(G),q}function lt(G){let q=[];for(let[J,he]of C)if(he0}function dt(G,q){let J=A.blockers.get(G)||fc;return N.get(G)!==q&&N.set(G,q),J}function fi(G){A.blockers.delete(G),N.delete(G)}function et(G,q){let J=A.blockers.get(G)||fc;He(J.state==="unblocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="blocked"||J.state==="blocked"&&q.state==="proceeding"||J.state==="blocked"&&q.state==="unblocked"||J.state==="proceeding"&&q.state==="unblocked","Invalid blocker state transition: "+J.state+" -> "+q.state);let he=new Map(A.blockers);he.set(G,q),B({blockers:he})}function ct(G){let{currentLocation:q,nextLocation:J,historyAction:he}=G;if(N.size===0)return;N.size>1&&Xo(!1,"A router only supports one blocker at a time");let ye=Array.from(N.entries()),[ve,Ee]=ye[ye.length-1],de=A.blockers.get(ve);if(!(de&&de.state==="proceeding")&&Ee({currentLocation:q,nextLocation:J,historyAction:he}))return ve}function Ln(G){let q=[];return T.forEach((J,he)=>{(!G||G(he))&&(J.cancel(),q.push(he),T.delete(he))}),q}function ht(G,q,J){if(d=G,m=q,v=J||null,!y&&A.navigation===J1){y=!0;let he=ut(A.location,A.matches);he!=null&&B({restoreScrollPosition:he})}return()=>{d=null,m=null,v=null}}function ft(G,q){return v&&v(G,q.map(he=>gj(he,A.loaderData)))||G.key}function Gi(G,q){if(d&&m){let J=ft(G,q);d[J]=m()}}function ut(G,q){if(d){let J=ft(G,q),he=d[J];if(typeof he=="number")return he}return null}function vt(G){s={},a=sp(G,i,void 0,s)}return S={get basename(){return l},get state(){return A},get routes(){return o},initialize:k,subscribe:P,enableScrollRestoration:ht,navigate:F,fetch:ee,revalidate:j,createHref:G=>t.history.createHref(G),encodeLocation:G=>t.history.encodeLocation(G),getFetcher:X,deleteFetcher:Zr,dispose:p,getBlocker:dt,deleteBlocker:fi,_internalFetchControllers:re,_internalActiveDeferreds:T,_internalSetRoutes:vt},S}function fj(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function op(t,e,r,n,i,s,o){let a,l;if(s!=null&&o!=="path"){a=[];for(let f of e)if(a.push(f),f.route.id===s){l=f;break}}else a=e,l=e[e.length-1];let c=XF(i||".",jA(a).map(f=>f.pathnameBase),vu(t.pathname,r)||t.pathname,o==="path");return i==null&&(c.search=t.search,c.hash=t.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!dg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:zo([r,c.pathname])),hu(c)}function T3(t,e,r,n){if(!n||!fj(n))return{path:r};if(n.formMethod&&!mj(n.formMethod))return{path:r,error:xn(405,{method:n.formMethod})};let i=()=>({path:r,error:xn(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=HA(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Qn(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,m)=>{let[y,w]=m;return""+v+y+"="+w+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!Qn(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}He(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=ap(n.formData),c=n.formData;else if(n.body instanceof FormData)l=ap(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=N3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=N3(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Qn(f.formMethod))return{path:r,submission:f};let u=Vi(r);return e&&u.search&&dg(u.search)&&l.append("index",""),u.search="?"+l,{path:hu(u),submission:f}}function uj(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function _3(t,e,r,n,i,s,o,a,l,c,f,u,d,v){let m=v?Object.values(v)[0]:d?Object.values(d)[0]:void 0,y=t.createURL(e.location),w=t.createURL(i),x=v?Object.keys(v)[0]:void 0,S=uj(r,x).filter((_,D)=>{if(_.route.lazy)return!0;if(_.route.loader==null)return!1;if(dj(e.loaderData,e.matches[D],_)||o.some(H=>H===_.route.id))return!0;let $=e.matches[D],O=_;return M3(_,kt({currentUrl:y,currentParams:$.params,nextUrl:w,nextParams:O.params},n,{actionResult:m,defaultShouldRevalidate:s||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||qA($,O)}))}),A=[];return l.forEach((_,D)=>{if(!r.some(Q=>Q.route.id===_.routeId))return;let $=Va(f,_.path,u);if(!$){A.push({key:D,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(D),H=lp($,_.path),Y=!1;c.has(D)?Y=!1:a.includes(D)?Y=!0:O&&O.state!=="idle"&&O.data===void 0?Y=s:Y=M3(H,kt({currentUrl:y,currentParams:e.matches[e.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:s})),Y&&A.push({key:D,routeId:_.routeId,path:_.path,matches:$,match:H,controller:new AbortController})}),[S,A]}function dj(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function qA(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function M3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function I3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];He(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Xo(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!$F.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,kt({},e(i),{lazy:void 0}))}async function uc(t,e,r,n,i,s,o,a){a===void 0&&(a={});let l,c,f,u=m=>{let y,w=new Promise((x,b)=>y=b);return f=()=>y(),e.signal.addEventListener("abort",f),Promise.race([m({request:e,params:r.params,context:a.requestContext}),w])};try{let m=r.route[t];if(r.route.lazy)if(m)c=(await Promise.all([u(m),I3(r.route,s,i)]))[0];else if(await I3(r.route,s,i),m=r.route[t],m)c=await u(m);else if(t==="action"){let y=new URL(e.url),w=y.pathname+y.search;throw xn(405,{method:e.method,pathname:w,routeId:r.route.id})}else return{type:rr.data,data:void 0};else if(m)c=await u(m);else{let y=new URL(e.url),w=y.pathname+y.search;throw xn(404,{pathname:w})}He(c!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(m){l=rr.error,c=m}finally{f&&e.signal.removeEventListener("abort",f)}if(pj(c)){let m=c.status;if(sj.has(m)){let x=c.headers.get("Location");if(He(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!VA.test(x))x=op(new URL(e.url),n.slice(0,n.indexOf(r)+1),o,!0,x);else if(!a.isStaticRequest){let b=new URL(e.url),S=x.startsWith("//")?new URL(b.protocol+x):new URL(x),A=vu(S.pathname,o)!=null;S.origin===b.origin&&A&&(x=S.pathname+S.search+S.hash)}if(a.isStaticRequest)throw c.headers.set("Location",x),c;return{type:rr.redirect,status:m,location:x,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||rr.data,response:c};let y,w=c.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?y=await c.json():y=await c.text(),l===rr.error?{type:l,error:new ug(m,c.statusText,y),headers:c.headers}:{type:rr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===rr.error)return{type:l,error:c};if(yj(c)){var d,v;return{type:rr.deferred,deferredData:c,statusCode:(d=c.init)==null?void 0:d.status,headers:((v=c.init)==null?void 0:v.headers)&&new Headers(c.init.headers)}}return{type:rr.data,data:c}}function dc(t,e,r,n){let i=t.createURL(HA(e)).toString(),s={signal:r};if(n&&Qn(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=ap(n.formData):s.body=n.formData}return new Request(i,s)}function ap(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function N3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function hj(t,e,r,n,i){let s={},o=null,a,l=!1,c={};return r.forEach((f,u)=>{let d=e[u].route.id;if(He(!rl(f),"Cannot handle redirect results in processLoaderData"),cf(f)){let v=qa(t,d),m=f.error;n&&(m=Object.values(n)[0],n=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),s[d]=void 0,l||(l=!0,a=zA(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else $o(f)?(i.set(d,f.deferredData),s[d]=f.deferredData.data):s[d]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(a=f.statusCode),f.headers&&(c[d]=f.headers)}),n&&(o=n,s[Object.keys(n)[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function $3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=hj(e,r,n,i,a);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function O3(t){let e=t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function xn(t,e){let{pathname:r,routeId:n,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new ug(t||500,o,new Error(a),!0)}function L3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(rl(r))return{result:r,idx:e}}}function HA(t){let e=typeof t=="string"?Vi(t):t;return hu(kt({},e,{hash:""}))}function vj(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function $o(t){return t.type===rr.deferred}function cf(t){return t.type===rr.error}function rl(t){return(t&&t.type)===rr.redirect}function yj(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function pj(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function mj(t){return ij.has(t.toLowerCase())}function Qn(t){return rj.has(t.toLowerCase())}async function B3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!qA(c,l)&&(s&&s[l.route.id])!==void 0;if($o(a)&&(i||f)){let u=n[o];He(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await GA(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function GA(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:rr.data,data:t.deferredData.unwrappedData}}catch(i){return{type:rr.error,error:i}}return{type:rr.data,data:t.deferredData.data}}}function dg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function gj(t,e){let{route:r,pathname:n,params:i}=t;return{id:r.id,pathname:n,params:i,data:e[r.id],handle:r.handle}}function lp(t,e){let r=typeof e=="string"?Vi(e).search:e.search;if(t[t.length-1].route.index&&dg(r||""))return t[t.length-1];let n=jA(t);return n[n.length-1]}function F3(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function rd(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function xj(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function hc(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function bj(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function Aa(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}/** - * React Router v6.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},y,{params:Object.assign({},o,y.params),pathname:zo([a,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?a:zo([a,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r);return e&&m?g.createElement(C0.Provider,{value:{location:cp({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Qt.Pop}},m):m}function Cj(){let t=Mj(),e=zA(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),r?g.createElement("pre",{style:i},r):null,s)}const Sj=g.createElement(Cj,null);class Aj extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?g.createElement(S0.Provider,{value:this.props.routeContext},g.createElement(QA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function kj(t){let{routeContext:e,match:r,children:n}=t,i=g.useContext(WA);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(S0.Provider,{value:e},n)}function Rj(t,e,r){var n;if(e===void 0&&(e=[]),r===void 0&&(r=null),t==null){var i;if((i=r)!=null&&i.errors)t=r.matches;else return null}let s=t,o=(n=r)==null?void 0:n.errors;if(o!=null){let a=s.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));a>=0||He(!1),s=s.slice(0,Math.min(s.length,a+1))}return s.reduceRight((a,l,c)=>{let f=l.route.id?o==null?void 0:o[l.route.id]:null,u=null;r&&(u=l.route.errorElement||Sj);let d=e.concat(s.slice(0,c+1)),v=()=>{let m;return f?m=u:l.route.Component?m=g.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,g.createElement(kj,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:r!=null},children:m})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?g.createElement(Aj,{location:r.location,revalidation:r.revalidation,component:u,error:f,children:v(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):v()},null)}var j3;(function(t){t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate"})(j3||(j3={}));var Ch;(function(t){t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId"})(Ch||(Ch={}));function Pj(t){let e=g.useContext(KA);return e||He(!1),e}function Tj(t){let e=g.useContext(S0);return e||He(!1),e}function _j(t){let e=Tj(),r=e.matches[e.matches.length-1];return r.route.id||He(!1),r.route.id}function Mj(){var t;let e=g.useContext(QA),r=Pj(Ch.UseRouteError),n=_j(Ch.UseRouteError);return e||((t=r.errors)==null?void 0:t[n])}const Ij="startTransition",z3=OE[Ij];function Nj(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=g.useState(r.state),{v7_startTransition:o}=n||{},a=g.useCallback(u=>{o&&z3?z3(()=>s(u)):s(u)},[s,o]);g.useLayoutEffect(()=>r.subscribe(a),[r,a]);let l=g.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:u=>r.navigate(u),push:(u,d,v)=>r.navigate(u,{state:d,preventScrollReset:v==null?void 0:v.preventScrollReset}),replace:(u,d,v)=>r.navigate(u,{replace:!0,state:d,preventScrollReset:v==null?void 0:v.preventScrollReset})}),[r]),c=r.basename||"/",f=g.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return g.createElement(g.Fragment,null,g.createElement(WA.Provider,{value:f},g.createElement(KA.Provider,{value:i},g.createElement(Dj,{basename:c,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?g.createElement($j,{routes:r.routes,state:i}):e))),null)}function $j(t){let{routes:e,state:r}=t;return Ej(e,void 0,r)}function Dj(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Qt.Pop,navigator:s,static:o=!1}=t;hg()&&He(!1);let a=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:s,static:o}),[a,s,o]);typeof n=="string"&&(n=Vi(n));let{pathname:c="/",search:f="",hash:u="",state:d=null,key:v="default"}=n,m=g.useMemo(()=>{let y=vu(c,a);return y==null?null:{location:{pathname:y,search:f,hash:u,state:d,key:v},navigationType:i}},[a,c,f,u,d,v,i]);return m==null?null:g.createElement(YA.Provider,{value:l},g.createElement(C0.Provider,{children:r,value:m}))}var U3;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(U3||(U3={}));new Promise(()=>{});function Oj(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:g.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:g.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Sh(){return Sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=g.useMemo(()=>H3(0,r).map(()=>g.createRef()),[]);g.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...e];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var m,y;const u=s[c].current,d=(m=s[c-1])==null?void 0:m.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,m;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((m=(v=s[0])==null?void 0:v.current)==null||m.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return U.jsx(ie,{gap:"2",children:H3(0,r).map(c=>U.jsxs(g.Fragment,{children:[c===r/2&&U.jsx("span",{}),U.jsx(ie,{as:"input",className:jj,value:e[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},H3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),XA=()=>U.jsxs(ie,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[U.jsx(Le,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),U.jsx(Le,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function zj(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=g.useState(!1),o=g.useRef(r);o.current=r;const a=g.useRef(n);return a.current=n,g.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const ZA=g.createContext(null);function Uj({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=zj({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=g.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return cr.createElement(ZA.Provider,{value:o},i)}function Vj(){const t=g.useContext(ZA);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function qj(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const Hj={large:40,medium:32,small:20};function Gj({onSuccess:t,onError:e,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...m}){const y=g.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=Vj(),b=g.useRef(t);b.current=t;const S=g.useRef(e);S.current=e;const A=g.useRef(n);return A.current=n,g.useEffect(()=>{var _,D,$,O,H,Y,Q,re,I;if(x)return($=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||$===void 0||$.initialize({client_id:w,callback:h=>{var C;if(!(h!=null&&h.credential))return(C=S.current)===null||C===void 0?void 0:C.call(S);const{credential:R,select_by:M}=h;b.current({credential:R,clientId:qj(h),select_by:M})},...m}),(Y=(H=(O=window==null?void 0:window.google)===null||O===void 0?void 0:O.accounts)===null||H===void 0?void 0:H.id)===null||Y===void 0||Y.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((I=(re=(Q=window==null?void 0:window.google)===null||Q===void 0?void 0:Q.accounts)===null||re===void 0?void 0:re.id)===null||I===void 0||I.prompt(A.current)),()=>{var h,C,R;r&&((R=(C=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||C===void 0?void 0:C.id)===null||R===void 0||R.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),cr.createElement("div",{...v,ref:y,style:{height:Hj[o],...v==null?void 0:v.style}})}function Wj(){var t,e,r;(r=(e=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.accounts)===null||e===void 0?void 0:e.id)===null||r===void 0||r.disableAutoSelect()}var e7={},A0={},yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var Kj=g;function Yj(t){(0,Kj.useEffect)(function(){if(t){var e=document.querySelectorAll('script[src="'.concat(t,'"]'))[0];e||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))}},[t])}var Qj=Yj;yu.default=Qj;var pu={},k0={};Object.defineProperty(k0,"__esModule",{value:!0});k0.default=void 0;var Jj=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(e))return Promise.resolve(l[e]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return t(e,{pollFrequency:i,parent:l,retries:c})})},Xj=Jj;k0.default=Xj;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;var Zj=ez(k0);function ez(t){return t&&t.__esModule?t:{default:t}}var tz="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",rz=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,Zj.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},nz={APPLE_SCRIPT_SRC:tz,signIn:rz};pu.default=nz;Object.defineProperty(A0,"__esModule",{value:!0});A0.default=void 0;var hi=vg(g),iz=vg(yu),G3=vg(pu),sz=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function vg(t){return t&&t.__esModule?t:{default:t}}function Ah(){return Ah=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function cz(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}var fz=` -.react-apple-signin-auth-btn { - background-color: transparent; - border: none; - padding: 0; - cursor: pointer; - border-radius: 4px; - padding: 0 8px 0 2px; - font-size: 14px; - font-size: 1em; - line-height: 1; - border: 1px solid #000; - overflow: hidden; - display: inline-flex; - justify-content: center; - align-items: center; -} -.react-apple-signin-auth-btn-light { - background-color: #FFF; - color: #000; - border-color: #000; -} -.react-apple-signin-auth-btn-dark { - background-color: #000; - color: #FFF; - border-color: #FFF; -}`.replace(/ {2}|\n/g,""),uz=function(e){var r=e.onSuccess,n=e.onError,i=e.skipScript,s=i===void 0?!1:i,o=e.authOptions,a=e.iconProps,l=e.render,c=e.uiType,f=c===void 0?"dark":c,u=e.className,d=e.noDefaultStyle,v=d===void 0?!1:d,m=e.buttonExtraChildren,y=m===void 0?"Continue with Apple":m,w=lz(e,sz);(0,iz.default)(s?null:G3.default.APPLE_SCRIPT_SRC);var x=function(A){A&&(A.preventDefault(),A.stopPropagation()),G3.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=oz({children:hi.default.createElement(hi.default.Fragment,null,hi.default.createElement("svg",Ah({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),hi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},hi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),hi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):hi.default.createElement(hi.default.Fragment,null,hi.default.createElement("button",Ah({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:hi.default.createElement("style",null,fz))},dz=uz;A0.default=dz;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"useScript",{enumerable:!0,get:function(){return n.default}}),t.default=void 0;var e=i(A0),r=i(pu),n=i(yu);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(e7);const hz=bs(e7);let ue=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_TESTNET=69]="OPTIMISM_TESTNET",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.FANTOM=250]="FANTOM",t[t.FANTOM_TESTNET=4002]="FANTOM_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.AURORA=1313161554]="AURORA",t[t.AURORA_TESTNET=1313161556]="AURORA_TESTNET",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),yt=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const Ut={[ue.MAINNET]:{chainId:ue.MAINNET,type:yt.MAINNET,name:"mainnet",title:"Ethereum",blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.ROPSTEN]:{chainId:ue.ROPSTEN,type:yt.TESTNET,name:"ropsten",title:"Ropsten",testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.RINKEBY]:{chainId:ue.RINKEBY,type:yt.TESTNET,name:"rinkeby",title:"Rinkeby",testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.GOERLI]:{chainId:ue.GOERLI,type:yt.TESTNET,name:"goerli",title:"Goerli",testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[ue.KOVAN]:{chainId:ue.KOVAN,type:yt.TESTNET,name:"kovan",title:"Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"}},[ue.SEPOLIA]:{chainId:ue.SEPOLIA,type:yt.TESTNET,name:"sepolia",title:"Sepolia",testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[ue.POLYGON]:{chainId:ue.POLYGON,type:yt.MAINNET,name:"polygon",title:"Polygon",blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[ue.POLYGON_MUMBAI]:{chainId:ue.POLYGON_MUMBAI,type:yt.TESTNET,name:"mumbai",title:"Polygon Mumbai",testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"}},[ue.POLYGON_ZKEVM]:{chainId:ue.POLYGON_ZKEVM,type:yt.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[ue.BSC]:{chainId:ue.BSC,type:yt.MAINNET,name:"bsc",title:"BNB Smart Chain",blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[ue.BSC_TESTNET]:{chainId:ue.BSC_TESTNET,type:yt.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[ue.OPTIMISM]:{chainId:ue.OPTIMISM,type:yt.MAINNET,name:"optimism",title:"Optimism",blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[ue.OPTIMISM_TESTNET]:{chainId:ue.OPTIMISM_TESTNET,type:yt.TESTNET,name:"optimism-testnet",title:"Optimistic Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Optimism Testnet)",rootUrl:"https://kovan-optimistic.etherscan.io/"}},[ue.ARBITRUM]:{chainId:ue.ARBITRUM,type:yt.MAINNET,name:"arbitrum",title:"Arbitrum One",blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[ue.ARBITRUM_GOERLI]:{chainId:ue.ARBITRUM_GOERLI,type:yt.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",testnet:!0,blockExplorer:{name:"Arbiscan (Testnet)",rootUrl:"https://testnet.arbiscan.io/"}},[ue.ARBITRUM_NOVA]:{chainId:ue.ARBITRUM_NOVA,type:yt.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[ue.AVALANCHE]:{chainId:ue.AVALANCHE,type:yt.MAINNET,name:"avalanche",title:"Avalanche",blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[ue.AVALANCHE_TESTNET]:{chainId:ue.AVALANCHE_TESTNET,type:yt.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[ue.FANTOM]:{chainId:ue.FANTOM,type:yt.MAINNET,name:"fantom",title:"Fantom",blockExplorer:{name:"FTMScan",rootUrl:"https://ftmscan.com/"}},[ue.FANTOM_TESTNET]:{chainId:ue.FANTOM_TESTNET,type:yt.TESTNET,name:"fantom-testnet",title:"Fantom Testnet",testnet:!0,blockExplorer:{name:"FTMScan (Testnet)",rootUrl:"https://testnet.ftmscan.com/"}},[ue.GNOSIS]:{chainId:ue.GNOSIS,type:yt.MAINNET,name:"gnosis",title:"Gnosis Chain",blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[ue.AURORA]:{chainId:ue.AURORA,type:yt.MAINNET,name:"aurora",title:"Aurora",blockExplorer:{name:"Aurora Explorer",rootUrl:"https://aurorascan.dev/"}},[ue.AURORA_TESTNET]:{chainId:ue.AURORA_TESTNET,type:yt.TESTNET,name:"aurora-testnet",title:"Aurora Testnet",testnet:!0,blockExplorer:{name:"Aurora Explorer (Testnet)",rootUrl:"https://testnet.aurorascan.dev/"}},[ue.BASE]:{chainId:ue.BASE,type:yt.MAINNET,name:"base",title:"Base (Coinbase)",blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[ue.BASE_GOERLI]:{chainId:ue.BASE_GOERLI,type:yt.TESTNET,name:"base-goerli",title:"Base Goerli",testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"}},[ue.HOMEVERSE]:{chainId:ue.HOMEVERSE,type:yt.MAINNET,name:"homeverse",title:"Oasys Homeverse",blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[ue.HOMEVERSE_TESTNET]:{chainId:ue.HOMEVERSE_TESTNET,type:yt.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[ue.HARDHAT]:{chainId:ue.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[ue.HARDHAT_2]:{chainId:ue.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var yg={exports:{}};const vz={},yz=Object.freeze(Object.defineProperty({__proto__:null,default:vz},Symbol.toStringTag,{value:"Module"})),pz=jh(yz);yg.exports;(function(t){(function(e,r){function n(I,h){if(!I)throw new Error(h||"Assertion failed")}function i(I,h){I.super_=h;var C=function(){};C.prototype=h.prototype,I.prototype=new C,I.prototype.constructor=I}function s(I,h,C){if(s.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((h==="le"||h==="be")&&(C=h,h=10),this._init(I||0,h||10,C||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=pz.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,C){return h.cmp(C)>0?h:C},s.min=function(h,C){return h.cmp(C)<0?h:C},s.prototype._init=function(h,C,R){if(typeof h=="number")return this._initNumber(h,C,R);if(typeof h=="object")return this._initArray(h,C,R);C==="hex"&&(C=16),n(C===(C|0)&&C>=2&&C<=36),h=h.toString().replace(/\s+/g,"");var M=0;h[0]==="-"&&(M++,this.negative=1),M=0;M-=3)N=h[M]|h[M-1]<<8|h[M-2]<<16,this.words[T]|=N<>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);else if(R==="le")for(M=0,T=0;M>>26-L&67108863,L+=24,L>=26&&(L-=26,T++);return this._strip()};function a(I,h){var C=I.charCodeAt(h);if(C>=48&&C<=57)return C-48;if(C>=65&&C<=70)return C-55;if(C>=97&&C<=102)return C-87;n(!1,"Invalid character in "+I)}function l(I,h,C){var R=a(I,C);return C-1>=h&&(R|=a(I,C-1)<<4),R}s.prototype._parseHex=function(h,C,R){this.length=Math.ceil((h.length-C)/6),this.words=new Array(this.length);for(var M=0;M=C;M-=2)L=l(h,C,M)<=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8;else{var k=h.length-C;for(M=k%2===0?C+1:C;M=18?(T-=18,N+=1,this.words[N]|=L>>>26):T+=8}this._strip()};function c(I,h,C,R){for(var M=0,T=0,N=Math.min(I.length,C),L=h;L=49?T=k-49+10:k>=17?T=k-17+10:T=k,n(k>=0&&T1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(h,C){h=h||10,C=C|0||1;var R;if(h===16||h==="hex"){R="";for(var M=0,T=0,N=0;N>>24-M&16777215,M+=2,M>=26&&(M-=26,N--),T!==0||N!==this.length-1?R=d[6-k.length]+k+R:R=k+R}for(T!==0&&(R=T.toString(16)+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}if(h===(h|0)&&h>=2&&h<=36){var p=v[h],P=m[h];R="";var B=this.clone();for(B.negative=0;!B.isZero();){var E=B.modrn(P).toString(h);B=B.idivn(P),B.isZero()?R=E+R:R=d[p-E.length]+E+R}for(this.isZero()&&(R="0"+R);R.length%C!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,C){return this.toArrayLike(o,h,C)}),s.prototype.toArray=function(h,C){return this.toArrayLike(Array,h,C)};var y=function(h,C){return h.allocUnsafe?h.allocUnsafe(C):new h(C)};s.prototype.toArrayLike=function(h,C,R){this._strip();var M=this.byteLength(),T=R||Math.max(1,M);n(M<=T,"byte array longer than desired length"),n(T>0,"Requested array length <= 0");var N=y(h,T),L=C==="le"?"LE":"BE";return this["_toArrayLike"+L](N,M),N},s.prototype._toArrayLikeLE=function(h,C){for(var R=0,M=0,T=0,N=0;T>8&255),R>16&255),N===6?(R>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R=0&&(h[R--]=L>>8&255),R>=0&&(h[R--]=L>>16&255),N===6?(R>=0&&(h[R--]=L>>24&255),M=0,N=0):(M=L>>>24,N+=2)}if(R>=0)for(h[R--]=M;R>=0;)h[R--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var C=h,R=0;return C>=4096&&(R+=13,C>>>=13),C>=64&&(R+=7,C>>>=7),C>=8&&(R+=4,C>>>=4),C>=2&&(R+=2,C>>>=2),R+C},s.prototype._zeroBits=function(h){if(h===0)return 26;var C=h,R=0;return C&8191||(R+=13,C>>>=13),C&127||(R+=7,C>>>=7),C&15||(R+=4,C>>>=4),C&3||(R+=2,C>>>=2),C&1||R++,R},s.prototype.bitLength=function(){var h=this.words[this.length-1],C=this._countBits(h);return(this.length-1)*26+C};function w(I){for(var h=new Array(I.bitLength()),C=0;C>>M&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,C=0;Ch.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var C;this.length>h.length?C=h:C=this;for(var R=0;Rh.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var C,R;this.length>h.length?(C=this,R=h):(C=h,R=this);for(var M=0;Mh.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var C=Math.ceil(h/26)|0,R=h%26;this._expand(C),R>0&&C--;for(var M=0;M0&&(this.words[M]=~this.words[M]&67108863>>26-R),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,C){n(typeof h=="number"&&h>=0);var R=h/26|0,M=h%26;return this._expand(R+1),C?this.words[R]=this.words[R]|1<h.length?(R=this,M=h):(R=h,M=this);for(var T=0,N=0;N>>26;for(;T!==0&&N>>26;if(this.length=R.length,T!==0)this.words[this.length]=T,this.length++;else if(R!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var C=this.iadd(h);return h.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var R=this.cmp(h);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,T;R>0?(M=this,T=h):(M=h,T=this);for(var N=0,L=0;L>26,this.words[L]=C&67108863;for(;N!==0&&L>26,this.words[L]=C&67108863;if(N===0&&L>>26,B=k&67108863,E=Math.min(p,h.length-1),F=Math.max(0,p-I.length+1);F<=E;F++){var j=p-F|0;M=I.words[j]|0,T=h.words[F]|0,N=M*T+B,P+=N/67108864|0,B=N&67108863}C.words[p]=B|0,k=P|0}return k!==0?C.words[p]=k|0:C.length--,C._strip()}var b=function(h,C,R){var M=h.words,T=C.words,N=R.words,L=0,k,p,P,B=M[0]|0,E=B&8191,F=B>>>13,j=M[1]|0,z=j&8191,W=j>>>13,ne=M[2]|0,X=ne&8191,ee=ne>>>13,_e=M[3]|0,ce=_e&8191,xe=_e>>>13,Er=M[4]|0,je=Er&8191,Ye=Er>>>13,Zr=M[5]|0,Ie=Zr&8191,at=Zr>>>13,ci=M[6]|0,lt=ci&8191,dt=ci>>>13,fi=M[7]|0,et=fi&8191,ct=fi>>>13,Ln=M[8]|0,ht=Ln&8191,ft=Ln>>>13,Gi=M[9]|0,ut=Gi&8191,vt=Gi>>>13,G=T[0]|0,q=G&8191,J=G>>>13,he=T[1]|0,ye=he&8191,ve=he>>>13,Ee=T[2]|0,de=Ee&8191,fe=Ee>>>13,Ve=T[3]|0,Me=Ve&8191,be=Ve>>>13,rt=T[4]|0,ke=rt&8191,Ge=rt>>>13,Mr=T[5]|0,Xe=Mr&8191,nt=Mr>>>13,vr=T[6]|0,ze=vr&8191,tt=vr>>>13,Bn=T[7]|0,it=Bn&8191,st=Bn>>>13,De=T[8]|0,$e=De&8191,qe=De>>>13,Fn=T[9]|0,Ae=Fn&8191,Ze=Fn>>>13;R.negative=h.negative^C.negative,R.length=19,k=Math.imul(E,q),p=Math.imul(E,J),p=p+Math.imul(F,q)|0,P=Math.imul(F,J);var jn=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(jn>>>26)|0,jn&=67108863,k=Math.imul(z,q),p=Math.imul(z,J),p=p+Math.imul(W,q)|0,P=Math.imul(W,J),k=k+Math.imul(E,ye)|0,p=p+Math.imul(E,ve)|0,p=p+Math.imul(F,ye)|0,P=P+Math.imul(F,ve)|0;var ui=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(ui>>>26)|0,ui&=67108863,k=Math.imul(X,q),p=Math.imul(X,J),p=p+Math.imul(ee,q)|0,P=Math.imul(ee,J),k=k+Math.imul(z,ye)|0,p=p+Math.imul(z,ve)|0,p=p+Math.imul(W,ye)|0,P=P+Math.imul(W,ve)|0,k=k+Math.imul(E,de)|0,p=p+Math.imul(E,fe)|0,p=p+Math.imul(F,de)|0,P=P+Math.imul(F,fe)|0;var Cs=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,k=Math.imul(ce,q),p=Math.imul(ce,J),p=p+Math.imul(xe,q)|0,P=Math.imul(xe,J),k=k+Math.imul(X,ye)|0,p=p+Math.imul(X,ve)|0,p=p+Math.imul(ee,ye)|0,P=P+Math.imul(ee,ve)|0,k=k+Math.imul(z,de)|0,p=p+Math.imul(z,fe)|0,p=p+Math.imul(W,de)|0,P=P+Math.imul(W,fe)|0,k=k+Math.imul(E,Me)|0,p=p+Math.imul(E,be)|0,p=p+Math.imul(F,Me)|0,P=P+Math.imul(F,be)|0;var Ss=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,k=Math.imul(je,q),p=Math.imul(je,J),p=p+Math.imul(Ye,q)|0,P=Math.imul(Ye,J),k=k+Math.imul(ce,ye)|0,p=p+Math.imul(ce,ve)|0,p=p+Math.imul(xe,ye)|0,P=P+Math.imul(xe,ve)|0,k=k+Math.imul(X,de)|0,p=p+Math.imul(X,fe)|0,p=p+Math.imul(ee,de)|0,P=P+Math.imul(ee,fe)|0,k=k+Math.imul(z,Me)|0,p=p+Math.imul(z,be)|0,p=p+Math.imul(W,Me)|0,P=P+Math.imul(W,be)|0,k=k+Math.imul(E,ke)|0,p=p+Math.imul(E,Ge)|0,p=p+Math.imul(F,ke)|0,P=P+Math.imul(F,Ge)|0;var As=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(As>>>26)|0,As&=67108863,k=Math.imul(Ie,q),p=Math.imul(Ie,J),p=p+Math.imul(at,q)|0,P=Math.imul(at,J),k=k+Math.imul(je,ye)|0,p=p+Math.imul(je,ve)|0,p=p+Math.imul(Ye,ye)|0,P=P+Math.imul(Ye,ve)|0,k=k+Math.imul(ce,de)|0,p=p+Math.imul(ce,fe)|0,p=p+Math.imul(xe,de)|0,P=P+Math.imul(xe,fe)|0,k=k+Math.imul(X,Me)|0,p=p+Math.imul(X,be)|0,p=p+Math.imul(ee,Me)|0,P=P+Math.imul(ee,be)|0,k=k+Math.imul(z,ke)|0,p=p+Math.imul(z,Ge)|0,p=p+Math.imul(W,ke)|0,P=P+Math.imul(W,Ge)|0,k=k+Math.imul(E,Xe)|0,p=p+Math.imul(E,nt)|0,p=p+Math.imul(F,Xe)|0,P=P+Math.imul(F,nt)|0;var j0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(j0>>>26)|0,j0&=67108863,k=Math.imul(lt,q),p=Math.imul(lt,J),p=p+Math.imul(dt,q)|0,P=Math.imul(dt,J),k=k+Math.imul(Ie,ye)|0,p=p+Math.imul(Ie,ve)|0,p=p+Math.imul(at,ye)|0,P=P+Math.imul(at,ve)|0,k=k+Math.imul(je,de)|0,p=p+Math.imul(je,fe)|0,p=p+Math.imul(Ye,de)|0,P=P+Math.imul(Ye,fe)|0,k=k+Math.imul(ce,Me)|0,p=p+Math.imul(ce,be)|0,p=p+Math.imul(xe,Me)|0,P=P+Math.imul(xe,be)|0,k=k+Math.imul(X,ke)|0,p=p+Math.imul(X,Ge)|0,p=p+Math.imul(ee,ke)|0,P=P+Math.imul(ee,Ge)|0,k=k+Math.imul(z,Xe)|0,p=p+Math.imul(z,nt)|0,p=p+Math.imul(W,Xe)|0,P=P+Math.imul(W,nt)|0,k=k+Math.imul(E,ze)|0,p=p+Math.imul(E,tt)|0,p=p+Math.imul(F,ze)|0,P=P+Math.imul(F,tt)|0;var z0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(z0>>>26)|0,z0&=67108863,k=Math.imul(et,q),p=Math.imul(et,J),p=p+Math.imul(ct,q)|0,P=Math.imul(ct,J),k=k+Math.imul(lt,ye)|0,p=p+Math.imul(lt,ve)|0,p=p+Math.imul(dt,ye)|0,P=P+Math.imul(dt,ve)|0,k=k+Math.imul(Ie,de)|0,p=p+Math.imul(Ie,fe)|0,p=p+Math.imul(at,de)|0,P=P+Math.imul(at,fe)|0,k=k+Math.imul(je,Me)|0,p=p+Math.imul(je,be)|0,p=p+Math.imul(Ye,Me)|0,P=P+Math.imul(Ye,be)|0,k=k+Math.imul(ce,ke)|0,p=p+Math.imul(ce,Ge)|0,p=p+Math.imul(xe,ke)|0,P=P+Math.imul(xe,Ge)|0,k=k+Math.imul(X,Xe)|0,p=p+Math.imul(X,nt)|0,p=p+Math.imul(ee,Xe)|0,P=P+Math.imul(ee,nt)|0,k=k+Math.imul(z,ze)|0,p=p+Math.imul(z,tt)|0,p=p+Math.imul(W,ze)|0,P=P+Math.imul(W,tt)|0,k=k+Math.imul(E,it)|0,p=p+Math.imul(E,st)|0,p=p+Math.imul(F,it)|0,P=P+Math.imul(F,st)|0;var U0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(U0>>>26)|0,U0&=67108863,k=Math.imul(ht,q),p=Math.imul(ht,J),p=p+Math.imul(ft,q)|0,P=Math.imul(ft,J),k=k+Math.imul(et,ye)|0,p=p+Math.imul(et,ve)|0,p=p+Math.imul(ct,ye)|0,P=P+Math.imul(ct,ve)|0,k=k+Math.imul(lt,de)|0,p=p+Math.imul(lt,fe)|0,p=p+Math.imul(dt,de)|0,P=P+Math.imul(dt,fe)|0,k=k+Math.imul(Ie,Me)|0,p=p+Math.imul(Ie,be)|0,p=p+Math.imul(at,Me)|0,P=P+Math.imul(at,be)|0,k=k+Math.imul(je,ke)|0,p=p+Math.imul(je,Ge)|0,p=p+Math.imul(Ye,ke)|0,P=P+Math.imul(Ye,Ge)|0,k=k+Math.imul(ce,Xe)|0,p=p+Math.imul(ce,nt)|0,p=p+Math.imul(xe,Xe)|0,P=P+Math.imul(xe,nt)|0,k=k+Math.imul(X,ze)|0,p=p+Math.imul(X,tt)|0,p=p+Math.imul(ee,ze)|0,P=P+Math.imul(ee,tt)|0,k=k+Math.imul(z,it)|0,p=p+Math.imul(z,st)|0,p=p+Math.imul(W,it)|0,P=P+Math.imul(W,st)|0,k=k+Math.imul(E,$e)|0,p=p+Math.imul(E,qe)|0,p=p+Math.imul(F,$e)|0,P=P+Math.imul(F,qe)|0;var V0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(V0>>>26)|0,V0&=67108863,k=Math.imul(ut,q),p=Math.imul(ut,J),p=p+Math.imul(vt,q)|0,P=Math.imul(vt,J),k=k+Math.imul(ht,ye)|0,p=p+Math.imul(ht,ve)|0,p=p+Math.imul(ft,ye)|0,P=P+Math.imul(ft,ve)|0,k=k+Math.imul(et,de)|0,p=p+Math.imul(et,fe)|0,p=p+Math.imul(ct,de)|0,P=P+Math.imul(ct,fe)|0,k=k+Math.imul(lt,Me)|0,p=p+Math.imul(lt,be)|0,p=p+Math.imul(dt,Me)|0,P=P+Math.imul(dt,be)|0,k=k+Math.imul(Ie,ke)|0,p=p+Math.imul(Ie,Ge)|0,p=p+Math.imul(at,ke)|0,P=P+Math.imul(at,Ge)|0,k=k+Math.imul(je,Xe)|0,p=p+Math.imul(je,nt)|0,p=p+Math.imul(Ye,Xe)|0,P=P+Math.imul(Ye,nt)|0,k=k+Math.imul(ce,ze)|0,p=p+Math.imul(ce,tt)|0,p=p+Math.imul(xe,ze)|0,P=P+Math.imul(xe,tt)|0,k=k+Math.imul(X,it)|0,p=p+Math.imul(X,st)|0,p=p+Math.imul(ee,it)|0,P=P+Math.imul(ee,st)|0,k=k+Math.imul(z,$e)|0,p=p+Math.imul(z,qe)|0,p=p+Math.imul(W,$e)|0,P=P+Math.imul(W,qe)|0,k=k+Math.imul(E,Ae)|0,p=p+Math.imul(E,Ze)|0,p=p+Math.imul(F,Ae)|0,P=P+Math.imul(F,Ze)|0;var q0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(q0>>>26)|0,q0&=67108863,k=Math.imul(ut,ye),p=Math.imul(ut,ve),p=p+Math.imul(vt,ye)|0,P=Math.imul(vt,ve),k=k+Math.imul(ht,de)|0,p=p+Math.imul(ht,fe)|0,p=p+Math.imul(ft,de)|0,P=P+Math.imul(ft,fe)|0,k=k+Math.imul(et,Me)|0,p=p+Math.imul(et,be)|0,p=p+Math.imul(ct,Me)|0,P=P+Math.imul(ct,be)|0,k=k+Math.imul(lt,ke)|0,p=p+Math.imul(lt,Ge)|0,p=p+Math.imul(dt,ke)|0,P=P+Math.imul(dt,Ge)|0,k=k+Math.imul(Ie,Xe)|0,p=p+Math.imul(Ie,nt)|0,p=p+Math.imul(at,Xe)|0,P=P+Math.imul(at,nt)|0,k=k+Math.imul(je,ze)|0,p=p+Math.imul(je,tt)|0,p=p+Math.imul(Ye,ze)|0,P=P+Math.imul(Ye,tt)|0,k=k+Math.imul(ce,it)|0,p=p+Math.imul(ce,st)|0,p=p+Math.imul(xe,it)|0,P=P+Math.imul(xe,st)|0,k=k+Math.imul(X,$e)|0,p=p+Math.imul(X,qe)|0,p=p+Math.imul(ee,$e)|0,P=P+Math.imul(ee,qe)|0,k=k+Math.imul(z,Ae)|0,p=p+Math.imul(z,Ze)|0,p=p+Math.imul(W,Ae)|0,P=P+Math.imul(W,Ze)|0;var H0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(H0>>>26)|0,H0&=67108863,k=Math.imul(ut,de),p=Math.imul(ut,fe),p=p+Math.imul(vt,de)|0,P=Math.imul(vt,fe),k=k+Math.imul(ht,Me)|0,p=p+Math.imul(ht,be)|0,p=p+Math.imul(ft,Me)|0,P=P+Math.imul(ft,be)|0,k=k+Math.imul(et,ke)|0,p=p+Math.imul(et,Ge)|0,p=p+Math.imul(ct,ke)|0,P=P+Math.imul(ct,Ge)|0,k=k+Math.imul(lt,Xe)|0,p=p+Math.imul(lt,nt)|0,p=p+Math.imul(dt,Xe)|0,P=P+Math.imul(dt,nt)|0,k=k+Math.imul(Ie,ze)|0,p=p+Math.imul(Ie,tt)|0,p=p+Math.imul(at,ze)|0,P=P+Math.imul(at,tt)|0,k=k+Math.imul(je,it)|0,p=p+Math.imul(je,st)|0,p=p+Math.imul(Ye,it)|0,P=P+Math.imul(Ye,st)|0,k=k+Math.imul(ce,$e)|0,p=p+Math.imul(ce,qe)|0,p=p+Math.imul(xe,$e)|0,P=P+Math.imul(xe,qe)|0,k=k+Math.imul(X,Ae)|0,p=p+Math.imul(X,Ze)|0,p=p+Math.imul(ee,Ae)|0,P=P+Math.imul(ee,Ze)|0;var G0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(G0>>>26)|0,G0&=67108863,k=Math.imul(ut,Me),p=Math.imul(ut,be),p=p+Math.imul(vt,Me)|0,P=Math.imul(vt,be),k=k+Math.imul(ht,ke)|0,p=p+Math.imul(ht,Ge)|0,p=p+Math.imul(ft,ke)|0,P=P+Math.imul(ft,Ge)|0,k=k+Math.imul(et,Xe)|0,p=p+Math.imul(et,nt)|0,p=p+Math.imul(ct,Xe)|0,P=P+Math.imul(ct,nt)|0,k=k+Math.imul(lt,ze)|0,p=p+Math.imul(lt,tt)|0,p=p+Math.imul(dt,ze)|0,P=P+Math.imul(dt,tt)|0,k=k+Math.imul(Ie,it)|0,p=p+Math.imul(Ie,st)|0,p=p+Math.imul(at,it)|0,P=P+Math.imul(at,st)|0,k=k+Math.imul(je,$e)|0,p=p+Math.imul(je,qe)|0,p=p+Math.imul(Ye,$e)|0,P=P+Math.imul(Ye,qe)|0,k=k+Math.imul(ce,Ae)|0,p=p+Math.imul(ce,Ze)|0,p=p+Math.imul(xe,Ae)|0,P=P+Math.imul(xe,Ze)|0;var W0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(W0>>>26)|0,W0&=67108863,k=Math.imul(ut,ke),p=Math.imul(ut,Ge),p=p+Math.imul(vt,ke)|0,P=Math.imul(vt,Ge),k=k+Math.imul(ht,Xe)|0,p=p+Math.imul(ht,nt)|0,p=p+Math.imul(ft,Xe)|0,P=P+Math.imul(ft,nt)|0,k=k+Math.imul(et,ze)|0,p=p+Math.imul(et,tt)|0,p=p+Math.imul(ct,ze)|0,P=P+Math.imul(ct,tt)|0,k=k+Math.imul(lt,it)|0,p=p+Math.imul(lt,st)|0,p=p+Math.imul(dt,it)|0,P=P+Math.imul(dt,st)|0,k=k+Math.imul(Ie,$e)|0,p=p+Math.imul(Ie,qe)|0,p=p+Math.imul(at,$e)|0,P=P+Math.imul(at,qe)|0,k=k+Math.imul(je,Ae)|0,p=p+Math.imul(je,Ze)|0,p=p+Math.imul(Ye,Ae)|0,P=P+Math.imul(Ye,Ze)|0;var K0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(K0>>>26)|0,K0&=67108863,k=Math.imul(ut,Xe),p=Math.imul(ut,nt),p=p+Math.imul(vt,Xe)|0,P=Math.imul(vt,nt),k=k+Math.imul(ht,ze)|0,p=p+Math.imul(ht,tt)|0,p=p+Math.imul(ft,ze)|0,P=P+Math.imul(ft,tt)|0,k=k+Math.imul(et,it)|0,p=p+Math.imul(et,st)|0,p=p+Math.imul(ct,it)|0,P=P+Math.imul(ct,st)|0,k=k+Math.imul(lt,$e)|0,p=p+Math.imul(lt,qe)|0,p=p+Math.imul(dt,$e)|0,P=P+Math.imul(dt,qe)|0,k=k+Math.imul(Ie,Ae)|0,p=p+Math.imul(Ie,Ze)|0,p=p+Math.imul(at,Ae)|0,P=P+Math.imul(at,Ze)|0;var Y0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Y0>>>26)|0,Y0&=67108863,k=Math.imul(ut,ze),p=Math.imul(ut,tt),p=p+Math.imul(vt,ze)|0,P=Math.imul(vt,tt),k=k+Math.imul(ht,it)|0,p=p+Math.imul(ht,st)|0,p=p+Math.imul(ft,it)|0,P=P+Math.imul(ft,st)|0,k=k+Math.imul(et,$e)|0,p=p+Math.imul(et,qe)|0,p=p+Math.imul(ct,$e)|0,P=P+Math.imul(ct,qe)|0,k=k+Math.imul(lt,Ae)|0,p=p+Math.imul(lt,Ze)|0,p=p+Math.imul(dt,Ae)|0,P=P+Math.imul(dt,Ze)|0;var Q0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(Q0>>>26)|0,Q0&=67108863,k=Math.imul(ut,it),p=Math.imul(ut,st),p=p+Math.imul(vt,it)|0,P=Math.imul(vt,st),k=k+Math.imul(ht,$e)|0,p=p+Math.imul(ht,qe)|0,p=p+Math.imul(ft,$e)|0,P=P+Math.imul(ft,qe)|0,k=k+Math.imul(et,Ae)|0,p=p+Math.imul(et,Ze)|0,p=p+Math.imul(ct,Ae)|0,P=P+Math.imul(ct,Ze)|0;var J0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(J0>>>26)|0,J0&=67108863,k=Math.imul(ut,$e),p=Math.imul(ut,qe),p=p+Math.imul(vt,$e)|0,P=Math.imul(vt,qe),k=k+Math.imul(ht,Ae)|0,p=p+Math.imul(ht,Ze)|0,p=p+Math.imul(ft,Ae)|0,P=P+Math.imul(ft,Ze)|0;var X0=(L+k|0)+((p&8191)<<13)|0;L=(P+(p>>>13)|0)+(X0>>>26)|0,X0&=67108863,k=Math.imul(ut,Ae),p=Math.imul(ut,Ze),p=p+Math.imul(vt,Ae)|0,P=Math.imul(vt,Ze);var Z0=(L+k|0)+((p&8191)<<13)|0;return L=(P+(p>>>13)|0)+(Z0>>>26)|0,Z0&=67108863,N[0]=jn,N[1]=ui,N[2]=Cs,N[3]=Ss,N[4]=As,N[5]=j0,N[6]=z0,N[7]=U0,N[8]=V0,N[9]=q0,N[10]=H0,N[11]=G0,N[12]=W0,N[13]=K0,N[14]=Y0,N[15]=Q0,N[16]=J0,N[17]=X0,N[18]=Z0,L!==0&&(N[19]=L,R.length++),R};Math.imul||(b=x);function S(I,h,C){C.negative=h.negative^I.negative,C.length=I.length+h.length;for(var R=0,M=0,T=0;T>>26)|0,M+=N>>>26,N&=67108863}C.words[T]=L,R=N,N=M}return R!==0?C.words[T]=R:C.length--,C._strip()}function A(I,h,C){return S(I,h,C)}s.prototype.mulTo=function(h,C){var R,M=this.length+h.length;return this.length===10&&h.length===10?R=b(this,h,C):M<63?R=x(this,h,C):M<1024?R=S(this,h,C):R=A(this,h,C),R},s.prototype.mul=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),this.mulTo(h,C)},s.prototype.mulf=function(h){var C=new s(null);return C.words=new Array(this.length+h.length),A(this,h,C)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var C=h<0;C&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var R=0,M=0;M>=26,R+=T/67108864|0,R+=N>>>26,this.words[M]=N&67108863}return R!==0&&(this.words[M]=R,this.length++),C?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var C=w(h);if(C.length===0)return new s(1);for(var R=this,M=0;M=0);var C=h%26,R=(h-C)/26,M=67108863>>>26-C<<26-C,T;if(C!==0){var N=0;for(T=0;T>>26-C}N&&(this.words[T]=N,this.length++)}if(R!==0){for(T=this.length-1;T>=0;T--)this.words[T+R]=this.words[T];for(T=0;T=0);var M;C?M=(C-C%26)/26:M=0;var T=h%26,N=Math.min((h-T)/26,this.length),L=67108863^67108863>>>T<N)for(this.length-=N,p=0;p=0&&(P!==0||p>=M);p--){var B=this.words[p]|0;this.words[p]=P<<26-T|B>>>T,P=B&L}return k&&P!==0&&(k.words[k.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,C,R){return n(this.negative===0),this.iushrn(h,C,R)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var C=h%26,R=(h-C)/26,M=1<=0);var C=h%26,R=(h-C)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(C!==0&&R++,this.length=Math.min(R,this.length),C!==0){var M=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C>26)-(k/67108864|0),this.words[T+R]=N&67108863}for(;T>26,this.words[T+R]=N&67108863;if(L===0)return this._strip();for(n(L===-1),L=0,T=0;T>26,this.words[T]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,C){var R=this.length-h.length,M=this.clone(),T=h,N=T.words[T.length-1]|0,L=this._countBits(N);R=26-L,R!==0&&(T=T.ushln(R),M.iushln(R),N=T.words[T.length-1]|0);var k=M.length-T.length,p;if(C!=="mod"){p=new s(null),p.length=k+1,p.words=new Array(p.length);for(var P=0;P=0;E--){var F=(M.words[T.length+E]|0)*67108864+(M.words[T.length+E-1]|0);for(F=Math.min(F/N|0,67108863),M._ishlnsubmul(T,F,E);M.negative!==0;)F--,M.negative=0,M._ishlnsubmul(T,1,E),M.isZero()||(M.negative^=1);p&&(p.words[E]=F)}return p&&p._strip(),M._strip(),C!=="div"&&R!==0&&M.iushrn(R),{div:p||null,mod:M}},s.prototype.divmod=function(h,C,R){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var M,T,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,C),C!=="mod"&&(M=N.div.neg()),C!=="div"&&(T=N.mod.neg(),R&&T.negative!==0&&T.iadd(h)),{div:M,mod:T}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),C),C!=="mod"&&(M=N.div.neg()),{div:M,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),C),C!=="div"&&(T=N.mod.neg(),R&&T.negative!==0&&T.isub(h)),{div:N.div,mod:T}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?C==="div"?{div:this.divn(h.words[0]),mod:null}:C==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,C)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var C=this.divmod(h);if(C.mod.isZero())return C.div;var R=C.div.negative!==0?C.mod.isub(h):C.mod,M=h.ushrn(1),T=h.andln(1),N=R.cmp(M);return N<0||T===1&&N===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modrn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=(1<<26)%h,M=0,T=this.length-1;T>=0;T--)M=(R*M+(this.words[T]|0))%h;return C?-M:M},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var C=h<0;C&&(h=-h),n(h<=67108863);for(var R=0,M=this.length-1;M>=0;M--){var T=(this.words[M]|0)+R*67108864;this.words[M]=T/h|0,R=T%h}return this._strip(),C?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=new s(0),L=new s(1),k=0;C.isEven()&&R.isEven();)C.iushrn(1),R.iushrn(1),++k;for(var p=R.clone(),P=C.clone();!C.isZero();){for(var B=0,E=1;!(C.words[0]&E)&&B<26;++B,E<<=1);if(B>0)for(C.iushrn(B);B-- >0;)(M.isOdd()||T.isOdd())&&(M.iadd(p),T.isub(P)),M.iushrn(1),T.iushrn(1);for(var F=0,j=1;!(R.words[0]&j)&&F<26;++F,j<<=1);if(F>0)for(R.iushrn(F);F-- >0;)(N.isOdd()||L.isOdd())&&(N.iadd(p),L.isub(P)),N.iushrn(1),L.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(N),T.isub(L)):(R.isub(C),N.isub(M),L.isub(T))}return{a:N,b:L,gcd:R.iushln(k)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var C=this,R=h.clone();C.negative!==0?C=C.umod(h):C=C.clone();for(var M=new s(1),T=new s(0),N=R.clone();C.cmpn(1)>0&&R.cmpn(1)>0;){for(var L=0,k=1;!(C.words[0]&k)&&L<26;++L,k<<=1);if(L>0)for(C.iushrn(L);L-- >0;)M.isOdd()&&M.iadd(N),M.iushrn(1);for(var p=0,P=1;!(R.words[0]&P)&&p<26;++p,P<<=1);if(p>0)for(R.iushrn(p);p-- >0;)T.isOdd()&&T.iadd(N),T.iushrn(1);C.cmp(R)>=0?(C.isub(R),M.isub(T)):(R.isub(C),T.isub(M))}var B;return C.cmpn(1)===0?B=M:B=T,B.cmpn(0)<0&&B.iadd(h),B},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var C=this.clone(),R=h.clone();C.negative=0,R.negative=0;for(var M=0;C.isEven()&&R.isEven();M++)C.iushrn(1),R.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;R.isEven();)R.iushrn(1);var T=C.cmp(R);if(T<0){var N=C;C=R,R=N}else if(T===0||R.cmpn(1)===0)break;C.isub(R)}while(!0);return R.iushln(M)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var C=h%26,R=(h-C)/26,M=1<>>26,L&=67108863,this.words[N]=L}return T!==0&&(this.words[N]=T,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var C=h<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this._strip();var R;if(this.length>1)R=1;else{C&&(h=-h),n(h<=67108863,"Number is too big");var M=this.words[0]|0;R=M===h?0:Mh.length)return 1;if(this.length=0;R--){var M=this.words[R]|0,T=h.words[R]|0;if(M!==T){MT&&(C=1);break}}return C},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new Q(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var _={k256:null,p224:null,p192:null,p25519:null};function D(I,h){this.name=I,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},D.prototype.ireduce=function(h){var C=h,R;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),R=C.bitLength();while(R>this.n);var M=R0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},D.prototype.split=function(h,C){h.iushrn(this.n,0,C)},D.prototype.imulK=function(h){return h.imul(this.k)};function $(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i($,D),$.prototype.split=function(h,C){for(var R=4194303,M=Math.min(h.length,9),T=0;T>>22,N=L}N>>>=22,h.words[T-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},$.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var C=0,R=0;R>>=26,h.words[R]=T,C=M}return C!==0&&(h.words[h.length++]=C),h},s._prime=function(h){if(_[h])return _[h];var C;if(h==="k256")C=new $;else if(h==="p224")C=new O;else if(h==="p192")C=new H;else if(h==="p25519")C=new Y;else throw new Error("Unknown prime "+h);return _[h]=C,C};function Q(I){if(typeof I=="string"){var h=s._prime(I);this.m=h.p,this.prime=h}else n(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}Q.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Q.prototype._verify2=function(h,C){n((h.negative|C.negative)===0,"red works only with positives"),n(h.red&&h.red===C.red,"red works only with red numbers")},Q.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Q.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Q.prototype.add=function(h,C){this._verify2(h,C);var R=h.add(C);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},Q.prototype.iadd=function(h,C){this._verify2(h,C);var R=h.iadd(C);return R.cmp(this.m)>=0&&R.isub(this.m),R},Q.prototype.sub=function(h,C){this._verify2(h,C);var R=h.sub(C);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},Q.prototype.isub=function(h,C){this._verify2(h,C);var R=h.isub(C);return R.cmpn(0)<0&&R.iadd(this.m),R},Q.prototype.shl=function(h,C){return this._verify1(h),this.imod(h.ushln(C))},Q.prototype.imul=function(h,C){return this._verify2(h,C),this.imod(h.imul(C))},Q.prototype.mul=function(h,C){return this._verify2(h,C),this.imod(h.mul(C))},Q.prototype.isqr=function(h){return this.imul(h,h.clone())},Q.prototype.sqr=function(h){return this.mul(h,h)},Q.prototype.sqrt=function(h){if(h.isZero())return h.clone();var C=this.m.andln(3);if(n(C%2===1),C===3){var R=this.m.add(new s(1)).iushrn(2);return this.pow(h,R)}for(var M=this.m.subn(1),T=0;!M.isZero()&&M.andln(1)===0;)T++,M.iushrn(1);n(!M.isZero());var N=new s(1).toRed(this),L=N.redNeg(),k=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new s(2*p*p).toRed(this);this.pow(p,k).cmp(L)!==0;)p.redIAdd(L);for(var P=this.pow(p,M),B=this.pow(h,M.addn(1).iushrn(1)),E=this.pow(h,M),F=T;E.cmp(N)!==0;){for(var j=E,z=0;j.cmp(N)!==0;z++)j=j.redSqr();n(z=0;T--){for(var P=C.words[T],B=p-1;B>=0;B--){var E=P>>B&1;if(N!==M[0]&&(N=this.sqr(N)),E===0&&L===0){k=0;continue}L<<=1,L|=E,k++,!(k!==R&&(T!==0||B!==0))&&(N=this.mul(N,M[L]),k=0,L=0)}p=26}return N},Q.prototype.convertTo=function(h){var C=h.umod(this.m);return C===h?C.clone():C},Q.prototype.convertFrom=function(h){var C=h.clone();return C.red=null,C},s.mont=function(h){return new re(h)};function re(I){Q.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(re,Q),re.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},re.prototype.convertFrom=function(h){var C=this.imod(h.mul(this.rinv));return C.red=null,C},re.prototype.imul=function(h,C){if(h.isZero()||C.isZero())return h.words[0]=0,h.length=1,h;var R=h.imul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},re.prototype.mul=function(h,C){if(h.isZero()||C.isZero())return new s(0)._forceRed(this);var R=h.mul(C),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=R.isub(M).iushrn(this.shift),N=T;return T.cmp(this.m)>=0?N=T.isub(this.m):T.cmpn(0)<0&&(N=T.iadd(this.m)),N._forceRed(this)},re.prototype.invm=function(h){var C=this.imod(h._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(t,kE)})(yg);var mz=yg.exports;const Pe=bs(mz),gz="logger/5.7.0";let K3=!1,Y3=!1;const _d={debug:1,default:2,info:2,warning:3,error:4,off:5};let Q3=_d.default,X1=null;function xz(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const J3=xz();var fp;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(fp||(fp={}));var Kn;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Kn||(Kn={}));const X3="0123456789abcdef";let V=class tr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();_d[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Q3>_d[n])&&console.log.apply(console,r)}debug(...e){this._log(tr.levels.DEBUG,e)}info(...e){this._log(tr.levels.INFO,e)}warn(...e){this._log(tr.levels.WARNING,e)}makeError(e,r,n){if(Y3)return this.makeError("censored error",r,{});r||(r=tr.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let f="";for(let u=0;u>4],f+=X3[c[u]&15];i.push(l+"=Uint8Array(0x"+f+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const s=e;let o="";switch(r){case Kn.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Kn.CALL_EXCEPTION:case Kn.INSUFFICIENT_FUNDS:case Kn.MISSING_NEW:case Kn.NONCE_EXPIRED:case Kn.REPLACEMENT_UNDERPRICED:case Kn.TRANSACTION_REPLACED:case Kn.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const a=new Error(e);return a.reason=s,a.code=r,Object.keys(n).forEach(function(l){a[l]=n[l]}),a}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,tr.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){J3&&this.throwError("platform missing String.prototype.normalize",tr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:J3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,tr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,tr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,tr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",tr.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",tr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",tr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return X1||(X1=new tr(gz)),X1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),K3){if(!e)return;this.globalLogger().throwError("error censorship permanent",tr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Y3=!!e,K3=!!r}static setLogLevel(e){const r=_d[e.toLowerCase()];if(r==null){tr.globalLogger().warn("invalid log level - "+e);return}Q3=r}static from(e){return new tr(e)}};V.errors=Kn;V.levels=fp;const bz="bytes/5.7.0",Bt=new V(bz);function t7(t){return!!t.toHexString}function nl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return nl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function R0(t){return We(t)&&!(t.length%2)||Dl(t)}function Z3(t){return typeof t=="number"&&t==t&&t%1===0}function Dl(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!Z3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ae(t,e){if(e||(e={}),typeof t=="number"){Bt.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),nl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),t7(t)&&(t=t.toHexString()),We(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Bt.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;iae(i)),r=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(r);return e.reduce((i,s)=>(n.set(s,i),i+s.length),0),nl(n)}function us(t){let e=ae(t);if(e.length===0)return e;let r=0;for(;re&&Bt.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),nl(r)}function We(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const Z1="0123456789abcdef";function le(t,e){if(e||(e={}),typeof t=="number"){Bt.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=Z1[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),t7(t))return t.toHexString();if(We(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Bt.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(Dl(t)){let r="0x";for(let n=0;n>4]+Z1[i&15]}return r}return Bt.throwArgumentError("invalid hexlify value","value",t)}function Zo(t){if(typeof t!="string")t=le(t);else if(!We(t)||t.length%2)return null;return(t.length-2)/2}function ir(t,e,r){return typeof t!="string"?t=le(t):(!We(t)||t.length%2)&&Bt.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function qr(t){let e="0x";return t.forEach(r=>{e+=le(r).substring(2)}),e}function pg(t){const e=Ez(le(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function Ez(t){typeof t!="string"&&(t=le(t)),We(t)||Bt.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Bt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Ol(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(R0(t)){let r=ae(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64))):r.length===65?(e.r=le(r.slice(0,32)),e.s=le(r.slice(32,64)),e.v=r[64]):Bt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Bt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=le(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=wz(ae(e._vs),32);e._vs=le(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Bt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=le(i);e.s==null?e.s=o:e.s!==o&&Bt.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Bt.throwArgumentError("signature missing v and recoveryParam","signature",t):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&Bt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!We(e.r)?Bt.throwArgumentError("signature missing or invalid r","signature",t):e.r=Et(e.r,32),e.s==null||!We(e.s)?Bt.throwArgumentError("signature missing or invalid s","signature",t):e.s=Et(e.s,32);const r=ae(e.s);r[0]>=128&&Bt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=le(r);e._vs&&(We(e._vs)||Bt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Et(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Bt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function e6(t){return t=Ol(t),le(Kt([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const r7="bignumber/5.7.0";var kh=Pe.BN;const Xi=new V(r7),ev={},t6=9007199254740991;function Cz(t){return t!=null&&(oe.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||We(t)||typeof t=="bigint"||Dl(t))}let r6=!1;class oe{constructor(e,r){e!==ev&&Xi.throwError("cannot call constructor directly; use BigNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Ur(Oe(this).fromTwos(e))}toTwos(e){return Ur(Oe(this).toTwos(e))}abs(){return this._hex[0]==="-"?oe.from(this._hex.substring(1)):this}add(e){return Ur(Oe(this).add(Oe(e)))}sub(e){return Ur(Oe(this).sub(Oe(e)))}div(e){return oe.from(e).isZero()&&mn("division-by-zero","div"),Ur(Oe(this).div(Oe(e)))}mul(e){return Ur(Oe(this).mul(Oe(e)))}mod(e){const r=Oe(e);return r.isNeg()&&mn("division-by-zero","mod"),Ur(Oe(this).umod(r))}pow(e){const r=Oe(e);return r.isNeg()&&mn("negative-power","pow"),Ur(Oe(this).pow(r))}and(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","and"),Ur(Oe(this).and(r))}or(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","or"),Ur(Oe(this).or(r))}xor(e){const r=Oe(e);return(this.isNegative()||r.isNeg())&&mn("unbound-bitwise-result","xor"),Ur(Oe(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&mn("negative-width","mask"),Ur(Oe(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&mn("negative-width","shl"),Ur(Oe(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&mn("negative-width","shr"),Ur(Oe(this).shrn(e))}eq(e){return Oe(this).eq(Oe(e))}lt(e){return Oe(this).lt(Oe(e))}lte(e){return Oe(this).lte(Oe(e))}gt(e){return Oe(this).gt(Oe(e))}gte(e){return Oe(this).gte(Oe(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Oe(this).isZero()}toNumber(){try{return Oe(this).toNumber()}catch{mn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Xi.throwError("this platform does not support BigInt",V.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?r6||(r6=!0,Xi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Xi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",V.errors.UNEXPECTED_ARGUMENT,{}):Xi.throwError("BigNumber.toString does not accept parameters",V.errors.UNEXPECTED_ARGUMENT,{})),Oe(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof oe)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new oe(ev,Vf(e)):e.match(/^-?[0-9]+$/)?new oe(ev,Vf(new kh(e))):Xi.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&mn("underflow","BigNumber.from",e),(e>=t6||e<=-t6)&&mn("overflow","BigNumber.from",e),oe.from(String(e));const r=e;if(typeof r=="bigint")return oe.from(r.toString());if(Dl(r))return oe.from(le(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return oe.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(We(n)||n[0]==="-"&&We(n.substring(1))))return oe.from(n)}return Xi.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Vf(t){if(typeof t!="string")return Vf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Xi.throwArgumentError("invalid hex","value",t),t=Vf(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function Ur(t){return oe.from(Vf(t))}function Oe(t){const e=oe.from(t).toHexString();return e[0]==="-"?new kh("-"+e.substring(3),16):new kh(e.substring(2),16)}function mn(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),Xi.throwError(t,V.errors.NUMERIC_FAULT,n)}function Sz(t){return new kh(t,36).toString(16)}const Br=new V(r7),ff={},n7=oe.from(0),i7=oe.from(-1);function s7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Br.throwError(t,V.errors.NUMERIC_FAULT,i)}let uf="0";for(;uf.length<256;)uf+=uf;function mg(t){if(typeof t!="number")try{t=oe.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+uf.substring(0,t):Br.throwArgumentError("invalid decimal size","decimals",t)}function Md(t,e){e==null&&(e=0);const r=mg(e);t=oe.from(t);const n=t.lt(n7);n&&(t=t.mul(i7));let i=t.mod(r).toString();for(;i.length2&&Br.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");o[o.length-1]==="0";)o=o.substring(0,o.length-1);for(o.length>r.length-1&&s7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Br.throwArgumentError("invalid fixed format ("+o+" not "+a+")","format."+o,e[o]),e[o]);r=s("signed","boolean",r),n=s("width","number",n),i=s("decimals","number",i)}return n%8&&Br.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Br.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new il(ff,r,n,i)}}class pr{constructor(e,r,n,i){e!==ff&&Br.throwError("cannot use FixedNumber constructor; use FixedNumber.from",V.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Br.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=mi(this._value,this.format.decimals),n=mi(e._value,e.format.decimals);return pr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(n6.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=pr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(n6.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&Br.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=pr.from("1"+uf.substring(0,e),this.format),i=Az.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&Br.throwArgumentError("invalid byte width","width",e);const r=oe.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Et(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return pr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!Cz(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),pr.fromString(Md(e,r),il.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=il.from(r),i=mi(e,n.decimals);!n.signed&&i.lt(n7)&&s7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=Et(s,n.width/8));const o=Md(i,n.decimals);return new pr(ff,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=il.from(r);if(ae(e).length>n.width/8)throw new Error("overflow");let i=oe.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Md(i,n.decimals);return new pr(ff,s,o,n)}static from(e,r){if(typeof e=="string")return pr.fromString(e,r);if(Dl(e))return pr.fromBytes(e,r);try{return pr.fromValue(e,0,r)}catch(n){if(n.code!==V.errors.INVALID_ARGUMENT)throw n}return Br.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const n6=pr.from(1),Az=pr.from("0.5"),kz="properties/5.7.0";var Rz=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Rh=new V(kz);function Z(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Ii(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function qt(t){return Rz(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(s=>({key:n,value:s}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function o7(t,e){(!t||typeof t!="object")&&Rh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||Rh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ar(t){const e={};for(const r in t)e[r]=t[r];return e}const Pz={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function a7(t){if(t==null||Pz[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;rea(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&Z(e,r,ea(n))}return e}return Rh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function ea(t){return Tz(t)}class da{constructor(e){for(const r in e)this[r]=ea(e[r])}}const mu="abi/5.7.0",Ue=new V(mu),ta={};let i6={calldata:!0,memory:!0,storage:!0},_z={calldata:!0,memory:!0};function nd(t,e){if(t==="bytes"||t==="string"){if(i6[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&_z[e])return!0;return(i6[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function Mz(t,e){let r=t;function n(a){Ue.throwArgumentError(`unexpected character at position ${a}`,"param",t)}t=t.replace(/\s/g," ");function i(a){let l={type:"",name:"",parent:a,state:{allowType:!0}};return e&&(l.indexed=!1),l}let s={type:"",name:"",state:{allowType:!0}},o=s;for(let a=0;aJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==Qe.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Qe.full?", ":",")+")"):r+=this.type,e!==Qe.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Qe.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?ur.fromString(e,r):ur.fromObject(e)}static fromObject(e){return ur.isParamType(e)?e:new ur(ta,{name:e.name||null,type:ka(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(ur.fromObject):null})}static fromString(e,r){function n(i){return ur.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(Mz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function qf(t,e){return $z(t).map(r=>ur.fromString(r,e))}class os{constructor(e,r){e!==ta&&Ue.throwError("use a static from method",V.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Id(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return os.isFragment(e)?e:typeof e=="string"?os.fromString(e):os.fromObject(e)}static fromObject(e){if(os.isFragment(e))return e;switch(e.type){case"function":return Ai.fromObject(e);case"event":return rs.fromObject(e);case"constructor":return Si.fromObject(e);case"error":return Bs.fromObject(e);case"fallback":case"receive":return null}return Ue.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?rs.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Ai.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Si.fromString(e.trim()):e.split(" ")[0]==="error"?Bs.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class rs extends os{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Qe.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?rs.fromString(e):rs.fromObject(e)}static fromObject(e){if(rs.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:Hf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(ur.fromObject):[],type:"event"};return new rs(ta,r)}static fromString(e){let r=e.match(Gf);r||Ue.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:Ue.warn("unknown modifier: "+i)}}),rs.fromObject({name:r[1].trim(),anonymous:n,inputs:qf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function l7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&Ue.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||Ue.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=oe.from(r[1]),r[0]):t}function c7(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+r)}})}function f7(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&Ue.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&Ue.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Ue.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e}class Si extends os{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});e===Qe.sighash&&Ue.throwError("cannot format a constructor for sighash",V.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Si.fromString(e):Si.fromObject(e)}static fromObject(e){if(Si.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=f7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Si(ta,n)}static fromString(e){let r={type:"constructor"};e=l7(e,r);let n=e.match(Gf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=qf(n[2].trim(),!1),c7(n[3].trim(),r),Si.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Ai extends Si{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Qe.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",e!==Qe.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?Ai.fromString(e):Ai.fromObject(e)}static fromObject(e){if(Ai.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=f7(e);const n={type:e.type,name:Hf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(ur.fromObject):[],outputs:e.outputs?e.outputs.map(ur.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?oe.from(e.gas):null};return new Ai(ta,n)}static fromString(e){let r={type:"function"};e=l7(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Gf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Hf(r.name),r.inputs=qf(i[2],!1),c7(i[3].trim(),r),n.length>1){let s=n[1].match(Gf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=qf(s[2],!1)}else r.outputs=[];return Ai.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function s6(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Bs extends os{format(e){if(e||(e=Qe.sighash),Qe[e]||Ue.throwArgumentError("invalid format type","format",e),e===Qe.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Qe.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Qe.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Bs.fromString(e):Bs.fromObject(e)}static fromObject(e){if(Bs.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Hf(e.name),inputs:e.inputs?e.inputs.map(ur.fromObject):[]};return s6(new Bs(ta,r))}static fromString(e){let r={type:"error"},n=e.match(Gf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Hf(r.name),r.inputs=qf(n[2],!1),s6(Bs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function ka(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Nz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Hf(t){return(!t||!t.match(Nz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Gf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function $z(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&gg.throwError("value out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Kt([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class Ph{constructor(e,r,n,i){Z(this,"_data",ae(e)),Z(this,"wordSize",r||32),Z(this,"_coerceFunc",n),Z(this,"allowLoose",i),this._offset=0}get data(){return le(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):Ph.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:gg.throwError("data out-of-bounds",V.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new Ph(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return oe.from(this.readBytes(this.wordSize))}}var u7={exports:{}};/** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=kE:s&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],u=[4,1024,262144,67108864],d=[1,256,65536,16777216],v=[6,1536,393216,100663296],m=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],w=[224,256,384,512],x=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return Object.prototype.toString.call(E)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return typeof E=="object"&&E.buffer&&E.buffer.constructor===ArrayBuffer});for(var A=function(E,F,j){return function(z){return new p(E,F,E).update(z)[j]()}},_=function(E,F,j){return function(z,W){return new p(E,F,W).update(z)[j]()}},D=function(E,F,j){return function(z,W,ne,X){return h["cshake"+E].update(z,W,ne,X)[j]()}},$=function(E,F,j){return function(z,W,ne,X){return h["kmac"+E].update(z,W,ne,X)[j]()}},O=function(E,F,j,z){for(var W=0;W>5,this.byteCount=this.blockCount<<2,this.outputBlocks=j>>5,this.extraBytes=(j&31)>>3;for(var z=0;z<50;++z)this.s[z]=0}p.prototype.update=function(E){if(this.finalized)throw new Error(r);var F,j=typeof E;if(j!=="string"){if(j==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);F=!0}for(var z=this.blocks,W=this.byteCount,ne=E.length,X=this.blockCount,ee=0,_e=this.s,ce,xe;ee>2]|=E[ee]<>2]|=xe<>2]|=(192|xe>>6)<>2]|=(128|xe&63)<=57344?(z[ce>>2]|=(224|xe>>12)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<>2]|=(240|xe>>18)<>2]|=(128|xe>>12&63)<>2]|=(128|xe>>6&63)<>2]|=(128|xe&63)<=W){for(this.start=ce-W,this.block=z[X],ce=0;ce>8,j=E&255;j>0;)W.unshift(j),E=E>>8,j=E&255,++z;return F?W.push(z):W.unshift(z),this.update(W),W.length},p.prototype.encodeString=function(E){var F,j=typeof E;if(j!=="string"){if(j==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);F=!0}var z=0,W=E.length;if(F)z=W;else for(var ne=0;ne=57344?z+=3:(X=65536+((X&1023)<<10|E.charCodeAt(++ne)&1023),z+=4)}return z+=this.encode(z*8),this.update(E),z},p.prototype.bytepad=function(E,F){for(var j=this.encode(F),z=0;z>2]|=this.padding[F&3],this.lastByteIndex===this.byteCount)for(E[0]=E[j],F=1;F>4&15]+c[ee&15]+c[ee>>12&15]+c[ee>>8&15]+c[ee>>20&15]+c[ee>>16&15]+c[ee>>28&15]+c[ee>>24&15];ne%E===0&&(B(F),W=0)}return z&&(ee=F[W],X+=c[ee>>4&15]+c[ee&15],z>1&&(X+=c[ee>>12&15]+c[ee>>8&15]),z>2&&(X+=c[ee>>20&15]+c[ee>>16&15])),X},p.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,F=this.s,j=this.outputBlocks,z=this.extraBytes,W=0,ne=0,X=this.outputBits>>3,ee;z?ee=new ArrayBuffer(j+1<<2):ee=new ArrayBuffer(X);for(var _e=new Uint32Array(ee);ne>8&255,X[ee+2]=_e>>16&255,X[ee+3]=_e>>24&255;ne%E===0&&B(F)}return z&&(ee=ne<<2,_e=F[W],X[ee]=_e&255,z>1&&(X[ee+1]=_e>>8&255),z>2&&(X[ee+2]=_e>>16&255)),X};function P(E,F,j){p.call(this,E,F,j)}P.prototype=new p,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),p.prototype.finalize.call(this)};var B=function(E){var F,j,z,W,ne,X,ee,_e,ce,xe,Er,je,Ye,Zr,Ie,at,ci,lt,dt,fi,et,ct,Ln,ht,ft,Gi,ut,vt,G,q,J,he,ye,ve,Ee,de,fe,Ve,Me,be,rt,ke,Ge,Mr,Xe,nt,vr,ze,tt,Bn,it,st,De,$e,qe,Fn,Ae,Ze,jn,ui,Cs,Ss,As;for(z=0;z<48;z+=2)W=E[0]^E[10]^E[20]^E[30]^E[40],ne=E[1]^E[11]^E[21]^E[31]^E[41],X=E[2]^E[12]^E[22]^E[32]^E[42],ee=E[3]^E[13]^E[23]^E[33]^E[43],_e=E[4]^E[14]^E[24]^E[34]^E[44],ce=E[5]^E[15]^E[25]^E[35]^E[45],xe=E[6]^E[16]^E[26]^E[36]^E[46],Er=E[7]^E[17]^E[27]^E[37]^E[47],je=E[8]^E[18]^E[28]^E[38]^E[48],Ye=E[9]^E[19]^E[29]^E[39]^E[49],F=je^(X<<1|ee>>>31),j=Ye^(ee<<1|X>>>31),E[0]^=F,E[1]^=j,E[10]^=F,E[11]^=j,E[20]^=F,E[21]^=j,E[30]^=F,E[31]^=j,E[40]^=F,E[41]^=j,F=W^(_e<<1|ce>>>31),j=ne^(ce<<1|_e>>>31),E[2]^=F,E[3]^=j,E[12]^=F,E[13]^=j,E[22]^=F,E[23]^=j,E[32]^=F,E[33]^=j,E[42]^=F,E[43]^=j,F=X^(xe<<1|Er>>>31),j=ee^(Er<<1|xe>>>31),E[4]^=F,E[5]^=j,E[14]^=F,E[15]^=j,E[24]^=F,E[25]^=j,E[34]^=F,E[35]^=j,E[44]^=F,E[45]^=j,F=_e^(je<<1|Ye>>>31),j=ce^(Ye<<1|je>>>31),E[6]^=F,E[7]^=j,E[16]^=F,E[17]^=j,E[26]^=F,E[27]^=j,E[36]^=F,E[37]^=j,E[46]^=F,E[47]^=j,F=xe^(W<<1|ne>>>31),j=Er^(ne<<1|W>>>31),E[8]^=F,E[9]^=j,E[18]^=F,E[19]^=j,E[28]^=F,E[29]^=j,E[38]^=F,E[39]^=j,E[48]^=F,E[49]^=j,Zr=E[0],Ie=E[1],nt=E[11]<<4|E[10]>>>28,vr=E[10]<<4|E[11]>>>28,vt=E[20]<<3|E[21]>>>29,G=E[21]<<3|E[20]>>>29,ui=E[31]<<9|E[30]>>>23,Cs=E[30]<<9|E[31]>>>23,ke=E[40]<<18|E[41]>>>14,Ge=E[41]<<18|E[40]>>>14,ve=E[2]<<1|E[3]>>>31,Ee=E[3]<<1|E[2]>>>31,at=E[13]<<12|E[12]>>>20,ci=E[12]<<12|E[13]>>>20,ze=E[22]<<10|E[23]>>>22,tt=E[23]<<10|E[22]>>>22,q=E[33]<<13|E[32]>>>19,J=E[32]<<13|E[33]>>>19,Ss=E[42]<<2|E[43]>>>30,As=E[43]<<2|E[42]>>>30,$e=E[5]<<30|E[4]>>>2,qe=E[4]<<30|E[5]>>>2,de=E[14]<<6|E[15]>>>26,fe=E[15]<<6|E[14]>>>26,lt=E[25]<<11|E[24]>>>21,dt=E[24]<<11|E[25]>>>21,Bn=E[34]<<15|E[35]>>>17,it=E[35]<<15|E[34]>>>17,he=E[45]<<29|E[44]>>>3,ye=E[44]<<29|E[45]>>>3,ht=E[6]<<28|E[7]>>>4,ft=E[7]<<28|E[6]>>>4,Fn=E[17]<<23|E[16]>>>9,Ae=E[16]<<23|E[17]>>>9,Ve=E[26]<<25|E[27]>>>7,Me=E[27]<<25|E[26]>>>7,fi=E[36]<<21|E[37]>>>11,et=E[37]<<21|E[36]>>>11,st=E[47]<<24|E[46]>>>8,De=E[46]<<24|E[47]>>>8,Mr=E[8]<<27|E[9]>>>5,Xe=E[9]<<27|E[8]>>>5,Gi=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ze=E[29]<<7|E[28]>>>25,jn=E[28]<<7|E[29]>>>25,be=E[38]<<8|E[39]>>>24,rt=E[39]<<8|E[38]>>>24,ct=E[48]<<14|E[49]>>>18,Ln=E[49]<<14|E[48]>>>18,E[0]=Zr^~at<,E[1]=Ie^~ci&dt,E[10]=ht^~Gi&vt,E[11]=ft^~ut&G,E[20]=ve^~de&Ve,E[21]=Ee^~fe&Me,E[30]=Mr^~nt&ze,E[31]=Xe^~vr&tt,E[40]=$e^~Fn&Ze,E[41]=qe^~Ae&jn,E[2]=at^~lt&fi,E[3]=ci^~dt&et,E[12]=Gi^~vt&q,E[13]=ut^~G&J,E[22]=de^~Ve&be,E[23]=fe^~Me&rt,E[32]=nt^~ze&Bn,E[33]=vr^~tt&it,E[42]=Fn^~Ze&ui,E[43]=Ae^~jn&Cs,E[4]=lt^~fi&ct,E[5]=dt^~et&Ln,E[14]=vt^~q&he,E[15]=G^~J&ye,E[24]=Ve^~be&ke,E[25]=Me^~rt&Ge,E[34]=ze^~Bn&st,E[35]=tt^~it&De,E[44]=Ze^~ui&Ss,E[45]=jn^~Cs&As,E[6]=fi^~ct&Zr,E[7]=et^~Ln&Ie,E[16]=q^~he&ht,E[17]=J^~ye&ft,E[26]=be^~ke&ve,E[27]=rt^~Ge&Ee,E[36]=Bn^~st&Mr,E[37]=it^~De&Xe,E[46]=ui^~Ss&$e,E[47]=Cs^~As&qe,E[8]=ct^~Zr&at,E[9]=Ln^~Ie&ci,E[18]=he^~ht&Gi,E[19]=ye^~ft&ut,E[28]=ke^~ve&de,E[29]=Ge^~Ee&fe,E[38]=st^~Mr&nt,E[39]=De^~Xe&vr,E[48]=Ss^~$e&Fn,E[49]=As^~qe&Ae,E[0]^=y[z],E[1]^=y[z+1]};if(a)t.exports=h;else for(R=0;R>=8;return e}function a6(t,e,r){let n=0;for(let i=0;ie+1+n&&bi.throwError("child data too short",V.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function h7(t,e){if(t.length===0&&bi.throwError("data too short",V.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&bi.throwError("data short segment too short",V.errors.BUFFER_OVERRUN,{});const n=a6(t,e+1,r);return e+1+r+n>t.length&&bi.throwError("data long segment too short",V.errors.BUFFER_OVERRUN,{}),l6(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&bi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{}),l6(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&bi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const n=a6(t,e+1,r);e+1+r+n>t.length&&bi.throwError("data array too short",V.errors.BUFFER_OVERRUN,{});const i=le(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&bi.throwError("data too short",V.errors.BUFFER_OVERRUN,{});const n=le(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:le(t[e])}}function xg(t){const e=ae(t),r=h7(e,0);return r.consumed!==e.length&&bi.throwArgumentError("invalid rlp data","data",t),r.result}const Fz="address/5.7.0",Ha=new V(Fz);function c6(t){We(t,20)||Ha.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=ae(bt(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const jz=9007199254740991;function zz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const bg={};for(let t=0;t<10;t++)bg[String(t)]=String(t);for(let t=0;t<26;t++)bg[String.fromCharCode(65+t)]=String(10+t);const f6=Math.floor(zz(jz));function Uz(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>bg[n]).join("");for(;e.length>=f6;){let n=e.substring(0,f6);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function Ot(t){let e=null;if(typeof t!="string"&&Ha.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=c6(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Ha.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==Uz(t)&&Ha.throwArgumentError("bad icap checksum","address",t),e=Sz(t.substring(4));e.length<40;)e="0"+e;e=c6("0x"+e)}else Ha.throwArgumentError("invalid address","address",t);return e}function Vz(t){try{return Ot(t),!0}catch{}return!1}function v7(t){let e=null;try{e=Ot(t.from)}catch{Ha.throwArgumentError("missing from address","transaction",t)}const r=us(ae(oe.from(t.nonce).toHexString()));return Ot(ir(bt(bl([e,r])),12))}class qz extends Es{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ot(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ot(Et(e.readValue().toHexString(),20))}}class Hz extends Es{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const Ga=new V(mu);function y7(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=e.map(c=>{const f=c.localName;return f||Ga.throwError("cannot encode object for signature with missing names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&Ga.throwError("cannot encode object for signature with duplicate names",V.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else Ga.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Ga.throwArgumentError("types/value length mismatch","tuple",r);let i=new up(t.wordSize),s=new up(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+u)})}else l.encode(i,f)}),o.forEach(l=>{l(i.length)});let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function p7(t,e){let r=[],n=t.subReader(0);e.forEach(s=>{let o=null;if(s.dynamic){let a=t.readValue(),l=n.subReader(a.toNumber());try{o=s.decode(l)}catch(c){if(c.code===V.errors.BUFFER_OVERRUN)throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(t)}catch(a){if(a.code===V.errors.BUFFER_OVERRUN)throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}o!=null&&r.push(o)});const i=e.reduce((s,o)=>{const a=o.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});e.forEach((s,o)=>{let a=s.localName;if(!a||i[a]!==1||(a==="length"&&(a="_length"),r[a]!=null))return;const l=r[o];l instanceof Error?Object.defineProperty(r,a,{enumerable:!0,get:()=>{throw l}}):r[a]=l});for(let s=0;s{throw o}})}return Object.freeze(r)}class Gz extends Es{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",s=r===-1||e.dynamic;super("array",i,n,s),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&Ga.throwError("insufficient data length",V.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===nn.OVERRUN?r.length-e-1:0}function iU(t,e,r,n,i){return t===nn.OVERLONG?(n.push(i),0):(n.push(65533),w7(t,e,r))}const sU=Object.freeze({error:nU,ignore:w7,replace:iU});function E7(t,e){e==null&&(e=sU.error),t=ae(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?n+=e(nn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(nn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(nn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(nn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(nn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(nn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function Zt(t,e=so.current){e!=so.current&&(b7.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=t.charCodeAt(n);if(n>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return ae(r)}function oU(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function gu(t,e){return oU(E7(t,e))}function aU(t,e=so.current){return E7(Zt(t,e))}class lU extends m7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,Zt(r))}decode(e){return gu(super.decode(e))}}class id extends Es{constructor(e,r){let n=!1;const i=[];e.forEach(o=>{o.dynamic&&(n=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const s=i.localName;return s&&(n[s]||(n[s]=0),n[s]++),n},{});return this.coders.forEach((n,i)=>{let s=n.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,r){return y7(e,this.coders,r)}decode(e){return e.coerce(this.name,p7(e,this.coders))}}const sd=new V(mu),cU=new RegExp(/^bytes([0-9]*)$/),fU=new RegExp(/^(u?int)([0-9]*)$/);class uU{constructor(e){Z(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new qz(e.name);case"bool":return new Wz(e.name);case"string":return new lU(e.name);case"bytes":return new Kz(e.name);case"array":return new Gz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new id((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new Qz(e.name)}let r=e.type.match(fU);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&sd.throwArgumentError("invalid "+r[1]+" bit length","param",e),new tU(n/8,r[1]==="int",e.name)}if(r=e.type.match(cU),r){let n=parseInt(r[1]);return(n===0||n>32)&&sd.throwArgumentError("invalid bytes length","param",e),new Yz(n,e.name)}return sd.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new Ph(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new up(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(ur.from(i)));return new id(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&sd.throwError("types/values length mismatch",V.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(ur.from(o))),i=new id(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(ur.from(o)));return new id(i,"_").decode(this._getReader(ae(r),n))}}const dU=new uU;function Do(t){return bt(Zt(t))}const C7="hash/5.7.0";function S7(t){t=atob(t);const e=[];for(let r=0;r0&&Array.isArray(a)?i(a,o-1):r.push(a)})};return i(t,e),r}function hU(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,m=v>>1,y=d-1;let w=0;for(let _=0;_1;){let Y=D+$>>>1;_>>1|f(),O=O<<1^v,H=(H^v)<<1|v|1;b=O,S=1+H-O}let A=n-4;return x.map(_=>{switch(_-A){case 3:return A+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return A+256+(t[a++]<<8|t[a++]);case 1:return A+t[a++];default:return _-1}})}function yU(t){let e=0;return()=>t[e++]}function pU(t){return yU(vU(t))}function mU(t){return t&1?~t>>1:t>>1}function gU(t,e){let r=Array(t);for(let n=0;ne[o]):r}function bU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(EU(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(CU(r,t))}return hU(k7(e))}function wU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function R7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function EU(t,e){let r=1+e(),n=e(),i=wU(e),s=R7(i.length,1+t,e);return k7(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function CU(t,e){let r=1+e();return R7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function SU(t){let e=Th(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=Th(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,f)=>f.set.size-c.set.size);let i=t(),s=i%3;i=i/3|0;let o=!!(i&1);i>>=1;let a=i==1,l=i==2;return{branches:n,valid:s,fe0f:o,save:a,check:l}}}function AU(){return pU(S7("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}const P0=AU(),kU=new Set(Th(P0)),RU=new Set(Th(P0)),PU=bU(P0),TU=SU(P0),d6=45,h6=95;function P7(t){return aU(t)}function _U(t){return t.filter(e=>e!=65039)}function T7(t){for(let e of t.split(".")){let r=P7(e);try{for(let n=r.lastIndexOf(h6)-1;n>=0;n--)if(r[n]!==h6)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===d6&&r[3]===d6)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function MU(t){return T7(IU(t,_U))}function IU(t,e){let r=P7(t).reverse(),n=[];for(;r.length;){let i=$U(r);if(i){n.push(...e(i));continue}let s=r.pop();if(kU.has(s)){n.push(s);continue}if(RU.has(s))continue;let o=PU[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return T7(NU(String.fromCodePoint(...n)))}function NU(t){return t.normalize("NFC")}function $U(t,e){var r;let n=TU,i,s,o=[],a=t.length;for(e&&(e.length=0);a;){let l=t[--a];if(n=(r=n.branches.find(c=>c.set.has(l)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)s=l;else if(n.check&&l===s)break;o.push(l),n.fe0f&&(o.push(65039),a>0&&t[a-1]==65039&&a--),n.valid&&(i=o.slice(),n.valid==2&&i.splice(1,1),e&&e.push(...t.slice(a).reverse()),t.length=a)}return i}const DU=new V(C7),_7=new Uint8Array(32);_7.fill(0);function v6(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function M7(t){const e=Zt(MU(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(v6(e.slice(n))),r}function Nd(t){typeof t!="string"&&DU.throwArgumentError("invalid ENS name; not a string","name",t);let e=_7;const r=M7(t);for(;r.length;)e=bt(Kt([e,bt(r.pop())]));return le(e)}function OU(t){return le(Kt(M7(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const LU=`Ethereum Signed Message: -`;function BU(t){return typeof t=="string"&&(t=Zt(t)),bt(Kt([Zt(LU),Zt(String(t.length)),t]))}var FU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Mt=new V(C7),I7=new Uint8Array(32);I7.fill(0);const jU=oe.from(-1),N7=oe.from(0),$7=oe.from(1),zU=oe.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function UU(t){const e=ae(t),r=e.length%32;return r?qr([e,I7.slice(r)]):le(e)}const VU=Et($7.toHexString(),32),qU=Et(N7.toHexString(),32),y6={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},tv=["name","version","chainId","verifyingContract","salt"];function p6(t){return function(e){return typeof e!="string"&&Mt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const HU={name:p6("name"),version:p6("version"),chainId:function(t){try{return oe.from(t).toString()}catch{}return Mt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ot(t).toLowerCase()}catch{}return Mt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ae(t);if(e.length!==32)throw new Error("bad length");return le(e)}catch{}return Mt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function rv(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&Mt.throwArgumentError("invalid numeric width","type",t);const i=zU.mask(r?n-1:n),s=r?i.add($7).mul(jU):N7;return function(o){const a=oe.from(o);return(a.lt(s)||a.gt(i))&&Mt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),Et(a.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&Mt.throwArgumentError("invalid bytes width","type",t),function(n){return ae(n).length!==r&&Mt.throwArgumentError(`invalid length for ${t}`,"value",n),UU(n)}}}switch(t){case"address":return function(e){return Et(Ot(e),32)};case"bool":return function(e){return e?VU:qU};case"bytes":return function(e){return bt(e)};case"string":return function(e){return Do(e)}}return null}function m6(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Or{constructor(e){Z(this,"types",Object.freeze(ea(e))),Z(this,"_encoderCache",{}),Z(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(a=>{r[a]={},n[a]=[],i[a]={}});for(const a in e){const l={};e[a].forEach(c=>{l[c.name]&&Mt.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(a)}`,"types",e),l[c.name]=!0;const f=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];f===a&&Mt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!rv(f)&&(n[f]||Mt.throwArgumentError(`unknown type ${JSON.stringify(f)}`,"types",e),n[f].push(a),r[a][f]=!0)})}const s=Object.keys(n).filter(a=>n[a].length===0);s.length===0?Mt.throwArgumentError("missing primary type","types",e):s.length>1&&Mt.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),Z(this,"primaryType",s[0]);function o(a,l){l[a]&&Mt.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),l[a]=!0,Object.keys(r[a]).forEach(c=>{n[c]&&(o(c,l),Object.keys(l).forEach(f=>{i[f][c]=!0}))}),delete l[a]}o(this.primaryType,{});for(const a in i){const l=Object.keys(i[a]);l.sort(),this._types[a]=m6(a,e[a])+l.map(c=>m6(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=rv(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],s=this.getEncoder(i),o=parseInt(r[3]);return a=>{o>=0&&a.length!==o&&Mt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(bt)),bt(qr(l))}}const n=this.types[e];if(n){const i=Do(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?bt(c):c});return o.unshift(i),qr(o)}}return Mt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Mt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return bt(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(rv(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const o=i[1],a=parseInt(i[3]);return a>=0&&r.length!==a&&Mt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(o,l,n))}const s=this.types[e];return s?s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{}):Mt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Or(e)}static getPrimaryType(e){return Or.from(e).primaryType}static hashStruct(e,r,n){return Or.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=y6[n];i||Mt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>tv.indexOf(n.name)-tv.indexOf(i.name)),Or.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return qr(["0x1901",Or.hashDomain(e),Or.from(r).hash(n)])}static hash(e,r,n){return bt(Or.encode(e,r,n))}static resolveNames(e,r,n,i){return FU(this,void 0,void 0,function*(){e=ar(e);const s={};e.verifyingContract&&!We(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Or.from(r);o.visit(n,(a,l)=>(a==="address"&&!We(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=yield i(a);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:e,value:n}})}static getPayload(e,r,n){Or.hashDomain(e);const i={},s=[];tv.forEach(l=>{const c=e[l];c!=null&&(i[l]=HU[l](c),s.push({name:l,type:y6[l]}))});const o=Or.from(r),a=ar(r);return a.EIP712Domain?Mt.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return le(ae(c));if(l.match(/^u?int/))return oe.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Mt.throwArgumentError("invalid string","value",c),c}return Mt.throwArgumentError("unsupported type","type",l)})}}}const Tt=new V(mu);class GU extends da{}class WU extends da{}class KU extends da{}class dp extends da{static isIndexed(e){return!!(e&&e._isIndexed)}}const YU={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function g6(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class x6{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,Z(this,"fragments",r.map(n=>os.from(n)).filter(n=>n!=null)),Z(this,"_abiCoder",Ii(new.target,"getAbiCoder")()),Z(this,"functions",{}),Z(this,"errors",{}),Z(this,"events",{}),Z(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){Tt.warn("duplicate definition - constructor");return}Z(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=n.format();if(i[s]){Tt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||Z(this,"deploy",Si.from({payable:!1,type:"constructor"})),Z(this,"_isInterface",!0)}format(e){e||(e=Qe.full),e===Qe.sighash&&Tt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Qe.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return dU}static getAddress(e){return Ot(e)}static getSighash(e){return ir(Do(e.format()),0,4)}static getEventTopic(e){return Do(e.format())}getFunction(e){if(We(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Tt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===n);return i.length===0?Tt.throwArgumentError("no matching function","name",n):i.length>1&&Tt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Ai.fromString(e).format()];return r||Tt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(We(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Tt.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===n);return i.length===0?Tt.throwArgumentError("no matching event","name",n):i.length>1&&Tt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[rs.fromString(e).format()];return r||Tt.throwArgumentError("no matching event","signature",e),r}getError(e){if(We(e)){const n=Ii(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Tt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===n);return i.length===0?Tt.throwArgumentError("no matching error","name",n):i.length>1&&Tt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Ai.fromString(e).format()];return r||Tt.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return Ii(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ii(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Tt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ae(r);return le(n.slice(0,4))!==this.getSighash(e)&&Tt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",le(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(Kt([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ae(r),i=null,s="",o=null,a=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=le(n.slice(0,4)),f=YU[c];if(f)o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,l=f.signature,f.reason&&(i=o[0]),a==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:a==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const u=this.getError(c);o=this._abiCoder.decode(u.inputs,n.slice(4)),a=u.name,l=u.format()}catch{}break}}return Tt.throwError("call revert exception"+s,V.errors.CALL_EXCEPTION,{method:e.format(),data:le(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),le(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Tt.throwError("too many arguments for "+e.format(),V.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(s,o)=>s.type==="string"?Do(o):s.type==="bytes"?bt(le(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=oe.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),Et(le(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Tt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?Tt.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],s=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&Tt.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push(Do(l));else if(o.type==="bytes")n.push(bt(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:this._abiCoder.encode(i,s),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let d=this.getEventTopic(e);(!We(n[0],32)||n[0].toLowerCase()!==d)&&Tt.throwError("fragment/topic mismatch",V.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(ur.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,Kt(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new dp({_isIndexed:!0,hash:null});else if(o[v])c[v]=new dp({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(m){c[v]=m}else try{c[v]=l[f++]}catch(m){c[v]=m}if(d.name&&c[d.name]==null){const m=c[v];m instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw g6(`property ${JSON.stringify(d.name)}`,m)}}):c[d.name]=m}});for(let d=0;d{throw g6(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new WU({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:oe.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new GU({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=le(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new KU({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const QU="abstract-provider/5.7.0";var JU=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const XU=new V(QU);class ZU extends da{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class xu{constructor(){XU.checkAbstract(new.target,xu),Z(this,"_isProvider",!0)}getFeeData(){return JU(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield qt({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null,s=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,s=oe.from("1500000000"),i=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:s,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const eV="abstract-signer/5.7.0";var Un=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const gn=new V(eV),tV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],rV=[V.errors.INSUFFICIENT_FUNDS,V.errors.NONCE_EXPIRED,V.errors.REPLACEMENT_UNDERPRICED];class Ll{constructor(){gn.checkAbstract(new.target,Ll),Z(this,"_isSigner",!0)}getBalance(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Un(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield qt(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return Un(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield qt(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return Un(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Un(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Un(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)tV.indexOf(n)===-1&&gn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ar(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&gn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return Un(this,void 0,void 0,function*(){const r=yield qt(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>Un(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&gn.throwArgumentError("provided ENS name resolves to null","tx.to",i),s})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?gn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&gn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const s=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=s,r.maxPriorityFeePerGas=s}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&gn.throwError("network does not support EIP-1559",V.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):gn.throwError("failed to get consistent fee data",V.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(rV.indexOf(i.code)>=0)throw i;return gn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&gn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield qt(r)})}_checkProvider(e){this.provider||gn.throwError("missing provider",V.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class wg extends Ll{constructor(e,r){super(),Z(this,"address",e),Z(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{gn.throwError(e,V.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new wg(this.address,e)}}var D7={},Fe={},bu=O7;function O7(t,e){if(!t)throw new Error(e||"Assertion failed")}O7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var hp={exports:{}};typeof Object.create=="function"?hp.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:hp.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var nV=hp.exports,iV=bu,sV=nV;Fe.inherits=sV;function oV(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function aV(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=s&63|128):oV(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Fe.htonl=L7;function cV(t,e){for(var r="",n=0;n>>0}return s}Fe.join32=fV;function uV(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}Fe.split32=uV;function dV(t,e){return t>>>e|t<<32-e}Fe.rotr32=dV;function hV(t,e){return t<>>32-e}Fe.rotl32=hV;function vV(t,e){return t+e>>>0}Fe.sum32=vV;function yV(t,e,r){return t+e+r>>>0}Fe.sum32_3=yV;function pV(t,e,r,n){return t+e+r+n>>>0}Fe.sum32_4=pV;function mV(t,e,r,n,i){return t+e+r+n+i>>>0}Fe.sum32_5=mV;function gV(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}Fe.sum64=gV;function xV(t,e,r,n){var i=e+n>>>0,s=(i>>0}Fe.sum64_hi=xV;function bV(t,e,r,n){var i=e+n;return i>>>0}Fe.sum64_lo=bV;function wV(t,e,r,n,i,s,o,a){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}Fe.sum64_4_hi=wV;function EV(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}Fe.sum64_4_lo=EV;function CV(t,e,r,n,i,s,o,a,l,c){var f=0,u=e;u=u+n>>>0,f+=u>>0,f+=u>>0,f+=u>>0,f+=u>>0}Fe.sum64_5_hi=CV;function SV(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}Fe.sum64_5_lo=SV;function AV(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}Fe.rotr64_hi=AV;function kV(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.rotr64_lo=kV;function RV(t,e,r){return t>>>r}Fe.shr64_hi=RV;function PV(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Fe.shr64_lo=PV;var Bl={},b6=Fe,TV=bu;function T0(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Bl.BlockHash=T0;T0.prototype.update=function(e,r){if(e=b6.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=b6.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o>>3}qi.g0_256=$V;function DV(t){return Li(t,17)^Li(t,19)^t>>>10}qi.g1_256=DV;var wl=Fe,OV=Bl,LV=qi,nv=wl.rotl32,vc=wl.sum32,BV=wl.sum32_5,FV=LV.ft_1,V7=OV.BlockHash,jV=[1518500249,1859775393,2400959708,3395469782];function ji(){if(!(this instanceof ji))return new ji;V7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}wl.inherits(ji,V7);var zV=ji;ji.blockSize=512;ji.outSize=160;ji.hmacStrength=80;ji.padLength=64;ji.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),Pq(e.length<=this.blockSize);for(var r=e.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}return l}r.toArray=n;function i(o){return o.length===1?"0"+o:o}r.zero2=i;function s(o){for(var a="",l=0;l(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[m]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var m=l.andln(3)+u&3,y=c.andln(3)+d&3;m===3&&(m=-1),y===3&&(y=-1);var w;m&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-m:w=m):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&m===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),l.iushrn(1),c.iushrn(1)}return f}r.getJSF=i;function s(l,c,f){var u="_"+c;l.prototype[c]=function(){return this[u]!==void 0?this[u]:this[u]=f.call(this)}}r.cachedProperty=s;function o(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=o;function a(l){return new Pe(l,"hex","le")}r.intFromLE=a}),_h=yn.getNAF,Mq=yn.getJSF,Mh=yn.assert;function go(t,e){this.type=t,this.p=new Pe(e.p,16),this.red=e.prime?Pe.red(e.prime):Pe.mont(this.p),this.zero=new Pe(0).toRed(this.red),this.one=new Pe(1).toRed(this.red),this.two=new Pe(2).toRed(this.red),this.n=e.n&&new Pe(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var ha=go;go.prototype.point=function(){throw new Error("Not implemented")};go.prototype.validate=function(){throw new Error("Not implemented")};go.prototype._fixedNafMul=function(e,r){Mh(e.precomputed);var n=e._getDoubles(),i=_h(r,1,this._bitLength),s=(1<=a;c--)l=(l<<1)+i[c];o.push(l)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(a=0;a=0;l--){for(var c=0;l>=0&&o[l]===0;l--)c++;if(l>=0&&c++,a=a.dblp(c),l<0)break;var f=o[l];Mh(f!==0),e.type==="affine"?f>0?a=a.mixedAdd(s[f-1>>1]):a=a.mixedAdd(s[-f-1>>1].neg()):f>0?a=a.add(s[f-1>>1]):a=a.add(s[-f-1>>1].neg())}return e.type==="affine"?a.toP():a};go.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var m=f-1,y=f;if(o[m]!==1||o[y]!==1){l[m]=_h(n[m],o[m],this._bitLength),l[y]=_h(n[y],o[y],this._bitLength),c=Math.max(l[m].length,c),c=Math.max(l[y].length,c);continue}var w=[r[m],null,null,r[y]];r[m].y.cmp(r[y].y)===0?(w[1]=r[m].add(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg())):r[m].y.cmp(r[y].y.redNeg())===0?(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].add(r[y].neg())):(w[1]=r[m].toJ().mixedAdd(r[y]),w[2]=r[m].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=Mq(n[m],n[y]);for(c=Math.max(b[0].length,c),l[m]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var $=0;f>=0;){var O=!0;for(u=0;u=0&&$++,_=_.dblp($),f<0)break;for(u=0;u0?d=a[u][H-1>>1]:H<0&&(d=a[u][-H-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};In.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,s=0;s=0&&(v=c,m=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),m=m.neg()),[{a:u,b:d},{a:v,b:m}]};Nn.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=s.mul(n.a),l=o.mul(i.a),c=s.mul(n.b),f=o.mul(i.b),u=e.sub(a).sub(l),d=c.add(f).neg();return{k1:u,k2:d}};Nn.prototype.pointFromX=function(e,r){e=new Pe(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)};Nn.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(s).cmpn(0)===0};Nn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};hr.prototype.isInfinity=function(){return this.inf};hr.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};hr.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),s=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};hr.prototype.getX=function(){return this.x.fromRed()};hr.prototype.getY=function(){return this.y.fromRed()};hr.prototype.mul=function(e){return e=new Pe(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};hr.prototype.mulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};hr.prototype.jmulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};hr.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};hr.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(s){return s.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};hr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function wr(t,e,r,n){ha.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Pe(0)):(this.x=new Pe(e,16),this.y=new Pe(r,16),this.z=new Pe(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Cg(wr,ha.BasePoint);Nn.prototype.jpoint=function(e,r,n){return new wr(this,e,r,n)};wr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};wr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};wr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=i.redSub(s),c=o.redSub(a);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),u=f.redMul(l),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),m=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,m,y)};wr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=n.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),u=n.redMul(c),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),m=this.z.redMul(a);return this.curve.jpoint(d,v,m)};wr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(s),this.x.cmp(n)===0)return!0}};wr.prototype.inspect=function(){return this.isInfinity()?"":""};wr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var $d=zl(function(t,e){var r=e;r.base=ha,r.short=Nq,r.mont=null,r.edwards=null}),Dd=zl(function(t,e){var r=e,n=yn.assert;function i(a){a.type==="short"?this.curve=new $d.short(a):a.type==="edwards"?this.curve=new $d.edwards(a):this.curve=new $d.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function s(a,l){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:c}),c}})}s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:rn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:rn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:rn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:rn.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:rn.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:rn.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:rn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:rn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function oo(t){if(!(this instanceof oo))return new oo(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Zn.toArray(t.entropy,t.entropyEnc||"hex"),r=Zn.toArray(t.nonce,t.nonceEnc||"hex"),n=Zn.toArray(t.pers,t.persEnc||"hex");Eg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var t9=oo;oo.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};oo.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Zn.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var $q=yn.assert;function _0(t,e){if(t instanceof _0)return t;this._importDER(t,e)||($q(t.r&&t.s,"Signature without r or s"),this.r=new Pe(t.r,16),this.s=new Pe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var M0=_0;function Dq(){this.place=0}function ov(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return i<=127?!1:(e.place=o,i)}function S6(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}_0.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=S6(r),n=S6(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];av(i,r.length),i=i.concat(r),i.push(2),av(i,n.length);var s=i.concat(n),o=[48];return av(o,s.length),o=o.concat(s),yn.encode(o,e)};var Oq=function(){throw new Error("unsupported")},r9=yn.assert;function _n(t){if(!(this instanceof _n))return new _n(t);typeof t=="string"&&(r9(Object.prototype.hasOwnProperty.call(Dd,t),"Unknown curve "+t),t=Dd[t]),t instanceof Dd.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Lq=_n;_n.prototype.keyPair=function(e){return new Sg(this,e)};_n.prototype.keyFromPrivate=function(e,r){return Sg.fromPrivate(this,e,r)};_n.prototype.keyFromPublic=function(e,r){return Sg.fromPublic(this,e,r)};_n.prototype.genKeyPair=function(e){e||(e={});for(var r=new t9({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Oq(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Pe(2));;){var s=new Pe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};_n.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};_n.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Pe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new t9({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Pe(1)),f=0;;f++){var u=i.k?i.k(f):new Pe(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),m=v.umod(this.n);if(m.cmpn(0)!==0){var y=u.invm(this.n).mul(m.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(m)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new M0({r:m,s:y,recoveryParam:w})}}}}}};_n.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Pe(e,16)),n=this.keyFromPublic(n,i),r=new M0(r,"hex");var s=r.r,o=r.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),c=a.mul(s).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.eqXToP(s)):(f=this.g.mulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.getX().umod(this.n).cmp(s)===0)};_n.prototype.recoverPubKey=function(t,e,r,n){r9((3&r)===r,"The recovery param is more than two bits"),e=new M0(e,n);var i=this.n,s=new Pe(t),o=e.r,a=e.s,l=r&1,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var f=e.r.invm(i),u=i.sub(s).mul(f).umod(i),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};_n.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new M0(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Bq=zl(function(t,e){var r=e;r.version="6.5.4",r.utils=yn,r.rand=function(){throw new Error("unsupported")},r.curve=$d,r.curves=Dd,r.ec=Lq,r.eddsa=null}),Fq=Bq.ec;const jq="signing-key/5.7.0",mp=new V(jq);let lv=null;function wi(){return lv||(lv=new Fq("secp256k1")),lv}class sl{constructor(e){Z(this,"curve","secp256k1"),Z(this,"privateKey",le(e)),Zo(this.privateKey)!==32&&mp.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=wi().keyFromPrivate(ae(this.privateKey));Z(this,"publicKey","0x"+r.getPublic(!1,"hex")),Z(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Z(this,"_isSigningKey",!0)}_addPoint(e){const r=wi().keyFromPublic(ae(this.publicKey)),n=wi().keyFromPublic(ae(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=wi().keyFromPrivate(ae(this.privateKey)),n=ae(e);n.length!==32&&mp.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Ol({recoveryParam:i.recoveryParam,r:Et("0x"+i.r.toString(16),32),s:Et("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=wi().keyFromPrivate(ae(this.privateKey)),n=wi().keyFromPublic(ae(n9(e)));return Et("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function zq(t,e){const r=Ol(e),n={r:ae(r.r),s:ae(r.s)};return"0x"+wi().recoverPubKey(ae(t),n,r.recoveryParam).encode("hex",!1)}function n9(t,e){const r=ae(t);if(r.length===32){const n=new sl(r);return e?"0x"+wi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?le(r):"0x"+wi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+wi().keyFromPublic(r).getPublic(!0,"hex"):le(r)}return mp.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Uq="transactions/5.7.0",Rr=new V(Uq);var A6;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(A6||(A6={}));function Ag(t){return t==="0x"?null:Ot(t)}function kr(t){return t==="0x"?x7:oe.from(t)}const Vq=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],qq={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Uo(t){const e=n9(t);return Ot(ir(bt(ir(e,1)),12))}function i9(t,e){return Uo(zq(ae(t),e))}function sn(t,e){const r=us(oe.from(t).toHexString());return r.length>32&&Rr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function cv(t,e){return{address:Ot(t),storageKeys:(e||[]).map((r,n)=>(Zo(r)!==32&&Rr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Ul(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Rr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),cv(r[0],r[1])):cv(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return cv(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function s9(t){return Ul(t).map(e=>[e.address,e.storageKeys])}function o9(t,e){if(t.gasPrice!=null){const n=oe.from(t.gasPrice),i=oe.from(t.maxFeePerGas||0);n.eq(i)||Rr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),sn(t.maxFeePerGas||0,"maxFeePerGas"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",s9(t.accessList||[])];if(e){const n=Ol(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(us(n.r)),r.push(us(n.s))}return qr(["0x02",bl(r)])}function a9(t,e){const r=[sn(t.chainId||0,"chainId"),sn(t.nonce||0,"nonce"),sn(t.gasPrice||0,"gasPrice"),sn(t.gasLimit||0,"gasLimit"),t.to!=null?Ot(t.to):"0x",sn(t.value||0,"value"),t.data||"0x",s9(t.accessList||[])];if(e){const n=Ol(e);r.push(sn(n.recoveryParam,"recoveryParam")),r.push(us(n.r)),r.push(us(n.s))}return qr(["0x01",bl(r)])}function Hq(t,e){o7(t,qq);const r=[];Vq.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ae(le(a,l)),o.length&&a.length!==o.length&&a.length>0&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=us(a),a.length>o.maxLength&&Rr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(le(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Rr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!R0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(le(n)),r.push("0x"),r.push("0x")),!e)return bl(r);const i=Ol(e);let s=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),s+=n*2+8,i.v>28&&i.v!==s&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(le(s)),r.push(us(ae(i.r))),r.push(us(ae(i.s))),bl(r)}function k6(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Rr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),Hq(t,e);switch(t.type){case 1:return a9(t,e);case 2:return o9(t,e)}return Rr.throwError(`unsupported transaction type: ${t.type}`,V.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function l9(t,e,r){try{const n=kr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Rr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Et(e[1],32),t.s=Et(e[2],32);try{const n=bt(r(t));t.from=i9(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function Gq(t){const e=xg(t.slice(1));e.length!==9&&e.length!==12&&Rr.throwArgumentError("invalid component count for transaction type: 2","payload",le(t));const r=kr(e[2]),n=kr(e[3]),i={type:2,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:kr(e[4]),to:Ag(e[5]),value:kr(e[6]),data:e[7],accessList:Ul(e[8])};return e.length===9||(i.hash=bt(t),l9(i,e.slice(9),o9)),i}function Wq(t){const e=xg(t.slice(1));e.length!==8&&e.length!==11&&Rr.throwArgumentError("invalid component count for transaction type: 1","payload",le(t));const r={type:1,chainId:kr(e[0]).toNumber(),nonce:kr(e[1]).toNumber(),gasPrice:kr(e[2]),gasLimit:kr(e[3]),to:Ag(e[4]),value:kr(e[5]),data:e[6],accessList:Ul(e[7])};return e.length===8||(r.hash=bt(t),l9(r,e.slice(8),a9)),r}function Kq(t){const e=xg(t);e.length!==9&&e.length!==6&&Rr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:kr(e[0]).toNumber(),gasPrice:kr(e[1]),gasLimit:kr(e[2]),to:Ag(e[3]),value:kr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=oe.from(e[6]).toNumber()}catch{return r}if(r.r=Et(e[7],32),r.s=Et(e[8],32),oe.from(r.r).isZero()&&oe.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(le(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=bt(bl(i));try{r.from=i9(s,{r:le(r.r),s:le(r.s),recoveryParam:n})}catch{}r.hash=bt(t)}return r.type=null,r}function Yq(t){const e=ae(t);if(e[0]>127)return Kq(e);switch(e[0]){case 1:return Wq(e);case 2:return Gq(e)}return Rr.throwError(`unsupported transaction type: ${e[0]}`,V.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const Qq="contracts/5.7.0";var na=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Ht=new V(Qq);function Ih(t,e){return na(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&Ht.throwArgumentError("invalid address or ENS name","name",r);try{return Ot(r)}catch{}t||Ht.throwError("a provider or signer is needed to resolve ENS names",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&Ht.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Od(t,e,r){return na(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Od(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Ih(t,e):r.type==="tuple"?yield Od(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Od(t,n,r.arrayChildren))):Promise.reject(Ht.makeError("invalid value for array",V.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function I0(t,e,r){return na(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=ar(r.pop())),Ht.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=qt({override:Ih(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>na(this,void 0,void 0,function*(){return Ot(c.signer)!==c.override&&Ht.throwError("Contract with a Signer cannot override from",V.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Ih(t.provider,n.from));const i=yield qt({args:Od(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:qt(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=oe.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=oe.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=oe.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=oe.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=oe.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Ul(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ae(s);for(let u=0;un[c]!=null);return l.length&&Ht.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,V.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function Jq(t,e){return function(...r){return I0(t,e,r)}}function Xq(t,e){const r=t.signer||t.provider;return function(...n){return na(this,void 0,void 0,function*(){r||Ht.throwError("estimate require a provider or signer",V.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield I0(t,e,n);return yield r.estimateGas(i)})}}function Zq(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=ea(s),a=null;try{a=t.interface.parseLog(s)}catch{}return a&&(o.args=a.args,o.decode=(l,c)=>t.interface.decodeEventLog(a.eventFragment,l,c),o.event=a.name,o.eventSignature=a.signature),o.removeListener=()=>t.provider,o.getBlock=()=>t.provider.getBlock(i.blockHash),o.getTransaction=()=>t.provider.getTransaction(i.transactionHash),o.getTransactionReceipt=()=>Promise.resolve(i),o}),i))}function c9(t,e,r){const n=t.signer||t.provider;return function(...i){return na(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=ar(i.pop());l.blockTag!=null&&(s=yield l.blockTag),delete l.blockTag,i.push(l)}t.deployTransaction!=null&&(yield t._deployed(s));const o=yield I0(t,e,i),a=yield n.call(o,s);try{let l=t.interface.decodeFunctionResult(e,a);return r&&e.outputs.length===1&&(l=l[0]),l}catch(l){throw l.code===V.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function eH(t,e){return function(...r){return na(this,void 0,void 0,function*(){t.signer||Ht.throwError("sending a transaction requires a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield I0(t,e,r),i=yield t.signer.sendTransaction(n);return Zq(t,i),i})}}function R6(t,e,r){return e.constant?c9(t,e,r):eH(t,e)}function f9(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class Wf{constructor(e,r){Z(this,"tag",e),Z(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class tH extends Wf{constructor(){super("error",null)}}class P6 extends Wf{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&Ht.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(f9(s),s),Z(this,"address",e),Z(this,"interface",r),Z(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=Dz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class T6 extends Wf{constructor(e,r){super("*",{address:e}),Z(this,"address",e),Z(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class rH{constructor(e,r,n){Z(this,"interface",Ii(new.target,"getInterface")(r)),n==null?(Z(this,"provider",null),Z(this,"signer",null)):Ll.isSigner(n)?(Z(this,"provider",n.provider||null),Z(this,"signer",n)):xu.isProvider(n)?(Z(this,"provider",n),Z(this,"signer",null)):Ht.throwArgumentError("invalid signer or provider","signerOrProvider",n),Z(this,"callStatic",{}),Z(this,"estimateGas",{}),Z(this,"functions",{}),Z(this,"populateTransaction",{}),Z(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];Z(this.filters,a,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(l,c)})),o[l.name]||(o[l.name]=[]),o[l.name].push(a)}),Object.keys(o).forEach(a=>{const l=o[a];l.length===1?Z(this.filters,a,this.filters[l[0]]):Ht.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(Z(this,"_runningEvents",{}),Z(this,"_wrappedEmits",{}),e==null&&Ht.throwArgumentError("invalid contract address or ENS name","addressOrName",e),Z(this,"address",e),this.provider)Z(this,"resolvedAddress",Ih(this.provider,e));else try{Z(this,"resolvedAddress",Promise.resolve(Ot(e)))}catch{Ht.throwError("provider is required to use ENS name as contract address",V.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(o=>{});const i={},s={};Object.keys(this.interface.functions).forEach(o=>{const a=this.interface.functions[o];if(s[o]){Ht.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`);return}s[o]=!0;{const l=a.name;i[`%${l}`]||(i[`%${l}`]=[]),i[`%${l}`].push(o)}this[o]==null&&Z(this,o,R6(this,a,!0)),this.functions[o]==null&&Z(this.functions,o,R6(this,a,!1)),this.callStatic[o]==null&&Z(this.callStatic,o,c9(this,a,!0)),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,Jq(this,a)),this.estimateGas[o]==null&&Z(this.estimateGas,o,Xq(this,a))}),Object.keys(i).forEach(o=>{const a=i[o];if(a.length>1)return;o=o.substring(1);const l=a[0];try{this[o]==null&&Z(this,o,this[l])}catch{}this.functions[o]==null&&Z(this.functions,o,this.functions[l]),this.callStatic[o]==null&&Z(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&Z(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&Z(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return v7(e)}static getInterface(e){return x6.isInterface(e)?e:new x6(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(r=>(r==="0x"&&Ht.throwError("contract not deployed",V.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Ht.throwError("sending a transactions require a signer",V.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=ar(e||{});return["from","to"].forEach(function(n){r[n]!=null&&Ht.throwError("cannot override "+n,V.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new wg(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Z(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return dp.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new tH);if(e==="event")return this._normalizeRunningEvent(new Wf("event",null));if(e==="*")return this._normalizeRunningEvent(new T6(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new P6(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new P6(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Wf(f9(r),r))}return this._normalizeRunningEvent(new T6(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=ea(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||Ht.throwError("events require a provider or a signer with a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=s=>{let o=this._wrapEvent(e,s,r);if(o.decodeError==null)try{const a=e.getEmit(o);this.emit(e.filter,...a)}catch(a){o.decodeError=a.error}e.filter!=null&&this.emit("event",o),o.decodeError!=null&&this.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),s=ar(i.filter);return typeof r=="string"&&We(r,32)?(n!=null&&Ht.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=r):(s.fromBlock=r??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(o=>o.map(a=>this._wrapEvent(i,a,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class nH extends rH{}class u9{constructor(e){Z(this,"alphabet",e),Z(this,"base",e.length),Z(this,"_alphabetMap",{}),Z(this,"_leader",e.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let i="";for(let s=0;r[s]===0&&s=0;--s)i+=this.alphabet[n[s]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;s>0;)r.push(s&255),s>>=8}for(let n=0;e[n]===this._leader&&n>24&255,l[e.length+1]=u>>16&255,l[e.length+2]=u>>8&255,l[e.length+3]=u&255;let d=ae(Nh(i,t,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y=256)throw new Error("Depth too large!");return M6(Kt([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",le(this.depth),this.parentFingerprint,Et(le(this.index),4),this.chainCode,this.privateKey!=null?Kt(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new bn(ga,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~pc));const n=new Uint8Array(37);if(e&pc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ae(this.privateKey),1),r&&(r+="'")}else n.set(ae(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ae(Nh(Yf.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=ad(oe.from(s).add(this.privateKey).mod(dH)):l=new sl(le(s))._addPoint(this.publicKey);let c=r;const f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new bn(ga,a,l,this.fingerprint,ad(o),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=pc)throw new Error("invalid path index - "+s);n=n._derive(pc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=pc)throw new Error("invalid path index - "+s);n=n._derive(o)}else throw new Error("invalid path component - "+s)}return n}static _fromSeed(e,r){const n=ae(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ae(Nh(Yf.sha512,hH,n));return new bn(ga,ad(i.slice(0,32)),null,"0x00000000",ad(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Rg(n),e=Pg(v9(e,n),n),bn._fromSeed(yH(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return bn._fromSeed(e,null)}static fromExtendedKey(e){const r=Kf.decode(e);(r.length!==82||M6(r.slice(0,78))!==e)&&$h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=le(r.slice(5,9)),s=parseInt(le(r.slice(9,13)).substring(2),16),o=le(r.slice(13,45)),a=r.slice(45,78);switch(le(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new bn(ga,null,le(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new bn(ga,le(a.slice(1)),null,i,o,s,n,null)}return $h.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function yH(t,e){e||(e="");const r=Zt("mnemonic"+e,so.NFKD);return kg(Zt(t,so.NFKD),r,2048,64,"sha512")}function v9(t,e){e=Rg(e),$h.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ae(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const s=32*r.length/3,o=r.length/3,a=h9(o);if((ae(ia(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return le(n.slice(0,s/8))}function Pg(t,e){if(e=Rg(e),t=ae(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&vH(8-n)),n+=3);const i=t.length/4,s=ae(ia(t))[0]&h9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const pH="random/5.7.0",xp=new V(pH);function mH(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const I6=mH();let Ld=I6.crypto||I6.msCrypto;(!Ld||!Ld.getRandomValues)&&(xp.warn("WARNING: Missing strong random number source"),Ld={getRandomValues:function(t){return xp.throwError("no secure random source avaialble",V.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function qc(t){(t<=0||t>1024||t%1||t!=t)&&xp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return Ld.getRandomValues(e),ae(e)}var y9={exports:{}};(function(t,e){(function(r){function n(k){return parseInt(k)===k}function i(k){if(!n(k.length))return!1;for(var p=0;p255)return!1;return!0}function s(k,p){if(k.buffer&&ArrayBuffer.isView(k)&&k.name==="Uint8Array")return p&&(k.slice?k=k.slice():k=Array.prototype.slice.call(k)),k;if(Array.isArray(k)){if(!i(k))throw new Error("Array contains invalid value: "+k);return new Uint8Array(k)}if(n(k.length)&&i(k))return new Uint8Array(k);throw new Error("unsupported array-like object")}function o(k){return new Uint8Array(k)}function a(k,p,P,B,E){(B!=null||E!=null)&&(k.slice?k=k.slice(B,E):k=Array.prototype.slice.call(k,B,E)),p.set(k,P)}var l=function(){function k(P){var B=[],E=0;for(P=encodeURI(P);E191&&F<224?(B.push(String.fromCharCode((F&31)<<6|P[E+1]&63)),E+=2):(B.push(String.fromCharCode((F&15)<<12|(P[E+1]&63)<<6|P[E+2]&63)),E+=3)}return B.join("")}return{toBytes:k,fromBytes:p}}(),c=function(){function k(B){for(var E=[],F=0;F>4]+p[j&15])}return E.join("")}return{toBytes:k,fromBytes:P}}(),f={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],v=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],y=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],w=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],x=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],S=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],D=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],$=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Y(k){for(var p=[],P=0;P>2,this._Ke[F][p%4]=E[p],this._Kd[k-F][p%4]=E[p];for(var j=0,z=B,W;z>16&255]<<24^d[W>>8&255]<<16^d[W&255]<<8^d[W>>24&255]^u[j]<<24,j+=1,B!=8)for(var p=1;p>8&255]<<8^d[W>>16&255]<<16^d[W>>24&255]<<24;for(var p=B/2+1;p>2,X=z%4,this._Ke[ne][X]=E[p],this._Kd[k-ne][X]=E[p++],z++}for(var ne=1;ne>24&255]^$[W>>16&255]^O[W>>8&255]^H[W&255]},Q.prototype.encrypt=function(k){if(k.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var p=this._Ke.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Ke[0][E];for(var F=1;F>24&255]^y[B[(E+1)%4]>>16&255]^w[B[(E+2)%4]>>8&255]^x[B[(E+3)%4]&255]^this._Ke[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Ke[p][E],j[4*E]=(d[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(d[B[(E+1)%4]>>16&255]^z>>16)&255,j[4*E+2]=(d[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(d[B[(E+3)%4]&255]^z)&255;return j},Q.prototype.decrypt=function(k){if(k.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var p=this._Kd.length-1,P=[0,0,0,0],B=Y(k),E=0;E<4;E++)B[E]^=this._Kd[0][E];for(var F=1;F>24&255]^S[B[(E+3)%4]>>16&255]^A[B[(E+2)%4]>>8&255]^_[B[(E+1)%4]&255]^this._Kd[F][E];B=P.slice()}for(var j=o(16),z,E=0;E<4;E++)z=this._Kd[p][E],j[4*E]=(v[B[E]>>24&255]^z>>24)&255,j[4*E+1]=(v[B[(E+3)%4]>>16&255]^z>>16)&255,j[4*E+2]=(v[B[(E+2)%4]>>8&255]^z>>8)&255,j[4*E+3]=(v[B[(E+1)%4]&255]^z)&255;return j};var re=function(k){if(!(this instanceof re))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(k)};re.prototype.encrypt=function(k){if(k=s(k),k.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var p=o(k.length),P=o(16),B=0;B=0;--p)this._counter[p]=k%256,k=k>>8},R.prototype.setBytes=function(k){if(k=s(k,!0),k.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=k},R.prototype.increment=function(){for(var k=15;k>=0;k--)if(this._counter[k]===255)this._counter[k]=0;else{this._counter[k]++;break}};var M=function(k,p){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",p instanceof R||(p=new R(p)),this._counter=p,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(k)};M.prototype.encrypt=function(k){for(var p=s(k,!0),P=0;P16)throw new Error("PKCS#7 padding byte out of range");for(var P=k.length-p,B=0;B=64;){let L=x,k=b,p=S,P=A,B=_,E=D,F=$,j=O,z,W,ne,X,ee;for(W=0;W<16;W++)ne=T+W*4,H[W]=(M[ne]&255)<<24|(M[ne+1]&255)<<16|(M[ne+2]&255)<<8|M[ne+3]&255;for(W=16;W<64;W++)z=H[W-2],X=(z>>>17|z<<32-17)^(z>>>19|z<<32-19)^z>>>10,z=H[W-15],ee=(z>>>7|z<<32-7)^(z>>>18|z<<32-18)^z>>>3,H[W]=(X+H[W-7]|0)+(ee+H[W-16]|0)|0;for(W=0;W<64;W++)X=(((B>>>6|B<<32-6)^(B>>>11|B<<32-11)^(B>>>25|B<<32-25))+(B&E^~B&F)|0)+(j+(w[W]+H[W]|0)|0)|0,ee=((L>>>2|L<<32-2)^(L>>>13|L<<32-13)^(L>>>22|L<<32-22))+(L&k^L&p^k&p)|0,j=F,F=E,E=B,B=P+X|0,P=p,p=k,k=L,L=X+ee|0;x=x+L|0,b=b+k|0,S=S+p|0,A=A+P|0,_=_+B|0,D=D+E|0,$=$+F|0,O=O+j|0,T+=64,N-=64}}Y(y);let Q,re=y.length%64,I=y.length/536870912|0,h=y.length<<3,C=re<56?56:120,R=y.slice(y.length-re,y.length);for(R.push(128),Q=re+1;Q>>24&255),R.push(I>>>16&255),R.push(I>>>8&255),R.push(I>>>0&255),R.push(h>>>24&255),R.push(h>>>16&255),R.push(h>>>8&255),R.push(h>>>0&255),Y(R),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,$>>>24&255,$>>>16&255,$>>>8&255,$>>>0&255,O>>>24&255,O>>>16&255,O>>>8&255,O>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,S=new Array(b),A=new Array(64);let _,D=[];for(_=0;_<64;_++)S[_]=54;for(_=0;_=b-4;O--){if(S[O]++,S[O]<=255)return;S[O]=0}}for(;x>=32;)$(),D=D.concat(i(A.concat(i(S)))),x-=32;return x>0&&($(),D=D.concat(i(A.concat(i(S))).slice(0,x))),D}function o(y,w,x,b,S){let A;for(f(y,(2*x-1)*16,S,0,16),A=0;A<2*x;A++)c(y,A*16,S,16),l(S,b),f(S,0,y,w+A*16,16);for(A=0;A>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let S=0;S=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,S,A,_){if(x=d(x,"N"),b=d(b,"r"),S=d(S,"p"),A=d(A,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/S)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let D=s(y,w,S*128*b);const $=new Uint32Array(S*32*b);for(let B=0;B<$.length;B++){const E=B*4;$[B]=(D[E+3]&255)<<24|(D[E+2]&255)<<16|(D[E+1]&255)<<8|(D[E+0]&255)<<0}const O=new Uint32Array(64*b),H=new Uint32Array(32*b*x),Y=32*b,Q=new Uint32Array(16),re=new Uint32Array(16),I=S*x*2;let h=0,C=null,R=!1,M=0,T=0,N,L;const k=_?parseInt(1e3/b):4294967295,p=typeof setImmediate<"u"?setImmediate:setTimeout,P=function(){if(R)return _(new Error("cancelled"),h/I);let B;switch(M){case 0:L=T*32*b,f($,L,O,0,Y),M=1,N=0;case 1:B=x-N,B>k&&(B=k);for(let F=0;Fk&&(B=k);for(let F=0;F>0&255),D.push($[F]>>8&255),D.push($[F]>>16&255),D.push($[F]>>24&255);const E=s(y,D,A);return _&&_(null,1,E),E}_&&p(P)};if(!_)for(;;){const B=P();if(B!=null)return B}P()}const m={scrypt:function(y,w,x,b,S,A,_){return new Promise(function(D,$){let O=0;_&&_(0),v(y,w,x,b,S,A,function(H,Y,Q){if(H)$(H);else if(Q)_&&O!==1&&_(1),D(new Uint8Array(Q));else if(_&&Y!==O)return O=Y,_(Y)})})},syncScrypt:function(y,w,x,b,S,A){return new Uint8Array(v(y,w,x,b,S,A))}};t.exports=m})()})(b9);var EH=b9.exports;const _g=bs(EH);var CH=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const bp=new V(p9);function N6(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class SH extends da{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function AH(t,e,r){if(Gt(t,"crypto/cipher")==="aes-128-ctr"){const i=Vo(Gt(t,"crypto/cipherparams/iv")),s=new Ni.Counter(i),o=new Ni.ModeOfOperation.ctr(e,s);return ae(o.decrypt(r))}return null}function w9(t,e){const r=Vo(Gt(t,"crypto/ciphertext"));if(le(bt(Kt([e.slice(16,32),r]))).substring(2)!==Gt(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=AH(t,e.slice(0,16),r);i||bp.throwError("unsupported cipher",V.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=Uo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ot(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:le(i)};if(Gt(t,"x-ethers/version")==="0.1"){const l=Vo(Gt(t,"x-ethers/mnemonicCiphertext")),c=Vo(Gt(t,"x-ethers/mnemonicCounter")),f=new Ni.Counter(c),u=new Ni.ModeOfOperation.ctr(s,f),d=Gt(t,"x-ethers/path")||Qf,v=Gt(t,"x-ethers/locale")||"en",m=ae(u.decrypt(l));try{const y=Pg(m,v),w=bn.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==V.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new SH(a)}function E9(t,e,r,n,i){return ae(kg(t,e,r,n,i))}function kH(t,e,r,n,i){return Promise.resolve(E9(t,e,r,n,i))}function C9(t,e,r,n,i){const s=Tg(e),o=Gt(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return bp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Vo(Gt(t,"crypto/kdfparams/salt")),c=parseInt(Gt(t,"crypto/kdfparams/n")),f=parseInt(Gt(t,"crypto/kdfparams/r")),u=parseInt(Gt(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(Gt(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=Vo(Gt(t,"crypto/kdfparams/salt"));let c=null;const f=Gt(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(Gt(t,"crypto/kdfparams/c")),d=parseInt(Gt(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return bp.throwArgumentError("unsupported key-derivation function","kdf",o)}function RH(t,e){const r=JSON.parse(t),n=C9(r,e,E9,_g.syncScrypt);return w9(r,n)}function PH(t,e,r){return CH(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield C9(n,e,kH,_g.scrypt,r);return w9(n,i)})}function TH(t,e,r,n){try{if(Ot(t.address)!==Uo(t.privateKey))throw new Error("address/privateKey mismatch");if(N6(t)){const w=t.mnemonic;if(bn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Qf).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=ae(t.privateKey),s=Tg(e);let o=null,a=null,l=null;if(N6(t)){const w=t.mnemonic;o=ae(v9(w.phrase,w.locale||"en")),a=w.path||Qf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ae(r.salt):f=qc(32);let u=null;if(r.iv){if(u=ae(r.iv),u.length!==16)throw new Error("invalid iv")}else u=qc(16);let d=null;if(r.uuid){if(d=ae(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=qc(16);let v=1<<17,m=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),_g.scrypt(s,f,v,m,y,64,n).then(w=>{w=ae(w);const x=w.slice(0,16),b=w.slice(16,32),S=w.slice(32,64),A=new Ni.Counter(u),_=new Ni.ModeOfOperation.ctr(x,A),D=ae(_.encrypt(i)),$=bt(Kt([b,D])),O={address:t.address.substring(2).toLowerCase(),id:xH(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:le(u).substring(2)},ciphertext:le(D).substring(2),kdf:"scrypt",kdfparams:{salt:le(f).substring(2),n:v,dklen:32,p:y,r:m},mac:$.substring(2)}};if(o){const H=qc(16),Y=new Ni.Counter(H),Q=new Ni.ModeOfOperation.ctr(S,Y),re=ae(Q.encrypt(o)),I=new Date,h=I.getUTCFullYear()+"-"+mc(I.getUTCMonth()+1,2)+"-"+mc(I.getUTCDate(),2)+"T"+mc(I.getUTCHours(),2)+"-"+mc(I.getUTCMinutes(),2)+"-"+mc(I.getUTCSeconds(),2)+".0Z";O["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+O.address,mnemonicCounter:le(H).substring(2),mnemonicCiphertext:le(re).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(O)})}function _H(t,e,r){if(g9(t)){r&&r(0);const n=m9(t,e);return r&&r(1),Promise.resolve(n)}return x9(t)?PH(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function MH(t,e){if(g9(t))return m9(t,e);if(x9(t))return RH(t,e);throw new Error("invalid JSON wallet")}const IH="wallet/5.7.0";var $6=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const xa=new V(IH);function NH(t){return t!=null&&We(t.privateKey,32)&&t.address!=null}function $H(t){const e=t.mnemonic;return e&&e.phrase}class Xn extends Ll{constructor(e,r){if(super(),NH(e)){const n=new sl(e.privateKey);if(Z(this,"_signingKey",()=>n),Z(this,"address",Uo(this.publicKey)),this.address!==Ot(e.address)&&xa.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),$H(e)){const i=e.mnemonic;Z(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Qf,locale:i.locale||"en"}));const s=this.mnemonic,o=bn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);Uo(o.privateKey)!==this.address&&xa.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else Z(this,"_mnemonic",()=>null)}else{if(sl.isSigningKey(e))e.curve!=="secp256k1"&&xa.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),Z(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new sl(e);Z(this,"_signingKey",()=>n)}Z(this,"_mnemonic",()=>null),Z(this,"address",Uo(this.publicKey))}r&&!xu.isProvider(r)&&xa.throwArgumentError("invalid provider","provider",r),Z(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Xn(this,e)}signTransaction(e){return qt(e).then(r=>{r.from!=null&&(Ot(r.from)!==this.address&&xa.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(bt(k6(r)));return k6(r,n)})}signMessage(e){return $6(this,void 0,void 0,function*(){return e6(this._signingKey().signDigest(BU(e)))})}_signTypedData(e,r,n){return $6(this,void 0,void 0,function*(){const i=yield Or.resolveNames(e,r,n,s=>(this.provider==null&&xa.throwError("cannot resolve ENS names without a provider",V.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return e6(this._signingKey().signDigest(Or.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),TH(this,e,r,n)}static createRandom(e){let r=qc(16);e||(e={}),e.extraEntropy&&(r=ae(ir(bt(Kt([r,e.extraEntropy])),0,16)));const n=Pg(r,e.locale);return Xn.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return _H(e,r,n).then(i=>new Xn(i))}static fromEncryptedJsonSync(e,r){return new Xn(MH(e,r))}static fromMnemonic(e,r,n){return r||(r=Qf),new Xn(bn.fromMnemonic(e,null,n).derivePath(r))}}const DH="networks/5.7.1",D6=new V(DH);function OH(t){return t&&typeof t.renetwork=="function"}function ts(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const s=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(t,n.pocket);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const s=["ropsten"],o=new r.AnkrProvider(t,n.ankr);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let s=1;return n.quorum!=null?s=n.quorum:t==="homestead"&&(s=2),new r.FallbackProvider(i,s)}return i[0]};return e.renetwork=function(r){return ts(r)},e}function Dh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return Dh(t,n)},r}const O6={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ts("homestead")},L6={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ts("ropsten")},B6={chainId:63,name:"classicMordor",_defaultProvider:Dh("https://www.ethercluster.com/mordor","classicMordor")},ld={unspecified:{chainId:0,name:"unspecified"},homestead:O6,mainnet:O6,morden:{chainId:2,name:"morden"},ropsten:L6,testnet:L6,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ts("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ts("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ts("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ts("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Dh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:B6,classicTestnet:B6,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Dh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ts("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ts("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function LH(t){if(t==null)return null;if(typeof t=="number"){for(const n in ld){const i=ld[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=ld[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=ld[t.name];if(!e)return typeof t.chainId!="number"&&D6.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&D6.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(OH(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}const BH="web/5.7.1";var FH=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};function jH(t,e){return FH(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),e.fetchOptions!=null){const o=e.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(t,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((o,a)=>{s[a.toLowerCase()]=o}):n.headers.keys().forEach(o=>{s[o.toLowerCase()]=n.headers.get(o)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:ae(new Uint8Array(i))}})}var zH=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Hn=new V(BH);function F6(t){return new Promise(e=>{setTimeout(e,t)})}function Ps(t,e){if(t==null)return null;if(typeof t=="string")return t;if(R0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return gu(t)}catch{}return le(t)}return t}function UH(t){return Zt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function VH(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;Hn.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,s=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;Hn.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);const o=typeof t=="object"?!!t.errorPassThrough:!1,a={};let l=null;const c={method:"GET"};let f=!1,u=2*60*1e3;if(typeof t=="string")l=t;else if(typeof t=="object"){if((t==null||t.url==null)&&Hn.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const x in t.headers)a[x.toLowerCase()]={key:x,value:String(t.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&Hn.throwError("basic authentication requires a secure https url",V.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+A7(Zt(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=ar(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?S7(v[3]):UH(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){Hn.throwError("processing response error",V.errors.SERVER_ERROR,{body:Ps(v[1],v[2]),error:x,requestBody:null,requestMethod:"GET",url:l})}e&&(c.method="POST",c.body=e,a["content-type"]==null&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),a["content-length"]==null&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const m={};Object.keys(a).forEach(x=>{const b=a[x];m[b.key]=b.value}),c.headers=m;const y=function(){let x=null;return{promise:new Promise(function(A,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(Hn.makeError("timeout",V.errors.TIMEOUT,{requestBody:Ps(c.body,m["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return zH(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),Hn.throwError("bad response",V.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:Ps(S,b.headers?b.headers["content-type"]:null),requestBody:Ps(c.body,m["content-type"]),requestMethod:c.method,url:l})),r)try{const A=yield r(S,b);return y.cancel(),A}catch(A){if(A.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(gu(s))}catch(l){Hn.throwError("invalid JSON",V.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=Zt(e);const s=typeof t=="string"?{url:t}:ar(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=ar(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return VH(t,i,n)}function Hc(t,e){return e||(e={}),e=ar(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,s=!1;const o=()=>s?!1:(s=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(new Error("timeout"))},e.timeout));const a=e.retryLimit;let l=0;function c(){return t().then(function(f){if(f!==void 0)o()&&r(f);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!s){if(l++,l>a){o()&&n(new Error("retry limit reached"));return}let u=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));ue.ceiling&&(u=e.ceiling),setTimeout(c,u)}return null},function(f){o()&&n(f)})}c()})}var Oh="qpzry9x8gf2tvdw0s3jn54khce6mua7l",wp={};for(var cd=0;cd>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function S9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=ol(e)^n>>5}for(e=ol(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=S9(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",s=0;s>5)throw new Error("Non 5-bit word");n=ol(n)^o,i+=Oh.charAt(o)}for(s=0;s<6;++s)n=ol(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Oh.charAt(a)}return i}function A9(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var s=t.slice(0,i),o=t.slice(i+1);if(o.length<6)return"Data too short";var a=S9(s);if(typeof a=="string")return a;for(var l=[],c=0;c=o.length)&&l.push(u)}return a!==1?"Invalid checksum for "+t:{prefix:s,words:l}}function HH(){var t=A9.apply(null,arguments);if(typeof t=="object")return t}function GH(t){var e=A9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function N0(t,e,r,n){for(var i=0,s=0,o=(1<=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<=e)return"Excess padding";if(i<this.data(u,!0);return e.transaction={hash:o,type:c,accessList:ge.allowNull(this.accessList.bind(this),null),blockHash:ge.allowNull(o,null),blockNumber:ge.allowNull(l,null),transactionIndex:ge.allowNull(l,null),confirmations:ge.allowNull(l,null),from:r,gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),gasLimit:n,to:ge.allowNull(r,null),value:n,nonce:l,data:s,r:ge.allowNull(this.uint256),s:ge.allowNull(this.uint256),v:ge.allowNull(l),creates:ge.allowNull(r,null),raw:ge.allowNull(s)},e.transactionRequest={from:ge.allowNull(r),nonce:ge.allowNull(l),gasLimit:ge.allowNull(n),gasPrice:ge.allowNull(n),maxPriorityFeePerGas:ge.allowNull(n),maxFeePerGas:ge.allowNull(n),to:ge.allowNull(r),value:ge.allowNull(n),data:ge.allowNull(f),type:ge.allowNull(l),accessList:ge.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:ge.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:ge.allowNull(this.address,null),from:ge.allowNull(this.address,null),contractAddress:ge.allowNull(r,null),transactionIndex:l,root:ge.allowNull(a),gasUsed:n,logsBloom:ge.allowNull(s),blockHash:o,transactionHash:o,logs:ge.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:ge.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:ge.allowNull(n),status:ge.allowNull(l),type:c},e.block={hash:ge.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:ge.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:ge.allowNull(r),extraData:s,transactions:ge.allowNull(ge.arrayOf(o)),baseFeePerGas:ge.allowNull(n)},e.blockWithTransactions=ar(e.block),e.blockWithTransactions.transactions=ge.allowNull(ge.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:ge.allowNull(i,void 0),toBlock:ge.allowNull(i,void 0),blockHash:ge.allowNull(o,void 0),address:ge.allowNull(r,void 0),topics:ge.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:ge.allowNull(l),blockHash:ge.allowNull(o),transactionIndex:l,removed:ge.allowNull(this.boolean.bind(this)),address:r,data:ge.allowFalsish(s,"0x"),topics:ge.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Ul(e||[])}number(e){return e==="0x"?0:oe.from(e).toNumber()}type(e){return e==="0x"||e==null?0:oe.from(e).toNumber()}bigNumber(e){return oe.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),We(e))?e.toLowerCase():gc.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return Ot(e)}callAddress(e){if(!We(e,32))return null;const r=Ot(ir(e,12));return r===g7?null:r}contractAddress(e){return v7(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||We(e))return pg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return Zo(n)!==32?gc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=oe.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!We(e))throw new Error("invalid uint256");return Et(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=ge.check(r,e);return i._difficulty=n==null?null:oe.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return ge.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&oe.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const r=ge.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;We(n)&&(n=oe.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),We(n)&&(n=oe.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return Yq(e)}receiptLog(e){return ge.check(this.formats.receiptLog,e)}receipt(e){const r=ge.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=oe.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&gc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):gc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&gc.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return ge.check(this.formats.filter,e)}filterLog(e){return ge.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const s=e[i](r[i]);s!==void 0&&(n[i]=s)}catch(s){throw s.checkKey=i,s.checkValue=r[i],s}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}var Re=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Ne=new V(Ig),XH=10;function z6(t){return t==null?"null":(Zo(t)!==32&&Ne.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function U6(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[z6(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return z6(e)}).join("&")}function ZH(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function ba(t){if(typeof t=="string"){if(t=t.toLowerCase(),Zo(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+U6(t);if(ZU.isForkEvent(t))throw Ne.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+U6(t.topics||[])}throw new Error("invalid event - "+t)}function xc(){return new Date().getTime()}function V6(t){return new Promise(e=>{setTimeout(e,t)})}const eG=["block","network","pending","poll"];let tG=class{constructor(e,r,n){Z(this,"tag",e),Z(this,"listener",r),Z(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const r=e[1],n=ZH(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||eG.indexOf(this.tag)>=0}};const rG={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function uv(t){return Et(oe.from(t).toHexString(),32)}function q6(t){return Kf.encode(Kt([t,ir(ia(ia(t)),0,4)]))}const k9=new RegExp("^(ipfs)://(.*)$","i"),H6=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),k9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Bd(t,e){try{return gu(Jf(t,e))}catch{}return null}function Jf(t,e){if(t==="0x")return null;const r=oe.from(ir(t,e,e+32)).toNumber(),n=oe.from(ir(t,r,r+32)).toNumber();return ir(t,r+32,r+32+n)}function dv(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Ne.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function G6(t){const e=ae(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function nG(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function R9(t){const e=[];let r=0;for(let n=0;noe.from(e).eq(1)).catch(e=>{if(e.code===V.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return Re(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:qr([e,Nd(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=qr(["0x9061b923",R9([OU(this.name),n.data])]));try{let s=yield this.provider.call(n);return ae(s).length%32===4&&Ne.throwError("resolver threw error",V.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Jf(s,0)),s}catch(s){if(s.code===V.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Re(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Jf(n,0):null})}_getAddress(e,r){const n=rG[String(e)];if(n==null&&Ne.throwError(`unsupported coin type: ${e}`,V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ae(r);if(n.p2pkh!=null){const s=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return q6(Kt([[n.p2pkh],"0x"+s[2]]))}}if(n.p2sh!=null){const s=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return q6(Kt([[n.p2sh],"0x"+s[2]]))}}if(n.prefix!=null){const s=i[1];let o=i[0];if(o===0?s!==20&&s!==32&&(o=-1):o=-1,o>=0&&i.length===2+s&&s>=1&&s<=75){const a=j6.toWords(i.slice(2));return a.unshift(o),j6.encode(n.prefix,a)}}return null}getAddress(e){return Re(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===eU?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===V.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",uv(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Ne.throwError("invalid or unsupported coin data",V.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Re(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;no[l])}return Ne.throwError("invalid or unsupported content hash data",V.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Re(this,void 0,void 0,function*(){let r=Zt(e);r=Kt([uv(64),uv(r.length),r]),r.length%32!==0&&(r=Kt([r,Et("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",le(r));return n==null||n==="0x"?null:gu(n)})}}let hv=null,iG=1;class sG extends xu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),Z(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=Ii(new.target,"getNetwork")(e);r?(Z(this,"_network",r),this.emit("network",r,null)):Ne.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Re(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||Ne.throwError("no network detected",V.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:Z(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return Hc(()=>this._ready().then(e=>e,e=>{if(!(e.code===V.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return hv==null&&(hv=new ge),hv}static getNetwork(e){return LH(e??"homestead")}ccipReadFetch(e,r,n){return Re(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a=0?null:JSON.stringify({data:s,sender:i}),u=yield Mg({url:c,errorPassThrough:!0},f,(v,m)=>(v.status=m.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Ne.throwError(`response not found during CCIP fetch: ${d}`,V.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Ne.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,V.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Re(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const s=yield i;if(xc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=xc(),n=qt({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:s})=>{if(s)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),s;const o=xc();return i=oe.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Re(this,void 0,void 0,function*(){const e=iG++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Ne.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Ne.makeError("network block skew detected",V.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const s=this._emitted[i];s!=="pending"&&n-s>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const s=i.hash;let o=this.getTransactionReceipt(s).then(a=>(!a||a.blockNumber==null||(this._emitted["t:"+s]=a.blockNumber,this.emit(s,a)),null)).catch(a=>{this.emit("error",a)});r.push(o);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const s=i.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=n;const o=s.toBlock-this._maxFilterBlockRange;o>s.fromBlock&&(s.fromBlock=o),s.fromBlock<0&&(s.fromBlock=0);const a=this.getLogs(s).then(l=>{i._inflight=!1,l.length!==0&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(s,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});r.push(a)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Re(this,void 0,void 0,function*(){return Ne.throwError("provider does not support network detection",V.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Re(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,e),yield V6(0),this._network;const n=Ne.makeError("underlying network changed",V.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=xc();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return Re(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Re(this,void 0,void 0,function*(){const s=yield this.getTransactionReceipt(e);return(s?s.confirmations:0)>=r?s:new Promise((o,a)=>{const l=[];let c=!1;const f=function(){return c?!0:(c=!0,l.forEach(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(e,u)}),i){let d=i.startBlock,v=null;const m=y=>Re(this,void 0,void 0,function*(){c||(yield V6(1e3),this.getTransactionCount(i.from).then(w=>Re(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(e);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{c||this.once("block",m)}))});if(c)return;this.once("block",m),l.push(()=>{this.removeListener("block",m)})}if(typeof n=="number"&&n>0){const d=setTimeout(()=>{f()||a(Ne.makeError("timeout exceeded",V.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Re(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return oe.from(e)}catch(r){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return oe.from(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return oe.from(i).toNumber()}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return le(i)}catch(s){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield qt({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>pg(o))}),s=yield this.perform("getStorageAt",i);try{return le(s)}catch(o){return Ne.throwError("bad result from backend",V.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&Zo(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Ne.throwError("Transaction hash mismatch from Provider.sendTransaction.",V.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Re(this,void 0,void 0,function*(){s==null&&(s=1),o==null&&(o=0);let a;s!==0&&n!=null&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const l=yield this._waitForTransaction(e.hash,s,o,a);return l==null&&s===0?null:(this._emitted["t:"+e.hash]=l.blockNumber,l.status===0&&Ne.throwError("transaction failed",V.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>le(s)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const s=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,s,i)}catch(s){throw s.transaction=n,s.transactionHash=n.hash,s}})}_getTransactionRequest(e){return Re(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?this._getAddress(s):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?oe.from(s):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?le(s):null))}),this.formatter.transactionRequest(yield qt(n))})}_getFilter(e){return Re(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield qt(r))})}_call(e,r,n){return Re(this,void 0,void 0,function*(){n>=XH&&Ne.throwError("CCIP read exceeded maximum redirections",V.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,s=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&Zo(s)%32===4)try{const o=ir(s,4),a=ir(o,0,32);oe.from(a).eq(i)||Ne.throwError("CCIP Read sender did not match",V.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=oe.from(ir(o,32,64)).toNumber(),f=oe.from(ir(o,c,c+32)).toNumber(),u=ir(o,c+32);for(let x=0;xRe(this,void 0,void 0,function*(){const s=yield this.perform("getBlock",i);if(s==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let l=0;lthis._wrapTransaction(l)),a}return this.formatter.block(s)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Hc(()=>Re(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Hc(()=>Re(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return i}),{oncePoll:this})})}getLogs(e){return Re(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield qt({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),ge.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Re(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Re(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Ne.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return Re(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new W6(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Re(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Ne.throwError("network does not support ENS",V.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+Nd(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Re(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(We(e))throw n}typeof e!="string"&&Ne.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Re(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=Bd(yield this.call({to:n,data:"0x691f3431"+Nd(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Re(this,void 0,void 0,function*(){let r=null;if(We(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new W6(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a}try{const a=Bd(yield this.call({to:o,data:"0x691f3431"+Nd(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==V.errors.CALL_EXCEPTION)throw a;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return Ne.throwError(e+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new tG(ba(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],s=ba(e);return this._events=this._events.filter(o=>o.tag!==s?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(i.push(o),!1):!0)),i.forEach(o=>{this._stopEvent(o)}),n}listenerCount(e){if(!e)return this._events.length;let r=ba(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=ba(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,s=ba(e);return this._events=this._events.filter(o=>o.tag!==s||o.listener!=r||i?!0:(i=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=ba(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var Zi=globalThis&&globalThis.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Jt=new V(Ig),oG=["call","estimateGas"];function hf(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=We(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=hf(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return hf(JSON.parse(t),e)}catch{}return null}function P9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=hf(e,!0);if(s)return s.data;Jt.throwError("missing revert data in call exception; Transaction reverted without a reason string",V.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=hf(e.body,!1);s==null&&(s=hf(e,!1)),s&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===V.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Jt.throwError("insufficient funds for intrinsic transaction cost",V.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&Jt.throwError("nonce has already been used",V.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Jt.throwError("replacement fee too low",V.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&Jt.throwError("legacy pre-eip-155 transactions not supported",V.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),oG.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Jt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",V.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function K6(t){return new Promise(function(e){setTimeout(e,t)})}function aG(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function bc(t){return t&&t.toLowerCase()}const Ep={};class T9 extends Ll{constructor(e,r,n){if(super(),e!==Ep)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");Z(this,"provider",r),n==null&&(n=0),typeof n=="string"?(Z(this,"_address",this.provider.formatter.address(n)),Z(this,"_index",null)):typeof n=="number"?(Z(this,"_index",n),Z(this,"_address",null)):Jt.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return Jt.throwError("cannot alter JSON-RPC Signer connection",V.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new lG(Ep,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&Jt.throwError("unknown account #"+this._index,V.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ar(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ar(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Zi(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&Jt.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),qt({tx:qt(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&Jt.throwArgumentError("from address mismatch","transaction",e):n.from=i;const s=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(o=>o,o=>(typeof o.message=="string"&&o.message.match(/user denied/i)&&Jt.throwError("user rejected transaction",V.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),P9("sendTransaction",o,s)))})}signTransaction(e){return Jt.throwError("signing transactions is unsupported",V.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Zi(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield Hc(()=>Zi(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return Zi(this,void 0,void 0,function*(){const r=typeof e=="string"?Zt(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[le(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Zi(this,void 0,void 0,function*(){const r=typeof e=="string"?Zt(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),le(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Zi(this,void 0,void 0,function*(){const i=yield Or.resolveNames(e,r,n,o=>this.provider.resolveName(o)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(Or.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&Jt.throwError("user rejected signing",V.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return Zi(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class lG extends T9{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const cG={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let fG=class extends sG{constructor(e,r){let n=r;n==null&&(n=new Promise((i,s)=>{setTimeout(()=>{this.detectNetwork().then(o=>{i(o)},o=>{s(o)})},0)})),super(n),e||(e=Ii(this.constructor,"defaultUrl")()),typeof e=="string"?Z(this,"connection",Object.freeze({url:e})):Z(this,"connection",Object.freeze(ar(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return Zi(this,void 0,void 0,function*(){yield K6(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=Ii(this.constructor,"getNetwork");try{return r(oe.from(e).toNumber())}catch(n){return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return Jt.throwError("could not detect network",V.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new T9(Ep,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:ea(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Mg(this.connection,JSON.stringify(n),aG).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return i&&(this._cache[e]=s,setTimeout(()=>{this._cache[e]=null},0)),s}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[bc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[bc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[bc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[bc(r.address),Et(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[Ii(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Ii(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=bc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Zi(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&oe.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=ar(r),r.transaction=ar(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&Jt.throwError(e+" not implemented",V.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return P9(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(s){if(e._pendingFilter!=r)return null;let o=Promise.resolve();return s.forEach(function(a){e._emitted["t:"+a.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(a).then(function(l){return e.emit("pending",l),null})})}),o.then(function(){return K6(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(s=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=ar(cG);if(r)for(const s in r)r[s]&&(n[s]=!0);o7(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=pg(oe.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=le(e[s]))}),e.accessList&&(i.accessList=Ul(e.accessList)),i}};const uG="units/5.7.0",dG=new V(uG),_9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function M9(t,e){if(typeof e=="string"){const r=_9.indexOf(e);r!==-1&&(e=3*r)}return Md(t,e??18)}function Ng(t,e){if(typeof t!="string"&&dG.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=_9.indexOf(e);r!==-1&&(e=3*r)}return mi(t,e??18)}function hG(t){return M9(t,18)}function vG(t){return Ng(t,18)}function Cp(){return Cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(pG(t,!0,e),t),gG=t=>mG(xG(t)),xG=t=>{if(!t)return[];const e=t.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},$g=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=e[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",bG=t=>$g("https://${network}-indexer.sequence.app",{network:t}),wG=t=>$g("https://${network}-relayer.sequence.app",{network:t}),EG=t=>$g("https://nodes.sequence.app/${network}",{network:t}),er=t=>{const e=EG(t);return{rpcUrl:e,relayer:{url:wG(t),provider:{url:e}},indexerUrl:bG(t)}};gG([_t({},Ut[ue.POLYGON],er("polygon"),{isDefaultChain:!0,isAuthChain:!0}),_t({},Ut[ue.MAINNET],er("mainnet")),_t({},Ut[ue.BSC],er("bsc")),_t({},Ut[ue.AVALANCHE],er("avalanche")),_t({},Ut[ue.ARBITRUM],er("arbitrum")),_t({},Ut[ue.ARBITRUM_NOVA],er("arbitrum-nova")),_t({},Ut[ue.OPTIMISM],er("optimism")),_t({},Ut[ue.POLYGON_ZKEVM],er("polygon-zkevm")),_t({},Ut[ue.GNOSIS],er("gnosis")),_t({},Ut[ue.RINKEBY],er("rinkeby"),{disabled:!0}),_t({},Ut[ue.GOERLI],er("goerli")),_t({},Ut[ue.SEPOLIA],er("sepolia")),_t({},Ut[ue.POLYGON_MUMBAI],er("mumbai")),_t({},Ut[ue.BSC_TESTNET],er("bsc-testnet")),_t({},Ut[ue.ARBITRUM_GOERLI],er("arbitrum-goerli")),_t({},Ut[ue.BASE],er("base")),_t({},Ut[ue.BASE_GOERLI],er("base-goerli")),_t({},Ut[ue.HOMEVERSE_TESTNET],er("homeverse-testnet")),_t({},Ut[ue.AVALANCHE_TESTNET],er("avalanche-testnet")),_t({},Ut[ue.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),_t({},Ut[ue.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]);const Y6=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function vv(){const e=gp.en,r=Y6[Math.floor(Math.random()*Y6.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function CG({onSuccess:t}){const[e,r]=g.useState(""),[n,i]=g.useState(),[s,o]=g.useState(!1),[a,l]=g.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await Pt.email.initiateAuth({email:u});l(d),r(u)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const{idToken:d}=await Pt.email.finalizeAuth({instance:a,answer:u,email:e});t(d)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function SG(){var w;const[t,e]=g.useState(""),r=g.useRef(null),n=(w=r.current)==null?void 0:w.validity.valid,[i,s]=g.useState(!1),[o,a]=g.useState([]),[l,c]=g.useState(!1),{inProgress:f,loading:u,initiateAuth:d,sendChallengeAnswer:v}=CG({onSuccess:async x=>{c(!0);const b=await Pt.signIn({idToken:x},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")}});g.useEffect(()=>{(async()=>await Pt.isSignedIn()&&Lo.navigate("/"))()},[]);const m=async x=>{const b=await Pt.signIn({idToken:x.credential},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")},y=async x=>{const b=await Pt.signIn({idToken:x.authorization.id_token},vv());console.log(`Wallet address: ${b}`),Lo.navigate("/")};return U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"16",children:U.jsx(XA,{})}),U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),v?U.jsxs(ie,{flexDirection:"column",children:[U.jsx(ie,{marginTop:"6",children:U.jsx(Le,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),U.jsx(ie,{marginTop:"4",children:U.jsx(JA,{value:o,digits:6,onChange:a})}),U.jsx(ie,{gap:"2",marginY:"4",children:u||l?U.jsx(ms,{}):U.jsx(Yr,{variant:"primary",disabled:o.includes(""),label:"Verify",onClick:()=>v(o.join("")),"data-id":"verifyButton"})})]}):U.jsxs(ie,{marginTop:"5",marginBottom:"4",children:[U.jsxs(Le,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",U.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),U.jsxs(ie,{marginTop:"6",children:[U.jsx(gr,{name:"email",type:"email",onChange:x=>{e(x.target.value)},ref:r,onKeyDown:x=>{t&&x.key==="Enter"&&d(t)},onBlur:()=>s(!!t&&!n),value:t,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),i&&U.jsx(Le,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:u?U.jsx(ms,{}):U.jsx(Yr,{variant:"primary",disabled:!n,label:"Continue",onClick:()=>d(t),"data-id":"continueButton"})})]}),U.jsx("hr",{}),!f&&U.jsxs(U.Fragment,{children:[U.jsx(ie,{children:U.jsx(Le,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),U.jsx(Gj,{onSuccess:m,shape:"circle",width:230}),{}.VITE_APPLE_CLIENT_ID&&U.jsx(hz,{authOptions:{clientId:{}.VITE_APPLE_CLIENT_ID,scope:"openid email",redirectURI:"https://"+window.location.host,usePopup:!0},onError:x=>console.error(x),onSuccess:y,uiType:"dark"})]})]})}function AG(t){var e="";return r(t),e;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)e+=JSON.stringify(i);else if(Array.isArray(i)){e+="[";var s=!1;i.forEach(function(a){s&&(e+=","),s=!0,a===void 0&&(a=null),r(a)}),e+="]"}else{e+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),e+="}"}}function n(i,s,o){o>0&&(e+=","),e+=JSON.stringify(s),e+=":",r(i[s])}}const Dg=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},Og=t=>({httpHandler:t.httpHandler()});var Q6;(function(t){t.HEADER="header",t.QUERY="query"})(Q6||(Q6={}));var J6;(function(t){t.HEADER="header",t.QUERY="query"})(J6||(J6={}));var Xf;(function(t){t.HTTP="http",t.HTTPS="https"})(Xf||(Xf={}));var Lh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Lh||(Lh={}));var X6;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(X6||(X6={}));const ao="__smithy_context";var Z6;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(Z6||(Z6={}));var e4;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(e4||(e4={}));class Mn{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const e=new Mn({...this,headers:{...this.headers}});return e.query&&(e.query=kG(e.query)),e}}function kG(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Bh{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const RG=t=>e=>async r=>{if(!Mn.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},PG={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Lg=t=>({applyToStack:e=>{e.add(RG(t),PG)}}),TG=()=>(t,e)=>async r=>{var n,i;try{const s=await t(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??e.inputFilterSensitiveLog,v=u??e.outputFilterSensitiveLog,{$metadata:m,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:m}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f}=c,u=f??e.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},_G={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Bg=t=>({applyToStack:e=>{e.add(TG(),_G)}}),t4="X-Amzn-Trace-Id",MG="AWS_LAMBDA_FUNCTION_NAME",IG="_X_AMZN_TRACE_ID",NG=t=>e=>async r=>{const{request:n}=r;if(!Mn.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(t4))return e(r);const i=process.env[MG],s=process.env[IG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[t4]=s),e({...r,request:n})},$G={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Fg=t=>({applyToStack:e=>{e.add(NG(t),$G)}});class jg extends Error{constructor(e,r=!0){super(e),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,jg.prototype)}static from(e,r=!0){return Object.assign(new this(e.message,r),e)}}class Vl extends jg{constructor(e,r=!0){super(e,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Vl.prototype)}}const I9=(t,e,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=t());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return e===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(e(n)&&await a(),n))};var yv={};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Sp=function(t,e){return Sp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Sp(t,e)};function DG(t,e){Sp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Ap=function(){return Ap=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function BG(t,e){return function(r,n){e(r,n,t)}}function FG(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function jG(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function zG(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N9(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function qG(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(m){u(s[0][3],m)}}function l(d){d.value instanceof Zf?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function WG(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:Zf(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function KG(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof kp=="function"?kp(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function YG(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function QG(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function JG(t){return t&&t.__esModule?t:{default:t}}function XG(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function ZG(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const eW=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Ap},__asyncDelegator:WG,__asyncGenerator:GG,__asyncValues:KG,__await:Zf,__awaiter:jG,__classPrivateFieldGet:XG,__classPrivateFieldSet:ZG,__createBinding:UG,__decorate:LG,__exportStar:VG,__extends:DG,__generator:zG,__importDefault:JG,__importStar:QG,__makeTemplateObject:YG,__metadata:FG,__param:BG,__read:N9,__rest:OG,__spread:qG,__spreadArrays:HG,__values:kp},Symbol.toStringTag,{value:"Module"})),xo=jh(eW);var pv={},wc={};const tW=t=>{const e=[];for(let r=0,n=t.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else e.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(e)},rW=t=>{let e="";for(let r=0,n=t.length;ra.toString(16)).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((i&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return e};function nW(t){return new TextEncoder().encode(t)}function iW(t){return new TextDecoder("utf-8").decode(t)}const sW=t=>typeof TextEncoder=="function"?nW(t):tW(t),oW=t=>typeof TextDecoder=="function"?iW(t):rW(t),aW=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:sW,toUtf8:oW},Symbol.toStringTag,{value:"Module"})),$9=jh(aW);var r4;function lW(){if(r4)return wc;r4=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.convertToBuffer=void 0;var t=$9,e=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:t.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?e(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return wc.convertToBuffer=r,wc}var Ec={},n4;function cW(){if(n4)return Ec;n4=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Ec.isEmptyData=t,Ec}var Cc={},i4;function fW(){if(i4)return Cc;i4=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return Cc.numToUint8=t,Cc}var Sc={},s4;function uW(){if(s4)return Sc;s4=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;n>>8^o[(this.checksum^m)&255]}}catch(y){f={error:y}}finally{try{v&&!v.done&&(u=d.return)&&u.call(d)}finally{if(f)throw f.error}}return this},l.prototype.digest=function(){return(this.checksum^4294967295)>>>0},l}();t.Crc32=i;var s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],o=(0,r.uint32ArrayFrom)(s),a=dW();Object.defineProperty(t,"AwsCrc32",{enumerable:!0,get:function(){return a.AwsCrc32}})}(yv)),yv}D9();const O9={},Rp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),O9[t]=e,Rp[e]=t}function hW(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)r[n]=i;return e<0&&c4(r),new vf(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&c4(e),parseInt(Cn(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function c4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}class vW{constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){const r=[];for(const s of Object.keys(e)){const o=this.fromUtf8(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":const a=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(vf.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!CW.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(hW(e.value.replace(/\-/g,"")),1),u}}parse(e){const r={};let n=0;for(;nt[ao]||(t[ao]={}),ni=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},ql=t=>new TextEncoder().encode(t),yf=t=>typeof t=="string"?ql(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),Cu=t=>new TextDecoder("utf-8").decode(t),AW="X-Amz-Algorithm",kW="X-Amz-Credential",L9="X-Amz-Date",RW="X-Amz-SignedHeaders",PW="X-Amz-Expires",B9="X-Amz-Signature",F9="X-Amz-Security-Token",j9="authorization",z9=L9.toLowerCase(),TW="date",_W=[j9,z9,TW],MW=B9.toLowerCase(),Pp="x-amz-content-sha256",IW=F9.toLowerCase(),NW={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},$W=/^proxy-/,DW=/^sec-/,mv="AWS4-HMAC-SHA256",OW="AWS4-HMAC-SHA256-PAYLOAD",LW="UNSIGNED-PAYLOAD",BW=50,U9="aws4_request",FW=60*60*24*7,fd={},gv=[],xv=(t,e,r)=>`${t}/${e}/${r}/${U9}`,jW=async(t,e,r,n,i)=>{const s=await d4(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Cn(s)}:${e.sessionToken}`;if(o in fd)return fd[o];for(gv.push(o);gv.length>BW;)delete fd[gv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,U9])a=await d4(t,a,l);return fd[o]=a},d4=(t,e,r)=>{const n=new t(e);return n.update(yf(r)),n.digest()},h4=({headers:t},e,r)=>{const n={};for(const i of Object.keys(t).sort()){if(t[i]==null)continue;const s=i.toLowerCase();(s in NW||e!=null&&e.has(s)||$W.test(s)||DW.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},Oo=t=>encodeURIComponent(t).replace(/[!'()*]/g,zW),zW=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,UW=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===MW)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Oo(n)}=${Oo(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Oo(n)}=${Oo(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},VW=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",bv=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===Pp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||VW(e)){const n=new r;return n.update(yf(e)),Cn(await n.digest())}return LW},qW=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},V9=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?HW(e):void 0}),HW=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),GW=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():V9(t);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=e.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},v4=t=>{t=typeof t.clone=="function"?t.clone():V9(t);for(const e of Object.keys(t.headers))_W.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},WW=t=>KW(t).toISOString().replace(/\.\d{3}Z$/,"Z"),KW=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class y4{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerMarshaller=new vW(Cu,ql),this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=ni(n),this.credentialProvider=ni(r)}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=ud(n);if(i>FW)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const m=xv(v,u,c??this.service),y=GW(v4(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[F9]=f.sessionToken),y.query[AW]=mv,y.query[kW]=`${f.accessKeyId}/${m}`,y.query[L9]=d,y.query[PW]=i.toString(10);const w=h4(y,s,a);return y.query[RW]=p4(w),y.query[B9]=await this.getSignature(d,m,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await bv(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=ud(n),f=xv(l,a,o??this.service),u=await bv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=Cn(await d.digest()),m=[OW,c,f,i,v,u].join(` -`);return this.signString(m,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerMarshaller.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:i,priorSignature:e.priorSignature}).then(o=>({message:e.message,signature:o}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=n??await this.regionProvider(),{shortDate:a}=ud(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(yf(e)),Cn(await l.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const l=s??await this.regionProvider(),c=v4(e),{longDate:f,shortDate:u}=ud(r),d=xv(u,l,o??this.service);c.headers[z9]=f,a.sessionToken&&(c.headers[IW]=a.sessionToken);const v=await bv(c,this.sha256);!qW(Pp,c.headers)&&this.applyChecksum&&(c.headers[Pp]=v);const m=h4(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,m,v));return c.headers[j9]=`${mv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${p4(m)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} -${this.getCanonicalPath(e)} -${UW(e)} -${i.map(s=>`${s}:${r[s]}`).join(` -`)} - -${i.join(";")} -${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(yf(n));const s=await i.digest();return`${mv} -${e} -${r} -${Cn(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const s of e.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${e!=null&&e.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(e!=null&&e.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return e}async getSignature(e,r,n,i){const s=await this.createStringToSign(e,r,i),o=new this.sha256(await n);return o.update(yf(s)),Cn(await o.digest())}getSigningKey(e,r,n,i){return jW(this.sha256,e,n,r,i||this.service)}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const ud=t=>{const e=WW(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},p4=t=>Object.keys(t).sort().join(";"),YW=3e5,zg=t=>{const e=t.credentials?QW(t.credentials):t.credentialDefaultProvider(t),{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=ni(t.signer):t.regionInfoProvider?s=()=>ni(t.region)().then(async o=>[await t.regionInfoProvider(o,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;t.signingRegion=t.signingRegion||l||a,t.signingName=t.signingName||c||t.serviceId;const f={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},u=t.signerConstructor||y4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await ni(t.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;t.signingRegion=t.signingRegion||a,t.signingName=t.signingName||l||t.serviceId;const c={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},f=t.signerConstructor||y4;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},QW=t=>typeof t=="function"?I9(t,e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()e.expiration!==void 0):ni(t),q9=t=>new Date(Date.now()+t),JW=(t,e)=>Math.abs(q9(e).getTime()-t)>=3e5,m4=(t,e)=>{const r=Date.parse(t);return JW(r,e)?r-Date.now():e},XW=t=>(e,r)=>async function(n){var u,d,v,m;if(!Mn.isInstance(n.request))return e(n);const i=(v=(d=(u=r.endpointV2)==null?void 0:u.properties)==null?void 0:d.authSchemes)==null?void 0:v[0],s=(i==null?void 0:i.name)==="sigv4a"?(m=i==null?void 0:i.signingRegionSet)==null?void 0:m.join(","):void 0,o=await t.signer(i);let a;const l={signingDate:q9(t.systemClockOffset),signingRegion:s||r.signing_region,signingService:r.signing_service};if(r.s3ExpressIdentity){if(a=await o.signWithCredentials(n.request,r.s3ExpressIdentity,l),a.headers["X-Amz-Security-Token"]||a.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.")}else a=await o.sign(n.request,l);const c=await e({...n,request:a}).catch(y=>{const w=y.ServerTime??g4(y.$response);throw w&&(t.systemClockOffset=m4(w,t.systemClockOffset)),y}),f=g4(c.response);return f&&(t.systemClockOffset=m4(f,t.systemClockOffset)),c},g4=t=>{var e,r;return Bh.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},ZW={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},eK=t=>({applyToStack:e=>{e.addRelativeTo(XW(t),ZW)}});function Ug(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const tK=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),H9=t=>tK.test(t)||t.startsWith("[")&&t.endsWith("]"),rK=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Vg=(t,e=!1)=>{if(!e)return rK.test(t);const r=t.split(".");for(const n of r)if(!Vg(n))return!1;return!0},Tp={},eu="endpoints";function lo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${lo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(lo).join(", ")})`:JSON.stringify(t,null,2)}class dn extends Error{constructor(e){super(e),this.name="EndpointError"}}const nK=(t,e)=>t===e,iK=t=>{const e=t.split("."),r=[];for(const n of e){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new dn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new dn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},G9=(t,e)=>iK(e).reduce((r,n)=>{if(typeof r!="object")throw new dn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),sK=t=>t!=null,oK=t=>!t,wv={[Xf.HTTP]:80,[Xf.HTTPS]:443},aK=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:m="",path:y="",query:w={}}=t,x=new URL(`${m}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,S])=>`${b}=${S}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;const l=o.slice(0,-1);if(!Object.values(Xf).includes(l))return null;const c=H9(i),f=r.includes(`${n}:${wv[l]}`)||typeof t=="string"&&t.includes(`${n}:${wv[l]}`),u=`${n}${f?`:${wv[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},lK=(t,e)=>t===e,cK=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),uK={booleanEquals:nK,getAttr:G9,isSet:sK,isValidHostLabel:Vg,not:oK,parseURL:aK,stringEquals:lK,substring:cK,uriEncode:fK},W9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],$0=(t,e,r)=>{if(typeof t=="string")return W9(t,r);if(t.fn)return K9(t,r);if(t.ref)return dK(t,r);throw new dn(`'${e}': ${String(t)} is not a string, function or reference.`)},K9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:$0(s,"arg",r)),i=t.split(".");return i[0]in Tp&&i[1]!=null?Tp[i[0]][i[1]](...n):uK[t](...n)},hK=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new dn(`'${t}' is already defined in Reference Record.`);const n=K9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,eu,`evaluateCondition: ${lo(e)} = ${lo(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},qg=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=hK(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=e.logger)==null?void 0:n.debug)==null||i.call(n,eu,`assign: ${a.name} := ${lo(a.value)}`))}return{result:!0,referenceRecord:r}},vK=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=$0(s,"Header value entry",e);if(typeof o!="string")throw new dn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),Y9=(t,e)=>{if(Array.isArray(t))return t.map(r=>Y9(r,e));switch(typeof t){case"string":return W9(t,e);case"object":if(t===null)throw new dn(`Unexpected endpoint property: ${t}`);return Q9(t,e);case"boolean":return t;default:throw new dn(`Unexpected endpoint property type: ${typeof t}`)}},Q9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:Y9(i,e)}),{}),yK=(t,e)=>{const r=$0(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new dn(`Endpoint URL must be a string, got ${typeof r}`)},pK=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=qg(r,e);if(!i)return;const o={...e,referenceRecord:{...e.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=e.logger)==null?void 0:f.debug)==null||u.call(f,eu,`Resolving endpoint from template: ${lo(n)}`),{...c!=null&&{headers:vK(c,o)},...l!=null&&{properties:Q9(l,o)},url:yK(a,o)}},mK=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=qg(r,e);if(i)throw new dn($0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},gK=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=qg(r,e);if(i)return J9(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},J9=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=pK(r,e);if(n)return n}else if(r.type==="error")mK(r,e);else if(r.type==="tree"){const n=gK(r,e);if(n)return n}else throw new dn(`Unknown endpoint rule: ${r}`);throw new dn("Rules evaluation failed")},Hg=(t,e)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=e,{parameters:i,rules:s}=t;(f=(c=e.logger)==null?void 0:c.debug)==null||f.call(c,`${eu} Initial EndpointParams: ${lo(r)}`);const o=Object.entries(i).filter(([,m])=>m.default!=null).map(([m,y])=>[m,y.default]);if(o.length>0)for(const[m,y]of o)r[m]=r[m]??y;const a=Object.entries(i).filter(([,m])=>m.required).map(([m])=>m);for(const m of a)if(r[m]==null)throw new dn(`Missing required parameter: '${m}'`);const l=J9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const m=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=m;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${eu} Resolved endpoint: ${lo(l)}`),l},X9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!X9(r))return!1;return!0}return!(!Vg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||H9(t))},xK=t=>{const e=t.split(":");if(e.length<6)return null;const[r,n,i,s,o,...a]=e;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},bK=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],wK="1.1",EK={partitions:bK,version:wK};let CK=EK;const SK=t=>{const{partitions:e}=CK;for(const n of e){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===t)return{...s,...a}}for(const n of e){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(t))return{...s}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},AK={isVirtualHostableS3Bucket:X9,parseArn:xK,partition:SK};Tp.aws=AK;const x4="user-agent",Ev="x-amz-user-agent",b4=" ",Cv="/",kK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,RK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,w4="-",PK=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Mn.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(Sv))||[],a=(await t.defaultUserAgentProvider()).map(Sv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(Sv))||[],c=[].concat([...a,...o,...l]).join(b4),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(b4);return t.runtime!=="browser"?(f&&(s[Ev]=s[Ev]?`${s[x4]} ${f}`:f),s[x4]=c):s[Ev]=c,e({...n,request:i})},Sv=t=>{var o;const e=t[0].split(Cv).map(a=>a.replace(kK,w4)).join(Cv),r=(o=t[1])==null?void 0:o.replace(RK,w4),n=e.indexOf(Cv),i=e.substring(0,n);let s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},TK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Gg=t=>({applyToStack:e=>{e.add(PK(t),TK)}});var E4;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(E4||(E4={}));const Wg=!1,Kg=!1,Z9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),C4=t=>Z9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,Yg=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return C4(e);const n=await e();return C4(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return Z9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}},S4="content-length";function _K(t){return e=>async r=>{const n=r.request;if(Mn.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(S4)===-1)try{const o=t(i);n.headers={...n.headers,[S4]:String(o)}}catch{}}return e({...r,request:n})}}const MK={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Qg=t=>({applyToStack:e=>{e.add(_K(t.bodyLengthChecker),MK)}}),IK=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),LK(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!OK(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},NK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,$K=/(\d+\.){3}\d+/,DK=/\.\./,OK=t=>NK.test(t)&&!$K.test(t)&&!DK.test(t),LK=t=>{const[e,r,n,i,s,o]=t.split(":"),a=e==="arn"&&t.split(":").length>=6,l=[e,r,n,s,o].filter(Boolean).length===5;if(a&&!l)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return e==="arn"&&!!r&&!!n&&!!s&&!!o},BK=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return t==="endpoint"||e==="endpoint"?async()=>{const i=await n();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:n},FK=async t=>{};function jK(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in e?Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]:e[n]=i}return e}const Sl=t=>{if(typeof t=="string")return Sl(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=jK(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},ek=t=>typeof t=="object"?"url"in t?Sl(t.url):t:Sl(t),zK=async(t,e,r,n)=>{if(!r.endpoint){const o=await FK(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(ek(o)))}const i=await UK(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},UK=async(t,e,r)=>{var s;const n={},i=((s=e==null?void 0:e.getEndpointParameterInstructions)==null?void 0:s.call(e))||{};for(const[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await BK(a.name,o,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await IK(n),n},VK=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await zK(i.input,{getEndpointParameterInstructions(){return e}},{...t},n);n.endpointV2=s,n.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;const o=(l=n.authSchemes)==null?void 0:l[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const f=SW(n),u=(c=f==null?void 0:f.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})},qK=(t,e)=>(r,n)=>async i=>{const{response:s}=await r(i);try{const o=await e(s,t);return{response:s,output:o}}catch(o){if(Object.defineProperty(o,"$response",{value:s}),!("$metadata"in o)){const a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";o.message+=` - `+a}throw o}},HK=(t,e)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&t.urlParser?async()=>t.urlParser(n.endpointV2.url):t.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await e(i.input,{...t,endpoint:s});return r({...i,request:o})},GK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tk={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Hl(t,e,r){return{applyToStack:n=>{n.add(qK(t,r),GK),n.add(HK(t,e),tk)}}}const WK={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:tk.name},Gl=(t,e)=>({applyToStack:r=>{r.addRelativeTo(VK({config:t,instructions:e}),WK)}}),Jg=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>ek(await ni(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:ni(t.useDualstackEndpoint??!1),useFipsEndpoint:ni(t.useFipsEndpoint??!1)}};var Al;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Al||(Al={}));const kl=3,Xg=Al.STANDARD,KK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],YK=["TimeoutError","RequestTimeout","RequestTimeoutException"],QK=[500,502,503,504],JK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],rk=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||KK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},nk=t=>{var e;return YK.includes(t.name)||JK.includes((t==null?void 0:t.code)||"")||QK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},XK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!nk(t)}return!1};class ZK{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(e==null?void 0:e.beta)??.7,this.minCapacity=(e==null?void 0:e.minCapacity)??1,this.minFillRate=(e==null?void 0:e.minFillRate)??.5,this.scaleConstant=(e==null?void 0:e.scaleConstant)??.4,this.smooth=(e==null?void 0:e.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),rk(e)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const _p=100,ik=20*1e3,eY=500,A4=500,tY=5,rY=10,nY=1,iY="amz-sdk-invocation-id",sY="amz-sdk-request",oY=()=>{let t=_p;return{computeNextBackoffDelay:n=>Math.floor(Math.min(ik,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},k4=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(ik,t),getRetryCost:()=>r});class sk{constructor(e){this.maxAttempts=e,this.mode=Al.STANDARD,this.capacity=A4,this.retryBackoffStrategy=oY(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return k4({retryDelay:_p,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?eY:_p);const s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,k4({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(A4,this.capacity+(e.getRetryCost()??nY))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${kl}`),kl}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?rY:tY}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class aY{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Al.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new ZK,this.standardRetryStrategy=new sk(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}var dd,lY=new Uint8Array(16);function cY(){if(!dd&&(dd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!dd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return dd(lY)}const fY=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function uY(t){return typeof t=="string"&&fY.test(t)}var yr=[];for(var Av=0;Av<256;++Av)yr.push((Av+256).toString(16).substr(1));function dY(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(yr[t[e+0]]+yr[t[e+1]]+yr[t[e+2]]+yr[t[e+3]]+"-"+yr[t[e+4]]+yr[t[e+5]]+"-"+yr[t[e+6]]+yr[t[e+7]]+"-"+yr[t[e+8]]+yr[t[e+9]]+"-"+yr[t[e+10]]+yr[t[e+11]]+yr[t[e+12]]+yr[t[e+13]]+yr[t[e+14]]+yr[t[e+15]]).toLowerCase();if(!uY(r))throw TypeError("Stringified UUID is invalid");return r}function hY(t,e,r){t=t||{};var n=t.random||(t.rng||cY)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return dY(n)}const vY=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),Zg=t=>{const{retryStrategy:e}=t,r=ni(t.maxAttempts??kl);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await ni(t.retryMode)()===Al.ADAPTIVE?new aY(r):new sk(r))}},yY=t=>(e,r)=>async n=>{let i=await t.retryStrategy();const s=await t.maxAttempts();if(pY(i)){i=i;let o=await i.acquireInitialRetryToken(r.partition_id),a=new Error,l=0,c=0;const{request:f}=n;for(Mn.isInstance(f)&&(f.headers[iY]=hY());;)try{Mn.isInstance(f)&&(f.headers[sY]=`attempt=${l+1}; max=${s}`);const{response:u,output:d}=await e(n);return i.recordSuccess(o),d.$metadata.attempts=l+1,d.$metadata.totalRetryDelay=c,{response:u,output:d}}catch(u){const d=mY(u);a=vY(u);try{o=await i.refreshRetryTokenForRetry(o,d)}catch{throw a.$metadata||(a.$metadata={}),a.$metadata.attempts=l+1,a.$metadata.totalRetryDelay=c,a}l=o.getRetryCount();const v=o.getRetryDelay();c+=v,await new Promise(m=>setTimeout(m,v))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},pY=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",mY=t=>{const e={errorType:gY(t)},r=bY(t.$response);return r&&(e.retryAfterHint=r),e},gY=t=>rk(t)?"THROTTLING":nk(t)?"TRANSIENT":XK(t)?"SERVER_ERROR":"CLIENT_ERROR",xY={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},ex=t=>({applyToStack:e=>{e.add(yY(t),xY)}}),bY=t=>{if(!Bh.isInstance(t))return;const e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)};class tx{trace(){}debug(){}info(){}warn(){}error(){}}const Eo=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Ts=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Fh=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>R4[v.step]-R4[d.step]||P4[v.priority||"normal"]-P4[d.priority||"normal"]),s=u=>{let d=!1;const v=m=>{const y=Eo(m.name,m.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},o=u=>{let d=!1;const v=m=>{if(m.middleware===u){d=!0;for(const y of Eo(m.name,m.aliases))n.delete(y);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},a=u=>{var d;return t.forEach(v=>{u.add(v.middleware,{...v})}),e.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],m={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Eo(x.name,x.aliases))m[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of Eo(x.name,x.aliases))m[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=m[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Ts(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:m,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=Eo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${Ts(v,y)}'`);for(const b of x){const S=t.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some($=>$===b))});if(S===-1)continue;const A=t[S];if(A.step!==w.step||w.priority!==A.priority)throw new Error(`"${Ts(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${Ts(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(S,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:m,aliases:y}=d,w={middleware:u,...d},x=Eo(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!m)throw new Error(`Duplicate middleware name '${Ts(v,y)}'`);for(const b of x){const S=e.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some($=>$===b))});if(S===-1)continue;const A=e[S];if(A.toMiddleware!==w.toMiddleware||A.relation!==w.relation)throw new Error(`"${Ts(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${Ts(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(S,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Fh()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=m=>{const{tags:y,name:w,aliases:x}=m;if(y&&y.includes(u)){const b=Eo(w,x);for(const S of b)n.delete(S);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Fh());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return Ts(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(m=>m.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},R4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},P4={high:3,normal:2,low:1};class rx{constructor(e){this.middlewareStack=Fh(),this.config=e}send(e,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(e).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(e).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const co={},Wl=new Array(64);for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e);co[n]=t,Wl[t]=n}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e),i=t+26;co[n]=i,Wl[i]=n}for(let t=0;t<10;t++){co[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;co[e]=r,Wl[r]=e}co["+"]=62;Wl[62]="+";co["/"]=63;Wl[63]="/";const al=6,pf=8,wY=63,Su=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;const r=new ArrayBuffer(e),n=new DataView(r);for(let i=0;i>=al;const a=i/4*3;s>>=o%pf;const l=Math.floor(o/pf);for(let c=0;c>f)}}return new Uint8Array(r)};function D0(t){let e="";for(let r=0;r>a]}e+="==".slice(0,4-s)}return e}function EY(t,e="utf-8"){return e==="base64"?D0(t):Cu(t)}function CY(t,e){return e==="base64"?qo.mutate(Su(t)):qo.mutate(ql(t))}class qo extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return CY(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,qo.prototype),e}transformToString(e="utf-8"){return EY(this,e)}}function SY(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Oo(r),Array.isArray(n))for(let i=0,s=n.length;i{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}const kY={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class nx{constructor(e){typeof e=="function"?this.configProvider=e().then(r=>r||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=e.path;const o=SY(e.query||{});o&&(s+=`?${o}`),e.fragment&&(s+=`#${e.fragment}`);let a="";if(e.username!=null||e.password!=null){const y=e.username??"",w=e.password??"";a=`${y}:${w}@`}const{port:l,method:c}=e,f=`${e.protocol}//${a}${e.hostname}${l?`:${l}`:""}${s}`,d={body:c==="GET"||c==="HEAD"?void 0:e.body,headers:new Headers(e.headers),method:c};typeof AbortController<"u"&&(d.signal=r),kY.supported&&(d.keepalive=i);const v=new Request(f,d),m=[fetch(v).then(y=>{const w=y.headers,x={};for(const S of w.entries())x[S[0]]=S[1];return y.body!=null?{response:new Bh({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(S=>({response:new Bh({headers:x,reason:y.statusText,statusCode:y.status,body:S})}))}),AY(n)];return r&&m.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(m)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const ix=t=>typeof Blob=="function"&&t instanceof Blob?RY(t):PY(t);async function RY(t){const e=await TY(t),r=Su(e);return new Uint8Array(r)}async function PY(t){let e=new Uint8Array(0);const r=t.getReader();let n=!1;for(;!n;){const{done:i,value:s}=await r.read();if(s){const o=e;e=new Uint8Array(o.length+s.length),e.set(o),e.set(s,o.length)}n=i}return e}function TY(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}const sx=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return qo.mutate(t);if(!t)return qo.mutate(new Uint8Array);const r=e.streamCollector(t);return qo.mutate(await r)};class Kl{constructor(){this.middlewareStack=Fh()}}const sr="***SensitiveInformation***",Mp=t=>{if(t!=null){if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&ak.warn(ok(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},_Y=(t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},mf=t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return ak.warn(ok(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},MY=t=>Mp(typeof t=="string"?NY(t):t),IY=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,NY=t=>{const e=t.match(IY);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},ok=t=>String(new TypeError(t).stack||t).split(` -`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(` -`),ak={warn:console.warn},$Y=t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=MY(t);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(e)||e===1/0||e===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(e*1e3))};class Au extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,Au.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Te=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(t[n]==null||t[n]==="")&&(t[n]=i)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},DY=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=OY(t),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(e==null?void 0:e.code)||(e==null?void 0:e.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw Te(o,e)},ox=t=>({output:e,parsedBody:r,errorCode:n})=>{DY({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},OY=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),ax=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},LY=t=>{const e=[];for(const r in Lh){const n=Lh[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},BY=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},FY=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},jY=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},lx=t=>({...LY(t),...FY(t)}),cx=t=>({...BY(t),...jY(t)}),Ip=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};Ip.prototype=Object.create(String.prototype,{constructor:{value:Ip,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Ip,String);const ku=(t,e)=>{const r={};for(const n in e)zY(r,t,e,n);return r},zY=(t,e,r,n)=>{if(e!==null){let o=r[n];typeof o=="function"&&(o=[,o]);const[a=UY,l=VY,c=n]=o;(typeof a=="function"&&a(e[c])||typeof a!="function"&&a)&&(t[n]=l(e[c]));return}let[i,s]=r[n];if(typeof s=="function"){let o;const a=i===void 0&&(o=s())!=null,l=typeof i=="function"&&!!i(void 0)||typeof i!="function"&&!!i;a?t[n]=o:l&&(t[n]=s())}else{const o=i===void 0&&s!=null,a=typeof i=="function"&&!!i(s)||typeof i!="function"&&!!i;(o||a)&&(t[n]=s)}},UY=t=>t!=null,VY=t=>t,we=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=we(t[r]));return e}return t},qY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),HY="@aws-sdk/client-cognito-identity",GY="AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",WY="3.462.0",KY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js"},YY="./dist-cjs/index.js",QY="./dist-types/index.d.ts",JY="./dist-es/index.js",XY=!1,ZY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},eQ={"@aws-sdk/client-iam":"3.462.0","@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},tQ={node:">=14.0.0"},rQ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},nQ=["dist-*/**"],iQ={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},sQ="Apache-2.0",oQ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},aQ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",lQ={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity"},cQ={name:HY,description:GY,version:WY,scripts:KY,main:YY,types:QY,module:JY,sideEffects:XY,dependencies:ZY,devDependencies:eQ,engines:tQ,typesVersions:rQ,files:nQ,author:iQ,license:sQ,browser:oQ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:aQ,repository:lQ};var O0={},kc={},Rc={},Pc={},T4;function fQ(){if(T4)return Pc;T4=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return Pc.isEmptyData=t,Pc}var kv={},_4;function lk(){return _4||(_4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(kv)),kv}const uQ={};function dQ(){return typeof window<"u"?window:typeof self<"u"?self:uQ}const hQ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:dQ},Symbol.toStringTag,{value:"Module"})),fx=jh(hQ);var M4;function ck(){if(M4)return Rc;M4=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.Sha256=void 0;var t=fQ(),e=lk(),r=$9,n=fx,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,t.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(e.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();Rc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),e.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return Rc}var Tc={},I4;function fk(){if(I4)return Tc;I4=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.Sha256=void 0;var t=Eu(),e=lk(),r=fx,n=function(){function i(s){this.toHash=new Uint8Array(0),this.secret=s,this.reset()}return i.prototype.update=function(s){if(!(0,t.isEmptyData)(s)){var o=(0,t.convertToBuffer)(s),a=new Uint8Array(this.toHash.byteLength+o.byteLength);a.set(this.toHash,0),a.set(o,this.toHash.byteLength),this.toHash=a}},i.prototype.digest=function(){var s=this;return this.key?this.key.then(function(o){return(0,r.locateWindow)().crypto.subtle.sign(e.SHA_256_HMAC_ALGO,o,s.toHash).then(function(a){return new Uint8Array(a)})}):(0,t.isEmptyData)(this.toHash)?Promise.resolve(e.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,r.locateWindow)().crypto.subtle.digest(e.SHA_256_HASH,s.toHash)}).then(function(o){return Promise.resolve(new Uint8Array(o))})},i.prototype.reset=function(){var s=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(o,a){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,t.convertToBuffer)(s.secret),e.SHA_256_HMAC_ALGO,!1,["sign"]).then(o,a)}),this.key.catch(function(){}))},i}();return Tc.Sha256=n,Tc}var Rv={},_c={},en={},N4;function uk(){return N4||(N4=1,Object.defineProperty(en,"__esModule",{value:!0}),en.MAX_HASHABLE_LENGTH=en.INIT=en.KEY=en.DIGEST_LENGTH=en.BLOCK_SIZE=void 0,en.BLOCK_SIZE=64,en.DIGEST_LENGTH=32,en.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),en.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],en.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),en}var Mc={},$4;function vQ(){if($4)return Mc;$4=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.RawSha256=void 0;var t=uk(),e=function(){function r(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");var i=0,s=n.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(w+this.temp[m-7]|0)+(x+this.temp[m-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[m]+this.temp[m]|0)|0)|0,S=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+S|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return Mc.RawSha256=e,Mc}var D4;function yQ(){if(D4)return _c;D4=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.Sha256=void 0;var t=xo,e=uk(),r=vQ(),n=Eu(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(e.BLOCK_SIZE);l.set(a);for(var c=0;ce.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(a),c}return _c}var O4;function pQ(){return O4||(O4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(yQ(),t)}(Rv)),Rv}var Pv={},qn={},L4;function mQ(){if(L4)return qn;L4=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.supportsZeroByteGCM=qn.supportsSubtleCrypto=qn.supportsSecureRandom=qn.supportsWebCrypto=void 0;var t=xo,e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}qn.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}qn.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}qn.supportsSubtleCrypto=i;function s(o){return t.__awaiter(this,void 0,void 0,function(){var a,l;return t.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return qn.supportsZeroByteGCM=s,qn}var B4;function gQ(){return B4||(B4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(mQ(),t)}(Pv)),Pv}var Tv={},_v={},F4;function xQ(){return F4||(F4=1,Object.defineProperty(_v,"__esModule",{value:!0})),_v}var Mv={},j4;function bQ(){return j4||(j4=1,Object.defineProperty(Mv,"__esModule",{value:!0})),Mv}var Iv={},z4;function wQ(){return z4||(z4=1,Object.defineProperty(Iv,"__esModule",{value:!0})),Iv}var Nv={},U4;function EQ(){return U4||(U4=1,Object.defineProperty(Nv,"__esModule",{value:!0})),Nv}var Ic={},V4;function CQ(){if(V4)return Ic;V4=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.isMsWindow=void 0;var t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function e(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(e(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return t.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return Ic.isMsWindow=r,Ic}var q4;function SQ(){return q4||(q4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=xo;e.__exportStar(xQ(),t),e.__exportStar(bQ(),t),e.__exportStar(wQ(),t),e.__exportStar(EQ(),t),e.__exportStar(CQ(),t)}(Tv)),Tv}var H4;function AQ(){if(H4)return kc;H4=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.Sha256=void 0;var t=ck(),e=fk(),r=pQ(),n=gQ(),i=SQ(),s=fx,o=Eu(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new e.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return kc.Sha256=a,kc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=xo;e.__exportStar(AQ(),t);var r=ck();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=fk();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(O0);const kQ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},dk={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Vt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},$r={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Is={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class te{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const i=te.getVersionPrecision(e),s=te.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=te.map([e,r],c=>{const f=o-te.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return te.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return e}static getBrowserAlias(e){return kQ[e]}static getBrowserTypeByAlias(e){return dk[e]||""}}const pt=/version\/(\d+(\.?_?\d+)+)/i,RQ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=te.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=te.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=te.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=te.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=te.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=te.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=te.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=te.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=te.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=te.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=te.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=te.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=te.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=te.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=te.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=te.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=te.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=te.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=te.getFirstMatch(pt,t)||te.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=te.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=te.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=te.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=te.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=te.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=te.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=te.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=te.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=te.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=te.getFirstMatch(pt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:te.getFirstMatch(i,t),version:te.getSecondMatch(i,t)}}}],PQ=[{test:[/Roku\/DVP/],describe(t){const e=te.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:$r.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=te.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:$r.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=te.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=te.getWindowsVersionName(e);return{name:$r.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:$r.iOS},r=te.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=te.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=te.getMacOSVersionName(e),n={name:$r.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=te.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:$r.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=te.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=te.getAndroidVersionName(e),n={name:$r.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=te.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:$r.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=te.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||te.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||te.getFirstMatch(/\bbb(\d+)/i,t);return{name:$r.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=te.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:$r.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=te.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:$r.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:$r.Linux}}},{test:[/CrOS/],describe(){return{name:$r.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=te.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:$r.PlayStation4,version:e}}}],TQ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=te.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Vt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=te.getFirstMatch(/(ipod|iphone)/i,t);return{type:Vt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Vt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Vt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Vt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Vt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Vt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Vt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Vt.tv}}}],_Q=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Is.Blink};const r=te.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Is.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Is.Trident},r=te.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Is.Presto},r=te.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:Is.Gecko},r=te.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Is.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Is.WebKit},r=te.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class G4{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=te.find(RQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=te.find(PQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=te.find(TQ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=te.find(_Q,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return te.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const i={};let s=0;if(Object.keys(e).forEach(a=>{const l=e[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=te.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=te.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=te.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const s=te.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(e){let r=[0],n=e,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(i=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(i=!0,n=e.substr(1)),r.indexOf(te.compareVersions(s,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}}/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */class hk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new G4(e,r)}static parse(e){return new G4(e).getResult()}static get BROWSER_MAP(){return dk}static get ENGINE_MAP(){return Is}static get OS_MAP(){return $r}static get PLATFORMS_MAP(){return Vt}}const ux=({serviceId:t,clientVersion:e})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?hk.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",e],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return t&&n.push([`api/${t}`,e]),n},dx=t=>()=>Promise.reject(t),hx=t=>{if(typeof t=="string"){let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},vk="required",ki="fn",Ri="argv",Yl="ref",W4=!0,K4="isSet",tu="booleanEquals",wa="error",Nc="endpoint",Wi="tree",vx="PartitionResult",Y4={[vk]:!1,type:"String"},Q4={[vk]:!0,default:!1,type:"Boolean"},J4={[Yl]:"Endpoint"},yk={[ki]:tu,[Ri]:[{[Yl]:"UseFIPS"},!0]},pk={[ki]:tu,[Ri]:[{[Yl]:"UseDualStack"},!0]},vi={},X4={[ki]:"getAttr",[Ri]:[{[Yl]:vx},"supportsFIPS"]},Z4={[ki]:tu,[Ri]:[!0,{[ki]:"getAttr",[Ri]:[{[Yl]:vx},"supportsDualStack"]}]},eE=[yk],tE=[pk],rE=[{[Yl]:"Region"}],MQ={version:"1.0",parameters:{Region:Y4,UseDualStack:Q4,UseFIPS:Q4,Endpoint:Y4},rules:[{conditions:[{[ki]:K4,[Ri]:[J4]}],rules:[{conditions:eE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:wa},{conditions:tE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:wa},{endpoint:{url:J4,properties:vi,headers:vi},type:Nc}],type:Wi},{conditions:[{[ki]:K4,[Ri]:rE}],rules:[{conditions:[{[ki]:"aws.partition",[Ri]:rE,assign:vx}],rules:[{conditions:[yk,pk],rules:[{conditions:[{[ki]:tu,[Ri]:[W4,X4]},Z4],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:wa}],type:Wi},{conditions:eE,rules:[{conditions:[{[ki]:tu,[Ri]:[X4,W4]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"FIPS is enabled but this partition does not support FIPS",type:wa}],type:Wi},{conditions:tE,rules:[{conditions:[Z4],rules:[{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi},{error:"DualStack is enabled but this partition does not support DualStack",type:wa}],type:Wi},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:vi,headers:vi},type:Nc}],type:Wi}],type:Wi},{error:"Invalid Configuration: Missing Region",type:wa}]},IQ=MQ,NQ=(t,e={})=>Hg(IQ,{endpointParams:t,logger:e.logger}),$Q=t=>({apiVersion:"2014-06-30",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??NQ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),DQ=["in-region","cross-region","mobile","standard","legacy"],yx=({defaultsMode:t}={})=>I9(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(OQ()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DQ.join(", ")}, got ${e}`)}}),OQ=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?hk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},LQ=t=>{const e=yx(t),r=()=>e().then(ax),n=$Q(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:cQ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},px=t=>{let e=async()=>{if(t.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=t.region;return typeof r=="string"?r:r()};return{setRegion(r){e=r},region(){return e}}},mx=t=>({region:t.region()}),$v=t=>t,BQ=(t,e)=>{const r={...$v(px(t)),...$v(lx(t)),...$v(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class FQ extends rx{constructor(...[e]){const r=LQ(e||{}),n=qY(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=BQ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class $n extends Au{constructor(e){super(e),Object.setPrototypeOf(this,$n.prototype)}}let jQ=class mk extends $n{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,mk.prototype)}},zQ=class gk extends $n{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,gk.prototype)}};class gx extends $n{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,gx.prototype)}}let UQ=class xk extends $n{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,xk.prototype)}};class xx extends $n{constructor(e){super({name:"ResourceConflictException",$fault:"client",...e}),this.name="ResourceConflictException",this.$fault="client",Object.setPrototypeOf(this,xx.prototype)}}let VQ=class bk extends $n{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,bk.prototype)}},qQ=class wk extends $n{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,wk.prototype)}};class bx extends $n{constructor(e){super({name:"ExternalServiceException",$fault:"client",...e}),this.name="ExternalServiceException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends $n{constructor(e){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...e}),this.name="InvalidIdentityPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}const HQ=async(t,e)=>{const r=Mk("GetCredentialsForIdentity");let n;return n=JSON.stringify(we(t)),_k(e,r,"/",void 0,n)},GQ=async(t,e)=>{const r=Mk("GetId");let n;return n=JSON.stringify(we(t)),_k(e,r,"/",void 0,n)},WQ=async(t,e)=>{if(t.statusCode>=300)return KQ(t,e);const r=await Ex(t.body,e);let n={};return n=eJ(r),{$metadata:ai(t),...n}},KQ=async(t,e)=>{const r={...t,body:await Ik(t.body,e)},n=Nk(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await Ek(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Ck(r);case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":throw await JQ(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Sk(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ak(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await kk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Rk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Pk(r);default:const i=r.body;return Tk({output:t,parsedBody:i,errorCode:n})}},YQ=async(t,e)=>{if(t.statusCode>=300)return QQ(t,e);const r=await Ex(t.body,e);let n={};return n=we(r),{$metadata:ai(t),...n}},QQ=async(t,e)=>{const r={...t,body:await Ik(t.body,e)},n=Nk(t,r.body);switch(n){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":throw await Ek(r);case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":throw await Ck(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":throw await Sk(r);case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":throw await XQ(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":throw await Ak(r);case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":throw await kk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":throw await Rk(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":throw await Pk(r);default:const i=r.body;return Tk({output:t,parsedBody:i,errorCode:n})}},Ek=async(t,e)=>{const r=t.body,n=we(r),i=new bx({$metadata:ai(t),...n});return Te(i,r)},Ck=async(t,e)=>{const r=t.body,n=we(r),i=new jQ({$metadata:ai(t),...n});return Te(i,r)},JQ=async(t,e)=>{const r=t.body,n=we(r),i=new wx({$metadata:ai(t),...n});return Te(i,r)},Sk=async(t,e)=>{const r=t.body,n=we(r),i=new zQ({$metadata:ai(t),...n});return Te(i,r)},XQ=async(t,e)=>{const r=t.body,n=we(r),i=new gx({$metadata:ai(t),...n});return Te(i,r)},Ak=async(t,e)=>{const r=t.body,n=we(r),i=new UQ({$metadata:ai(t),...n});return Te(i,r)},kk=async(t,e)=>{const r=t.body,n=we(r),i=new xx({$metadata:ai(t),...n});return Te(i,r)},Rk=async(t,e)=>{const r=t.body,n=we(r),i=new qQ({$metadata:ai(t),...n});return Te(i,r)},Pk=async(t,e)=>{const r=t.body,n=we(r),i=new VQ({$metadata:ai(t),...n});return Te(i,r)},ZQ=(t,e)=>ku(t,{AccessKeyId:mf,Expiration:r=>_Y($Y(Mp(r))),SecretKey:mf,SessionToken:mf}),eJ=(t,e)=>ku(t,{Credentials:r=>ZQ(r),IdentityId:mf}),ai=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),tJ=(t,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),Tk=ox($n),_k=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Mn(c)};function Mk(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}}const Ex=(t,e)=>tJ(t,e).then(r=>r.length?JSON.parse(r):{}),Ik=async(t,e)=>{const r=await Ex(t,e);return r.message=r.message??r.Message,r},Nk=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)};class Cx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Cx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityService",operation:"GetCredentialsForIdentity"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return HQ(e,r)}deserialize(e,r){return WQ(e,r)}}class Sx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Sx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityService",operation:"GetId"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return GQ(e,r)}deserialize(e,r){return YQ(e,r)}}function $k(t){return Promise.all(Object.keys(t).reduce((e,r)=>{const n=t[r];return typeof n=="string"?e.push([r,n]):e.push(n().then(i=>[r,i])),e},[])).then(e=>e.reduce((r,[n,i])=>(r[n]=i,r),{}))}function rJ(t){return async()=>{const{Credentials:{AccessKeyId:e=nJ(),Expiration:r,SecretKey:n=sJ(),SessionToken:i}=iJ()}=await t.client.send(new Cx({CustomRoleArn:t.customRoleArn,IdentityId:t.identityId,Logins:t.logins?await $k(t.logins):void 0}));return{identityId:t.identityId,accessKeyId:e,secretAccessKey:n,sessionToken:i,expiration:r}}}function nJ(){throw new Vl("Response from Amazon Cognito contained no access key ID")}function iJ(){throw new Vl("Response from Amazon Cognito contained no credentials")}function sJ(){throw new Vl("Response from Amazon Cognito contained no secret key")}const Dv="IdentityIds";class oJ{constructor(e="aws:cognito-identity-ids"){this.dbName=e}getItem(e){return this.withObjectStore("readonly",r=>{const n=r.get(e);return new Promise(i=>{n.onerror=()=>i(null),n.onsuccess=()=>i(n.result?n.result.value:null)})}).catch(()=>null)}removeItem(e){return this.withObjectStore("readwrite",r=>{const n=r.delete(e);return new Promise((i,s)=>{n.onerror=()=>s(n.error),n.onsuccess=()=>i()})})}setItem(e,r){return this.withObjectStore("readwrite",n=>{const i=n.put({id:e,value:r});return new Promise((s,o)=>{i.onerror=()=>o(i.error),i.onsuccess=()=>s()})})}getDb(){const e=self.indexedDB.open(this.dbName,1);return new Promise((r,n)=>{e.onsuccess=()=>{r(e.result)},e.onerror=()=>{n(e.error)},e.onblocked=()=>{n(new Error("Unable to access DB"))},e.onupgradeneeded=()=>{const i=e.result;i.onerror=()=>{n(new Error("Failed to create object store"))},i.createObjectStore(Dv,{keyPath:"id"})}})}withObjectStore(e,r){return this.getDb().then(n=>{const i=n.transaction(Dv,e);return i.oncomplete=()=>n.close(),new Promise((s,o)=>{i.onerror=()=>o(i.error),s(r(i.objectStore(Dv)))}).catch(s=>{throw n.close(),s})})}}class aJ{constructor(e={}){this.store=e}getItem(e){return e in this.store?this.store[e]:null}removeItem(e){delete this.store[e]}setItem(e,r){this.store[e]=r}}const lJ=new aJ;function cJ(){return typeof self=="object"&&self.indexedDB?new oJ:typeof window=="object"&&window.localStorage?window.localStorage:lJ}function fJ({accountId:t,cache:e=cJ(),client:r,customRoleArn:n,identityPoolId:i,logins:s,userIdentifier:o=!s||Object.keys(s).length===0?"ANONYMOUS":void 0}){const a=o?`aws:cognito-identity-credentials:${i}:${o}`:void 0;let l=async()=>{let c=a&&await e.getItem(a);if(!c){const{IdentityId:f=uJ()}=await r.send(new Sx({AccountId:t,IdentityPoolId:i,Logins:s?await $k(s):void 0}));c=f,a&&Promise.resolve(e.setItem(a,c)).catch(()=>{})}return l=rJ({client:r,customRoleArn:n,logins:s,identityId:c}),l()};return()=>l().catch(async c=>{throw a&&Promise.resolve(e.removeItem(a)).catch(()=>{}),c})}function uJ(){throw new Vl("Response from Amazon Cognito contained no identity ID")}const dJ=t=>fJ({...t,client:new FQ(t.clientConfig??{})});class Gc extends Error{}Gc.prototype.name="InvalidTokenError";function hJ(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function vJ(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return hJ(e)}catch{return atob(e)}}function yJ(t,e){if(typeof t!="string")throw new Gc("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Gc(`Invalid token specified: missing part #${r+1}`);let i;try{i=vJ(n)}catch(s){throw new Gc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Gc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const pJ=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"kms"}),mJ="@aws-sdk/client-kms",gJ="AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",xJ="3.462.0",bJ={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo kms"},wJ="./dist-cjs/index.js",EJ="./dist-types/index.d.ts",CJ="./dist-es/index.js",SJ=!1,AJ={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},kJ={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},RJ={node:">=14.0.0"},PJ={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},TJ=["dist-*/**"],_J={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},MJ="Apache-2.0",IJ={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},NJ="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kms",$J={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-kms"},DJ={name:mJ,description:gJ,version:xJ,scripts:bJ,main:wJ,types:EJ,module:CJ,sideEffects:SJ,dependencies:AJ,devDependencies:kJ,engines:RJ,typesVersions:PJ,files:TJ,author:_J,license:MJ,browser:IJ,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:NJ,repository:$J},Dk="required",Pi="fn",Ti="argv",Ql="ref",nE=!0,iE="isSet",ru="booleanEquals",Ea="error",$c="endpoint",Ki="tree",Ax="PartitionResult",sE={[Dk]:!1,type:"String"},oE={[Dk]:!0,default:!1,type:"Boolean"},aE={[Ql]:"Endpoint"},Ok={[Pi]:ru,[Ti]:[{[Ql]:"UseFIPS"},!0]},Lk={[Pi]:ru,[Ti]:[{[Ql]:"UseDualStack"},!0]},yi={},lE={[Pi]:"getAttr",[Ti]:[{[Ql]:Ax},"supportsFIPS"]},cE={[Pi]:ru,[Ti]:[!0,{[Pi]:"getAttr",[Ti]:[{[Ql]:Ax},"supportsDualStack"]}]},fE=[Ok],uE=[Lk],dE=[{[Ql]:"Region"}],OJ={version:"1.0",parameters:{Region:sE,UseDualStack:oE,UseFIPS:oE,Endpoint:sE},rules:[{conditions:[{[Pi]:iE,[Ti]:[aE]}],rules:[{conditions:fE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ea},{conditions:uE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ea},{endpoint:{url:aE,properties:yi,headers:yi},type:$c}],type:Ki},{conditions:[{[Pi]:iE,[Ti]:dE}],rules:[{conditions:[{[Pi]:"aws.partition",[Ti]:dE,assign:Ax}],rules:[{conditions:[Ok,Lk],rules:[{conditions:[{[Pi]:ru,[Ti]:[nE,lE]},cE],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ea}],type:Ki},{conditions:fE,rules:[{conditions:[{[Pi]:ru,[Ti]:[lE,nE]}],rules:[{endpoint:{url:"https://kms-fips.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"FIPS is enabled but this partition does not support FIPS",type:Ea}],type:Ki},{conditions:uE,rules:[{conditions:[cE],rules:[{endpoint:{url:"https://kms.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki},{error:"DualStack is enabled but this partition does not support DualStack",type:Ea}],type:Ki},{endpoint:{url:"https://kms.{Region}.{PartitionResult#dnsSuffix}",properties:yi,headers:yi},type:$c}],type:Ki}],type:Ki},{error:"Invalid Configuration: Missing Region",type:Ea}]},LJ=OJ,BJ=(t,e={})=>Hg(LJ,{endpointParams:t,logger:e.logger}),FJ=t=>({apiVersion:"2014-11-01",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??BJ,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"KMS",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),jJ=t=>{const e=yx(t),r=()=>e().then(ax),n=FJ(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:DJ.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},Ov=t=>t,zJ=(t,e)=>{const r={...Ov(px(t)),...Ov(lx(t)),...Ov(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class UJ extends rx{constructor(...[e]){const r=jJ(e||{}),n=pJ(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=zJ(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(eK(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class Dn extends Au{constructor(e){super(e),Object.setPrototypeOf(this,Dn.prototype)}}class kx extends Dn{constructor(e){super({name:"DependencyTimeoutException",$fault:"server",...e}),this.name="DependencyTimeoutException",this.$fault="server",Object.setPrototypeOf(this,kx.prototype)}}class Rx extends Dn{constructor(e){super({name:"KMSInternalException",$fault:"server",...e}),this.name="KMSInternalException",this.$fault="server",Object.setPrototypeOf(this,Rx.prototype)}}class Px extends Dn{constructor(e){super({name:"KMSInvalidStateException",$fault:"client",...e}),this.name="KMSInvalidStateException",this.$fault="client",Object.setPrototypeOf(this,Px.prototype)}}class Tx extends Dn{constructor(e){super({name:"NotFoundException",$fault:"client",...e}),this.name="NotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tx.prototype)}}class _x extends Dn{constructor(e){super({name:"DisabledException",$fault:"client",...e}),this.name="DisabledException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Mx extends Dn{constructor(e){super({name:"DryRunOperationException",$fault:"client",...e}),this.name="DryRunOperationException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends Dn{constructor(e){super({name:"InvalidGrantTokenException",$fault:"client",...e}),this.name="InvalidGrantTokenException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class Nx extends Dn{constructor(e){super({name:"InvalidKeyUsageException",$fault:"client",...e}),this.name="InvalidKeyUsageException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class $x extends Dn{constructor(e){super({name:"KeyUnavailableException",$fault:"server",...e}),this.name="KeyUnavailableException",this.$fault="server",Object.setPrototypeOf(this,$x.prototype)}}const VJ=t=>({...t,...t.Plaintext&&{Plaintext:sr}}),qJ=async(t,e)=>{const r=lX("GenerateDataKey");let n;return n=JSON.stringify(rX(t,e)),aX(e,r,"/",void 0,n)},HJ=async(t,e)=>{if(t.statusCode>=300)return GJ(t,e);const r=await Bk(t.body,e);let n={};return n=iX(r,e),{$metadata:Hi(t),...n}},GJ=async(t,e)=>{const r={...t,body:await cX(t.body,e)},n=fX(t,r.body);switch(n){case"DependencyTimeoutException":case"com.amazonaws.kms#DependencyTimeoutException":throw await WJ(r);case"DisabledException":case"com.amazonaws.kms#DisabledException":throw await KJ(r);case"DryRunOperationException":case"com.amazonaws.kms#DryRunOperationException":throw await YJ(r);case"InvalidGrantTokenException":case"com.amazonaws.kms#InvalidGrantTokenException":throw await QJ(r);case"InvalidKeyUsageException":case"com.amazonaws.kms#InvalidKeyUsageException":throw await JJ(r);case"KMSInternalException":case"com.amazonaws.kms#KMSInternalException":throw await ZJ(r);case"KMSInvalidStateException":case"com.amazonaws.kms#KMSInvalidStateException":throw await eX(r);case"KeyUnavailableException":case"com.amazonaws.kms#KeyUnavailableException":throw await XJ(r);case"NotFoundException":case"com.amazonaws.kms#NotFoundException":throw await tX(r);default:const i=r.body;return oX({output:t,parsedBody:i,errorCode:n})}},WJ=async(t,e)=>{const r=t.body,n=we(r),i=new kx({$metadata:Hi(t),...n});return Te(i,r)},KJ=async(t,e)=>{const r=t.body,n=we(r),i=new _x({$metadata:Hi(t),...n});return Te(i,r)},YJ=async(t,e)=>{const r=t.body,n=we(r),i=new Mx({$metadata:Hi(t),...n});return Te(i,r)},QJ=async(t,e)=>{const r=t.body,n=we(r),i=new Ix({$metadata:Hi(t),...n});return Te(i,r)},JJ=async(t,e)=>{const r=t.body,n=we(r),i=new Nx({$metadata:Hi(t),...n});return Te(i,r)},XJ=async(t,e)=>{const r=t.body,n=we(r),i=new $x({$metadata:Hi(t),...n});return Te(i,r)},ZJ=async(t,e)=>{const r=t.body,n=we(r),i=new Rx({$metadata:Hi(t),...n});return Te(i,r)},eX=async(t,e)=>{const r=t.body,n=we(r),i=new Px({$metadata:Hi(t),...n});return Te(i,r)},tX=async(t,e)=>{const r=t.body,n=we(r),i=new Tx({$metadata:Hi(t),...n});return Te(i,r)},rX=(t,e)=>ku(t,{DryRun:[],EncryptionContext:we,GrantTokens:we,KeyId:[],KeySpec:[],NumberOfBytes:[],Recipient:r=>nX(r,e)}),nX=(t,e)=>ku(t,{AttestationDocument:e.base64Encoder,KeyEncryptionAlgorithm:[]}),iX=(t,e)=>ku(t,{CiphertextBlob:e.base64Decoder,CiphertextForRecipient:e.base64Decoder,KeyId:mf,Plaintext:e.base64Decoder}),Hi=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),sX=(t,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),oX=ox(Dn),aX=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Mn(c)};function lX(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`TrentService.${t}`}}const Bk=(t,e)=>sX(t,e).then(r=>r.length?JSON.parse(r):{}),cX=async(t,e)=>{const r=await Bk(t,e);return r.message=r.message??r.Message,r},fX=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)};class Dx extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Dx.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"KMSClient",commandName:"GenerateDataKeyCommand",inputFilterSensitiveLog:f=>f,outputFilterSensitiveLog:VJ,[ao]:{service:"TrentService",operation:"GenerateDataKey"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return qJ(e,r)}deserialize(e,r){return HJ(e,r)}}const uX=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),dX="@aws-sdk/client-cognito-identity-provider",hX="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",vX="3.462.0",yX={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},pX="./dist-cjs/index.js",mX="./dist-types/index.d.ts",gX="./dist-es/index.js",xX=!1,bX={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sts":"3.462.0","@aws-sdk/core":"3.451.0","@aws-sdk/credential-provider-node":"3.460.0","@aws-sdk/middleware-host-header":"3.460.0","@aws-sdk/middleware-logger":"3.460.0","@aws-sdk/middleware-recursion-detection":"3.460.0","@aws-sdk/middleware-signing":"3.461.0","@aws-sdk/middleware-user-agent":"3.460.0","@aws-sdk/region-config-resolver":"3.451.0","@aws-sdk/types":"3.460.0","@aws-sdk/util-endpoints":"3.460.0","@aws-sdk/util-user-agent-browser":"3.460.0","@aws-sdk/util-user-agent-node":"3.460.0","@smithy/config-resolver":"^2.0.18","@smithy/fetch-http-handler":"^2.2.6","@smithy/hash-node":"^2.0.15","@smithy/invalid-dependency":"^2.0.13","@smithy/middleware-content-length":"^2.0.15","@smithy/middleware-endpoint":"^2.2.0","@smithy/middleware-retry":"^2.0.20","@smithy/middleware-serde":"^2.0.13","@smithy/middleware-stack":"^2.0.7","@smithy/node-config-provider":"^2.1.5","@smithy/node-http-handler":"^2.1.9","@smithy/protocol-http":"^3.0.9","@smithy/smithy-client":"^2.1.15","@smithy/types":"^2.5.0","@smithy/url-parser":"^2.0.13","@smithy/util-base64":"^2.0.1","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.19","@smithy/util-defaults-mode-node":"^2.0.25","@smithy/util-endpoints":"^1.0.4","@smithy/util-retry":"^2.0.6","@smithy/util-utf8":"^2.0.2",tslib:"^2.5.0"},wX={"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.23.23",typescript:"~4.9.5"},EX={node:">=14.0.0"},CX={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},SX=["dist-*/**"],AX={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},kX="Apache-2.0",RX={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},PX="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",TX={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},_X={name:dX,description:hX,version:vX,scripts:yX,main:pX,types:mX,module:gX,sideEffects:xX,dependencies:bX,devDependencies:wX,engines:EX,typesVersions:CX,files:SX,author:AX,license:kX,browser:RX,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:PX,repository:TX},Fk="required",_i="fn",Mi="argv",Jl="ref",hE=!0,vE="isSet",nu="booleanEquals",Ca="error",Dc="endpoint",Yi="tree",Ox="PartitionResult",yE={[Fk]:!1,type:"String"},pE={[Fk]:!0,default:!1,type:"Boolean"},mE={[Jl]:"Endpoint"},jk={[_i]:nu,[Mi]:[{[Jl]:"UseFIPS"},!0]},zk={[_i]:nu,[Mi]:[{[Jl]:"UseDualStack"},!0]},pi={},gE={[_i]:"getAttr",[Mi]:[{[Jl]:Ox},"supportsFIPS"]},xE={[_i]:nu,[Mi]:[!0,{[_i]:"getAttr",[Mi]:[{[Jl]:Ox},"supportsDualStack"]}]},bE=[jk],wE=[zk],EE=[{[Jl]:"Region"}],MX={version:"1.0",parameters:{Region:yE,UseDualStack:pE,UseFIPS:pE,Endpoint:yE},rules:[{conditions:[{[_i]:vE,[Mi]:[mE]}],rules:[{conditions:bE,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ca},{conditions:wE,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ca},{endpoint:{url:mE,properties:pi,headers:pi},type:Dc}],type:Yi},{conditions:[{[_i]:vE,[Mi]:EE}],rules:[{conditions:[{[_i]:"aws.partition",[Mi]:EE,assign:Ox}],rules:[{conditions:[jk,zk],rules:[{conditions:[{[_i]:nu,[Mi]:[hE,gE]},xE],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Yi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ca}],type:Yi},{conditions:bE,rules:[{conditions:[{[_i]:nu,[Mi]:[gE,hE]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Yi},{error:"FIPS is enabled but this partition does not support FIPS",type:Ca}],type:Yi},{conditions:wE,rules:[{conditions:[xE],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Yi},{error:"DualStack is enabled but this partition does not support DualStack",type:Ca}],type:Yi},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:pi,headers:pi},type:Dc}],type:Yi}],type:Yi},{error:"Invalid Configuration: Missing Region",type:Ca}]},IX=MX,NX=(t,e={})=>Hg(IX,{endpointParams:t,logger:e.logger}),$X=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??Su,base64Encoder:(t==null?void 0:t.base64Encoder)??D0,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??NX,extensions:(t==null?void 0:t.extensions)??[],logger:(t==null?void 0:t.logger)??new tx,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Sl,utf8Decoder:(t==null?void 0:t.utf8Decoder)??ql,utf8Encoder:(t==null?void 0:t.utf8Encoder)??Cu}),DX=t=>{const e=yx(t),r=()=>e().then(ax),n=$X(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??hx,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??ux({serviceId:n.serviceId,clientVersion:_X.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??kl,region:(t==null?void 0:t.region)??dx("Region is missing"),requestHandler:(t==null?void 0:t.requestHandler)??new nx(r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||Xg),sha256:(t==null?void 0:t.sha256)??O0.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??ix,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(Wg)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(Kg))}},Lv=t=>t,OX=(t,e)=>{const r={...Lv(px(t)),...Lv(lx(t)),...Lv(Dg(t))};return e.forEach(n=>n.configure(r)),{...t,...mx(r),...cx(r),...Og(r)}};class LX extends rx{constructor(...[e]){const r=DX(e||{}),n=uX(r),i=Yg(n),s=Jg(i),o=Zg(s),a=o,l=zg(a),c=Ug(l),f=OX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(ex(this.config)),this.middlewareStack.use(Qg(this.config)),this.middlewareStack.use(Lg(this.config)),this.middlewareStack.use(Bg(this.config)),this.middlewareStack.use(Fg(this.config)),this.middlewareStack.use(Gg(this.config))}destroy(){super.destroy()}}class mt extends Au{constructor(e){super(e),Object.setPrototypeOf(this,mt.prototype)}}class Lx extends mt{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,Lx.prototype)}}class Bx extends mt{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class Fx extends mt{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class jx extends mt{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class zx extends mt{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Ux extends mt{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class Vx extends mt{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends mt{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class L0 extends mt{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,L0.prototype)}}class Hx extends mt{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Gx extends mt{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}class Wx extends mt{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Kx extends mt{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}class Yx extends mt{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,Yx.prototype)}}class Qx extends mt{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Qx.prototype)}}class Jx extends mt{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Jx.prototype)}}class Xx extends mt{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Xx.prototype)}}class Zx extends mt{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Zx.prototype)}}class eb extends mt{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,eb.prototype)}}class tb extends mt{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,tb.prototype)}}class rb extends mt{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,rb.prototype)}}class nb extends mt{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,nb.prototype)}}class ib extends mt{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,ib.prototype)}}class sb extends mt{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,sb.prototype)}}const CE=t=>({...t,...t.Value&&{Value:sr}}),Uk=t=>({...t,...t.AccessToken&&{AccessToken:sr},...t.RefreshToken&&{RefreshToken:sr},...t.IdToken&&{IdToken:sr}}),BX=t=>({...t,...t.AuthParameters&&{AuthParameters:sr},...t.ClientId&&{ClientId:sr},...t.UserContextData&&{UserContextData:sr}}),FX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Uk(t.AuthenticationResult)}}),jX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.Session&&{Session:sr},...t.ChallengeResponses&&{ChallengeResponses:sr},...t.UserContextData&&{UserContextData:sr}}),zX=t=>({...t,...t.Session&&{Session:sr},...t.AuthenticationResult&&{AuthenticationResult:Uk(t.AuthenticationResult)}}),UX=t=>({...t,...t.ClientId&&{ClientId:sr},...t.SecretHash&&{SecretHash:sr},...t.Username&&{Username:sr},...t.Password&&{Password:sr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>CE(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>CE(e))},...t.UserContextData&&{UserContextData:sr}}),VX=async(t,e)=>{const r=xb("InitiateAuth");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},qX=async(t,e)=>{const r=xb("RespondToAuthChallenge");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},HX=async(t,e)=>{const r=xb("SignUp");let n;return n=JSON.stringify(we(t)),gb(e,r,"/",void 0,n)},GX=async(t,e)=>{if(t.statusCode>=300)return WX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},WX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await qk(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Hk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Gk(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Wk(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},KX=async(t,e)=>{if(t.statusCode>=300)return YX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},YX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await XX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await eZ(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await tZ(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Vk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await qk(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await nZ(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await Hk(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await iZ(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await Gk(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await Wk(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},QX=async(t,e)=>{if(t.statusCode>=300)return JX(t,e);const r=await B0(t.body,e);let n={};return n=we(r),{$metadata:gt(t),...n}},JX=async(t,e)=>{const r={...t,body:await bb(t.body,e)},n=wb(t,r.body);switch(n){case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await ZX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await ob(r);case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await ab(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await rZ(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await lb(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await cb(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await Vk(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await fb(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await ub(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await db(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await hb(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await vb(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await yb(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await pb(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await sZ(r);default:const i=r.body;return mb({output:t,parsedBody:i,errorCode:n})}},XX=async(t,e)=>{const r=t.body,n=we(r),i=new Qx({$metadata:gt(t),...n});return Te(i,r)},ZX=async(t,e)=>{const r=t.body,n=we(r),i=new Hx({$metadata:gt(t),...n});return Te(i,r)},eZ=async(t,e)=>{const r=t.body,n=we(r),i=new rb({$metadata:gt(t),...n});return Te(i,r)},tZ=async(t,e)=>{const r=t.body,n=we(r),i=new nb({$metadata:gt(t),...n});return Te(i,r)},ob=async(t,e)=>{const r=t.body,n=we(r),i=new sb({$metadata:gt(t),...n});return Te(i,r)},ab=async(t,e)=>{const r=t.body,n=we(r),i=new Lx({$metadata:gt(t),...n});return Te(i,r)},rZ=async(t,e)=>{const r=t.body,n=we(r),i=new tb({$metadata:gt(t),...n});return Te(i,r)},lb=async(t,e)=>{const r=t.body,n=we(r),i=new Vx({$metadata:gt(t),...n});return Te(i,r)},cb=async(t,e)=>{const r=t.body,n=we(r),i=new Bx({$metadata:gt(t),...n});return Te(i,r)},Vk=async(t,e)=>{const r=t.body,n=we(r),i=new Gx({$metadata:gt(t),...n});return Te(i,r)},fb=async(t,e)=>{const r=t.body,n=we(r),i=new Wx({$metadata:gt(t),...n});return Te(i,r)},ub=async(t,e)=>{const r=t.body,n=we(r),i=new Kx({$metadata:gt(t),...n});return Te(i,r)},qk=async(t,e)=>{const r=t.body,n=we(r),i=new Jx({$metadata:gt(t),...n});return Te(i,r)},nZ=async(t,e)=>{const r=t.body,n=we(r),i=new Xx({$metadata:gt(t),...n});return Te(i,r)},db=async(t,e)=>{const r=t.body,n=we(r),i=new Fx({$metadata:gt(t),...n});return Te(i,r)},Hk=async(t,e)=>{const r=t.body,n=we(r),i=new Zx({$metadata:gt(t),...n});return Te(i,r)},hb=async(t,e)=>{const r=t.body,n=we(r),i=new jx({$metadata:gt(t),...n});return Te(i,r)},iZ=async(t,e)=>{const r=t.body,n=we(r),i=new ib({$metadata:gt(t),...n});return Te(i,r)},vb=async(t,e)=>{const r=t.body,n=we(r),i=new zx({$metadata:gt(t),...n});return Te(i,r)},yb=async(t,e)=>{const r=t.body,n=we(r),i=new qx({$metadata:gt(t),...n});return Te(i,r)},pb=async(t,e)=>{const r=t.body,n=we(r),i=new L0({$metadata:gt(t),...n});return Te(i,r)},sZ=async(t,e)=>{const r=t.body,n=we(r),i=new Yx({$metadata:gt(t),...n});return Te(i,r)},Gk=async(t,e)=>{const r=t.body,n=we(r),i=new eb({$metadata:gt(t),...n});return Te(i,r)},Wk=async(t,e)=>{const r=t.body,n=we(r),i=new Ux({$metadata:gt(t),...n});return Te(i,r)},gt=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),oZ=(t,e)=>sx(t,e).then(r=>e.utf8Encoder(r)),mb=ox(mt),gb=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Mn(c)};function xb(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}const B0=(t,e)=>oZ(t,e).then(r=>r.length?JSON.parse(r):{}),bb=async(t,e)=>{const r=await B0(t,e);return r.message=r.message??r.Message,r},wb=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)};class Eb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Eb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"InitiateAuthCommand",inputFilterSensitiveLog:BX,outputFilterSensitiveLog:FX,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"InitiateAuth"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return VX(e,r)}deserialize(e,r){return GX(e,r)}}class Cb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Cb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"RespondToAuthChallengeCommand",inputFilterSensitiveLog:jX,outputFilterSensitiveLog:zX,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"RespondToAuthChallenge"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return qX(e,r)}deserialize(e,r){return KX(e,r)}}class Sb extends Kl{static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}constructor(e){super(),this.input=e}resolveMiddleware(e,r,n){this.middlewareStack.use(Hl(r,this.serialize,this.deserialize)),this.middlewareStack.use(Gl(r,Sb.getEndpointParameterInstructions()));const i=e.concat(this.middlewareStack),{logger:s}=r,l={logger:s,clientName:"CognitoIdentityProviderClient",commandName:"SignUpCommand",inputFilterSensitiveLog:UX,outputFilterSensitiveLog:f=>f,[ao]:{service:"AWSCognitoIdentityProviderService",operation:"SignUp"}},{requestHandler:c}=r;return i.resolve(f=>c.handle(f.request,n||{}),l)}serialize(e,r){return HX(e,r)}deserialize(e,r){return QX(e,r)}}function zt(){return zt=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(!s.to||s.to===g7)throw new Error("Contract creation not supported");return{type:"transaction",to:s.to,value:oe.from(s.value||0).toHexString(),data:le(s.data||[])}})})}function hZ({wallet:t,token:e,to:r,value:n,chainId:i,lifespan:s,identifier:o}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc20send",token:e,to:r,value:oe.from(n).toString()}]})}function vZ({wallet:t,token:e,to:r,id:n,chainId:i,lifespan:s,identifier:o,safe:a,data:l}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc721send",token:e,to:r,id:n,safe:a,data:l}]})}function yZ({wallet:t,token:e,to:r,values:n,chainId:i,lifespan:s,identifier:o,data:a}){return zt({},On(s),{identifier:o,code:"sendTransaction",wallet:t,network:i.toString(),transactions:[{type:"erc1155send",token:e,to:r,vals:n.map(l=>({id:l.id,amount:oe.from(l.amount).toString()})),data:a}]})}function pZ({wallet:t,to:e,value:r,abi:n,func:i,args:s,chainId:o,lifespan:a,identifier:l}){return zt({},On(a),{identifier:l,code:"sendTransaction",wallet:t,network:o.toString(),transactions:[{type:"delayedEncode",to:e,value:oe.from(r).toString(),data:{abi:n,func:i,args:s}}]})}function mZ(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].network,r=t[0].wallet,n=t[0].expires-t[0].issued,i=t[0].identifier;if(!t.every(s=>s.network===e))throw new Error("All packets must have the same chainId");if(!t.every(s=>s.wallet===r))throw new Error("All packets must have the same wallet");return zt({},On(n),{identifier:i,code:"sendTransaction",network:e,wallet:r,transactions:t.reduce((s,o)=>s.concat(o.transactions),[])})}function Ru(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.txHash=="string"&&typeof t.data.receipt=="object"&&typeof t.data.request=="object"}function gZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionFailed"&&typeof t.data=="object"&&typeof t.data.request=="object"&&Array.isArray(t.data.simulations)&&typeof t.data.error=="string"}function Oc(t){return Ru(t)||gZ(t)}function xZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="signedMessage"&&typeof t.data=="object"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function bZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function wZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function EZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="getSessionResponse"&&typeof t.data=="object"&&typeof t.data.session=="string"&&typeof t.data.wallet=="string"}function CZ(t){"version"in t&&(t=t.packet);const e=Zt(AG(t));return ae(bt(e))}function SZ(t,e){const r=CZ(e);return t.signMessage(r)}class AZ{constructor(e,r){this.path="/rpc/Guard/",this.ping=n=>this.fetch(this.url("Ping"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),Ir({},n)).then(i=>Nr(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),Ir({},n)).then(i=>Nr(i).then(s=>({status:s.status}))),this.signTransactions=(n,i)=>this.fetch(this.url("SignTransactions"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.signMessage=(n,i)=>this.fetch(this.url("SignMessage"),Ir(n,i)).then(s=>Nr(s).then(o=>({sig:o.sig}))),this.getGuardSignerAddress=(n,i)=>this.fetch(this.url("GetGuardSignerAddress"),Ir(n,i)).then(s=>Nr(s).then(o=>({address:o.address}))),this.getWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("GetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({policyList:o.policyList}))),this.setWalletTransactionPolicyList=(n,i)=>this.fetch(this.url("SetWalletTransactionPolicyList"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSessionUserMapRules=(n,i)=>this.fetch(this.url("GetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({rules:o.rules}))),this.setSessionUserMapRules=(n,i)=>this.fetch(this.url("SetSessionUserMapRules"),Ir(n,i)).then(s=>Nr(s).then(o=>({}))),this.getSession=(n,i)=>this.fetch(this.url("GetSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({validated:o.validated}))),this.registerSession=(n,i)=>this.fetch(this.url("RegisterSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({sessionId:o.sessionId}))),this.startSessionValidation=(n,i)=>this.fetch(this.url("StartSessionValidation"),Ir(n,i)).then(s=>Nr(s).then(o=>({salt:o.salt}))),this.validateSession=(n,i)=>this.fetch(this.url("ValidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.invalidateSession=(n,i)=>this.fetch(this.url("InvalidateSession"),Ir(n,i)).then(s=>Nr(s).then(o=>({status:o.status}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Ir=(t={},e={})=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Nr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r});function kZ({wallet:t,chainId:e,message:r,lifespan:n}){return zt({},On(n),{code:"signMessage",wallet:t,network:e.toString(),message:r.startsWith("0x")?r:le(Zt(r))})}const Np={mainnet:1,goerli:5,polygon:137,"polygon-zkevm":1101,mumbai:80001,bsc:56,"bsc-testnet":97,arbitrum:42161,"arbitrum-nova":42170,"arbitrum-goerli":421613,optimism:10,gnosis:100,avalanche:43114,"avalanche-testnet":43113,"base-goerli":84531},RZ=Object.entries(Np).reduce((t,[e,r])=>(t[r]=e,t),{});function SE(t){if(typeof t=="number"){if(t in RZ)return t;throw new Error(`Unknown network id ${t}`)}const e=t.toLowerCase();if(e in Np)return Np[e];throw new Error(`Unknown network name ${t}`)}const Yk="https://guard2.sequence.app",Qk={rpcServer:"http://localhost:9123",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-1:000000000000:key/aeb99e0f-9e89-44de-a084-e1817af47778",endpoint:"http://localstack:4566"},PZ={rpcServer:"https://d14tu8valot5m0.cloudfront.net",kmsRegion:"us-east-2",idpRegion:"us-east-2",emailRegion:"us-east-2",keyId:"arn:aws:kms:us-east-2:170768627592:key/0fd8f803-9cb5-4de5-86e4-41963fb6043d",endpoint:void 0};var TZ=Object.freeze({__proto__:null,DEFAULT_GUARD:Yk,TEMPLATE_LOCAL:Qk,TEMPLATE_NEXT:PZ});const _Z="@0xsequence.waas.wallet",MZ="@0xsequence.waas.signer",IZ="@0xsequence.waas.status",Co=5*60;class NZ{constructor(e={network:1},r=new Kk,n=Yk){this.VERSION="0.0.0-dev1",this.config=e,this.store=r,this.guardUrl=n,this.status=new gf(this.store,IZ,"signed-out"),this.signer=new gf(this.store,MZ,void 0),this.wallet=new gf(this.store,_Z,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const e=await this.wallet.get();if(!e)throw new Error("No wallet");return e}async commonArgs(e){var r;return zt({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Co,chainId:SE(e.network||this.config.network)})}async buildPayload(e){if(!await this.isSignedIn())throw new Error("Not signed in");const r=await this.signer.get();if(!r)throw new Error("No signer");const n=new Xn(r),i=await SZ(n,e);return{version:this.VERSION,packet:e,signatures:[{session:n.address,signature:i}]}}async signUsingSessionKey(e){const r=await this.signer.get();if(!r)throw new Error("No signer");return new Xn(r).signMessage(e)}async getSignerAddress(){const e=await this.signer.get();if(!e)throw new Error("No signer");return new Xn(e).address}async getSessionID(){return this.getSignerAddress()}async getSessionShortID(){return(await this.getSessionID()).substring(2,8)}async signIn(e){await this.status.get()!=="signed-out"&&await this.completeSignOut();const n=await aZ({proof:e,lifespan:Co});return await Promise.all([this.status.set("pending"),this.signer.set(n.signer.privateKey)]),{version:this.VERSION,packet:n.packet,signatures:[]}}async signOut({lifespan:e,sessionId:r}={}){const n=await lZ({lifespan:e||Co,wallet:await this.getWalletAddress(),session:r||await this.getSignerAddress()});return this.buildPayload(n)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.signer.set(void 0),this.wallet.set(void 0)])}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get(),n=await this.signer.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending"||!n)throw new Error("No pending sign in");if(new Xn(n).address.toLowerCase()!==e.data.sessionId.toLowerCase())throw new Error("Invalid signer");return await Promise.all([this.status.set("signed-in"),this.wallet.set(e.data.wallet)]),e.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async signMessage(e){var r;const n=kZ(zt({chainId:SE(e.network||this.config.network),lifespan:(r=e.lifespan)!=null?r:Co,wallet:await this.getWalletAddress()},e));return this.buildPayload(n)}async sendTransaction(e){const r=dZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=hZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=vZ(await this.commonArgs(e));return this.buildPayload(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=yZ(await this.commonArgs(e));return this.buildPayload(r)}async callContract(e){const r=pZ(await this.commonArgs(e));return this.buildPayload(r)}async validateSession({deviceMetadata:e,redirectURL:r}){const n=await cZ({lifespan:Co,session:await this.getSignerAddress(),deviceMetadata:e,redirectURL:r,wallet:await this.getWalletAddress()});return this.buildPayload(n)}async getSession(){const e=await uZ({session:await this.getSignerAddress(),wallet:await this.getWalletAddress(),lifespan:Co});return this.buildPayload(e)}async finishValidateSession(e,r){const n=await this.getSignerAddress(),i=await this.getWalletAddress(),s=fZ(i,n,e,r,Co);return this.buildPayload(s)}async isSessionValid(){const e=await this.getSignerAddress(),r=new AZ(this.guardUrl,fetch);try{if((await r.getSession({sessionAddress:e})).validated)return!0}catch{}return!1}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async batch(e){const r=mZ(e.map(n=>n.packet));return this.buildPayload(r)}}class $Z{constructor(e,r){this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({session:a.session,data:a.data})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.listSessions=(n,i,s)=>this.fetch(this.url("ListSessions"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({sessions:a.sessions})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.dropSession=(n,i,s)=>this.fetch(this.url("DropSession"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({ok:a.ok})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.getAddress=(n,i,s)=>this.fetch(this.url("GetAddress"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({address:a.address})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Lc(n,i,s)).then(o=>Bc(o).then(a=>({code:a.code,data:a.data})),o=>{throw Fs.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Lc=(t={},e={},r=null)=>({method:"POST",headers:zt({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Bc=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),F0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(DZ[n]||li).new(r)}return r});class li extends Error{constructor(e,r,n,i,s){super(n),this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,li.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class Ab extends li{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ab.prototype)}}class Fs extends li{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Fs.prototype)}}class kb extends li{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,kb.prototype)}}class Rb extends li{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Rb.prototype)}}class Pb extends li{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pb.prototype)}}class F0 extends li{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,F0.prototype)}}class Tb extends li{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Tb.prototype)}}class _b extends li{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,_b.prototype)}}const DZ={0:Ab,[-1]:Fs,[-2]:kb,[-3]:Rb,[-4]:Pb,[-5]:F0,[-6]:Tb,[-7]:_b};function OZ(t){const e=new Uint8Array(t);return window.crypto.getRandomValues(e),Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class LZ{constructor(e,r){this.region=e,this.clientId=r}cognito(){return this.cognitoMemo||(this.cognitoMemo=new LX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new Sb({ClientId:this.clientId,Username:e,Password:"aB1%"+OZ(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new Eb({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:e}}))}async initiateAuth({email:e}){let r;try{r=await this.signIn(e)}catch(n){if(n instanceof L0&&n.message.includes("user not found"))await this.signUp(e),r=await this.signIn(e);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:e}}async finalizeAuth({instance:e,email:r,answer:n}){const i=await this.cognito().send(new Cb({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n}}));if(!i.AuthenticationResult||!i.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:i.AuthenticationResult.IdToken}}}function Bv(t){return"0x"+Array.from(typeof t=="string"?new TextEncoder().encode(t):t,e=>e.toString(16).padStart(2,"0")).join("")}function BZ(t){return new Uint8Array(t.substring(2).match(/.{1,2}/g).map(e=>parseInt(e,16)))}function FZ(t){return JSON.parse(atob(t))}function jZ(t,e){const r=t.key,n=r?FZ(r):{},i=zt({},e,t,n);if(i.network===void 0&&(i.network=1),i.tenant===void 0)throw new Error("Missing tenant");if(i.secret===void 0)throw new Error("Missing secret");if(i.identityPoolId===void 0)throw new Error("Missing identityPoolId");return i}class zZ{constructor(e,r=Qk,n=new Kk){this.validationRequiredCallback=[],this.store=n,this.config=jZ(e,r),this.waas=new NZ(zt({network:1},e),this.store),this.client=new $Z(this.config.rpcServer,window.fetch),this.kmsKey=new gf(this.store,"@0xsequence.waas.auth.key",void 0),this.deviceName=new gf(this.store,"@0xsequence.waas.auth.deviceName",void 0)}get email(){if(this.emailClient)return this.emailClient;if(!this.config.emailRegion)throw new Error("Missing emailRegion");if(!this.config.emailClientId)throw new Error("Missing emailClientId");return this.emailClient=new LZ(this.config.emailRegion,this.config.emailClientId),this.emailClient}async onValidationRequired(e){return this.validationRequiredCallback.push(e),()=>{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==e)}}async handleValidationRequired({onValidationRequired:e}={}){var r;if(!(e?e():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}async useStoredCypherKey(){const e=await this.kmsKey.get();if(!e)throw new Error("No stored key");const r=JSON.parse(e);if(r.encryptedPayloadKey&&r.plainHex)return r;throw new Error("Invalid stored key")}async saveCypherKey(e){const r=await e.send(new Dx({KeyId:this.config.keyId,KeySpec:"AES_256"}));if(!r.CiphertextBlob||!r.Plaintext)throw new Error("invalid response from KMS");return this.kmsKey.set(JSON.stringify({encryptedPayloadKey:Bv(r.CiphertextBlob),plainHex:Bv(r.Plaintext)}))}async sendIntent(e){const r={sessionId:await this.waas.getSessionID(),intentJson:JSON.stringify(e,null,0)},{args:n,headers:i}=await this.preparePayload(r);return this.client.sendIntent(n,i)}async preparePayload(e){const{encryptedPayloadKey:r,plainHex:n}=await this.useStoredCypherKey(),i={name:"AES-CBC",iv:window.crypto.getRandomValues(new Uint8Array(16))},s=await window.crypto.subtle.importKey("raw",BZ(n),i,!1,["encrypt"]),o=new TextEncoder().encode(JSON.stringify(e)),a=await window.crypto.subtle.encrypt(i,s,o),l=Bv(new Uint8Array([...i.iv,...new Uint8Array(a)])),c=await this.waas.signUsingSessionKey(o);return{headers:{"X-Sequence-Tenant":this.config.tenant},args:{encryptedPayloadKey:r,payloadCiphertext:l,payloadSig:c}}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken}),i=yJ(e.idToken);if(!i.iss)throw new Error("Invalid idToken");const s=new UJ({region:this.config.kmsRegion,endpoint:this.config.endpoint,credentials:dJ({identityPoolId:this.config.identityPoolId,logins:{[i.iss.replace("https://","").replace("http://","")]:e.idToken},clientConfig:{region:this.config.idpRegion}})});await this.saveCypherKey(s);const o={projectId:this.config.tenant,idToken:e.idToken,sessionAddress:n.packet.session,friendlyName:r,intentJSON:JSON.stringify(n,null,0)},{args:a,headers:l}=await this.preparePayload(o),c=await this.client.registerSession(a,l);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:c.session.id,wallet:c.data.wallet}}),this.deviceName.set(r),c.session.address}async refreshSession(){throw new Error("Not implemented")}async getSessionID(){return this.waas.getSessionID()}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionID(),i=e||n;try{const s={dropSessionId:i,sessionId:n},{args:o,headers:a}=await this.preparePayload(s);await this.client.dropSession(o,a)}catch(s){if(r)throw s;console.error(s)}i.toLowerCase()===n.toLowerCase()&&(await this.waas.completeSignOut(),this.kmsKey.set(void 0),this.deviceName.set(void 0))}async listSessions(){const e={sessionId:await this.waas.getSessionID()},r=await this.waas.getSessionID().then(o=>o.toLowerCase()),{args:n,headers:i}=await this.preparePayload(e);return(await this.client.listSessions(n,i)).sessions.map(o=>zt({},o,{isThis:o.address.toLowerCase()===r}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.waas.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!wZ(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const e=await this.waas.getSession(),r=await this.sendIntent(e);if(!EZ(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSignerAddress()}`;return zt({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if(bZ(i)&&await this.handleValidationRequired(e.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(e){const r=await this.waas.signMessage(await this.useIdentifier(e));return this.trySendIntent(e,r,xZ)}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendIntent(e,r,Oc)}}function UZ(){const[t,e]=g.useState(),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(),[l,c]=g.useState(!1),[f,u]=g.useState();g.useEffect(()=>{d()},[]);const d=async()=>{const m=Pt.getAddress();e(await Jk.getBalance(m))},v=async(m,y)=>{try{u(void 0),c(!0);const w=await Pt.sendTransaction({transactions:[{to:m,value:vG(y)}]});Ru(w)?a(w.data.txHash):u(w.data.error),c(!1)}catch(w){console.error(w),c(!1)}};return U.jsxs(ie,{children:[U.jsxs(Le,{variant:"normal",fontWeight:"bold",children:["Native token balance: ",hG(t||0)," MATIC"]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:d}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenTo",type:"text",onChange:m=>{n(m.target.value)},value:r,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"sendNativeTokenAmount",type:"text",onChange:m=>{s(m.target.value)},value:i,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),f&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",f]}),l?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ms,{})}):U.jsx(Yr,{marginTop:"5",label:"Send native token",disabled:r===""&&i==="",onClick:()=>v(r,i)}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function VZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState(!0),[o,a]=g.useState(),l=async c=>{s(!0),e(void 0);try{await Pt.dropSession({sessionId:c}),e(await Pt.listSessions())}catch(f){a(f.message),e(await Pt.listSessions())}s(!1)};return g.useEffect(()=>{Promise.all([Pt.listSessions(),Pt.getSessionID()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),U.jsxs(ie,{children:[U.jsxs(ie,{marginBottom:"5",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&U.jsx(U.Fragment,{children:t.map(c=>U.jsxs(ie,{children:[c.friendlyName,!c.isThis&&U.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&U.jsx(U.Fragment,{children:" (current)"})]},c.id))}),i&&U.jsx(ms,{})]}),o&&U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function qZ(){const[t,e]=g.useState(""),[r,n]=g.useState(),i=async()=>{const s=await Pt.signMessage({message:t});n(s.data.signature)};return U.jsxs(ie,{children:[U.jsx(gr,{name:"signMessageText",type:"text",onChange:s=>{e(s.target.value),r!=""&&n("")},value:t,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),U.jsx(Yr,{marginTop:"5",label:"Sign message",disabled:t==="",onClick:()=>i()}),r&&r!==""&&U.jsxs(ie,{flexDirection:"column",marginTop:"5",children:[U.jsxs(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",t,":"]}),U.jsx(ie,{children:U.jsx(Le,{as:"p",wordBreak:"break-word",children:r})})]})]})}function HZ(){const[t,e]=g.useState(""),[r,n]=g.useState(""),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(),[f,u]=g.useState(!1),[d,v]=g.useState(),m=async()=>{try{v(void 0),u(!0);const y=await Pt.callContract({to:t,abi:r,func:i,args:JSON.parse(o),value:0});Ru(y)?c(y.data.txHash):v(y.data.error),u(!1)}catch(y){console.error(y),u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAddress",type:"text",onChange:y=>{e(y.target.value)},value:t,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractAbi",type:"text",onChange:y=>{n(y.target.value)},value:r,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractMethod",type:"text",onChange:y=>{s(y.target.value)},value:i,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{name:"callContractArgs",type:"text",onChange:y=>{a(y.target.value)},value:o,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),d&&U.jsxs(ie,{marginTop:"3",children:["Transaction failed: ",d]}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ms,{})}):U.jsx(Yr,{marginTop:"5",label:"Call contract",disabled:t===""&&r===""&&i===""&&o==="",onClick:()=>m()}),l&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),U.jsx("br",{}),U.jsx("a",{href:`https://polygonscan.com/tx/${l}`,target:"_blank",rel:"noopener noreferrer",children:l})]})]})}const AE=[{label:"Custom Token",value:""},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function GZ(){const[t,e]=g.useState(AE[0].value),[r,n]=g.useState(""),[i,s]=g.useState(!0),[o,a]=g.useState("---"),[l,c]=g.useState(""),[f,u]=g.useState(""),[d,v]=g.useState(""),[m,y]=g.useState(""),[w,x]=g.useState(!1),[b,S]=g.useState(0);g.useEffect(()=>{A(r)},[r]);const A=async $=>{if(!Vz($)){a("---");return}a("...");const O=new nH($,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],Jk),[H,Y,Q]=await Promise.all([O.balanceOf(Pt.getAddress()),O.decimals(),O.symbol()]);S(Y),a(`${M9(H,Y)} ${Q}`)},_=async()=>{try{y(""),x(!0);const $=await Pt.sendERC20({token:r,to:l,value:Ng(f,b)});Ru($)?v($.data.txHash):y($.data.error)}catch($){console.error($)}finally{x(!1)}},D=$=>{e($),$===""?(n(""),s(!0)):(n($),s(!1))};return U.jsxs(ie,{children:[U.jsxs(ie,{marginTop:"5",children:[U.jsx(TA,{name:"token",options:AE,value:t??"",onValueChange:$=>D($)}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:r,disabled:!i,onChange:$=>n($.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),U.jsxs(ie,{marginTop:"3",children:[U.jsxs(Le,{variant:"normal",children:["Token Balance: ",o]}),U.jsx(Yr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>A(r)})]}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:l,onChange:$=>c($.target.value),placeholder:"Destination Address"})}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:f,onChange:$=>u($.target.value),placeholder:"Amount"})}),m&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",m]})}),w?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ms,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Token",onClick:_}),d&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${d}`,target:"_blank",rel:"noopener noreferrer",children:d})]})]})}function WZ(t){var a;const[e,r]=g.useState(""),[n,i]=g.useState("");g.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return U.jsxs(ie,{style:s,children:[U.jsx(ie,{style:o,children:U.jsx(TA,{name:`sendERC1155TokenId${t.index}`,value:e,disabled:!t.options,onValueChange:l=>{r(l)},options:((a=t.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),U.jsx(ie,{style:o,children:U.jsx(gr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),U.jsx(ie,{style:o,children:U.jsx(Yr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function KZ(){const[t,e]=g.useState(""),[r,n]=g.useState([]),[i,s]=g.useState(""),[o,a]=g.useState(""),[l,c]=g.useState(""),[f,u]=g.useState(!1),[d,v]=g.useState(void 0),m=()=>{n([...r,{tokenId:"",amount:""}])},y=async()=>{{console.error("Missing INDEXER_API_KEY, ERC1155 token metadata will not be fetched");return}};g.useEffect(()=>{y()},[t]);const w=(S,A)=>{const _=[...r];_[S]=A,n(_)},x=S=>{const A=[...r];A.splice(S,1),n(A)},b=async()=>{try{c(""),u(!0);const S=await Pt.sendERC1155({to:i,token:t,values:r.map(A=>({id:A.tokenId,amount:Ng(A.amount,0)}))});Ru(S)?a(S.data.txHash):c(S.data.error)}catch(S){console.error(S)}finally{u(!1)}};return U.jsxs(ie,{children:[U.jsx(ie,{marginBottom:"5",children:U.jsx(gr,{type:"text",value:t,onChange:S=>e(S.target.value),placeholder:"Token Contract Address"})}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Yr,{label:"Fetch metadata",onClick:()=>y()})}),r.map((S,A)=>U.jsx(ie,{marginBottom:"3",children:U.jsx(WZ,{index:A,options:d,onChange:(_,D,$)=>w(_,{tokenId:D,amount:$}),removeTokenEntry:x})},A)),U.jsx(Yr,{label:"Add Token",onClick:m}),U.jsx(ie,{marginTop:"5",children:U.jsx(gr,{type:"text",value:i,onChange:S=>s(S.target.value),placeholder:"Destination Address"})}),l&&U.jsx(ie,{marginTop:"3",children:U.jsxs(Le,{color:"error",children:["Error: ",l]})}),f?U.jsx(ie,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:U.jsx(ms,{})}):U.jsx(Yr,{marginTop:"5",label:"Send Tokens",onClick:b}),o&&U.jsxs(ie,{marginTop:"3",children:[U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),U.jsx("a",{href:`https://polygonscan.com/tx/${o}`,target:"_blank",rel:"noopener noreferrer",children:o})]})]})}function YZ(){const[t,e]=g.useState(),[r,n]=g.useState(),[i,s]=g.useState([]),[o,a]=g.useState(!1),[l,c]=g.useState(!1);return g.useEffect(()=>{Pt.getAddress().then(f=>{e(f)}).catch(f=>{n(f.message)})},[]),g.useEffect(()=>{Pt.isSignedIn().then(f=>{f||Lo.navigate("/login")})},[]),g.useEffect(()=>{const f=i.join("");f.length===6&&(c(!0),Pt.finishValidateSession(f))},[i]),g.useEffect(()=>{const f=Pt.onValidationRequired(()=>{a(!0),Pt.waitForSessionValid(6e5,4e3).then(u=>{console.log("isValid",u),s([]),a(!1),c(!1)})});return()=>{f.then(u=>u())}},[]),U.jsxs(U.Fragment,{children:[U.jsx(lS,{children:o&&U.jsx(IL,{children:U.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:U.jsxs(ie,{flexDirection:"column",alignItems:"center",children:[U.jsx(Le,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),U.jsx(JA,{value:i,digits:6,onChange:s}),U.jsx(ie,{marginTop:"5",children:l&&U.jsx(ms,{})})]})})})}),U.jsxs(ie,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[U.jsx(ie,{marginBottom:"10",children:U.jsx(XA,{})}),U.jsxs(ie,{marginBottom:"5",flexDirection:"row",children:[U.jsxs(Le,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),U.jsx(Yr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await Pt.dropSession({strict:!1})}catch(f){console.warn(`Could not drop session: ${f.message}`)}Wj(),Lo.navigate("/login")}})]}),U.jsx(wo,{background:"buttonGlass"}),U.jsx(ie,{marginBottom:"5",children:U.jsx(Le,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),U.jsx(ie,{marginBottom:"4",children:t?U.jsx(ie,{children:U.jsx(Le,{children:t})}):U.jsx(ms,{})}),U.jsx(ie,{children:r&&U.jsxs(Le,{children:["Error fetching wallet address: ",r]})}),U.jsx(wo,{background:"buttonGlass"}),U.jsx(VZ,{}),U.jsxs(cc,{marginY:"3",label:"Send native token transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(UZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Send ERC20 transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(GZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Send ERC1155 transaction",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(KZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Sign a message",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(qZ,{})]}),U.jsxs(cc,{marginY:"3",label:"Call contracts",children:[U.jsx(wo,{background:"buttonGlass"}),U.jsx(HZ,{})]})]})]})}const QZ="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",JZ="eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyIsImVtYWlsQ2xpZW50SWQiOiI1Zmw3ZGc3bXZ1NTM0bzl2ZmpiYzZoajMxcCIsImlkcFJlZ2lvbiI6InVzLWVhc3QtMiJ9",Jk=new fG("https://nodes.sequence.app/polygon"),Pt=new zZ({network:"polygon",key:JZ},TZ.TEMPLATE_NEXT),Lo=Lj([{path:"/login",element:U.jsx(SG,{})},{path:"/",element:U.jsx(YZ,{})}]);Fv.createRoot(document.getElementById("root")).render(U.jsx(cr.StrictMode,{children:U.jsx(AF,{children:U.jsx(Uj,{clientId:QZ,children:U.jsx(Nj,{router:Lo})})})})); diff --git a/index.html b/index.html index b3aa298..fff0733 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Demo Waas App - +