plutosdk 1.0.25-beta.0 → 1.0.25-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/pluto-sdk.js +57 -57
  2. package/package.json +1 -1
package/dist/pluto-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function A(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(A)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,P=R.port2;R.port1.onmessage=A,C=function(){P.postMessage(null)}}else C=function(){y(A,0)};function O(t,n){S=y(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var A=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function P(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return P((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+R(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(A,"$&/")+"/"),P(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=P(i=n[g],r,o,s=h+R(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=P(i=i.value,r,o,s=h+R(i,g++),a);else if("object"===s){if("function"==typeof n.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},j={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=j,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:L}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,M)}catch(i){M(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},A={};function R(){if(k)return A;k=1;var e=C();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,A.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},A.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},A.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},A.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},A.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},A.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},A.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},A.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},A.requestFormReset=function(e){r.d.r(e)},A.unstable_batchedUpdates=function(e,t){return e(t)},A.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},A.useFormStatus=function(){return i.H.useHostTransitionStatus()},A.version="19.2.0",A}function P(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=R(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=P();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(i(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var M=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===M?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case A:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function U(e){return{current:e}}function F(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=U(null),K=U(null),G=U(null),Q=U(null);function Y(e,t){switch(B(G,t),B(K,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(V),B(V,e)}function Z(){F(V),F(K),F(G)}function X(e){null!==e.memoizedState&&B(Q,e);var t=V.current,n=wd(t,e.type);t!==n&&(B(K,e),B(V,n))}function J(e){K.current===e&&(F(V),F(K)),Q.current===e&&(F(Q),pf._currentValue=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Ae(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Ae(r):0!==(a&=s)?o=Ae(a):n||0!==(n=s&~e)&&(o=Ae(n)):0!==(s=r&~i)?o=Ae(s):0!==a?o=Ae(a):n||0!==(n=r&~e)&&(o=Ae(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Pe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Le(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Me(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Rf(e.type)}function Ue(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Fe=Math.random().toString(36).slice(2),Be="__reactFiber$"+Fe,qe="__reactProps$"+Fe,He="__reactContainer$"+Fe,Ve="__reactEvents$"+Fe,Ke="__reactListeners$"+Fe,Ge="__reactHandles$"+Fe,Qe="__reactResources$"+Fe,Ye="__reactMarker$"+Fe;function Ze(e){delete e[Be],delete e[qe],delete e[Ve],delete e[Ke],delete e[Ge]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[: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]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ft(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Tt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function At(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Rt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&At(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&At(e,a,t[a])}function Pt(e){if(-1===e.indexOf("-"))return!1;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 Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Lt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Mt(e){return Lt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[qe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),qt=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(ep){qt=!1}var Vt=null,Kt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function Xt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Xt,this.isPropagationStopped=Xt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),sn=Jt(an),ln=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(ln),un=Jt(u({},ln,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),fn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,An=null;Bt&&"documentMode"in document&&(An=document.documentMode);var Rn=Bt&&"TextEvent"in window&&!An,Pn=Bt&&(!Tn||An&&8<An&&11>=An),On=String.fromCharCode(32),Ln=!1;function Mn(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function Un(e){Zu(e,0)}function Fn(e){if(mt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var qn=!1;if(Bt){var Hn;if(Bt){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Hn=Vn}else Hn=!1;qn=Hn&&(!document.documentMode||9<document.documentMode)}function Gn(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Xn(e,t){if("click"===e)return Fn(t)}function Jn(e,t){if("input"===e||"change"===e)return Fn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Ar="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Rr=[],Pr=0,Or=0;function Lr(){for(var e=Pr,t=Or=Pr=0;t<e;){var n=Rr[t];Rr[t++]=null;var r=Rr[t];Rr[t++]=null;var o=Rr[t];Rr[t++]=null;var i=Rr[t];if(Rr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Nr(n,o,i)}}function Mr(e,t,n,r){Rr[Pr++]=e,Rr[Pr++]=t,Rr[Pr++]=n,Rr[Pr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Mr(e,t,n,r),$r(e)}function Ir(e,t){return Mr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(e,t,n,r){return new Wr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=zr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qr(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ur(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case A:return(e=zr(31,n,t,i)).elementType=A,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=jt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Ad(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Lc?Lc=e:Lc.push.apply(Lc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=U(null),_o=null,To=null;function Ao(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ro(e){e._currentValue=Eo.current,F(Eo)}function Po(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Po(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Po(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Lo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function Mo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&jo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Uo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=U(null);function Zo(){var e=Yo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){B(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Uo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(jt,jt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(jt,jt);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw si=t,ei;throw t}}var si=null;function li(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=qr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return pi(n=qr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case T:return p(e,t=ai(t),n)}if(I(t)||L(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||L(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(d);f<s.length;f++)null!==(h=y(d,r,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(L(u)){if("function"!=typeof(v=L(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return Mr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Ai(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ri(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ai(n[e],t)}var Pi=U(null),Oi=U(0);function Li(e,t){B(Oi,e=Sc),B(Pi,t),Sc=e|t.baseLanes}function Mi(){B(Oi,Sc),B(Pi,Pi.current)}function ji(){Sc=Oi.current,F(Pi),F(Oi)}var Ii=U(null),Ni=null;function $i(e){var t=e.alternate;B(Fi,1&Fi.current),B(Ii,e),null===Ni&&(null===t||null!==Pi.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Fi,Fi.current),B(Ii,Ii.current)}function Ui(e){F(Ii),Ni===e&&(Ni=null),F(Fi)}var Fi=U(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Md(n)||jd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Mo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=R;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Aa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Aa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=N.T,a={};N.T=a;try{var s=n(o,r),l=N.S;null!==l&&l(a,s),Ra(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Ra(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Ra(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Pa(e,t,n)},function(n){return Oa(e,t,n)}):Pa(e,t,n)}function Pa(e,t,n){t.status="fulfilled",t.value=n,La(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Aa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,La(t),t=t.next}while(t!==r)}e.action=null}function La(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ma(e,t){return t}function ja(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,Ma)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(a){if(a===ei)throw ni;throw a}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return da().memoizedState}function Ua(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(1|t,i,n,r))}function Ba(e,t){Ua(8390656,8,e,t)}function qa(e,t){Fa(2048,8,e,t)}function Ha(e){var t=da().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&gc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Ga(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Qa(e,t,n){n=null!=n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&qi&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Hi.lanes|=e,_c|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Pi.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=jr(e,t,n,r))&&(Yc(n,e,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Mr(e,t,o,0),null===mc&&Lr(),!1}catch(l){}if(null!==(n=jr(e,t,o,r)))return Yc(n,e,r),ms(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:qu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ua(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){Ua(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Hi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Hi,i=ua();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&bc||wa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ba(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Es(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Ar(e)}function Ts(e){console.error(e)}function As(e){Ar(e)}function Rs(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ps(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){Rs(e,t)},n}function Ls(e){return(e=xi(e)).tag=3,e}function Ms(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Ps(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Ps(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var js=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return jo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ur(i)||void 0!==i.defaultProps||null!==n.compare?((e=qr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Fs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Li(t,i):Mi(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Li(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),Mi(),zi());return Ns(e,t,o,n),t.child}function Us(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fs(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Uo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Mi(),Wi(t),null!==e&&Lo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ui(t),t.memoizedState=null,e}function Hs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Vs(e,t,n,r,o){return jo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return jo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(jo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&Mo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Mo(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):Ns(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return Co(),t.flags|=256,Ns(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Jo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Rc),e}function Js(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Fi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?$i(t):zi(),(e=po)?null!==(e=null!==(e=Ld(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return jd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(zi(),l=tl({mode:"hidden",children:l},a=t.mode),i=Hr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(null,i)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Us(null,i));else if($i(t),jd(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Lo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),js;Md(l)||lu(),t=nl(e,t,n)}else Md(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Fr(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Us(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Uo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(e.child,i)):($i(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=zr(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Po(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Fi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Fi,a),Ns(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Lo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Mo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Ao(0,Uo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Ao(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Lo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Fi,Fi.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Ao(0,Uo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=j(e)||e,Error(r(306,t,""))}Ur(e)?(o=Es(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Vs(null,t,e,o,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,i=Es(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,wi(e,t),Ti(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Ao(0,Uo,o),o!==a.cache&&Oo(t,[Uo],n,!0),_i(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Ad(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Ao(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,jo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Us(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Ld(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Lo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),js;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Fr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return jo(t),o=Io(Uo),null===e?(null===(i=Zo())&&(i=mc,a=Fo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Ao(0,Uo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),_i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Ao(0,Uo,o)):(o=a.cache,Ao(0,Uo,o),o!==i.cache&&Oo(t,[Uo],n,!0))),Ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Le():536870912,e.lanes|=t,Pc|=t)}function pl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ro(Uo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ui(t),t):(Ui(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Ui(t),t):(Ui(t),null)}return Ui(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Ro(t.type),hl(t),null;case 19:if(F(Fi),null===(o=t.memoizedState))return hl(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)pl(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Bi(e))){for(t.flags|=128,pl(o,!1),e=a.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Fi,1&Fi.current|2),ho&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Nc&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Bi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-o.renderingStartTime>Nc&&536870912!==n&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Fi.current,B(Fi,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ui(t),ji(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&F(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ro(Uo),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ro(Uo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ui(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ui(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Fi),null;case 4:return Z(),null;case 10:return Ro(t.type),null;case 22:case 23:return Ui(t),ji(),null!==e&&F(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ro(Uo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ro(Uo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Ui(t);break;case 13:Ui(t);break;case 19:F(Fi);break;case 10:Ro(t.type);break;case 22:case 23:Ui(t),ji(),null!==e&&F(Yo);break;case 24:Ro(Uo)}}function bl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Eu(t,t.return,s)}}function vl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){Eu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){Eu(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ri(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Pt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Ad(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Ad(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jt));else if(4!==r&&(27===r&&Ad(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Rl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Ad(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Rl(e,t,n),e=e.sibling;null!==e;)Rl(e,t,n),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ll=!1,Ml=!1,jl="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ri(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Pl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Fl(e,n);break;case 13:Yl(e,n),4&r&&Bl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Ru.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ll,o=Ol;var i=Ll;Ol=r,(Ll=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ll=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ll||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ll||kl(n,t);var r=Dl,o=Wl;Ad(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ll||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Rd(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Rd(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ll||vl(4,n,t),zl(e,t,n);break;case 1:Ll||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ll=(r=Ll)||null!==n.memoizedState,zl(e,t,n),Ll=r;break;default:zl(e,t,n)}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){Eu(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Kf(e)}catch(n){Eu(t,t.return,n)}}function ql(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new jl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new jl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Pu.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Ad(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Ul(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ll||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ll||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ll||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ll||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ml=!0);break;case 6:if(Hl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Eu(e,e.return,g)}}break;case 3:if(rf=null,i=Vl,Vl=Bd(t.containerInfo),Hl(t,e),Vl=i,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Eu(e,e.return,g)}Ml&&(Ml=!1,Ql(e));break;case 4:o=Vl,Vl=Bd(e.stateNode.containerInfo),Hl(t,e),Gl(e),Vl=o;break;case 12:default:Hl(t,e),Gl(e);break;case 31:case 19:Hl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 13:Hl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(jc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ll;if(Ol=u||i,Ll=d||c,Hl(t,e),Ll=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ll||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Pd(h,!0):Pd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Rl(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Rl(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Al(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Ai(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Pl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Fl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),Cl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Jl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Eu(t,t.return,l)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),bl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Jl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Jl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Ud.get(o))&&tf(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Uo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Ac=0,Rc=0,Pc=0,Oc=null,Lc=null,Mc=!1,jc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=0,zc=null,Uc=null,Fc=0,Bc=0,qc=null,Hc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==bc?bc&-bc:null!==N.T?qu():ze()}function Qc(){if(0===Rc)if(536870912&bc&&!ho)Rc=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Rc=e}return null!==(e=Ii.current)&&(e.flags|=32),Rc}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Rc,!1)),je(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Rc,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Pe(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Pe(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Lr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Lc,Lc=i,null!==a&&(null===Lc?Lc=a:Lc.push.apply(Lc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Rc,!xc);break e;case 2:Lc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=jc+300-ue())){if(eu(o,t,Rc,!xc),0!==Re(o,0,!0))break e;Fc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Lc,$c,Mc,t,Rc,Tc,Pc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Lc,$c,Mc,t,Rc,Tc,Pc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jt});var h=(62914560&i)===i?jc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Fc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Ac,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Fc=0,nu(),mc=e,yc=n=Fr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Pe(e,t),kc=!1,Pc=Rc=Ac=Tc=_c=Ec=0,Lc=Oc=null,Mc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Lr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===js?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,Rs(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Rc,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Lr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Lo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Ms(i=Ls(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,Rs(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,Rs(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),Uc=t,zc=e,Fc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Uc,n=Fc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Uc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Fc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Fc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Fc;if(Wc=0,Uc=zc=null,Fc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(je(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ls(2),2))&&(Ms(n,r,t,e),je(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-jc?!(2&gc)&&ru(e,0):Ac|=n,Pc===bc&&(Pc=0)),$u(e)}function Au(e,t){0===t&&(t=Le()),null!==(e=Ir(e,t))&&(je(e,t),$u(e))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Au(e,n)}var Ou=null,Lu=null,Mu=!1,ju=!1,Iu=!1,Nu=0;function $u(e){e!==Lu&&null===e.next&&(null===Lu?Ou=Lu=e:Lu=Lu.next=e),ju=!0,Mu||(Mu=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&ju){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Re(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Pe(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){ju=Mu=!1;var e=0;0!==Nu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Nu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=Uu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Lu=n)):(n=r,(0!==e||3&i)&&(ju=!0)),r=o}0!==Wc&&5!==Wc||Du(e),0!==Nu&&(Nu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Re(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Pe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Fu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Fu(e,t){if(0!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Re(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Uu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Fu.bind(null,e):null)}function Bu(e,t){if(Cu())return null;Zc(e,t,!0)}function qu(){if(0===Nu){var e=Vo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Mt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ku=0;Ku<_r.length;Ku++){var Gu=_r[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(br,"onAnimationEnd"),Tr(vr,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(xr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Ar(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Ar(u)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Rf(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ut(function(){var r=a,o=Nt(n),s=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case br:case vr:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Pt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Mn(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Pn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=jn(n))&&(x.data=w))),(w=Rn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Ln=!0,On);case"textInput":return(e=t.data)===On&&Ln?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&Mn(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||_t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&_t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":Rt(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Mt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&fd(e,t,"name",i.name,i,null),fd(e,t,"formEncType",i.formEncType,i,null),fd(e,t,"formMethod",i.formMethod,i,null),fd(e,t,"formTarget",i.formTarget,i,null)):(fd(e,t,"encType",i.encType,i,null),fd(e,t,"method",i.method,i,null),fd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Mt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=jt);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Mt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":Rt(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?_t(e,o):("number"==typeof o||"bigint"==typeof o)&&_t(e,""+o);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Pt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Ad(e){return"head"===e}function Rd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Pd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ld(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Md(e){return"$?"===e.data||"$~"===e.data}function jd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Wd(e,t,n){switch(t=bd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Ud=new Map,Fd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=$.d;$.d={f:function(){var e=qd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):qd.r(e)},D:function(e){qd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){qd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){qd.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Ud.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){qd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Ud.has(i)&&(e=u({rel:"modulepreload",href:e},t),Ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){qd.X(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){qd.S(e,t,n);var r=Hd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(i))&&tf(e,n);var l=a=r.createElement("link");nt(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){qd.M(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Fd.has(o)||(Fd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var i,a,s,l,c=(c=G.current)?Bd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+vt(e)+'"]'}function Xd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",i),ef(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Qd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Ud.get(i))&&tf(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",o),t.state.loading|=4,ef(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Xd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Ud.get(a))&&nf(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),hd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Me(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Me(0),this.hiddenUpdates=Me(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=zr(3,null,null,t),e.current=i,i.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Lf=Wf(Lf,e,t,n,r,o),!0;case"mouseover":return Mf=Wf(Mf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jf.set(i,Wf(jf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ae(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Af(e=Nt(e))}var Tf=null;function Af(e){if(Tf=null,null!==(e=Xe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tf=e,null}function Rf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Pf=!1,Of=null,Lf=null,Mf=null,jf=new Map,If=new Map,Nf=[],$f="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Lf=null;break;case"mouseover":case"mouseout":Mf=null;break;case"pointerover":case"pointerout":jf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_f(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Ff(e,t,n){Uf(e)&&n.delete(t)}function Bf(){Pf=!1,null!==Of&&Uf(Of)&&(Of=null),null!==Lf&&Uf(Lf)&&(Lf=null),null!==Mf&&Uf(Mf)&&(Mf=null),jf.forEach(Ff),If.forEach(Ff)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Pf||(Pf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(t){Hf!==t&&(Hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hf===t&&(Hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Af(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Lf&&qf(Lf,e),null!==Mf&&qf(Mf,e),jf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Af(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=As;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=gf(e,1,!1,null,0,n,i,null,a,s,l,Gf),e[He]=t.current,td(e),new Qf(t)},p.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=_s,l=Ts,c=As,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,je(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var L=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),M=C();const j=r(M),I=t({__proto__:null,default:j},[M]);function N(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},U={};function F(){if(D)return U;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return U.ContextConsumer=i,U.ContextProvider=a,U.Element=e,U.ForwardRef=s,U.Fragment=n,U.Lazy=d,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=l,U.SuspenseList=c,U.isContextConsumer=function(e){return h(e)===i},U.isContextProvider=function(e){return h(e)===a},U.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},U.isForwardRef=function(e){return h(e)===s},U.isFragment=function(e){return h(e)===n},U.isLazy=function(e){return h(e)===d},U.isMemo=function(e){return h(e)===u},U.isPortal=function(e){return h(e)===t},U.isProfiler=function(e){return h(e)===o},U.isStrictMode=function(e){return h(e)===r},U.isSuspense=function(e){return h(e)===l},U.isSuspenseList=function(e){return h(e)===c},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},U.typeOf=h,U}function B(){return W||(W=1,z.exports=F()),z.exports}var q=B();function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function V(e){if(M.isValidElement(e)||q.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V(e[n])}),t}function K(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{M.isValidElement(t[o])||q.isValidElementType(t[o])?r[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?r[o]=K(e[o],t[o],n):n.clone?r[o]=H(t[o])?V(t[o]):t[o]:r[o]=t[o]}),r}function G(e,t){return t?K(e,t,{clone:!1}):e}function Q(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Y={xs:0,sm:600,md:900,lg:1200,xl:1536},Z={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Y[e]}px)`},X={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Y[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function J(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Z;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Z;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:X,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Y).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function ee(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function te(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ne({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function re(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oe(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:re(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=re(e.theme,r)||{};return J(e,i,e=>{let r=oe(a,o,e);return e===r&&"string"==typeof e&&(r=oe(a,o,`${t}${"default"===e?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Ae=xe("borderTopColor"),Re=xe("borderRightColor"),Pe=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Le=xe("outline",we),Me=xe("outlineColor"),je=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fe(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:he(t,e)});return J(e,e.borderRadius,n)}return null};je.propTypes={},je.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Ae,Re,Pe,Oe,je,Le,Me);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),Ue=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Y[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:We(t)}};return J(e,e.maxWidth,t)}return null};Ue.filterProps=["maxWidth"];const Fe=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,Ue,Fe,Be,qe,He,ie({prop:"boxSizing"}));const Ve={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:je},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Ue},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function At(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rt(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Pt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,jt(91===e?e+2:40===e?e+1:e)))}function Lt(e){for(;(vt=Et())&&vt<33;)St();return At(e)>2||At(vt)>3?"":" "}function Mt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function jt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&jt(vt);break;case 40:41===e&&jt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!At(Et());)St();return Tt(e,bt)}function $t(e){return Pt(Dt("",null,null,null,[""],e=Rt(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Lt(h);break;case 92:k+=Mt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ut(k+";",r,n,d-1):Ut(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function Ut(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ft(e,t){for(var n="",r=pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+Ft(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ht=function(e,t,n){for(var r=0,o=0;r=o,o=Et(),38===r&&12===o&&(t[n]=1),!At(o);)St();return Tt(e,bt)},Vt=function(e,t){return Pt(function(e,t){var n=-1,r=44;do{switch(At(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(Rt(e),t))},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(n))&&!r){Kt.set(e,!0);for(var o=[],i=Vt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yt(e,t){switch(function(e,t){return 45^ut(e,0)?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Xe+e+Ze+e+e;case 6828:case 4268:return Je+e+Ze+e+e;case 6165:return Je+e+Ze+"flex-"+e+e;case 5187:return Je+e+lt(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Je+e+Ze+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return Je+e+Ze+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Ze+lt(e,"shrink","negative")+e;case 5292:return Je+e+Ze+lt(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+lt(e,"-grow","")+Je+e+Ze+lt(e,"grow","positive")+e;case 4554:return Je+lt(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ut(e,t+1)){case 109:if(45!==ut(e,t+4))break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Xe+(108==ut(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch")?Yt(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ut(e,t+1))break;case 6444:switch(ut(e,ft(e)-3-(~ct(e,"!important")&&10))){case 107:return lt(e,":",":"+Je)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ut(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Ze+e+e}return e}var Zt,Xt,Jt,en,tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Yt(e.value,e.length);break;case rt:return Ft([Ct(e,{value:lt(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ft([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ft([Ct(e,{props:[lt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,":-moz-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,Ze+"input-$1")]})],r)}return""})}}],nn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||tn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Bt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Gt,Qt].concat(i,f),u=pt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ft($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||M.useLayoutEffect,Sn=M.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return M.forwardRef(function(t,n){var r=M.useContext(Sn);return e(t,r,n)})},An=M.createContext({}),Rn={}.hasOwnProperty,Pn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Ln=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Pn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,M.useContext(An));a+=t.key+"-"+s.name;var l={};for(var c in e)Rn.call(e,c)&&"css"!==c&&c!==Pn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),M.createElement(M.Fragment,null,M.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),M.createElement(o,l))}),Mn=function(e,t){var n=arguments;if(null==t||!Rn.call(t,"css"))return M.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ln,o[1]=function(e,t){var n={};for(var r in t)Rn.call(t,r)&&(n[r]=t[r]);return n[Pn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return M.createElement.apply(null,o)};En=Mn||(Mn={}),_n||(_n=En.JSX||(En.JSX={}));var jn=Tn(function(e,t){var n=wn([e.styles],void 0,M.useContext(An)),r=M.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},Un=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Fn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Bn=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Un(t,n,i),l=s||zn(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=Tn(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=M.useContext(An)}"string"==typeof e.className?i=sn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=wn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?zn(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),M.createElement(M.Fragment,null,M.createElement(Fn,{cache:t,serialized:h,isStringTag:"string"==typeof r}),M.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Qe({},n,r,{shouldForwardProp:Un(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function qn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return d.jsx(jn,{styles:r})}function Hn(e,t){return Bn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Bn[e]=Bn(e)});const Vn=[];function Kn(e){return Vn[0]=e,wn(Vn)}function Gn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Qn={borderRadius:4};function Yn(e=8,t=pe({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Zn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=K({breakpoints:Gn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yn(o),shape:{...Qn,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Zn,s=t.reduce((e,t)=>K(e,t),s),s.unstable_sxConfig={...Ve,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Ke({sx:e,theme:this})},s}function Jn(e=null){const t=M.useContext(An);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?M.useLayoutEffect:M.useEffect;function Er(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function _r(e){if(e.type)return e;if("#"===e.charAt(0))return _r(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(N(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(N(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Tr=(e,t)=>{try{return(e=>{const t=_r(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function Ar(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Rr(e){e=_r(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ar({type:s,values:l})}function Pr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Rr(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ar(e)}function Lr(e,t,n){try{return Or(e,t)}catch(r){return e}}function Mr(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ar(e)}function jr(e,t,n){try{return Mr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ar(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Pr(e)>.5?Mr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=M.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:M.useContext(Dr)}})}let zr=0;const Ur={...I}.useId;function Fr(e){if(void 0!==Ur){const t=Ur();return e??t}return function(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{null==t&&(zr+=1,n(`mui-${zr}`))},[t]),r}(e)}const Br={theme:void 0};function qr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hr=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Vr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Hr(i,e,`var(${r})`,s),Hr(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Kr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const Gr=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter(e=>i.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},i)}})}else"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t);var o,i};function Qr(e){return`--Grid-${e}Spacing`}function Yr(e){return`--Grid-parent-${e}Spacing`}const Zr="--Grid-columns",Xr="--Grid-parent-columns",Jr=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Xr}) - (var(${Xr}) - ${t}) * (var(${Yr("column")}) / var(${Xr})))`}),e(n,r)}),n},eo=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Xr}) + var(${Yr("column")}) * ${t} / var(${Xr}))`}),e(n,r)}),n},to=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zr]:12};return Gr(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[Zr]:r,"> *":{[Xr]:r}})}),n},no=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("row")]:o,"> *":{[Yr("row")]:o}})}),n},ro=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("column")]:o,"> *":{[Yr("column")]:o}})}),n},oo=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},io=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Qr("row")}) var(${Qr("column")})`}}),ao=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},so=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},lo=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];const co=Xn(),uo=xr("div",{name:"MuiGrid",slot:"Root"});function fo(e){return kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(M.cloneElement(t,{key:`separator-${o}`})),e),[])}const yo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...J({theme:t},ne({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=pe(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=ne({values:e.direction,base:o}),a=ne({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=K(n,J({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:he(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:he(r,t)}};var o}))}return n=function(e,...t){const n=ee(e),r=[n,...t].reduce((e,t)=>K(e,t),{});return te(Object.keys(n),r)}(t.breakpoints,n),n};const bo={black:"#000",white:"#fff"},vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wo="#f3e5f5",xo="#ce93d8",Co="#ba68c8",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Ao="#f44336",Ro="#d32f2f",Po="#c62828",Oo="#ffb74d",Lo="#ffa726",Mo="#ff9800",jo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#1976d2",zo="#1565c0",Uo="#4fc3f7",Fo="#29b6f6",Bo="#03a9f4",qo="#0288d1",Ho="#01579b",Vo="#81c784",Ko="#66bb6a",Go="#4caf50",Qo="#388e3c",Yo="#2e7d32",Zo="#1b5e20";function Xo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bo.white,default:bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jo=Xo();function ei(){return{text:{primary:bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ti=ei();function ni(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ir(e.main,o):"dark"===t&&(e.dark=Mr(e.main,i)))}function ri(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function oi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ao,light:_o,dark:Ro}:{main:Ro,light:To,dark:Po}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Fo,light:Uo,dark:qo}:{main:qo,light:Bo,dark:Ho}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ko,light:Vo,dark:Qo}:{main:Yo,light:Go,dark:Zo}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Lo,light:Oo,dark:jo}:{main:"#ed6c02",light:Mo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Pr(e),r=Pr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:Mr(t,n)}})}function xi(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(N(20));const d=oi({...i,colorSpace:c}),f=Xn(e);let p=K(f,{mixins:(h=f.breakpoints,g=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:ui.slice(),typography:li(d,s),transitions:gi(a),zIndex:{...mi}});var h,g;return p=K(p,u),p=t.reduce((e,t)=>K(e,t),p),p.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ke({sx:e,theme:this})},p.toRuntimeSource=bi,wi(p),p}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Ai(e){return"string"==typeof e&&e.startsWith("hsl")?Rr(e):e}function Ri(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Ai(e[t])))}const Pi=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Li(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Lr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===jr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(jr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(jr,t.info.light,.6)),Ti(t.Alert,"successColor",r(jr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(jr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Pi(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Pi(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Pi(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Pi(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Lr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(jr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Pi(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Lr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Lr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Pi(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Pi(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Pi(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Pi(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(jr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(jr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(jr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(jr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(jr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(jr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(jr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(jr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(jr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(jr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Lr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(jr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(jr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(jr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(jr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(jr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(jr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Pi(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(jr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(jr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(jr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(jr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(jr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(jr,t.warning.main,.55)),Ti(t.TableCell,"border",r(jr,r(Lr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Lr,t.grey[700],.92))}Ri(t.background,"default"),Ri(t.background,"paper"),Ri(t.common,"background"),Ri(t.common,"onBackground"),Ri(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Ai(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Ai(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Ai(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Ai(n.contrastText))),"text"===e&&(Ri(t[e],"primary"),Ri(t[e],"secondary")),"action"===e&&(n.active&&Ri(t[e],"active"),n.selected&&Ri(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function Mi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function ji(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return xi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=xi({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Mi(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Mi(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Li({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=ji(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Ui(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Fi(e){return Wr(e)}const Bi="function"==typeof Ui({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Ui(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Fi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(M.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.0",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Aa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ra(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Pa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Pa;const La=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),Ma=la("HTMLFormElement"),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Aa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Pa.postMessage),Wa?setImmediate:za?(Ua=`axios@${Math.random()}`,Fa=[],Pa.addEventListener("message",({source:e,data:t})=>{e===Pa&&t===Ua&&Fa.length&&Fa.shift()()},!1),e=>{Fa.push(e),Pa.postMessage(Ua,"*")}):e=>setTimeout(e));var Wa,za,Ua,Fa;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pa):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:La,isFileList:Ca,forEach:Aa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Ra(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Aa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Aa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ma,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ra,global:Pa,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Aa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),As=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,Rs=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ps(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ls(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ms=e=>{const t=Ls({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Ps(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&As(t.url))){const e=o&&i&&Rs.read(i);e&&a.set(o,e)}return t},js="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ms(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Us,TextEncoder:Fs}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Us),l=o&&("function"==typeof Fs?(e=>t=>e.encode(t))(new Fs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ms(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:js,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ls(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Ps((e=Ls(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ls(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ls(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ls(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ls,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Al="ps_play_button_clicked",Rl="ps_purchase_completed",Pl="ps_check_in_completed",Ol="event_purchaseCompleted",Ll="event_checkInCompleted";var Ml=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ml||{}),jl=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(jl||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Fl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"}},ql=["1041","1048"],Hl={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Vl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Kl,Gl={exports:{}};var Ql,Yl,Zl=(Kl||(Kl=1,Ql=Gl,Yl=Gl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",A="Huawei",R="LG",P="Microsoft",O="Motorola",L="Nvidia",M="OnePlus",j="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="Xiaomi",z="Zebra",U="Facebook",F="Chromium OS",B="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Q=function(e,r){for(var i,a,s,l,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)u=c[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):t:this[l[0]]=u?l[1].call(this,u,l[2]):t:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},Y=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(V(n[r][i],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,A],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,A],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,R],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[u,R],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,M],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[u,v],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[u,v],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[u,C],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[u,x],[c,h]],[/(nexus 9)/i],[s,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,K],s,[c,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[u,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[u,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[u,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[u,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[u,"Nothing"],[c,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[u,"Archos"],[c,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,s,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,s,[c,g]],[/(surface duo)/i],[s,[u,P],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,L],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,P],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,R],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,L],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,L],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,P],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,M],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,R],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,_],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,U],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,b]],[/(aeobc)\b/i],[s,[u,v],[c,b]],[/(homepod).+mac os/i],[s,[u,w],[c,b]],[/windows iot/i],[[c,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,Y,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,Y,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,B],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},J=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof J))return new J(p,m).getResult();var y=typeof e!==r&&e.navigator?e.navigator:t,b=p||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,m):X,x=y&&y.userAgent==b;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,Q.call(r,b,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,x&&y&&y.brave&&typeof y.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,Q.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[s]=t,e[c]=t,Q.call(e,b,w.device),x&&!e[c]&&v&&v.mobile&&(e[c]=h),x&&"Macintosh"==e[s]&&y&&typeof y.standalone!==r&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[s]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.os),x&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===i&&e.length>500?G(e,500):e,this},this.setUA(b),this};J.VERSION="1.0.41",J.BROWSER=H([l,d,a]),J.CPU=H([f]),J.DEVICE=H([s,u,c,p,h,m,g,y,b]),J.ENGINE=J.OS=H([l,d]),Ql.exports&&(Yl=Ql.exports=J),Yl.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Gl.exports)),Gl.exports);const Xl=r(Zl),Jl=e=>`${ta.RES_URL}${e}`,ec=()=>ql.includes(ta.GAME_ID),tc=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},nc=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},rc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},oc=()=>(window.Telegram.WebApp.platform||"").includes("android"),ic=()=>{const e=(new Zl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},ac=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),sc=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class lc{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Vl.get(n,t).then(t=>{if(lc.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Vl.post(n,t).then(t=>{if(lc.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return lc.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return lc.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return lc.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return lc.post("pluto/order",s)}static getItem(e){const t={k:e};return lc.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return lc.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return lc.post("pluto/finishorder",t)}static unfinishRecord(){return lc.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return lc.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return lc.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return lc.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return lc.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return lc.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return lc.post("pluto/signdata",s)}static getNfts(){return lc.post("pluto/getnfts")}static setGameUserId(e){const t={userid:e};return lc.post("pluto/setuserid",t)}static cocGetInfo(){return lc.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return lc.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return lc.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return lc.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return lc.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return lc.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return lc.post("plutococ/cancelwithdraw",t)}static spGetInfo(){return lc.get("plutosp/info")}static spWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return lc.post("plutosp/withdraw",o)}static spClaim(e){const t={withdrawid:e};return lc.post("plutosp/claim",t)}static spGetWithdrawDetail(e){const t={withdrawid:e};return lc.post("plutosp/withdrawdetail",t)}static spGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return lc.post("plutosp/record",r)}static spQueryConsume(e){const t={time:e};return lc.post("plutosp/queryconsume",t)}static spCancelWithdraw(e){const t={withdrawid:e};return lc.post("plutosp/cancelwithdraw",t)}}const cc=new class{get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameUserId(){return this._gameUserId}set gameUserId(e){this._gameUserId=e}};var uc,dc={exports:{}},fc=dc.exports;var pc=(uc||(uc=1,function(e){var t,n;t=fc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(dc)),dc.exports);const hc=r(pc);function gc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mc={exports:{}};const yc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var bc;var vc=(bc||(bc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,A=f,R=p,P=h,O=g,L=m,M=y,j=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(M^=(o=(R^=(o=(E^=(o=x+M|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,_^=(o=(C^=(o=(j^=(o=(P^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+P|0)<<13|o>>>19)+j|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(L^=(o=(A^=(o=(S^=(o=N+L|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+A|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(A^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+A|0)<<18|o>>>14,O^=(o=(P^=(o=(R^=(o=(L^=(o=O+P|0)<<7|o>>>25)+O|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,N^=(o=(I^=(o=(j^=(o=(M^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+M|0)<<13|o>>>19)+j|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,A=A+f|0,R=R+p|0,P=P+h|0,O=O+g|0,L=L+m|0,M=M+y|0,j=j+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=A>>>0&255,e[29]=A>>>8&255,e[30]=A>>>16&255,e[31]=A>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=P>>>0&255,e[37]=P>>>8&255,e[38]=P>>>16&255,e[39]=P>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=L>>>0&255,e[45]=L>>>8&255,e[46]=L>>>16&255,e[47]=L>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function A(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function R(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function L(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function M(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return L(n,e),L(r,t),m(n,0,r,0)}function j(e){var t=new Uint8Array(32);return L(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,A=0,R=0,P=0,O=0,L=0,M=0,j=0,I=0,N=n[0],$=n[1],D=n[2],W=n[3],z=n[4],U=n[5],F=n[6],B=n[7],q=n[8],H=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Y=n[14],Z=n[15];i+=(r=t[0])*N,a+=r*$,s+=r*D,l+=r*W,c+=r*z,u+=r*U,d+=r*F,f+=r*B,p+=r*q,h+=r*H,g+=r*V,m+=r*K,y+=r*G,b+=r*Q,v+=r*Y,w+=r*Z,a+=(r=t[1])*N,s+=r*$,l+=r*D,c+=r*W,u+=r*z,d+=r*U,f+=r*F,p+=r*B,h+=r*q,g+=r*H,m+=r*V,y+=r*K,b+=r*G,v+=r*Q,w+=r*Y,x+=r*Z,s+=(r=t[2])*N,l+=r*$,c+=r*D,u+=r*W,d+=r*z,f+=r*U,p+=r*F,h+=r*B,g+=r*q,m+=r*H,y+=r*V,b+=r*K,v+=r*G,w+=r*Q,x+=r*Y,C+=r*Z,l+=(r=t[3])*N,c+=r*$,u+=r*D,d+=r*W,f+=r*z,p+=r*U,h+=r*F,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,p+=r*z,h+=r*U,g+=r*F,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,h+=r*z,g+=r*U,m+=r*F,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*U,y+=r*F,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*U,b+=r*F,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*U,v+=r*F,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,A+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*U,w+=r*F,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,A+=r*Y,R+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*U,x+=r*F,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,A+=r*Q,R+=r*Y,P+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*U,C+=r*F,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,A+=r*G,R+=r*Q,P+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*U,k+=r*F,S+=r*B,E+=r*q,_+=r*H,T+=r*V,A+=r*K,R+=r*G,P+=r*Q,O+=r*Y,L+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*U,S+=r*F,E+=r*B,_+=r*q,T+=r*H,A+=r*V,R+=r*K,P+=r*G,O+=r*Q,L+=r*Y,M+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*U,E+=r*F,_+=r*B,T+=r*q,A+=r*H,R+=r*V,P+=r*K,O+=r*G,L+=r*Q,M+=r*Y,j+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*U),u+=38*(_+=r*F),d+=38*(T+=r*B),f+=38*(A+=r*q),p+=38*(R+=r*H),h+=38*(P+=r*V),g+=38*(O+=r*K),m+=38*(L+=r*G),y+=38*(M+=r*Q),b+=38*(j+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),p=t(),h=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),L(e,m),0}function B(e,t){return F(e,t,o)}function q(e,t){return n(t,32),B(e,t)}function H(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,v)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],A=this.h[5],R=this.h[6],P=this.h[7],O=this.h[8],L=this.h[9],M=this.r[0],j=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],U=this.r[8],F=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*W))>>>13,f&=8191,f+=(A+=s>>>1&8191)*(5*D),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(P+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(L+=u>>>5|C)*(5*j))>>>13,p+=k*j,p+=S*M,p+=E*(5*F),p+=_*(5*U),d=(p+=T*(5*z))>>>13,p&=8191,p+=A*(5*W),p+=R*(5*D),p+=P*(5*$),p+=O*(5*N),d+=(p+=L*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*j,h+=E*M,h+=_*(5*F),d=(h+=T*(5*U))>>>13,h&=8191,h+=A*(5*z),h+=R*(5*W),h+=P*(5*D),h+=O*(5*$),g=d+=(h+=L*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*j,g+=_*M,d=(g+=T*(5*F))>>>13,g&=8191,g+=A*(5*U),g+=R*(5*z),g+=P*(5*W),g+=O*(5*D),m=d+=(g+=L*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*j,d=(m+=T*M)>>>13,m&=8191,m+=A*(5*F),m+=R*(5*U),m+=P*(5*z),m+=O*(5*W),y=d+=(m+=L*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*j)>>>13,y&=8191,y+=A*M,y+=R*(5*F),y+=P*(5*U),y+=O*(5*z),b=d+=(y+=L*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=A*j,b+=R*M,b+=P*(5*F),b+=O*(5*U),v=d+=(b+=L*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=A*I,v+=R*j,v+=P*M,v+=O*(5*F),w=d+=(v+=L*(5*U))>>>13,w+=k*U,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=A*N,w+=R*I,w+=P*j,w+=O*M,x=d+=(w+=L*(5*F))>>>13,x+=k*F,x+=S*U,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=A*$,x+=R*N,x+=P*I,x+=O*j,k=f=8191&(d=(d=((d+=(x+=L*M)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,A=y&=8191,R=b&=8191,P=v&=8191,O=w&=8191,L=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=A,this.h[6]=R,this.h[7]=P,this.h[8]=O,this.h[9]=L},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=A,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,A,R,P=new Int32Array(16),O=new Int32Array(16),L=e[0],M=e[1],j=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=e[7],z=t[0],U=t[1],F=t[2],B=t[3],q=t[4],H=t[5],V=t[6],K=t[7],Q=0;r>=128;){for(C=0;C<16;C++)k=8*C+Q,P[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=L,i=M,a=j,s=I,l=N,c=$,u=D,f=z,p=U,h=F,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,A=65535&(S=W),R=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,A+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),R+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,A+=65535&(S=N&$^~N&D),R+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,A+=65535&(S=G[2*C]),R+=S>>>16,S=P[C%16],T+=(E=O[C%16])>>>16,A+=65535&S,R+=S>>>16,A+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,A=65535&(S=w=65535&A|(R+=A>>>16)<<16),R=S>>>16,_+=65535&(E=(z>>>28|L<<4)^(L>>>2|z<<30)^(L>>>7|z<<25)),T+=E>>>16,A+=65535&(S=(L>>>28|z<<4)^(z>>>2|L<<30)^(z>>>7|L<<25)),R+=S>>>16,T+=(E=z&U^z&F^U&F)>>>16,A+=65535&(S=L&M^L&j^M&j),R+=S>>>16,d=65535&(A+=(T+=(_+=65535&E)>>>16)>>>16)|(R+=A>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,A=65535&(S=s),R=S>>>16,T+=(E=x)>>>16,A+=65535&(S=w),R+=S>>>16,M=o,j=i,I=a,N=s=65535&(A+=(T+=(_+=65535&E)>>>16)>>>16)|(R+=A>>>16)<<16,$=l,D=c,W=u,L=d,U=f,F=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=P[k],_=65535&(E=O[k]),T=E>>>16,A=65535&S,R=S>>>16,S=P[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,A+=65535&S,R+=S>>>16,w=P[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,A+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=S>>>16,w=P[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,A+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,P[k]=65535&A|R<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,A=65535&(S=L),R=S>>>16,S=e[0],T+=(E=t[0])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=L=65535&A|R<<16,t[0]=z=65535&_|T<<16,_=65535&(E=U),T=E>>>16,A=65535&(S=M),R=S>>>16,S=e[1],T+=(E=t[1])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&A|R<<16,t[1]=U=65535&_|T<<16,_=65535&(E=F),T=E>>>16,A=65535&(S=j),R=S>>>16,S=e[2],T+=(E=t[2])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=j=65535&A|R<<16,t[2]=F=65535&_|T<<16,_=65535&(E=B),T=E>>>16,A=65535&(S=I),R=S>>>16,S=e[3],T+=(E=t[3])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&A|R<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,A=65535&(S=N),R=S>>>16,S=e[4],T+=(E=t[4])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&A|R<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,A=65535&(S=$),R=S>>>16,S=e[5],T+=(E=t[5])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&A|R<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,A=65535&(S=D),R=S>>>16,S=e[6],T+=(E=t[6])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&A|R<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,A=65535&(S=W),R=S>>>16,S=e[7],T+=(E=t[7])>>>16,A+=65535&S,R+=S>>>16,R+=(A+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&A|R<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),L(e,o),e[31]^=j(r)<<7}function ee(e,t,n){var r,o;for(R(e[0],i),R(e[1],a),R(e[2],a),R(e[3],i),o=255;o>=0;--o)X(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),X(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];R(r[0],u),R(r[1],d),R(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return R(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),U(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),M(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),M(o,s)?-1:(j(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:A,crypto_scalarmult:F,crypto_scalarmult_base:B,crypto_box_beforenm:H,crypto_box_afternm:V,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),V(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:Y,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:se,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:re,pack25519:L,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:U,add:Z,set25519:R,modL:oe,scalarmult:ee,scalarbase:te},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==A(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return B(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return H(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return B(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=se(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return se(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return ne(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===h(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},(le="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&le.getRandomValues?e.setPRNG(function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)le.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];ge(r)}):void 0!==gc&&(le=yc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(mc)),mc.exports);const wc=r(vc);var xc,Cc,kc,Sc,Ec,_c,Tc,Ac,Rc,Pc,Oc,Lc;(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Cc[Cc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",Cc[Cc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",Cc[Cc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Cc[Cc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Ac=Tc||(Tc={}))[Ac.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Ac[Ac.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Ac[Ac.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Ac[Ac.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Ac[Ac.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Pc=Rc||(Rc={}))[Pc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Pc[Pc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Pc[Pc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Lc=Oc||(Oc={})).MAINNET="-239",Lc.TESTNET="-3";const Mc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=hc.decodeUTF8(e)),function(e,t){const n=hc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),hc.decodeBase64(e)}(e,t);return{toString:()=>hc.encodeUTF8(n),toObject(){try{return JSON.parse(hc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function jc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Ic(e){if(e.length%2!=0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class Nc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=jc(this.keyPair.publicKey)}createKeypair(){return wc.box.keyPair()}createKeypairFromString(e){return{publicKey:Ic(e.publicKey),secretKey:Ic(e.secretKey)}}createNonce(){return wc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,wc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=wc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:jc(this.keyPair.publicKey),secretKey:jc(this.keyPair.secretKey)}}}function $c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Dc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class Wc extends Error{constructor(e,t){super(e,t),this.message=`${Wc.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,Wc.prototype)}get info(){return""}}Wc.prefix="[TON_CONNECT_SDK_ERROR]";class zc extends Wc{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Uc extends Wc{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Fc extends Wc{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Bc extends Wc{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends Wc{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends Wc{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends Wc{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends Wc{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends Wc{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends Wc{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends Wc{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends Wc{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends Wc{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}class Jc extends Wc{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Jc.prototype)}}class eu extends Wc{constructor(...e){super(...e),Object.setPrototypeOf(this,eu.prototype)}}const tu={[xc.UNKNOWN_ERROR]:eu,[xc.USER_REJECTS_ERROR]:Gc,[xc.BAD_REQUEST_ERROR]:Qc,[xc.UNKNOWN_APP_ERROR]:Yc,[xc.MANIFEST_NOT_FOUND_ERROR]:Fc,[xc.MANIFEST_CONTENT_ERROR]:Uc};const nu=new class{parseError(e){let t=eu;return e.code in tu&&(t=tu[e.code]||eu),new t(e.message)}};class ru{isError(e){return"error"in e}}const ou={[Ec.UNKNOWN_ERROR]:eu,[Ec.USER_REJECTS_ERROR]:Gc,[Ec.BAD_REQUEST_ERROR]:Qc,[Ec.UNKNOWN_APP_ERROR]:Yc};const iu=new class extends ru{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=eu;throw e.error.code in ou&&(t=ou[e.error.code]||eu),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},au={[Tc.UNKNOWN_ERROR]:eu,[Tc.USER_REJECTS_ERROR]:Gc,[Tc.BAD_REQUEST_ERROR]:Qc,[Tc.UNKNOWN_APP_ERROR]:Yc};const su=new class extends ru{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=eu;throw e.error.code in au&&(t=au[e.error.code]||eu),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class lu{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Dc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Dc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function cu(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function uu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function du(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function fu(e,t){return Dc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function pu(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function hu(e,t){var n,r;return Dc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=pu(null==t?void 0:t.signal);if("function"!=typeof e)throw new Wc("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new Wc(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield fu(i))}}throw s})}function gu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function mu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class yu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Dc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=pu(s),a.signal.aborted)throw new Wc("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new Wc("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Dc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Dc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield fu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new Wc("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Dc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Dc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=pu(null==t?void 0:t.signal);return new Promise((t,o)=>Dc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new Wc("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new Wc(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new Wc("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Dc(this,0,void 0,function*(){var o;const i=pu(r.signal).signal;if(i.aborted)return void n(new Wc("Bridge connection aborted"));const a=new URL(cu(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new Wc("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Dc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new Wc("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Dc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new lu(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Dc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Dc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(cu(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Mc.encode(e);yield hu(e=>Dc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new Wc(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>mu(`Bridge pause failed, ${e}`))}unPause(){return Dc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Dc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>mu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Dc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new Wc(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Dc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new Wc("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),gu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Wc("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Dc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new Wc(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function bu(e){return!("connectEvent"in e)}class vu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Dc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!bu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Dc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new Nc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new Nc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new Wc("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new Wc("Trying to read HTTP connection source while injected connection is stored");if(!bu(e))throw new Wc("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new Wc("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Dc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!bu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class wu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new vu(e)}static fromStorage(e){return Dc(this,0,void 0,function*(){const t=new vu(e),n=yield t.getHttpConnection();return bu(n)?new wu(e,n.connectionSource):new wu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=pu(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new Nc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Dc(this,0,void 0,function*(){r.signal.aborted||(yield hu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Dc(this,0,void 0,function*(){const r=pu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(bu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new Wc("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new yu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield hu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Dc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Wc("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),Ic(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Dc(this,0,void 0,function*(){return new Promise(t=>Dc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=pu(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){gu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Dc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Dc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Dc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Mc.decode(e.message).toUint8Array(),Ic(e.from)));if(gu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void gu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void mu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(gu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Dc(this,0,void 0,function*(){throw new Wc(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Dc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Dc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return uu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+du(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Dc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new yu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>hu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new yu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function xu(e,t){return Cu(e,[t])}function Cu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let ku=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Su(){if("undefined"!=typeof window)return window}function Eu(){var e;const t=null===(e=Su())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function _u(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new Wc("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return ku.getInstance()}class Tu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Tu.window;if(!Tu.isWindowContainsWallet(n,t))throw new Hc;this.connectionStorage=new vu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Dc(this,0,void 0,function*(){const t=new vu(e),n=yield t.getInjectedConnection();return new Tu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Tu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Tu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Su();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!xu(e,"tonconnect")||!xu(e.tonconnect,"walletInfo"))&&Cu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Dc(this,0,void 0,function*(){try{gu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();gu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Dc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){gu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Dc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>gu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Dc(this,0,void 0,function*(){try{gu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);gu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){gu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{gu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Tu.window=Su();class Au{constructor(){this.localStorage=_u()}getItem(e){return Dc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Dc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Dc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Ru(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Pu(e){return Ru(e)&&e.embedded}function Ou(e){return"bridgeUrl"in e}const Lu=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"​https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Mu{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Dc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Dc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Pu);return 1===e.length?e[0]:null})}fetchWalletsList(){return Dc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Zc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(mu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){mu(n),e=Lu}let t=[];try{t=Tu.getCurrentlyInjectedWallets()}catch(n){mu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Tu.isWalletInjected(e),t.embedded=Tu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function ju(e,t){const n=e.includes("SendTransaction"),r=Nu(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new Vc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new Vc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new Vc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Iu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=Nu(e,"SendTransaction");if(!t)return!1;if(!function(e,t){const n=void 0===t.minMessages||t.minMessages<=e.maxMessages,r=!t.extraCurrencyRequired||e.extraCurrencySupported;return!(!n||!r)}(t,n))return!1}if(r){const t=Nu(e,"SignData");if(!t)return!1;if(!function(e,t){return t.types.every(t=>e.types.includes(t))}(t,r))return!1}return!0}function Nu(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function $u(e){return{type:"response-version",version:e}}function Du(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function Wu(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Du(e))}}function zu(e){return{type:"connection-started",custom_data:Du(e)}}function Uu(e,t){return Object.assign({type:"connection-completed",is_success:!0},Wu(e,t))}function Fu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Du(e)}}function Bu(e){return{type:"connection-restoring-started",custom_data:Du(e)}}function qu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},Wu(e,t))}function Hu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Du(e)}}function Vu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Ku(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},Wu(e,t)),Vu(t,n))}function Gu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},Wu(e,t)),Vu(t,n))}function Qu(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},Wu(e,t)),Vu(t,n))}function Yu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},Wu(e,t))}function Zu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},Wu(e,t))}function Xu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},Wu(e,t))}function Ju(e,t,n){return Object.assign({type:"disconnection",scope:n},Wu(e,t))}class ed{constructor(){this.window=Su()}dispatchEvent(e,t){var n;return Dc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Dc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class td{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new ed,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Du({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Dc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Dc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Dc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",$u(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Dc(this,0,void 0,function*(){return new Promise((e,t)=>Dc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class nd{constructor(e){if(this.walletsList=new Mu,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||Eu(),storage:(null==e?void 0:e.storage)||new Au},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Mu({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new td({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new zc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new vu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Bc;const i=pu(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new Wc("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Dc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=pu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield wu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Tu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return mu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=hu(t=>Dc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Dc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=pu(null==n?void 0:n.signal);if(r.signal.aborted)throw new Wc("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);ju(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=$c(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=$c(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(iu.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),iu.parseAndThrowError(d);const f=iu.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Dc(this,0,void 0,function*(){const n=pu(null==t?void 0:t.signal);if(n.signal.aborted)throw new Wc("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new Vc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new Vc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(su.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(su.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),su.parseAndThrowError(i);const a=su.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Dc(this,0,void 0,function*(){if(!this.connected)throw new qc;const n=pu(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new Wc("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){mu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Tu(this.dappSettings.storage,e.jsBridgeKey):new wu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=nu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new Wc("ton_addr connection item was not found");if(!Iu(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Kc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new Wc("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:kc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),gu(e),e instanceof Fc||e instanceof Uc)throw mu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new qc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}nd.walletsList=new Mu,nd.isWalletInjected=e=>Tu.isWalletInjected(e),nd.isInsideWalletBrowser=e=>Tu.isInsideWalletBrowser(e);function rd(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Xc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Xc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Xc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Xc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:id(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Mc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const od={};for(let uS=0;uS<=255;uS++){let e=uS.toString(16);e.length<2&&(e="0"+e),od[e]=uS}function id(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Jc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!od.hasOwnProperty(n))throw new Jc("Invalid hex character: "+n);r[o]=od[n]}return r}var ad,sd;const ld=r(function(){if(sd)return ad;sd=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},ad=s}());var cd,ud={exports:{}};var dd=(cd||(cd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ud)),ud.exports);const fd=r(dd);var pd,hd,gd,md,yd,bd,vd,wd,xd=Object.defineProperty,Cd=Object.defineProperties,kd=Object.getOwnPropertyDescriptors,Sd=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable,Td=(e,t,n)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ad=(e,t)=>{for(var n in t||(t={}))Ed.call(t,n)&&Td(e,n,t[n]);if(Sd)for(var n of Sd(t))_d.call(t,n)&&Td(e,n,t[n]);return e},Rd=(e,t)=>Cd(e,kd(t)),Pd=(e,t,n)=>(Td(e,"symbol"!=typeof t?t+"":t,n),n),Od=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Ld={};const Md=Symbol("solid-proxy"),jd=Symbol("solid-track"),Id={equals:(e,t)=>e===t};let Nd=gf;const $d=1,Dd=2,Wd={owned:null,cleanups:null,context:null,owner:null},zd={};var Ud=null;let Fd=null,Bd=null,qd=null,Hd=null,Vd=0;function Kd(e,t){const n=Bd,r=Ud,o=0===e.length,i=o?Wd:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>tf(()=>vf(i)));Ud=i,Bd=null;try{return hf(a,!0)}finally{Bd=n,Ud=r}}function Gd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Id,t):Id).equals||void 0};return[cf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),uf(n,e))]}function Qd(e,t,n){df(ff(e,t,!0,$d))}function Yd(e,t,n){df(ff(e,t,!1,$d))}function Zd(e,t,n){Nd=mf;const r=ff(e,t,!1,$d);r.user=!0,Hd?Hd.push(r):df(r)}function Xd(e,t,n){n=n?Object.assign({},Id,n):Id;const r=ff(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,df(r),cf.bind(r)}function Jd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=zd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Xd(r);const f=new Set,[p,h]=(i.storage||Gd)(i.initialValue),[g,m]=Gd(void 0),[y,b]=Gd(void 0,{equals:!1}),[v,w]=Gd(u?"ready":"unresolved");if(Ld.context){let e;l=`${Ld.context.id}${Ld.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Ld.load&&(e=Ld.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=zd,function(e,t){hf(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Bd&&Bd.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,tf(p));const n=s!==zd?s:tf(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),hf(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,wf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Qd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function ef(e){return hf(e,!1)}function tf(e){if(null===Bd)return e();const t=Bd;Bd=null;try{return e()}finally{Bd=t}}function nf(e){Zd(()=>tf(e))}function rf(e){return null===Ud||(null===Ud.cleanups?Ud.cleanups=[e]:Ud.cleanups.push(e)),e}function of(){return Bd}function af(e,t){const n=Symbol("context");return{id:n,Provider:Sf(n),defaultValue:e}}function sf(e){let t;return void 0!==(t=Cf(Ud,e.id))?t:e.defaultValue}function lf(e){const t=Xd(e),n=Xd(()=>kf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function cf(){const e=Fd;if(this.sources&&(this.state||e))if(this.state===$d||e)df(this);else{const e=qd;qd=null,hf(()=>yf(this),!1),qd=e}if(Bd){const e=this.observers?this.observers.length:0;Bd.sources?(Bd.sources.push(this),Bd.sourceSlots.push(e)):(Bd.sources=[this],Bd.sourceSlots=[e]),this.observers?(this.observers.push(Bd),this.observerSlots.push(Bd.sources.length-1)):(this.observers=[Bd],this.observerSlots=[Bd.sources.length-1])}return this.value}function uf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&hf(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Fd&&Fd.running;r&&Fd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?qd.push(n):Hd.push(n),n.observers&&bf(n)),r||(n.state=$d)}if(qd.length>1e6)throw qd=[],new Error},!1)),t}function df(e){if(!e.fn)return;vf(e);const t=Ud,n=Bd,r=Vd;Bd=Ud=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=$d,e.owned&&e.owned.forEach(vf),e.owned=null),xf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?uf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Bd=n,Ud=t}function ff(e,t,n,r=$d,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ud,context:null,pure:n};return null===Ud||Ud!==Wd&&(Ud.owned?Ud.owned.push(i):Ud.owned=[i]),i}function pf(e){const t=Fd;if(0===e.state||t)return;if(e.state===Dd||t)return yf(e);if(e.suspense&&tf(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Vd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===$d||t)df(e);else if(e.state===Dd||t){const t=qd;qd=null,hf(()=>yf(e,n[0]),!1),qd=t}}function hf(e,t){if(qd)return e();let n=!1;t||(qd=[]),Hd?n=!0:Hd=[],Vd++;try{const t=e();return function(e){qd&&(gf(qd),qd=null);if(e)return;const t=Hd;Hd=null,t.length&&hf(()=>Nd(t),!1)}(n),t}catch(r){n||(Hd=null),qd=null,xf(r)}}function gf(e){for(let t=0;t<e.length;t++)pf(e[t])}function mf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:pf(r)}var r;for(Ld.context&&(Ld.context=r),t=0;t<n;t++)pf(e[t])}function yf(e,t){const n=Fd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===$d||n?o!==t&&pf(o):(o.state===Dd||n)&&yf(o,t))}}function bf(e){const t=Fd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Dd,r.pure?qd.push(r):Hd.push(r),r.observers&&bf(r))}}function vf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)vf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function wf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function xf(e){throw e=wf(e)}function Cf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:Cf(e.owner,t):void 0}function kf(e){if("function"==typeof e&&!e.length)return kf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=kf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Sf(e,t){return function(t){let n;return Yd(()=>n=tf(()=>(Ud.context={[e]:t.value},lf(()=>t.children))),void 0),n}}const Ef=Symbol("fallback");function _f(e){for(let t=0;t<e.length;t++)e[t]()}function Tf(e,t){return tf(()=>e(t||{}))}function Af(){return!0}const Rf={get:(e,t,n)=>t===Md?n:e.get(t),has:(e,t)=>t===Md||e.has(t),set:Af,deleteProperty:Af,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Af,deleteProperty:Af}),ownKeys:e=>e.keys()};function Pf(e){return(e="function"==typeof e?e():e)?e:{}}function Of(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Md in n,e[r]="function"==typeof n?(t=!0,Xd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Pf(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Pf(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Pf(e[n])));return[...new Set(t)]}},Rf);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Lf(e,...t){const n=new Set(t.flat());if(Md in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Rf));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Rf)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Mf(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Xd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return rf(()=>_f(i)),()=>{let l,c,u=e()||[];return u[jd],tf(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(_f(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[Ef],o[0]=Kd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Kd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Kd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Gd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function jf(e){let t=!1;const n=e.keyed,r=Xd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Xd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?tf(()=>r(o)):r}return e.fallback},void 0,void 0)}function If(e){let t=!1,n=!1;const r=lf(()=>e.children),o=Xd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Xd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?tf(()=>s(i)):s},void 0,void 0)}function Nf(e){return e}const $f=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Df=new Set(["innerHTML","textContent","innerText","children"]),Wf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),zf=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Uf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ff=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Bf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const qf="_$DX_DELEGATE";function Hf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function Vf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Kf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Gf(e,t={},n,r){const o={};return Yd(()=>o.children=tp(e,t.children,o.children)),Yd(()=>t.ref&&t.ref(e)),Yd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Jf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Jf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Qf(e,t,n){return tf(()=>e(t,n))}function Yf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return tp(e,t,r,n);Yd(r=>tp(e,t(),r,n),r)}function Zf(e){let t,n;return Ld.context&&(t=Ld.registry.get(n=function(){const e=Ld.context;return`${e.id}${e.count++}`}()))?(Ld.completed&&Ld.completed.add(t),Ld.registry.delete(n),t):e.cloneNode(!0)}function Xf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Jf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?Vf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Xf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Xf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Uf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[qf]||(t[qf]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ep))}}([o]))}else if((l=Df.has(t))||!o&&(zf[t]||(s=$f.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Kf(e,n):!a||s||l?e[zf[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Bf[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):Vf(e,Wf[t]||t,n)}var c;return n}function ep(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Ld.registry&&!Ld.done&&(Ld.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function tp(e,t,n,r,o){for(Ld.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Ld.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=op(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Ld.context)return n;n=op(e,n,r)}else{if("function"===i)return Yd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=tp(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(np(i,t,n,o))return Yd(()=>n=tp(e,i,n,r,!0)),()=>n;if(Ld.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=op(e,n,r),a)return n}else s?0===n.length?rp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&op(e),rp(e,i));n=i}else if(t instanceof Node){if(Ld.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=op(e,n,r,t);op(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function np(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=np(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=np(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function rp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function op(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function ip(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function ap(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Ld.context){const[t,n]=Gd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Gd(!1),n=()=>t(!0);Kd(t=>Yf(r,()=>e()?t():o()(),null)),rf(()=>{Ld.context?queueMicrotask(n):n()})}else{const i=ip(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Yf(a,o()),r.appendChild(i),e.ref&&e.ref(i),rf(()=>r.removeChild(i))}return n}function sp(e){const[t,n]=Lf(e,["component"]),r=Xd(()=>t.component);return Xd(()=>{const e=r();switch(typeof e){case"function":return tf(()=>e(n));case"string":const t=Ff.has(e),r=Ld.context?Zf():ip(e,t);return Gf(r,n,t),r}})}var lp=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(lp||{});let cp={data:""},up=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dp=/\/\*[^]*?\*\/| +/g,fp=/\n+/g,pp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?pp(a,i):i+"{"+pp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=pp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=pp.p?pp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},hp={},gp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+gp(e[n]);return t}return e};function mp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=gp(e),a=hp[i]||(hp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!hp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=up.exec(e.replace(dp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(fp," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(fp," ").trim();return r[0]})(e);hp[a]=pp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&hp.g?hp.g:null;return n&&(hp.g=hp[a]),l=hp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":pp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||cp),t.g,t.o,t.k);var r}mp.bind({g:1});let yp=mp.bind({k:1});const bp=af();function vp(e){return Tf(bp.Provider,{value:e.theme,get children(){return e.children}})}function wp(){return sf(bp)}function xp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Of(r,{theme:sf(bp)}),i=Of(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,mp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Lf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Gf(u,l)):u=sp(Of({component:c},l)),u};return r.class=e=>tf(()=>mp.apply({target:t.target,p:e,g:t.g},n)),r}}const Cp=new Proxy(xp,{get:(e,t)=>e(t)});function kp(){const e=xp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Sp="tc-root",Ep="tc-disable-scroll",_p="tc-using-mouse",Tp=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(_p)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(_p)});return Tf(kp`
1
+ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var i,a,s={exports:{}},l={};var c,u,d=(a||(a=1,s.exports=function(){if(i)return l;i=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return l.Fragment=t,l.jsx=n,l.jsxs=n,l}()),s.exports),f={exports:{}},p={},h={exports:{}},g={};function m(){return u||(u=1,h.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<i&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(g=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,C());else{var t=n(c);null!==t&&O(x,t.startTime-e)}}var C,k=!1,S=-1,E=5,_=-1;function T(){return!(!m&&e.unstable_now()-_<E)}function P(){if(m=!1,k){var t=e.unstable_now();_=t;var o=!0;try{e:{h=!1,g&&(g=!1,b(S),S=-1),p=!0;var i=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&T());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),o=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)o=!0;else{var u=n(c);null!==u&&O(x,u.startTime-t),o=!1}}break e}finally{d=null,f=i,p=!1}o=void 0}}finally{o?C():k=!1}}}if("function"==typeof v)C=function(){v(P)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,R=A.port2;A.port1.onmessage=P,C=function(){R.postMessage(null)}}else C=function(){y(P,0)};function O(t,n){S=y(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){m=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(g?(b(S),S=-1):g=!0,O(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,C()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(g)),g)),h.exports}var y,b,v={exports:{}},w={};function x(){if(y)return w;y=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=v.prototype=new b;x.constructor=v,h(x,m.prototype),x.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function _(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l,c,d=!1;if(null===n)d=!0;else switch(s){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return R((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+A(n,0):i,C(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(l=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=_(l.type,c,l.props)),r.push(a)),1;d=0;var p,h=""===i?".":i+":";if(C(n))for(var g=0;g<n.length;g++)d+=R(i=n[g],r,o,s=h+A(i,g),a);else if("function"==typeof(g=null===(p=n)||"object"!=typeof p?null:"function"==typeof(p=f&&p[f]||p["@@iterator"])?p:null))for(n=g.call(n),g=0;!(i=n.next()).done;)d+=R(i=i.value,r,o,s=h+A(i,g++),a);else if("object"===s){if("function"==typeof n.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},j={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return w.Activity=d,w.Children=j,w.Component=m,w.Fragment=n,w.Profiler=o,w.PureComponent=v,w.StrictMode=r,w.Suspense=l,w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},w.cache=function(e){return function(){return e.apply(null,arguments)}},w.cacheSignal=function(){return null},w.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return _(e.type,o,r)},w.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},w.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return _(e,i,o)},w.createRef=function(){return{current:null}},w.forwardRef=function(e){return{$$typeof:s,render:e}},w.isValidElement=T,w.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},w.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},w.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,L)}catch(i){L(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},w.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},w.use=function(e){return S.H.use(e)},w.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},w.useCallback=function(e,t){return S.H.useCallback(e,t)},w.useContext=function(e){return S.H.useContext(e)},w.useDebugValue=function(){},w.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},w.useEffect=function(e,t){return S.H.useEffect(e,t)},w.useEffectEvent=function(e){return S.H.useEffectEvent(e)},w.useId=function(){return S.H.useId()},w.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},w.useMemo=function(e,t){return S.H.useMemo(e,t)},w.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},w.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},w.useRef=function(e){return S.H.useRef(e)},w.useState=function(e){return S.H.useState(e)},w.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},w.useTransition=function(){return S.H.useTransition()},w.version="19.2.0",w}function C(){return b||(b=1,v.exports=x()),v.exports}var k,S,E,_,T={exports:{}},P={};function A(){if(k)return P;k=1;var e=C();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return P.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,P.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},P.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},P.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},P.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},P.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,s="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:s}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:s,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},P.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},P.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},P.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},P.requestFormReset=function(e){r.d.r(e)},P.unstable_batchedUpdates=function(e,t){return e(t)},P.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},P.useFormStatus=function(){return i.H.useHostTransitionStatus()},P.version="19.2.0",P}function R(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=A(),T.exports}function O(){if(E)return p;E=1;var e=m(),t=C(),n=R();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(i(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),A=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var L=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===L?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case P:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case h:return"Portal";case w:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}var I=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},W=[],z=-1;function U(e){return{current:e}}function F(e){0>z||(e.current=W[z],W[z]=null,z--)}function B(e,t){z++,W[z]=e.current,e.current=t}var q,H,V=U(null),K=U(null),G=U(null),Q=U(null);function Y(e,t){switch(B(G,t),B(K,e),B(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(V),B(V,e)}function Z(){F(V),F(K),F(G)}function X(e){null!==e.memoizedState&&B(Q,e);var t=V.current,n=wd(t,e.type);t!==n&&(B(K,e),B(V,n))}function J(e){K.current===e&&(F(V),F(K)),Q.current===e&&(F(Q),pf._currentValue=D)}function ee(e){if(void 0===q)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",H=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+H}var te=!1;function ne(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"==typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,se=e.unstable_cancelCallback,le=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,he=e.unstable_NormalPriority,ge=e.unstable_LowPriority,me=e.unstable_IdlePriority,ye=e.log,be=e.unstable_setDisableYieldValue,ve=null,we=null;function xe(e){if("function"==typeof ye&&be(e),we&&"function"==typeof we.setStrictMode)try{we.setStrictMode(ve,e)}catch(t){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,_e=262144,Te=4194304;function Pe(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ae(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Pe(r):0!==(a&=s)?o=Pe(a):n||0!==(n=s&~e)&&(o=Pe(n)):0!==(s=r&~i)?o=Pe(s):0!==a?o=Pe(a):n||0!==(n=r&~e)&&(o=Pe(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Re(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Me(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Le(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function je(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ne(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function $e(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function We(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function ze(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:Af(e.type)}function Ue(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Fe=Math.random().toString(36).slice(2),Be="__reactFiber$"+Fe,qe="__reactProps$"+Fe,He="__reactContainer$"+Fe,Ve="__reactEvents$"+Fe,Ke="__reactListeners$"+Fe,Ge="__reactHandles$"+Fe,Qe="__reactResources$"+Fe,Ye="__reactMarker$"+Fe;function Ze(e){delete e[Be],delete e[qe],delete e[Ve],delete e[Ke],delete e[Ge]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[He]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Be])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Be]||e[He]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Qe];return t||(t=e[Qe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var st=RegExp("^[: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]*$"),lt={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(lt,o)&&(st.test(o)?ct[o]=!0:(lt[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ft(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function gt(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var bt=/[\n"\\]/g;function vt(e){return e.replace(bt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function wt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+pt(s):e.removeAttribute("name")}function xt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void gt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),gt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(I(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),gt(e)}function _t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Tt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function At(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Pt(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Rt(e){if(-1===e.indexOf("-"))return!1;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 Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Lt(e){return Mt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jt(){}var It=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,Dt=null;function Wt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[qe]||null;if(!i)throw Error(r(90));wt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&&mt(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var zt=!1;function Ut(e,t,n){if(zt)return e(t,n);zt=!0;try{return e(t)}finally{if(zt=!1,(null!==$t||null!==Dt)&&(tu(),$t&&(t=$t,e=Dt,Dt=$t=null,Wt(t),e)))for(t=0;t<e.length;t++)Wt(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var o=n[qe]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Bt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),qt=!1;if(Bt)try{var Ht={};Object.defineProperty(Ht,"passive",{get:function(){qt=!0}}),window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch(ep){qt=!1}var Vt=null,Kt=null,Gt=null;function Qt(){if(Gt)return Gt;var e,t,n=Kt,r=n.length,o="value"in Vt?Vt.value:Vt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function Xt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Xt,this.isPropagationStopped=Xt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),sn=Jt(an),ln=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(ln),un=Jt(u({},ln,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),fn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Jt(u({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function vn(){return bn}var wn=Jt(u({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),xn=Jt(u({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Jt(u({},rn,{newState:0,oldState:0})),_n=[9,13,27,32],Tn=Bt&&"CompositionEvent"in window,Pn=null;Bt&&"documentMode"in document&&(Pn=document.documentMode);var An=Bt&&"TextEvent"in window&&!Pn,Rn=Bt&&(!Tn||Pn&&8<Pn&&11>=Pn),On=String.fromCharCode(32),Mn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1;var Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Dn(e,t,n,r){$t?Dt?Dt.push(r):Dt=[r]:$t=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,zn=null;function Un(e){Zu(e,0)}function Fn(e){if(mt(et(e)))return e}function Bn(e,t){if("change"===e)return t}var qn=!1;if(Bt){var Hn;if(Bt){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Hn=Vn}else Hn=!1;qn=Hn&&(!document.documentMode||9<document.documentMode)}function Gn(){Wn&&(Wn.detachEvent("onpropertychange",Qn),zn=Wn=null)}function Qn(e){if("value"===e.propertyName&&Fn(zn)){var t=[];Dn(t,zn,e,Nt(e)),Ut(Un,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),zn=n,(Wn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(zn)}function Xn(e,t){if("click"===e)return Fn(t)}function Jn(e,t){if("input"===e||"change"===e)return Fn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Bt&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==yt(r)||("selectionStart"in(r=lr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Bt&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var br=yr("animationend"),vr=yr("animationiteration"),wr=yr("animationstart"),xr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Er.set(e,t),it(t,[e])}_r.push("scrollEnd");var Pr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Ar=[],Rr=0,Or=0;function Mr(){for(var e=Rr,t=Or=Rr=0;t<e;){var n=Ar[t];Ar[t++]=null;var r=Ar[t];Ar[t++]=null;var o=Ar[t];Ar[t++]=null;var i=Ar[t];if(Ar[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Nr(n,o,i)}}function Lr(e,t,n,r){Ar[Rr++]=e,Ar[Rr++]=t,Ar[Rr++]=n,Ar[Rr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function jr(e,t,n,r){return Lr(e,t,n,r),$r(e)}function Ir(e,t){return Lr(e,null,null,t),$r(e)}function Nr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function $r(e){if(50<Vc)throw Vc=0,Kc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(e,t,n,r){return new Wr(e,t,n,r)}function Ur(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=zr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qr(e,t,n,o,i,a){var s=0;if(o=e,"function"==typeof e)Ur(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,V.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=zr(31,n,t,i)).elementType=P,e.lanes=a,e;case g:return Hr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=zr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case k:return(e=zr(13,n,t,i)).elementType=k,e.lanes=a,e;case S:return(e=zr(19,n,t,i)).elementType=S,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case v:s=9;break e;case x:s=11;break e;case _:s=14;break e;case T:s=16,o=null;break e}s=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=zr(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Hr(e,t,n,r){return(e=zr(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=zr(6,e,null,t)).lanes=n,e}function Kr(e){var t=zr(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=zr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Qr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Qr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Xr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Xr++]=eo,Zr[Xr++]=Jr,Jr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Xr],Zr[Xr]=null,eo=Zr[--Xr],Zr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(r(519));function bo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function vo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Qu.length;n++)Xu(Qu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=jt),t=!0):t=!1,t||bo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function xo(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||xd(e.type,e.memoizedProps)),t=!t),t&&po&&bo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=$d(e)}else 27===n?(n=po,Pd(e.type)?(e=Nd,Nd=null,po=e):po=n):po=fo?Id(e.stateNode.nextSibling):null;return!0}function Co(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Mc?Mc=e:Mc.push.apply(Mc,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=U(null),_o=null,To=null;function Po(e,t,n){B(Eo,t._currentValue),t._currentValue=n}function Ao(e){e._currentValue=Eo.current,F(Eo)}function Ro(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ro(a.return,n,e),o||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(r(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ro(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Mo(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(r(387));if(null!==(s=s.memoizedProps)){var l=i.type;er(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===Q.current){if(null===(s=i.alternate))throw Error(r(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}i=i.return}null!==e&&Oo(t,e,n,o),t.flags|=262144}function Lo(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jo(e){_o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Io(e){return $o(_o,e)}function No(e,t){return null===_o&&jo(e),$o(e,t)}function $o(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Wo=e.unstable_scheduleCallback,zo=e.unstable_NormalPriority,Uo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fo(){return{controller:new Do,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Wo(zo,function(){e.controller.abort()})}var qo=null,Ho=0,Vo=0,Ko=null;function Go(){if(0===--Ho&&null!==qo){null!==Ko&&(Ko.status="fulfilled");var e=qo;qo=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Qo=N.S;N.S=function(e,t){Ic=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===qo){var n=qo=[];Ho=0,Vo=qu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ho++,t.then(Go,Go)}(0,t),null!==Qo&&Qo(e,t)};var Yo=U(null);function Zo(){var e=Yo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){B(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Uo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(jt,jt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(jt,jt);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw si=t,ei;throw t}}var si=null;function li(){if(null===si)throw Error(r(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===T&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=qr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Hr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case f:return pi(n=qr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case h:return(t=Gr(t,e.mode,n)).return=e,t;case T:return p(e,t=ai(t),n)}if(I(t)||M(t))return(t=Hr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,fi(t),n);if(t.$$typeof===w)return p(e,No(e,t),n);hi(e,t)}return null}function m(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case h:return n.key===o?u(e,t,n,r):null;case T:return m(e,t,n=ai(n),r)}if(I(n)||M(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return m(e,t,fi(n),r);if(n.$$typeof===w)return m(e,t,No(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case h:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return y(e,t,n,r=ai(r),o)}if(I(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,No(t,r),o);hi(t,r)}return null}function b(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===g&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var v=u.key;null!==c;){if(c.key===v){if((v=u.type)===g){if(7===c.tag){n(l,c.sibling),(d=i(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===T&&ai(v)===c.type){n(l,c.sibling),pi(d=i(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===g?((d=Hr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=qr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case h:e:{for(v=u.key;null!==c;){if(c.key===v){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=i(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case T:return b(l,c,u=ai(u),d)}if(I(u))return function(r,i,s,l){for(var c=null,u=null,d=i,f=i=0,h=null;null!==d&&f<s.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var g=m(r,d,s[f],l);if(null===g){null===d&&(d=h);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,f),null===u?c=g:u.sibling=g,u=g,d=h}if(f===s.length)return n(r,d),ho&&ao(r,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(r,s[f],l))&&(i=a(d,i,f),null===u?c=d:u.sibling=d,u=d);return ho&&ao(r,f),c}for(d=o(d);f<s.length;f++)null!==(h=y(d,r,f,s[f],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?f:h.key),i=a(h,i,f),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(r,e)}),ho&&ao(r,f),c}(l,c,u,d);if(M(u)){if("function"!=typeof(v=M(u)))throw Error(r(150));return function(i,s,l,c){if(null==l)throw Error(r(151));for(var u=null,d=null,f=s,h=s=0,g=null,b=l.next();null!==f&&!b.done;h++,b=l.next()){f.index>h?(g=f,f=null):g=f.sibling;var v=m(i,f,b.value,c);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(i,f),s=a(v,s,h),null===d?u=v:d.sibling=v,d=v,f=g}if(b.done)return n(i,f),ho&&ao(i,h),u;if(null===f){for(;!b.done;h++,b=l.next())null!==(b=p(i,b.value,c))&&(s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return ho&&ao(i,h),u}for(f=o(f);!b.done;h++,b=l.next())null!==(b=y(f,i,h,b.value,c))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b);return e&&f.forEach(function(e){return t(i,e)}),ho&&ao(i,h),u}(l,c,u=v.call(u),d)}if("function"==typeof u.then)return b(l,c,fi(u),d);if(u.$$typeof===w)return b(l,c,No(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=i(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=b(e,t,n,r);return ui=null,o}catch(a){if(a===ei||a===ni)throw a;var i=zr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),bi=!1;function vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=$r(e),Nr(e,null,n),t}return Lr(e,r,t,n),$r(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function _i(){if(Ei){if(null!==Ko)throw Ko}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;bi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var d=e.alternate;null!==d&&((s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,d=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(bc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){f=g.call(y,f,p);break e}f=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,f,p):g))break e;f=u({},f,p);break e;case 2:bi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(c=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),_c|=a,e.lanes=a,e.memoizedState=f}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Ai(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ri=U(null),Oi=U(0);function Mi(e,t){B(Oi,e=Sc),B(Ri,t),Sc=e|t.baseLanes}function Li(){B(Oi,Sc),B(Ri,Ri.current)}function ji(){Sc=Oi.current,F(Ri),F(Oi)}var Ii=U(null),Ni=null;function $i(e){var t=e.alternate;B(Fi,1&Fi.current),B(Ii,e),null===Ni&&(null===t||null!==Ri.current||null!==t.memoizedState)&&(Ni=e)}function Di(e){B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)}function Wi(e){22===e.tag?(B(Fi,Fi.current),B(Ii,e),null===Ni&&(Ni=e)):zi()}function zi(){B(Fi,Fi.current),B(Ii,Ii.current)}function Ui(e){F(Ii),Ni===e&&(Ni=null),F(Fi)}var Fi=U(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ld(n)||jd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qi=0,Hi=null,Vi=null,Ki=null,Gi=!1,Qi=!1,Yi=!1,Zi=0,Xi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return qi=i,Hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=null===e||null===e.memoizedState?bs:vs,Yi=!1,i=n(r,o),Yi=!1,Qi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){N.H=ys;var t=null!==Vi&&null!==Vi.next;if(qi=0,Ki=Vi=Hi=null,Gi=!1,Xi=0,Ji=null,t)throw Error(r(300));null===e||Is||null!==(e=e.dependencies)&&Lo(e)&&(Is=!0)}function ia(e,t,n,o){Hi=e;var i=0;do{if(Qi&&(Ji=null),Xi=0,Qi=!1,25<=i)throw Error(r(301));if(i+=1,Ki=Vi=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}N.H=ws,a=t(n,o)}while(Qi);return a}function aa(){var e=N.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Hi.flags|=1024),t}function sa(){var e=0!==Zi;return Zi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}qi=0,Ki=Vi=Hi=null,Qi=!1,Xi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Hi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Hi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Hi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Hi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Hi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,N.H=null===t||null===t.memoizedState?bs:vs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return Io(e)}throw Error(r(438,String(e)))}function ha(e){var t=null,n=Hi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Hi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,c=null,u=t=i.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(bc&f)===f:(qi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((qi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=a):c=c.next=f,Hi.lanes|=p,_c|=p}f=u.action,Yi&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=a):c=c.next=p,Hi.lanes|=f,_c|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=a:c.next=l,!er(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ba(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);er(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function va(e,t,n){var o=Hi,i=da(),a=ho;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var s=!er((Vi||i).memoizedState,n);if(s&&(i.memoizedState=n,Is=!0),i=i.queue,qa(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,i,n,t),null),null===mc)throw Error(r(349));a||127&qi||wa(o,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Hi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(r){return!0}}function Sa(e){var t=Ir(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){xe(!0);try{n()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function _a(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,o,i){if(hs(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==N.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Pa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=N.T,a={};N.T=a;try{var s=n(o,r),l=N.S;null!==l&&l(a,s),Aa(e,t,s)}catch(c){Oa(e,t,c)}finally{null!==i&&null!==a.types&&(i.types=a.types),N.T=i}}else try{Aa(e,t,i=n(o,r))}catch(u){Oa(e,t,u)}}function Aa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Oa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ma(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Oa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ma(t),t=t.next}while(t!==r)}e.action=null}function Ma(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function La(e,t){return t}function ja(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Hi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Id(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Id(o.nextSibling),r="F!"===o.data;break e}}bo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:t},n.queue=r,n=ds.bind(null,Hi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Hi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Hi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Na(da(),Vi,e)}function Na(e,t,n){if(t=ya(e,t,La)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(a){if(a===ei)throw ni;throw a}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Hi.flags|=2048,Wa(9,{destroy:void 0},$a.bind(null,o,n),null)),[r,i,e]}function $a(e,t){e.action=t}function Da(e){var t=da(),n=Vi;if(null!==n)return Na(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Wa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Hi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return da().memoizedState}function Ua(e,t,n,r){var o=ua();Hi.flags|=e,o.memoizedState=Wa(1|t,{destroy:void 0},n,void 0===r?null:r)}function Fa(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Wa(t,i,n,r):(Hi.flags|=e,o.memoizedState=Wa(1|t,i,n,r))}function Ba(e,t){Ua(8390656,8,e,t)}function qa(e,t){Fa(2048,8,e,t)}function Ha(e){var t=da().memoizedState;return function(e){Hi.flags|=4;var t=Hi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Hi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&gc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return Fa(4,2,e,t)}function Ka(e,t){return Fa(4,4,e,t)}function Ga(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Qa(e,t,n){n=null!=n?n.concat([e]):null,Fa(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&qi&&!(261930&bc)?e.memoizedState=t:(e.memoizedState=n,e=Qc(),Hi.lanes|=e,_c|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ri.current?(e=Ja(e,n,r),er(e,t)||(Is=!0),e):42&qi&&(!(1073741824&qi)||261930&bc)?(e=Qc(),Hi.lanes|=e,_c|=e,t):(Is=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=$.p;$.p=0!==i&&8>i?i:8;var a,s,l,c=N.T,u={};N.T=u,ps(e,!1,t,n);try{var d=o(),f=N.S;if(null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc());else fs(e,t,r,Gc())}catch(p){fs(e,t,{then:function(){},status:"rejected",reason:p},Gc())}finally{$.p=i,null!==c&&null!==u.types&&(c.types=u.types),N.T=c}}function ns(){}function rs(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=os(e).queue;ts(e,i,t,D,null===n?ns:function(){return is(e),n(o)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return Io(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=xi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Fo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=jr(e,t,n,r))&&(Yc(n,e,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Lr(e,t,o,0),null===mc&&Mr(),!1}catch(l){}if(null!==(n=jr(e,t,o,r)))return Yc(n,e,r),ms(n,t,r),!0}return!1}function ps(e,t,n,o){if(o={lane:2,revertLane:qu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(r(479))}else null!==(t=jr(e,n,o,2))&&Yc(t,e,2)}function hs(e){var t=e.alternate;return e===Hi||null!==t&&t===Hi}function gs(e,t){Qi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ne(e,n)}}var ys={readContext:Io,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var bs={readContext:Io,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Ua(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){Ua(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){xe(!0);try{e()}finally{xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){xe(!0);try{n(t)}finally{xe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Hi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Hi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Hi,i=ua();if(ho){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===mc)throw Error(r(349));127&bc||wa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ba(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Wa(9,{destroy:void 0},xa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Hi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Hi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:za,useState:function(){return ma(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return _a(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};vs.useEffectEvent=Ha;var ws={readContext:Io,use:pa,useCallback:Za,useContext:Io,useEffect:qa,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ba,useRef:za,useState:function(){return ba(ga)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Vi?Ja(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=ba(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:va,useId:ss,useHostTransitionStatus:as,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Vi?_a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function xs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Ha;var Cs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=xi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=xi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Es(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function _s(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function As(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Os(e,t,n){return(n=xi(n)).tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function Ms(e){return(e=xi(e)).tag=3,e}function Ls(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var js=Error(r(461)),Is=!1;function Ns(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function $s(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return jo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Is?(ho&&s&&lo(t),t.flags|=1,Ns(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function Ds(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ur(i)||void 0!==i.defaultProps||null!==n.compare?((e=qr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ws(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ws(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Is=!0)}}return Vs(e,t,n,r,o)}function zs(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Fs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Fs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Mi(t,i):Li(),Wi(t)}else null!==i?(Xo(0,i.cachePool),Mi(t,i),zi(),t.memoizedState=null):(null!==e&&Xo(0,null),Li(),zi());return Ns(e,t,o,n),t.child}function Us(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fs(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Uo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Li(),Wi(t),null!==e&&Mo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function qs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ui(t),t.memoizedState=null,e}function Hs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Vs(e,t,n,r,o){return jo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return jo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Is?(ho&&r&&lo(t),t.flags|=1,Ns(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(jo(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Io(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},vi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Io(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(xs(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),_i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Io(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),bi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),_i(),c=t.memoizedState,s||f!==c||bi?("function"==typeof d&&(xs(t,n,d,r),c=t.memoizedState),(l=bi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=Dr,"object"==typeof c&&null!==c&&(l=Io(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),bi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),_i();var p=t.memoizedState;a!==d||f!==p||bi||null!==e&&null!==e.dependencies&&Lo(e.dependencies)?("function"==typeof s&&(xs(t,n,s,r),p=t.memoizedState),(u=bi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Lo(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Hs(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):Ns(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Qs(e,t,n,r){return Co(),t.flags|=256,Ns(e,t,n,r),t.child}var Ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Jo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Ac),e}function Js(e,t,n){var o,i=t.pendingProps,a=!1,s=!!(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&!!(2&Fi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(a?$i(t):zi(),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return jd(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(zi(),l=tl({mode:"hidden",children:l},a=t.mode),i=Hr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(null,i)):($i(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?($i(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(zi(),t.child=e.child,t.flags|=128,t=null):(zi(),l=i.fallback,a=t.mode,i=tl({mode:"visible",children:i.children},a),(l=Hr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,mi(t,e.child,null,n),(i=t.child).memoizedState=Zs(n),i.childLanes=Xs(e,o,n),t.memoizedState=Ys,t=Us(null,i));else if($i(t),jd(l)){if(o=l.nextSibling&&l.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=nl(e,t,n)}else if(Is||Mo(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(o=mc)&&(0!==(i=$e(o,n))&&i!==c.retryLane))throw c.retryLane=i,Ir(e,i),Yc(o,e,i),js;Ld(l)||lu(),t=nl(e,t,n)}else Ld(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Id(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,i.children)).flags|=4096);return t}return a?(zi(),l=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Fr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Fr(u,l):(l=Hr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,Us(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Zs(n):(null!==(a=l.cachePool)?(c=Uo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Xs(e,o,n),t.memoizedState=Ys,Us(e.child,i)):($i(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=zr(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Fi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Fi,a),Ns(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Mo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Lo(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(sl(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Uo,e.memoizedState.cache),Co();break;case 27:case 5:X(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?($i(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Js(e,t,n):($i(t),null!==(e=al(e,t,n))?e.sibling:null);$i(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Mo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Fi,Fi.current),r)break;return null;case 22:return t.lanes=0,zs(e,t,n,t.pendingProps);case 24:Po(0,Uo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=$s(null,t,e,o,n);break e}if(i===_){t.tag=14,t=Ds(null,t,e,o,n);break e}}throw t=j(e)||e,Error(r(306,t,""))}Ur(e)?(o=Es(e,o),t.tag=1,t=Gs(null,t,e,o,n)):(t.tag=0,t=Vs(null,t,e,o,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,o=t.type,i=Es(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,wi(e,t),Ti(t,o,null,n);var s=t.memoizedState;if(o=s.cache,Po(0,Uo,o),o!==a.cache&&Oo(t,[Uo],n,!0),_i(),o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Qs(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Qs(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Id(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=al(e,t,n);break e}Ns(e,t,o,n)}t=t.child}return t;case 26:return Hs(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(o=bd(G.current).createElement(n))[Be]=t,o[qe]=e,hd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&ho&&(o=t.stateNode=Wd(t.type,t.pendingProps,G.current),fo=t,mo=!0,i=po,Pd(t.type)?(Nd=i,po=Id(o.firstChild)):po=i),Ns(e,t,t.pendingProps.children,n),Hs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Id(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,mo))?(t.stateNode=o,fo=t,po=Id(o.firstChild),mo=!1,i=!0):i=!1),i||bo(t)),X(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,o=a.children,xd(i,a)?o=null:null!==s&&xd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),pf._currentValue=i),Hs(e,t),Ns(e,t,o,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||bo(t)),null;case 13:return Js(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=mi(t,null,o,n):Ns(e,t,o,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Ns(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ns(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),Ns(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,jo(t),o=o(i=Io(i)),t.flags|=1,Ns(e,t,o,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Ws(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===o.mode)return e=Bs(t,o),t.lanes=536870912,Us(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Md(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw bo(t);return t.lanes=536870912,null}return Bs(t,o)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=qs(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Mo(e,t,n,!1),i=0!==(n&e.childLanes),Is||i){if(null!==(o=mc)&&0!==(s=$e(o,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Yc(o,e,s),js;lu(),t=qs(e,t,n)}else e=a.treeContext,po=Id(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,o)).flags|=4096;return t}return(e=Fr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return zs(e,t,n,t.pendingProps);case 24:return jo(t),o=Io(Uo),null===e?(null===(i=Zo())&&(i=mc,a=Fo(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},vi(t),Po(0,Uo,i)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),_i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Po(0,Uo,o)):(o=a.cache,Po(0,Uo,o),o!==i.cache&&Oo(t,[Uo],n,!0))),Ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Me():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ao(Uo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(xo(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cl(t),null!==a?(hl(t),dl(t,a)):(hl(t),ul(t,i,0,0,n))):a?a!==e.memoizedState?(cl(t),hl(t),dl(t,a)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cl(t),hl(t),ul(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}e=V.current,xo(t)?vo(t):(e=Wd(i,o,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return hl(t),null}if(a=V.current,xo(t))vo(t);else{var s=bd(G.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}a[Be]=t,a[qe]=o;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(hd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cl(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,xo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=fo))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||bo(t,!0)}else(e=bd(e).createTextNode(o))[Be]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=xo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ui(t),t):(Ui(t),null);if(128&t.flags)throw Error(r(558))}return hl(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=xo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[Be]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Ui(t),t):(Ui(t),null)}return Ui(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Ao(t.type),hl(t),null;case 19:if(F(Fi),null===(o=t.memoizedState))return hl(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)pl(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Bi(e))){for(t.flags|=128,pl(o,!1),e=a.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Fi,1&Fi.current|2),ho&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Nc&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Bi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!ho)return hl(t),null}else 2*ue()-o.renderingStartTime>Nc&&536870912!==n&&(t.flags|=128,i=!0,pl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Fi.current,B(Fi,i?1&n|2:1&n),ho&&ao(t,o.treeForkCount),e):(hl(t),null);case 22:case 23:return Ui(t),ji(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&F(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ao(Uo),hl(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ao(Uo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Ui(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ui(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(Fi),null;case 4:return Z(),null;case 10:return Ao(t.type),null;case 22:case 23:return Ui(t),ji(),null!==e&&F(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ao(Uo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Ao(Uo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Ui(t);break;case 13:Ui(t);break;case 19:F(Fi);break;case 10:Ao(t.type);break;case 22:case 23:Ui(t),ji(),null!==e&&F(Yo);break;case 24:Ao(Uo)}}function bl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Eu(t,t.return,s)}}function vl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){Eu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){Eu(t,t.return,u)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Ai(t,n)}catch(r){Eu(e,e.return,r)}}}function xl(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Eu(e,t,r)}}function Cl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Eu(e,t,o)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(o){Eu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){Eu(e,t,i)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Eu(e,e.return,o)}}function El(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:o.hasOwnProperty(h)||fd(e,t,h,null,o,f)}}for(var p in o){var h=o[p];if(f=n[p],o.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(r(137,t));break;default:h!==f&&fd(e,t,p,h,o,f)}}return void wt(e,s,l,c,u,d,a,i);case"select":for(a in h=s=l=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":h=c;default:o.hasOwnProperty(a)||fd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==c&&fd(e,t,i,a,o,c)}return t=l,n=s,o=h,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!o.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,o,i)}for(s in o)if(i=o[s],a=n[s],o.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&fd(e,t,s,i,o,a)}return void St(e,p,h);case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&null!=p&&!o.hasOwnProperty(g))if("selected"===g)e.selected=!1;else fd(e,t,g,null,o,p);for(c in o)if(p=o[c],h=n[c],o.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else fd(e,t,c,p,o,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m)&&fd(e,t,m,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:fd(e,t,u,p,o,h)}return;default:if(Rt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,o,h);return}}for(var b in n)p=n[b],n.hasOwnProperty(b)&&null!=p&&!o.hasOwnProperty(b)&&fd(e,t,b,null,o,p);for(f in o)p=o[f],h=n[f],!o.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,o,h)}(o,e.type,n,t),o[qe]=t}catch(i){Eu(e,e.return,i)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=jt));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Be]=e,t[qe]=n}catch(i){Eu(e,e.return,i)}}var Ol=!1,Ml=!1,Ll=!1,jl="function"==typeof WeakSet?WeakSet:Set,Il=null;function Nl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Yl(e,n),4&r&&bl(5,n);break;case 1:if(Yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Eu(n,n.return,a)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Eu(n,n.return,s)}}64&r&&wl(n),512&r&&Cl(n,n.return);break;case 3:if(Yl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Ai(e,t)}catch(a){Eu(n,n.return,a)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Yl(e,n),null===t&&4&r&&Sl(n),512&r&&Cl(n,n.return);break;case 12:Yl(e,n);break;case 31:Yl(e,n),4&r&&Fl(e,n);break;case 13:Yl(e,n),4&r&&Bl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Au.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Ml,o=Ol;var i=Ml;Ol=r,(Ml=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Yl(e,n),Ol=o,Ml=i}break;case 30:break;default:Yl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Wl=!1;function zl(e,t,n){for(n=n.child;null!==n;)Ul(e,t,n),n=n.sibling}function Ul(e,t,n){if(we&&"function"==typeof we.onCommitFiberUnmount)try{we.onCommitFiberUnmount(ve,n)}catch(i){}switch(n.tag){case 26:Ml||kl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Ml||kl(n,t);var r=Dl,o=Wl;Pd(n.type)&&(Dl=n.stateNode,Wl=!1),zl(e,t,n),zd(n.stateNode),Dl=r,Wl=o;break;case 5:Ml||kl(n,t);case 6:if(r=Dl,o=Wl,Dl=null,zl(e,t,n),Wl=o,null!==(Dl=r))if(Wl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(a){Eu(n,t,a)}else try{Dl.removeChild(n.stateNode)}catch(a){Eu(n,t,a)}break;case 18:null!==Dl&&(Wl?(Ad(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Kf(e)):Ad(Dl,n.stateNode));break;case 4:r=Dl,o=Wl,Dl=n.stateNode.containerInfo,Wl=!0,zl(e,t,n),Dl=r,Wl=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),Ml||vl(4,n,t),zl(e,t,n);break;case 1:Ml||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&xl(n,t,r)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:Ml=(r=Ml)||null!==n.memoizedState,zl(e,t,n),Ml=r;break;default:zl(e,t,n)}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Kf(e)}catch(n){Eu(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Kf(e)}catch(n){Eu(t,t.return,n)}}function ql(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new jl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new jl),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Hl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Pd(l.type)){Dl=l.stateNode,Wl=!1;break e}break;case 5:Dl=l.stateNode,Wl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Wl=!0;break e}l=l.return}if(null===Dl)throw Error(r(160));Ul(a,s,i),Dl=null,Wl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Hl(t,e),Gl(e),4&o&&(vl(3,e,e.return),bl(3,e),vl(5,e,e.return));break;case 1:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),64&o&&Ol&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Vl;if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[Be]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),hd(a,o,n),a[Be]=e,nt(a),o=a;break e;case"link":var s=of("link","href",i).get(o+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(s=of("meta","content",i).get(o+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[Be]=e,nt(a),o=a}e.stateNode=o}else af(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?af(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),null!==n&&4&o&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Hl(t,e),Gl(e),512&o&&(Ml||null===n||kl(n,n.return)),32&e.flags){i=e.stateNode;try{_t(i,"")}catch(g){Eu(e,e.return,g)}}4&o&&null!=e.stateNode&&El(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Ll=!0);break;case 6:if(Hl(t,e),Gl(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(g){Eu(e,e.return,g)}}break;case 3:if(rf=null,i=Vl,Vl=Bd(t.containerInfo),Hl(t,e),Vl=i,Gl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Kf(t.containerInfo)}catch(g){Eu(e,e.return,g)}Ll&&(Ll=!1,Ql(e));break;case 4:o=Vl,Vl=Bd(e.stateNode.containerInfo),Hl(t,e),Gl(e),Vl=o;break;case 12:default:Hl(t,e),Gl(e);break;case 31:case 19:Hl(t,e),Gl(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 13:Hl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(jc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,ql(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ol,d=Ml;if(Ol=u||i,Ml=d||c,Hl(t,e),Ml=d,Ol=u,Gl(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ol||Ml||Zl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(g){Eu(c,c.return,g)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(g){Eu(c,c.return,g)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;i?Rd(h,!0):Rd(c.stateNode,!1)}catch(g){Eu(c,c.return,g)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,ql(e,n))));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if(_l(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Al(e,Tl(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(_t(a,""),n.flags&=-33),Al(e,Tl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Pl(e,Tl(e),s);break;default:throw Error(r(161))}}catch(l){Eu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ql(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ql(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Nl(e,t.alternate,t),t=t.sibling}function Zl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Zl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&xl(t,t.return,n),Zl(t);break;case 27:zd(t.stateNode);case 26:case 5:kl(t,t.return),Zl(t);break;case 22:null===t.memoizedState&&Zl(t);break;default:Zl(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),bl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){Eu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Pi(l[o],s)}catch(c){Eu(r,r.return,c)}}n&&64&a&&wl(i),Cl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),Cl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Fl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),Cl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Jl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&bl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Eu(t,t.return,l)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Jl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),bl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Jl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Jl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),i=t.querySelector(Qd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Ud.get(o))&&tf(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var o=(r=Il).sibling,i=r.return;if($l(r),r===n){Il=null;break e}if(null!==o){o.return=i,Il=o;break e}Il=i}}}var pc={getCacheForType:function(e){var t=Io(Uo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Io(Uo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,bc=0,vc=0,wc=null,xc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,_c=0,Tc=0,Pc=0,Ac=0,Rc=0,Oc=null,Mc=null,Lc=!1,jc=0,Ic=0,Nc=1/0,$c=null,Dc=null,Wc=0,zc=null,Uc=null,Fc=0,Bc=0,qc=null,Hc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==bc?bc&-bc:null!==N.T?qu():ze()}function Qc(){if(0===Ac)if(536870912&bc&&!ho)Ac=536870912;else{var e=_e;!(3932160&(_e<<=1))&&(_e=262144),Ac=e}return null!==(e=Ii.current)&&(e.flags|=32),Ac}function Yc(e,t,n){(e!==mc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,bc,Ac,!1)),je(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,bc,Ac,!1)),$u(e))}function Zc(e,t,n){if(6&gc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Re(e,t),i=o?function(e,t){var n=gc;gc|=2;var o=au(),i=su();mc!==e||bc!==t?($c=null,Nc=ue()+500,ru(e,t)):Cc=Re(e,t);e:for(;;)try{if(0!==vc&&null!==yc){t=yc;var a=wc;t:switch(vc){case 1:vc=0,wc=null,hu(e,t,a,1);break;case 2:case 9:if(oi(a)){vc=0,wc=null,pu(t);break}t=function(){2!==vc&&9!==vc||mc!==e||(vc=7),$u(e)},a.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:oi(a)?(vc=0,wc=null,pu(t)):(vc=0,wc=null,hu(e,t,a,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){vc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}vc=0,wc=null,hu(e,t,a,5);break;case 6:vc=0,wc=null,hu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(d){ou(e,d)}return To=_o=null,N.H=o,N.A=i,gc=n,null!==yc?0:(mc=null,bc=0,Mr(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Oc;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Mc,Mc=i,null!==a&&(null===Mc?Mc=a:Mc.push.apply(Mc,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Ac,!xc);break e;case 2:Mc=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=jc+300-ue())){if(eu(o,t,Ac,!xc),0!==Ae(o,0,!0))break e;Fc=t,o.timeoutHandle=kd(Xc.bind(null,o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,"Throttled",-0,0),i)}else Xc(o,n,Mc,$c,Lc,t,Ac,Tc,Rc,xc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}$u(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jt});var h=(62914560&i)===i?jc-ue():(4194048&i)===i?Ic-ue():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Fc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===vc)var e=yc.return;else To=_o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Fc=0,nu(),mc=e,yc=n=Fr(e.current,null),bc=t,vc=0,wc=null,xc=!1,Cc=Re(e,t),kc=!1,Rc=Ac=Pc=Tc=_c=Ec=0,Mc=Oc=null,Lc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Mr(),n}function ou(e,t){Hi=null,N.H=ys,t===ei||t===ni?(t=li(),vc=3):t===ti?(t=li(),vc=4):vc=t===js?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,As(e,Yr(t,e.current)))}function iu(){var e=Ii.current;return null===e||((4194048&bc)===bc?null===Ni:!!((62914560&bc)===bc||536870912&bc)&&e===Ni)}function au(){var e=N.H;return N.H=ys,null===e?ys:e}function su(){var e=N.A;return N.A=pc,e}function lu(){Ec=4,xc||(4194048&bc)!==bc&&null!==Ii.current||(Cc=!0),!(134217727&_c)&&!(134217727&Tc)||null===mc||eu(mc,bc,Ac,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&bc===t||($c=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==vc&&null!==yc){var s=yc,l=wc;switch(vc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ii.current&&(t=!0);var c=vc;if(vc=0,wc=null,hu(e,s,l,c),n&&Cc){a=0;break e}break;default:c=vc,vc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(u){ou(e,u)}return t&&e.shellSuspendCounter++,To=_o=null,gc=r,N.H=o,N.A=i,null===yc&&(mc=null,bc=0,Mr()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!le();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,bc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,bc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,o){To=_o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Mo(t,n,i,!0),null!==(n=Ii.current)){switch(n.tag){case 31:case 13:return null===Ni?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),_u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),_u(e,o,i)),!1}throw Error(r(435,n.tag))}return _u(e,o,i),lu(),!1}if(ho)return null!==(t=Ii.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Os(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Oc?Oc=[a]:Oc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Os(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Ls(i=Ms(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,bc))return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}catch(a){if(null!==i)throw yc=i,a;return Ec=1,As(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===o?e=!0:Cc||536870912&bc?e=!1:(xc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Ii.current)&&13===o.tag&&(o.flags|=16384))),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,xc);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,s,l,c){e.cancelPendingCommit=null;do{Cu()}while(0!==Wc);if(6&gc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Or,s,l,c),e===mc&&(yc=mc=null,bc=0),Uc=t,zc=e,Fc=n,Bc=a,qc=i,Hc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=N.T,N.T=null,i=$.p,$.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=Cf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=s),p===a&&++d===o&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},Cf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var g=Es(n.type,i);e=o.getSnapshotBeforeUpdate(g,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Eu(n,n.return,y)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{gc=s,$.p=i,N.T=o}}Wc=1,bu(),vu(),wu()}}function bu(){if(1===Wc){Wc=0;var e=zc,t=Uc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),b=rr(s,m);if(y&&b&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(v),p.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),p.addRange(v))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Cf=!!md,yd=md=null}finally{gc=o,$.p=r,N.T=n}}e.current=t,Wc=2}}function vu(){if(2===Wc){Wc=0;var e=zc,t=Uc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=N.T,N.T=null;var r=$.p;$.p=2;var o=gc;gc|=4;try{Nl(e,t.alternate,t)}finally{gc=o,$.p=r,N.T=n}}Wc=3}}function wu(){if(4===Wc||3===Wc){Wc=0,ce();var e=zc,t=Uc,n=Fc,r=Hc;10256&t.subtreeFlags||10256&t.flags?Wc=5:(Wc=0,Uc=zc=null,xu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),We(n),t=t.stateNode,we&&"function"==typeof we.onCommitFiberRoot)try{we.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=N.T,o=$.p,$.p=2,N.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{N.T=t,$.p=o}}3&Fc&&Cu(),$u(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,Du(0)}}function xu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function Cu(){return bu(),vu(),wu(),ku()}function ku(){if(5!==Wc)return!1;var e=zc,t=Bc;Bc=0;var n=We(Fc),o=N.T,i=$.p;try{$.p=32>n?32:n,N.T=null,n=qc,qc=null;var a=zc,s=Fc;if(Wc=0,Uc=zc=null,Fc=0,6&gc)throw Error(r(331));var l=gc;if(gc|=4,uc(a.current),nc(a,a.current,s,n),gc=l,Du(0,!1),we&&"function"==typeof we.onPostCommitFiberRoot)try{we.onPostCommitFiberRoot(ve,a)}catch(c){}return!0}finally{$.p=i,N.T=o,xu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Os(e.stateNode,t,2),2))&&(je(e,2),$u(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Ms(2),2))&&(Ls(n,r,t,e),je(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(bc&n)===n&&(4===Ec||3===Ec&&(62914560&bc)===bc&&300>ue()-jc?!(2&gc)&&ru(e,0):Pc|=n,Rc===bc&&(Rc=0)),$u(e)}function Pu(e,t){0===t&&(t=Me()),null!==(e=Ir(e,t))&&(je(e,t),$u(e))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Ou=null,Mu=null,Lu=!1,ju=!1,Iu=!1,Nu=0;function $u(e){e!==Mu&&null===e.next&&(null===Mu?Ou=Mu=e:Mu=Mu.next=e),ju=!0,Lu||(Lu=!0,_d(function(){6&gc?ae(fe,Wu):zu()}))}function Du(e,t){if(!Iu&&ju){Iu=!0;do{for(var n=!1,r=Ou;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=bc,!(3&(i=Ae(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Re(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Iu=!1}}function Wu(){zu()}function zu(){ju=Lu=!1;var e=0;0!==Nu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Nu);for(var t=ue(),n=null,r=Ou;null!==r;){var o=r.next,i=Uu(r,t);0===i?(r.next=null,null===n?Ou=o:n.next=o,null===o&&(Mu=n)):(n=r,(0!==e||3&i)&&(ju=!0)),r=o}0!==Wc&&5!==Wc||Du(e),0!==Nu&&(Nu=0)}function Uu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=bc,n=Ae(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Re(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),We(n)){case 2:case 8:n=pe;break;case 32:default:n=he;break;case 268435456:n=me}return r=Fu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Fu(e,t){if(0!==Wc&&5!==Wc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=bc;return 0===(r=Ae(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Uu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Fu.bind(null,e):null)}function Bu(e,t){if(Cu())return null;Zc(e,t,!0)}function qu(){if(0===Nu){var e=Vo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Nu=e}return Nu}function Hu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Lt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ku=0;Ku<_r.length;Ku++){var Gu=_r[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(br,"onAnimationEnd"),Tr(vr,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(xr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){Pr(u)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Ve];void 0===n&&(n=t[Ve]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Af(t)){case 2:var o=kf;break;case 8:o=Sf;break;default:o=Ef}n=o.bind(null,t,n,e),o=void 0,!qt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o)break;if(4===s)for(s=r.return;null!==s;){var c=s.tag;if((3===c||4===c)&&s.stateNode.containerInfo===o)return;s=s.return}for(;null!==l;){if(null===(s=Xe(l)))return;if(5===(c=s.tag)||6===c||26===c||27===c){r=a=s;continue e}l=l.parentNode}}r=r.return}Ut(function(){var r=a,o=Nt(n),s=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case br:case vr:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=xn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),s.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Xe(u)&&!u[He])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xe(u):null)&&(f=i(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=xn,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:et(c),h=null==u?l:et(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Xe(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(s,l,c,d,!1),null!==u&&null!==f&&sd(s,f,u,d,!0)}if("select"===(c=(l=r?et(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var b=Bn;else if($n(l))if(qn)b=Jn;else{b=Zn;var v=Yn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Rt(r.elementType)&&(b=Bn):b=Xn;switch(b&&(b=b(e,r))?Dn(s,b,n,o):(v&&v(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&Ct(l,"number",l.value)),v=r?et(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(lr=v,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(s,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(s,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?Ln(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Rn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Qt()):(Kt="value"in(Vt=o)?Vt.value:Vt.textContent,In=!0)),0<(v=id(r,x)).length&&(x=new hn(x,e,null,n,o),s.push({event:x,listeners:v}),w?x.data=w:null!==(w=jn(n))&&(x.data=w))),(w=An?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Mn=!0,On);case"textInput":return(e=t.data)===On&&Mn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Tn&&Ln(e,t)?(e=Qt(),Gt=Kt=Vt=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(x=id(r,"onBeforeInput")).length&&(v=new hn("onBeforeInput","beforeinput",null,n,o),s.push({event:v,listeners:x}),v.data=w)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Hu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Hu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Nu){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(s,e,r,n,o)}Zu(s,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||_t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&_t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":At(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===n?("input"!==t&&fd(e,t,"name",i.name,i,null),fd(e,t,"formEncType",i.formEncType,i,null),fd(e,t,"formMethod",i.formMethod,i,null),fd(e,t,"formTarget",i.formTarget,i,null)):(fd(e,t,"encType",i.encType,i,null),fd(e,t,"method",i.method,i,null),fd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=Lt(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=jt);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=Lt(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ft(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ft(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ft(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ft(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Ot.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":At(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?_t(e,o):("number"==typeof o||"bigint"==typeof o)&&_t(e,""+o);break;case"onScroll":null!=o&&Xu("scroll",e);break;case"onScrollEnd":null!=o&&Xu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[qe]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(null!=s)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,o,s,n,null)}}return a&&fd(e,t,"srcSet",n.srcSet,n,null),void(i&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=o=s=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:fd(e,t,i,d,n,null)}}return void xt(e,o,l,c,u,s,a,!1);case"select":for(a in Xu("invalid",e),i=s=o=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":o=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:fd(e,t,a,l,n,null)}return t=o,n=s,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(s in Xu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(r(91));break;default:fd(e,t,s,l,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else fd(e,t,c,i,n,null);return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(i=0;i<Qu.length;i++)Xu(Qu[i],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:fd(e,t,u,i,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&fd(e,t,l,i,n,null))}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function bd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function xd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,_d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Ad(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Kf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)zd(e.ownerDocument.documentElement);else if("head"===n){zd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ye]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&zd(e.ownerDocument.body);n=o}while(n);Kf(t)}function Rd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Md(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Ld(e){return"$?"===e.data||"$~"===e.data}function jd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Nd=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Wd(e,t,n){switch(t=bd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function zd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Ud=new Map,Fd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var qd=$.d;$.d={f:function(){var e=qd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):qd.r(e)},D:function(e){qd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){qd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){qd.L(e,t,n);var r=Hd;if(r&&e&&t){var o='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+vt(n.imageSizes)+'"]')):o+='[href="'+vt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Ud.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Ud.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Qd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){qd.m(e,t);var n=Hd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Ud.has(i)&&(e=u({rel:"modulepreload",href:e},t),Ud.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){qd.X(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){qd.S(e,t,n);var r=Hd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Qd(i)))s.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ud.get(i))&&tf(e,n);var l=a=r.createElement("link");nt(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){qd.M(e,t);var n=Hd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Ud.get(o))&&nf(e,t),nt(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Hd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Hd;if(r&&"string"==typeof t&&t){var o=vt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Fd.has(o)||(Fd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function Kd(e,t,n,o){var i,a,s,l,c=(c=G.current)?Bd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Qd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Ud.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ud.set(e,n),u||(i=c,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),hd(a,"link",s),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+vt(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+vt(e)+'"]'}function Xd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),hd(o,"style",i),ef(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Qd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Ud.get(i))&&tf(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(a,"link",o),t.state.loading|=4,ef(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Xd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Ud.get(a))&&nf(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),hd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,ef(o,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function hf(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,s),t=1,!0===i&&(t|=24),i=zr(3,null,null,t),e.current=i,i.stateNode=e,(t=Fo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},vi(i),e}function mf(e){return e?e=Dr:Dr}function yf(e,t,n,r,o,i){o=mf(o),null===r.context?r.context=o:r.pendingContext=o,(r=xi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function bf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vf(e,t){bf(e,t),(e=e.alternate)&&bf(e,t)}function wf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Yc(t,0,67108864),vf(e,67108864)}}function xf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Ir(e,t=De(t));null!==n&&Yc(n,0,t),vf(e,t)}}var Cf=!0;function kf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=2,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Sf(e,t,n,r){var o=N.T;N.T=null;var i=$.p;try{$.p=8,Ef(e,t,n,r)}finally{$.p=i,N.T=o}}function Ef(e,t,n,r){if(Cf){var o=_f(r);if(null===o)rd(e,t,r,Tf,n),Df(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Wf(Of,e,t,n,r,o),!0;case"dragenter":return Mf=Wf(Mf,e,t,n,r,o),!0;case"mouseover":return Lf=Wf(Lf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return jf.set(i,Wf(jf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,If.set(i,Wf(If.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<$f.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Pe(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Ce(a);s.entanglements[1]|=l,a&=~l}$u(i),!(6&gc)&&(Nc=ue()+500,Du(0))}}break;case 31:case 13:null!==(s=Ir(i,2))&&Yc(s,0,2),tu(),vf(i,2)}if(null===(i=_f(r))&&rd(e,t,r,Tf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function _f(e){return Pf(e=Nt(e))}var Tf=null;function Pf(e){if(Tf=null,null!==(e=Xe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tf=e,null}function Af(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case fe:return 2;case pe:return 8;case he:case ge:return 32;case me:return 268435456;default:return 32}default:return 32}}var Rf=!1,Of=null,Mf=null,Lf=null,jf=new Map,If=new Map,Nf=[],$f="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Mf=null;break;case"mouseover":case"mouseout":Lf=null;break;case"pointerover":case"pointerout":jf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":If.delete(t.pointerId)}}function Wf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zf(e){var t=Xe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ue(e.priority,function(){xf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=_f(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&wf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Ff(e,t,n){Uf(e)&&n.delete(t)}function Bf(){Rf=!1,null!==Of&&Uf(Of)&&(Of=null),null!==Mf&&Uf(Mf)&&(Mf=null),null!==Lf&&Uf(Lf)&&(Lf=null),jf.forEach(Ff),If.forEach(Ff)}function qf(t,n){t.blockedOn===n&&(t.blockedOn=null,Rf||(Rf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Bf)))}var Hf=null;function Vf(t){Hf!==t&&(Hf=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Hf===t&&(Hf=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Pf(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Kf(e){function t(t){return qf(t,e)}null!==Of&&qf(Of,e),null!==Mf&&qf(Mf,e),null!==Lf&&qf(Lf,e),jf.forEach(t),If.forEach(t);for(var n=0;n<Nf.length;n++){var r=Nf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nf.length&&null===(n=Nf[0]).blockedOn;)zf(n),null===n.blockedOn&&Nf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Vf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Pf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Vf(n)}}}function Gf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Qf(e){this._internalRoot=e}function Yf(e){this._internalRoot=e}Yf.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));yf(t.current,Gc(),e,t,null,null)},Yf.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;yf(e.current,2,null,e,null,null),tu(),t[He]=null}},Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=ze();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nf.length&&0!==t&&t<Nf[n].priority;n++);Nf.splice(n,0,e),0===n&&zf(e)}};var Zf=t.version;if("19.2.0"!==Zf)throw Error(r(527,Zf,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(o=a.return)){n=o;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===o)return l(a),t;s=s.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=s;break}if(u===o){c=!0,o=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,o=a;break}if(u===o){c=!0,o=s,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jf.isDisabled&&Jf.supportsFiber)try{ve=Jf.inject(Xf),we=Jf}catch(tp){}}return p.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=_s,s=Ts,l=Ps;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=gf(e,1,!1,null,0,n,i,null,a,s,l,Gf),e[He]=t.current,td(e),new Qf(t)},p.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",s=_s,l=Ts,c=Ps,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=gf(e,1,!0,t,0,i,a,u,s,l,c,Gf)).context=mf(null),n=t.current,(a=xi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,je(t,n),$u(t),e[He]=t.current,td(e),new Yf(t)},p.version="19.2.0",p}var M=(_||(_=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),f.exports=O()),f.exports),L=C();const j=r(L),I=t({__proto__:null,default:j},[L]);function N(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function $(e){if("string"!=typeof e)throw new Error(N(7));return e.charAt(0).toUpperCase()+e.slice(1)}var D,W,z={exports:{}},U={};function F(){if(D)return U;D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case l:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return h}}case t:return h}}}return U.ContextConsumer=i,U.ContextProvider=a,U.Element=e,U.ForwardRef=s,U.Fragment=n,U.Lazy=d,U.Memo=u,U.Portal=t,U.Profiler=o,U.StrictMode=r,U.Suspense=l,U.SuspenseList=c,U.isContextConsumer=function(e){return h(e)===i},U.isContextProvider=function(e){return h(e)===a},U.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},U.isForwardRef=function(e){return h(e)===s},U.isFragment=function(e){return h(e)===n},U.isLazy=function(e){return h(e)===d},U.isMemo=function(e){return h(e)===u},U.isPortal=function(e){return h(e)===t},U.isProfiler=function(e){return h(e)===o},U.isStrictMode=function(e){return h(e)===r},U.isSuspense=function(e){return h(e)===l},U.isSuspenseList=function(e){return h(e)===c},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)},U.typeOf=h,U}function B(){return W||(W=1,z.exports=F()),z.exports}var q=B();function H(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function V(e){if(L.isValidElement(e)||q.isValidElementType(e)||!H(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V(e[n])}),t}function K(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return H(e)&&H(t)&&Object.keys(t).forEach(o=>{L.isValidElement(t[o])||q.isValidElementType(t[o])?r[o]=t[o]:H(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&H(e[o])?r[o]=K(e[o],t[o],n):n.clone?r[o]=H(t[o])?V(t[o]):t[o]:r[o]=t[o]}),r}function G(e,t){return t?K(e,t,{clone:!1}):e}function Q(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Y={xs:0,sm:600,md:900,lg:1200,xl:1536},Z={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Y[e]}px)`},X={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Y[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function J(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Z;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Z;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:X,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Y).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function ee(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}function te(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ne({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t),{})}function re(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oe(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:re(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=re(e.theme,r)||{};return J(e,i,e=>{let r=oe(a,o,e);return e===r&&"string"==typeof e&&(r=oe(a,o,`${t}${"default"===e?"":$(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ae={m:"margin",p:"padding"},se={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ce=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!le[e])return[e];e=le[e]}const[t,n]=e.split(""),r=ae[t],o=se[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),ue=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],de=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function fe(e,t,n,r){const o=re(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pe(e){return fe(e,"spacing",8)}function he(e,t){return"string"==typeof t||null==t?t:e(t)}function ge(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=he(t,n),e),{})}(ce(n),r);return J(e,e[n],o)}function me(e,t){const n=pe(e.theme);return Object.keys(e).map(r=>ge(e,t,r,n)).reduce(G,{})}function ye(e){return me(e,ue)}function be(e){return me(e,de)}function ve(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?G(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function we(e){return"number"!=typeof e?e:`${e}px solid`}function xe(e,t){return ie({prop:e,themeKey:"borders",transform:t})}ye.propTypes={},ye.filterProps=ue,be.propTypes={},be.filterProps=de;const Ce=xe("border",we),ke=xe("borderTop",we),Se=xe("borderRight",we),Ee=xe("borderBottom",we),_e=xe("borderLeft",we),Te=xe("borderColor"),Pe=xe("borderTopColor"),Ae=xe("borderRightColor"),Re=xe("borderBottomColor"),Oe=xe("borderLeftColor"),Me=xe("outline",we),Le=xe("outlineColor"),je=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=fe(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:he(t,e)});return J(e,e.borderRadius,n)}return null};je.propTypes={},je.filterProps=["borderRadius"],ve(Ce,ke,Se,Ee,_e,Te,Pe,Ae,Re,Oe,je,Me,Le);const Ie=e=>{if(void 0!==e.gap&&null!==e.gap){const t=fe(e.theme,"spacing",8),n=e=>({gap:he(t,e)});return J(e,e.gap,n)}return null};Ie.propTypes={},Ie.filterProps=["gap"];const Ne=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=fe(e.theme,"spacing",8),n=e=>({columnGap:he(t,e)});return J(e,e.columnGap,n)}return null};Ne.propTypes={},Ne.filterProps=["columnGap"];const $e=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=fe(e.theme,"spacing",8),n=e=>({rowGap:he(t,e)});return J(e,e.rowGap,n)}return null};$e.propTypes={},$e.filterProps=["rowGap"];function De(e,t){return"grey"===t?t:e}ve(Ie,Ne,$e,ie({prop:"gridColumn"}),ie({prop:"gridRow"}),ie({prop:"gridAutoFlow"}),ie({prop:"gridAutoColumns"}),ie({prop:"gridAutoRows"}),ie({prop:"gridTemplateColumns"}),ie({prop:"gridTemplateRows"}),ie({prop:"gridTemplateAreas"}),ie({prop:"gridArea"}));function We(e){return e<=1&&0!==e?100*e+"%":e}ve(ie({prop:"color",themeKey:"palette",transform:De}),ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:De}),ie({prop:"backgroundColor",themeKey:"palette",transform:De}));const ze=ie({prop:"width",transform:We}),Ue=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Y[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:We(t)}};return J(e,e.maxWidth,t)}return null};Ue.filterProps=["maxWidth"];const Fe=ie({prop:"minWidth",transform:We}),Be=ie({prop:"height",transform:We}),qe=ie({prop:"maxHeight",transform:We}),He=ie({prop:"minHeight",transform:We});ie({prop:"size",cssProperty:"width",transform:We}),ie({prop:"size",cssProperty:"height",transform:We});ve(ze,Ue,Fe,Be,qe,He,ie({prop:"boxSizing"}));const Ve={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:je},color:{themeKey:"palette",transform:De},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:De},backgroundColor:{themeKey:"palette",transform:De},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ie},rowGap:{style:$e},columnGap:{style:Ne},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:We},maxWidth:{style:Ue},minWidth:{transform:We},height:{transform:We},maxHeight:{transform:We},minHeight:{transform:We},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ke=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=re(n,s)||{};if(c)return c(o);return J(o,t,t=>{let n=oe(u,l,t);return t===n&&"string"==typeof t&&(n=oe(u,l,`${e}${"default"===t?"":$(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ve;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=ee(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(r).forEach(n=>{const i=(s=r[n],l=o,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(a[n])c=G(c,e(n,i,o,a));else{const e=J({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=G(c,e):c[n]=t({sx:i,theme:o,nested:!0})}else c=G(c,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Q(o,te(l,c))}:Q(o,te(l,c))}return Array.isArray(r)?r.map(s):s(r)}}();Ke.filterProps=["sx"];function Ge(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ve;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return H(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qe.apply(null,arguments)}var Ye=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ze="-ms-",Xe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t,n){return e.replace(t,n)}function ct(e,t){return e.indexOf(t)}function ut(e,t){return 0|e.charCodeAt(t)}function dt(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function pt(e){return e.length}function ht(e,t){return t.push(e),e}var gt=1,mt=1,yt=0,bt=0,vt=0,wt="";function xt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:gt,column:mt,length:a,return:""}}function Ct(e,t){return at(xt("",null,null,"",null,null,0),e,{length:-e.length},t)}function kt(){return vt=bt>0?ut(wt,--bt):0,mt--,10===vt&&(mt=1,gt--),vt}function St(){return vt=bt<yt?ut(wt,bt++):0,mt++,10===vt&&(mt=1,gt++),vt}function Et(){return ut(wt,bt)}function _t(){return bt}function Tt(e,t){return dt(wt,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function At(e){return gt=mt=1,yt=ft(wt=e),bt=0,[]}function Rt(e){return wt="",e}function Ot(e){return st(Tt(bt-1,jt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(vt=Et())&&vt<33;)St();return Pt(e)>2||Pt(vt)>3?"":" "}function Lt(e,t){for(;--t&&St()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Tt(e,_t()+(t<6&&32==Et()&&32==St()))}function jt(e){for(;St();)switch(vt){case e:return bt;case 34:case 39:34!==e&&39!==e&&jt(vt);break;case 40:41===e&&jt(e);break;case 92:St()}return bt}function It(e,t){for(;St()&&e+vt!==57&&(e+vt!==84||47!==Et()););return"/*"+Tt(t,bt-1)+"*"+it(47===e?e:St())}function Nt(e){for(;!Pt(Et());)St();return Tt(e,bt)}function $t(e){return Rt(Dt("",null,null,null,[""],e=At(e),0,[0],e))}function Dt(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,b=0,v="",w=o,x=i,C=r,k=v;m;)switch(h=b,b=St()){case 40:if(108!=h&&58==ut(k,d-1)){-1!=ct(k+=lt(Ot(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Ot(b);break;case 9:case 10:case 13:case 32:k+=Mt(h);break;case 92:k+=Lt(_t()-1,7);continue;case 47:switch(Et()){case 42:case 47:ht(zt(It(St(),_t()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ft(k)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=lt(k,/\f/g,"")),p>0&&ft(k)-d&&ht(p>32?Ut(k+";",r,n,d-1):Ut(lt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ht(C=Wt(k,t,n,c,u,o,s,v,w=[],x=[],d),i),123===b)if(0===u)Dt(k,t,C,C,w,i,d,s,x);else switch(99===f&&110===ut(k,3)?100:f){case 100:case 108:case 109:case 115:Dt(e,C,C,r&&ht(Wt(e,C,C,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Dt(k,C,C,C,[""],x,0,s,x)}}c=u=p=0,g=y=1,v=k="",d=a;break;case 58:d=1+ft(k),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==kt())continue;switch(k+=it(b),b*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ft(k)-1)*y,y=1;break;case 64:45===Et()&&(k+=Ot(St())),f=Et(),u=d=ft(v=k+=Nt(_t())),b++;break;case 45:45===h&&2==ft(k)&&(g=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=pt(f),h=0,g=0,m=0;h<r;++h)for(var y=0,b=dt(e,d+1,d=ot(g=a[h])),v=e;y<p;++y)(v=st(g>0?f[y]+" "+b:lt(b,/&\f/g,f[y])))&&(l[m++]=v);return xt(e,t,n,0===o?tt:s,l,c,u)}function zt(e,t,n){return xt(e,t,n,et,it(vt),dt(e,2,-2),0)}function Ut(e,t,n,r){return xt(e,t,n,nt,dt(e,0,r),dt(e,r+1,-1),r)}function Ft(e,t){for(var n="",r=pt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+Ft(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ft(n=Ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ht=function(e,t,n){for(var r=0,o=0;r=o,o=Et(),38===r&&12===o&&(t[n]=1),!Pt(o);)St();return Tt(e,bt)},Vt=function(e,t){return Rt(function(e,t){var n=-1,r=44;do{switch(Pt(r)){case 0:38===r&&12===Et()&&(t[n]=1),e[n]+=Ht(bt-1,t,n);break;case 2:e[n]+=Ot(r);break;case 4:if(44===r){e[++n]=58===Et()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=it(r)}}while(r=St());return e}(At(e),t))},Kt=new WeakMap,Gt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Kt.get(n))&&!r){Kt.set(e,!0);for(var o=[],i=Vt(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Qt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yt(e,t){switch(function(e,t){return 45^ut(e,0)?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Xe+e+Ze+e+e;case 6828:case 4268:return Je+e+Ze+e+e;case 6165:return Je+e+Ze+"flex-"+e+e;case 5187:return Je+e+lt(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return Je+e+Ze+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return Je+e+Ze+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Ze+lt(e,"shrink","negative")+e;case 5292:return Je+e+Ze+lt(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+lt(e,"-grow","")+Je+e+Ze+lt(e,"grow","positive")+e;case 4554:return Je+lt(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ut(e,t+1)){case 109:if(45!==ut(e,t+4))break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Xe+(108==ut(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch")?Yt(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ut(e,t+1))break;case 6444:switch(ut(e,ft(e)-3-(~ct(e,"!important")&&10))){case 107:return lt(e,":",":"+Je)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ut(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Ze+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Ze+e+e}return e}var Zt,Xt,Jt,en,tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=Yt(e.value,e.length);break;case rt:return Ft([Ct(e,{value:lt(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ft([Ct(e,{props:[lt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ft([Ct(e,{props:[lt(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,":-moz-$1")]}),Ct(e,{props:[lt(t,/:(plac\w+)/,Ze+"input-$1")]})],r)}return""})}}],nn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||tn,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Bt,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[Gt,Qt].concat(i,f),u=pt(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ft($t(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Ye({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},rn={exports:{}},on={};function an(){return Xt||(Xt=1,rn.exports=function(){if(Zt)return on;Zt=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return on.AsyncMode=l,on.ConcurrentMode=c,on.ContextConsumer=s,on.ContextProvider=a,on.Element=t,on.ForwardRef=u,on.Fragment=r,on.Lazy=h,on.Memo=p,on.Portal=n,on.Profiler=i,on.StrictMode=o,on.Suspense=d,on.isAsyncMode=function(e){return w(e)||v(e)===l},on.isConcurrentMode=w,on.isContextConsumer=function(e){return v(e)===s},on.isContextProvider=function(e){return v(e)===a},on.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},on.isForwardRef=function(e){return v(e)===u},on.isFragment=function(e){return v(e)===r},on.isLazy=function(e){return v(e)===h},on.isMemo=function(e){return v(e)===p},on.isPortal=function(e){return v(e)===n},on.isProfiler=function(e){return v(e)===i},on.isStrictMode=function(e){return v(e)===o},on.isSuspense=function(e){return v(e)===d},on.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===g)},on.typeOf=v,on}()),rn.exports}!function(){if(en)return Jt;en=1;var e=an(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Jt=function e(t,r,o){if("string"!=typeof r){if(d){var f=u(r);f&&f!==d&&e(t,f,o)}var p=s(r);l&&(p=p.concat(l(r)));for(var h=i(t),g=i(r),m=0;m<p.length;++m){var y=p[m];if(!(n[y]||o&&o[y]||g&&g[y]||h&&h[y])){var b=c(r,y);try{a(t,y,b)}catch(v){}}}}return t}}();function sn(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ln=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},cn=function(e,t,n){ln(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var un={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dn=/[A-Z]|^ms/g,fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pn=function(e){return 45===e.charCodeAt(1)},hn=function(e){return null!=e&&"boolean"!=typeof e},gn=qt(function(e){return pn(e)?e:e.replace(dn,"-$&").toLowerCase()}),mn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fn,function(e,t,n){return bn={name:t,styles:n,next:bn},t})}return 1===un[e]||pn(e)||"number"!=typeof t||0===t?t:t+"px"};function yn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return bn={name:o.name,styles:o.styles,next:bn},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=yn(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":hn(s)&&(r+=gn(i)+":"+mn(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=yn(e,t,a);switch(i){case"animation":case"animationName":r+=gn(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)hn(a[c])&&(r+=gn(i)+":"+mn(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=bn,l=n(e);return bn=s,yn(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var bn,vn=/label:\s*([^\s;{]+)\s*(;|$)/g;function wn(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";bn=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=yn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=yn(n,t,e[a]),r)o+=i[a]}vn.lastIndex=0;for(var s,l="";null!==(s=vn.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:bn}}var xn=!!I.useInsertionEffect&&I.useInsertionEffect,Cn=xn||function(e){return e()},kn=xn||L.useLayoutEffect,Sn=L.createContext("undefined"!=typeof HTMLElement?nn({key:"css"}):null);Sn.Provider;var En,_n,Tn=function(e){return L.forwardRef(function(t,n){var r=L.useContext(Sn);return e(t,r,n)})},Pn=L.createContext({}),An={}.hasOwnProperty,Rn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",On=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Mn=Tn(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Rn],i=[r],a="";"string"==typeof e.className?a=sn(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=wn(i,void 0,L.useContext(Pn));a+=t.key+"-"+s.name;var l={};for(var c in e)An.call(e,c)&&"css"!==c&&c!==Rn&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),L.createElement(L.Fragment,null,L.createElement(On,{cache:t,serialized:s,isStringTag:"string"==typeof o}),L.createElement(o,l))}),Ln=function(e,t){var n=arguments;if(null==t||!An.call(t,"css"))return L.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Mn,o[1]=function(e,t){var n={};for(var r in t)An.call(t,r)&&(n[r]=t[r]);return n[Rn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return L.createElement.apply(null,o)};En=Ln||(Ln={}),_n||(_n=En.JSX||(En.JSX={}));var jn=Tn(function(e,t){var n=wn([e.styles],void 0,L.useContext(Pn)),r=L.useRef();return kn(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),kn(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&cn(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wn(t)}function Nn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dn=qt(function(e){return $n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Wn=function(e){return"theme"!==e},zn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Dn:Wn},Un=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Fn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ln(t,n,r),Cn(function(){return cn(t,n,r)}),null},Bn=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Un(t,n,i),l=s||zn(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=Tn(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=L.useContext(Pn)}"string"==typeof e.className?i=sn(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=wn(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?zn(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),L.createElement(L.Fragment,null,L.createElement(Fn,{cache:t,serialized:h,isStringTag:"string"==typeof r}),L.createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,Qe({},n,r,{shouldForwardProp:Un(g,r,!0)})).apply(void 0,d)},g}}.bind(null);function qn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return d.jsx(jn,{styles:r})}function Hn(e,t){return Bn(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Bn[e]=Bn(e)});const Vn=[];function Kn(e){return Vn[0]=e,wn(Vn)}function Gn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Qn={borderRadius:4};function Yn(e=8,t=pe({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Zn(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=K({breakpoints:Gn(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Yn(o),shape:{...Qn,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Zn,s=t.reduce((e,t)=>K(e,t),s),s.unstable_sxConfig={...Ve,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Ke({sx:e,theme:this})},s}function Jn(e=null){const t=L.useContext(Pn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const er=Xn();function tr(e=er){return Jn(e)}function nr(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rr({styles:e,themeId:t,defaultTheme:n={}}){const r=tr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>nr("function"==typeof e?e(o):e)):nr(i)),d.jsx(qn,{styles:i})}const or=e=>e,ir=(()=>{let e=or;return{configure(t){e=t},generate:t=>e(t),reset(){e=or}}})();function ar(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ar(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ar(e))&&(r&&(r+=" "),r+=t);return r}const lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${ir.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=cr(e,t,n)}),r}function dr(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Kn(e.style))}),r}const fr=Xn();function pr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function hr(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gr(e){return e?(t,n)=>n[e]:null}function mr(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>mr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?hr(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?hr(Kn(o),n):o}return yr(e,r.variants,[t],n)}return r?.isProcessed?n?hr(Kn(r.style),n):r.style:n?hr(Kn(r),n):r}function yr(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Kn(a.style(o)),r):a.style(o))):n.push(r?hr(Kn(a.style),r):a.style)}return n}function br(e={}){const{themeId:t,defaultTheme:n=fr,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Ke));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=gr(wr(a)),...u}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",f=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,p=l||!1;let h=pr;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Hn(e,{shouldForwardProp:h,label:vr(),...u}),m=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return mr(t,e,t.theme.modularCssLayers?d:void 0)};if(H(e)){const t=dr(e);return function(e){return t.variants?mr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?hr(t.style,d):t.style}}return e},y=(...t)=>{const r=[],o=t.map(m),a=[];if(r.push(i),n&&c&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=mr(e,r[n],e.theme.modularCssLayers?"theme":void 0);return c(e,o)}),n&&!f&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?yr(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),p||a.push(Ke),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=g(...s);return e.muiName&&(l.muiName=e.muiName),l};return g.withConfig&&(y.withConfig=g.withConfig),y}}function vr(e,t){}function wr(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const xr=br();function Cr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Cr(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=sr(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}function kr({props:e,name:t,defaultTheme:n,themeId:r}){let o=tr(n);return r&&(o=o[r]||o),function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Cr(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e})}const Sr="undefined"!=typeof window?L.useLayoutEffect:L.useEffect;function Er(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function _r(e){if(e.type)return e;if("#"===e.charAt(0))return _r(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(N(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(N(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Tr=(e,t)=>{try{return(e=>{const t=_r(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(n){return e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ar(e){e=_r(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Pr({type:s,values:l})}function Rr(e){let t="hsl"===(e=_r(e)).type||"hsla"===e.type?_r(Ar(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Or(e,t){return e=_r(e),t=Er(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function Mr(e,t,n){try{return Or(e,t)}catch(r){return e}}function Lr(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function jr(e,t,n){try{return Lr(e,t)}catch(r){return e}}function Ir(e,t){if(e=_r(e),t=Er(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function Nr(e,t,n){try{return Ir(e,t)}catch(r){return e}}function $r(e,t,n){try{return function(e,t=.15){return Rr(e)>.5?Lr(e,t):Ir(e,t)}(e,t)}catch(r){return e}}const Dr=L.createContext(void 0);function Wr({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Cr(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Cr(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:L.useContext(Dr)}})}let zr=0;const Ur={...I}.useId;function Fr(e){if(void 0!==Ur){const t=Ur();return e??t}return function(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{null==t&&(zr+=1,n(`mui-${zr}`))},[t]),r}(e)}const Br={theme:void 0};function qr(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hr=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Vr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Hr(i,e,`var(${r})`,s),Hr(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Kr(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}const Gr=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)});else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter(e=>i.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const i=t[o];void 0!==i&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},i)}})}else"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t);var o,i};function Qr(e){return`--Grid-${e}Spacing`}function Yr(e){return`--Grid-parent-${e}Spacing`}const Zr="--Grid-columns",Xr="--Grid-parent-columns",Jr=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${Xr}) - (var(${Xr}) - ${t}) * (var(${Yr("column")}) / var(${Xr})))`}),e(n,r)}),n},eo=({theme:e,ownerState:t})=>{const n={};return Gr(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${Xr}) + var(${Yr("column")}) * ${t} / var(${Xr}))`}),e(n,r)}),n},to=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[Zr]:12};return Gr(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[Zr]:r,"> *":{[Xr]:r}})}),n},no=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("row")]:o,"> *":{[Yr("row")]:o}})}),n},ro=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[Qr("column")]:o,"> *":{[Yr("column")]:o}})}),n},oo=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Gr(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},io=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${Qr("row")}) var(${Qr("column")})`}}),ao=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},so=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},lo=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];const co=Xn(),uo=xr("div",{name:"MuiGrid",slot:"Root"});function fo(e){return kr({props:e,name:"MuiGrid",defaultTheme:co})}const po=Xn(),ho=xr("div",{name:"MuiStack",slot:"Root"});function go(e){return kr({props:e,name:"MuiStack",defaultTheme:po})}function mo(e,t){const n=L.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(L.cloneElement(t,{key:`separator-${o}`})),e),[])}const yo=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...J({theme:t},ne({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=pe(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=ne({values:e.direction,base:o}),a=ne({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}});n=K(n,J({theme:t},a,(t,n)=>{return e.useFlexGap?{gap:he(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:he(r,t)}};var o}))}return n=function(e,...t){const n=ee(e),r=[n,...t].reduce((e,t)=>K(e,t),{});return te(Object.keys(n),r)}(t.breakpoints,n),n};const bo={black:"#000",white:"#fff"},vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},wo="#f3e5f5",xo="#ce93d8",Co="#ba68c8",ko="#ab47bc",So="#9c27b0",Eo="#7b1fa2",_o="#e57373",To="#ef5350",Po="#f44336",Ao="#d32f2f",Ro="#c62828",Oo="#ffb74d",Mo="#ffa726",Lo="#ff9800",jo="#f57c00",Io="#e65100",No="#e3f2fd",$o="#90caf9",Do="#42a5f5",Wo="#1976d2",zo="#1565c0",Uo="#4fc3f7",Fo="#29b6f6",Bo="#03a9f4",qo="#0288d1",Ho="#01579b",Vo="#81c784",Ko="#66bb6a",Go="#4caf50",Qo="#388e3c",Yo="#2e7d32",Zo="#1b5e20";function Xo(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bo.white,default:bo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Jo=Xo();function ei(){return{text:{primary:bo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ti=ei();function ni(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ir(e.main,o):"dark"===t&&(e.dark=Lr(e.main,i)))}function ri(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function oi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:$o,light:No,dark:Do}:{main:Wo,light:Do,dark:zo}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:xo,light:wo,dark:ko}:{main:So,light:Co,dark:Eo}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Po,light:_o,dark:Ao}:{main:Ao,light:To,dark:Ro}}(t),c=e.info||function(e="light"){return"dark"===e?{main:Fo,light:Uo,dark:qo}:{main:qo,light:Bo,dark:Ho}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ko,light:Vo,dark:Qo}:{main:Yo,light:Go,dark:Zo}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Mo,light:Oo,dark:jo}:{main:"#ed6c02",light:Lo,dark:Io}}(t);function f(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ti.text.primary)>=n?ti.text.primary:Jo.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(N(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(N(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(ri(o,e,"light",i,r),ri(o,e,"dark",a,r)):(ni(e,"light",i,r),ni(e,"dark",a,r)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=Xo():"dark"===t&&(h=ei());return K({common:{...bo},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:vo,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...h},i)}function ii(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const ai={textTransform:"uppercase"},si='"Roboto", "Helvetica", "Arial", sans-serif';function li(e,t){const{fontFamily:n=si,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,f=r/14,p=u||(e=>e/l*f+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===si?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ai),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ai),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return K({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...g},d,{clone:!1})}function ci(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ui=["none",ci(0,2,1,-1,0,1,1,0,0,1,3,0),ci(0,3,1,-2,0,2,2,0,0,1,5,0),ci(0,3,3,-2,0,3,4,0,0,1,8,0),ci(0,2,4,-1,0,4,5,0,0,1,10,0),ci(0,3,5,-1,0,5,8,0,0,1,14,0),ci(0,3,5,-1,0,6,10,0,0,1,18,0),ci(0,4,5,-2,0,7,10,1,0,2,16,1),ci(0,5,5,-3,0,8,10,1,0,3,14,2),ci(0,5,6,-3,0,9,12,1,0,3,16,2),ci(0,6,6,-3,0,10,14,1,0,4,18,3),ci(0,6,7,-4,0,11,15,1,0,4,20,3),ci(0,7,8,-4,0,12,17,2,0,5,22,4),ci(0,7,8,-4,0,13,19,2,0,5,24,4),ci(0,7,9,-4,0,14,21,2,0,5,26,4),ci(0,8,9,-5,0,15,22,2,0,6,28,5),ci(0,8,10,-5,0,16,24,2,0,6,30,5),ci(0,8,11,-5,0,17,26,2,0,6,32,5),ci(0,9,11,-5,0,18,28,2,0,7,34,6),ci(0,9,12,-6,0,19,29,2,0,7,36,6),ci(0,10,13,-6,0,20,31,3,0,8,38,7),ci(0,10,13,-6,0,21,33,3,0,8,40,7),ci(0,10,14,-6,0,22,35,3,0,8,42,7),ci(0,11,14,-7,0,23,36,3,0,9,44,8),ci(0,11,15,-7,0,24,38,3,0,9,46,8)],di={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function hi(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function gi(e){const t={...di,...e.easing},n={...fi,...e.duration};return{getAutoHeightDuration:hi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:pi(o)} ${i} ${"string"==typeof a?a:pi(a)}`).join(",")},...e,easing:t,duration:n}}const mi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return H(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function bi(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!yi(i)||o.startsWith("unstable_")?delete t[o]:H(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function vi(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function wi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Or(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vi(n)})`:Ir(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vi(n)})`:Lr(t,n)}})}function xi(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(N(20));const d=oi({...i,colorSpace:c}),f=Xn(e);let p=K(f,{mixins:(h=f.breakpoints,g=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...g}),palette:d,shadows:ui.slice(),typography:li(d,s),transitions:gi(a),zIndex:{...mi}});var h,g;return p=K(p,u),p=t.reduce((e,t)=>K(e,t),p),p.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Ke({sx:e,theme:this})},p.toRuntimeSource=bi,wi(p),p}const Ci=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=function(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Si(e){return"dark"===e?Ci:[]}function Ei(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const _i=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Ti(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return"string"==typeof e&&e.startsWith("hsl")?Ar(e):e}function Ai(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tr(Pi(e[t])))}const Ri=e=>{try{return e()}catch(t){}};function Oi(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=oi({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||Si(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n?.opacity},overlays:n?.overlays||Si(i)},s}function Mi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ei,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&"light"!==d?"light":d),p=((e="mui")=>qr(e))(i),{[f]:h,light:g,dark:m,...y}=n,b={...y};let v,w=h;if(("dark"===f&&!("dark"in n)||"light"===f&&!("light"in n))&&(w=!0),!w)throw new Error(N(21,f));a&&(v="oklch");const x=Oi(v,b,w,u,f);g&&!b.light&&Oi(v,b,g,void 0,"light"),m&&!b.dark&&Oi(v,b,m,void 0,"dark");let C={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:p,colorSchemes:b,font:{...ii(x.typography),...x.font},spacing:(k=u.spacing,"number"==typeof k?`${k}px`:"string"==typeof k||"function"==typeof k||Array.isArray(k)?k:"8px")};var k;Object.keys(C.colorSchemes).forEach(e=>{const t=C.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return p(e,t[r][o])};function r(e,t,n){if(v){let r;return e===Mr&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===jr&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nr&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${v}, ${t}, ${r})`}return e(t,n)}var o;if("light"===t.mode&&(Ti(t.common,"background","#fff"),Ti(t.common,"onBackground","#000")),"dark"===t.mode&&(Ti(t.common,"background","#000"),Ti(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){Ti(t.Alert,"errorColor",r(jr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(jr,t.info.light,.6)),Ti(t.Alert,"successColor",r(jr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(jr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-main")),Ti(t.Alert,"infoFilledBg",n("palette-info-main")),Ti(t.Alert,"successFilledBg",n("palette-success-main")),Ti(t.Alert,"warningFilledBg",n("palette-warning-main")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.main))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.main))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.main))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.main))),Ti(t.Alert,"errorStandardBg",r(Nr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(Nr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(Nr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(Nr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-100")),Ti(t.Avatar,"defaultBg",n("palette-grey-400")),Ti(t.Button,"inheritContainedBg",n("palette-grey-300")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Ti(t.Chip,"defaultBorder",n("palette-grey-400")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Ti(t.Chip,"defaultIconColor",n("palette-grey-700")),Ti(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ti(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ti(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(Nr,t.primary.main,.62)),Ti(t.LinearProgress,"secondaryBg",r(Nr,t.secondary.main,.62)),Ti(t.LinearProgress,"errorBg",r(Nr,t.error.main,.62)),Ti(t.LinearProgress,"infoBg",r(Nr,t.info.main,.62)),Ti(t.LinearProgress,"successBg",r(Nr,t.success.main,.62)),Ti(t.LinearProgress,"warningBg",r(Nr,t.warning.main,.62)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Ti(t.Slider,"primaryTrack",r(Nr,t.primary.main,.62)),Ti(t.Slider,"secondaryTrack",r(Nr,t.secondary.main,.62)),Ti(t.Slider,"errorTrack",r(Nr,t.error.main,.62)),Ti(t.Slider,"infoTrack",r(Nr,t.info.main,.62)),Ti(t.Slider,"successTrack",r(Nr,t.success.main,.62)),Ti(t.Slider,"warningTrack",r(Nr,t.warning.main,.62));const e=v?r(jr,t.background.default,.6825):$r(t.background.default,.8);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?ti.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-400")),Ti(t.StepContent,"border",n("palette-grey-400")),Ti(t.Switch,"defaultColor",n("palette-common-white")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Ti(t.Switch,"primaryDisabledColor",r(Nr,t.primary.main,.62)),Ti(t.Switch,"secondaryDisabledColor",r(Nr,t.secondary.main,.62)),Ti(t.Switch,"errorDisabledColor",r(Nr,t.error.main,.62)),Ti(t.Switch,"infoDisabledColor",r(Nr,t.info.main,.62)),Ti(t.Switch,"successDisabledColor",r(Nr,t.success.main,.62)),Ti(t.Switch,"warningDisabledColor",r(Nr,t.warning.main,.62)),Ti(t.TableCell,"border",r(Nr,r(Mr,t.divider,1),.88)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}if("dark"===t.mode){Ti(t.Alert,"errorColor",r(Nr,t.error.light,.6)),Ti(t.Alert,"infoColor",r(Nr,t.info.light,.6)),Ti(t.Alert,"successColor",r(Nr,t.success.light,.6)),Ti(t.Alert,"warningColor",r(Nr,t.warning.light,.6)),Ti(t.Alert,"errorFilledBg",n("palette-error-dark")),Ti(t.Alert,"infoFilledBg",n("palette-info-dark")),Ti(t.Alert,"successFilledBg",n("palette-success-dark")),Ti(t.Alert,"warningFilledBg",n("palette-warning-dark")),Ti(t.Alert,"errorFilledColor",Ri(()=>t.getContrastText(t.error.dark))),Ti(t.Alert,"infoFilledColor",Ri(()=>t.getContrastText(t.info.dark))),Ti(t.Alert,"successFilledColor",Ri(()=>t.getContrastText(t.success.dark))),Ti(t.Alert,"warningFilledColor",Ri(()=>t.getContrastText(t.warning.dark))),Ti(t.Alert,"errorStandardBg",r(jr,t.error.light,.9)),Ti(t.Alert,"infoStandardBg",r(jr,t.info.light,.9)),Ti(t.Alert,"successStandardBg",r(jr,t.success.light,.9)),Ti(t.Alert,"warningStandardBg",r(jr,t.warning.light,.9)),Ti(t.Alert,"errorIconColor",n("palette-error-main")),Ti(t.Alert,"infoIconColor",n("palette-info-main")),Ti(t.Alert,"successIconColor",n("palette-success-main")),Ti(t.Alert,"warningIconColor",n("palette-warning-main")),Ti(t.AppBar,"defaultBg",n("palette-grey-900")),Ti(t.AppBar,"darkBg",n("palette-background-paper")),Ti(t.AppBar,"darkColor",n("palette-text-primary")),Ti(t.Avatar,"defaultBg",n("palette-grey-600")),Ti(t.Button,"inheritContainedBg",n("palette-grey-800")),Ti(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Ti(t.Chip,"defaultBorder",n("palette-grey-700")),Ti(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Ti(t.Chip,"defaultIconColor",n("palette-grey-300")),Ti(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ti(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ti(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ti(t.LinearProgress,"primaryBg",r(jr,t.primary.main,.5)),Ti(t.LinearProgress,"secondaryBg",r(jr,t.secondary.main,.5)),Ti(t.LinearProgress,"errorBg",r(jr,t.error.main,.5)),Ti(t.LinearProgress,"infoBg",r(jr,t.info.main,.5)),Ti(t.LinearProgress,"successBg",r(jr,t.success.main,.5)),Ti(t.LinearProgress,"warningBg",r(jr,t.warning.main,.5)),Ti(t.Skeleton,"bg",v?r(Mr,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Ti(t.Slider,"primaryTrack",r(jr,t.primary.main,.5)),Ti(t.Slider,"secondaryTrack",r(jr,t.secondary.main,.5)),Ti(t.Slider,"errorTrack",r(jr,t.error.main,.5)),Ti(t.Slider,"infoTrack",r(jr,t.info.main,.5)),Ti(t.Slider,"successTrack",r(jr,t.success.main,.5)),Ti(t.Slider,"warningTrack",r(jr,t.warning.main,.5));const e=v?r(Nr,t.background.default,.985):$r(t.background.default,.98);Ti(t.SnackbarContent,"bg",e),Ti(t.SnackbarContent,"color",Ri(()=>v?Jo.text.primary:t.getContrastText(e))),Ti(t.SpeedDialAction,"fabHoverBg",$r(t.background.paper,.15)),Ti(t.StepConnector,"border",n("palette-grey-600")),Ti(t.StepContent,"border",n("palette-grey-600")),Ti(t.Switch,"defaultColor",n("palette-grey-300")),Ti(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Ti(t.Switch,"primaryDisabledColor",r(jr,t.primary.main,.55)),Ti(t.Switch,"secondaryDisabledColor",r(jr,t.secondary.main,.55)),Ti(t.Switch,"errorDisabledColor",r(jr,t.error.main,.55)),Ti(t.Switch,"infoDisabledColor",r(jr,t.info.main,.55)),Ti(t.Switch,"successDisabledColor",r(jr,t.success.main,.55)),Ti(t.Switch,"warningDisabledColor",r(jr,t.warning.main,.55)),Ti(t.TableCell,"border",r(jr,r(Mr,t.divider,1),.68)),Ti(t.Tooltip,"bg",r(Mr,t.grey[700],.92))}Ai(t.background,"default"),Ai(t.background,"paper"),Ai(t.common,"background"),Ai(t.common,"onBackground"),Ai(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Ti(t[e],"mainChannel",Tr(Pi(n.main))),n.light&&Ti(t[e],"lightChannel",Tr(Pi(n.light))),n.dark&&Ti(t[e],"darkChannel",Tr(Pi(n.dark))),n.contrastText&&Ti(t[e],"contrastTextChannel",Tr(Pi(n.contrastText))),"text"===e&&(Ai(t[e],"primary"),Ai(t[e],"secondary")),"action"===e&&(n.active&&Ai(t[e],"active"),n.selected&&Ai(t[e],"selected")))})}),C=t.reduce((e,t)=>K(e,t),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:_i(C),enableContrastVars:a},{vars:E,generateThemeVars:_,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=Vr(c,t);let p=f;const h={},{[l]:g,...m}=a;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Vr(n,t);p=K(p,i),h[e]={css:o,vars:r}}),g){const{css:e,vars:n,varsWithDefaults:r}=Vr(g,t);p=K(p,r),h[l]={css:e,vars:n}}function y(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(h).forEach(([,{vars:t}])=>{e=K(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...c}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(c).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=_,C.generateStyleSheets=T,C.generateSpacing=function(){return Yn(u.spacing,pe(this))},C.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Ve,...u?.unstable_sxConfig},C.unstable_sx=function(e){return Ke({sx:e,theme:this})},C.toRuntimeSource=bi,C}function Li(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:oi({...!0===n?{}:n.palette,mode:t})})}function ji(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return xi(e,...t);let r=n;"palette"in e||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const o=xi({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=c,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==c.light&&c.light,palette:o.palette},Li(o,"dark",c.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:o.palette},Li(o,"light",c.light)),o}return n||"light"in c||"light"!==s||(c.light=!0),Mi({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Ii=ji(),Ni="$$material";function $i(){const e=tr(Ii);return e[Ni]||e}function Di(e){return d.jsx(rr,{...e,defaultTheme:Ii,themeId:Ni})}const Wi=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zi=br({themeId:Ni,defaultTheme:Ii,rootShouldForwardProp:Wi});function Ui(e){return function(t){return d.jsx(Di,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}function Fi(e){return Wr(e)}const Bi="function"==typeof Ui({}),qi=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Hi=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Vi=(e,t=!1)=>{const n={};t&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={":root":{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={colorScheme:r.palette?.mode}});let r={html:qi(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Hi(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(r=[r,o]),r},Ki="mui-ecs",Gi=Ui(Bi?({theme:e,enableColorScheme:t})=>Vi(e,t):({theme:e})=>(e=>{const t=Vi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Ki})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{const o=e.getColorSchemeSelector(t);o.startsWith("@")?n[o]={[`:root:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${Ki}))`]:{colorScheme:r.palette?.mode}}}),t})(e));function Qi(e){const t=Fi({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return d.jsxs(L.Fragment,{children:[Bi&&d.jsx(Gi,{enableColorScheme:r}),!Bi&&!r&&d.jsx("span",{className:Ki,style:{display:"none"}}),n]})}var Yi,Zi={};var Xi=function(){if(Yi)return Zi;Yi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.Base64=void 0;var e=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3==2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3==1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();return Zi.Base64=e,Zi}();const Ji={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB",BOMB:"kQDPCEx9T_a3Oq0CPVDXcwgJO_AITrRyQB8znU7altWcS2T-",COC:"kQA9ao2t-tiXxrVghA-7LxFmP8z4VvCm3oXhL17IR2pXi9_f",PYBOBO:"kQAN8vOtRVtopBW9v4-U_hzJQ6eHckrQseyH52dKxas4o0K6"},ea=class e{static init(){{let t="",n=window.Telegram.WebApp.initData,r=window.Telegram.WebApp.initDataUnsafe||{},o=window.location.search;if(!o){let e=window.location.hash,t=e.indexOf("?");-1!=t&&(o=e.substring(t))}let i=new URLSearchParams(o);if(i.get("botname")||(o=window.sessionStorage.getItem("PLUTO_GAMES_INIT_PARAMS"),i=new URLSearchParams(o)),e.TEST_MODE="1"==i.get("debug"),e.BOT_NAME=i.get("botname"),e.GAME_ID=i.get("gameid"),e.CP_CUSTOM_LINK=i.get("pcplink"),e.FULL_SCREEN="1"==i.get("fullscreen"),e.START_PARAM=r.start_param,!n){const e=new Xi.Base64;n=i.get("initdata"),n||(n=window.sessionStorage.getItem("PLUTO_GAMES_INIT_DATA")||""),n&&!n.startsWith("10")&&(i.delete("initdata"),i.delete("pcplink"),window.location.href.includes("/#")||(t=window.location.origin+window.location.pathname+"?"+i.toString()),window.sessionStorage.setItem("PLUTO_GAMES_INIT_DATA",n),n=e.decode(n))}e.INIT_DATA=n,window.sessionStorage.setItem("PLUTO_GAMES_INIT_PARAMS",i.toString()),t&&window.history.replaceState(null,null,t)}e.TEST_MODE?(e.API_URL="https://test-sdk1.pluto.vision/",e.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",e.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",e.TOKENS_JETTON_ADDRESS=Ji,e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${e.GAME_ID}.json`):e.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${e.GAME_ID}.json`}};ea.APP_VERSION="1.0.25-beta.2",ea.RES_URL="https://games.pluto.vision/sdk/resource/",ea.API_URL="https://sdk1.pluto.vision/",ea.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",ea.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",ea.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",BOMB:"EQAQZEf6A-BfN8wYVnjdyPWpCXwkTSjhfF5ZWP7AjReM4eEI",COC:"EQBKVUJEjjBBSwU2DKTIMD6-nVHR8Ipxh_RdxwjtNIbR0OIw",PYBOBO:"EQD3-DscdjEM95zRmW936vGVr6O7uFJ1W6a8--7-Vg3rtfGy"},ea.MANIFEST_URL="",ea.TEST_MODE=!1,ea.BOT_NAME="",ea.GAME_ID="",ea.INIT_DATA="",ea.TOKEN="",ea.GAME_URL="",ea.CP_CUSTOM_LINK="",ea.FULL_SCREEN=!1,ea.START_PARAM="";let ta=ea;function na(e,t){return function(){return e.apply(t,arguments)}}const{toString:ra}=Object.prototype,{getPrototypeOf:oa}=Object,{iterator:ia,toStringTag:aa}=Symbol,sa=(e=>t=>{const n=ra.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),t=>sa(t)===e),ca=e=>t=>typeof t===e,{isArray:ua}=Array,da=ca("undefined");function fa(e){return null!==e&&!da(e)&&null!==e.constructor&&!da(e.constructor)&&ga(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pa=la("ArrayBuffer");const ha=ca("string"),ga=ca("function"),ma=ca("number"),ya=e=>null!==e&&"object"==typeof e,ba=e=>{if("object"!==sa(e))return!1;const t=oa(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||aa in e||ia in e)},va=la("Date"),wa=la("File"),xa=la("Blob"),Ca=la("FileList"),ka=la("URLSearchParams"),[Sa,Ea,_a,Ta]=["ReadableStream","Request","Response","Headers"].map(la);function Pa(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ua(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(fa(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Aa(e,t){if(fa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oa=e=>!da(e)&&e!==Ra;const Ma=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&oa(Uint8Array)),La=la("HTMLFormElement"),ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ia=la("RegExp"),Na=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pa(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const $a=la("AsyncFunction"),Da=(Wa="function"==typeof setImmediate,za=ga(Ra.postMessage),Wa?setImmediate:za?(Ua=`axios@${Math.random()}`,Fa=[],Ra.addEventListener("message",({source:e,data:t})=>{e===Ra&&t===Ua&&Fa.length&&Fa.shift()()},!1),e=>{Fa.push(e),Ra.postMessage(Ua,"*")}):e=>setTimeout(e));var Wa,za,Ua,Fa;const Ba="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ra):"undefined"!=typeof process&&process.nextTick||Da,qa={isArray:ua,isArrayBuffer:pa,isBuffer:fa,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ga(e.append)&&("formdata"===(t=sa(e))||"object"===t&&ga(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pa(e.buffer),t},isString:ha,isNumber:ma,isBoolean:e=>!0===e||!1===e,isObject:ya,isPlainObject:ba,isEmptyObject:e=>{if(!ya(e)||fa(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Sa,isRequest:Ea,isResponse:_a,isHeaders:Ta,isUndefined:da,isDate:va,isFile:wa,isBlob:xa,isRegExp:Ia,isFunction:ga,isStream:e=>ya(e)&&ga(e.pipe),isURLSearchParams:ka,isTypedArray:Ma,isFileList:Ca,forEach:Pa,merge:function e(){const{caseless:t,skipUndefined:n}=Oa(this)&&this||{},r={},o=(o,i)=>{const a=t&&Aa(r,i)||i;ba(r[a])&&ba(o)?r[a]=e(r[a],o):ba(o)?r[a]=e({},o):ua(o)?r[a]=o.slice():n&&da(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Pa(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Pa(t,(t,r)=>{n&&ga(t)?e[r]=na(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&oa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:sa,kindOfTest:la,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ua(e))return e;let t=e.length;if(!ma(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ia]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:La,hasOwnProperty:ja,hasOwnProp:ja,reduceDescriptors:Na,freezeMethods:e=>{Na(e,(t,n)=>{if(ga(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ga(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ua(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Aa,global:Ra,isContextDefined:Oa,isSpecCompliantForm:function(e){return!!(e&&ga(e.append)&&"FormData"===e[aa]&&e[ia])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ya(e)){if(t.indexOf(e)>=0)return;if(fa(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ua(e)?[]:{};return Pa(e,(e,t)=>{const i=n(e,r+1);!da(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$a,isThenable:e=>e&&(ya(e)||ga(e))&&ga(e.then)&&ga(e.catch),setImmediate:Da,asap:Ba,isIterable:e=>null!=e&&ga(e[ia])};function Ha(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}qa.inherits(Ha,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:qa.toJSONObject(this.config),code:this.code,status:this.status}}});const Va=Ha.prototype,Ka={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ka[e]={value:e}}),Object.defineProperties(Ha,Ka),Object.defineProperty(Va,"isAxiosError",{value:!0}),Ha.from=(e,t,n,r,o,i)=>{const a=Object.create(Va);qa.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Ha.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function Ga(e){return qa.isPlainObject(e)||qa.isArray(e)}function Qa(e){return qa.endsWith(e,"[]")?e.slice(0,-2):e}function Ya(e,t,n){return e?e.concat(t).map(function(e,t){return e=Qa(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Za=qa.toFlatObject(qa,{},null,function(e){return/^is[A-Z]/.test(e)});function Xa(e,t,n){if(!qa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=qa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!qa.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&qa.isSpecCompliantForm(t);if(!qa.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(qa.isDate(e))return e.toISOString();if(qa.isBoolean(e))return e.toString();if(!s&&qa.isBlob(e))throw new Ha("Blob is not supported. Use a Buffer instead.");return qa.isArrayBuffer(e)||qa.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(qa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(qa.isArray(e)&&function(e){return qa.isArray(e)&&!e.some(Ga)}(e)||(qa.isFileList(e)||qa.endsWith(n,"[]"))&&(s=qa.toArray(e)))return n=Qa(n),s.forEach(function(e,r){!qa.isUndefined(e)&&null!==e&&t.append(!0===a?Ya([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ga(e)||(t.append(Ya(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Za,{defaultVisitor:c,convertValue:l,isVisitable:Ga});if(!qa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!qa.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),qa.forEach(n,function(n,i){!0===(!(qa.isUndefined(n)||null===n)&&o.call(t,n,qa.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ja(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function es(e,t){this._pairs=[],e&&Xa(e,this,t)}const ts=es.prototype;function ns(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rs(e,t,n){if(!t)return e;const r=n&&n.encode||ns;qa.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):qa.isURLSearchParams(t)?t.toString():new es(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ts.append=function(e,t){this._pairs.push([e,t])},ts.toString=function(e){const t=e?function(t){return e.call(this,t,Ja)}:Ja;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class os{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){qa.forEach(this.handlers,function(t){null!==t&&e(t)})}}const is={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:es,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ss="undefined"!=typeof window&&"undefined"!=typeof document,ls="object"==typeof navigator&&navigator||void 0,cs=ss&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ds=ss&&window.location.href||"http://localhost",fs={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:cs,hasStandardBrowserWebWorkerEnv:us,navigator:ls,origin:ds},Symbol.toStringTag,{value:"Module"})),...as};function ps(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&qa.isArray(r)?r.length:i,s)return qa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&qa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&qa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(qa.isFormData(e)&&qa.isFunction(e.entries)){const n={};return qa.forEachEntry(e,(e,r)=>{t(function(e){return qa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const hs={transitional:is,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=qa.isObject(e);o&&qa.isHTMLForm(e)&&(e=new FormData(e));if(qa.isFormData(e))return r?JSON.stringify(ps(e)):e;if(qa.isArrayBuffer(e)||qa.isBuffer(e)||qa.isStream(e)||qa.isFile(e)||qa.isBlob(e)||qa.isReadableStream(e))return e;if(qa.isArrayBufferView(e))return e.buffer;if(qa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Xa(e,new fs.classes.URLSearchParams,{visitor:function(e,t,n,r){return fs.isNode&&qa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=qa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Xa(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(qa.isString(e))try{return(t||JSON.parse)(e),qa.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hs.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(qa.isResponse(e)||qa.isReadableStream(e))return e;if(e&&qa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Ha.from(o,Ha.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fs.classes.FormData,Blob:fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};qa.forEach(["delete","get","head","post","put","patch"],e=>{hs.headers[e]={}});const gs=qa.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ms=Symbol("internals");function ys(e){return e&&String(e).trim().toLowerCase()}function bs(e){return!1===e||null==e?e:qa.isArray(e)?e.map(bs):String(e)}function vs(e,t,n,r,o){return qa.isFunction(r)?r.call(this,t,n):(o&&(t=n),qa.isString(t)?qa.isString(r)?-1!==t.indexOf(r):qa.isRegExp(r)?r.test(t):void 0:void 0)}let ws=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ys(t);if(!o)throw new Error("header name must be a non-empty string");const i=qa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=bs(e))}const i=(e,t)=>qa.forEach(e,(e,n)=>o(e,n,t));if(qa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(qa.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gs[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(qa.isObject(e)&&qa.isIterable(e)){let n,r,o={};for(const t of e){if(!qa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?qa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ys(e)){const n=qa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(qa.isFunction(t))return t.call(this,e,n);if(qa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ys(e)){const n=qa.findKey(this,e);return!(!n||void 0===this[n]||t&&!vs(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ys(e)){const o=qa.findKey(n,e);!o||t&&!vs(0,n[o],o,t)||(delete n[o],r=!0)}}return qa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vs(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return qa.forEach(this,(r,o)=>{const i=qa.findKey(n,o);if(i)return t[i]=bs(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=bs(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return qa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&qa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ms]=this[ms]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ys(e);t[r]||(!function(e,t){const n=qa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return qa.isArray(e)?e.forEach(r):r(e),this}};function xs(e,t){const n=this||hs,r=t||n,o=ws.from(r.headers);let i=r.data;return qa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cs(e){return!(!e||!e.__CANCEL__)}function ks(e,t,n){Ha.call(this,null==e?"canceled":e,Ha.ERR_CANCELED,t,n),this.name="CanceledError"}function Ss(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ha("Request failed with status code "+n.status,[Ha.ERR_BAD_REQUEST,Ha.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),qa.reduceDescriptors(ws.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),qa.freezeMethods(ws),qa.inherits(ks,Ha,{__CANCEL__:!0});const Es=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},_s=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ts=e=>(...t)=>qa.asap(()=>e(...t)),Ps=fs.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fs.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fs.origin),fs.navigator&&/(msie|trident)/i.test(fs.navigator.userAgent)):()=>!0,As=fs.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];qa.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),qa.isString(r)&&s.push(`path=${r}`),qa.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),qa.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Rs(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Os=e=>e instanceof ws?{...e}:e;function Ms(e,t){t=t||{};const n={};function r(e,t,n,r){return qa.isPlainObject(e)&&qa.isPlainObject(t)?qa.merge.call({caseless:r},e,t):qa.isPlainObject(t)?qa.merge({},t):qa.isArray(t)?t.slice():t}function o(e,t,n,o){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!qa.isUndefined(t))return r(void 0,t)}function a(e,t){return qa.isUndefined(t)?qa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Os(e),Os(t),0,!0)};return qa.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);qa.isUndefined(a)&&i!==s||(n[r]=a)}),n}const Ls=e=>{const t=Ms({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ws.from(a),t.url=rs(Rs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),qa.isFormData(n))if(fs.hasStandardBrowserEnv||fs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(qa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(fs.hasStandardBrowserEnv&&(r&&qa.isFunction(r)&&(r=r(t)),r||!1!==r&&Ps(t.url))){const e=o&&i&&As.read(i);e&&a.set(o,e)}return t},js="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ls(e);let o=r.data;const i=ws.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ws.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ss(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Ha("Request aborted",Ha.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=new Ha(t&&t.message?t.message:"Network Error",Ha.ERR_NETWORK,e,g);r.event=t||null,n(r),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||is;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ha(t,o.clarifyTimeoutError?Ha.ETIMEDOUT:Ha.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&qa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),qa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,u]=Es(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=Es(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ks(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===fs.protocols.indexOf(y)?n(new Ha("Unsupported protocol "+y+":",Ha.ERR_BAD_REQUEST,e)):g.send(o||null)})},Is=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ha?t:new ks(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ha(`timeout ${t} of ms exceeded`,Ha.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>qa.asap(a),s}},Ns=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$s=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ds=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $s(e))yield*Ns(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Ws}=qa,zs=(({Request:e,Response:t})=>({Request:e,Response:t}))(qa.global),{ReadableStream:Us,TextEncoder:Fs}=qa.global,Bs=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},qs=e=>{e=qa.merge.call({skipUndefined:!0},zs,e);const{fetch:t,Request:n,Response:r}=e,o=t?Ws(t):"function"==typeof fetch,i=Ws(n),a=Ws(r);if(!o)return!1;const s=o&&Ws(Us),l=o&&("function"==typeof Fs?(e=>t=>e.encode(t))(new Fs):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Bs(()=>{let e=!1;const t=new n(fs.origin,{body:new Us,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&s&&Bs(()=>qa.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Ha(`Response type '${e}' is not supported`,Ha.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=qa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(qa.isBlob(e))return e.size;if(qa.isSpecCompliantForm(e)){const t=new n(fs.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return qa.isArrayBufferView(e)||qa.isArrayBuffer(e)?e.byteLength:(qa.isURLSearchParams(e)&&(e+=""),qa.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:w}=Ls(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let C=Is([l,p&&p.toAbortSignal()],h),k=null;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(E=await f(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(qa.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=_s(E,Es(Ts(m)));s=Ds(t.body,65536,e,n)}}qa.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:C,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};k=i&&new n(o,l);let p=await(i?x(k,w):x(o,l));const h=u&&("stream"===y||"response"===y);if(u&&(g||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=qa.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&_s(t,Es(Ts(g),!0))||[];p=new r(Ds(p.body,65536,n,()=>{o&&o(),S&&S()}),e)}y=y||"text";let _=await d[qa.findKey(d,y)||"text"](p,e);return!h&&S&&S(),await new Promise((t,n)=>{Ss(t,n,{data:_,headers:ws.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:k})})}catch(_){if(S&&S(),_&&"TypeError"===_.name&&/Load failed|fetch/i.test(_.message))throw Object.assign(new Ha("Network Error",Ha.ERR_NETWORK,e,k),{cause:_.cause||_});throw Ha.from(_,_&&_.code,e,k)}}},Hs=new Map,Vs=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Hs;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:qs(t)),c=s;return s};Vs();const Ks={http:null,xhr:js,fetch:{get:Vs}};qa.forEach(Ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Gs=e=>`- ${e}`,Qs=e=>qa.isFunction(e)||null===e||!1===e;const Ys={getAdapter:function(e,t){e=qa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Qs(r)&&(o=Ks[(n=String(r)).toLowerCase()],void 0===o))throw new Ha(`Unknown adapter '${n}'`);if(o&&(qa.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ha("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Gs).join("\n"):" "+Gs(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ks};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function Xs(e){Zs(e),e.headers=ws.from(e.headers),e.data=xs.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ys.getAdapter(e.adapter||hs.adapter,e)(e).then(function(t){return Zs(e),t.data=xs.call(e,e.transformResponse,t),t.headers=ws.from(t.headers),t},function(t){return Cs(t)||(Zs(e),t&&t.response&&(t.response.data=xs.call(e,e.transformResponse,t.response),t.response.headers=ws.from(t.response.headers))),Promise.reject(t)})}const Js="1.13.1",el={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{el[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tl={};el.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Js+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ha(r(o," has been removed"+(t?" in "+t:"")),Ha.ERR_DEPRECATED);return t&&!tl[o]&&(tl[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},el.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const nl={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ha("options must be an object",Ha.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ha("option "+i+" must be "+n,Ha.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ha("Unknown option "+i,Ha.ERR_BAD_OPTION)}},validators:el},rl=nl.validators;let ol=class{constructor(e){this.defaults=e||{},this.interceptors={request:new os,response:new os}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ms(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&nl.assertOptions(n,{silentJSONParsing:rl.transitional(rl.boolean),forcedJSONParsing:rl.transitional(rl.boolean),clarifyTimeoutError:rl.transitional(rl.boolean)},!1),null!=r&&(qa.isFunction(r)?t.paramsSerializer={serialize:r}:nl.assertOptions(r,{encode:rl.function,serialize:rl.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nl.assertOptions(t,{baseUrl:rl.spelling("baseURL"),withXsrfToken:rl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&qa.merge(o.common,o[t.method]);o&&qa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ws.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Xs.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xs.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rs(Rs((e=Ms(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};qa.forEach(["delete","get","head","options"],function(e){ol.prototype[e]=function(t,n){return this.request(Ms(n||{},{method:e,url:t,data:(n||{}).data}))}}),qa.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ms(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ol.prototype[e]=t(),ol.prototype[e+"Form"]=t(!0)});const il={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(il).forEach(([e,t])=>{il[t]=e});const al=function e(t){const n=new ol(t),r=na(ol.prototype.request,n);return qa.extend(r,ol.prototype,n,{allOwnKeys:!0}),qa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ms(t,n))},r}(hs);al.Axios=ol,al.CanceledError=ks,al.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ks(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},al.isCancel=Cs,al.VERSION=Js,al.toFormData=Xa,al.AxiosError=Ha,al.Cancel=al.CanceledError,al.all=function(e){return Promise.all(e)},al.spread=function(e){return function(t){return e.apply(null,t)}},al.isAxiosError=function(e){return qa.isObject(e)&&!0===e.isAxiosError},al.mergeConfig=Ms,al.AxiosHeaders=ws,al.formToJSON=e=>ps(qa.isHTMLForm(e)?new FormData(e):e),al.getAdapter=Ys.getAdapter,al.HttpStatusCode=il,al.default=al;const{Axios:sl,AxiosError:ll,CanceledError:cl,isCancel:ul,CancelToken:dl,VERSION:fl,all:pl,Cancel:hl,isAxiosError:gl,spread:ml,toFormData:yl,AxiosHeaders:bl,HttpStatusCode:vl,formToJSON:wl,getAdapter:xl,mergeConfig:Cl}=al,kl="ps_app_did_mount",Sl="ps_game_info_loaded",El="ps_game_ready",_l="ps_switch_page",Tl="ps_wallet_connect",Pl="ps_play_button_clicked",Al="ps_purchase_completed",Rl="ps_check_in_completed",Ol="event_purchaseCompleted",Ml="event_checkInCompleted";var Ll=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.done=2]="done",e))(Ll||{}),jl=(e=>(e[e.airdrop=1]="airdrop",e[e.earn=2]="earn",e))(jl||{}),Il=(e=>(e[e.success=1e4]="success",e[e.netConfigError=10001]="netConfigError",e[e.netError=10002]="netError",e[e.paramError=10003]="paramError",e[e.notInit=10004]="notInit",e[e.initError=10005]="initError",e[e.notLogin=10006]="notLogin",e[e.logined=10007]="logined",e[e.purchaseing=10008]="purchaseing",e[e.clipboardError=10009]="clipboardError",e[e.walletError=10010]="walletError",e[e.walletNotConnected=10011]="walletNotConnected",e[e.openInvoiceError=10012]="openInvoiceError",e[e.tokenUseError=10013]="tokenUseError",e[e.insufficientFunds=10014]="insufficientFunds",e[e.orderConfirming=10015]="orderConfirming",e[e.checkingIn=10016]="checkingIn",e[e.signDataError=10017]="signDataError",e[e.walletBindInCd=10018]="walletBindInCd",e[e.shareError=10019]="shareError",e[e.playAdError=10020]="playAdError",e))(Il||{}),Nl=(e=>(e[e.none=0]="none",e[e.index=1]="index",e[e.login=2]="login",e[e.purchase=3]="purchase",e[e.checkIn=4]="checkIn",e))(Nl||{}),$l=(e=>(e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e[e.coc=3]="coc",e[e.croco=4]="croco",e))($l||{}),Dl=(e=>(e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e))(Dl||{}),Wl=(e=>(e.users="users",e.groups="groups",e.channels="channels",e))(Wl||{}),zl=(e=>(e.star="star",e.ton="ton",e.usdt="usdt",e.cati="cati",e.bombie="bombie",e.coc="coc",e.pybobo="pybobo",e.croco="croco",e))(zl||{});const Ul={star:"STAR",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Fl={star:"Star",ton:"TON",usdt:"USDT",cati:"CATI",bombie:"BOMB",coc:"COC",pybobo:"PYBOBO",croco:"CROCO"},Bl={0:{star:"currency_star.png",ton:"currency_ton.png",usdt:"currency_usdt.png",cati:"currency_cati.png"},1041:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"},1048:{star:"1048_currency_star.png",ton:"1048_currency_ton.png",usdt:"1048_currency_usdt.png",cati:"1048_currency_cati.png",coc:"1048_currency_coc.png"},1060:{star:"1041_currency_star.png",ton:"1041_currency_ton.png",usdt:"1041_currency_usdt.png",cati:"1041_currency_cati.png",pybobo:"1041_currency_cati.png",croco:"1041_currency_cati.png"}},ql=["1041","1048","1060"],Hl={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};const Vl=new class{init(){this._axios=al.create({timeout:1e4}),this._axios.interceptors.request.use(e=>(e.url.includes("api/pluto")&&(e.baseURL=ta.API_URL,ta.TOKEN&&(e.headers.Authorization=`Bearer ${ta.TOKEN}`)),e),e=>(console.log(e),Promise.reject({code:Il.netConfigError,message:"Net config error"}))),this._axios.interceptors.response.use(e=>e,e=>(console.log(e.toJSON()),Promise.reject({code:Il.netError,message:e.message})))}get(e,t=null){let n={};return t&&(n.params=t),this._axios.get(e,n).then(e=>e.data)}post(e,t={}){return this._axios.post(e,t).then(e=>e.data)}};var Kl,Gl={exports:{}};var Ql,Yl,Zl=(Kl||(Kl=1,Ql=Gl,Yl=Gl.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",s="model",l="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",y="wearable",b="embedded",v="Amazon",w="Apple",x="ASUS",C="BlackBerry",k="Browser",S="Chrome",E="Firefox",_="Google",T="Honor",P="Huawei",A="LG",R="Microsoft",O="Motorola",M="Nvidia",L="OnePlus",j="Opera",I="OPPO",N="Samsung",$="Sharp",D="Sony",W="Xiaomi",z="Zebra",U="Facebook",F="Chromium OS",B="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Q=function(e,r){for(var i,a,s,l,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)u=c[++a],typeof(l=p[s])===o&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):t:this[l[0]]=u?l[1].call(this,u,l[2]):t:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},Y=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(V(n[r][i],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,j+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+k],d],[/\bfocus\/([\w\.]+)/i],[d,[l,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[d,[l,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+q],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,Y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[u,N],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[u,N],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[u,w],[c,g]],[/(macintosh);/i],[s,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[u,$],[c,h]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[s,[u,T],[c,g]],[/honor([-\w ]+)[;\)]/i],[s,[u,T],[c,h]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[s,[u,P],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[u,P],[c,h]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[s,/_/g," "],[u,W],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[s,/_/g," "],[u,W],[c,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[u,I],[c,h]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[s,[u,Y,{OnePlus:["304","403","203"],"*":I}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[u,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[u,O],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[u,A],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[u,A],[c,h]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[s,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,s,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[s,/_/g," "],[c,h],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[s,[u,_],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[u,_],[c,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[u,D],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[u,D],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[u,L],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[u,v],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[u,v],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[u,C],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[u,x],[c,h]],[/(nexus 9)/i],[s,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,K],s,[c,Y,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[u,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[u,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[u,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[u,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[u,"Nothing"],[c,h]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[s,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[s,[u,"Archos"],[c,h]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,s,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,s,[c,g]],[/(surface duo)/i],[s,[u,R],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[s,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[s,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[s,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[s,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[s,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[s,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],s,[c,g]],[/\b(ns-?\w{0,9}) b/i],[s,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[s,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[s,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[s,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[u,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[u,z],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[u,z],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[u,N],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,A],[c,m]],[/(apple) ?tv/i],[u,[s,w+" TV"],[c,m]],[/crkey/i],[[s,S+"cast"],[u,_],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[s,[u,v],[c,m]],[/(shield \w+ tv)/i],[s,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[u,$],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[s,[u,D],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[s,[u,W],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,s,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,G],[s,G],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[s,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,s,[c,p]],[/droid.+; (shield)( bui|\))/i],[s,[u,M],[c,p]],[/(playstation \w+)/i],[s,[u,D],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[u,R],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[s,[u,N],[c,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,s,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[s,[u,I],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[u,w],[c,y]],[/(opwwe\d{3})/i],[s,[u,L],[c,y]],[/(moto 360)/i],[s,[u,O],[c,y]],[/(smartwatch 3)/i],[s,[u,D],[c,y]],[/(g watch r)/i],[s,[u,A],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[s,[u,z],[c,y]],[/droid.+; (glass) \d/i],[s,[u,_],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,s,[c,y]],[/; (quest( \d| pro)?)/i],[s,[u,U],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,b]],[/(aeobc)\b/i],[s,[u,v],[c,b]],[/(homepod).+mac os/i],[s,[u,w],[c,b]],[/windows iot/i],[[c,b]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[s,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,Y,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,Y,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,B],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,F],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},J=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof J))return new J(p,m).getResult();var y=typeof e!==r&&e.navigator?e.navigator:t,b=p||(y&&y.userAgent?y.userAgent:""),v=y&&y.userAgentData?y.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(X,m):X,x=y&&y.userAgent==b;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,Q.call(r,b,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,x&&y&&y.brave&&typeof y.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,Q.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[s]=t,e[c]=t,Q.call(e,b,w.device),x&&!e[c]&&v&&v.mobile&&(e[c]=h),x&&"Macintosh"==e[s]&&y&&typeof y.standalone!==r&&y.maxTouchPoints&&y.maxTouchPoints>2&&(e[s]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,Q.call(e,b,w.os),x&&!e[l]&&v&&v.platform&&"Unknown"!=v.platform&&(e[l]=v.platform.replace(/chrome os/i,F).replace(/macos/i,B)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===i&&e.length>500?G(e,500):e,this},this.setUA(b),this};J.VERSION="1.0.41",J.BROWSER=H([l,d,a]),J.CPU=H([f]),J.DEVICE=H([s,u,c,p,h,m,g,y,b]),J.ENGINE=J.OS=H([l,d]),Ql.exports&&(Yl=Ql.exports=J),Yl.UAParser=J;var ee=typeof e!==r&&(e.jQuery||e.Zepto);if(ee&&!ee.ua){var te=new J;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:Gl.exports)),Gl.exports);const Xl=r(Zl),Jl=e=>`${ta.RES_URL}${e}`,ec=()=>ql.includes(ta.GAME_ID),tc=()=>{const e=window.Telegram.WebApp.platform,t=window.Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)},nc=()=>{const e=window.Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},rc=()=>{const e=window.Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},oc=()=>(window.Telegram.WebApp.platform||"").includes("android"),ic=()=>{const e=(new Zl.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},ac=e=>new Promise((t,n)=>{if(!navigator||!navigator.clipboard)return n({code:Il.clipboardError,message:"Method not support"});navigator.clipboard.writeText(e).then(()=>{t()}).catch(()=>{n({code:Il.clipboardError,message:"Write text error"})})}),sc=e=>new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n({code:Il.clipboardError,message:"Copy command error"})});class lc{static showLog(e){ta.TEST_MODE&&console.log(e)}static get(e,t=null){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Vl.get(n,t).then(t=>{if(lc.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static post(e,t={}){const n=`api/${e}/${ta.GAME_ID}`;return new Promise((r,o)=>{Vl.post(n,t).then(t=>{if(lc.showLog(`api ${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)}).catch(e=>{o(e)})})}static gameInfo(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return lc.post("pluto/gameinfo",e)}static login(){const e={botname:ta.BOT_NAME,initdata:ta.INIT_DATA};return lc.post("pluto/login",e)}static priceExchange(e){const t={amount:e};return lc.post("pluto/priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return lc.post("pluto/order",s)}static getItem(e){const t={k:e};return lc.post("pluto/getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return lc.post("pluto/setuserdata",n)}static finishOrder(e){const t={orderno:e};return lc.post("pluto/finishorder",t)}static unfinishRecord(){return lc.get("pluto/unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return lc.post("pluto/checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return lc.post("pluto/checkinverify",o)}static getShareMessage(e,t,n,r,o,i,a){const s={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r,btn:o,title:i,photo:a};return lc.post("pluto/share",s)}static deposit(e,t,n,r){const o={orderid:t,amount:n,currencycode:e,customdata:r};return lc.post("pluto/deposit",o)}static reportStarPayStatus(e,t,n,r,o){const i={currency:e,orderNo:t,payLink:n,amount:r,status:o};return lc.post("pluto/reportstarpaystatus",i)}static reportSignData(e,t,n,r,o,i,a){const s={signtype:0,network:e,address:t,timestamp:r,domain:o,payload:i,signature:a,stateinit:n};return lc.post("pluto/signdata",s)}static getNfts(){return lc.post("pluto/getnfts")}static setGameUserId(e){const t={userid:e};return lc.post("pluto/setuserid",t)}static cocGetInfo(){return lc.get("plutococ/cocinfo")}static cocWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return lc.post("plutococ/withdraw",o)}static cocClaim(e){const t={withdrawid:e};return lc.post("plutococ/claim",t)}static cocGetWithdrawDetail(e){const t={withdrawid:e};return lc.post("plutococ/withdrawdetail",t)}static cocGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return lc.post("plutococ/cocrecord",r)}static cocQueryConsume(e){const t={time:e};return lc.post("plutococ/queryconsume",t)}static cocCancelWithdraw(e){const t={withdrawid:e};return lc.post("plutococ/cancelwithdraw",t)}static spGetInfo(){return lc.get("plutosp/info")}static spWithdraw(e,t,n,r){const o={chainnet:"TON",wallet:e,currencycode:t,amount:n,memo:r};return lc.post("plutosp/withdraw",o)}static spClaim(e){const t={withdrawid:e};return lc.post("plutosp/claim",t)}static spGetWithdrawDetail(e){const t={withdrawid:e};return lc.post("plutosp/withdrawdetail",t)}static spGetRecords(e,t,n){const r={optype:e,page:t,pagesize:n};return lc.post("plutosp/record",r)}static spQueryConsume(e){const t={time:e};return lc.post("plutosp/queryconsume",t)}static spCancelWithdraw(e){const t={withdrawid:e};return lc.post("plutosp/cancelwithdraw",t)}}const cc=new class{get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get boundWallet(){return this._boundWallet}set boundWallet(e){this._boundWallet=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}get gameUserId(){return this._gameUserId}set gameUserId(e){this._gameUserId=e}};var uc,dc={exports:{}},fc=dc.exports;var pc=(uc||(uc=1,function(e){var t,n;t=fc,n=function(){var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e},e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(dc)),dc.exports);const hc=r(pc);function gc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mc={exports:{}};const yc=o(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var bc;var vc=(bc||(bc=1,function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),a=t([1]),s=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),f=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,_=u,T=d,P=f,A=p,R=h,O=g,M=m,L=y,j=b,I=v,N=w,$=0;$<20;$+=2)x^=(o=(L^=(o=(A^=(o=(E^=(o=x+L|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+A|0)<<18|o>>>14,_^=(o=(C^=(o=(j^=(o=(R^=(o=_+C|0)<<7|o>>>25)+_|0)<<9|o>>>23)+R|0)<<13|o>>>19)+j|0)<<18|o>>>14,O^=(o=(T^=(o=(k^=(o=(I^=(o=O+T|0)<<7|o>>>25)+O|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,N^=(o=(M^=(o=(P^=(o=(S^=(o=N+M|0)<<7|o>>>25)+N|0)<<9|o>>>23)+S|0)<<13|o>>>19)+P|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,_^=(o=(E^=(o=(P^=(o=(T^=(o=_+E|0)<<7|o>>>25)+_|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,O^=(o=(R^=(o=(A^=(o=(M^=(o=O+R|0)<<7|o>>>25)+O|0)<<9|o>>>23)+M|0)<<13|o>>>19)+A|0)<<18|o>>>14,N^=(o=(I^=(o=(j^=(o=(L^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+L|0)<<13|o>>>19)+j|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,_=_+u|0,T=T+d|0,P=P+f|0,A=A+p|0,R=R+h|0,O=O+g|0,M=M+m|0,L=L+y|0,j=j+b|0,I=I+v|0,N=N+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=_>>>0&255,e[21]=_>>>8&255,e[22]=_>>>16&255,e[23]=_>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=P>>>0&255,e[29]=P>>>8&255,e[30]=P>>>16&255,e[31]=P>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=R>>>0&255,e[37]=R>>>8&255,e[38]=R>>>16&255,e[39]=R>>>24&255,e[40]=O>>>0&255,e[41]=O>>>8&255,e[42]=O>>>16&255,e[43]=O>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=L>>>0&255,e[49]=L>>>8&255,e[50]=L>>>16&255,e[51]=L>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,h=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,y=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,v=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(y^=(o=(p^=(o=(c^=(o=i+y|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+p|0)<<18|o>>>14,u^=(o=(a^=(o=(b^=(o=(h^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+h|0)<<13|o>>>19)+b|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(v^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+v|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(h^=(o=(p^=(o=(m^=(o=g+h|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+p|0)<<18|o>>>14,w^=(o=(v^=(o=(b^=(o=(y^=(o=w+v|0)<<7|o>>>25)+w|0)<<9|o>>>23)+y|0)<<13|o>>>19)+b|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=h>>>0&255,e[29]=h>>>8&255,e[30]=h>>>16&255,e[31]=h>>>24&255}(e,t,n,r)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,v),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,v),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function x(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,v),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,v),a=0;a<n;a++)e[t+a]=l[a];return 0}function C(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,v);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return x(e,t,n,a,i)}function k(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,v);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return w(e,t,n,r,o,l,s)}var S=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function E(e,t,n,r,o,i){var a=new S(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return E(a,0,n,r,o,i),g(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,o),E(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function P(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(C(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(k(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function A(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function R(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function O(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(R(s),R(s),R(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,O(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function L(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),m(n,0,r,0)}function j(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function I(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function N(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function D(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,p=0,h=0,g=0,m=0,y=0,b=0,v=0,w=0,x=0,C=0,k=0,S=0,E=0,_=0,T=0,P=0,A=0,R=0,O=0,M=0,L=0,j=0,I=0,N=n[0],$=n[1],D=n[2],W=n[3],z=n[4],U=n[5],F=n[6],B=n[7],q=n[8],H=n[9],V=n[10],K=n[11],G=n[12],Q=n[13],Y=n[14],Z=n[15];i+=(r=t[0])*N,a+=r*$,s+=r*D,l+=r*W,c+=r*z,u+=r*U,d+=r*F,f+=r*B,p+=r*q,h+=r*H,g+=r*V,m+=r*K,y+=r*G,b+=r*Q,v+=r*Y,w+=r*Z,a+=(r=t[1])*N,s+=r*$,l+=r*D,c+=r*W,u+=r*z,d+=r*U,f+=r*F,p+=r*B,h+=r*q,g+=r*H,m+=r*V,y+=r*K,b+=r*G,v+=r*Q,w+=r*Y,x+=r*Z,s+=(r=t[2])*N,l+=r*$,c+=r*D,u+=r*W,d+=r*z,f+=r*U,p+=r*F,h+=r*B,g+=r*q,m+=r*H,y+=r*V,b+=r*K,v+=r*G,w+=r*Q,x+=r*Y,C+=r*Z,l+=(r=t[3])*N,c+=r*$,u+=r*D,d+=r*W,f+=r*z,p+=r*U,h+=r*F,g+=r*B,m+=r*q,y+=r*H,b+=r*V,v+=r*K,w+=r*G,x+=r*Q,C+=r*Y,k+=r*Z,c+=(r=t[4])*N,u+=r*$,d+=r*D,f+=r*W,p+=r*z,h+=r*U,g+=r*F,m+=r*B,y+=r*q,b+=r*H,v+=r*V,w+=r*K,x+=r*G,C+=r*Q,k+=r*Y,S+=r*Z,u+=(r=t[5])*N,d+=r*$,f+=r*D,p+=r*W,h+=r*z,g+=r*U,m+=r*F,y+=r*B,b+=r*q,v+=r*H,w+=r*V,x+=r*K,C+=r*G,k+=r*Q,S+=r*Y,E+=r*Z,d+=(r=t[6])*N,f+=r*$,p+=r*D,h+=r*W,g+=r*z,m+=r*U,y+=r*F,b+=r*B,v+=r*q,w+=r*H,x+=r*V,C+=r*K,k+=r*G,S+=r*Q,E+=r*Y,_+=r*Z,f+=(r=t[7])*N,p+=r*$,h+=r*D,g+=r*W,m+=r*z,y+=r*U,b+=r*F,v+=r*B,w+=r*q,x+=r*H,C+=r*V,k+=r*K,S+=r*G,E+=r*Q,_+=r*Y,T+=r*Z,p+=(r=t[8])*N,h+=r*$,g+=r*D,m+=r*W,y+=r*z,b+=r*U,v+=r*F,w+=r*B,x+=r*q,C+=r*H,k+=r*V,S+=r*K,E+=r*G,_+=r*Q,T+=r*Y,P+=r*Z,h+=(r=t[9])*N,g+=r*$,m+=r*D,y+=r*W,b+=r*z,v+=r*U,w+=r*F,x+=r*B,C+=r*q,k+=r*H,S+=r*V,E+=r*K,_+=r*G,T+=r*Q,P+=r*Y,A+=r*Z,g+=(r=t[10])*N,m+=r*$,y+=r*D,b+=r*W,v+=r*z,w+=r*U,x+=r*F,C+=r*B,k+=r*q,S+=r*H,E+=r*V,_+=r*K,T+=r*G,P+=r*Q,A+=r*Y,R+=r*Z,m+=(r=t[11])*N,y+=r*$,b+=r*D,v+=r*W,w+=r*z,x+=r*U,C+=r*F,k+=r*B,S+=r*q,E+=r*H,_+=r*V,T+=r*K,P+=r*G,A+=r*Q,R+=r*Y,O+=r*Z,y+=(r=t[12])*N,b+=r*$,v+=r*D,w+=r*W,x+=r*z,C+=r*U,k+=r*F,S+=r*B,E+=r*q,_+=r*H,T+=r*V,P+=r*K,A+=r*G,R+=r*Q,O+=r*Y,M+=r*Z,b+=(r=t[13])*N,v+=r*$,w+=r*D,x+=r*W,C+=r*z,k+=r*U,S+=r*F,E+=r*B,_+=r*q,T+=r*H,P+=r*V,A+=r*K,R+=r*G,O+=r*Q,M+=r*Y,L+=r*Z,v+=(r=t[14])*N,w+=r*$,x+=r*D,C+=r*W,k+=r*z,S+=r*U,E+=r*F,_+=r*B,T+=r*q,P+=r*H,A+=r*V,R+=r*K,O+=r*G,M+=r*Q,L+=r*Y,j+=r*Z,w+=(r=t[15])*N,a+=38*(C+=r*D),s+=38*(k+=r*W),l+=38*(S+=r*z),c+=38*(E+=r*U),u+=38*(_+=r*F),d+=38*(T+=r*B),f+=38*(P+=r*q),p+=38*(A+=r*H),h+=38*(R+=r*V),g+=38*(O+=r*K),m+=38*(M+=r*G),y+=38*(L+=r*Q),b+=38*(j+=r*Y),v+=38*(I+=r*Z),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=h,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function W(e,t){D(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function U(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&D(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),p=t(),h=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,I(l,r),i=0;i<16;i++)u[i]=l[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)O(c,u,o=a[i>>>3]>>>(7&i)&1),O(d,f,o),N(p,c,d),$(c,c,d),N(d,u,f),$(u,u,f),W(f,p),W(h,c),D(c,d,c),D(d,u,p),N(p,c,d),$(c,c,d),W(u,c),$(d,f,h),D(c,d,s),N(c,c,f),D(d,d,c),D(c,f,h),D(f,u,l),W(u,p),O(c,u,o),O(d,f,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=f[i];var g=l.subarray(32),m=l.subarray(16);return z(g,g),D(m,m,g),M(e,m),0}function B(e,t){return F(e,t,o)}function q(e,t){return n(t,32),B(e,t)}function H(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,v)}S.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],_=this.h[3],T=this.h[4],P=this.h[5],A=this.h[6],R=this.h[7],O=this.h[8],M=this.h[9],L=this.r[0],j=this.r[1],I=this.r[2],N=this.r[3],$=this.r[4],D=this.r[5],W=this.r[6],z=this.r[7],U=this.r[8],F=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*L,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*F),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*U),f+=(_+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*z),d=(f+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*W))>>>13,f&=8191,f+=(P+=s>>>1&8191)*(5*D),f+=(A+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(R+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),f+=(O+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),p=d+=(f+=(M+=u>>>5|C)*(5*j))>>>13,p+=k*j,p+=S*L,p+=E*(5*F),p+=_*(5*U),d=(p+=T*(5*z))>>>13,p&=8191,p+=P*(5*W),p+=A*(5*D),p+=R*(5*$),p+=O*(5*N),d+=(p+=M*(5*I))>>>13,p&=8191,h=d,h+=k*I,h+=S*j,h+=E*L,h+=_*(5*F),d=(h+=T*(5*U))>>>13,h&=8191,h+=P*(5*z),h+=A*(5*W),h+=R*(5*D),h+=O*(5*$),g=d+=(h+=M*(5*N))>>>13,g+=k*N,g+=S*I,g+=E*j,g+=_*L,d=(g+=T*(5*F))>>>13,g&=8191,g+=P*(5*U),g+=A*(5*z),g+=R*(5*W),g+=O*(5*D),m=d+=(g+=M*(5*$))>>>13,m+=k*$,m+=S*N,m+=E*I,m+=_*j,d=(m+=T*L)>>>13,m&=8191,m+=P*(5*F),m+=A*(5*U),m+=R*(5*z),m+=O*(5*W),y=d+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*$,y+=E*N,y+=_*I,d=(y+=T*j)>>>13,y&=8191,y+=P*L,y+=A*(5*F),y+=R*(5*U),y+=O*(5*z),b=d+=(y+=M*(5*W))>>>13,b+=k*W,b+=S*D,b+=E*$,b+=_*N,d=(b+=T*I)>>>13,b&=8191,b+=P*j,b+=A*L,b+=R*(5*F),b+=O*(5*U),v=d+=(b+=M*(5*z))>>>13,v+=k*z,v+=S*W,v+=E*D,v+=_*$,d=(v+=T*N)>>>13,v&=8191,v+=P*I,v+=A*j,v+=R*L,v+=O*(5*F),w=d+=(v+=M*(5*U))>>>13,w+=k*U,w+=S*z,w+=E*W,w+=_*D,d=(w+=T*$)>>>13,w&=8191,w+=P*N,w+=A*I,w+=R*j,w+=O*L,x=d+=(w+=M*(5*F))>>>13,x+=k*F,x+=S*U,x+=E*z,x+=_*W,d=(x+=T*D)>>>13,x&=8191,x+=P*$,x+=A*N,x+=R*I,x+=O*j,k=f=8191&(d=(d=((d+=(x+=M*L)>>>13)<<2)+d|0)+(f&=8191)|0),S=p+=d>>>=13,E=h&=8191,_=g&=8191,T=m&=8191,P=y&=8191,A=b&=8191,R=v&=8191,O=w&=8191,M=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=_,this.h[4]=T,this.h[5]=P,this.h[6]=A,this.h[7]=R,this.h[8]=O,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var V=T,K=P,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,w,x,C,k,S,E,_,T,P,A,R=new Int32Array(16),O=new Int32Array(16),M=e[0],L=e[1],j=e[2],I=e[3],N=e[4],$=e[5],D=e[6],W=e[7],z=t[0],U=t[1],F=t[2],B=t[3],q=t[4],H=t[5],V=t[6],K=t[7],Q=0;r>=128;){for(C=0;C<16;C++)k=8*C+Q,R[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],O[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=M,i=L,a=j,s=I,l=N,c=$,u=D,f=z,p=U,h=F,g=B,m=q,y=H,b=V,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,_+=65535&(E=(q>>>14|N<<18)^(q>>>18|N<<14)^(N>>>9|q<<23)),T+=E>>>16,P+=65535&(S=(N>>>14|q<<18)^(N>>>18|q<<14)^(q>>>9|N<<23)),A+=S>>>16,_+=65535&(E=q&H^~q&V),T+=E>>>16,P+=65535&(S=N&$^~N&D),A+=S>>>16,_+=65535&(E=G[2*C+1]),T+=E>>>16,P+=65535&(S=G[2*C]),A+=S>>>16,S=R[C%16],T+=(E=O[C%16])>>>16,P+=65535&S,A+=S>>>16,P+=(T+=(_+=65535&E)>>>16)>>>16,_=65535&(E=x=65535&_|T<<16),T=E>>>16,P=65535&(S=w=65535&P|(A+=P>>>16)<<16),A=S>>>16,_+=65535&(E=(z>>>28|M<<4)^(M>>>2|z<<30)^(M>>>7|z<<25)),T+=E>>>16,P+=65535&(S=(M>>>28|z<<4)^(z>>>2|M<<30)^(z>>>7|M<<25)),A+=S>>>16,T+=(E=z&U^z&F^U&F)>>>16,P+=65535&(S=M&L^M&j^L&j),A+=S>>>16,d=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,v=65535&_|T<<16,_=65535&(E=g),T=E>>>16,P=65535&(S=s),A=S>>>16,T+=(E=x)>>>16,P+=65535&(S=w),A+=S>>>16,L=o,j=i,I=a,N=s=65535&(P+=(T+=(_+=65535&E)>>>16)>>>16)|(A+=P>>>16)<<16,$=l,D=c,W=u,M=d,U=f,F=p,B=h,q=g=65535&_|T<<16,H=m,V=y,K=b,z=v,C%16==15)for(k=0;k<16;k++)S=R[k],_=65535&(E=O[k]),T=E>>>16,P=65535&S,A=S>>>16,S=R[(k+9)%16],_+=65535&(E=O[(k+9)%16]),T+=E>>>16,P+=65535&S,A+=S>>>16,w=R[(k+1)%16],_+=65535&(E=((x=O[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),T+=E>>>16,P+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),A+=S>>>16,w=R[(k+14)%16],T+=(E=((x=O[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,P+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,R[k]=65535&P|A<<16,O[k]=65535&_|T<<16;_=65535&(E=z),T=E>>>16,P=65535&(S=M),A=S>>>16,S=e[0],T+=(E=t[0])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&P|A<<16,t[0]=z=65535&_|T<<16,_=65535&(E=U),T=E>>>16,P=65535&(S=L),A=S>>>16,S=e[1],T+=(E=t[1])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[1]=L=65535&P|A<<16,t[1]=U=65535&_|T<<16,_=65535&(E=F),T=E>>>16,P=65535&(S=j),A=S>>>16,S=e[2],T+=(E=t[2])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[2]=j=65535&P|A<<16,t[2]=F=65535&_|T<<16,_=65535&(E=B),T=E>>>16,P=65535&(S=I),A=S>>>16,S=e[3],T+=(E=t[3])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&P|A<<16,t[3]=B=65535&_|T<<16,_=65535&(E=q),T=E>>>16,P=65535&(S=N),A=S>>>16,S=e[4],T+=(E=t[4])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[4]=N=65535&P|A<<16,t[4]=q=65535&_|T<<16,_=65535&(E=H),T=E>>>16,P=65535&(S=$),A=S>>>16,S=e[5],T+=(E=t[5])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&P|A<<16,t[5]=H=65535&_|T<<16,_=65535&(E=V),T=E>>>16,P=65535&(S=D),A=S>>>16,S=e[6],T+=(E=t[6])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&P|A<<16,t[6]=V=65535&_|T<<16,_=65535&(E=K),T=E>>>16,P=65535&(S=W),A=S>>>16,S=e[7],T+=(E=t[7])>>>16,P+=65535&S,A+=S>>>16,A+=(P+=(T+=(_+=65535&E)>>>16)>>>16)>>>16,e[7]=W=65535&P|A<<16,t[7]=K=65535&_|T<<16,Q+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function Z(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),u=t(),d=t(),f=t();$(r,e[1],e[0]),$(f,n[1],n[0]),D(r,r,f),N(o,e[0],e[1]),N(f,n[0],n[1]),D(o,o,f),D(i,e[3],n[3]),D(i,i,c),D(a,e[2],n[2]),N(a,a,a),$(s,o,r),$(l,a,i),N(u,a,i),N(d,o,r),D(e[0],s,l),D(e[1],d,u),D(e[2],u,l),D(e[3],s,d)}function X(e,t,n){var r;for(r=0;r<4;r++)O(e[r],t[r],n)}function J(e,n){var r=t(),o=t(),i=t();z(i,n[2]),D(r,n[0],i),D(o,n[1],i),M(e,o),e[31]^=j(r)<<7}function ee(e,t,n){var r,o;for(A(e[0],i),A(e[1],a),A(e[2],a),A(e[3],i),o=255;o>=0;--o)X(e,t,r=n[o/8|0]>>(7&o)&1),Z(t,e),Z(e,e),X(e,t,r)}function te(e,n){var r=[t(),t(),t(),t()];A(r[0],u),A(r[1],d),A(r[2],a),D(r[3],u,d),ee(e,r,n)}function ne(e,r,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||n(r,32),Y(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),J(e,s),i=0;i<32;i++)r[i+32]=e[i];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*re[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*re[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*re[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ie(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,n)}function ae(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ie(c),te(d,c),J(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ie(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return oe(e.subarray(32),u),f}function se(e,n,r,o){var s,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),s=t(),c=t(),u=t(),d=t(),p=t();return A(e[2],a),I(e[1],n),W(s,e[1]),D(c,s,l),$(s,s,e[2]),N(c,e[2],c),W(u,c),W(d,u),D(p,d,u),D(r,p,s),D(r,r,c),U(r,r),D(r,r,s),D(r,r,c),D(r,r,c),D(e[0],r,c),W(o,e[0]),D(o,o,c),L(o,s)&&D(e[0],e[0],f),W(o,e[0]),D(o,o,c),L(o,s)?-1:(j(e[0])===n[31]>>7&&$(e[0],i,e[0]),D(e[3],e[0],e[1]),0)}(p,o))return-1;for(s=0;s<r;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=o[s];if(Y(u,e,r),ie(u),ee(d,p,u),te(p,n.subarray(32)),Z(d,p),J(c,d),r-=64,m(n,0,c,0)){for(s=0;s<r;s++)e[s]=0;return-1}for(s=0;s<r;s++)e[s]=n[s+64];return r}var le,ce=16,ue=64,de=32,fe=64;function pe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function he(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:k,crypto_stream:C,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:x,crypto_onetimeauth:E,crypto_onetimeauth_verify:_,crypto_verify_16:g,crypto_verify_32:m,crypto_secretbox:T,crypto_secretbox_open:P,crypto_scalarmult:F,crypto_scalarmult_base:B,crypto_box_beforenm:H,crypto_box_afternm:V,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),V(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return H(a,o,i),K(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:Y,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:se,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:re,pack25519:M,unpack25519:I,M:D,A:N,S:W,Z:$,pow2523:U,add:Z,set25519:A,modL:oe,scalarmult:ee,scalarbase:te},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){he(e,t,n),pe(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==P(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(he(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(he(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return B(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){he(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return H(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(he(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return B(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(he(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(he(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=se(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(he(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return se(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(he(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(he(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return ne(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){he(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return he(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===h(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},(le="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&le.getRandomValues?e.setPRNG(function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)le.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];ge(r)}):void 0!==gc&&(le=yc)&&le.randomBytes&&e.setPRNG(function(e,t){var n,r=le.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];ge(r)})}(e.exports?e.exports:self.nacl=self.nacl||{})}(mc)),mc.exports);const wc=r(vc);var xc,Cc,kc,Sc,Ec,_c,Tc,Pc,Ac,Rc,Oc,Mc;(Cc=xc||(xc={}))[Cc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Cc[Cc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Cc[Cc.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",Cc[Cc.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",Cc[Cc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Cc[Cc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Cc[Cc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Sc=kc||(kc={}))[Sc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Sc[Sc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(_c=Ec||(Ec={}))[_c.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",_c[_c.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",_c[_c.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",_c[_c.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",_c[_c.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Pc=Tc||(Tc={}))[Pc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Pc[Pc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Pc[Pc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Pc[Pc.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",Pc[Pc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Rc=Ac||(Ac={}))[Rc.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",Rc[Rc.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",Rc[Rc.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",Rc[Rc.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(Mc=Oc||(Oc={})).MAINNET="-239",Mc.TESTNET="-3";const Lc={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=hc.decodeUTF8(e)),function(e,t){const n=hc.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),hc.decodeBase64(e)}(e,t);return{toString:()=>hc.encodeUTF8(n),toObject(){try{return JSON.parse(hc.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function jc(e){let t="";return e.forEach(e=>{t+=("0"+(255&e).toString(16)).slice(-2)}),t}function Ic(e){if(e.length%2!=0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class Nc{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=jc(this.keyPair.publicKey)}createKeypair(){return wc.box.keyPair()}createKeypairFromString(e){return{publicKey:Ic(e.publicKey),secretKey:Ic(e.secretKey)}}createNonce(){return wc.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,wc.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=wc.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:jc(this.keyPair.publicKey),secretKey:jc(this.keyPair.secretKey)}}}function $c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Dc(e,t,n,r){return new(n||(n=Promise))(function(t,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function a(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n(function(e){e(r)})).then(i,a)}s((r=r.apply(e,[])).next())})}class Wc extends Error{constructor(e,t){super(e,t),this.message=`${Wc.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,Wc.prototype)}get info(){return""}}Wc.prefix="[TON_CONNECT_SDK_ERROR]";class zc extends Wc{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,zc.prototype)}}class Uc extends Wc{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Uc.prototype)}}class Fc extends Wc{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(...e){super(...e),Object.setPrototypeOf(this,Fc.prototype)}}class Bc extends Wc{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,Bc.prototype)}}class qc extends Wc{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,qc.prototype)}}class Hc extends Wc{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,Hc.prototype)}}class Vc extends Wc{get info(){return"Wallet doesn't support requested feature method."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Vc.prototype)}}class Kc extends Wc{get info(){return"Missing required features. You need to update your wallet."}constructor(e,t){super(e,t),Object.setPrototypeOf(this,Kc.prototype)}}class Gc extends Wc{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,Gc.prototype)}}class Qc extends Wc{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,Qc.prototype)}}class Yc extends Wc{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,Yc.prototype)}}class Zc extends Wc{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,Zc.prototype)}}class Xc extends Wc{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Xc.prototype)}}class Jc extends Wc{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,Jc.prototype)}}class eu extends Wc{constructor(...e){super(...e),Object.setPrototypeOf(this,eu.prototype)}}const tu={[xc.UNKNOWN_ERROR]:eu,[xc.USER_REJECTS_ERROR]:Gc,[xc.BAD_REQUEST_ERROR]:Qc,[xc.UNKNOWN_APP_ERROR]:Yc,[xc.MANIFEST_NOT_FOUND_ERROR]:Fc,[xc.MANIFEST_CONTENT_ERROR]:Uc};const nu=new class{parseError(e){let t=eu;return e.code in tu&&(t=tu[e.code]||eu),new t(e.message)}};class ru{isError(e){return"error"in e}}const ou={[Ec.UNKNOWN_ERROR]:eu,[Ec.USER_REJECTS_ERROR]:Gc,[Ec.BAD_REQUEST_ERROR]:Qc,[Ec.UNKNOWN_APP_ERROR]:Yc};const iu=new class extends ru{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=eu;throw e.error.code in ou&&(t=ou[e.error.code]||eu),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}},au={[Tc.UNKNOWN_ERROR]:eu,[Tc.USER_REJECTS_ERROR]:Gc,[Tc.BAD_REQUEST_ERROR]:Qc,[Tc.UNKNOWN_APP_ERROR]:Yc};const su=new class extends ru{convertToRpcRequest(e){return{method:"signData",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=eu;throw e.error.code in au&&(t=au[e.error.code]||eu),new t(e.error.message)}convertFromRpcResponse(e){return e.result}};class lu{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return Dc(this,0,void 0,function*(){return this.storage.setItem(this.storeKey,e)})}removeLastEventId(){return Dc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getLastEventId(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);return e||null})}}function cu(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function uu(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function du(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function fu(e,t){return Dc(this,0,void 0,function*(){return new Promise((t,n)=>{setTimeout(()=>t(),e)})})}function pu(e){const t=new AbortController;return(null==e?void 0:e.aborted)?t.abort():null==e||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function hu(e,t){var n,r;return Dc(this,0,void 0,function*(){const o=null!==(n=null==t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null==t?void 0:t.delayMs)&&void 0!==r?r:200,a=pu(null==t?void 0:t.signal);if("function"!=typeof e)throw new Wc("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new Wc(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield fu(i))}}throw s})}function gu(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function mu(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class yu{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){let n=null,r=null,o=null,i=null,a=null;const s=(s,...l)=>Dc(this,0,void 0,function*(){if(i=null!=s?s:null,null==a||a.abort(),a=pu(s),a.signal.aborted)throw new Wc("Resource creation was aborted");r=null!=l?l:null;const c=e(a.signal,...l);o=c;const u=yield c;if(o!==c&&u!==n)throw yield t(u),new Wc("Resource creation was aborted by a new resource creation");return n=u,n});return{create:s,current:()=>null!=n?n:null,dispose:()=>Dc(this,0,void 0,function*(){try{const r=n;n=null;const i=o;o=null;try{null==a||a.abort()}catch(e){}yield Promise.allSettled([r?t(r):Promise.resolve(),i?t(yield i):Promise.resolve()])}catch(e){}}),recreate:e=>Dc(this,0,void 0,function*(){const t=n,a=o,l=r,c=i;if(yield fu(e),t===n&&a===o&&l===r&&c===i)return yield s(i,...null!=l?l:[]);throw new Wc("Resource recreation was aborted by a new resource creation")})}}((e,t)=>Dc(this,0,void 0,function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return Dc(this,0,void 0,function*(){return yield function(e,t){const n=null==t?void 0:t.timeout,r=pu(null==t?void 0:t.signal);return new Promise((t,o)=>Dc(this,0,void 0,function*(){if(r.signal.aborted)return void o(new Wc("Operation aborted"));let i;void 0!==n&&(i=setTimeout(()=>{r.abort(),o(new Wc(`Timeout after ${n}ms`))},n)),r.signal.addEventListener("abort",()=>{clearTimeout(i),o(new Wc("Operation aborted"))},{once:!0});const a={timeout:n,abort:r.signal};yield e((...e)=>{clearTimeout(i),t(...e)},()=>{clearTimeout(i),o()},a)}))}((t,n,r)=>Dc(this,0,void 0,function*(){var o;const i=pu(r.signal).signal;if(i.aborted)return void n(new Wc("Bridge connection aborted"));const a=new URL(cu(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new Wc("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>Dc(this,0,void 0,function*(){if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(o){l.close(),n(o)}}),l.onopen=()=>{if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new Wc("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",()=>{l.close(),n(new Wc("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}(n)}),e=>Dc(this,0,void 0,function*(){e.close()})),this.bridgeGatewayStorage=new lu(e,t)}get isReady(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null==e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return Dc(this,0,void 0,function*(){yield this.eventSource.create(null==e?void 0:e.signal,null==e?void 0:e.openingDeadlineMS)})}send(e,t,n,r){var o;return Dc(this,0,void 0,function*(){const i={};"number"==typeof r?i.ttl=r:(i.ttl=null==r?void 0:r.ttl,i.signal=null==r?void 0:r.signal,i.attempts=null==r?void 0:r.attempts);const a=new URL(cu(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null==i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=Lc.encode(e);yield hu(e=>Dc(this,0,void 0,function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new Wc(`Bridge send failed, status ${t.status}`)}),{attempts:null!==(o=null==i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null==i?void 0:i.signal})})}pause(){this.eventSource.dispose().catch(e=>mu(`Bridge pause failed, ${e}`))}unPause(){return Dc(this,0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return Dc(this,0,void 0,function*(){yield this.eventSource.dispose().catch(e=>mu(`Bridge close failed, ${e}`))})}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return Dc(this,0,void 0,function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new Wc(`Bridge send failed, status ${r.status}`);return r})}errorsHandler(e,t){return Dc(this,0,void 0,function*(){if(this.isConnecting)throw e.close(),new Wc("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),gu(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Wc("Bridge error, unknown state")}try{this.errorsListener(t)}catch(n){}})}messagesHandler(e){return Dc(this,0,void 0,function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(n){throw new Wc(`Bridge message parse failed, message ${e.data}`)}this.listener(t)})}}function bu(e){return!("connectEvent"in e)}class vu{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return Dc(this,0,void 0,function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!bu(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair(),createdAt:Date.now()};return this.storage.setItem(this.storeKey,JSON.stringify(t))})}removeConnection(){return Dc(this,0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if(!function(e){return!("connectEvent"in e)}(t)){const e=new Nc(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return function(e){var t;return Date.now()-(null!==(t=e.createdAt)&&void 0!==t?t:0)>3e5}(t)?(yield this.removeConnection(),null):{type:"http",sessionCrypto:new Nc(t.sessionCrypto),connectionSource:t.connectionSource}})}getHttpConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new Wc("Trying to read HTTP connection source while injected connection is stored");return e})}getHttpPendingConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new Wc("Trying to read HTTP connection source while injected connection is stored");if(!bu(e))throw new Wc("Trying to read HTTP-pending connection while http connection is stored");return e})}getInjectedConnection(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(!e)throw new Wc("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new Wc("Trying to read Injected bridge connection source while HTTP connection is stored");return e})}storedConnectionType(){return Dc(this,0,void 0,function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type})}storeLastWalletEventId(e){return Dc(this,0,void 0,function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!bu(t))return t.lastWalletEventId=e,this.storeConnection(t)})}getLastWalletEventId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId})}increaseNextRpcRequestId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}})}getNextRpcRequestId(){return Dc(this,0,void 0,function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0})}}class wu{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new vu(e)}static fromStorage(e){return Dc(this,0,void 0,function*(){const t=new vu(e),n=yield t.getHttpConnection();return bu(n)?new wu(e,n.connectionSource):new wu(e,{bridgeUrl:n.session.bridgeUrl})})}connect(e,t){var n;const r=pu(null==t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new Nc;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then(()=>Dc(this,0,void 0,function*(){r.signal.aborted||(yield hu(e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null==t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null==e?void 0:e.signal})},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return Dc(this,0,void 0,function*(){const r=pu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null==e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(bu(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null==r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new Wc("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new yu(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach(e=>e(o.connectEvent));try{yield hu(e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(a){return void(yield this.disconnect({signal:r.signal}))}}})}sendRequest(e,t){const n={};return"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal,n.attempts=null==t?void 0:t.attempts),new Promise((t,r)=>Dc(this,0,void 0,function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Wc("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gu("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),Ic(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null==n?void 0:n.attempts,signal:null==n?void 0:n.signal}),null===(o=null==n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(s){r(s)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return Dc(this,0,void 0,function*(){return new Promise(t=>Dc(this,0,void 0,function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=pu(null==e?void 0:e.signal);r=setTimeout(()=>{t.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(i){gu("Disconnect error:",i),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))})}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach(e=>e.pause())}unPause(){return Dc(this,0,void 0,function*(){const e=this.pendingGateways.map(e=>e.unPause());this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)})}pendingGatewaysListener(e,t,n){return Dc(this,0,void 0,function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()})}gatewayListener(e){return Dc(this,0,void 0,function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(Lc.decode(e.message).toUint8Array(),Ic(e.from)));if(gu("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void gu(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void mu(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(gu("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach(e=>e(t))})}gatewayErrorsListener(e){return Dc(this,0,void 0,function*(){throw new Wc(`Bridge error ${JSON.stringify(e)}`)})}updateSession(e,t){return Dc(this,0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find(e=>"ton_addr"===e.name),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})})}removeBridgeAndSession(){return Dc(this,0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(e,t){return uu(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+du(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return Dc(this,0,void 0,function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map(e=>e.close().catch()),this.pendingGateways=this.walletConnectionSource.map(t=>{const n=new yu(this.storage,t.bridgeUrl,e.sessionId,()=>{},()=>{});return n.setListener(e=>this.pendingGatewaysListener(n,t.bridgeUrl,e)),n}),void(yield Promise.allSettled(this.pendingGateways.map(e=>hu(n=>{var r;return this.pendingGateways.some(t=>t===e)?e.registerSession({openingDeadlineMS:null!==(r=null==t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()},{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null==t?void 0:t.signal}))))):(this.gateway&&(gu("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new yu(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null==t?void 0:t.openingDeadlineMS,signal:null==t?void 0:t.signal}))})}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter(t=>t!==(null==e?void 0:e.except)).forEach(e=>e.close()),this.pendingGateways=[]}}function xu(e,t){return Cu(e,[t])}function Cu(e,t){return!(!e||"object"!=typeof e)&&t.every(t=>t in e)}let ku=class e{constructor(){this.storage={}}static getInstance(){return e.instance||(e.instance=new e),e.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};function Su(){if("undefined"!=typeof window)return window}function Eu(){var e;const t=null===(e=Su())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function _u(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new Wc("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return ku.getInstance()}class Tu{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Tu.window;if(!Tu.isWindowContainsWallet(n,t))throw new Hc;this.connectionStorage=new vu(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return Dc(this,0,void 0,function*(){const t=new vu(e),n=yield t.getInjectedConnection();return new Tu(e,n.jsBridgeKey)})}static isWalletInjected(e){return Tu.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Tu.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=Su();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter(([e,t])=>function(e){try{return!(!xu(e,"tonconnect")||!xu(e.tonconnect,"walletInfo"))&&Cu(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t)).map(([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.tonconnect.walletInfo.platforms,features:t.tonconnect.walletInfo.features}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"==typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return Dc(this,0,void 0,function*(){try{gu("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();gu("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach(t=>t(e))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return Dc(this,0,void 0,function*(){return new Promise(e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(n){gu(n),this.sendRequest({method:"disconnect",params:[]},t)}})})}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter(t=>t!==e)}sendRequest(e,t){var n;return Dc(this,0,void 0,function*(){const r={};"function"==typeof t?r.onRequestSent=t:(r.onRequestSent=null==t?void 0:t.onRequestSent,r.signal=null==t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gu("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then(e=>gu("Wallet message received:",e)),null===(n=null==r?void 0:r.onRequestSent)||void 0===n||n.call(r),i})}_connect(e,t){return Dc(this,0,void 0,function*(){try{gu(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);gu("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(e=>e(n))}catch(n){gu("Injected Provider connect error:",n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach(t=>t(e))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(e=>{gu("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach(t=>t(e)),"disconnect"===e.event&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Tu.window=Su();class Pu{constructor(){this.localStorage=_u()}getItem(e){return Dc(this,0,void 0,function*(){return this.localStorage.getItem(e)})}removeItem(e){return Dc(this,0,void 0,function*(){this.localStorage.removeItem(e)})}setItem(e,t){return Dc(this,0,void 0,function*(){this.localStorage.setItem(e,t)})}}function Au(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Ru(e){return Au(e)&&e.embedded}function Ou(e){return"bridgeUrl"in e}const Mu=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://walletbot.me/tonconnect-bridge/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_logo_288_mini.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"okxMiniWallet",name:"OKX Mini Wallet",image:"https://static.okx.com/cdn/assets/imgs/2411/8BE1A4A434D8F58A.png",about_url:"https://www.okx.com/web3",universal_url:"https://t.me/OKX_WALLET_BOT?attach=wallet",bridge:[{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"binanceWeb3TonWallet",name:"Binance Web3 Wallet",image:"https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png",about_url:"https://www.binance.com/en/web3wallet",deepLink:"bnc://app.binance.com/cedefi/ton-connect",bridge:[{type:"js",key:"binancew3w"},{type:"sse",url:"https://wallet.binance.com/tonbridge/bridge"}],platforms:["ios","android","macos","windows","linux"],universal_url:"https://app.binance.com/cedefi/ton-connect"},{app_name:"fintopio-tg",name:"Fintopio",image:"https://fintopio.com/tonconnect-icon.png",about_url:"https://fintopio.com",universal_url:"https://t.me/fintopio?attach=wallet",bridge:[{type:"sse",url:"https://wallet-bridge.fintopio.com/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"hot",name:"HOT",image:"https://raw.githubusercontent.com/hot-dao/media/main/logo.png",about_url:"https://hot-labs.org/",universal_url:"https://t.me/herewalletbot?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.hot-labs.org"},{type:"js",key:"hotWallet"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"bybitTonWallet",name:"Bybit Wallet",image:"https://raw.githubusercontent.com/bybit-web3/bybit-web3.github.io/main/docs/images/bybit-logo.png",about_url:"https://www.bybit.com/web3",universal_url:"https://app.bybit.com/ton-connect",deepLink:"bybitapp://",bridge:[{type:"js",key:"bybitTonWallet"},{type:"sse",url:"https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge"}],platforms:["ios","android","chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.dewallet.pro/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"GateWallet",name:"GateWallet",image:"https://img.gatedataimg.com/prd-ordinal-imgs/036f07bb8730716e/gateio-0925.png",about_url:"https://www.gate.io/",bridge:[{type:"js",key:"gatetonwallet"},{type:"sse",url:"https://dapp.gateio.services/tonbridge_api/bridge/v1"}],platforms:["ios","android"],universal_url:"https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7"},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"BitgetWeb3",name:"BitgetWeb3",image:"https://img.bitgetimg.com/image/third/1731638059795.png",about_url:"​https://www.bitget.com",universal_url:"https://t.me/BitgetOfficialBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-connect-bridge.bgwapi.io/bridge"}],platforms:["ios","android","windows","macos","linux"]},{app_name:"tobi",name:"Tobi",image:"https://app.tobiwallet.app/icons/logo-288.png",about_url:"https://tobi.fun",universal_url:"https://t.me/TobiCopilotBot?attach=wallet",bridge:[{type:"sse",url:"https://ton-bridge.tobiwallet.app/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]}];class Lu{constructor(e){var t;this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource=null!==(t=null==e?void 0:e.walletsListSource)&&void 0!==t?t:"https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",this.cacheTTLMs=null==e?void 0:e.cacheTTLMs}getWallets(){return Dc(this,0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return Dc(this,0,void 0,function*(){const e=(yield this.getWallets()).filter(Ru);return 1===e.length?e[0]:null})}fetchWalletsList(){return Dc(this,0,void 0,function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Zc("Wrong wallets list format, wallets list must be an array.");const n=e.filter(e=>!this.isCorrectWalletConfigDTO(e));n.length&&(mu(`Wallet(s) ${n.map(e=>(null==e?void 0:e.name)||"unknown").join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter(e=>this.isCorrectWalletConfigDTO(e)))}catch(n){mu(n),e=Mu}let t=[];try{t=Tu.getCurrentlyInjectedWallets()}catch(n){mu(n)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)})}walletConfigDTOListToWalletConfigList(e){return e.map(e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms,features:e.features};return e.bridge.forEach(n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Tu.isWalletInjected(e),t.embedded=Tu.isInsideWalletBrowser(e)}}),t})}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map(e=>e.name)).values()].map(n=>{const r=e.find(e=>e.name===n),o=t.find(e=>e.name===n);return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))})}isCorrectWalletConfigDTO(e){if(!e||"object"!=typeof e)return!1;if(!("name"in e&&"image"in e&&"about_url"in e&&"platforms"in e&&"app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some(e=>!e||"object"!=typeof e||!("type"in e)))return!1;const n=t.find(e=>"sse"===e.type);if(n&&("object"!=typeof n||!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find(e=>"js"===e.type);return!!(!r||"object"==typeof r&&"key"in r&&r.key)}}function ju(e,t){const n=e.includes("SendTransaction"),r=Nu(e,"SendTransaction"),o={minMessages:t.requiredMessagesNumber,extraCurrencyRequired:t.requireExtraCurrencies};if(!n&&!r)throw new Vc("Wallet doesn't support SendTransaction feature.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(t.requireExtraCurrencies&&(!r||!r.extraCurrencySupported))throw new Vc("Wallet is not able to handle such SendTransaction request. Extra currencies support is required.",{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}});if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new Vc(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`,{cause:{requiredFeature:{featureName:"SendTransaction",value:o}}})}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Iu(e,t){if("object"!=typeof t)return!0;const{sendTransaction:n,signData:r}=t;if(n){const t=Nu(e,"SendTransaction");if(!t)return!1;if(!function(e,t){const n=void 0===t.minMessages||t.minMessages<=e.maxMessages,r=!t.extraCurrencyRequired||e.extraCurrencySupported;return!(!n||!r)}(t,n))return!1}if(r){const t=Nu(e,"SignData");if(!t)return!1;if(!function(e,t){return t.types.every(t=>e.types.includes(t))}(t,r))return!1}return!0}function Nu(e,t){return e.find(e=>e&&"object"==typeof e&&e.name===t)}function $u(e){return{type:"response-version",version:e}}function Du(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function Wu(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null==t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null==t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null==t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null==t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null==t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null==t?void 0:t.provider)&&void 0!==c?c:null},Du(e))}}function zu(e){return{type:"connection-started",custom_data:Du(e)}}function Uu(e,t){return Object.assign({type:"connection-completed",is_success:!0},Wu(e,t))}function Fu(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!=n?n:null,custom_data:Du(e)}}function Bu(e){return{type:"connection-restoring-started",custom_data:Du(e)}}function qu(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},Wu(e,t))}function Hu(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Du(e)}}function Vu(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null==e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map(e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}})}}function Ku(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},Wu(e,t)),Vu(t,n))}function Gu(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},Wu(e,t)),Vu(t,n))}function Qu(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!=o?o:null},Wu(e,t)),Vu(t,n))}function Yu(e,t,n){return Object.assign({type:"sign-data-request-initiated",data:n},Wu(e,t))}function Zu(e,t,n,r){return Object.assign({type:"sign-data-request-completed",is_success:!0,data:n,signed_data:r},Wu(e,t))}function Xu(e,t,n,r,o){return Object.assign({type:"sign-data-request-failed",is_success:!1,data:n,error_message:r,error_code:null!=o?o:null},Wu(e,t))}function Ju(e,t,n){return Object.assign({type:"disconnection",scope:n},Wu(e,t))}class ed{constructor(){this.window=Su()}dispatchEvent(e,t){var n;return Dc(this,0,void 0,function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)})}addEventListener(e,t,n){var r;return Dc(this,0,void 0,function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}})}}class td{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null==e?void 0:e.eventDispatcher)&&void 0!==t?t:new ed,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Du({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Dc(this,0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(e){}})}setRequestVersionHandler(){return Dc(this,0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>Dc(this,0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",$u(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return Dc(this,0,void 0,function*(){return new Promise((e,t)=>Dc(this,0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(n){t(n)}}))})}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(t){}}trackConnectionStarted(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionError(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringStarted(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringCompleted(...e){try{const t=qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackConnectionRestoringError(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDisconnection(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSentForSignature(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigned(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackTransactionSigningFailed(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSentForSignature(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigned(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}trackDataSigningFailed(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(t){}}}class nd{constructor(e){if(this.walletsList=new Lu,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||Eu(),storage:(null==e?void 0:e.storage)||new Pu},this.walletsRequiredFeatures=null==e?void 0:e.walletsRequiredFeatures,this.walletsList=new Lu({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),this.tracker=new td({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.2.0"}),!this.dappSettings.manifestUrl)throw new zc("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new vu(this.dappSettings.storage),(null==e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach(e=>e(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(t=>t!==e),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(e=>e!==t))}}connect(e,t){var n,r;const o={};if("object"==typeof t&&"tonProof"in t&&(o.request=t),"object"==typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null==t?void 0:t.request,o.openingDeadlineMS=null==t?void 0:t.openingDeadlineMS,o.signal=null==t?void 0:t.signal),this.connected)throw new Bc;const i=pu(null==o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new Wc("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null==o?void 0:o.request),{openingDeadlineMS:null==o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return Dc(this,0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const r=pu(null==e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield wu.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Tu.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(u){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null==a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null==a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return mu("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null==a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=hu(t=>Dc(this,0,void 0,function*(){yield null==a?void 0:a.restoreConnection({openingDeadlineMS:null==e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null==e?void 0:e.signal}),c=new Promise(e=>setTimeout(()=>e(),12e3));return Promise.race([l,c])})}sendTransaction(e,t){return Dc(this,0,void 0,function*(){const n={};"function"==typeof t?n.onRequestSent=t:(n.onRequestSent=null==t?void 0:t.onRequestSent,n.signal=null==t?void 0:t.signal);const r=pu(null==n?void 0:n.signal);if(r.signal.aborted)throw new Wc("Transaction sending was aborted");this.checkConnection();const o=e.messages.length,i=e.messages.some(e=>e.extraCurrency&&Object.keys(e.extraCurrency).length>0);ju(this.wallet.device.features,{requiredMessagesNumber:o,requireExtraCurrencies:i}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:a,messages:s}=e,l=$c(e,["validUntil","messages"]),c=e.from||this.account.address,u=e.network||this.account.chain,d=yield this.provider.sendRequest(iu.convertToRpcRequest(Object.assign(Object.assign({},l),{from:c,network:u,valid_until:a,messages:s.map(e=>{var{extraCurrency:t}=e,n=$c(e,["extraCurrency"]);return Object.assign(Object.assign({},n),{extra_currency:t})})})),{onRequestSent:n.onRequestSent,signal:r.signal});if(iu.isError(d))return this.tracker.trackTransactionSigningFailed(this.wallet,e,d.error.message,d.error.code),iu.parseAndThrowError(d);const f=iu.convertFromRpcResponse(d);return this.tracker.trackTransactionSigned(this.wallet,e,f),f})}signData(e,t){return Dc(this,0,void 0,function*(){const n=pu(null==t?void 0:t.signal);if(n.signal.aborted)throw new Wc("data sending was aborted");this.checkConnection(),function(e,t){const n=e.find(e=>e&&"object"==typeof e&&"SignData"===e.name);if(!n)throw new Vc("Wallet doesn't support SignData feature.",{cause:{requiredFeature:{featureName:"SignData",value:{types:t.requiredTypes}}}});const r=t.requiredTypes.filter(e=>!n.types.includes(e));if(r.length)throw new Vc(`Wallet doesn't support required SignData types: ${r.join(", ")}.`,{cause:{requiredFeature:{featureName:"SignData",value:{types:r}}}})}(this.wallet.device.features,{requiredTypes:[e.type]}),this.tracker.trackDataSentForSignature(this.wallet,e);const r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(su.convertToRpcRequest(Object.assign(Object.assign({},e),{from:r,network:o})),{onRequestSent:null==t?void 0:t.onRequestSent,signal:n.signal});if(su.isError(i))return this.tracker.trackDataSigningFailed(this.wallet,e,i.error.message,i.error.code),su.parseAndThrowError(i);const a=su.convertFromRpcResponse(i);return this.tracker.trackDataSigned(this.wallet,e,a),a})}disconnect(e){var t;return Dc(this,0,void 0,function*(){if(!this.connected)throw new qc;const n=pu(null==e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new Wc("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null==r||r.abort()})}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(t){mu("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Tu(this.dappSettings.storage,e.jsBridgeKey):new wu(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.tracker.trackConnectionError(e.payload.message,e.payload.code);const t=nu.parseError(e.payload);this.onWalletConnectError(t);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){var t;const n=e.items.find(e=>"ton_addr"===e.name),r=e.items.find(e=>"ton_proof"===e.name);if(!n)throw new Wc("ton_addr connection item was not found");if(!Iu(e.device.features,this.walletsRequiredFeatures))return null===(t=this.provider)||void 0===t||t.disconnect(),void this.onWalletConnectError(new Kc("Wallet does not support required features",{cause:{connectEvent:e}}));const o={device:e.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};if(r){let e;try{if("proof"in r)e={name:"ton_proof",proof:{timestamp:r.proof.timestamp,domain:{lengthBytes:r.proof.domain.lengthBytes,value:r.proof.domain.value},payload:r.proof.payload,signature:r.proof.signature}};else{if(!("error"in r))throw new Wc("Invalid data format");e={name:"ton_proof",error:{code:r.error.code,message:r.error.message}}}}catch(i){e={name:"ton_proof",error:{code:kc.UNKNOWN_ERROR,message:"Invalid data format"}}}o.connectItems={tonProof:e}}this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(e){if(this.statusChangeErrorSubscriptions.forEach(t=>t(e)),gu(e),e instanceof Fc||e instanceof Uc)throw mu(e),e}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new qc}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}nd.walletsList=new Lu,nd.isWalletInjected=e=>Tu.isWalletInjected(e),nd.isInsideWalletBrowser=e=>Tu.isInsideWalletBrowser(e);function rd(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new Xc(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new Xc(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new Xc(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new Xc(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:id(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),Lc.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const od={};for(let uS=0;uS<=255;uS++){let e=uS.toString(16);e.length<2&&(e="0"+e),od[e]=uS}function id(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new Jc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!od.hasOwnProperty(n))throw new Jc("Invalid hex character: "+n);r[o]=od[n]}return r}var ad,sd;const ld=r(function(){if(sd)return ad;sd=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(n){return!1}}function a(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach(function(t){a[t]=n(e[t],r)}),o(t).forEach(function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))}),a}function s(t,o,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(o);return s===Array.isArray(t)?s?i.arrayMerge(t,o,i):a(t,o,i):n(o,i)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},ad=s}());var cd,ud={exports:{}};var dd=(cd||(cd=1,function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(ud)),ud.exports);const fd=r(dd);var pd,hd,gd,md,yd,bd,vd,wd,xd=Object.defineProperty,Cd=Object.defineProperties,kd=Object.getOwnPropertyDescriptors,Sd=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable,Td=(e,t,n)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pd=(e,t)=>{for(var n in t||(t={}))Ed.call(t,n)&&Td(e,n,t[n]);if(Sd)for(var n of Sd(t))_d.call(t,n)&&Td(e,n,t[n]);return e},Ad=(e,t)=>Cd(e,kd(t)),Rd=(e,t,n)=>(Td(e,"symbol"!=typeof t?t+"":t,n),n),Od=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Md={};const Ld=Symbol("solid-proxy"),jd=Symbol("solid-track"),Id={equals:(e,t)=>e===t};let Nd=gf;const $d=1,Dd=2,Wd={owned:null,cleanups:null,context:null,owner:null},zd={};var Ud=null;let Fd=null,Bd=null,qd=null,Hd=null,Vd=0;function Kd(e,t){const n=Bd,r=Ud,o=0===e.length,i=o?Wd:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e(()=>tf(()=>vf(i)));Ud=i,Bd=null;try{return hf(a,!0)}finally{Bd=n,Ud=r}}function Gd(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Id,t):Id).equals||void 0};return[cf.bind(n),e=>("function"==typeof e&&(e=e(n.value)),uf(n,e))]}function Qd(e,t,n){df(ff(e,t,!0,$d))}function Yd(e,t,n){df(ff(e,t,!1,$d))}function Zd(e,t,n){Nd=mf;const r=ff(e,t,!1,$d);r.user=!0,Hd?Hd.push(r):df(r)}function Xd(e,t,n){n=n?Object.assign({},Id,n):Id;const r=ff(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,df(r),cf.bind(r)}function Jd(e,t,n){let r,o,i;1===arguments.length?(r=!0,o=e,i={}):(r=e,o=t,i={});let a=null,s=zd,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&Xd(r);const f=new Set,[p,h]=(i.storage||Gd)(i.initialValue),[g,m]=Gd(void 0),[y,b]=Gd(void 0,{equals:!1}),[v,w]=Gd(u?"ready":"unresolved");if(Md.context){let e;l=`${Md.context.id}${Md.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:Md.load&&(e=Md.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask(()=>i.onHydrated(r,{value:t})),s=zd,function(e,t){hf(()=>{void 0===t&&h(()=>e),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()},!1)}(t,n)),t}function C(){const e=p(),t=g();if(void 0!==t&&!a)throw t;return Bd&&Bd.user,e}function k(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,tf(p));const n=s!==zd?s:tf(()=>o(t,{value:p(),refetching:e}));return"object"==typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask(()=>c=!1),hf(()=>{w(u?"refreshing":"pending"),b()},!1),n.then(e=>x(n,e,void 0,t),e=>x(n,void 0,wf(e),t))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>v()},error:{get:()=>g()},loading:{get(){const e=v();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return p()}}}),d?Qd(()=>k(!1)):k(!1),[C,{refetch:k,mutate:h}]}function ef(e){return hf(e,!1)}function tf(e){if(null===Bd)return e();const t=Bd;Bd=null;try{return e()}finally{Bd=t}}function nf(e){Zd(()=>tf(e))}function rf(e){return null===Ud||(null===Ud.cleanups?Ud.cleanups=[e]:Ud.cleanups.push(e)),e}function of(){return Bd}function af(e,t){const n=Symbol("context");return{id:n,Provider:Sf(n),defaultValue:e}}function sf(e){let t;return void 0!==(t=Cf(Ud,e.id))?t:e.defaultValue}function lf(e){const t=Xd(e),n=Xd(()=>kf(t()));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function cf(){const e=Fd;if(this.sources&&(this.state||e))if(this.state===$d||e)df(this);else{const e=qd;qd=null,hf(()=>yf(this),!1),qd=e}if(Bd){const e=this.observers?this.observers.length:0;Bd.sources?(Bd.sources.push(this),Bd.sourceSlots.push(e)):(Bd.sources=[this],Bd.sourceSlots=[e]),this.observers?(this.observers.push(Bd),this.observerSlots.push(Bd.sources.length-1)):(this.observers=[Bd],this.observerSlots=[Bd.sources.length-1])}return this.value}function uf(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&hf(()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Fd&&Fd.running;r&&Fd.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?qd.push(n):Hd.push(n),n.observers&&bf(n)),r||(n.state=$d)}if(qd.length>1e6)throw qd=[],new Error},!1)),t}function df(e){if(!e.fn)return;vf(e);const t=Ud,n=Bd,r=Vd;Bd=Ud=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=$d,e.owned&&e.owned.forEach(vf),e.owned=null),xf(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?uf(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Bd=n,Ud=t}function ff(e,t,n,r=$d,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ud,context:null,pure:n};return null===Ud||Ud!==Wd&&(Ud.owned?Ud.owned.push(i):Ud.owned=[i]),i}function pf(e){const t=Fd;if(0===e.state||t)return;if(e.state===Dd||t)return yf(e);if(e.suspense&&tf(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Vd);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===$d||t)df(e);else if(e.state===Dd||t){const t=qd;qd=null,hf(()=>yf(e,n[0]),!1),qd=t}}function hf(e,t){if(qd)return e();let n=!1;t||(qd=[]),Hd?n=!0:Hd=[],Vd++;try{const t=e();return function(e){qd&&(gf(qd),qd=null);if(e)return;const t=Hd;Hd=null,t.length&&hf(()=>Nd(t),!1)}(n),t}catch(r){n||(Hd=null),qd=null,xf(r)}}function gf(e){for(let t=0;t<e.length;t++)pf(e[t])}function mf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:pf(r)}var r;for(Md.context&&(Md.context=r),t=0;t<n;t++)pf(e[t])}function yf(e,t){const n=Fd;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===$d||n?o!==t&&pf(o):(o.state===Dd||n)&&yf(o,t))}}function bf(e){const t=Fd;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Dd,r.pure?qd.push(r):Hd.push(r),r.observers&&bf(r))}}function vf(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)vf(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function wf(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function xf(e){throw e=wf(e)}function Cf(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:Cf(e.owner,t):void 0}function kf(e){if("function"==typeof e&&!e.length)return kf(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=kf(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Sf(e,t){return function(t){let n;return Yd(()=>n=tf(()=>(Ud.context={[e]:t.value},lf(()=>t.children))),void 0),n}}const Ef=Symbol("fallback");function _f(e){for(let t=0;t<e.length;t++)e[t]()}function Tf(e,t){return tf(()=>e(t||{}))}function Pf(){return!0}const Af={get:(e,t,n)=>t===Ld?n:e.get(t),has:(e,t)=>t===Ld||e.has(t),set:Pf,deleteProperty:Pf,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Pf,deleteProperty:Pf}),ownKeys:e=>e.keys()};function Rf(e){return(e="function"==typeof e?e():e)?e:{}}function Of(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Ld in n,e[r]="function"==typeof n?(t=!0,Xd(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=Rf(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Rf(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Rf(e[n])));return[...new Set(t)]}},Af);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function Mf(e,...t){const n=new Set(t.flat());if(Ld in e){const r=t.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},Af));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter(e=>!n.has(e))},Af)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(e=>!n.has(e))),t.map(t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n})}function Lf(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Xd(function(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return rf(()=>_f(i)),()=>{let l,c,u=e()||[];return u[jd],tf(()=>{let e,t,f,p,h,g,m,y,b,v=u.length;if(0===v)0!==a&&(_f(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[Ef],o[0]=Kd(e=>(i[0]=e,n.fallback())),a=1);else if(0===a){for(o=new Array(v),c=0;c<v;c++)r[c]=u[c],o[c]=Kd(d);a=v}else{for(f=new Array(v),p=new Array(v),s&&(h=new Array(v)),g=0,m=Math.min(a,v);g<m&&r[g]===u[g];g++);for(m=a-1,y=v-1;m>=g&&y>=g&&r[m]===u[y];m--,y--)f[y]=o[m],p[y]=i[m],s&&(h[y]=s[m]);for(e=new Map,t=new Array(y+1),c=y;c>=g;c--)b=u[c],l=e.get(b),t[c]=void 0===l?-1:l,e.set(b,c);for(l=g;l<=m;l++)b=r[l],c=e.get(b),void 0!==c&&-1!==c?(f[c]=o[l],p[c]=i[l],s&&(h[c]=s[l]),c=t[c],e.set(b,c)):i[l]();for(c=g;c<v;c++)c in f?(o[c]=f[c],i[c]=p[c],s&&(s[c]=h[c],s[c](c))):o[c]=Kd(d);o=o.slice(0,a=v),r=u.slice(0)}return o});function d(e){if(i[c]=e,s){const[e,n]=Gd(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}(()=>e.each,e.children,t||void 0))}function jf(e){let t=!1;const n=e.keyed,r=Xd(()=>e.when,void 0,{equals:(e,n)=>t?e===n:!e==!n});return Xd(()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?tf(()=>r(o)):r}return e.fallback},void 0,void 0)}function If(e){let t=!1,n=!1;const r=lf(()=>e.children),o=Xd(()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]},void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return Xd(()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"==typeof s&&s.length>0;return t=n||l,l?tf(()=>s(i)):s},void 0,void 0)}function Nf(e){return e}const $f=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Df=new Set(["innerHTML","textContent","innerText","children"]),Wf=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),zf=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Uf=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ff=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Bf={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const qf="_$DX_DELEGATE";function Hf(e,t,n){if("undefined"==typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function Vf(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Kf(e,t){null==t?e.removeAttribute("class"):e.className=t}function Gf(e,t={},n,r){const o={};return Yd(()=>o.children=tp(e,t.children,o.children)),Yd(()=>t.ref&&t.ref(e)),Yd(()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Jf(e,a,null,o[a],n,i)}for(const a in t){if("children"===a)continue;const r=t[a];o[a]=Jf(e,a,r,o[a],n,i)}}(e,t,n,0,o,!0)),o}function Qf(e,t,n){return tf(()=>e(t,n))}function Yf(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return tp(e,t,r,n);Yd(r=>tp(e,t(),r,n),r)}function Zf(e){let t,n;return Md.context&&(t=Md.registry.get(n=function(){const e=Md.context;return`${e.id}${e.count++}`}()))?(Md.completed&&Md.completed.add(t),Md.registry.delete(n),t):e.cloneNode(!0)}function Xf(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Jf(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?Vf(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,i;for(i in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Xf(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Xf(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Uf.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e,t=window.document){const n=t[qf]||(t[qf]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ep))}}([o]))}else if((l=Df.has(t))||!o&&(zf[t]||(s=$f.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Kf(e,n):!a||s||l?e[zf[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase()))]=n;else{const r=o&&t.indexOf(":")>-1&&Bf[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):Vf(e,Wf[t]||t,n)}var c;return n}function ep(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),Md.registry&&!Md.done&&(Md.done=!0,document.querySelectorAll("[id^=pl-]").forEach(t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function tp(e,t,n,r,o){for(Md.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Md.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=op(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Md.context)return n;n=op(e,n,r)}else{if("function"===i)return Yd(()=>{let o=t();for(;"function"==typeof o;)o=o();n=tp(e,o,n,r)}),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(np(i,t,n,o))return Yd(()=>n=tp(e,i,n,r,!0)),()=>n;if(Md.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=op(e,n,r),a)return n}else s?0===n.length?rp(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&op(e),rp(e,i));n=i}else if(t instanceof Node){if(Md.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=op(e,n,r,t);op(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function np(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=np(e,a,s)||o;else if("function"==typeof a)if(r){for(;"function"==typeof a;)a=a();o=np(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function rp(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function op(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}function ip(e,t=!1){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function ap(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Md.context){const[t,n]=Gd(!1);return queueMicrotask(()=>n(!0)),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Gd(!1),n=()=>t(!0);Kd(t=>Yf(r,()=>e()?t():o()(),null)),rf(()=>{Md.context?queueMicrotask(n):n()})}else{const i=ip(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Yf(a,o()),r.appendChild(i),e.ref&&e.ref(i),rf(()=>r.removeChild(i))}return n}function sp(e){const[t,n]=Mf(e,["component"]),r=Xd(()=>t.component);return Xd(()=>{const e=r();switch(typeof e){case"function":return tf(()=>e(n));case"string":const t=Ff.has(e),r=Md.context?Zf():ip(e,t);return Gf(r,n,t),r}})}var lp=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(lp||{});let cp={data:""},up=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dp=/\/\*[^]*?\*\/| +/g,fp=/\n+/g,pp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?pp(a,i):i+"{"+pp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=pp(a,t?t.replace(/([^,])+/g,e=>i.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=pp.p?pp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},hp={},gp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+gp(e[n]);return t}return e};function mp(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=gp(e),a=hp[i]||(hp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!hp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=up.exec(e.replace(dp,""));)t[4]?r.shift():t[3]?(n=t[3].replace(fp," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(fp," ").trim();return r[0]})(e);hp[a]=pp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&hp.g?hp.g:null;return n&&(hp.g=hp[a]),l=hp[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d})(n.unshift?n.raw?((e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":pp(e,""):!1===e?"":e}return e+r+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,(r=t.target,"object"==typeof window?((r?r.querySelector("#_goober"):window._goober)||Object.assign((r||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:r||cp),t.g,t.o,t.k);var r}mp.bind({g:1});let yp=mp.bind({k:1});const bp=af();function vp(e){return Tf(bp.Provider,{value:e.theme,get children(){return e.children}})}function wp(){return sf(bp)}function xp(e){let t=this||{};return(...n)=>{const r=r=>{const o=Of(r,{theme:sf(bp)}),i=Of(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,mp.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[a,s]=Mf(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Gf(u,l)):u=sp(Of({component:c},l)),u};return r.class=e=>tf(()=>mp.apply({target:t.target,p:e,g:t.g},n)),r}}const Cp=new Proxy(xp,{get:(e,t)=>e(t)});function kp(){const e=xp.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Sp="tc-root",Ep="tc-disable-scroll",_p="tc-using-mouse",Tp=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(_p)),document.body.addEventListener("keydown",e=>{"Tab"===e.key&&document.body.classList.remove(_p)});return Tf(kp`
2
2
  ${Sp} * {
3
3
  margin: 0;
4
4
  padding: 0;
@@ -37,14 +37,14 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
37
37
  body.${_p} ${Sp} *:focus {
38
38
  outline: none;
39
39
  }
40
- `,{})};function Ap(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Rp(e){return e.toString()+"px"}const Pp=class{constructor(){Pd(this,"storage",{})}static getInstance(){return Pp.instance||(Pp.instance=new Pp),Pp.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Op=Pp;Pd(Op,"instance");class Lp extends Wc{constructor(...e){super(...e),Object.setPrototypeOf(this,Lp.prototype)}}function Mp(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function jp(e,t="_self"){Mp("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Ip(e){jp(e,"_blank")}function Np(e,t){const n=setTimeout(()=>{Bp("safari")||Fp("android")&&Bp("firefox")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),jp(e,"_self")}function $p(e){return Od(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Dp(e){"complete"!==document.readyState?window.addEventListener("load",()=>$p(()=>Dp(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function Wp(){if("undefined"!=typeof window)return window}function zp(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new Lp("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Op.getInstance()}function Up(){var e,t,n;const r=(new Xl).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function Fp(...e){return e.includes(Up().os)}function Bp(...e){return e.includes(Up().browser)}function qp(e,t){return t+new URL(e).search}class Hp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=zp()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Vp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=zp()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Kp{constructor(){Pd(this,"localStorage"),Pd(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=zp()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[Gp,Qp]=Gd({status:"closed",closeReason:null}),Yp=Xd(()=>"opened"===Gp().status),[Zp,Xp]=Gd({status:"closed",closeReason:null}),Jp=Xd(()=>"opened"===Zp().status),eh=Xd(()=>{const e=Zp();return"opened"===e.status?e.walletInfo:null});let th="undefined"!=typeof window?new Kp:void 0;const[nh,rh]=Gd((null==th?void 0:th.getLastSelectedWalletInfo())||null),oh=e=>{th||(th=new Kp),e?th.setLastSelectedWalletInfo(e):th.removeLastSelectedWalletInfo(),rh(e)},[ih,ah]=Gd(null),sh={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Скопировать",linkCopied:"Ссылка скопирована",copied:"Скопировано",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."},dataSigned:{header:"Данные подписаны"},signDataCanceled:{header:"Подпись данных отменена"}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите TON кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете другое приложение",openWalletOnTelegram:"Открыть Wallet в Telegram",chooseOtherApplication:"Выберите другое приложение",openLink:"Открыть",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите TON кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",getWallet:"Скачать {{ name }}",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"},restoreModal:{title:"Восстановление",step1:{title:"Найдите вашу текущую фразу восстановления",text:"Откройте настройки кошелька и найдите фразу восстановления"},step2:{title:"Скопируйте вашу фразу восстановления",text:"Запишите её или сохраните в безопасном месте"},step3:{title:"Восстановите в поддерживаемом кошельке",text:"Введите фразу восстановления для доступа к вашему кошельку"}},allWallets:{walletsBelowNotSupported:"Кошельки ниже не поддерживают все функции подключённого сервиса. Вы можете использовать свою фразу восстановления в одном из поддерживаемых выше кошельков.",walletNotSupportService:"{{ name }} не поддерживает подключённый сервис"},featureNotSupported:{wallet:{title:"{{ name }} не поддерживает запрошенное действие",description:"Установите поддерживаемый кошелёк из списка ниже, восстановите его с помощью фразы восстановления, затем подключитесь и попробуйте снова.",info:"Узнать, как восстановить кошелёк"},version:{description:"Текущая версия {{ name }} или тип контракта кошелька не поддерживает необходимые функции. Обновите кошелёк, чтобы продолжить.",updateButton:"Обновить {{ name }}",aboutW5:"Про W5"},disconnect:{title:"Подтвердите отключение",description:"Вы будете отключены от текущего кошелька и перенаправлены на подключение {{ name }}.",button:"Отключиться"}}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},signData:{header:"Подпишите данные в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}},lh={en:ch({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."},dataSigned:{header:"Data signed"},signDataCanceled:{header:"Sign data canceled"}},walletItem:{walletOn:"Wallet in",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your TON wallet",openWalletOnTelegramOrSelect:"Use Wallet in Telegram or choose other application",openWalletOnTelegram:"Connect Wallet in Telegram",chooseOtherApplication:"Choose other application",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your TON wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",continueIn:"Continue in {{ name }}…",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",getWallet:"Get {{ name }}",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Connect Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"},restoreModal:{title:"Restore",step1:{title:"Find your current recovery phrase",text:"Open your wallet settings and locate the recovery phrase"},step2:{title:"Copy your recovery phrase",text:"Write it down or copy it to a safe place"},step3:{title:"Restore in a supported wallet",text:"Enter the recovery phrase to access your wallet"}},allWallets:{walletsBelowNotSupported:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above.",walletNotSupportService:"{{ name }} doesn’t support connected service"},featureNotSupported:{wallet:{title:"{{ name }} doesn’t support the requested action",description:"Install a supported wallet from the list below, restore it with your recovery phrase, then connect it and try again.",info:"Learn how to restore your wallet"},version:{description:"Your current version of {{ name }} or wallet contract type doesn't support the required features. Please update it to continue.",updateButton:"Update {{ name }}",aboutW5:"About W5"},disconnect:{title:"Confirm Disconnect",description:"You will be disconnected from your current wallet and redirected to connect {{ name }}.",button:"Disconnect"}}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},signData:{header:"Sign the data in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}}),ru:ch(sh)};function ch(e){const t=n=>{Object.entries(n).forEach(([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach(e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]}),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}})};return t(e),e}const uh=af(),dh=Symbol("store-raw"),fh=Symbol("store-node"),ph=Symbol("store-name");function hh(e,t){let n=e[Md];if(!n&&(Object.defineProperty(e,Md,{value:n=new Proxy(e,xh)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function gh(e){let t;return null!=e&&"object"==typeof e&&(e[Md]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function mh(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[dh])return n;if(!gh(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=mh(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=n.length;s<l;s++)i=n[s],a[i].get||(o=e[i],(r=mh(o,t))!==o&&(e[i]=r))}return e}function yh(e){let t=e[fh];return t||Object.defineProperty(e,fh,{value:t={}}),t}function bh(e,t,n){return e[t]||(e[t]=wh(n))}function vh(e){if(of()){const t=yh(e);(t._||(t._=wh()))()}}function wh(e){const[t,n]=Gd(e,{equals:!1,internal:!0});return t.$=n,t}const xh={get(e,t,n){if(t===dh)return e;if(t===Md)return n;if(t===jd)return vh(e),n;const r=yh(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===fh||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!of()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=bh(r,t,i)())}return gh(i)?hh(i):i},has(e,t){return t===dh||t===Md||t===jd||t===fh||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return vh(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Md&&t!==fh&&t!==ph?(delete n.value,delete n.writable,n.get=()=>e[Md][t],n):n}};function Ch(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let a,s=yh(e);(a=bh(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i&&(a=bh(s,"length",i))&&a.$(e.length),(a=s._)&&a.$()}function kh(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Ch(e,o,t[o])}}function Sh(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Sh(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Sh(e,[o].concat(t),n);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=r;for(let r=o;r<=i;r+=a)Sh(e,[r].concat(t),n);return}if(t.length>1)return void Sh(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=mh(i),void 0===r||gh(o)&&gh(i)&&!Array.isArray(i)?kh(o,i):Ch(e,r,i))}function Eh(...[e,t]){const n=mh(e||{}),r=Array.isArray(n);return[hh(n),function(...e){ef(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=mh(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Ch(e,n,r)}Ch(e,"length",r)}else kh(e,t)}(n,e[0]):Sh(n,e)})}]}const _h={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Th(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ah(e){var t,n;return!1!==Th(e)&&(void 0===(t=e.constructor)||!1!==Th(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Rh(e,t){if(!e)return t;return ld(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Ah})}const[Ph,Oh]=Eh({theme:lp.LIGHT,colors:_h,borderRadius:"m"}),Lh={[lp.LIGHT]:_h,[lp.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Mh={[lp.LIGHT]:void 0,[lp.DARK]:void 0};function jh(e,t){t&&(Mh[lp.DARK]=Rh(t[lp.DARK],Mh[lp.DARK]),Mh[lp.LIGHT]=Rh(t[lp.LIGHT],Mh[lp.LIGHT])),Oh({theme:e,colors:Rh(Mh[e],Lh[e])})}const Ih=Cp.div`
40
+ `,{})};function Pp(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Ap(e){return e.toString()+"px"}const Rp=class{constructor(){Rd(this,"storage",{})}static getInstance(){return Rp.instance||(Rp.instance=new Rp),Rp.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Op=Rp;Rd(Op,"instance");class Mp extends Wc{constructor(...e){super(...e),Object.setPrototypeOf(this,Mp.prototype)}}function Lp(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch(t){}}function jp(e,t="_self"){Lp("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Ip(e){jp(e,"_blank")}function Np(e,t){const n=setTimeout(()=>{Bp("safari")||Fp("android")&&Bp("firefox")||t()},200);window.addEventListener("blur",()=>clearTimeout(n),{once:!0}),jp(e,"_self")}function $p(e){return Od(this,null,function*(){yield new Promise(e=>requestAnimationFrame(e)),e()})}function Dp(e){"complete"!==document.readyState?window.addEventListener("load",()=>$p(()=>Dp(e)),{once:!0}):e.forEach(e=>{(new window.Image).src=e})}function Wp(){if("undefined"!=typeof window)return window}function zp(){if(function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new Mp("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Op.getInstance()}function Up(){var e,t,n;const r=(new Xl).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function Fp(...e){return e.includes(Up().os)}function Bp(...e){return e.includes(Up().browser)}function qp(e,t){return t+new URL(e).search}class Hp{constructor(){Rd(this,"localStorage"),Rd(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=zp()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Vp{constructor(){Rd(this,"localStorage"),Rd(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=zp()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Kp{constructor(){Rd(this,"localStorage"),Rd(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=zp()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[Gp,Qp]=Gd({status:"closed",closeReason:null}),Yp=Xd(()=>"opened"===Gp().status),[Zp,Xp]=Gd({status:"closed",closeReason:null}),Jp=Xd(()=>"opened"===Zp().status),eh=Xd(()=>{const e=Zp();return"opened"===e.status?e.walletInfo:null});let th="undefined"!=typeof window?new Kp:void 0;const[nh,rh]=Gd((null==th?void 0:th.getLastSelectedWalletInfo())||null),oh=e=>{th||(th=new Kp),e?th.setLastSelectedWalletInfo(e):th.removeLastSelectedWalletInfo(),rh(e)},[ih,ah]=Gd(null),sh={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Скопировать",linkCopied:"Ссылка скопирована",copied:"Скопировано",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."},dataSigned:{header:"Данные подписаны"},signDataCanceled:{header:"Подпись данных отменена"}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите TON кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете другое приложение",openWalletOnTelegram:"Открыть Wallet в Telegram",chooseOtherApplication:"Выберите другое приложение",openLink:"Открыть",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите TON кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",continueIn:"Продолжите в {{ name }}…",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",missingFeatures:"Обновите {{ name }}, ваша версия не поддерживает необходимые функции для этого dApp",notSupportedWallet:"{{ name }} не поддерживает запрошенное действие. Пожалуйста, подключите другой кошелёк, который поддерживает это",getWallet:"Скачать {{ name }}",updateWallet:"Обновить {{ name }}",chooseAnotherWallet:"Выбрать другой кошелёк",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"},restoreModal:{title:"Восстановление",step1:{title:"Найдите вашу текущую фразу восстановления",text:"Откройте настройки кошелька и найдите фразу восстановления"},step2:{title:"Скопируйте вашу фразу восстановления",text:"Запишите её или сохраните в безопасном месте"},step3:{title:"Восстановите в поддерживаемом кошельке",text:"Введите фразу восстановления для доступа к вашему кошельку"}},allWallets:{walletsBelowNotSupported:"Кошельки ниже не поддерживают все функции подключённого сервиса. Вы можете использовать свою фразу восстановления в одном из поддерживаемых выше кошельков.",walletNotSupportService:"{{ name }} не поддерживает подключённый сервис"},featureNotSupported:{wallet:{title:"{{ name }} не поддерживает запрошенное действие",description:"Установите поддерживаемый кошелёк из списка ниже, восстановите его с помощью фразы восстановления, затем подключитесь и попробуйте снова.",info:"Узнать, как восстановить кошелёк"},version:{description:"Текущая версия {{ name }} или тип контракта кошелька не поддерживает необходимые функции. Обновите кошелёк, чтобы продолжить.",updateButton:"Обновить {{ name }}",aboutW5:"Про W5"},disconnect:{title:"Подтвердите отключение",description:"Вы будете отключены от текущего кошелька и перенаправлены на подключение {{ name }}.",button:"Отключиться"}}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},signData:{header:"Подпишите данные в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}},lh={en:ch({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."},dataSigned:{header:"Data signed"},signDataCanceled:{header:"Sign data canceled"}},walletItem:{walletOn:"Wallet in",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your TON wallet",openWalletOnTelegramOrSelect:"Use Wallet in Telegram or choose other application",openWalletOnTelegram:"Connect Wallet in Telegram",chooseOtherApplication:"Choose other application",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your TON wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",continueIn:"Continue in {{ name }}…",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",missingFeatures:"Please update {{ name }}, your version does not support required features for this dApp",notSupportedWallet:"{{ name }} doesn’t support the requested action. Please connect another wallet that supports it",getWallet:"Get {{ name }}",updateWallet:"Update {{ name }}",chooseAnotherWallet:"Choose Another Wallet",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Connect Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"},restoreModal:{title:"Restore",step1:{title:"Find your current recovery phrase",text:"Open your wallet settings and locate the recovery phrase"},step2:{title:"Copy your recovery phrase",text:"Write it down or copy it to a safe place"},step3:{title:"Restore in a supported wallet",text:"Enter the recovery phrase to access your wallet"}},allWallets:{walletsBelowNotSupported:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above.",walletNotSupportService:"{{ name }} doesn’t support connected service"},featureNotSupported:{wallet:{title:"{{ name }} doesn’t support the requested action",description:"Install a supported wallet from the list below, restore it with your recovery phrase, then connect it and try again.",info:"Learn how to restore your wallet"},version:{description:"Your current version of {{ name }} or wallet contract type doesn't support the required features. Please update it to continue.",updateButton:"Update {{ name }}",aboutW5:"About W5"},disconnect:{title:"Confirm Disconnect",description:"You will be disconnected from your current wallet and redirected to connect {{ name }}.",button:"Disconnect"}}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},signData:{header:"Sign the data in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled",dataSigned:"$notifications.dataSigned",signDataCanceled:"$notifications.signDataCanceled"}}),ru:ch(sh)};function ch(e){const t=n=>{Object.entries(n).forEach(([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach(e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]}),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}})};return t(e),e}const uh=af(),dh=Symbol("store-raw"),fh=Symbol("store-node"),ph=Symbol("store-name");function hh(e,t){let n=e[Ld];if(!n&&(Object.defineProperty(e,Ld,{value:n=new Proxy(e,xh)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function gh(e){let t;return null!=e&&"object"==typeof e&&(e[Ld]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function mh(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[dh])return n;if(!gh(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=mh(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=n.length;s<l;s++)i=n[s],a[i].get||(o=e[i],(r=mh(o,t))!==o&&(e[i]=r))}return e}function yh(e){let t=e[fh];return t||Object.defineProperty(e,fh,{value:t={}}),t}function bh(e,t,n){return e[t]||(e[t]=wh(n))}function vh(e){if(of()){const t=yh(e);(t._||(t._=wh()))()}}function wh(e){const[t,n]=Gd(e,{equals:!1,internal:!0});return t.$=n,t}const xh={get(e,t,n){if(t===dh)return e;if(t===Ld)return n;if(t===jd)return vh(e),n;const r=yh(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===fh||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!of()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=bh(r,t,i)())}return gh(i)?hh(i):i},has(e,t){return t===dh||t===Ld||t===jd||t===fh||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return vh(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Ld&&t!==fh&&t!==ph?(delete n.value,delete n.writable,n.get=()=>e[Ld][t],n):n}};function Ch(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let a,s=yh(e);(a=bh(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i&&(a=bh(s,"length",i))&&a.$(e.length),(a=s._)&&a.$()}function kh(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Ch(e,o,t[o])}}function Sh(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,a=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Sh(e,[r[o]].concat(t),n);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Sh(e,[o].concat(t),n);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=r;for(let r=o;r<=i;r+=a)Sh(e,[r].concat(t),n);return}if(t.length>1)return void Sh(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=mh(i),void 0===r||gh(o)&&gh(i)&&!Array.isArray(i)?kh(o,i):Ch(e,r,i))}function Eh(...[e,t]){const n=mh(e||{}),r=Array.isArray(n);return[hh(n),function(...e){ef(()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=mh(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Ch(e,n,r)}Ch(e,"length",r)}else kh(e,t)}(n,e[0]):Sh(n,e)})}]}const _h={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function Th(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ph(e){var t,n;return!1!==Th(e)&&(void 0===(t=e.constructor)||!1!==Th(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Ah(e,t){if(!e)return t;return ld(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Ph})}const[Rh,Oh]=Eh({theme:lp.LIGHT,colors:_h,borderRadius:"m"}),Mh={[lp.LIGHT]:_h,[lp.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Lh={[lp.LIGHT]:void 0,[lp.DARK]:void 0};function jh(e,t){t&&(Lh[lp.DARK]=Ah(t[lp.DARK],Lh[lp.DARK]),Lh[lp.LIGHT]=Ah(t[lp.LIGHT],Lh[lp.LIGHT])),Oh({theme:e,colors:Ah(Lh[e],Mh[e])})}const Ih=Cp.div`
41
41
  background-color: ${e=>e.theme.colors.background.secondary};
42
- `,Nh=e=>{let t;const[n,r]=Gd(null);return Zd(()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",()=>r(t)),()=>t.removeEventListener("load",()=>r(t)))}),[Tf(jf,{get when(){return n()},get children(){return n()}}),Tf(jf,{get when(){return!n()},get children(){return Tf(Ih,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let $h={};try{$h=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Kh(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=Kh(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=Kh(r[0]),i=null==r[1]?null:Kh(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(cS){}let Dh="unknown";if((null==$h?void 0:$h.tgWebAppPlatform)&&(Dh=null!=(pd=$h.tgWebAppPlatform)?pd:"unknown"),"unknown"===Dh){const e=Wp();Dh=null!=(md=null==(gd=null==(hd=null==e?void 0:e.Telegram)?void 0:hd.WebApp)?void 0:gd.platform)?md:"unknown"}let Wh="6.0";if((null==$h?void 0:$h.tgWebAppVersion)&&(Wh=$h.tgWebAppVersion),!Wh){const e=Wp();Wh=null!=(vd=null==(bd=null==(yd=null==e?void 0:e.Telegram)?void 0:yd.WebApp)?void 0:bd.version)?vd:"6.0"}function zh(...e){return e.includes(Dh)}function Uh(){var e;return"unknown"!==Dh||!!(null==(e=Wp())?void 0:e.TelegramWebviewProxy)}function Fh(){var e;const t=!!(null==(e=Wp())?void 0:e.TelegramWebview);return(Uh()||t)&&"unknown"===Dh}function Bh(){Vh("web_app_expand",{})}function qh(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Lp(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Lp(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Hh()||function(e,t){"string"!=typeof e&&(e="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(Wh,"6.1")>=0?Vh("web_app_open_tg_link",{path_full:r}):Ip("https://t.me"+r)}function Hh(){try{const e=Wp();return!!e&&(null!=e.parent&&e!==e.parent)}catch(cS){return!1}}function Vh(e,t){try{const n=Wp();if(!n)throw new Lp("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Mp("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Mp("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!Hh())throw new Lp("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Mp("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(cS){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${cS}`)}}function Kh(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(cS){return e}}const Gh=440,Qh=1020;function Yh(e){const t=Wp();if(!t)return"desktop"===e;if(zh("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Qh;case"tablet":return n>Gh;default:return n<=Gh||Fp("ios","android","ipad")}}function Zh(e){switch(e){case"mobile":return`@media (max-width: ${Gh}px)`;case"tablet":return`@media (max-width: ${Qh}px) (min-width: ${Gh}px)`;default:return`@media (min-width: ${Qh}px)`}}const Xh="@media (hover: none)",Jh="@media not all and (hover: none)",eg={m:"100vh",s:"8px",none:"0"},tg={s:.02,m:.04},ng=Cp.button`
42
+ `,Nh=e=>{let t;const[n,r]=Gd(null);return Zd(()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",()=>r(t)),()=>t.removeEventListener("load",()=>r(t)))}),[Tf(jf,{get when(){return n()},get children(){return n()}}),Tf(jf,{get when(){return!n()},get children(){return Tf(Ih,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]};let $h={};try{$h=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Kh(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=Kh(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=Kh(r[0]),i=null==r[1]?null:Kh(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(cS){}let Dh="unknown";if((null==$h?void 0:$h.tgWebAppPlatform)&&(Dh=null!=(pd=$h.tgWebAppPlatform)?pd:"unknown"),"unknown"===Dh){const e=Wp();Dh=null!=(md=null==(gd=null==(hd=null==e?void 0:e.Telegram)?void 0:hd.WebApp)?void 0:gd.platform)?md:"unknown"}let Wh="6.0";if((null==$h?void 0:$h.tgWebAppVersion)&&(Wh=$h.tgWebAppVersion),!Wh){const e=Wp();Wh=null!=(vd=null==(bd=null==(yd=null==e?void 0:e.Telegram)?void 0:yd.WebApp)?void 0:bd.version)?vd:"6.0"}function zh(...e){return e.includes(Dh)}function Uh(){var e;return"unknown"!==Dh||!!(null==(e=Wp())?void 0:e.TelegramWebviewProxy)}function Fh(){var e;const t=!!(null==(e=Wp())?void 0:e.TelegramWebview);return(Uh()||t)&&"unknown"===Dh}function Bh(){Vh("web_app_expand",{})}function qh(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Mp(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Mp(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Hh()||function(e,t){"string"!=typeof e&&(e="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(Wh,"6.1")>=0?Vh("web_app_open_tg_link",{path_full:r}):Ip("https://t.me"+r)}function Hh(){try{const e=Wp();return!!e&&(null!=e.parent&&e!==e.parent)}catch(cS){return!1}}function Vh(e,t){try{const n=Wp();if(!n)throw new Mp("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Lp("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Lp("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!Hh())throw new Mp("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Lp("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(cS){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${cS}`)}}function Kh(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(cS){return e}}const Gh=440,Qh=1020;function Yh(e){const t=Wp();if(!t)return"desktop"===e;if(zh("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Qh;case"tablet":return n>Gh;default:return n<=Gh||Fp("ios","android","ipad")}}function Zh(e){switch(e){case"mobile":return`@media (max-width: ${Gh}px)`;case"tablet":return`@media (max-width: ${Qh}px) (min-width: ${Gh}px)`;default:return`@media (min-width: ${Qh}px)`}}const Xh="@media (hover: none)",Jh="@media not all and (hover: none)",eg={m:"100vh",s:"8px",none:"0"},tg={s:.02,m:.04},ng=Cp.button`
43
43
  display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
44
44
  gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
45
45
  align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
46
46
  justify-content: ${e=>e.leftIcon||e.rightIcon?"space-between":"unset"};
47
- background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:Ap(e.theme.colors.accent,.12)};
47
+ background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:Pp(e.theme.colors.accent,.12)};
48
48
  color: ${e=>"secondary"===e.appearance?e.theme.colors.text.primary:e.theme.colors.accent};
49
49
 
50
50
  padding: ${e=>"flat"===e.appearance?"0":"9px 16px"};
@@ -75,7 +75,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
75
75
  transform: ${e=>e.disabled?"unset":`scale(${1-2*tg[e.scale]})`};
76
76
  }
77
77
  }
78
- `;function rg(e){const t=tf(()=>Object.keys(e).filter(e=>e.startsWith("data-"))),[n]=Lf(e,t);return n}const og=e=>{const t=rg(e);return Tf(ng,Of({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[Xd(()=>e.leftIcon),Xd(()=>e.children),Xd(()=>e.rightIcon)]}}))};function ig(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const ag=e=>{let t,n=!0;const[r,o]=Gd(),[i,a]=Gd(),s=lf(()=>e.children),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:p}=e,h=Xd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}});function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...p),ef(()=>{r()!==t&&o(t),i()===t&&a(void 0)}),u&&u(t),"inout"===e.mode&&m(t,s))};const d=h().enterClass.split(" "),f=h().enterActiveClass.split(" "),p=h().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),ig(()=>{t.classList.remove(...d),t.classList.add(...p),c&&c(t,()=>n()),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))})}s&&!e.mode?a(t):o(t)}function m(t,n){const i=h().exitClass.split(" "),a=h().exitActiveClass.split(" "),s=h().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),p&&p(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),ig(()=>{n.classList.remove(...i),n.classList.add(...s)}),f&&f(n,()=>l()),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return Qd(r=>{for(t=s();"function"==typeof t;)t=t();return tf(()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t))}),[r,i]};function sg(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const lg=e=>{const t=lf(()=>e.children),n=Xd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=Gd();let d=[],f=!0;return Qd(()=>{const e=t(),c=[...e],p=new Set(e),h=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),y=n().enterToClass.split(" "),b=n().exitClass.split(" "),v=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!h.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...y),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),ig(()=>{n.classList.remove(...g),n.classList.add(...y),o&&o(n,()=>e()),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))})}}for(let t=0;t<d.length;t++){const e=d[t];if(!p.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...v),e.classList.remove(...w),l&&l(e),d=d.filter(t=>t!==e),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...b),e.classList.add(...v),ig(()=>{e.classList.remove(...b),e.classList.add(...w)}),s&&s(e,()=>n()),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)}),Zd(e=>{const t=c();return t.forEach(t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=sg(t)):e.set(t,n={pos:sg(t),new:!f}),n.new&&t.addEventListener("transitionend",()=>{n.new=!1,t.parentNode&&(n.newPos=sg(t))},{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=sg(t)}),f?(f=!1,e):(t.forEach(t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}}),document.body.offsetHeight,t.forEach(t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}}),e)},new Map),c};const cg="androidBackHandler",ug={[cg]:!0},dg=Hf('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),fg={left:0,top:90,right:180,bottom:270},pg=e=>{const t=wp();return Tf(Cp("svg")`
78
+ `;function rg(e){const t=tf(()=>Object.keys(e).filter(e=>e.startsWith("data-"))),[n]=Mf(e,t);return n}const og=e=>{const t=rg(e);return Tf(ng,Of({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[Xd(()=>e.leftIcon),Xd(()=>e.children),Xd(()=>e.rightIcon)]}}))};function ig(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const ag=e=>{let t,n=!0;const[r,o]=Gd(),[i,a]=Gd(),s=lf(()=>e.children),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:p}=e,h=Xd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}});function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...p),ef(()=>{r()!==t&&o(t),i()===t&&a(void 0)}),u&&u(t),"inout"===e.mode&&m(t,s))};const d=h().enterClass.split(" "),f=h().enterActiveClass.split(" "),p=h().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),ig(()=>{t.classList.remove(...d),t.classList.add(...p),c&&c(t,()=>n()),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))})}s&&!e.mode?a(t):o(t)}function m(t,n){const i=h().exitClass.split(" "),a=h().exitActiveClass.split(" "),s=h().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),p&&p(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),ig(()=>{n.classList.remove(...i),n.classList.add(...s)}),f&&f(n,()=>l()),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return Qd(r=>{for(t=s();"function"==typeof t;)t=t();return tf(()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t))}),[r,i]};function sg(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const lg=e=>{const t=lf(()=>e.children),n=Xd(()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=Gd();let d=[],f=!0;return Qd(()=>{const e=t(),c=[...e],p=new Set(e),h=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),y=n().enterToClass.split(" "),b=n().exitClass.split(" "),v=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!h.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...y),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),ig(()=>{n.classList.remove(...g),n.classList.add(...y),o&&o(n,()=>e()),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))})}}for(let t=0;t<d.length;t++){const e=d[t];if(!p.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...v),e.classList.remove(...w),l&&l(e),d=d.filter(t=>t!==e),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...b),e.classList.add(...v),ig(()=>{e.classList.remove(...b),e.classList.add(...w)}),s&&s(e,()=>n()),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)}),Zd(e=>{const t=c();return t.forEach(t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=sg(t)):e.set(t,n={pos:sg(t),new:!f}),n.new&&t.addEventListener("transitionend",()=>{n.new=!1,t.parentNode&&(n.newPos=sg(t))},{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=sg(t)}),f?(f=!1,e):(t.forEach(t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}}),document.body.offsetHeight,t.forEach(t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}}),e)},new Map),c};const cg="androidBackHandler",ug={[cg]:!0},dg=Hf('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),fg={left:0,top:90,right:180,bottom:270},pg=e=>{const t=wp();return Tf(Cp("svg")`
79
79
  transform: rotate(${e=>fg[e.svgDirection]}deg);
80
80
  transition: transform 0.1s ease-in-out;
81
81
  `,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=dg.cloneNode(!0);return Yd(()=>Vf(n,"fill",e.fill||t.colors.icon.secondary)),n}})},hg=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z"></path></svg>'),gg=e=>{const t=wp();return(()=>{const n=hg.cloneNode(!0),r=n.firstChild;return Yd(()=>Vf(r,"fill",e.fill||t.colors.icon.secondary)),n})()},mg=Cp.button`
@@ -158,8 +158,8 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
158
158
  border-radius: 0 0 ${e=>bg[e.theme.borderRadius]}
159
159
  ${e=>bg[e.theme.borderRadius]};
160
160
  `,Sg=Cp(yg)`
161
- background-color: ${e=>Ap(e.theme.colors.icon.secondary,.12)};
162
- `;class Eg{constructor(){Pd(this,"currentTime",0)}}const _g=class{constructor(){Pd(this,"currentTime",0),Pd(this,"playbackRate",1),Pd(this,"startTime",null),Pd(this,"timeline",new Eg),Pd(this,"finished",Promise.resolve(this)),Pd(this,"effect",null),Pd(this,"id",""),Pd(this,"pending",!1),Pd(this,"playState","finished"),Pd(this,"replaceState","active"),Pd(this,"ready",Promise.resolve(this)),Pd(this,"oncancel",null),Pd(this,"onfinish",null),Pd(this,"onremove",null)}static create(){return _g._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(cS){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),_g._instance=new _g),_g._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Tg=_g;function Ag(e,t,n){return"animate"in e?e.animate(t,n):Tg.create()}Pd(Tg,"_instance",null);const Rg=Hf("<div></div>"),Pg=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),rf(()=>document.body.removeEventListener("click",n))},Og=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),rf(()=>document.body.removeEventListener("keydown",n))},Lg=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Up().os))return;window.history.pushState(ug,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),rf(()=>{window.removeEventListener("popstate",o),$p(()=>{var e;!0===(null==(e=window.history.state)?void 0:e[cg])&&window.history.back()})})},Mg=e=>{const t=wp(),n=rg(e);return Zd(()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Rp(-document.documentElement.scrollTop),document.body.classList.add(Ep)):(document.body.classList.remove(Ep),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")}),Tf(ag,{onBeforeEnter:e=>{const t=Yh("mobile")?200:100;Ag(e,[{opacity:0},{opacity:1}],{duration:t}),Yh("mobile")&&Ag(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Yh("mobile")?200:100,r=Ag(e,[{opacity:1},{opacity:0}],{duration:n});if(Yh("mobile")){const o=Ag(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return Tf(jf,{get when(){return e.opened},get children(){return Tf(vg,Of({"data-tc-modal":"true"},n,{get children(){const n=Rg.cloneNode(!0);return Qf(Lg,n,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Qf(Og,n,()=>()=>e.onClose()),Qf(Pg,n,()=>()=>e.onClose()),Yf(n,Tf(xg,{get class(){return e.class},get children(){return[Tf(Cg,{icon:"close",onClick:()=>e.onClose()}),Xd(()=>e.children)]}}),null),Yf(n,Tf(jf,{get when(){return e.onClickQuestion&&e.showFooter},get children(){return Tf(kg,{get children(){return[Tf(Wm,{}),Tf(Sg,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Yd(()=>Kf(n,fd(wg,mp`
161
+ background-color: ${e=>Pp(e.theme.colors.icon.secondary,.12)};
162
+ `;class Eg{constructor(){Rd(this,"currentTime",0)}}const _g=class{constructor(){Rd(this,"currentTime",0),Rd(this,"playbackRate",1),Rd(this,"startTime",null),Rd(this,"timeline",new Eg),Rd(this,"finished",Promise.resolve(this)),Rd(this,"effect",null),Rd(this,"id",""),Rd(this,"pending",!1),Rd(this,"playState","finished"),Rd(this,"replaceState","active"),Rd(this,"ready",Promise.resolve(this)),Rd(this,"oncancel",null),Rd(this,"onfinish",null),Rd(this,"onremove",null)}static create(){return _g._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(cS){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),_g._instance=new _g),_g._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Tg=_g;function Pg(e,t,n){return"animate"in e?e.animate(t,n):Tg.create()}Rd(Tg,"_instance",null);const Ag=Hf("<div></div>"),Rg=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),rf(()=>document.body.removeEventListener("click",n))},Og=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),rf(()=>document.body.removeEventListener("keydown",n))},Mg=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Up().os))return;window.history.pushState(ug,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),rf(()=>{window.removeEventListener("popstate",o),$p(()=>{var e;!0===(null==(e=window.history.state)?void 0:e[cg])&&window.history.back()})})},Lg=e=>{const t=wp(),n=rg(e);return Zd(()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Ap(-document.documentElement.scrollTop),document.body.classList.add(Ep)):(document.body.classList.remove(Ep),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")}),Tf(ag,{onBeforeEnter:e=>{const t=Yh("mobile")?200:100;Pg(e,[{opacity:0},{opacity:1}],{duration:t}),Yh("mobile")&&Pg(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Yh("mobile")?200:100,r=Pg(e,[{opacity:1},{opacity:0}],{duration:n});if(Yh("mobile")){const o=Pg(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return Tf(jf,{get when(){return e.opened},get children(){return Tf(vg,Of({"data-tc-modal":"true"},n,{get children(){const n=Ag.cloneNode(!0);return Qf(Mg,n,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Qf(Og,n,()=>()=>e.onClose()),Qf(Rg,n,()=>()=>e.onClose()),Yf(n,Tf(xg,{get class(){return e.class},get children(){return[Tf(Cg,{icon:"close",onClick:()=>e.onClose()}),Xd(()=>e.children)]}}),null),Yf(n,Tf(jf,{get when(){return e.onClickQuestion&&e.showFooter},get children(){return Tf(kg,{get children(){return[Tf(Wm,{}),Tf(Sg,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Yd(()=>Kf(n,fd(wg,mp`
163
163
  border-radius: ${bg[t.borderRadius]};
164
164
  background-color: ${t.colors.background.tint};
165
165
 
@@ -229,8 +229,8 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
229
229
  position: relative;
230
230
  background-color: ${e=>e.theme.colors.background.qr};
231
231
  border-radius: ${e=>zg[e.theme.borderRadius]};
232
- padding: ${Rp(24)} 0;
233
- height: ${Rp(304)};
232
+ padding: ${Ap(24)} 0;
233
+ height: ${Ap(304)};
234
234
  width: 100%;
235
235
 
236
236
  overflow: hidden;
@@ -280,16 +280,16 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
280
280
  }
281
281
  `,Hg=Cp.div`
282
282
  position: absolute;
283
- width: ${Rp(60)};
284
- height: ${Rp(60)};
283
+ width: ${Ap(60)};
284
+ height: ${Ap(60)};
285
285
  background: ${e=>e.theme.colors.background.qr};
286
286
 
287
287
  display: flex;
288
288
  align-items: center;
289
289
  justify-content: center;
290
290
  `,Vg=Cp(Nh)`
291
- width: ${e=>Rp(e.size)};
292
- height: ${e=>Rp(e.size)};
291
+ width: ${e=>Ap(e.size)};
292
+ height: ${e=>Ap(e.size)};
293
293
  border-radius: ${e=>Ug[e.theme.borderRadius]};
294
294
  background-color: ${e=>e.theme.colors.background.qr};
295
295
  `,Kg=Cp.div`
@@ -307,7 +307,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
307
307
 
308
308
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
309
309
  background-color: ${e=>e.theme.colors.background.segment};
310
- `;var Gg={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,a=null,s=[],l={},c=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),p(),f(),g(e,t),n>=7&&h(e),null==a&&(a=y(n,r,s)),m(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},p=function(){for(var e=v.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},h=function(e){for(var t=v.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1){a=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=a}},g=function(e,t){for(var n=r<<3|t,a=v.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(a>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[i-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(a>>s&1);s<8?o[8][i-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[i-8][8]=!e},m=function(e,t){for(var n=-1,r=i-1,a=7,s=0,l=v.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>a&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},y=function(e,t,n){for(var r=C.getRSBlocks(e,t),o=k(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=v.getErrorCorrectPolynomial(c),f=x(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var p=u+f.getLength()-a[s].length;a[s][u]=p>=0?f.getAt(p):0}}var h=0;for(u=0;u<t.length;u+=1)h+=t[u].totalCount;var g=new Array(h),m=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(g[m]=i[s][u],m+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(g[m]=a[s][u],m+=1);return g}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=S(e);break;case"Alphanumeric":n=E(e);break;case"Byte":n=_(e);break;case"Kanji":n=T(e);break;default:throw"mode:"+t}s.push(n),a=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=C.getRSBlocks(e,r),o=k(),i=0;i<s.length;i++){var a=s[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=v.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+b([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+b(r.id)+'">'+b(r.text)+"</title>":"",d+=n.text?'<description id="'+b(n.id)+'">'+b(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<l.getModuleCount();a+=1)for(s=a*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return P(n,n,function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return l.isDark(a,i)?0:1}return 1})},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=b(n),o+='"'),o+="/>"};var b=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="█",s<=n&&n<c&&s<=t&&t<c&&l.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<c&&s<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="█",f+=e<1&&t+1>=c?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),p="",r=0;r<a;r+=1)i=1,s<=r&&r<c&&s<=n&&n<c&&l.isDark(o,Math.floor((r-s)/e))&&(i=0),p+=i?u:d;for(o=0;o<e;o+=1)f+=p+"\n"}return f.substring(0,f.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=R(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o,i,a=1,s=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,f=1,p=2,h=3,g=4,m=5,y=6,b=7,v=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case f:return function(e,t){return e%2==0};case p:return function(e,t){return t%3==0};case h:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case m:return function(e,t){return e*t%2+e*t%3==0};case y:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=x([1],0),n=0;n<e;n+=1)t=t.multiply(x([1,w.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case a:return 10;case s:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case a:return 12;case s:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case a:return 14;case s:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=Math.abs(100*u/t/t-50)/5*10},o),w=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function x(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=w.gexp(w.glog(r.getAt(n))+w.glog(e.getAt(o)));return x(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=w.glog(r.getAt(0))-w.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=w.gexp(w.glog(e.getAt(o))+t);return x(n,0).mod(e)}};return r}var C=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,a=[],s=0;s<i;s+=1)for(var l=o[3*s+0],c=o[3*s+1],d=o[3*s+2],f=0;f<l;f+=1)a.push(t(c,d));return a},n}(),k=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},S=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},E=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},_=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},T=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return i},A=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},R=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},P=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=A(),f=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});f.write(t,r);var p=0,h=String.fromCharCode(o[p]);for(p+=1;p<o.length;){var g=String.fromCharCode(o[p]);p+=1,i.contains(h+g)?h+=g:(f.write(i.indexOf(h),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(h+g)),h=g)}return f.write(i.indexOf(h),r),f.write(n,r),f.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=A();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(Gg);const Qg=Gg.exports;function Yg(e){return Od(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Lp("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(cS){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)})}const Zg=Hf("<div></div>"),Xg=e=>{let t,n,r;const[o,i]=Gd(!1),[a,s]=Gd(48);Zd(()=>{const o=Qg(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=Rp(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Rp(e),r.style.width=Rp(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return Tf(Bg,{get class(){return e.class},onClick:()=>{i(!0),Yg(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[Tf(qg,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=Zg.cloneNode(!0);return"function"==typeof t?Qf(t,e):t=e,e})(),Tf(jf,{get when(){return e.imageUrl},get children(){return Tf(Hg,{ref(e){"function"==typeof r?r(e):r=e},get children(){return Tf(Vg,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Tf(ag,{onBeforeEnter:e=>{Ag(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Ag(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Tf(jf,{get when(){return o()&&!e.disableCopy},get children(){return Tf(Kg,{get children(){return[Tf(Rm,{size:"xs"}),Tf(om,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Tf(jf,{get when(){return!e.disableCopy},get children(){return Tf(Fg,{get children(){return Tf(cy,{})}})}})]}})};var Jg=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},em=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Gd(t),[o,i]=Eh(e);return[(e,t,r)=>{const i=Jg(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>Jg(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>Jg(o,e)}]},tm=af({}),nm=()=>sf(tm);const rm=Cp.div`
310
+ `;var Gg={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,a=null,s=[],l={},c=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),p(),f(),g(e,t),n>=7&&h(e),null==a&&(a=y(n,r,s)),m(a,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},p=function(){for(var e=v.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},h=function(e){for(var t=v.getBCHTypeNumber(n),r=0;r<18;r+=1){var a=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=a}for(r=0;r<18;r+=1){a=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=a}},g=function(e,t){for(var n=r<<3|t,a=v.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(a>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[i-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(a>>s&1);s<8?o[8][i-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[i-8][8]=!e},m=function(e,t){for(var n=-1,r=i-1,a=7,s=0,l=v.getMaskFunction(t),c=i-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>a&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(a-=1)&&(s+=1,a=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},y=function(e,t,n){for(var r=C.getRSBlocks(e,t),o=k(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(236,8),o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=v.getErrorCorrectPolynomial(c),f=x(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var p=u+f.getLength()-a[s].length;a[s][u]=p>=0?f.getAt(p):0}}var h=0;for(u=0;u<t.length;u+=1)h+=t[u].totalCount;var g=new Array(h),m=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(g[m]=i[s][u],m+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(g[m]=a[s][u],m+=1);return g}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=S(e);break;case"Alphanumeric":n=E(e);break;case"Byte":n=_(e);break;case"Kanji":n=T(e);break;default:throw"mode:"+t}s.push(n),a=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=C.getRSBlocks(e,r),o=k(),i=0;i<s.length;i++){var a=s[i];o.put(a.getMode(),4),o.put(a.getLength(),v.getLengthInBits(a.getMode(),e)),a.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=v.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+b([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+b(r.id)+'">'+b(r.text)+"</title>":"",d+=n.text?'<description id="'+b(n.id)+'">'+b(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<l.getModuleCount();a+=1)for(s=a*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return R(n,n,function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return l.isDark(a,i)?0:1}return 1})},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=b(n),o+='"'),o+="/>"};var b=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,a=1*l.getModuleCount()+2*e,s=e,c=a-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="█",s<=n&&n<c&&s<=t&&t<c&&l.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<c&&s<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="█",f+=e<1&&t+1>=c?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,a=l.getModuleCount()*e+2*t,s=t,c=a-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),f="",p="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),p="",r=0;r<a;r+=1)i=1,s<=r&&r<c&&s<=n&&n<c&&l.isDark(o,Math.floor((r-s)/e))&&(i=0),p+=i?u:d;for(o=0;o<e;o+=1)f+=p+"\n"}return f.substring(0,f.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=A(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t,n,r,o,i,a=1,s=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,f=1,p=2,h=3,g=4,m=5,y=6,b=7,v=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case f:return function(e,t){return e%2==0};case p:return function(e,t){return t%3==0};case h:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case m:return function(e,t){return e*t%2+e*t%3==0};case y:return function(e,t){return(e*t%2+e*t%3)%2==0};case b:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=x([1],0),n=0;n<e;n+=1)t=t.multiply(x([1,w.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case a:return 10;case s:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case a:return 12;case s:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case a:return 14;case s:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=Math.abs(100*u/t/t-50)/5*10},o),w=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function x(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=w.gexp(w.glog(r.getAt(n))+w.glog(e.getAt(o)));return x(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=w.glog(r.getAt(0))-w.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=w.gexp(w.glog(e.getAt(o))+t);return x(n,0).mod(e)}};return r}var C=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,a=[],s=0;s<i;s+=1)for(var l=o[3*s+0],c=o[3*s+1],d=o[3*s+2],f=0;f<l;f+=1)a.push(t(c,d));return a},n}(),k=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},S=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},E=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},_=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},T=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return i},P=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},A=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},R=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=P(),f=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});f.write(t,r);var p=0,h=String.fromCharCode(o[p]);for(p+=1;p<o.length;){var g=String.fromCharCode(o[p]);p+=1,i.contains(h+g)?h+=g:(f.write(i.indexOf(h),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(h+g)),h=g)}return f.write(i.indexOf(h),r),f.write(n,r),f.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=P();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(Gg);const Qg=Gg.exports;function Yg(e){return Od(this,null,function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Mp("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(cS){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)})}const Zg=Hf("<div></div>"),Xg=e=>{let t,n,r;const[o,i]=Gd(!1),[a,s]=Gd(48);Zd(()=>{const o=Qg(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=Ap(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Ap(e),r.style.width=Ap(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`});let l=null;return Tf(Bg,{get class(){return e.class},onClick:()=>{i(!0),Yg(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout(()=>i(!1),1500)},get children(){return[Tf(qg,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=Zg.cloneNode(!0);return"function"==typeof t?Qf(t,e):t=e,e})(),Tf(jf,{get when(){return e.imageUrl},get children(){return Tf(Hg,{ref(e){"function"==typeof r?r(e):r=e},get children(){return Tf(Vg,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Tf(ag,{onBeforeEnter:e=>{Pg(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Pg(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Tf(jf,{get when(){return o()&&!e.disableCopy},get children(){return Tf(Kg,{get children(){return[Tf(Am,{size:"xs"}),Tf(om,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Tf(jf,{get when(){return!e.disableCopy},get children(){return Tf(Fg,{get children(){return Tf(cy,{})}})}})]}})};var Jg=(e,t,n)=>{const r=t.trim().split(".").reduce((e,t)=>e?e[t]:void 0,e);return void 0!==r?r:n},em=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Gd(t),[o,i]=Eh(e);return[(e,t,r)=>{const i=Jg(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,(e,n)=>Jg(t,n,"")))(i,t||{}):i},{add(e,t){i(e,e=>Object.assign(e||{},t))},locale:e=>e?r(e):n(),dict:e=>Jg(o,e)}]},tm=af({}),nm=()=>sf(tm);const rm=Cp.div`
311
311
  font-style: normal;
312
312
  font-weight: ${e=>e.fontWeight};
313
313
  font-size: ${e=>e.fontSize};
@@ -462,7 +462,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
462
462
  margin-bottom: 0;
463
463
 
464
464
  cursor: default;
465
- `,km=e=>{const[t]=nm();return Tf(Cm,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return Xd(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Sm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),Em=e=>{const t=wp();return(()=>{const n=Sm.cloneNode(!0),r=n.firstChild;return Yd(()=>Vf(r,"fill",e.fill||t.colors.icon.primary)),n})()},_m=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Tm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),Am=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Rm=e=>{const t=wp(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Xd((()=>{const o=Xd(()=>"xs"===n());return()=>o()?(()=>{const n=_m.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Vf(n,"class",a._v$=s),l!==a._v$2&&Vf(o,"fill",a._v$2=l),c!==a._v$3&&Vf(i,"stroke",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Xd(()=>"s"===n());return()=>o()?(()=>{const n=Tm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Vf(n,"class",a._v$4=s),l!==a._v$5&&Vf(o,"fill",a._v$5=l),c!==a._v$6&&Vf(i,"fill",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Am.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Vf(n,"class",a._v$7=s),l!==a._v$8&&Vf(o,"fill",a._v$8=l),c!==a._v$9&&Vf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Pm=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Om=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Lm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),Mm=e=>{const t=wp(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return Xd((()=>{const o=Xd(()=>"m"===n());return()=>o()?(()=>{const n=Pm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Vf(n,"class",a._v$=s),l!==a._v$2&&Vf(o,"fill",a._v$2=l),c!==a._v$3&&Vf(i,"fill",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Xd(()=>"s"===n());return()=>o()?(()=>{const n=Om.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Vf(n,"class",a._v$4=s),l!==a._v$5&&Vf(o,"fill",a._v$5=l),c!==a._v$6&&Vf(i,"stroke",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Lm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Vf(n,"class",a._v$7=s),l!==a._v$8&&Vf(o,"fill",a._v$8=l),c!==a._v$9&&Vf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},jm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),Im=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),Nm=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),$m=e=>{const t=wp(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=mp`
465
+ `,km=e=>{const[t]=nm();return Tf(Cm,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return Xd(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Sm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),Em=e=>{const t=wp();return(()=>{const n=Sm.cloneNode(!0),r=n.firstChild;return Yd(()=>Vf(r,"fill",e.fill||t.colors.icon.primary)),n})()},_m=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Tm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),Pm=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Am=e=>{const t=wp(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Xd((()=>{const o=Xd(()=>"xs"===n());return()=>o()?(()=>{const n=_m.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Vf(n,"class",a._v$=s),l!==a._v$2&&Vf(o,"fill",a._v$2=l),c!==a._v$3&&Vf(i,"stroke",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Xd(()=>"s"===n());return()=>o()?(()=>{const n=Tm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Vf(n,"class",a._v$4=s),l!==a._v$5&&Vf(o,"fill",a._v$5=l),c!==a._v$6&&Vf(i,"fill",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Pm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Vf(n,"class",a._v$7=s),l!==a._v$8&&Vf(o,"fill",a._v$8=l),c!==a._v$9&&Vf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Rm=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Om=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Mm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),Lm=e=>{const t=wp(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return Xd((()=>{const o=Xd(()=>"m"===n());return()=>o()?(()=>{const n=Rm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Vf(n,"class",a._v$=s),l!==a._v$2&&Vf(o,"fill",a._v$2=l),c!==a._v$3&&Vf(i,"fill",a._v$3=c),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Xd(()=>"s"===n());return()=>o()?(()=>{const n=Om.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Vf(n,"class",a._v$4=s),l!==a._v$5&&Vf(o,"fill",a._v$5=l),c!==a._v$6&&Vf(i,"stroke",a._v$6=c),a},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Mm.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Yd(a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Vf(n,"class",a._v$7=s),l!==a._v$8&&Vf(o,"fill",a._v$8=l),c!==a._v$9&&Vf(i,"fill",a._v$9=c),a},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},jm=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),Im=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),Nm=Hf('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),$m=e=>{const t=wp(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=mp`
466
466
  animation: ${yp`
467
467
  0% {
468
468
  transform: rotate(0deg);
@@ -485,7 +485,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
485
485
  width: 20px;
486
486
  height: 20px;
487
487
  border-radius: ${e=>py[e.theme.borderRadius]};
488
- `,my=e=>Tf(ym,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return Tf(hy,{get children(){return Tf(Mf,{each:[0,1,2,3],children:t=>Tf(gy,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),yy="telegram-wallet",by="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",vy="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",wy=e=>{const[t]=nm();return Xd((()=>{const n=Xd(()=>e.wallet.appName===yy);return()=>n()?Tf(ym,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet in")},secondLine:"Telegram",get badgeUrl(){return vy},onClick:()=>e.onClick(),get class(){return e.class}}):Tf(ym,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==yy)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):Ru(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick(),get class(){return e.class}})})())},xy=Cp.div`
488
+ `,my=e=>Tf(ym,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return Tf(hy,{get children(){return Tf(Lf,{each:[0,1,2,3],children:t=>Tf(gy,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),yy="telegram-wallet",by="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",vy="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",wy=e=>{const[t]=nm();return Xd((()=>{const n=Xd(()=>e.wallet.appName===yy);return()=>n()?Tf(ym,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet in")},secondLine:"Telegram",get badgeUrl(){return vy},onClick:()=>e.onClick(),get class(){return e.class}}):Tf(ym,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==yy)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):Au(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick(),get class(){return e.class}})})())},xy=Cp.div`
489
489
  width: 100%;
490
490
  overflow-y: auto;
491
491
  max-height: ${e=>e.maxHeight};
@@ -514,10 +514,10 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
514
514
  width: 100%;
515
515
  margin: 0;
516
516
  }
517
- `,[ky,Sy]=Gd((null==(wd=Wp())?void 0:wd.innerHeight)||0);Wp()&&window.addEventListener("resize",()=>Sy(window.innerHeight));const[Ey,_y]=Gd(Yh("mobile")),Ty=()=>_y(Yh("mobile"));Wp()&&(window.addEventListener("resize",()=>Ty()),window.addEventListener("load",()=>Ty(),{once:!0}));const Ay=e=>{const[t,n]=Gd(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:ky()-(Ey()?150:200)+"px";return[Tf(Cy,{get isShown(){return t()}}),Tf(xy,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Ry=Cp.a`
517
+ `,[ky,Sy]=Gd((null==(wd=Wp())?void 0:wd.innerHeight)||0);Wp()&&window.addEventListener("resize",()=>Sy(window.innerHeight));const[Ey,_y]=Gd(Yh("mobile")),Ty=()=>_y(Yh("mobile"));Wp()&&(window.addEventListener("resize",()=>Ty()),window.addEventListener("load",()=>Ty(),{once:!0}));const Py=e=>{const[t,n]=Gd(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:ky()-(Ey()?150:200)+"px";return[Tf(Cy,{get isShown(){return t()}}),Tf(xy,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Ay=Cp.a`
518
518
  display: block;
519
519
  text-decoration: unset;
520
- `,Py=e=>Tf(Ry,Of({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},()=>e.blank?{rel:"noreferrer noopener"}:{},{get children(){return e.children}})),Oy=af(),Ly=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),My=e=>{const t=wp();return(()=>{const n=Ly.cloneNode(!0),r=n.firstChild;return Yd(o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&Vf(n,"class",o._v$=i),a!==o._v$2&&Vf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},jy=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),Iy=e=>{const t=wp(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=jy.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return Yd(e=>{const o=n(),i=n();return o!==e._v$&&Vf(t,"fill",e._v$=o),i!==e._v$2&&Vf(r,"fill",e._v$2=i),e},{_v$:void 0,_v$2:void 0}),e})()},Ny={m:"8px",s:"4px",none:"0"},$y={m:"16px",s:"8px",none:"0"},Dy=Cp.div`
520
+ `,Ry=e=>Tf(Ay,Of({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},()=>e.blank?{rel:"noreferrer noopener"}:{},{get children(){return e.children}})),Oy=af(),My=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),Ly=e=>{const t=wp();return(()=>{const n=My.cloneNode(!0),r=n.firstChild;return Yd(o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&Vf(n,"class",o._v$=i),a!==o._v$2&&Vf(r,"fill",o._v$2=a),o},{_v$:void 0,_v$2:void 0}),n})()},jy=Hf('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),Iy=e=>{const t=wp(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=jy.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return Yd(e=>{const o=n(),i=n();return o!==e._v$&&Vf(t,"fill",e._v$=o),i!==e._v$2&&Vf(r,"fill",e._v$2=i),e},{_v$:void 0,_v$2:void 0}),e})()},Ny={m:"8px",s:"4px",none:"0"},$y={m:"16px",s:"8px",none:"0"},Dy=Cp.div`
521
521
  width: 256px;
522
522
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
523
523
  border-radius: ${e=>$y[e.theme.borderRadius]};
@@ -570,19 +570,19 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
570
570
  color: ${e=>e.theme.colors.text.secondary};
571
571
  `,Ky=e=>{const t=rg(e);return Tf(qy,Of({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[Tf(Hy,{get children(){return[Tf(km,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),Tf(jf,{get when(){return e.text},get children(){return Tf(Vy,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Xd(()=>e.icon)]}}))},Gy=Cp($m)`
572
572
  align-self: center;
573
- `,Qy=e=>{const t=sf(Oy),[n]=nm();return Tf(Ky,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return Tf(Gy,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Yy=Cp(Mm)`
573
+ `,Qy=e=>{const t=sf(Oy),[n]=nm();return Tf(Ky,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return Tf(Gy,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Yy=Cp(Lm)`
574
574
  margin-top: 2px;
575
- `,Zy=e=>Tf(Ky,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return Tf(Yy,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),Xy=Cp(Rm)`
575
+ `,Zy=e=>Tf(Ky,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return Tf(Yy,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),Xy=Cp(Am)`
576
576
  margin-top: 2px;
577
577
  `,Jy=e=>Tf(Ky,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return Tf(Xy,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),eb=mp`
578
578
  transform: translateY(-8px);
579
579
  margin-bottom: 12px;
580
- `,tb={timeout:4500},[nb,rb]=Gd(null);function ob(e){const{timeout:t}=Ad(Ad({},tb),e),[n,r]=Gd([]),[o,i]=Gd([]);return Zd(function(e,t){const n=Array.isArray(e);let r;return o=>{let i;if(n){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();const a=tf(()=>t(i,r,o));return r=i,a}}(ih,e=>{var n,o;if(!e||!e.showNotification)return void r(e=>e.filter(e=>"confirm-transaction"!==e.action));if(nb()===e)return;const a="confirm-transaction"===(null==(n=nb())?void 0:n.name)&&"confirm-transaction"===e.name,s="confirm-sign-data"===(null==(o=nb())?void 0:o.name)&&"confirm-sign-data"===e.name;if(a||s)return;rb(e),r(e=>e.filter(e=>"confirm-transaction"!==e.action&&"confirm-sign-data"!==e.action));const l={action:e.name};r(e=>[...e,l]);const c=setTimeout(()=>{r(e=>e.filter(e=>e!==l)),i(e=>e.filter(e=>e!==c))},t);i(e=>[...e,c])})),rf(()=>{o().forEach(e=>clearTimeout(e))}),n}const ib=Cp(Mm)`
580
+ `,tb={timeout:4500},[nb,rb]=Gd(null);function ob(e){const{timeout:t}=Pd(Pd({},tb),e),[n,r]=Gd([]),[o,i]=Gd([]);return Zd(function(e,t){const n=Array.isArray(e);let r;return o=>{let i;if(n){i=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]()}else i=e();const a=tf(()=>t(i,r,o));return r=i,a}}(ih,e=>{var n,o;if(!e||!e.showNotification)return void r(e=>e.filter(e=>"confirm-transaction"!==e.action));if(nb()===e)return;const a="confirm-transaction"===(null==(n=nb())?void 0:n.name)&&"confirm-transaction"===e.name,s="confirm-sign-data"===(null==(o=nb())?void 0:o.name)&&"confirm-sign-data"===e.name;if(a||s)return;rb(e),r(e=>e.filter(e=>"confirm-transaction"!==e.action&&"confirm-sign-data"!==e.action));const l={action:e.name};r(e=>[...e,l]);const c=setTimeout(()=>{r(e=>e.filter(e=>e!==l)),i(e=>e.filter(e=>e!==c))},t);i(e=>[...e,c])})),rf(()=>{o().forEach(e=>clearTimeout(e))}),n}const ib=Cp(Lm)`
581
581
  margin-top: 2px;
582
582
  `,ab=e=>Tf(Ky,{header:{translationKey:"notifications.signDataCanceled.header"},get icon(){return Tf(ib,{size:"xs"})},get class(){return e.class},"data-tc-notification-sign-data-cancelled":"true",children:"Sign data canceled"}),sb=e=>Tf(Ky,{header:{translationKey:"notifications.dataSigned.header"},get icon(){return Tf(Xy,{})},get class(){return e.class},"data-tc-notification-data-signed":"true",children:"Data signed"}),lb=Hf('<div data-tc-list-notifications="true"></div>'),cb=Cp(og)`
583
583
  background-color: ${e=>e.theme.colors.connectButton.background};
584
584
  color: ${e=>e.theme.colors.connectButton.foreground};
585
- box-shadow: ${e=>`0 4px 24px ${Ap(e.theme.colors.constant.black,.16)}`};
585
+ box-shadow: ${e=>`0 4px 24px ${Pp(e.theme.colors.constant.black,.16)}`};
586
586
  padding: 8px 16px 8px 12px;
587
587
 
588
588
  display: flex;
@@ -600,7 +600,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
600
600
 
601
601
  background-color: ${e=>e.theme.colors.background.primary};
602
602
  color: ${e=>e.theme.colors.connectButton.foreground};
603
- box-shadow: ${e=>`0 4px 24px ${Ap(e.theme.colors.constant.black,.16)}`};
603
+ box-shadow: ${e=>`0 4px 24px ${Pp(e.theme.colors.constant.black,.16)}`};
604
604
 
605
605
  display: flex;
606
606
  align-items: center;
@@ -613,15 +613,15 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
613
613
  display: flex;
614
614
  flex-direction: column;
615
615
  align-items: flex-end;
616
- `,hb=Cp(e=>{const t=sf(Oy),[n,r]=Gd(!1);return Tf(Dy,{ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return Tf(Wy,{get children(){return[(()=>{const e=Uy.cloneNode(!0);return Yf(e,Tf(zy,{onClick:()=>Od(void 0,null,function*(){const e=rd(t.account.address,t.account.chain===Oc.TESTNET);yield Yg(e),r(!0),setTimeout(()=>r(!1),1e3)}),get children(){return[Tf(My,{}),Tf(jf,{get when(){return!n()},get children(){return Tf(Fy,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),Tf(jf,{get when(){return n()},get children(){return Tf(Fy,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=Uy.cloneNode(!0);return Yf(n,Tf(zy,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[Tf(Iy,{}),Tf(Fy,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})})`
616
+ `,hb=Cp(e=>{const t=sf(Oy),[n,r]=Gd(!1);return Tf(Dy,{ref(t){const n=e.ref;"function"==typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return Tf(Wy,{get children(){return[(()=>{const e=Uy.cloneNode(!0);return Yf(e,Tf(zy,{onClick:()=>Od(void 0,null,function*(){const e=rd(t.account.address,t.account.chain===Oc.TESTNET);yield Yg(e),r(!0),setTimeout(()=>r(!1),1e3)}),get children(){return[Tf(Ly,{}),Tf(jf,{get when(){return!n()},get children(){return Tf(Fy,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),Tf(jf,{get when(){return n()},get children(){return Tf(Fy,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=Uy.cloneNode(!0);return Yf(n,Tf(zy,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[Tf(Iy,{}),Tf(Fy,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})})`
617
617
  box-sizing: border-box;
618
618
  overflow: hidden;
619
619
  margin-top: 12px;
620
- `,gb=Cp(e=>{const t=ob();return(()=>{const n=lb.cloneNode(!0);return Yf(n,Tf(lg,{onBeforeEnter:e=>{Ag(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Ag(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Tf(Mf,{get each(){return t()},children:e=>Tf(If,{get children(){return[Tf(Nf,{get when(){return"transaction-sent"===e.action},get children(){return Tf(Jy,{class:eb})}}),Tf(Nf,{get when(){return"transaction-canceled"===e.action},get children(){return Tf(Zy,{class:eb})}}),Tf(Nf,{get when(){return"data-signed"===e.action},get children(){return Tf(sb,{class:eb})}}),Tf(Nf,{get when(){return"sign-data-canceled"===e.action},get children(){return Tf(ab,{class:eb})}}),Tf(Nf,{get when(){return"confirm-transaction"===e.action||"confirm-sign-data"===e.action},get children(){return Tf(Qy,{class:eb})}})]}})})}})),Yd(()=>Kf(n,e.class)),n})()})`
620
+ `,gb=Cp(e=>{const t=ob();return(()=>{const n=lb.cloneNode(!0);return Yf(n,Tf(lg,{onBeforeEnter:e=>{Pg(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Pg(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Tf(Lf,{get each(){return t()},children:e=>Tf(If,{get children(){return[Tf(Nf,{get when(){return"transaction-sent"===e.action},get children(){return Tf(Jy,{class:eb})}}),Tf(Nf,{get when(){return"transaction-canceled"===e.action},get children(){return Tf(Zy,{class:eb})}}),Tf(Nf,{get when(){return"data-signed"===e.action},get children(){return Tf(sb,{class:eb})}}),Tf(Nf,{get when(){return"sign-data-canceled"===e.action},get children(){return Tf(ab,{class:eb})}}),Tf(Nf,{get when(){return"confirm-transaction"===e.action||"confirm-sign-data"===e.action},get children(){return Tf(Qy,{class:eb})}})]}})})}})),Yd(()=>Kf(n,e.class)),n})()})`
621
621
  > div:first-child {
622
622
  margin-top: 20px;
623
623
  }
624
- `;function mb(e){return e.split("-")[0]}function yb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(mb(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(mb(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function bb(e){return Rd(Ad({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function vb(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wb(e){return vb(e).getComputedStyle(e)}function xb(e){return _b(e)?(e.nodeName||"").toLowerCase():""}let Cb;function kb(){if(Cb)return Cb;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Cb=e.brands.map(e=>e.brand+"/"+e.version).join(" "),Cb):navigator.userAgent}function Sb(e){return e instanceof vb(e).HTMLElement}function Eb(e){return e instanceof vb(e).Element}function _b(e){return e instanceof vb(e).Node}function Tb(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof vb(e).ShadowRoot||e instanceof ShadowRoot}function Ab(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wb(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Rb(e){return["table","td","th"].includes(xb(e))}function Pb(e){const t=/firefox/i.test(kb()),n=wb(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(e=>n.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=n.contain;return null!=t&&t.includes(e)})}function Ob(){return!/^((?!chrome|android).)*safari/i.test(kb())}function Lb(e){return["html","body","#document"].includes(xb(e))}const Mb=Math.min,jb=Math.max,Ib=Math.round,Nb={x:1,y:1};function $b(e){const t=!Eb(e)&&e.contextElement?e.contextElement:Eb(e)?e:null;if(!t)return Nb;const n=t.getBoundingClientRect(),r=wb(t);if("border-box"!==r.boxSizing)return Sb(t)?{x:t.offsetWidth>0&&Ib(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Ib(n.height)/t.offsetHeight||1}:Nb;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Db(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Nb;t&&(r?Eb(r)&&(c=$b(r)):c=$b(e));const u=Eb(e)?vb(e):window,d=!Ob()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,p=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,h=l.width/c.x,g=l.height/c.y;return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}function Wb(e){return((_b(e)?e.ownerDocument:e.document)||window.document).documentElement}function zb(e){return Eb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ub(e){return Db(Wb(e)).left+zb(e).scrollLeft}function Fb(e,t,n){const r=Sb(t),o=Wb(t),i=Db(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==xb(t)||Ab(o))&&(a=zb(t)),Sb(t)){const e=Db(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Ub(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Bb(e){if("html"===xb(e))return e;const t=e.assignedSlot||e.parentNode||(Tb(e)?e.host:null)||Wb(e);return Tb(t)?t.host:t}function qb(e){return Sb(e)&&"fixed"!==wb(e).position?e.offsetParent:null}function Hb(e){const t=vb(e);let n=qb(e);for(;n&&Rb(n)&&"static"===wb(n).position;)n=qb(n);return n&&("html"===xb(n)||"body"===xb(n)&&"static"===wb(n).position&&!Pb(n))?t:n||function(e){let t=Bb(e);for(;Sb(t)&&!Lb(t);){if(Pb(t))return t;t=Bb(t)}return null}(e)||t}function Vb(e){const t=Bb(e);return Lb(t)?e.ownerDocument.body:Sb(t)&&Ab(t)?t:Vb(t)}function Kb(e,t){var n;void 0===t&&(t=[]);const r=Vb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=vb(r);return o?t.concat(i,i.visualViewport||[],Ab(r)?r:[]):t.concat(r,Kb(r))}function Gb(e,t,n){return"viewport"===t?bb(function(e,t){const n=vb(e),r=Wb(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Ob();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Eb(t)?function(e,t){const n=Db(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Sb(e)?$b(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):bb(function(e){var t;const n=Wb(e),r=zb(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Ub(e);const l=-r.scrollTop;return"rtl"===wb(o||n).direction&&(s+=jb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Wb(e)))}const Qb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Kb(e).filter(e=>Eb(e)&&"body"!==xb(e)),o=null;const i="fixed"===wb(e).position;let a=i?Bb(e):e;for(;Eb(a)&&!Lb(a);){const e=wb(a),t=Pb(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter(e=>e!==a),a=Bb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Gb(t,n,o);return e.top=jb(r.top,e.top),e.right=Mb(r.right,e.right),e.bottom=Mb(r.bottom,e.bottom),e.left=jb(r.left,e.left),e},Gb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Sb(n),i=Wb(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==xb(n)||Ab(i))&&(a=zb(n)),Sb(n))){const e=Db(n);s=$b(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Eb,getDimensions:function(e){if(Sb(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Db(e);return{width:t.width,height:t.height}},getOffsetParent:Hb,getDocumentElement:Wb,getScale:$b,getElementRects(e){return Od(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Hb,i=this.getDimensions;return{reference:Fb(t,yield o(n),r),floating:Ad({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===wb(e).direction};function Yb(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Eb(e)?Kb(e):e.contextElement?Kb(e.contextElement):[],...Kb(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let u,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),Eb(e)&&!s&&d.observe(e),Eb(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Db(e):null;return s&&function t(){const r=Db(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const Zb=(e,t,n)=>{const r=new Map,o=Ad({platform:Qb},n),i=Rd(Ad({},o.platform),{_c:r});return((e,t,n)=>Od(void 0,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=yb(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:y,data:b,reset:v}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,p=Rd(Ad({},p),{[i]:Ad(Ad({},p[i]),b)}),"production"!=={}.NODE_ENV&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=yb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,Rd(Ad({},o),{platform:i}))};const Xb=Hf('<tc-root data-tc-dropdown-container="true"></tc-root>'),Jb=()=>{const e=wp(),t=sf(uh),n=sf(Oy),[r,o]=Gd(!1),[i,a]=Gd(t.account),[s,l]=Gd(!t.account);let c;const[u,d]=Gd(),[f,p]=Gd(),h=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=Gd({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Gd();Zd(()=>{let e=s();if(e)throw e.value});let c=Xd(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Zb(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Zd(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&rf(e)}else u()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:Yb,placement:"bottom-end"});n.connectionRestored.then(()=>l(!1));const g=t.onStatusChange(e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)}),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return nf(()=>{document.body.addEventListener("click",m)}),rf(()=>{document.body.removeEventListener("click",m),g()}),Tf(sp,{component:Sp,get children(){return[Tf(jf,{get when(){return s()},get children(){return Tf(db,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Tf(fb,{})}})}}),Tf(jf,{get when(){return!s()},get children(){return[Tf(jf,{get when(){return!i()},get children(){return Tf(cb,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Tf(Em,{get fill(){return e.colors.connectButton.foreground}}),Tf(om,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Tf(jf,{get when(){return i()},get children(){return Tf(pb,{get children(){return[Tf(ub,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Tf(om,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=rd(e.address,e.chain===Oc.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),Tf(pg,{direction:"bottom"})]}}),Tf(ap,{get children(){const e=tf(()=>document.importNode(Xb,!0));return Qf(d,e),e.style.setProperty("z-index","999"),e._$owner=Ud,Yf(e,Tf(ag,{onBeforeEnter:e=>{Ag(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Ag(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Tf(jf,{get when(){return r()},get children(){return Tf(hb,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Yf(e,Tf(gb,{}),null),Yd(t=>{var n,r;const o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t},{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},ev=Cp(Mg)`
624
+ `;function mb(e){return e.split("-")[0]}function yb(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(mb(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(mb(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function bb(e){return Ad(Pd({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function vb(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wb(e){return vb(e).getComputedStyle(e)}function xb(e){return _b(e)?(e.nodeName||"").toLowerCase():""}let Cb;function kb(){if(Cb)return Cb;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Cb=e.brands.map(e=>e.brand+"/"+e.version).join(" "),Cb):navigator.userAgent}function Sb(e){return e instanceof vb(e).HTMLElement}function Eb(e){return e instanceof vb(e).Element}function _b(e){return e instanceof vb(e).Node}function Tb(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof vb(e).ShadowRoot||e instanceof ShadowRoot}function Pb(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=wb(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ab(e){return["table","td","th"].includes(xb(e))}function Rb(e){const t=/firefox/i.test(kb()),n=wb(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some(e=>n.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=n.contain;return null!=t&&t.includes(e)})}function Ob(){return!/^((?!chrome|android).)*safari/i.test(kb())}function Mb(e){return["html","body","#document"].includes(xb(e))}const Lb=Math.min,jb=Math.max,Ib=Math.round,Nb={x:1,y:1};function $b(e){const t=!Eb(e)&&e.contextElement?e.contextElement:Eb(e)?e:null;if(!t)return Nb;const n=t.getBoundingClientRect(),r=wb(t);if("border-box"!==r.boxSizing)return Sb(t)?{x:t.offsetWidth>0&&Ib(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Ib(n.height)/t.offsetHeight||1}:Nb;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Db(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Nb;t&&(r?Eb(r)&&(c=$b(r)):c=$b(e));const u=Eb(e)?vb(e):window,d=!Ob()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,p=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,h=l.width/c.x,g=l.height/c.y;return{width:h,height:g,top:p,right:f+h,bottom:p+g,left:f,x:f,y:p}}function Wb(e){return((_b(e)?e.ownerDocument:e.document)||window.document).documentElement}function zb(e){return Eb(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ub(e){return Db(Wb(e)).left+zb(e).scrollLeft}function Fb(e,t,n){const r=Sb(t),o=Wb(t),i=Db(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==xb(t)||Pb(o))&&(a=zb(t)),Sb(t)){const e=Db(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Ub(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Bb(e){if("html"===xb(e))return e;const t=e.assignedSlot||e.parentNode||(Tb(e)?e.host:null)||Wb(e);return Tb(t)?t.host:t}function qb(e){return Sb(e)&&"fixed"!==wb(e).position?e.offsetParent:null}function Hb(e){const t=vb(e);let n=qb(e);for(;n&&Ab(n)&&"static"===wb(n).position;)n=qb(n);return n&&("html"===xb(n)||"body"===xb(n)&&"static"===wb(n).position&&!Rb(n))?t:n||function(e){let t=Bb(e);for(;Sb(t)&&!Mb(t);){if(Rb(t))return t;t=Bb(t)}return null}(e)||t}function Vb(e){const t=Bb(e);return Mb(t)?e.ownerDocument.body:Sb(t)&&Pb(t)?t:Vb(t)}function Kb(e,t){var n;void 0===t&&(t=[]);const r=Vb(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=vb(r);return o?t.concat(i,i.visualViewport||[],Pb(r)?r:[]):t.concat(r,Kb(r))}function Gb(e,t,n){return"viewport"===t?bb(function(e,t){const n=vb(e),r=Wb(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Ob();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Eb(t)?function(e,t){const n=Db(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Sb(e)?$b(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):bb(function(e){var t;const n=Wb(e),r=zb(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Ub(e);const l=-r.scrollTop;return"rtl"===wb(o||n).direction&&(s+=jb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Wb(e)))}const Qb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Kb(e).filter(e=>Eb(e)&&"body"!==xb(e)),o=null;const i="fixed"===wb(e).position;let a=i?Bb(e):e;for(;Eb(a)&&!Mb(a);){const e=wb(a),t=Rb(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter(e=>e!==a),a=Bb(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Gb(t,n,o);return e.top=jb(r.top,e.top),e.right=Lb(r.right,e.right),e.bottom=Lb(r.bottom,e.bottom),e.left=jb(r.left,e.left),e},Gb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Sb(n),i=Wb(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==xb(n)||Pb(i))&&(a=zb(n)),Sb(n))){const e=Db(n);s=$b(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Eb,getDimensions:function(e){if(Sb(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Db(e);return{width:t.width,height:t.height}},getOffsetParent:Hb,getDocumentElement:Wb,getScale:$b,getElementRects(e){return Od(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Hb,i=this.getDimensions;return{reference:Fb(t,yield o(n),r),floating:Pd({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===wb(e).direction};function Yb(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Eb(e)?Kb(e):e.contextElement?Kb(e.contextElement):[],...Kb(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let u,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),Eb(e)&&!s&&d.observe(e),Eb(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Db(e):null;return s&&function t(){const r=Db(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const Zb=(e,t,n)=>{const r=new Map,o=Pd({platform:Qb},n),i=Ad(Pd({},o.platform),{_c:r});return((e,t,n)=>Od(void 0,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=yb(c,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:y,data:b,reset:v}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=y?y:d,p=Ad(Pd({},p),{[i]:Pd(Pd({},p[i]),b)}),"production"!=={}.NODE_ENV&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:u,y:d}=yb(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}}))(e,t,Ad(Pd({},o),{platform:i}))};const Xb=Hf('<tc-root data-tc-dropdown-container="true"></tc-root>'),Jb=()=>{const e=wp(),t=sf(uh),n=sf(Oy),[r,o]=Gd(!1),[i,a]=Gd(t.account),[s,l]=Gd(!t.account);let c;const[u,d]=Gd(),[f,p]=Gd(),h=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=Gd({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Gd();Zd(()=>{let e=s();if(e)throw e.value});let c=Xd(()=>(e(),t(),{}));function u(){let i=e(),s=t();if(i&&s){let e=c();Zb(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then(t=>{e===c()&&a(t)},e=>{l(e)})}}return Zd(()=>{let i=e(),a=t();if(r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&rf(e)}else u()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:Yb,placement:"bottom-end"});n.connectionRestored.then(()=>l(!1));const g=t.onStatusChange(e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)}),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return nf(()=>{document.body.addEventListener("click",m)}),rf(()=>{document.body.removeEventListener("click",m),g()}),Tf(sp,{component:Sp,get children(){return[Tf(jf,{get when(){return s()},get children(){return Tf(db,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Tf(fb,{})}})}}),Tf(jf,{get when(){return!s()},get children(){return[Tf(jf,{get when(){return!i()},get children(){return Tf(cb,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Tf(Em,{get fill(){return e.colors.connectButton.foreground}}),Tf(om,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Tf(jf,{get when(){return i()},get children(){return Tf(pb,{get children(){return[Tf(ub,{onClick:()=>o(e=>!e),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Tf(om,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=rd(e.address,e.chain===Oc.TESTNET);return t.slice(0,4)+"…"+t.slice(-4)}return""})()}}),Tf(pg,{direction:"bottom"})]}}),Tf(ap,{get children(){const e=tf(()=>document.importNode(Xb,!0));return Qf(d,e),e.style.setProperty("z-index","999"),e._$owner=Ud,Yf(e,Tf(ag,{onBeforeEnter:e=>{Pg(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Pg(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Tf(jf,{get when(){return r()},get children(){return Tf(hb,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"==typeof c?c(e):c=e}})}})}}),null),Yf(e,Tf(gb,{}),null),Yd(t=>{var n,r;const o=h.strategy,i=`${null!=(n=h.y)?n:0}px`,a=`${null!=(r=h.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t},{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},ev=Cp(Lg)`
625
625
  padding-left: 24px;
626
626
  padding-right: 24px;
627
627
  padding-top: 18px;
@@ -653,7 +653,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
653
653
  font-weight: 590;
654
654
  `,Cp(e=>{const t="tabBar"+Math.floor(1e4*Math.random());return Tf(Ng,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[Tf($g,{get right(){return 1===e.selectedTabIndex}}),Tf(Wg,{get isActive(){return 0===e.selectedTabIndex},get children(){return[Tf(Dg,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),Xd(()=>e.tab1)]}}),Tf(Wg,{get isActive(){return 1===e.selectedTabIndex},get children(){return[Tf(Dg,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),Xd(()=>e.tab2)]}})]}})})`
655
655
  margin: 0 auto 22px;
656
- `;const[rv,ov]=Eh({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function iv(e){return"jsBridgeKey"in e?Rd(Ad({},e),{injected:nd.isWalletInjected(e.jsBridgeKey),embedded:nd.isInsideWalletBrowser(e.jsBridgeKey)}):e}function av(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(iv),e=o.map(e=>{const t=i.find(t=>t[r]===e[r]);return i=i.filter(t=>t[r]!==e[r]),void 0===t?e:t}).concat(i)),e):e}function sv(e){return e.platforms.some(e=>["macos","linux","windows"].includes(e))}function lv(e){return e.platforms.some(e=>["ios","android"].includes(e))}function cv(e){return e.platforms.some(e=>["chrome","firefox","safari"].includes(e))}function uv(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const dv=Cp.div`
656
+ `;const[rv,ov]=Eh({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function iv(e){return"jsBridgeKey"in e?Ad(Pd({},e),{injected:nd.isWalletInjected(e.jsBridgeKey),embedded:nd.isInsideWalletBrowser(e.jsBridgeKey)}):e}function av(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(iv),e=o.map(e=>{const t=i.find(t=>t[r]===e[r]);return i=i.filter(t=>t[r]!==e[r]),void 0===t?e:t}).concat(i)),e):e}function sv(e){return e.platforms.some(e=>["macos","linux","windows"].includes(e))}function lv(e){return e.platforms.some(e=>["ios","android"].includes(e))}function cv(e){return e.platforms.some(e=>["chrome","firefox","safari"].includes(e))}function uv(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const dv=Cp.div`
657
657
  display: flex;
658
658
  flex-direction: column;
659
659
  align-items: center;
@@ -748,7 +748,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
748
748
 
749
749
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
750
750
  background-color: ${e=>e.theme.colors.background.segment};
751
- `,vv=Hf('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_5122_10355)"><circle cx="8" cy="8" r="8"></circle><circle cx="8" cy="11" r="1"></circle><path d="M7.04994 4.99875C7.02277 4.45542 7.45598 4 8 4C8.54402 4 8.97723 4.45541 8.95006 4.99875L8.78745 8.25094C8.76647 8.67055 8.42014 9 8 9C7.57986 9 7.23353 8.67055 7.21255 8.25094L7.04994 4.99875Z"></path></g><defs><clipPath id="clip0_5122_10355"><rect width="16" height="16"></rect></clipPath></defs></svg>'),wv=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12"></circle><circle cx="14" cy="18.9" r="1.4"></circle><path d="M12.6658 8.89845C12.63 8.13698 13.2377 7.5 14 7.5C14.7623 7.5 15.37 8.13698 15.3342 8.89845L15.047 15.0013C15.0207 15.5604 14.5597 16.0002 14 16.0002C13.4403 16.0002 12.9793 15.5604 12.953 15.0013L12.6658 8.89845Z"></path></svg>'),xv=e=>{const t=wp(),n=()=>e.size,r=()=>e.fill||t.colors.icon.error;return Xd((()=>{const o=Xd(()=>"16"===n());return()=>o()?(()=>{const e=vv.cloneNode(!0),n=e.firstChild,o=n.firstChild,i=o.nextSibling,a=i.nextSibling,s=n.nextSibling.firstChild.firstChild;return Yd(e=>{const n=r(),l=t.colors.constant.white,c=t.colors.constant.white,u=t.colors.constant.white;return n!==e._v$&&Vf(o,"fill",e._v$=n),l!==e._v$2&&Vf(i,"fill",e._v$2=l),c!==e._v$3&&Vf(a,"fill",e._v$3=c),u!==e._v$4&&Vf(s,"fill",e._v$4=u),e},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),e})():(()=>{const o=Xd(()=>"28"===n());return()=>o()?(()=>{const n=wv.cloneNode(!0),o=n.firstChild,i=o.nextSibling,a=i.nextSibling;return Yd(s=>{const l=e.class,c=r(),u=t.colors.constant.white,d=t.colors.constant.white;return l!==s._v$5&&Vf(n,"class",s._v$5=l),c!==s._v$6&&Vf(o,"fill",s._v$6=c),u!==s._v$7&&Vf(i,"fill",s._v$7=u),d!==s._v$8&&Vf(a,"fill",s._v$8=d),s},{_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0}),n})():null})()})())},Cv=Hf("<li></li>"),kv=e=>{const[t,n]=Gd(null);let r=null;const o=t=>{t.isSupportRequiredFeatures||"strict"!==e.featureCheckMode?e.onSelect(t):(e=>{n(e),null!=r&&clearTimeout(r),r=setTimeout(()=>n(null),1500)})(t)},i=()=>Ey()?e.walletsList.filter(lv):e.walletsList,a=()=>i().filter(e=>!e.isSupportRequiredFeatures);return Tf(dv,{"data-tc-wallets-modal-list":"true",get children(){return[Tf(hv,{icon:"arrow",onClick:()=>e.onBack()}),Tf(fv,{translationKey:"walletModal.wallets",children:"Wallets"}),Tf(Ay,{get maxHeight(){return Ey()?void 0:510},get children(){return[Tf(pv,{get children(){return Tf(Mf,{get each(){return i().filter(e=>e.isSupportRequiredFeatures)},children:t=>(()=>{const n=Cv.cloneNode(!0);return Yf(n,Tf(gv,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}}),Tf(jf,{get when(){return a().length>0&&"hide"!==e.featureCheckMode},get children(){return[Tf(mv,{get children(){return[Tf(yv,{translationKey:"walletModal.allWallets.walletsBelowNotSupported",children:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above."}),Tf(xv,{size:"28"})]}}),Tf(pv,{get children(){return Tf(Mf,{get each(){return a()},children:t=>(()=>{const n=Cv.cloneNode(!0);return Yf(n,Tf(gv,{wallet:t,onClick:()=>o(t),get withOpacity(){return"strict"===e.featureCheckMode}})),n})()})}}),Tf(ag,{onBeforeEnter:e=>{Ag(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Ag(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Tf(jf,{get when(){return t()},get children(){return Tf(bv,{get children(){return[Tf(Mm,{size:"xs"}),Tf(om,{translationKey:"walletModal.allWallets.walletNotSupportService",get translationValues(){return{name:t().name}},get children(){return[Xd(()=>t().name)," doesn’t support connected service"]}})]}})}})}})]}})]}})]}})},Sv={m:"16px",s:"12px",none:"0"},Ev={m:"6px",s:"6px",none:"0"},_v=Cp.div`
751
+ `,vv=Hf('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_5122_10355)"><circle cx="8" cy="8" r="8"></circle><circle cx="8" cy="11" r="1"></circle><path d="M7.04994 4.99875C7.02277 4.45542 7.45598 4 8 4C8.54402 4 8.97723 4.45541 8.95006 4.99875L8.78745 8.25094C8.76647 8.67055 8.42014 9 8 9C7.57986 9 7.23353 8.67055 7.21255 8.25094L7.04994 4.99875Z"></path></g><defs><clipPath id="clip0_5122_10355"><rect width="16" height="16"></rect></clipPath></defs></svg>'),wv=Hf('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="12"></circle><circle cx="14" cy="18.9" r="1.4"></circle><path d="M12.6658 8.89845C12.63 8.13698 13.2377 7.5 14 7.5C14.7623 7.5 15.37 8.13698 15.3342 8.89845L15.047 15.0013C15.0207 15.5604 14.5597 16.0002 14 16.0002C13.4403 16.0002 12.9793 15.5604 12.953 15.0013L12.6658 8.89845Z"></path></svg>'),xv=e=>{const t=wp(),n=()=>e.size,r=()=>e.fill||t.colors.icon.error;return Xd((()=>{const o=Xd(()=>"16"===n());return()=>o()?(()=>{const e=vv.cloneNode(!0),n=e.firstChild,o=n.firstChild,i=o.nextSibling,a=i.nextSibling,s=n.nextSibling.firstChild.firstChild;return Yd(e=>{const n=r(),l=t.colors.constant.white,c=t.colors.constant.white,u=t.colors.constant.white;return n!==e._v$&&Vf(o,"fill",e._v$=n),l!==e._v$2&&Vf(i,"fill",e._v$2=l),c!==e._v$3&&Vf(a,"fill",e._v$3=c),u!==e._v$4&&Vf(s,"fill",e._v$4=u),e},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),e})():(()=>{const o=Xd(()=>"28"===n());return()=>o()?(()=>{const n=wv.cloneNode(!0),o=n.firstChild,i=o.nextSibling,a=i.nextSibling;return Yd(s=>{const l=e.class,c=r(),u=t.colors.constant.white,d=t.colors.constant.white;return l!==s._v$5&&Vf(n,"class",s._v$5=l),c!==s._v$6&&Vf(o,"fill",s._v$6=c),u!==s._v$7&&Vf(i,"fill",s._v$7=u),d!==s._v$8&&Vf(a,"fill",s._v$8=d),s},{_v$5:void 0,_v$6:void 0,_v$7:void 0,_v$8:void 0}),n})():null})()})())},Cv=Hf("<li></li>"),kv=e=>{const[t,n]=Gd(null);let r=null;const o=t=>{t.isSupportRequiredFeatures||"strict"!==e.featureCheckMode?e.onSelect(t):(e=>{n(e),null!=r&&clearTimeout(r),r=setTimeout(()=>n(null),1500)})(t)},i=()=>Ey()?e.walletsList.filter(lv):e.walletsList,a=()=>i().filter(e=>!e.isSupportRequiredFeatures);return Tf(dv,{"data-tc-wallets-modal-list":"true",get children(){return[Tf(hv,{icon:"arrow",onClick:()=>e.onBack()}),Tf(fv,{translationKey:"walletModal.wallets",children:"Wallets"}),Tf(Py,{get maxHeight(){return Ey()?void 0:510},get children(){return[Tf(pv,{get children(){return Tf(Lf,{get each(){return i().filter(e=>e.isSupportRequiredFeatures)},children:t=>(()=>{const n=Cv.cloneNode(!0);return Yf(n,Tf(gv,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}}),Tf(jf,{get when(){return a().length>0&&"hide"!==e.featureCheckMode},get children(){return[Tf(mv,{get children(){return[Tf(yv,{translationKey:"walletModal.allWallets.walletsBelowNotSupported",children:"The wallets below don’t support all features of the connected service. You can use your recovery phrase in one of the supported wallets above."}),Tf(xv,{size:"28"})]}}),Tf(pv,{get children(){return Tf(Lf,{get each(){return a()},children:t=>(()=>{const n=Cv.cloneNode(!0);return Yf(n,Tf(gv,{wallet:t,onClick:()=>o(t),get withOpacity(){return"strict"===e.featureCheckMode}})),n})()})}}),Tf(ag,{onBeforeEnter:e=>{Pg(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Pg(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{t()})},get children(){return Tf(jf,{get when(){return t()},get children(){return Tf(bv,{get children(){return[Tf(Lm,{size:"xs"}),Tf(om,{translationKey:"walletModal.allWallets.walletNotSupportService",get translationValues(){return{name:t().name}},get children(){return[Xd(()=>t().name)," doesn’t support connected service"]}})]}})}})}})]}})]}})]}})},Sv={m:"16px",s:"12px",none:"0"},Ev={m:"6px",s:"6px",none:"0"},_v=Cp.div`
752
752
  display: flex;
753
753
  flex-direction: column;
754
754
  `,Tv=Cp.div`
@@ -759,12 +759,12 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
759
759
  align-items: center;
760
760
  justify-content: center;
761
761
  min-height: 232px;
762
- `,Av=Cp(Xg)`
762
+ `,Pv=Cp(Xg)`
763
763
  margin-bottom: 24px;
764
- `,Rv=Cp(vm)`
764
+ `,Av=Cp(vm)`
765
765
  max-width: 288px;
766
766
  margin: 0 auto 2px;
767
- `,Pv=Cp(xm)`
767
+ `,Rv=Cp(xm)`
768
768
  max-width: 288px;
769
769
  text-align: center;
770
770
  margin: 0 auto 20px;
@@ -772,19 +772,19 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
772
772
  position: absolute;
773
773
  top: 16px;
774
774
  left: 16px;
775
- `,Lv=Cp.div`
775
+ `,Mv=Cp.div`
776
776
  display: flex;
777
777
  justify-content: center;
778
778
  gap: 8px;
779
779
  padding-bottom: 16px;
780
- `,Mv=Cp(Lv)`
780
+ `,Lv=Cp(Mv)`
781
781
  padding-bottom: 0;
782
782
  `,jv=Cp(og)`
783
783
  margin-bottom: 24px;
784
784
  `,Iv=Cp($m)`
785
785
  margin-bottom: 18px;
786
786
  margin-top: 2px;
787
- `,Nv=Cp(Mm)`
787
+ `,Nv=Cp(Lm)`
788
788
  margin-bottom: 16px;
789
789
  `,$v=Cp(xm)`
790
790
  color: ${e=>e.theme.colors.text.secondary};
@@ -802,7 +802,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
802
802
  width: 32px;
803
803
  height: 32px;
804
804
  border-radius: ${e=>Ev[e.theme.borderRadius]};
805
- `,zv=e=>{const[t]=nm();return Xd(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function Uv(e,t){let n;n="string"==typeof t?t:Uh()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!uu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+du(o)}function Fv(e,t){t=Ad({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),Fh()){t.returnStrategy="back";Ip(Uv(r.toString(),t.returnStrategy))}else if(Uh())if(zh("ios","android","macos","tdesktop","web")){t.returnStrategy="back";qh(Uv(r.toString(),t.returnStrategy))}else zh("weba")?qh(Uv(r.toString(),t)):Ip(Uv(r.toString(),t));else if(Fp("ios")){"back"===t.returnStrategy&&(Bp("safari")?t.returnStrategy="back":Bp("chrome")?t.returnStrategy="googlechrome://":Bp("firefox")?t.returnStrategy="firefox://":Bp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Bp("chrome"),n=Bp("firefox");if((e||n)&&!t.forceRedirect){const e=Uv(r.toString(),t.returnStrategy);Np(qv(e),()=>Ip(e))}else{Ip(Uv(r.toString(),t.returnStrategy))}}else if(Fp("android")){t.returnStrategy="back";const e=Bp("chrome"),n=Bp("firefox");if((e||n)&&!t.forceRedirect){const e=Uv(r.toString(),t.returnStrategy);Np(qv(e),()=>Ip(e))}else{Ip(Uv(r.toString(),t.returnStrategy))}}else if(Fp("ipad")){"back"===t.returnStrategy&&(Bp("safari")?t.returnStrategy="back":Bp("chrome")?t.returnStrategy="googlechrome://":Bp("firefox")?t.returnStrategy="firefox://":Bp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Bp("chrome"),n=Bp("firefox"),o=(e||n)&&!t.forceRedirect,i=Uv(r.toString(),t.returnStrategy);if(o){Np(qv(i),()=>Ip(i))}else Ip(i)}else if(Fp("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Uv(r.toString(),t.returnStrategy);if(t.forceRedirect)Ip(e);else{Np(qv(e),()=>Ip(e))}}else Ip(Uv(r.toString(),t))}function Bv(e,t,n,r){if(n=Ad({},n),Fh())if(Fp("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),jp(Uv(e,n.returnStrategy),"_self");else{r("universal-link");Ip(Uv(e,n.returnStrategy))}else if(Uh())if(zh("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Uv(e,n.returnStrategy);qh(t,()=>{r("universal-link"),Ip(t)})}else if(zh("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else if(zh("weba")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy=location.href:Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else if(zh("web")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy=location.href:Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else{r("universal-link");Ip(Uv(e,n.returnStrategy))}else if(Fp("ios"))"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Bp("chrome")?(r("universal-link"),jp(Uv(e,n.returnStrategy),"_self")):(r("universal-link"),Ip(Uv(e,n.returnStrategy)));else if(Fp("android"))"back"===n.returnStrategy&&(Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Ip(Uv(e,n.returnStrategy));else if(Fp("ipad"))"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Bp("chrome")?(r("universal-link"),jp(Uv(e,n.returnStrategy),"_self")):(r("universal-link"),Ip(Uv(e,n.returnStrategy)));else if(Fp("macos","windows","linux")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else r("universal-link"),Ip(Uv(e,n.returnStrategy))}function qv(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Hv=e=>{const[t,n]=Gd("mobile"),[r,o]=Gd(null);Zd(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Gd(),[s,l]=Gd(!0),c=sf(uh);rf(c.onStatusChange(()=>{},t=>{t instanceof Kc?o("missing-features"):e.wallet.appName!==yy&&o("connection-declined")}));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(cS){}};Zd(()=>{"extension"!==tf(t)&&(lv(e.wallet)||sv(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),oh(Rd(Ad({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),uu(i()))p();else{const t=!s();l(!1),Bv(i(),e.wallet.deepLink,{returnStrategy:rv.returnStrategy,forceRedirect:t},t=>{oh(Rd(Ad({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),oh(Rd(Ad({},e.wallet),{openMethod:"universal-link"})),Fv(i(),{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:t})},h=()=>{o(null),n("extension"),Ru(e.wallet)&&(oh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return lv(e.wallet)?d():cv(e.wallet)?h():f(),Tf(_v,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Tf(jf,{get when(){return!e.backDisabled},get children(){return Tf(Ov,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Tf(Rv,{get children(){return e.wallet.name}}),Tf(jf,{get when(){return Xd(()=>"mobile"===t())()&&!r()},get children(){return Tf(Pv,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Xd(()=>e.wallet.name),"’s camera"]}})}}),Tf(Tv,{get qr(){return"mobile"===t()},get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return r()},get children(){return[Tf(Nv,{size:"s"}),Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),Tf(Nf,{get when(){return"connection-declined"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),Tf(Nf,{get when(){return"not-supported"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Xd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Tf(Lv,{get children(){return[Tf(jf,{get when(){return"not-supported"!==r()},get children(){return Tf(og,{get leftIcon(){return Tf(Qm,{})},get onClick(){return"extension"===t()?h:f},get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}})}}),Tf(jf,{get when(){return"missing-features"===r()},get children(){return Tf(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Xd(()=>e.wallet.name)]}})}})}})}}),Tf(jf,{get when(){return"not-supported"===r()},get children(){return Tf(og,{onClick:()=>e.onBackClick(),get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),Tf(Nf,{get when(){return"mobile"===t()},get children(){return Tf(Av,{disableCopy:!1,get sourceUrl(){return Uv(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Tf(Nf,{get when(){return"extension"===t()},get children(){return[Tf(jf,{get when(){return Ru(e.wallet)},get children(){return[Tf(Iv,{size:"s"}),Tf($v,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name)," browser extension…"]}}),Tf(Lv,{get children(){return Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Tf(jf,{get when(){return!Ru(e.wallet)},get children(){return[Tf($v,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Xd(()=>e.wallet.name)," browser extension"]}}),Tf(Lv,{get children(){return Tf(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Zm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Xd(()=>e.wallet.name)]}})}})}})}})]}})]}}),Tf(Nf,{get when(){return"desktop"===t()},get children(){return[Tf($m,{size:"m"}),Tf($v,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name)," on desktop…"]}}),Tf(Lv,{get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:f,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Xd(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),Tf(jf,{get when(){return e.wallet.appName===yy},get children(){return Tf(Dv,{get rightIcon(){return Tf(Wv,{get src(){return vy}})},scale:"s",onClick:p,get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Tf(jf,{get when(){return e.wallet.appName!==yy},get children(){return Tf(Mv,{get children(){return[Tf(jf,{get when(){return Xd(()=>"mobile"!==t())()&&lv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Hm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.mobile",children:"Mobile"})}})}}),Tf(jf,{get when(){return Xd(()=>"extension"!==t())()&&cv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Bm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Tf(jf,{get when(){return Xd(()=>"desktop"!==t())()&&sv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Km,{})},onClick:f,get children(){return Tf(zv,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Vv=Cp.div``,Kv=Cp(yg)`
805
+ `,zv=e=>{const[t]=nm();return Xd(()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())})};function Uv(e,t){let n;n="string"==typeof t?t:Uh()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!uu(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+du(o)}function Fv(e,t){t=Pd({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),Fh()){t.returnStrategy="back";Ip(Uv(r.toString(),t.returnStrategy))}else if(Uh())if(zh("ios","android","macos","tdesktop","web")){t.returnStrategy="back";qh(Uv(r.toString(),t.returnStrategy))}else zh("weba")?qh(Uv(r.toString(),t)):Ip(Uv(r.toString(),t));else if(Fp("ios")){"back"===t.returnStrategy&&(Bp("safari")?t.returnStrategy="back":Bp("chrome")?t.returnStrategy="googlechrome://":Bp("firefox")?t.returnStrategy="firefox://":Bp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Bp("chrome"),n=Bp("firefox");if((e||n)&&!t.forceRedirect){const e=Uv(r.toString(),t.returnStrategy);Np(qv(e),()=>Ip(e))}else{Ip(Uv(r.toString(),t.returnStrategy))}}else if(Fp("android")){t.returnStrategy="back";const e=Bp("chrome"),n=Bp("firefox");if((e||n)&&!t.forceRedirect){const e=Uv(r.toString(),t.returnStrategy);Np(qv(e),()=>Ip(e))}else{Ip(Uv(r.toString(),t.returnStrategy))}}else if(Fp("ipad")){"back"===t.returnStrategy&&(Bp("safari")?t.returnStrategy="back":Bp("chrome")?t.returnStrategy="googlechrome://":Bp("firefox")?t.returnStrategy="firefox://":Bp("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Bp("chrome"),n=Bp("firefox"),o=(e||n)&&!t.forceRedirect,i=Uv(r.toString(),t.returnStrategy);if(o){Np(qv(i),()=>Ip(i))}else Ip(i)}else if(Fp("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=Uv(r.toString(),t.returnStrategy);if(t.forceRedirect)Ip(e);else{Np(qv(e),()=>Ip(e))}}else Ip(Uv(r.toString(),t))}function Bv(e,t,n,r){if(n=Pd({},n),Fh())if(Fp("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),jp(Uv(e,n.returnStrategy),"_self");else{r("universal-link");Ip(Uv(e,n.returnStrategy))}else if(Uh())if(zh("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=Uv(e,n.returnStrategy);qh(t,()=>{r("universal-link"),Ip(t)})}else if(zh("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else if(zh("weba")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy=location.href:Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else if(zh("web")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy=location.href:Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else{r("universal-link");Ip(Uv(e,n.returnStrategy))}else if(Fp("ios"))"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Bp("chrome")?(r("universal-link"),jp(Uv(e,n.returnStrategy),"_self")):(r("universal-link"),Ip(Uv(e,n.returnStrategy)));else if(Fp("android"))"back"===n.returnStrategy&&(Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Ip(Uv(e,n.returnStrategy));else if(Fp("ipad"))"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Bp("chrome")?(r("universal-link"),jp(Uv(e,n.returnStrategy),"_self")):(r("universal-link"),Ip(Uv(e,n.returnStrategy)));else if(Fp("macos","windows","linux")){"back"===n.returnStrategy&&(Bp("safari")?n.returnStrategy="none":Bp("chrome")?n.returnStrategy="googlechrome://":Bp("firefox")?n.returnStrategy="firefox://":Bp("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Uv(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),Np(qp(o,t),()=>{r("universal-link"),Ip(o)})):(r("universal-link"),Ip(o))}else r("universal-link"),Ip(Uv(e,n.returnStrategy))}function qv(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Hv=e=>{const[t,n]=Gd("mobile"),[r,o]=Gd(null);Zd(()=>{var t;o(null!=(t=e.defaultError)?t:null)});const[i,a]=Gd(),[s,l]=Gd(!0),c=sf(uh);rf(c.onStatusChange(()=>{},t=>{t instanceof Kc?o("missing-features"):e.wallet.appName!==yy&&o("connection-declined")}));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(cS){}};Zd(()=>{"extension"!==tf(t)&&(lv(e.wallet)||sv(e.wallet))&&u()});const d=()=>{o(null),"extension"===t()&&u(),n("mobile"),oh(Ad(Pd({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(null),"extension"===t()&&u(),n("desktop"),uu(i()))p();else{const t=!s();l(!1),Bv(i(),e.wallet.deepLink,{returnStrategy:rv.returnStrategy,forceRedirect:t},t=>{oh(Ad(Pd({},e.wallet),{openMethod:t}))})}},p=()=>{const t=!s();l(!1),oh(Ad(Pd({},e.wallet),{openMethod:"universal-link"})),Fv(i(),{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:t})},h=()=>{o(null),n("extension"),Au(e.wallet)&&(oh(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return lv(e.wallet)?d():cv(e.wallet)?h():f(),Tf(_v,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Tf(jf,{get when(){return!e.backDisabled},get children(){return Tf(Ov,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Tf(Av,{get children(){return e.wallet.name}}),Tf(jf,{get when(){return Xd(()=>"mobile"===t())()&&!r()},get children(){return Tf(Rv,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",Xd(()=>e.wallet.name),"’s camera"]}})}}),Tf(Tv,{get qr(){return"mobile"===t()},get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return r()},get children(){return[Tf(Nv,{size:"s"}),Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),Tf(Nf,{get when(){return"connection-declined"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"})}}),Tf(Nf,{get when(){return"not-supported"===r()},get children(){return Tf($v,{translationKey:"walletModal.desktopConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Xd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Tf(Mv,{get children(){return[Tf(jf,{get when(){return"not-supported"!==r()},get children(){return Tf(og,{get leftIcon(){return Tf(Qm,{})},get onClick(){return"extension"===t()?h:f},get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}})}}),Tf(jf,{get when(){return"missing-features"===r()},get children(){return Tf(Ry,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Xd(()=>e.wallet.name)]}})}})}})}}),Tf(jf,{get when(){return"not-supported"===r()},get children(){return Tf(og,{onClick:()=>e.onBackClick(),get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}})]}})]}}),Tf(Nf,{get when(){return"mobile"===t()},get children(){return Tf(Pv,{disableCopy:!1,get sourceUrl(){return Uv(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Tf(Nf,{get when(){return"extension"===t()},get children(){return[Tf(jf,{get when(){return Au(e.wallet)},get children(){return[Tf(Iv,{size:"s"}),Tf($v,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name)," browser extension…"]}}),Tf(Mv,{get children(){return Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Tf(jf,{get when(){return!Au(e.wallet)},get children(){return[Tf($v,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Xd(()=>e.wallet.name)," browser extension"]}}),Tf(Mv,{get children(){return Tf(Ry,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Zm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Xd(()=>e.wallet.name)]}})}})}})}})]}})]}}),Tf(Nf,{get when(){return"desktop"===t()},get children(){return[Tf($m,{size:"m"}),Tf($v,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name)," on desktop…"]}}),Tf(Mv,{get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:f,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(Ry,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Xd(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),Tf(jf,{get when(){return e.wallet.appName===yy},get children(){return Tf(Dv,{get rightIcon(){return Tf(Wv,{get src(){return vy}})},scale:"s",onClick:p,get children(){return Tf(zv,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Tf(jf,{get when(){return e.wallet.appName!==yy},get children(){return Tf(Lv,{get children(){return[Tf(jf,{get when(){return Xd(()=>"mobile"!==t())()&&lv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Hm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.mobile",children:"Mobile"})}})}}),Tf(jf,{get when(){return Xd(()=>"extension"!==t())()&&cv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Bm,{})},onClick:h,get children(){return Tf(zv,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Tf(jf,{get when(){return Xd(()=>"desktop"!==t())()&&sv(e.wallet)},get children(){return Tf(jv,{appearance:"secondary",get leftIcon(){return Tf(Km,{})},onClick:f,get children(){return Tf(zv,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Vv=Cp.div``,Kv=Cp(yg)`
806
806
  position: absolute;
807
807
  top: 16px;
808
808
  left: 16px;
@@ -828,7 +828,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
828
828
  align-items: center;
829
829
  justify-content: center;
830
830
  gap: 8px;
831
- `,ew="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",tw=e=>Tf(Vv,{"data-tc-wallets-modal-info":"true",get children(){return[Tf(Kv,{icon:"arrow",onClick:()=>e.onBackClick()}),Tf(Gv,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Tf(Ay,{get children(){return[Tf(Qv,{get children(){return[Tf(ty,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Tf(Xv,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Tf(Qv,{get children(){return[Tf(ry,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Tf(Xv,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Tf(Qv,{get children(){return[Tf(iy,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Tf(Xv,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Tf(Jv,{get children(){return Tf(Py,{get href(){return ew},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Jm,{})},get children(){return Tf(zv,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),nw=Cp.div``,rw=Cp.div`
831
+ `,ew="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",tw=e=>Tf(Vv,{"data-tc-wallets-modal-info":"true",get children(){return[Tf(Kv,{icon:"arrow",onClick:()=>e.onBackClick()}),Tf(Gv,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Tf(Py,{get children(){return[Tf(Qv,{get children(){return[Tf(ty,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Tf(Xv,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Tf(Qv,{get children(){return[Tf(ry,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Tf(Xv,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Tf(Qv,{get children(){return[Tf(iy,{class:Yv}),Tf(Zv,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Tf(Xv,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Tf(Jv,{get children(){return Tf(Ry,{get href(){return ew},blank:!0,get children(){return Tf(og,{get rightIcon(){return Tf(Jm,{})},get children(){return Tf(zv,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),nw=Cp.div``,rw=Cp.div`
832
832
  flex: 1;
833
833
  margin-top: 18px;
834
834
  display: flex;
@@ -848,17 +848,17 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
848
848
  display: flex;
849
849
  align-items: center;
850
850
  gap: 12px;
851
- border-top: 0.5px solid ${e=>Ap(e.theme.colors.icon.secondary,.2)};
851
+ border-top: 0.5px solid ${e=>Pp(e.theme.colors.icon.secondary,.2)};
852
852
  `,sw=Cp(Nh)`
853
853
  width: 36px;
854
854
  height: 36px;
855
855
  border-radius: 10px;
856
- `,lw=Cp(Py)`
856
+ `,lw=Cp(Ry)`
857
857
  margin-left: auto;
858
858
  `,cw=Cp($m)`
859
859
  margin-bottom: 18px;
860
860
  margin-top: 2px;
861
- `,uw=Cp(Mm)`
861
+ `,uw=Cp(Lm)`
862
862
  margin-bottom: 16px;
863
863
  `,dw=Cp(xm)`
864
864
  color: ${e=>e.theme.colors.text.secondary};
@@ -887,13 +887,13 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
887
887
  width: 100%;
888
888
  height: 56px;
889
889
  border-radius: ${e=>pw[e.theme.borderRadius]};
890
- background-color: ${e=>Ap(e.theme.colors.accent,.12)};
890
+ background-color: ${e=>Pp(e.theme.colors.accent,.12)};
891
891
  color: ${e=>e.theme.colors.accent};
892
892
  font-size: 16px;
893
893
  line-height: 20px;
894
894
  font-weight: 500;
895
895
  padding: 17px 20px 19px 20px;
896
- `,vw=e=>[Tf(hw,{get children(){return e.walletInfo.name}}),Tf(gw,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Xd(()=>e.walletInfo.name),"’s camera"]}}),Tf(mw,{get children(){return Tf(Xg,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Uv(e.universalLink,"none")},disableCopy:!0})}}),Tf(yw,{get children(){return[Tf(bw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Tf(bw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return Tf(zv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],ww=e=>{const t=wp(),[n,r]=Gd(!0),[o,i]=Gd(!1),[a,s]=Gd(null);Zd(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=sf(uh),c=l.onStatusChange(()=>{},()=>{s(null)}),u=Xd(()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest)),d=()=>{if(uu(u()))return oh(Rd(Ad({},e.wallet),{openMethod:"universal-link"})),void Fv(u(),{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),Bv(u(),e.wallet.deepLink,{returnStrategy:rv.returnStrategy,forceRedirect:t},t=>{oh(Rd(Ad({},e.wallet),{openMethod:t}))})},[f,p]=Gd(void 0),h=()=>Od(void 0,null,function*(){void 0!==f()&&clearTimeout(f()),yield Yg(u());const e=setTimeout(()=>p(void 0),1500);p(e)}),g=()=>{s(null),i(!0),oh(Rd(Ad({},e.wallet),{openMethod:"qrcode"}))},m=()=>{o()?(i(!1),oh(Rd(Ad({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return rf(c),d(),Tf(nw,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[Tf(jf,{get when(){return!e.backDisabled||o()},get children(){return Tf(iw,{icon:"arrow",onClick:m})}}),Tf(jf,{get when(){return o()},get children(){return Tf(vw,{get universalLink(){return u()},get walletInfo(){return e.wallet},onOpenLink:d,onCopy:h,get isCopiedShown(){return f()}})}}),Tf(jf,{get when(){return!o()},get children(){return[Tf(ow,{get children(){return e.wallet.name}}),Tf(rw,{get children(){return[Tf(jf,{get when(){return a()},get children(){return[Tf(uw,{size:"s"}),Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),Tf(Nf,{get when(){return"connection-declined"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"})}}),Tf(Nf,{get when(){return"not-supported"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Xd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Tf(fw,{get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===a()},get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(Py,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Xd(()=>e.wallet.name)]}})}})}})]}}),Tf(Nf,{get when(){return"not-supported"===a()},get children(){return Tf(og,{onClick:()=>e.onBackClick(),get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}}),Tf(Nf,{get when(){return"connection-declined"===a()},get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(og,{get leftIcon(){return Tf(dy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})}})]}}),Tf(jf,{get when(){return!a()},get children(){return[Tf(cw,{size:"s"}),Tf(dw,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name),"…"]}}),Tf(fw,{get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(og,{get leftIcon(){return Tf(dy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),Tf(aw,{get children(){return[Tf(sw,{get src(){return e.wallet.imageUrl}}),Tf(km,{get children(){return e.wallet.name}}),Tf(lw,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get children(){return Tf(zv,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},xw={m:"16px",s:"12px",none:"0"},Cw={m:"6px",s:"6px",none:"0"};Cp.li`
896
+ `,vw=e=>[Tf(hw,{get children(){return e.walletInfo.name}}),Tf(gw,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",Xd(()=>e.walletInfo.name),"’s camera"]}}),Tf(mw,{get children(){return Tf(Xg,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Uv(e.universalLink,"none")},disableCopy:!0})}}),Tf(yw,{get children(){return[Tf(bw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onOpenLink)?void 0:t.call(e)},get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Tf(bw,{appearance:"secondary",onClick:()=>{var t;return null==(t=e.onCopy)?void 0:t.call(e)},get children(){return Tf(zv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})],ww=e=>{const t=wp(),[n,r]=Gd(!0),[o,i]=Gd(!1),[a,s]=Gd(null);Zd(()=>{var t;s(null!=(t=e.defaultError)?t:null)});const l=sf(uh),c=l.onStatusChange(()=>{},()=>{s(null)}),u=Xd(()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest)),d=()=>{if(uu(u()))return oh(Ad(Pd({},e.wallet),{openMethod:"universal-link"})),void Fv(u(),{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:!0});s(null);const t=!n();r(!1),Bv(u(),e.wallet.deepLink,{returnStrategy:rv.returnStrategy,forceRedirect:t},t=>{oh(Ad(Pd({},e.wallet),{openMethod:t}))})},[f,p]=Gd(void 0),h=()=>Od(void 0,null,function*(){void 0!==f()&&clearTimeout(f()),yield Yg(u());const e=setTimeout(()=>p(void 0),1500);p(e)}),g=()=>{s(null),i(!0),oh(Ad(Pd({},e.wallet),{openMethod:"qrcode"}))},m=()=>{o()?(i(!1),oh(Ad(Pd({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return rf(c),d(),Tf(nw,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[Tf(jf,{get when(){return!e.backDisabled||o()},get children(){return Tf(iw,{icon:"arrow",onClick:m})}}),Tf(jf,{get when(){return o()},get children(){return Tf(vw,{get universalLink(){return u()},get walletInfo(){return e.wallet},onOpenLink:d,onCopy:h,get isCopiedShown(){return f()}})}}),Tf(jf,{get when(){return!o()},get children(){return[Tf(ow,{get children(){return e.wallet.name}}),Tf(rw,{get children(){return[Tf(jf,{get when(){return a()},get children(){return[Tf(uw,{size:"s"}),Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.missingFeatures",get translationValues(){return{name:e.wallet.name}},children:"Please update Wallet, your version does not support required features for this dApp"})}}),Tf(Nf,{get when(){return"connection-declined"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"})}}),Tf(Nf,{get when(){return"not-supported"===a()},get children(){return Tf(dw,{translationKey:"walletModal.mobileConnectionModal.notSupportedWallet",get translationValues(){return{name:e.wallet.name}},get children(){return[Xd(()=>e.wallet.name)," doesn’t support the requested action. Please connect another wallet that supports it."]}})}})]}}),Tf(fw,{get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return"missing-features"===a()},get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(Ry,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.updateWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Update ",Xd(()=>e.wallet.name)]}})}})}})]}}),Tf(Nf,{get when(){return"not-supported"===a()},get children(){return Tf(og,{onClick:()=>e.onBackClick(),get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.chooseAnotherWallet",children:"Choose Another Wallet"})}})}}),Tf(Nf,{get when(){return"connection-declined"===a()},get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(og,{get leftIcon(){return Tf(dy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})}})]}}),Tf(jf,{get when(){return!a()},get children(){return[Tf(cw,{size:"s"}),Tf(dw,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Xd(()=>e.wallet.name),"…"]}}),Tf(fw,{get children(){return[Tf(og,{get leftIcon(){return Tf(Qm,{})},onClick:d,get children(){return Tf(zv,{translationKey:"common.retry",children:"Retry"})}}),Tf(og,{get leftIcon(){return Tf(dy,{get fill(){return t.colors.accent}})},onClick:g,get children(){return Tf(zv,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),Tf(aw,{get children(){return[Tf(sw,{get src(){return e.wallet.imageUrl}}),Tf(km,{get children(){return e.wallet.name}}),Tf(lw,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Tf(og,{get children(){return Tf(zv,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},xw={m:"16px",s:"12px",none:"0"},Cw={m:"6px",s:"6px",none:"0"};Cp.li`
897
897
  width: 82px;
898
898
  min-width: 82px;
899
899
  height: 124px;
@@ -961,31 +961,31 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
961
961
  position: absolute;
962
962
  top: 16px;
963
963
  left: 16px;
964
- `,Aw={m:"16px",s:"8px",none:"0"},Rw=Cp(vm)`
964
+ `,Pw={m:"16px",s:"8px",none:"0"},Aw=Cp(vm)`
965
965
  margin-bottom: 2px;
966
966
  padding: 0 52px;
967
- `,Pw=Cp(xm)`
967
+ `,Rw=Cp(xm)`
968
968
  margin-bottom: 20px;
969
969
  padding: 0 64px;
970
970
  `,Ow=Cp.div`
971
971
  padding: 0 24px 16px;
972
- `,Lw=Cp.div`
972
+ `,Mw=Cp.div`
973
973
  display: flex;
974
974
  flex-direction: row;
975
975
  gap: 16px;
976
976
  padding: 0 24px 24px;
977
977
  margin-top: 0;
978
- `,Mw=Cp(og)`
978
+ `,Lw=Cp(og)`
979
979
  width: 100%;
980
980
  height: 56px;
981
- border-radius: ${e=>Aw[e.theme.borderRadius]};
982
- background-color: ${e=>Ap(e.theme.colors.accent,.12)};
981
+ border-radius: ${e=>Pw[e.theme.borderRadius]};
982
+ background-color: ${e=>Pp(e.theme.colors.accent,.12)};
983
983
  color: ${e=>e.theme.colors.accent};
984
984
  font-size: 16px;
985
985
  line-height: 20px;
986
986
  font-weight: 500;
987
987
  padding: 17px 20px 19px 20px;
988
- `,jw=e=>[Tf(Rw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Tf(Pw,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),Tf(Ow,{get children(){return Tf(Xg,{get imageUrl(){return by},get sourceUrl(){return Uv(e.universalLink,"none")},disableCopy:!0})}}),Tf(Lw,{get children(){return[Tf(Mw,{appearance:"secondary",onClick:()=>e.onOpenLink(),get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Tf(Mw,{appearance:"secondary",onClick:()=>e.onCopy(),get children(){return Tf(zv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})];function Iw(e){const t=new Set(e.filter(Ou).map(e=>e.bridgeUrl));return Array.from(t).map(e=>({bridgeUrl:e}))}function Nw(e,t){const n=new Set(null==e?void 0:e.map(e=>e.bridgeUrl)),r=new Set(null==t?void 0:t.map(e=>e.bridgeUrl));return n.size===r.size&&[...n].every(e=>r.has(e))}const $w=Hf("<li></li>"),Dw=Hf('<div data-tc-wallets-modal-universal-mobile="true"></div>'),Ww=e=>{const[t,n]=Gd(!1),[r,o]=Gd(!0),[i,a]=Gd(null),s=rv.connector,l=()=>e.walletsList.filter(e=>lv(e)&&e.appName!==yy),c=()=>l().length>7,u=Xd(()=>Iw(e.walletsList),null,{equals:Nw}),d=Xd(()=>{var t,n;return null!=(n=null==(t=e.walletsList.find(e=>e.appName===yy))?void 0:t.isSupportRequiredFeatures)&&n},null),f=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());oh({openMethod:"universal-link"});const[p,h]=Gd(void 0),g=()=>Od(void 0,null,function*(){void 0!==p()&&clearTimeout(p()),yield Yg(f());const e=setTimeout(()=>h(void 0),1500);h(e)}),m=()=>{const e=!r();o(!1),Bv(f(),void 0,{returnStrategy:rv.returnStrategy,forceRedirect:e},e=>{oh({openMethod:e})})},y=()=>{a(null);const t=e.walletsList.find(e=>e.appName===yy);if(!t||!Ou(t))throw new Lp("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),Fv(n,{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:i})},b=()=>{n(!0),oh({openMethod:"qrcode"})},v=()=>{n(!1),oh({openMethod:"universal-link"})},w=Xd(()=>l().filter(e=>e.isSupportRequiredFeatures),null),x=Xd(()=>w().slice(0,3),null),C=Xd(()=>l().filter(e=>!x().find(t=>t.appName===e.appName)).slice(0,4),null);return(()=>{const n=Dw.cloneNode(!0);return Yf(n,Tf(jf,{get when(){return t()},get children(){return[Tf(Tw,{icon:"arrow",onClick:v}),Tf(jw,{get universalLink(){return f()},get isCopiedShown(){return p()},onOpenLink:m,onCopy:g})]}}),null),Yf(n,Tf(jf,{get when(){return!t()},get children(){return[Tf(Tw,{get icon(){return Tf(dy,{})},onClick:b}),Tf(kw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Tf(jf,{get when(){return d()},get children(){return[Tf(Sw,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:320,children:"Use Wallet in Telegram or choose other application"}),Tf(Ew,{get leftIcon(){return Tf(sy,{})},get rightIcon(){return Tf(_w,{get src(){return vy}})},onClick:y,scale:"s",get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Connect Wallet in Telegram"})}})]}}),Tf(Sw,{translationKey:"walletModal.mobileUniversalModal.chooseOtherApplication",maxWidth:342,padding:"0 24px 8px 24px",margin:"0",children:"Choose other application"}),Tf(um,{get children(){return[Tf(Mf,{get each(){return Xd(()=>!!c())()?x():w()},children:t=>(()=>{const n=$w.cloneNode(!0);return Yf(n,Tf(ym,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),Tf(jf,{get when(){return c()},get children(){const t=$w.cloneNode(!0);return Yf(t,Tf(my,{labelLine1:"View all",labelLine2:"wallets",get images(){return C().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})),t}})]}})]}}),null),n})()},zw={m:"16px",s:"8px",none:"0"},Uw={m:"8px",s:"4px",none:"0"},Fw=Cp.div`
988
+ `,jw=e=>[Tf(Aw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Tf(Rw,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),Tf(Ow,{get children(){return Tf(Xg,{get imageUrl(){return by},get sourceUrl(){return Uv(e.universalLink,"none")},disableCopy:!0})}}),Tf(Mw,{get children(){return[Tf(Lw,{appearance:"secondary",onClick:()=>e.onOpenLink(),get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})}}),Tf(Lw,{appearance:"secondary",onClick:()=>e.onCopy(),get children(){return Tf(zv,{get translationKey(){return void 0!==e.isCopiedShown?"common.copied":"common.copyLink"},get children(){return void 0!==e.isCopiedShown?"Copied":"Copy Link"}})}})]}})];function Iw(e){const t=new Set(e.filter(Ou).map(e=>e.bridgeUrl));return Array.from(t).map(e=>({bridgeUrl:e}))}function Nw(e,t){const n=new Set(null==e?void 0:e.map(e=>e.bridgeUrl)),r=new Set(null==t?void 0:t.map(e=>e.bridgeUrl));return n.size===r.size&&[...n].every(e=>r.has(e))}const $w=Hf("<li></li>"),Dw=Hf('<div data-tc-wallets-modal-universal-mobile="true"></div>'),Ww=e=>{const[t,n]=Gd(!1),[r,o]=Gd(!0),[i,a]=Gd(null),s=rv.connector,l=()=>e.walletsList.filter(e=>lv(e)&&e.appName!==yy),c=()=>l().length>7,u=Xd(()=>Iw(e.walletsList),null,{equals:Nw}),d=Xd(()=>{var t,n;return null!=(n=null==(t=e.walletsList.find(e=>e.appName===yy))?void 0:t.isSupportRequiredFeatures)&&n},null),f=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());oh({openMethod:"universal-link"});const[p,h]=Gd(void 0),g=()=>Od(void 0,null,function*(){void 0!==p()&&clearTimeout(p()),yield Yg(f());const e=setTimeout(()=>h(void 0),1500);h(e)}),m=()=>{const e=!r();o(!1),Bv(f(),void 0,{returnStrategy:rv.returnStrategy,forceRedirect:e},e=>{oh({openMethod:e})})},y=()=>{a(null);const t=e.walletsList.find(e=>e.appName===yy);if(!t||!Ou(t))throw new Mp("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),Fv(n,{returnStrategy:rv.returnStrategy,twaReturnUrl:rv.twaReturnUrl,forceRedirect:i})},b=()=>{n(!0),oh({openMethod:"qrcode"})},v=()=>{n(!1),oh({openMethod:"universal-link"})},w=Xd(()=>l().filter(e=>e.isSupportRequiredFeatures),null),x=Xd(()=>w().slice(0,3),null),C=Xd(()=>l().filter(e=>!x().find(t=>t.appName===e.appName)).slice(0,4),null);return(()=>{const n=Dw.cloneNode(!0);return Yf(n,Tf(jf,{get when(){return t()},get children(){return[Tf(Tw,{icon:"arrow",onClick:v}),Tf(jw,{get universalLink(){return f()},get isCopiedShown(){return p()},onOpenLink:m,onCopy:g})]}}),null),Yf(n,Tf(jf,{get when(){return!t()},get children(){return[Tf(Tw,{get icon(){return Tf(dy,{})},onClick:b}),Tf(kw,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your TON wallet"}),Tf(jf,{get when(){return d()},get children(){return[Tf(Sw,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:320,children:"Use Wallet in Telegram or choose other application"}),Tf(Ew,{get leftIcon(){return Tf(sy,{})},get rightIcon(){return Tf(_w,{get src(){return vy}})},onClick:y,scale:"s",get children(){return Tf(zv,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Connect Wallet in Telegram"})}})]}}),Tf(Sw,{translationKey:"walletModal.mobileUniversalModal.chooseOtherApplication",maxWidth:342,padding:"0 24px 8px 24px",margin:"0",children:"Choose other application"}),Tf(um,{get children(){return[Tf(Lf,{get each(){return Xd(()=>!!c())()?x():w()},children:t=>(()=>{const n=$w.cloneNode(!0);return Yf(n,Tf(ym,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),Tf(jf,{get when(){return c()},get children(){const t=$w.cloneNode(!0);return Yf(t,Tf(my,{labelLine1:"View all",labelLine2:"wallets",get images(){return C().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})),t}})]}})]}}),null),n})()},zw={m:"16px",s:"8px",none:"0"},Uw={m:"8px",s:"4px",none:"0"},Fw=Cp.div`
989
989
  display: flex;
990
990
  flex-direction: column;
991
991
  align-items: center;
@@ -1066,7 +1066,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1066
1066
  `,Cp(om)`
1067
1067
  color: ${e=>e.theme.colors.text.secondary};
1068
1068
  font-size: 16px;
1069
- `;const Kw=Hf("<li></li>"),Gw=e=>{const[t,n]=Gd(!1),r=rv.connector,o=Xd(()=>Iw(e.walletsList),null,{equals:Nw});oh({openMethod:"qrcode"});const i=Xd(()=>r.connect(o(),e.additionalRequest)),a=Xd(()=>e.walletsList.filter(e=>e.isSupportRequiredFeatures),null),s=Xd(()=>a().slice(0,3),null),l=Xd(()=>e.walletsList.filter(e=>!s().find(t=>t.appName===e.appName)).slice(0,4),null);return Tf(Fw,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[Tf(vm,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),Tf(Bw,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),Tf(Hw,{get sourceUrl(){return Uv(i(),"none")},get disableCopy(){return t()},get imageUrl(){return by}}),Tf(qw,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),Tf(Vw,{get children(){return[Tf(Mf,{get each(){return s()},children:t=>(()=>{const n=Kw.cloneNode(!0);return Yf(n,Tf(wy,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),Tf(my,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})]}})]}})},Qw={m:"16px",s:"8px",none:"0"},Yw=Cp(vm)`
1069
+ `;const Kw=Hf("<li></li>"),Gw=e=>{const[t,n]=Gd(!1),r=rv.connector,o=Xd(()=>Iw(e.walletsList),null,{equals:Nw});oh({openMethod:"qrcode"});const i=Xd(()=>r.connect(o(),e.additionalRequest)),a=Xd(()=>e.walletsList.filter(e=>e.isSupportRequiredFeatures),null),s=Xd(()=>a().slice(0,3),null),l=Xd(()=>e.walletsList.filter(e=>!s().find(t=>t.appName===e.appName)).slice(0,4),null);return Tf(Fw,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[Tf(vm,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),Tf(Bw,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),Tf(Hw,{get sourceUrl(){return Uv(i(),"none")},get disableCopy(){return t()},get imageUrl(){return by}}),Tf(qw,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),Tf(Vw,{get children(){return[Tf(Lf,{get each(){return s()},children:t=>(()=>{const n=Kw.cloneNode(!0);return Yf(n,Tf(wy,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),Tf(my,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().map(e=>e.imageUrl)},onClick:()=>e.onSelectAllWallets()})]}})]}})},Qw={m:"16px",s:"8px",none:"0"},Yw=Cp(vm)`
1070
1070
  max-width: 288px;
1071
1071
  margin: 0 auto 38px;
1072
1072
  `,Zw=Cp.div`
@@ -1099,7 +1099,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1099
1099
  font: inherit;
1100
1100
  `;const tx=Cp.div`
1101
1101
  margin-bottom: 46px;
1102
- `,nx=Cp(Mm)`
1102
+ `,nx=Cp(Lm)`
1103
1103
  margin-bottom: 16px;
1104
1104
  `;Cp.ul`
1105
1105
  display: flex;
@@ -1159,7 +1159,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1159
1159
  font-weight: 700;
1160
1160
  font-size: 22px;
1161
1161
  color: ${e=>{var t;return null==(t=e.theme)?void 0:t.colors.text.primary}};
1162
- `,px=e=>Tf(ax,{"data-tc-wallets-modal-restore":"true",get children(){return[Tf(sx,{icon:"arrow",get onClick(){return e.onBackClick}}),Tf(lx,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),Tf(Ay,{get children(){return[Tf(cx,{get children(){return[Tf(fx,{children:"1"}),Tf(ux,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),Tf(dx,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),Tf(cx,{get children(){return[Tf(fx,{children:"2"}),Tf(ux,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),Tf(dx,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),Tf(cx,{get children(){return[Tf(fx,{children:"3"}),Tf(ux,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),Tf(dx,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),hx=e=>{const[t,n]=Gd(null),[r,o]=Gd(!1),i=Xd(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Xd(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===yy?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Xd(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=Iu(t.features,r),a=Iu(e.currentWallet.device.features,r);return o&&!a});return Tf(Zw,{get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return r()},get children(){return Tf(px,{onBackClick:()=>o(!1)})}}),Tf(Nf,{get when(){return t()},get children(){return[Tf(tx,{}),Tf(Zw,{get children(){return[Tf(Xw,{icon:"arrow",onClick:()=>n(null)}),Tf(Jw,{translationKey:"walletModal.featureNotSupported.disconnect.title",children:"Confirm Disconnect"}),Tf(ex,{translationKey:"walletModal.featureNotSupported.disconnect.description",get translationValues(){return{name:t().name}},get children(){return["You will be disconnected from your current wallet and redirected to connect ",Xd(()=>{var e;return null==(e=t())?void 0:e.name}),"."]}}),Tf(rx,{onClick:()=>Od(void 0,null,function*(){yield e.onDisconnect(),e.onSelect(t())}),get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.disconnect.button",children:"Disconnect"})}})]}})]}}),Tf(Nf,{get when(){return s()},get children(){return[Tf(Yw,{get children(){return a()}}),Tf(nx,{size:"s"}),Tf(ox,{translationKey:"walletModal.featureNotSupported.version.description",get translationValues(){return{name:a()}},get children(){return["Your current version of ",Xd(()=>a())," or wallet contract type doesn't support the required features. Please update it to continue."]}}),Tf(ix,{get children(){return[Tf(Py,{get href(){return i().aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.version.updateButton",get translationValues(){return{name:a()}},get children(){return["Update ",Xd(()=>a())]}})}})}}),Tf(Py,{href:"https://tonkeeper.helpscoutdocs.com/article/102-w5",blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.version.aboutW5",children:"About W5"})}})}})]}})]}}),Tf(Nf,{when:!0,get children(){return[Tf(tx,{}),Tf(nx,{size:"s"}),Tf(Jw,{translationKey:"walletModal.featureNotSupported.wallet.title",get translationValues(){return{name:a()}},get children(){return[Xd(()=>a())," doesn’t support the requested action"]}}),Tf(tx,{})]}})]}})}})},gx=()=>{const{locale:e}=nm()[1];Zd(()=>e(rv.language)),Zd(()=>{Yp()?Ty():(i(null),c("universal"),d(!1))});const t=sf(uh),n=sf(Oy),[r]=Jd(()=>n.getWallets()),[o,i]=Gd(null),[a,s]=Gd(null),[l,c]=Gd("universal"),[u,d]=Gd(!1),f=Xd(()=>{const e=Gp();return"type"in e&&"wallet-not-support-feature"===e.type}),p=Xd(()=>{var e;if("ready"!==r.state)return null;let t=av(r(),rv.walletsListConfiguration);const o=t.filter(Ru),i=t.filter(e=>!Ru(e));t=(o||[]).concat(i);const a=rv.preferredWalletAppName,s=t.find(e=>uv(e,a)),l=t.filter(e=>uv(e,a)).length>=2;a&&s&&!l&&(t=[Rd(Ad({},s),{isPreferred:!0})].concat(t.filter(e=>!uv(e,a))));const c=t.find(e=>uv(e,yy));c&&(t=[c].concat(t.filter(e=>!uv(e,yy))));const u=null!=(e=null==n?void 0:n.walletsRequiredFeatures)?e:null==n?void 0:n.walletsPreferredFeatures;return t.map(e=>{var t;return Rd(Ad({},e),{isSupportRequiredFeatures:!u||Iu(null!=(t=e.features)?t:[],u)})})}),h=()=>{var e;return"loading"===(null==(e=rv.connectRequestParameters)?void 0:e.state)},g=Xd(()=>{var e;if(!h())return null==(e=rv.connectRequestParameters)?void 0:e.value}),m=e=>{n.closeModal(e)},y=t.onStatusChange(e=>{e&&m("wallet-selected")},e=>{var t;if(e instanceof Kc){const n=e.cause.connectEvent.device.appName.toLowerCase(),r=null==(t=p())?void 0:t.find(e=>e.appName.toLowerCase()===n);if(!r)throw new Wc("Wallet not found");const o=r.isSupportRequiredFeatures?"missing-features":"not-supported";s(o),i(r)}}),b=()=>{c("all-wallets")},v=()=>{c("universal")},w=e=>{i(e),Lx.openWalletsModal()},x=()=>{i(null),s(null)};return rf(()=>{i(null),s(null),d(!1)}),rf(y),Tf(ev,{get opened(){return Yp()},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>m("action-cancelled"),onClickQuestion:()=>d(e=>!e),get showFooter(){return!f()},"data-tc-wallets-modal-container":"true",get children(){return[Tf(jf,{get when(){return u()},get children(){return Tf(tw,{onBackClick:()=>d(!1)})}}),Tf(jf,{get when(){return!u()},get children(){return[Tf(jf,{get when(){return h()||!p()},get children(){return[Tf(tv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Tf(nv,{get children(){return Tf($m,{size:"m"})}})]}}),Tf(jf,{get when(){return Xd(()=>!h())()&&p()},get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return f()},get children(){return Tf(hx,{get walletsList(){return p()},get currentWallet(){return null==n?void 0:n.wallet},onSelect:w,onSelectAllWallets:b,onDisconnect:()=>t.disconnect(),get walletsModalState(){return Gp()},onClose:()=>m("action-cancelled")})}}),Tf(Nf,{get when(){return o()},get children(){return Tf(sp,{get component(){return Ey()?ww:Hv},get wallet(){return o()},get additionalRequest(){return g()},onBackClick:x,get defaultError(){return a()}})}}),Tf(Nf,{get when(){return"universal"===l()},get children(){return Tf(sp,{get component(){return Ey()?Ww:Gw},onSelect:i,get walletsList(){return p()},get additionalRequest(){return g()},onSelectAllWallets:b})}}),Tf(Nf,{get when(){return"all-wallets"===l()},get children(){return Tf(kv,{get walletsList(){return p()},get featureCheckMode(){return(null==n?void 0:n.walletsRequiredFeatures)?"strict":"soft"},onBack:v,onSelect:i})}})]}})}})]}})]}})},mx=Cp.div`
1162
+ `,px=e=>Tf(ax,{"data-tc-wallets-modal-restore":"true",get children(){return[Tf(sx,{icon:"arrow",get onClick(){return e.onBackClick}}),Tf(lx,{translationKey:"walletModal.restoreInfoModal.title",children:"Restore"}),Tf(Py,{get children(){return[Tf(cx,{get children(){return[Tf(fx,{children:"1"}),Tf(ux,{translationKey:"walletModal.restoreModal.step1.title",children:"Find your current recovery phrase"}),Tf(dx,{translationKey:"walletModal.restoreModal.step1.text",children:"Open your wallet settings and locate the recovery phrase"})]}}),Tf(cx,{get children(){return[Tf(fx,{children:"2"}),Tf(ux,{translationKey:"walletModal.restoreModal.step2.title",children:"Copy your recovery phrase"}),Tf(dx,{translationKey:"walletModal.restoreModal.step2.text",children:"Write it down or copy it to a safe place"})]}}),Tf(cx,{get children(){return[Tf(fx,{children:"3"}),Tf(ux,{translationKey:"walletModal.restoreModal.step3.title",children:"Restore in a supported wallet from the list below"}),Tf(dx,{translationKey:"walletModal.restoreModal.step3.text",children:"Enter the recovery phrase to access your wallet"})]}})]}})]}}),hx=e=>{const[t,n]=Gd(null),[r,o]=Gd(!1),i=Xd(()=>e.walletsList.find(t=>t.appName===e.currentWallet.device.appName||t.name===e.currentWallet.device.appName)),a=Xd(()=>{var t,n,r,o;return(null!=(n=null==(t=i())?void 0:t.appName)?n:e.currentWallet.device.appName)===yy?"Wallet in Telegram":null!=(o=null==(r=i())?void 0:r.name)?o:e.currentWallet.device.appName}),s=Xd(()=>{const t=i();if(!(null==t?void 0:t.features))return!1;const n=e.walletsModalState.requiredFeature,r=n?{[n.featureName]:n.value}:{},o=Iu(t.features,r),a=Iu(e.currentWallet.device.features,r);return o&&!a});return Tf(Zw,{get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return r()},get children(){return Tf(px,{onBackClick:()=>o(!1)})}}),Tf(Nf,{get when(){return t()},get children(){return[Tf(tx,{}),Tf(Zw,{get children(){return[Tf(Xw,{icon:"arrow",onClick:()=>n(null)}),Tf(Jw,{translationKey:"walletModal.featureNotSupported.disconnect.title",children:"Confirm Disconnect"}),Tf(ex,{translationKey:"walletModal.featureNotSupported.disconnect.description",get translationValues(){return{name:t().name}},get children(){return["You will be disconnected from your current wallet and redirected to connect ",Xd(()=>{var e;return null==(e=t())?void 0:e.name}),"."]}}),Tf(rx,{onClick:()=>Od(void 0,null,function*(){yield e.onDisconnect(),e.onSelect(t())}),get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.disconnect.button",children:"Disconnect"})}})]}})]}}),Tf(Nf,{get when(){return s()},get children(){return[Tf(Yw,{get children(){return a()}}),Tf(nx,{size:"s"}),Tf(ox,{translationKey:"walletModal.featureNotSupported.version.description",get translationValues(){return{name:a()}},get children(){return["Your current version of ",Xd(()=>a())," or wallet contract type doesn't support the required features. Please update it to continue."]}}),Tf(ix,{get children(){return[Tf(Ry,{get href(){return i().aboutUrl},blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.version.updateButton",get translationValues(){return{name:a()}},get children(){return["Update ",Xd(()=>a())]}})}})}}),Tf(Ry,{href:"https://tonkeeper.helpscoutdocs.com/article/102-w5",blank:!0,get children(){return Tf(og,{get leftIcon(){return Tf(Zm,{})},get children(){return Tf(zv,{translationKey:"walletModal.featureNotSupported.version.aboutW5",children:"About W5"})}})}})]}})]}}),Tf(Nf,{when:!0,get children(){return[Tf(tx,{}),Tf(nx,{size:"s"}),Tf(Jw,{translationKey:"walletModal.featureNotSupported.wallet.title",get translationValues(){return{name:a()}},get children(){return[Xd(()=>a())," doesn’t support the requested action"]}}),Tf(tx,{})]}})]}})}})},gx=()=>{const{locale:e}=nm()[1];Zd(()=>e(rv.language)),Zd(()=>{Yp()?Ty():(i(null),c("universal"),d(!1))});const t=sf(uh),n=sf(Oy),[r]=Jd(()=>n.getWallets()),[o,i]=Gd(null),[a,s]=Gd(null),[l,c]=Gd("universal"),[u,d]=Gd(!1),f=Xd(()=>{const e=Gp();return"type"in e&&"wallet-not-support-feature"===e.type}),p=Xd(()=>{var e;if("ready"!==r.state)return null;let t=av(r(),rv.walletsListConfiguration);const o=t.filter(Au),i=t.filter(e=>!Au(e));t=(o||[]).concat(i);const a=rv.preferredWalletAppName,s=t.find(e=>uv(e,a)),l=t.filter(e=>uv(e,a)).length>=2;a&&s&&!l&&(t=[Ad(Pd({},s),{isPreferred:!0})].concat(t.filter(e=>!uv(e,a))));const c=t.find(e=>uv(e,yy));c&&(t=[c].concat(t.filter(e=>!uv(e,yy))));const u=null!=(e=null==n?void 0:n.walletsRequiredFeatures)?e:null==n?void 0:n.walletsPreferredFeatures;return t.map(e=>{var t;return Ad(Pd({},e),{isSupportRequiredFeatures:!u||Iu(null!=(t=e.features)?t:[],u)})})}),h=()=>{var e;return"loading"===(null==(e=rv.connectRequestParameters)?void 0:e.state)},g=Xd(()=>{var e;if(!h())return null==(e=rv.connectRequestParameters)?void 0:e.value}),m=e=>{n.closeModal(e)},y=t.onStatusChange(e=>{e&&m("wallet-selected")},e=>{var t;if(e instanceof Kc){const n=e.cause.connectEvent.device.appName.toLowerCase(),r=null==(t=p())?void 0:t.find(e=>e.appName.toLowerCase()===n);if(!r)throw new Wc("Wallet not found");const o=r.isSupportRequiredFeatures?"missing-features":"not-supported";s(o),i(r)}}),b=()=>{c("all-wallets")},v=()=>{c("universal")},w=e=>{i(e),Mx.openWalletsModal()},x=()=>{i(null),s(null)};return rf(()=>{i(null),s(null),d(!1)}),rf(y),Tf(ev,{get opened(){return Yp()},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>m("action-cancelled"),onClickQuestion:()=>d(e=>!e),get showFooter(){return!f()},"data-tc-wallets-modal-container":"true",get children(){return[Tf(jf,{get when(){return u()},get children(){return Tf(tw,{onBackClick:()=>d(!1)})}}),Tf(jf,{get when(){return!u()},get children(){return[Tf(jf,{get when(){return h()||!p()},get children(){return[Tf(tv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Tf(nv,{get children(){return Tf($m,{size:"m"})}})]}}),Tf(jf,{get when(){return Xd(()=>!h())()&&p()},get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return f()},get children(){return Tf(hx,{get walletsList(){return p()},get currentWallet(){return null==n?void 0:n.wallet},onSelect:w,onSelectAllWallets:b,onDisconnect:()=>t.disconnect(),get walletsModalState(){return Gp()},onClose:()=>m("action-cancelled")})}}),Tf(Nf,{get when(){return o()},get children(){return Tf(sp,{get component(){return Ey()?ww:Hv},get wallet(){return o()},get additionalRequest(){return g()},onBackClick:x,get defaultError(){return a()}})}}),Tf(Nf,{get when(){return"universal"===l()},get children(){return Tf(sp,{get component(){return Ey()?Ww:Gw},onSelect:i,get walletsList(){return p()},get additionalRequest(){return g()},onSelectAllWallets:b})}}),Tf(Nf,{get when(){return"all-wallets"===l()},get children(){return Tf(kv,{get walletsList(){return p()},get featureCheckMode(){return(null==n?void 0:n.walletsRequiredFeatures)?"strict":"soft"},onBack:v,onSelect:i})}})]}})}})]}})]}})},mx=Cp.div`
1163
1163
  display: flex;
1164
1164
  flex-direction: column;
1165
1165
  align-items: center;
@@ -1182,7 +1182,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1182
1182
  width: 16px;
1183
1183
  `,xx=Cp(og)`
1184
1184
  margin-top: 32px;
1185
- `,Cx=e=>{const t=rg(e),n=sf(Oy),[r,o]=Gd(!0),[i,a]=Gd(!1),[s,l]=Gd(!1),[c,u]=Gd(!1);let d,f;Zd(()=>{const e=ih();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||uu(n.wallet.universalLink)&&Uh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||uu(n.wallet.deepLink)&&Uh())&&(f=n.wallet.deepLink);const p=()=>{const e=ih(),t="returnStrategy"in e?e.returnStrategy:rv.returnStrategy,n=!r();o(!1),uu(d)?Fv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:rv.twaReturnUrl,forceRedirect:n}):Bv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Tf(mx,Of(t,{get children(){return[Xd(()=>e.icon),Tf(yx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Tf(bx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Tf(jf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Tf(vx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Tf(wx,{})}})}}),Tf(jf,{get when(){return i()||s()},get children(){return[Tf(jf,{get when(){return"open-wallet"!==e.showButton},get children(){return Tf(xx,{onClick:()=>e.onClose(),get children(){return Tf(zv,{translationKey:"common.close",children:"Close"})}})}}),Tf(jf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Tf(xx,{onClick:p,get children(){return Tf(zv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},kx=e=>{const t=sf(Oy),[n]=nm();return Tf(Cx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Tf($m,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Sx=e=>Tf(Cx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Tf(Mm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),Ex=e=>Tf(Cx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Tf(Rm,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),_x=e=>{const t=sf(Oy),[n]=nm();return Tf(Cx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Tf($m,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Tx=e=>Tf(Cx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Tf(Mm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),Ax=e=>Tf(Cx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Tf(Rm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Rx=()=>Tf(Mg,{get opened(){var e;return Xd(()=>null!==ih())()&&!0===(null==(e=ih())?void 0:e.openModal)},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>ah(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return"transaction-sent"===ih().name},get children(){return Tf(Ex,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"transaction-canceled"===ih().name},get children(){return Tf(Sx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"confirm-transaction"===ih().name},get children(){return Tf(kx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"data-signed"===ih().name},get children(){return Tf(Ax,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"sign-data-canceled"===ih().name},get children(){return Tf(Tx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"confirm-sign-data"===ih().name},get children(){return Tf(_x,{onClose:()=>ah(null)})}})]}})}}),Px=()=>{const{locale:e}=nm()[1];Zd(()=>e(rv.language)),Zd(()=>{Jp()&&Ty()});const t=sf(uh),n=sf(Oy),[r,o]=Gd(!1),i=()=>{var e;return"loading"===(null==(e=rv.connectRequestParameters)?void 0:e.state)},a=Xd(()=>{var e;if(!i())return null==(e=rv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return rf(t.onStatusChange(e=>{e&&s("wallet-selected")})),rf(()=>{o(!1)}),Tf(ev,{get opened(){return Jp()},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Tf(jf,{get when(){return r()},get children(){return Tf(tw,{onBackClick:()=>o(!1)})}}),Tf(jf,{get when(){return!r()},get children(){return[Tf(jf,{get when(){return i()},get children(){return[Tf(tv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Tf(nv,{get children(){return Tf($m,{size:"m"})}})]}}),Tf(jf,{get when(){return!i()},get children(){return Tf(sp,{get component(){return Ey()?ww:Hv},get wallet(){return eh()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ox=e=>{const t=em(lh,rv.language);return customElements.define(Sp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Tf(tm.Provider,{value:t,get children(){return Tf(Oy.Provider,{get value(){return e.tonConnectUI},get children(){return Tf(uh.Provider,{get value(){return rv.connector},get children(){return[Tf(Tp,{}),Tf(vp,{theme:Ph,get children(){return[Tf(jf,{get when(){return rv.buttonRootId},get children(){return Tf(ap,{get mount(){return document.getElementById(rv.buttonRootId)},get children(){return Tf(Jb,{})}})}}),Tf(sp,{component:Sp,get children(){return[Tf(gx,{}),Tf(Px,{}),Tf(Rx,{})]}})]}})]}})}})}})},Lx={openWalletsModal:()=>{setTimeout(()=>Qp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Qp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Xp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Xp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Qp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>ah(e))},clearAction:()=>{setTimeout(()=>ah(null))},getSelectedWalletInfo:()=>nh(),removeSelectedWalletInfo:()=>oh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Kd(r=>{o=r,t===document?e():Yf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Tf(Ox,{tonConnectUI:t}),document.getElementById(e))};class Mx{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Gp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zd(()=>{const e=Gp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Od(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Pu);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Lx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Od(this,null,function*(){return Uh()&&Bh(),Lx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class jx{constructor(e){Pd(this,"connector"),Pd(this,"consumers",[]),this.connector=e.connector,Zd(()=>{const e=ih();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class Ix{constructor(e){Pd(this,"connector"),Pd(this,"setConnectRequestParametersCallback"),Pd(this,"consumers",[]),Pd(this,"tracker"),Pd(this,"state",Zp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zd(()=>{const e=Zp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Od(this,null,function*(){this.tracker.trackConnectionStarted();const t=av(yield this.connector.getWallets(),rv.walletsListConfiguration),n=t.find(Pu);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Ou).find(t=>uv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Lp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Lx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Od(this,null,function*(){return Uh()&&Bh(),Lx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Nx{constructor(e){var t;Pd(this,"eventPrefix","ton-connect-ui-"),Pd(this,"tonConnectUiVersion"),Pd(this,"tonConnectSdkVersion",null),Pd(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new ed,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Du({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Od(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(cS){}})}setRequestVersionHandler(){return Od(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Od(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",$u(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Od(this,null,function*(){return new Promise((e,t)=>Od(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(cS){t(cS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(cS){}}trackConnectionStarted(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionError(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringStarted(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringCompleted(...e){try{const t=qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringError(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDisconnection(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSentForSignature(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSigned(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSigningFailed(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSentForSignature(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSigned(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSigningFailed(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}}class $x{constructor(e){if(Pd(this,"walletInfoStorage",new Hp),Pd(this,"preferredWalletStorage",new Vp),Pd(this,"tracker"),Pd(this,"walletInfo",null),Pd(this,"systemThemeChangeUnsubscribe",null),Pd(this,"actionsConfiguration"),Pd(this,"walletsList"),Pd(this,"_walletsRequiredFeatures"),Pd(this,"_walletsPreferredFeatures"),Pd(this,"connectRequestParametersCallback"),Pd(this,"connector"),Pd(this,"modal"),Pd(this,"singleWalletModal"),Pd(this,"transactionModal"),Pd(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Lp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new nd({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new Nx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Mx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Ix({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new jx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Dp((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Od(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Od(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Rh(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();ov({connector:this.connector,preferredWalletAppName:n}),Lx.renderApp(t,this)}static getWallets(){return nd.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Ad(Ad({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),jh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(jh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?lp.LIGHT:lp.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?lp.DARK:lp.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(jh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Mh[lp.DARK]=Rh(a[lp.DARK],Mh[lp.DARK]),Mh[lp.LIGHT]=Rh(a[lp.LIGHT],Mh[lp.LIGHT]),Oh(e=>({colors:Rh(Mh[e.theme],Lh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Oh({borderRadius:s})),ov(t=>{var n,r;const o=Rh(Ad(Ad(Ad(Ad({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),mh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;ov({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Od(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Od(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(Ad(Ad({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Od(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Od(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Od(this,null,function*(){const e=(yield this.getWallets()).find(Pu);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Lx.clearAction(),Lx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Od(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Lp("Connect wallet to send a transaction.");Uh()&&Bh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Lx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Lx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Lx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(cS){if(cS instanceof Vc)throw Lx.clearAction(),Lx.openWalletNotSupportFeatureModal(cS.cause),cS;throw Lx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),cS instanceof Wc?cS:(console.error(cS),new Lp("Unhandled error:"+cS))}finally{l()}})}signData(e){return Od(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Lp("Connect wallet to send a transaction.");Uh()&&Bh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Lx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Lx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Lx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(cS){if(cS instanceof Vc)throw Lx.clearAction(),Lx.openWalletNotSupportFeatureModal(cS.cause),cS;throw Lx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),cS instanceof Wc?cS:(console.error(cS),new Lp("Unhandled error:"+cS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(uu(this.walletInfo.universalLink)?Fv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||rv.twaReturnUrl,forceRedirect:!1}):Bv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Od(this,null,function*(){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Od(this,null,function*(){const e=new AbortController;Lx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Od(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Lp("Wallet was not connected"));const i=e=>Od(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Lp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Lp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Od(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Lp("Transaction was not sent"));const a=e=>Od(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Lp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Od(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Lp("SignData was not sent"));const a=e=>Od(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Lp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Od(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),ov({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Od(this,null,function*(){let t,n=Lx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=av(yield this.walletsList,rv.walletsListConfiguration).find(t=>uv(t,e.device.appName));if(!r)throw new Lp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=Ad(Ad({},r),n)}return t})}updateWalletInfo(e){return Od(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>uv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Lp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Uh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Dx,Wx={exports:{}},zx=Wx.exports;var Ux=(Dx||(Dx=1,function(e,t){var r,o;r="object"==typeof window&&window||zx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}(Wx,Wx.exports)),Wx.exports);const Fx=r(Ux);const Bx=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?rd(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new $x({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(Fx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;Fx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{Fx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Vl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Vl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const qx=new class{constructor(){this._adConfigs={},this._adControllers={}}init(){if(tc())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${cc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${cc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(ic()&&tc()&&nc()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Bx.connected&&Bx.friendlyAddress==cc.boundWallet)return e();Bx.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await lc.gameInfo();let t=(e.catalog||[]).filter(e=>e==jl.airdrop||e==jl.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return cc.gameInfo=n,cc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return lc.login().then(e=>{let t=ta.GAME_ID,n=cc.plutoId=e.plutoid,r=cc.firstName=e.tgfirstname,o=cc.lastName=e.tglastname,i=cc.icon=e.icon,a=e.ticket;return cc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return lc.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;cc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=cc.purchaseData;return lc.order(n,r,o,i,e,t,a).then(e=>(cc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress,coc:e.coc||"0"}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await lc.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return lc.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return lc.checkIn(e,t,n).then(r=>{cc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await lc.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return lc.getItem(e).then(e=>e.v)}reqSetItem(e,t){return lc.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),lc.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return lc.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&lc.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{lc.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});cc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return lc.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e){if("1041"!=ta.GAME_ID&&"1048"!=ta.GAME_ID)return;if(cc.gameUserId)return;let t=0,n=100;for(;;)try{return void(await lc.setGameUserId(e))}catch(r){if(t++,t>=100)throw r;await new Promise(e=>setTimeout(e,n)),n*=1.2}}reqCocGetInfo(){return lc.cocGetInfo().then(e=>(cc.gameUserId=e.userid,{coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[zl.coc];return lc.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return lc.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return lc.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return lc.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return lc.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return lc.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return lc.spGetInfo().then(e=>(cc.gameUserId=e.userid,{balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Ul[zl.croco];return lc.spWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return lc.spClaim(e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return lc.spGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return lc.spGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return lc.spQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return lc.spCancelWithdraw(e).then(e=>({amount:e.amount,balance:e.balance}))}},Hx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function Vx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Hx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Gx=M.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,h=M.isValidElement(r)&&"svg"===r.type,g={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Kr({root:["root","inherit"!==t&&`color${$(t)}`,`fontSize${$(n)}`]},Vx,r)})(g);return d.jsxs(Kx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Qx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Yx(e){const t=M.useRef(e);return Sr(()=>{t.current=e}),M.useRef((...e)=>(0,t.current)(...e)).current}function Zx(...e){const t=M.useRef(void 0),n=M.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return M.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Xx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Jx(e,t){return(Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jx(e,t)}Gx.muiName="SvgIcon";const tC=r(P()),nC=!1,rC=j.createContext(null);var oC="unmounted",iC="exited",aC="entering",sC="entered",lC="exiting",cC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=iC,r.appearStatus=aC):o=sC:o=t.unmountOnExit||t.mountOnEnter?oC:iC,r.state={status:o},r.nextCallback=null,r}eC(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oC?{status:iC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==aC&&n!==sC&&(t=aC):n!==aC&&n!==sC||(t=lC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===aC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:tC.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iC&&this.setState({status:oC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[tC.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||nC?this.safeSetState({status:sC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:aC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:sC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:tC.findDOMNode(this);t&&!nC?(this.props.onExit(r),this.safeSetState({status:lC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:iC},function(){e.props.onExited(r)})})})):this.safeSetState({status:iC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:tC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===oC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Xx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(rC.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function uC(){}function dC(e,t){var n=Object.create(null);return e&&M.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&M.isValidElement(e)?t(e):e}(e)}),n}function fC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pC(e,t,n){var r=dC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(M.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=M.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M.isValidElement(c)&&(o[i]=M.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:fC(a,"exit",e),enter:fC(a,"enter",e)})):o[i]=M.cloneElement(a,{in:!1}):o[i]=M.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fC(a,"exit",e),enter:fC(a,"enter",e)})}}),o}cC.contextType=rC,cC.propTypes={},cC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uC,onEntering:uC,onEntered:uC,onExit:uC,onExiting:uC,onExited:uC},cC.UNMOUNTED=oC,cC.EXITED=iC,cC.ENTERING=aC,cC.ENTERED=sC,cC.EXITING=lC;var hC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}eC(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,dC(n.children,function(e){return M.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fC(e,"appear",n),enter:fC(e,"enter",n),exit:fC(e,"exit",n)})})):pC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=dC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Xx(e,["component","childFactory"]),o=this.state.contextValue,i=hC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(rC.Provider,{value:o},i):j.createElement(rC.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);gC.propTypes={},gC.defaultProps={component:"div",childFactory:function(e){return e}};const mC={};function yC(e,t){const n=M.useRef(mC);return n.current===mC&&(n.current=e(t)),n}const bC=[];class vC{static create(){return new vC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function wC(){const e=yC(vC.create).current;var t;return t=e.disposeEffect,M.useEffect(t,bC),e}const xC=e=>e.scrollTop;function CC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function kC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class SC{static create(){return new SC}static use(){const e=yC(SC.create).current,[t,n]=M.useState(!1);return e.shouldMount=t,e.setShouldMount=n,M.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const EC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_C=Nn`
1185
+ `,Cx=e=>{const t=rg(e),n=sf(Oy),[r,o]=Gd(!0),[i,a]=Gd(!1),[s,l]=Gd(!1),[c,u]=Gd(!1);let d,f;Zd(()=>{const e=ih();a(!!e&&("sent"in e&&e.sent||"transaction-sent"===e.name)),l(!!e&&("signed"in e&&e.signed||"data-signed"===e.name)),u(!!e&&("transaction-canceled"===e.name||"sign-data-canceled"===e.name))}),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||uu(n.wallet.universalLink)&&Uh())&&(d=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||uu(n.wallet.deepLink)&&Uh())&&(f=n.wallet.deepLink);const p=()=>{const e=ih(),t="returnStrategy"in e?e.returnStrategy:rv.returnStrategy,n=!r();o(!1),uu(d)?Fv(d,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:rv.twaReturnUrl,forceRedirect:n}):Bv(d,f,{returnStrategy:t,forceRedirect:n},()=>{})};return Tf(mx,Of(t,{get children(){return[Xd(()=>e.icon),Tf(yx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Tf(bx,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Tf(jf,{get when(){return!i()&&!s()&&!c()&&("open-wallet"===e.showButton&&d||"open-wallet"!==e.showButton)},get children(){return Tf(vx,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Tf(wx,{})}})}}),Tf(jf,{get when(){return i()||s()},get children(){return[Tf(jf,{get when(){return"open-wallet"!==e.showButton},get children(){return Tf(xx,{onClick:()=>e.onClose(),get children(){return Tf(zv,{translationKey:"common.close",children:"Close"})}})}}),Tf(jf,{get when(){return"open-wallet"===e.showButton&&d},get children(){return Tf(xx,{onClick:p,get children(){return Tf(zv,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},kx=e=>{const t=sf(Oy),[n]=nm();return Tf(Cx,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Tf($m,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Sx=e=>Tf(Cx,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Tf(Lm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),Ex=e=>Tf(Cx,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Tf(Am,{size:"m"})},showButton:"open-wallet",onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),_x=e=>{const t=sf(Oy),[n]=nm();return Tf(Cx,{headerTranslationKey:"actionModal.signData.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.signData.text",get icon(){return Tf($m,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-sign-data-confirm-modal":"true"})},Tx=e=>Tf(Cx,{headerTranslationKey:"actionModal.signDataCanceled.header",get icon(){return Tf(Lm,{size:"m"})},onClose:()=>e.onClose(),"data-tc-sign-data-canceled-modal":"true"}),Px=e=>Tf(Cx,{headerTranslationKey:"actionModal.dataSigned.header",get icon(){return Tf(Am,{size:"m"})},onClose:()=>e.onClose(),"data-tc-data-signed-modal":"true"}),Ax=()=>Tf(Lg,{get opened(){var e;return Xd(()=>null!==ih())()&&!0===(null==(e=ih())?void 0:e.openModal)},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>ah(null),showFooter:!1,"data-tc-actions-modal-container":"true",get children(){return Tf(If,{get children(){return[Tf(Nf,{get when(){return"transaction-sent"===ih().name},get children(){return Tf(Ex,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"transaction-canceled"===ih().name},get children(){return Tf(Sx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"confirm-transaction"===ih().name},get children(){return Tf(kx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"data-signed"===ih().name},get children(){return Tf(Px,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"sign-data-canceled"===ih().name},get children(){return Tf(Tx,{onClose:()=>ah(null)})}}),Tf(Nf,{get when(){return"confirm-sign-data"===ih().name},get children(){return Tf(_x,{onClose:()=>ah(null)})}})]}})}}),Rx=()=>{const{locale:e}=nm()[1];Zd(()=>e(rv.language)),Zd(()=>{Jp()&&Ty()});const t=sf(uh),n=sf(Oy),[r,o]=Gd(!1),i=()=>{var e;return"loading"===(null==(e=rv.connectRequestParameters)?void 0:e.state)},a=Xd(()=>{var e;if(!i())return null==(e=rv.connectRequestParameters)?void 0:e.value}),s=e=>{n.closeSingleWalletModal(e)};return rf(t.onStatusChange(e=>{e&&s("wallet-selected")})),rf(()=>{o(!1)}),Tf(ev,{get opened(){return Jp()},get enableAndroidBackHandler(){return rv.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(e=>!e),showFooter:!0,"data-tc-wallets-modal-container":"true",get children(){return[Tf(jf,{get when(){return r()},get children(){return Tf(tw,{onBackClick:()=>o(!1)})}}),Tf(jf,{get when(){return!r()},get children(){return[Tf(jf,{get when(){return i()},get children(){return[Tf(tv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Tf(nv,{get children(){return Tf($m,{size:"m"})}})]}}),Tf(jf,{get when(){return!i()},get children(){return Tf(sp,{get component(){return Ey()?ww:Hv},get wallet(){return eh()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ox=e=>{const t=em(lh,rv.language);return customElements.define(Sp,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Tf(tm.Provider,{value:t,get children(){return Tf(Oy.Provider,{get value(){return e.tonConnectUI},get children(){return Tf(uh.Provider,{get value(){return rv.connector},get children(){return[Tf(Tp,{}),Tf(vp,{theme:Rh,get children(){return[Tf(jf,{get when(){return rv.buttonRootId},get children(){return Tf(ap,{get mount(){return document.getElementById(rv.buttonRootId)},get children(){return Tf(Jb,{})}})}}),Tf(sp,{component:Sp,get children(){return[Tf(gx,{}),Tf(Rx,{}),Tf(Ax,{})]}})]}})]}})}})}})},Mx={openWalletsModal:()=>{setTimeout(()=>Qp({status:"opened",closeReason:null}))},closeWalletsModal:e=>{setTimeout(()=>Qp({status:"closed",closeReason:e}))},openSingleWalletModal:e=>{setTimeout(()=>Xp({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>{setTimeout(()=>Xp({status:"closed",closeReason:e}))},openWalletNotSupportFeatureModal:e=>{setTimeout(()=>Qp({status:"opened",closeReason:null,type:"wallet-not-support-feature",requiredFeature:e.requiredFeature}))},setAction:e=>{setTimeout(()=>ah(e))},clearAction:()=>{setTimeout(()=>ah(null))},getSelectedWalletInfo:()=>nh(),removeSelectedWalletInfo:()=>oh(null),renderApp:(e,t)=>function(e,t,n,r={}){let o;return Kd(r=>{o=r,t===document?e():Yf(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}(()=>Tf(Ox,{tonConnectUI:t}),document.getElementById(e))};class Lx{constructor(e){Rd(this,"connector"),Rd(this,"setConnectRequestParametersCallback"),Rd(this,"consumers",[]),Rd(this,"tracker"),Rd(this,"state",Gp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zd(()=>{const e=Gp();this.state=e,this.consumers.forEach(t=>t(e))})}open(){return Od(this,null,function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Ru);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Mx.closeWalletsModal(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Od(this,null,function*(){return Uh()&&Bh(),Mx.openWalletsModal(),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class jx{constructor(e){Rd(this,"connector"),Rd(this,"consumers",[]),this.connector=e.connector,Zd(()=>{const e=ih();this.consumers.forEach(t=>t(e))})}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}}class Ix{constructor(e){Rd(this,"connector"),Rd(this,"setConnectRequestParametersCallback"),Rd(this,"consumers",[]),Rd(this,"tracker"),Rd(this,"state",Zp()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Zd(()=>{const e=Zp();this.state=e,this.consumers.forEach(t=>t(e))})}open(e){return Od(this,null,function*(){this.tracker.trackConnectionStarted();const t=av(yield this.connector.getWallets(),rv.walletsListConfiguration),n=t.find(Ru);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Ou).find(t=>uv(t,e));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Mp(o)})}close(e="action-cancelled"){"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Mx.closeSingleWalletModal("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter(t=>t!==e)}}connectEmbeddedWallet(e){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Od(this,null,function*(){return Uh()&&Bh(),Mx.openSingleWalletModal(e),new Promise(e=>{const t=this.onStateChange(n=>{const{status:r}=n;"opened"===r&&(t(),e())})})})}}class Nx{constructor(e){var t;Rd(this,"eventPrefix","ton-connect-ui-"),Rd(this,"tonConnectUiVersion"),Rd(this,"tonConnectSdkVersion",null),Rd(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new ed,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Du({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Od(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(cS){}})}setRequestVersionHandler(){return Od(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>Od(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",$u(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return Od(this,null,function*(){return new Promise((e,t)=>Od(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",t=>{e(t.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(cS){t(cS)}}))})}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(cS){}}trackConnectionStarted(...e){try{const t=zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionCompleted(...e){try{const t=Uu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionError(...e){try{const t=Fu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringStarted(...e){try{const t=Bu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringCompleted(...e){try{const t=qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackConnectionRestoringError(...e){try{const t=Hu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDisconnection(...e){try{const t=Ju(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSentForSignature(...e){try{const t=Ku(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSigned(...e){try{const t=Gu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackTransactionSigningFailed(...e){try{const t=Qu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSentForSignature(...e){try{const t=Yu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSigned(...e){try{const t=Zu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}trackDataSigningFailed(...e){try{const t=Xu(this.version,...e);this.dispatchUserActionEvent(t)}catch(cS){}}}class $x{constructor(e){if(Rd(this,"walletInfoStorage",new Hp),Rd(this,"preferredWalletStorage",new Vp),Rd(this,"tracker"),Rd(this,"walletInfo",null),Rd(this,"systemThemeChangeUnsubscribe",null),Rd(this,"actionsConfiguration"),Rd(this,"walletsList"),Rd(this,"_walletsRequiredFeatures"),Rd(this,"_walletsPreferredFeatures"),Rd(this,"connectRequestParametersCallback"),Rd(this,"connector"),Rd(this,"modal"),Rd(this,"singleWalletModal"),Rd(this,"transactionModal"),Rd(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Mp("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new nd({manifestUrl:e.manifestUrl,eventDispatcher:e.eventDispatcher,walletsRequiredFeatures:e.walletsRequiredFeatures})}this.tracker=new Nx({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.2.0"}),this.modal=new Lx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Ix({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new jx({connector:this.connector}),this._walletsRequiredFeatures=e.walletsRequiredFeatures,this._walletsPreferredFeatures=e.walletsPreferredFeatures,this.walletsList=this.getWallets(),this.walletsList.then(e=>{return Dp((t=e.map(e=>e.imageUrl),[...new Set(t)]));var t});const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Od(this,null,function*(){return yield new Promise(e=>requestAnimationFrame(e)),e()})}(()=>Od(this,null,function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))),this.uiOptions=Ah(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();ov({connector:this.connector,preferredWalletAppName:n}),Mx.renderApp(t,this)}static getWallets(){return nd.getWallets()}get walletsRequiredFeatures(){return this._walletsRequiredFeatures}get walletsPreferredFeatures(){return this._walletsPreferredFeatures}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Pd(Pd({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,"walletsRequiredFeatures"in e&&(this._walletsRequiredFeatures=e.walletsRequiredFeatures),"walletsPreferredFeatures"in e&&(this._walletsPreferredFeatures=e.walletsPreferredFeatures),(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),jh(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(jh(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?lp.LIGHT:lp.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?lp.DARK:lp.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(jh))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Lh[lp.DARK]=Ah(a[lp.DARK],Lh[lp.DARK]),Lh[lp.LIGHT]=Ah(a[lp.LIGHT],Lh[lp.LIGHT]),Oh(e=>({colors:Ah(Lh[e.theme],Mh[e.theme])}))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Oh({borderRadius:s})),ov(t=>{var n,r;const o=Ah(Pd(Pd(Pd(Pd({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),mh(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o})}setConnectRequestParameters(e){var t;ov({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Od(this,null,function*(){return this.connector.getWallets()})}onStatusChange(e,t){return this.connector.onStatusChange(t=>Od(this,null,function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(Pd(Pd({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}),t)}openModal(){return Od(this,null,function*(){return this.modal.open()})}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Od(this,null,function*(){return this.singleWalletModal.open(e)})}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Od(this,null,function*(){const e=(yield this.getWallets()).find(Ru);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Mx.clearAction(),Mx.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Od(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Mp("Connect wallet to send a transaction.");Uh()&&Bh();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i}=this.getModalsAndNotificationsConfiguration(t);Mx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const a=new AbortController,s=()=>{a.signal.aborted||(Mx.setAction({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.redirectAfterRequestSent({returnStrategy:o,twaReturnUrl:i}))},l=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(l(),e||a.abort())});try{const t=yield this.waitForSendTransaction({transaction:e,signal:a.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Mx.setAction({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(cS){if(cS instanceof Vc)throw Mx.clearAction(),Mx.openWalletNotSupportFeatureModal(cS.cause),cS;throw Mx.setAction({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),cS instanceof Wc?cS:(console.error(cS),new Mp("Unhandled error:"+cS))}finally{l()}})}signData(e){return Od(this,null,function*(){if(this.tracker.trackDataSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackDataSigningFailed(this.wallet,e,"Wallet was not connected"),new Mp("Connect wallet to send a transaction.");Uh()&&Bh();const{notifications:t,modals:n,returnStrategy:r,twaReturnUrl:o}=this.getModalsAndNotificationsConfiguration();Mx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!1});const i=new AbortController,a=()=>{i.signal.aborted||(Mx.setAction({name:"confirm-sign-data",showNotification:t.includes("before"),openModal:n.includes("before"),signed:!0}),this.redirectAfterRequestSent({returnStrategy:r,twaReturnUrl:o}))},s=this.onTransactionModalStateChange(e=>{(null==e?void 0:e.openModal)||(s(),e||i.abort())});try{const r=yield this.waitForSignData({data:e,signal:(new AbortController).signal},a);return this.tracker.trackDataSigned(this.wallet,e,r),Mx.setAction({name:"data-signed",showNotification:t.includes("success"),openModal:n.includes("success")}),r}catch(cS){if(cS instanceof Vc)throw Mx.clearAction(),Mx.openWalletNotSupportFeatureModal(cS.cause),cS;throw Mx.setAction({name:"sign-data-canceled",showNotification:t.includes("error"),openModal:n.includes("error")}),cS instanceof Wc?cS:(console.error(cS),new Mp("Unhandled error:"+cS))}finally{s()}})}redirectAfterRequestSent({returnStrategy:e,twaReturnUrl:t}){this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(uu(this.walletInfo.universalLink)?Fv(this.walletInfo.universalLink,{returnStrategy:e,twaReturnUrl:t||rv.twaReturnUrl,forceRedirect:!1}):Bv(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:e,forceRedirect:!1},()=>{}))}connectEmbeddedWallet(e){return Od(this,null,function*(){const t=t=>{oh(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=rv.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return Od(this,null,function*(){const e=new AbortController;Mx.openWalletsModal();const t=this.onModalStateChange(n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})})}waitForWalletConnection(e){return Od(this,null,function*(){return new Promise((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Mp("Wallet was not connected"));const i=e=>Od(this,null,function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Mp("Wallet was not connected"))}}),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange(e=>i(e),e=>a(e));o&&o.addEventListener("abort",()=>{s(),n(new Mp("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(e,t){return Od(this,null,function*(){return new Promise((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Mp("Transaction was not sent"));const a=e=>Od(this,null,function*(){n(e)}),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Mp("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then(e=>(i.removeEventListener("abort",s),a(e))).catch(e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e)))})})}waitForSignData(e,t){return Od(this,null,function*(){return new Promise((n,r)=>{const{data:o,signal:i}=e;if(i.aborted)return this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Mp("SignData was not sent"));const a=e=>Od(this,null,function*(){n(e)});i.addEventListener("abort",()=>{this.tracker.trackDataSigningFailed(this.wallet,o,"SignData was cancelled"),r(new Mp("SignData was not sent"))},{once:!0}),this.connector.signData(o,{onRequestSent:t,signal:i}).then(e=>a(e)).catch(e=>(e=>{r(e)})(e))})})}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange(e=>Od(this,null,function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),ov({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Od(this,null,function*(){let t,n=Mx.getSelectedWalletInfo();if(!n)return null;if("name"in n)t=n;else{const r=av(yield this.walletsList,rv.walletsListConfiguration).find(t=>uv(t,e.device.appName));if(!r)throw new Mp(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=Pd(Pd({},r),n)}return t})}updateWalletInfo(e){return Od(this,null,function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find(t=>uv(t,e.device.appName))||null)})}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Mp(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Uh()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var Dx,Wx={exports:{}},zx=Wx.exports;var Ux=(Dx||(Dx=1,function(e,t){var r,o;r="object"==typeof window&&window||zx||n,o={},r.PubSub?(o=r.PubSub,console.warn("PubSub already loaded, using existing version")):(r.PubSub=o,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"==typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!=typeof r)return!1;e="symbol"==typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,function(){e.unsubscribe(r),n.apply(this,arguments)});return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"==typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"==typeof n,c="function"==typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(o)),void 0!==e&&e.exports&&(t=e.exports=o),t.PubSub=o,e.exports=t=o}(Wx,Wx.exports)),Wx.exports);const Fx=r(Ux);const Bx=new class{constructor(){this._tonConnect=null}get connected(){return this._tonConnect.connected}get chain(){return this._tonConnect.connected?this._tonConnect.account.chain:null}get walletName(){return this._tonConnect.connected?this._tonConnect.wallet.name:null}get rawAddress(){return this._tonConnect.connected?this._tonConnect.account.address:null}get friendlyAddress(){return this._tonConnect.connected?rd(this._tonConnect.account.address,!1):null}init(){let e=this._tonConnect=new $x({manifestUrl:ta.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then(e=>{e?(Fx.publish(Tl,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")})}connect(){return new Promise((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange(r=>{if(n(),!r)return t({code:Il.walletError,message:"The wallet info is null"});this._tonProof=r.connectItems?.tonProof;let o=r.account.address;Fx.publish(Tl,!0),e(o)}),r=this._tonConnect.onModalStateChange(e=>{"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:Il.walletError,message:"Wallet connect failed"})))});this._tonConnect.openModal().then(()=>{console.log("openModal success")}).catch(e=>{n(),r(),t({code:Il.walletError,message:"Open modal error"})})})}disconnect(){return new Promise((e,t)=>{if(!this.connected)return e();this._tonConnect.disconnect().then(()=>{Fx.publish(Tl,!1),e()}).catch(e=>{console.log(e),t({code:Il.walletError,message:"Wallet disconnect error"})})})}sendTransaction(e){return new Promise((t,n)=>{if(!this.connected)return n({code:Il.walletNotConnected,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+60,messages:[{...e}]};this._tonConnect.sendTransaction(r).then(e=>{console.log("transaction success"),t(e.boc)}).catch(e=>{console.log("transaction error==>"+e),n({code:Il.walletError,message:"Wallet transaction error"})})})}signData(){return new Promise((e,t)=>{this.disconnect().then(()=>this.connect()).then(()=>{if(!this._tonProof)return t({code:Il.signDataError,message:"Ton proof is null"});const n=this._tonConnect.account.chain,r=this._tonConnect.account.address,o=this._tonConnect.account.walletStateInit,i=this._tonProof.proof||{},a=i.timestamp,s=i.domain?.value,l=i.payload,c=i.signature;e({network:n,address:r,stateInit:o,timeStamp:a,domain:s,payload:l,signature:c})}).catch(e=>{t(e)})})}getTokenPayload(e,t,n,r){return new Promise((o,i)=>{this.getTokenJettonWalletAddress(e,+t).then(a=>{let s=`${ta.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Vl.get(s).then(e=>{let t=e.data?.payload;if(!t)return i({code:Il.tokenUseError,message:e.message});o({address:a,payload:t})}).catch(e=>{console.log(e),i({code:Il.tokenUseError,message:"Load token payload error"})})}).catch(e=>{i(e)})})}getTokenJettonWalletAddress(e,t){return new Promise((n,r)=>{let o=ta.TOKENS_JETTON_ADDRESS[e];if(!o)return console.log(`token invalid: ${e}`),r({code:Il.tokenUseError,message:`${e} invalid`});let i={owner_address:this.rawAddress,jetton_address:o,limit:"1",offset:"0"};Vl.get(ta.TON_CENTER_URL,i).then(o=>{let i=(o.jetton_wallets||[])[0],a="",s=0;if(i){a=i.address;let e=i.jetton,t=o.metadata[e]?.token_info[0],n=1e9;t?.extra?.decimals&&(n=Math.pow(10,parseInt(t.extra.decimals))),s=(i.balance||0)/n}if(!a||s<t)return r({code:Il.insufficientFunds,message:`Insufficient ${e} assets`});n(a)}).catch(e=>{console.log(e),r({code:Il.tokenUseError,message:"Load jetton wallet error"})})})}};const qx=new class{constructor(){this._adConfigs={},this._adControllers={}}init(){if(tc())try{window.Telegram.WebApp.expand(),window.Telegram.WebApp.ready(),window.Telegram.WebApp.disableVerticalSwipes(),window.Telegram.WebApp.enableClosingConfirmation()}catch(e){}ta.FULL_SCREEN&&this.requestFullScreen()}formatShareLink(e=""){let t=`${cc.gameInfo.appUrl}?startapp=g_${ta.GAME_ID}_${cc.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}requestFullScreen(){if(ic()&&tc()&&nc()&&!window.Telegram.WebApp.isFullscreen)try{window.Telegram.WebApp.requestFullscreen()}catch(e){console.log(e)}}openInvoice(e){return new Promise((t,n)=>{window.Telegram.WebApp.openInvoice(e,e=>{if("paid"==e)return t();n({code:Il.openInvoiceError,message:"Open invoice error"})})})}shareMessageEnable(){return window.Telegram.WebApp.isVersionAtLeast("8.0")}shareMessage(e){return new Promise((t,n)=>{window.Telegram.WebApp.shareMessage(e,e=>{if(!e)return n({code:Il.shareError,message:"Share failed"});t()})})}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?window.Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&window.Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}playAd(e){return new Promise((t,n)=>{let r=this._adConfigs[e];if(!r)return n({code:Il.playAdError,message:`Ad event invalid ${e}`});let o=this._adControllers[r];o||(o=window.Adsgram.init({blockId:r}),this._adControllers[r]=o),o.show().then(e=>{console.log("play ad success"),t()}).catch(e=>{console.log("play ad error: "+r),console.log(JSON.stringify(e)),n({code:Il.playAdError,message:"Play ad error"})})})}signData(){return new Promise((e,t)=>{if(Bx.connected&&Bx.friendlyAddress==cc.boundWallet)return e();Bx.signData().then(e=>this.reqReportSignData(e.network,e.address,e.stateInit,e.timeStamp,e.domain,e.payload,e.signature)).then(()=>{e()}).catch(e=>{t(e)})})}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await lc.gameInfo();let t=(e.catalog||[]).filter(e=>e==jl.airdrop||e==jl.earn),n={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:t,orientation:e.orientation||Dl.portrait};return cc.gameInfo=n,cc.plutoId=e.plutoid,Promise.resolve(n)}catch(e){if(10==t)return Promise.reject({code:Il.initError,message:"Init error"});await new Promise(e=>window.setTimeout(e,500))}}reqLogin(){return lc.login().then(e=>{let t=ta.GAME_ID,n=cc.plutoId=e.plutoid,r=cc.firstName=e.tgfirstname,o=cc.lastName=e.tglastname,i=cc.icon=e.icon,a=e.ticket;return cc.boundWallet=e.boundwallet,ta.TOKEN=e.token,ta.GAME_URL=e.gameurl,this._adConfigs=e.adinfo||{},{gameId:t,plutoId:n,firstName:r,lastName:o,icon:i,ticket:a}})}reqPurchase(e,t,n,r,o){return lc.priceExchange(r).then(r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.coc)||0,u=parseFloat(r.pybobo)||0,d=parseFloat(r.croco)||0,f=parseFloat(r.usdtoff)||0,p=parseFloat(r.tonoff)||0,h=parseFloat(r.catioff)||0,g=parseFloat(r.staroff)||0,m=parseFloat(r.cocoff)||0,y=parseFloat(r.pybobooff)||0,b=parseFloat(r.crocooff)||0,v=parseFloat(r.usdtdiscount)||0,w=parseFloat(r.tondiscount)||0,x=parseFloat(r.catidiscount)||0,C=parseFloat(r.stardiscount)||0,k=parseFloat(r.cocdiscount)||0,S=parseFloat(r.pybobodiscount)||0,E=parseFloat(r.crocodiscount)||0;cc.purchaseData={name:t,productId:e,orderId:n,customData:o,usd:i,usdt:v?f:i,usdtOld:i,usdtDiscount:v,ton:w?p:a,tonOld:a,tonDiscount:w,cati:x?h:s,catiOld:s,catiDiscount:x,star:C?g:l,starOld:l,starDiscount:C,coc:k?m:c,cocOld:c,cocDiscount:k,pybobo:S?y:u,pyboboOld:u,pyboboDiscount:S,croco:E?b:d,crocoOld:d,crocoDiscount:E}})}reqOrder(e,t){const{productId:n,name:r,orderId:o,usd:i,customData:a}=cc.purchaseData;return lc.order(n,r,o,i,e,t,a).then(e=>(cc.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress}))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await lc.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:Il.orderConfirming,message:"The order is being confirmed"});await new Promise(e=>window.setTimeout(e,5e3))}}reqUnfinishRecord(){return lc.unfinishRecord().then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)}),t})}reqCheckIn(e,t,n){return lc.checkIn(e,t,n).then(r=>{cc.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}})}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await lc.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise(e=>window.setTimeout(e,5e3))}}reqGetItem(e){return lc.getItem(e).then(e=>e.v)}reqSetItem(e,t){return lc.setItem(e,t).then(e=>{})}reqGetShareMessage(e,t=[],n="",r="",o=""){let i=!0,a=!0,s=!0;return t&&t.length>0&&(i=-1!=t.indexOf(Wl.users),a=-1!=t.indexOf(Wl.groups),s=-1!=t.indexOf(Wl.channels)),lc.getShareMessage(e,i,a,s,n,r,o).then(e=>e.id)}reqDeposit(e,t,n,r){return lc.deposit(e,t,n,r).then(e=>({amount:e.amount,payload:e.payload,address:e.walletAddress}))}reportStarPayStatus(e,t,n,r,o){"1048"==ta.GAME_ID&&lc.reportStarPayStatus(e,t,n,r,o)}reqReportSignData(e,t,n,r,o,i,a){return new Promise((s,l)=>{lc.reportSignData(e,t,n,r,o,i,a).then(e=>{if(23==e.ret)return l({code:Il.walletBindInCd,message:"Wallet binding is in CD"});cc.boundWallet=e.boundwallet,s()}).catch(e=>{l(e)})})}reqGetNfts(){return lc.getNfts().then(e=>e.nfts||[])}async reqSetGameUserId(e){if("1041"!=ta.GAME_ID&&"1060"!=ta.GAME_ID)return;if(cc.gameUserId)return;let t=0,n=100;for(;;)try{return void(await lc.setGameUserId(e))}catch(r){if(t++,t>=100)throw r;await new Promise(e=>setTimeout(e,n)),n*=1.2}}reqCocGetInfo(){return lc.cocGetInfo().then(e=>(cc.gameUserId=e.userid,{coc:parseFloat(e.coc),withdrawMinAmount:parseFloat(e.mincoc),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqCocWithdraw(e,t,n){const r=Ul[zl.coc];return lc.cocWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqCocClaim(e){return lc.cocClaim(e).then(e=>e.amount)}reqCocGetWithdrawDetail(e){return lc.cocGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockStatus:e.lockstatus||0,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqCocGetRecords(e,t,n){return lc.cocGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqCocQueryConsume(e){return lc.cocQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqCocCancelWithdraw(e){return lc.cocCancelWithdraw(e).then(e=>({amount:e.amount,coc:e.coc}))}reqSpGetInfo(){return lc.spGetInfo().then(e=>(cc.gameUserId=e.userid,{balance:parseFloat(e.balance),withdrawMinAmount:parseFloat(e.minwithdraw),withdrawInstantRate:parseFloat(e.maxfeerate)}))}reqSpWithdraw(e,t,n){const r=Ul[zl.croco];return lc.spWithdraw(e,r,t,n).then(e=>({id:e.withdrawid,balance:e.balance}))}reqSpClaim(e){return lc.spClaim(e).then(e=>e.amount)}reqSpGetWithdrawDetail(e){return lc.spGetWithdrawDetail(e).then(e=>({id:e.withdrawid,wallet:e.wallet,amount:e.amount,fee:e.fee,rate:e.feerate,actualAmount:e.actualamount,status:e.status,createTime:e.createtime,endTime:e.endtime,claimTime:e.claimtime,lockedTime:e.lockendtime||0,txHash:e.txhash}))}reqSpGetRecords(e,t,n){return lc.spGetRecords(e,t,n).then(e=>{let t=[];return(e.records||[]).forEach(e=>{const n={type:e.optype,amount:e.amount,time:e.optime,extId:e.extid,extPara:e.extpara};t.push(n)}),{page:e.page,pageSize:e.pagesize,total:e.total,records:t}})}reqSpQueryConsume(e){return lc.spQueryConsume(e).then(e=>({totalAmount:e.totalamount,amount:e.amount,ratio:e.ratio,estimateReward:e.estimatereward}))}reqSpCancelWithdraw(e){return lc.spCancelWithdraw(e).then(e=>({amount:e.amount,balance:e.balance}))}},Hx=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Br.theme=r.theme,o=dr(e(Br)),t=o,n=r.theme),o}};function Vx(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kx=zi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(Hx(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Gx=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:f="0 0 24 24",...p}=n,h=L.isValidElement(r)&&"svg"===r.type,g={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return Kr({root:["root","inherit"!==t&&`color${$(t)}`,`fontSize${$(n)}`]},Vx,r)})(g);return d.jsxs(Kx,{as:a,className:sr(y.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...m,...p,...h&&r.props,ownerState:g,children:[h?r.props.children:r,u?d.jsx("title",{children:u}):null]})});function Qx(e){const t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Yx(e){const t=L.useRef(e);return Sr(()=>{t.current=e}),L.useRef((...e)=>(0,t.current)(...e)).current}function Zx(...e){const t=L.useRef(void 0),n=L.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return L.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Xx(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Jx(e,t){return(Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jx(e,t)}Gx.muiName="SvgIcon";const tC=r(R()),nC=!1,rC=j.createContext(null);var oC="unmounted",iC="exited",aC="entering",sC="entered",lC="exiting",cC=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=iC,r.appearStatus=aC):o=sC:o=t.unmountOnExit||t.mountOnEnter?oC:iC,r.state={status:o},r.nextCallback=null,r}eC(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oC?{status:iC}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==aC&&n!==sC&&(t=aC):n!==aC&&n!==sC||(t=lC)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===aC){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:tC.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iC&&this.setState({status:oC})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[tC.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||nC?this.safeSetState({status:sC},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:aC},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:sC},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:tC.findDOMNode(this);t&&!nC?(this.props.onExit(r),this.safeSetState({status:lC},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:iC},function(){e.props.onExited(r)})})})):this.safeSetState({status:iC},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:tC.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===oC)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Xx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(rC.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function uC(){}function dC(e,t){var n=Object.create(null);return e&&L.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&L.isValidElement(e)?t(e):e}(e)}),n}function fC(e,t,n){return null!=n[t]?n[t]:e.props[t]}function pC(e,t,n){var r=dC(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(L.isValidElement(a)){var s=i in t,l=i in r,c=t[i],u=L.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&L.isValidElement(c)&&(o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:fC(a,"exit",e),enter:fC(a,"enter",e)})):o[i]=L.cloneElement(a,{in:!1}):o[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fC(a,"exit",e),enter:fC(a,"enter",e)})}}),o}cC.contextType=rC,cC.propTypes={},cC.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uC,onEntering:uC,onEntered:uC,onExit:uC,onExiting:uC,onExited:uC},cC.UNMOUNTED=oC,cC.EXITED=iC,cC.ENTERING=aC,cC.ENTERED=sC,cC.EXITING=lC;var hC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gC=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}eC(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,dC(n.children,function(e){return L.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:fC(e,"appear",n),enter:fC(e,"enter",n),exit:fC(e,"exit",n)})})):pC(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=dC(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Qe({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Xx(e,["component","childFactory"]),o=this.state.contextValue,i=hC(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(rC.Provider,{value:o},i):j.createElement(rC.Provider,{value:o},j.createElement(t,r,i))},t}(j.Component);gC.propTypes={},gC.defaultProps={component:"div",childFactory:function(e){return e}};const mC={};function yC(e,t){const n=L.useRef(mC);return n.current===mC&&(n.current=e(t)),n}const bC=[];class vC{static create(){return new vC}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function wC(){const e=yC(vC.create).current;var t;return t=e.disposeEffect,L.useEffect(t,bC),e}const xC=e=>e.scrollTop;function CC(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function kC(e){try{return e.matches(":focus-visible")}catch(t){}return!1}class SC{static create(){return new SC}static use(){const e=yC(SC.create).current,[t,n]=L.useState(!1);return e.shouldMount=t,e.setShouldMount=n,L.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const EC=ur("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_C=Nn`
1186
1186
  0% {
1187
1187
  transform: scale(0);
1188
1188
  opacity: 0.1;
@@ -1200,7 +1200,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1200
1200
  100% {
1201
1201
  opacity: 0;
1202
1202
  }
1203
- `,AC=Nn`
1203
+ `,PC=Nn`
1204
1204
  0% {
1205
1205
  transform: scale(1);
1206
1206
  }
@@ -1212,7 +1212,7 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1212
1212
  100% {
1213
1213
  transform: scale(1);
1214
1214
  }
1215
- `,RC=zi("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),PC=zi(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=M.useState(!1),p=sr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=sr(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||f(!0),M.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),d.jsx("span",{className:p,style:h,children:d.jsx("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})`
1215
+ `,AC=zi("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RC=zi(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=L.useState(!1),p=sr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=sr(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||f(!0),L.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),d.jsx("span",{className:p,style:h,children:d.jsx("span",{className:g})})},{name:"MuiTouchRipple",slot:"Ripple"})`
1216
1216
  opacity: 0;
1217
1217
  position: absolute;
1218
1218
 
@@ -1249,13 +1249,13 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1249
1249
  /* @noflip */
1250
1250
  left: 0px;
1251
1251
  top: 0;
1252
- animation-name: ${AC};
1252
+ animation-name: ${PC};
1253
1253
  animation-duration: 2500ms;
1254
1254
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
1255
1255
  animation-iteration-count: infinite;
1256
1256
  animation-delay: 200ms;
1257
1257
  }
1258
- `,OC=M.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=M.useState([]),c=M.useRef(0),u=M.useRef(null);M.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const f=M.useRef(!1),p=wC(),h=M.useRef(null),g=M.useRef(null),m=M.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,d.jsx(PC,{classes:{ripple:sr(o.ripple,EC.ripple),rippleVisible:sr(o.rippleVisible,EC.rippleVisible),ripplePulsate:sr(o.ripplePulsate,EC.ripplePulsate),child:sr(o.child,EC.child),childLeaving:sr(o.childLeaving,EC.childLeaving),childPulsate:sr(o.childPulsate,EC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),y=M.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:g.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,m,p]),b=M.useCallback(()=>{y({},{pulsate:!0})},[y]),v=M.useCallback((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,()=>{v(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return M.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),d.jsx(RC,{className:sr(EC.root,o.root,i),ref:g,...a,children:d.jsx(gC,{component:null,exit:!0,children:s})})});function LC(e){return cr("MuiButtonBase",e)}const MC=ur("MuiButtonBase",["root","disabled","focusVisible"]),jC=zi("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${MC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IC=M.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:k,onMouseLeave:S,onMouseUp:E,onTouchEnd:_,onTouchMove:T,onTouchStart:A,tabIndex:R=0,TouchRippleProps:P,touchRippleRef:O,type:L,...j}=n,I=M.useRef(null),N=SC.use(),$=Zx(N.ref,O),[D,W]=M.useState(!1);l&&D&&W(!1),M.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),I.current.focus()}}),[]);const z=N.shouldMount&&!c&&!l;M.useEffect(()=>{D&&f&&!c&&N.pulsate()},[c,f,D,N]);const U=NC(N,"start",k,u),F=NC(N,"stop",y,u),B=NC(N,"stop",b,u),q=NC(N,"stop",E,u),H=NC(N,"stop",e=>{D&&e.preventDefault(),S&&S(e)},u),V=NC(N,"start",A,u),K=NC(N,"stop",_,u),G=NC(N,"stop",T,u),Q=NC(N,"stop",e=>{kC(e.target)||W(!1),g&&g(e)},!1),Y=Yx(e=>{I.current||(I.current=e.currentTarget),kC(e.target)&&(W(!0),w&&w(e)),v&&v(e)}),Z=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=Yx(e=>{f&&!e.repeat&&D&&" "===e.key&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))}),J=Yx(e=>{f&&" "===e.key&&D&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),C&&C(e),m&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ee=s;"button"===ee&&(j.href||j.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===L?"button":L,te.disabled=l):(j.href||j.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Zx(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:f,tabIndex:R,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Kr({root:["root",t&&"disabled",n&&"focusVisible"]},LC,o);return n&&r&&(i.root+=` ${r}`),i})(re);return d.jsxs(jC,{as:ee,className:sr(oe.root,a),ownerState:re,onBlur:Q,onClick:m,onContextMenu:F,onFocus:Y,onKeyDown:X,onKeyUp:J,onMouseDown:U,onMouseLeave:H,onMouseUp:q,onDragLeave:B,onTouchEnd:K,onTouchMove:G,onTouchStart:V,ref:ne,tabIndex:l?-1:R,type:L,...te,...j,children:[i,z?d.jsx(OC,{ref:$,center:o,...P}):null]})});function NC(e,t,n,r=!1){return Yx(o=>(n&&n(o),r||e[t](o),!0))}function $C(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function DC(e){return cr("MuiCircularProgress",e)}ur("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const WC=44,zC=Nn`
1258
+ `,OC=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,l]=L.useState([]),c=L.useRef(0),u=L.useRef(null);L.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const f=L.useRef(!1),p=wC(),h=L.useRef(null),g=L.useRef(null),m=L.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,d.jsx(RC,{classes:{ripple:sr(o.ripple,EC.ripple),rippleVisible:sr(o.rippleVisible,EC.rippleVisible),ripplePulsate:sr(o.ripplePulsate,EC.ripplePulsate),child:sr(o.child,EC.child),childLeaving:sr(o.childLeaving,EC.childLeaving),childPulsate:sr(o.childPulsate,EC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),y=L.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const s=a?null:g.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,m,p]),b=L.useCallback(()=>{y({},{pulsate:!0})},[y]),v=L.useCallback((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,()=>{v(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return L.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),d.jsx(AC,{className:sr(EC.root,o.root,i),ref:g,...a,children:d.jsx(gC,{component:null,exit:!0,children:s})})});function MC(e){return cr("MuiButtonBase",e)}const LC=ur("MuiButtonBase",["root","disabled","focusVisible"]),jC=zi("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${LC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IC=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:g,onClick:m,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:C,onMouseDown:k,onMouseLeave:S,onMouseUp:E,onTouchEnd:_,onTouchMove:T,onTouchStart:P,tabIndex:A=0,TouchRippleProps:R,touchRippleRef:O,type:M,...j}=n,I=L.useRef(null),N=SC.use(),$=Zx(N.ref,O),[D,W]=L.useState(!1);l&&D&&W(!1),L.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),I.current.focus()}}),[]);const z=N.shouldMount&&!c&&!l;L.useEffect(()=>{D&&f&&!c&&N.pulsate()},[c,f,D,N]);const U=NC(N,"start",k,u),F=NC(N,"stop",y,u),B=NC(N,"stop",b,u),q=NC(N,"stop",E,u),H=NC(N,"stop",e=>{D&&e.preventDefault(),S&&S(e)},u),V=NC(N,"start",P,u),K=NC(N,"stop",_,u),G=NC(N,"stop",T,u),Q=NC(N,"stop",e=>{kC(e.target)||W(!1),g&&g(e)},!1),Y=Yx(e=>{I.current||(I.current=e.currentTarget),kC(e.target)&&(W(!0),w&&w(e)),v&&v(e)}),Z=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},X=Yx(e=>{f&&!e.repeat&&D&&" "===e.key&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&Z()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Z()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))}),J=Yx(e=>{f&&" "===e.key&&D&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),C&&C(e),m&&e.target===e.currentTarget&&Z()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ee=s;"button"===ee&&(j.href||j.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===M?"button":M,te.disabled=l):(j.href||j.to||(te.role="button"),l&&(te["aria-disabled"]=l));const ne=Zx(t,I),re={...n,centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:f,tabIndex:A,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Kr({root:["root",t&&"disabled",n&&"focusVisible"]},MC,o);return n&&r&&(i.root+=` ${r}`),i})(re);return d.jsxs(jC,{as:ee,className:sr(oe.root,a),ownerState:re,onBlur:Q,onClick:m,onContextMenu:F,onFocus:Y,onKeyDown:X,onKeyUp:J,onMouseDown:U,onMouseLeave:H,onMouseUp:q,onDragLeave:B,onTouchEnd:K,onTouchMove:G,onTouchStart:V,ref:ne,tabIndex:l?-1:A,type:M,...te,...j,children:[i,z?d.jsx(OC,{ref:$,center:o,...R}):null]})});function NC(e,t,n,r=!1){return Yx(o=>(n&&n(o),r||e[t](o),!0))}function $C(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function DC(e){return cr("MuiCircularProgress",e)}ur("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const WC=44,zC=Nn`
1259
1259
  0% {
1260
1260
  transform: rotate(0deg);
1261
1261
  }
@@ -1282,4 +1282,4 @@ var PlutoSDK=function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++
1282
1282
  animation: ${zC} 1.4s linear infinite;
1283
1283
  `:null,BC="string"!=typeof UC?In`
1284
1284
  animation: ${UC} 1.4s ease-in-out infinite;
1285
- `:null,qC=zi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${$(n.color)}`]]}})(Hx(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:FC||{animation:`${zC} 1.4s linear infinite`}},...Object.entries(e.palette).filter($C()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),HC=zi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),VC=zi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hx(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:BC||{animation:`${UC} 1.4s ease-in-out infinite`}}]}))),KC=zi("circle",{name:"MuiCircularProgress",slot:"Track"})(Hx(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),GC=M.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...p}=n,h={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:f,enableTrackSlot:a},g=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Kr({root:["root",n,`color${$(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${$(n)}`,o&&"circleDisableShrink"]},DC,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*((WC-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return d.jsx(qC,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(HC,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(KC,{className:g.track,ownerState:h,cx:WC,cy:WC,r:(WC-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(VC,{className:g.circle,style:m,ownerState:h,cx:WC,cy:WC,r:(WC-c)/2,fill:"none",strokeWidth:c})]})})});function QC(e){return parseInt(M.version,10)>=19?e?.props?.ref||null:e?.ref||null}const YC={entering:{opacity:1},entered:{opacity:1}},ZC=M.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=cC,...v}=e,w=M.useRef(null),x=Zx(w,QC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{xC(e);const r=CC({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=CC({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),A=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:A,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>M.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...YC[e],...m,...a.props.style},ref:x,...n})})}),XC=ur("MuiBox",["root"]),JC=ji(),ek=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ke);return M.forwardRef(function(e,a){const s=tr(n),{className:l,component:c="div",...u}=Ge(e);return d.jsx(i,{as:c,ref:a,className:sr(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Ni,defaultTheme:JC,defaultClassName:XC.root,generateClassName:ir.generate});function tk(e){return cr("MuiButton",e)}const nk=ur("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),rk=M.createContext({}),ok=M.createContext(void 0),ik=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ak=zi(IC,{shouldForwardProp:e=>Wi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hx(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${nk.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nk.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${nk.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${nk.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($C()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nk.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${nk.loading}`]:{color:"transparent"}}}]}})),sk=zi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${$(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ik]})),lk=zi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${$(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ik]})),ck=zi("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),uk=zi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dk=M.forwardRef(function(e,t){const n=M.useContext(rk),r=M.useContext(ok),o=Fi({props:Cr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,id:m,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:x,type:C,variant:k="text",...S}=o,E=Fr(m),_=b??d.jsx(GC,{"aria-labelledby":E,color:"inherit",size:16}),T={...o,color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:f,fullWidth:g,loading:y,loadingIndicator:_,loadingPosition:v,size:w,type:C,variant:k},A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Kr({root:["root",a&&"loading",i,`${i}${$(t)}`,`size${$(o)}`,`${i}Size${$(o)}`,`color${$(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${$(s)}`],startIcon:["icon","startIcon",`iconSize${$(o)}`],endIcon:["icon","endIcon",`iconSize${$(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},tk,l);return{...l,...c}})(T),R=(x||y&&"start"===v)&&d.jsx(sk,{className:A.startIcon,ownerState:T,children:x||d.jsx(uk,{className:A.loadingIconPlaceholder,ownerState:T})}),P=(p||y&&"end"===v)&&d.jsx(lk,{className:A.endIcon,ownerState:T,children:p||d.jsx(uk,{className:A.loadingIconPlaceholder,ownerState:T})}),O=r||"",L="boolean"==typeof y?d.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(ck,{className:A.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(ak,{ownerState:T,className:sr(n.className,A.root,l,O),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(A.focusVisible,h),ref:t,type:C,id:y?E:m,...S,classes:A,children:[R,"end"!==v&&L,i,"end"===v&&L,P]})});function fk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Qx(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const pk=M.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=r,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:m,onExited:y,onExiting:b,style:v,timeout:w=o,TransitionComponent:x=cC,...C}=e,k=M.useRef(null),S=Zx(QC(s),k,t),E=e=>t=>{e&&(void 0===t?e(k.current):e(k.current,t))},_=E((e,t)=>{fk(c,e,l),xC(e),p&&p(e,t)}),T=E((e,t)=>{const r=CC({timeout:w,style:v,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),A=E(h),R=E(b),P=E(e=>{const t=CC({timeout:w,style:v,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),fk(c,e,l),m&&m(e)}),O=E(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),L=M.useCallback(()=>{k.current&&fk(c,k.current,l)},[c,l]);return M.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{k.current&&fk(c,k.current,l)}),t=Qx(k.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),M.useEffect(()=>{f||L()},[f,L]),d.jsx(x,{nodeRef:k,onEnter:_,onEntered:A,onEntering:T,onExit:P,onExited:O,onExiting:R,addEndListener:e=>{i&&i(k.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>M.cloneElement(s,{ref:S,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),hk=function(e={}){const{createStyledComponent:t=uo,useThemeProps:n=fo,useTheme:r=tr,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(to,ro,no,Jr,oo,io,eo),s=M.forwardRef(function(e,t){const s=r(),l=Ge(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(l,s.breakpoints);const{className:c,children:u,columns:f=12,container:p=!1,component:h="div",direction:g="row",wrap:m="wrap",size:y={},offset:b={},spacing:v=0,rowSpacing:w=v,columnSpacing:x=v,unstable_level:C=0,...k}=l,S=i(y,s.breakpoints,e=>!1!==e),E=i(b,s.breakpoints),_=e.columns??(C?void 0:f),T=e.spacing??(C?void 0:v),A=e.rowSpacing??e.spacing??(C?void 0:w),R=e.columnSpacing??e.spacing??(C?void 0:x),P={...l,level:C,columns:_,container:p,direction:g,wrap:m,spacing:T,rowSpacing:A,columnSpacing:R,size:S,offset:E},O=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:s}=e;return Kr({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...lo(r),...ao(s),...n?so(i,t.breakpoints.keys[0]):[]]},e=>cr(o,e),{})})(P,s);return d.jsx(a,{ref:t,as:h,ownerState:P,className:sr(O.root,c),...k,children:M.Children.map(u,e=>{return M.isValidElement(e)&&(t=e,n=["Grid"],M.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName))&&p&&e.props.container?M.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e;var t,n})})});return s.muiName="Grid",s}({createStyledComponent:zi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Fi({props:e,name:"MuiGrid"}),useTheme:$i}),gk={entering:{transform:"none"},entered:{transform:"none"}},mk=M.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=cC,...v}=e,w=M.useRef(null),x=Zx(w,QC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{xC(e);const r=CC({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=CC({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),p&&p(e)}),A=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:A,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>M.cloneElement(a,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...gk[e],...m,...a.props.style},ref:x,...n})})}),yk=function(e={}){const{createStyledComponent:t=ho,useThemeProps:n=go,componentName:r="MuiStack"}=e,o=t(yo);return M.forwardRef(function(e,t){const i=Ge(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:f,useFlexGap:p=!1,...h}=i,g={direction:s,spacing:l,useFlexGap:p},m=Kr({root:["root"]},e=>cr(r,e),{});return d.jsx(o,{as:a,ownerState:g,ref:t,className:sr(m.root,f),...h,children:c?mo(u,c):u})})}({createStyledComponent:zi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Fi({props:e,name:"MuiStack"})});class bk extends M.PureComponent{componentDidMount(){}render(){return ec()?d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(ek,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(GC,{color:"inherit"})})]}):d.jsx(ek,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"}})}}class vk extends M.PureComponent{render(){return"1041"==ta.GAME_ID?this.render1041():"1048"==ta.GAME_ID?this.render1048():this.renderDefault()}renderDefault(){return d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${Jl("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${Jl("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${Jl("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(ek,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${Jl("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}}const wk={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class xk extends M.PureComponent{constructor(){super(...arguments),this._aniUrl=`${Jl("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(wk).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=wk[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?d.jsx(ek,{sx:{marginLeft:8,height:118},children:d.jsx(ek,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):d.jsx(ek,{sx:{marginLeft:8,height:118}})}}class Ck extends M.PureComponent{render(){const e=window.Telegram.WebApp.isFullscreen;return d.jsx(ZC,{in:!0,timeout:{enter:1e3},children:d.jsxs(ek,{sx:{width:1,top:e?"10%":"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[d.jsx(xk,{}),d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(ek,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}class kk extends M.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=Hl[e];return d.jsxs(ek,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(ek,{component:"img",src:`${Jl(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(ek,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Sk extends M.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=cc.gameInfo;return d.jsxs(ek,{sx:{pb:2},children:[d.jsxs(ek,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(ek,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(ek,{children:[d.jsx(ek,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(hk,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(hk,{children:d.jsx(kk,{tagId:e})},t))})]})]}),d.jsx(ek,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const Ek=function(e){function t(t,n){return d.jsx(Gx,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=Gx.muiName,M.memo(M.forwardRef(t))}(d.jsx("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}));class _k extends M.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i,isItalic:a}=this.props,s={color:n,fontSize:t,fontWeight:"bold",fontStyle:a?"italic":"normal",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:`"${e}"`,WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return d.jsx(ek,{content:e,sx:s,children:e})}}class Tk extends M.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout(()=>{this.setState({showCircle:!0})},600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return d.jsx(ek,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(ek,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(ek,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(ek,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(GC,{color:"inherit"})})]})})}}let Ak=null;const Rk=()=>{if(Ak)return;const e=document.createElement("div");document.body.appendChild(e);const t=L.createRoot(e);t.render(d.jsx(Tk,{})),Ak={div:e,root:t}},Pk=()=>{if(!Ak)return;const e=Ak.div;Ak.root.unmount(),e.parentNode?.removeChild(e),Ak=null};class Ok extends M.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout(()=>{Mk(e)},500)}}componentDidMount(){this._aniTimer=window.setTimeout(()=>{this.setState({checked:!1})},2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return d.jsx(ek,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(pk,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(ek,{children:d.jsx(mk,{in:!0,timeout:{enter:1e3},children:d.jsx(ek,{sx:{display:"flex"},children:d.jsx(ZC,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(ek,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const Lk={},Mk=e=>{const t=Lk[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete Lk[e]},jk=e=>{const t=(n=1,r=1e3,Math.floor(Math.random()*(r-n+1)+n)+"-"+Date.now());var n,r;const o=document.createElement("div");document.body.appendChild(o);const i=L.createRoot(o);i.render(d.jsx(Ok,{id:t,text:e})),Lk[t]={div:o,root:i}};class Ik extends M.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!cc.plutoId)return void console.log("pluto id is null");if(!tc())return void console.log("sharing is not available outside the Telegram environment");if(!qx.shareMessageEnable())return void jk("If you are unable to share, please update Telegram to the latest version and try again.");const e=qx.formatShareLink();Rk(),qx.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),qx.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{Pk()})}}render(){return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Ek,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(_k,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Nk extends M.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){Fx.subscribe(El,this.onReady)}componentWillUnmount(){Fx.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?d.jsx(ek,{sx:{height:50,position:"relative",mx:1.25},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(_k,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):d.jsxs(ek,{sx:{height:50,position:"relative",mx:1.25},children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(ek,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(_k,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(GC,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}class $k extends M.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{component:"img",src:Jl("add_screen.png"),sx:{position:"relative"}})]})})}}const Dk=zi(ek)(()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"}));class Wk extends M.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_l,Nl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Al,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${Jl("bg_1.png")})`}}),d.jsx(Ck,{}),d.jsx(ek,{sx:{width:1,bottom:ic()?40:20,position:"absolute"},children:d.jsx(pk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(ek,{children:[d.jsxs(Dk,{children:[d.jsx(vk,{}),d.jsxs(ek,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(Sk,{}),this.hideShare()?null:ic()?d.jsxs(ek,{sx:{height:50},children:[d.jsx(ek,{sx:{width:.8,height:50,float:"left"},children:d.jsx(Ik,{})}),d.jsx(ek,{sx:{width:.18,height:50,float:"right"},children:d.jsx($k,{})})]}):d.jsx(Ik,{})]})]}),d.jsx(Dk,{sx:{paddingTop:2},children:d.jsx(Nk,{onClick:this.onClickPlay})})]})})})]})}hideShare(){return"1002"==ta.GAME_ID}}class zk extends M.PureComponent{render(){return"1041"==ta.GAME_ID||"1048"==ta.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}renderBlack(){return d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class Uk extends M.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(ek,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(ek,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(ek,{component:"img",src:Jl("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(ek,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(ek,{component:"img",src:Jl("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(ek,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e){return d.jsx(ek,{sx:{width:1,height:60,position:"relative",pt:2},children:d.jsxs(ek,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(ek,{component:"img",src:Jl("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(_k,{content:e,fontSize:32,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(ek,{component:"img",src:Jl("1041_title_2.png"),sx:{position:"relative",ml:2}})]})})}render1048(e,t){return d.jsxs(ek,{sx:{width:1,height:70},children:[d.jsx(ek,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(_k,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(ek,{component:"img",src:Jl("1048_close.png"),sx:{width:52,height:52,position:"absolute",top:10,right:10},onClick:t})]})}}class Fk extends M.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(dk,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none"},variant:"outlined",onClick:t,children:e})}render1041(e,t){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${Jl("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(ek,{sx:{position:"relative"},children:d.jsx(_k,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}}class Bk extends M.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(dk,{sx:{width:1,height:30,borderRadius:13,fontWeight:"bold",color:"#666666",backgroundColor:"#fff",borderColor:"#787772",textTransform:"none"},variant:"outlined",onClick:e,children:"Disconnect"})}render1041(e){return d.jsxs(dk,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",pb:"4px"},children:d.jsx(_k,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}}class qk extends M.PureComponent{constructor(){super(...arguments),this.state={address:Bx.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Bx.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Bx.disconnect()}}componentDidMount(){Fx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){Fx.unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return d.jsxs(yk,{spacing:1,sx:{float:"right",width:114},children:[d.jsx(Fk,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(Bk,{onClickDisconnect:this.onClickDisconnect}):null]})}}class Hk extends M.PureComponent{render(){const{name:e,usd:t}=cc.purchaseData;return"1041"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(ek,{sx:{textAlign:"center",mb:2},children:[d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(ek,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(qk,{})})]})}render1041(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(ek,{sx:{textAlign:"center",mb:2},children:[d.jsx(ek,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(_k,{content:e,fontSize:24,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(ek,{sx:{mt:1,mb:3,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:24,pt:1},children:d.jsx(qk,{})})]})}render1048(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(ek,{children:[d.jsx(ek,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(ek,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(qk,{})})]})}}class Vk extends M.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(ek,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(ek,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(ek,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:66,height:62,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{position:"relative",justifyItems:"center",pt:"11px"},children:d.jsx(_k,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{position:"relative",justifyItems:"center",mt:"-7px"},children:d.jsx(_k,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})})}render1048(e){return d.jsx(ek,{sx:{top:-11,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:52,height:66,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{top:17,left:-8,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(ek,{sx:{bottom:7,left:-2,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}}class Kk extends M.PureComponent{render(){return d.jsx(ek,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(ek,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(ek,{sx:{mt:"4px"},children:d.jsx(_k,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{mt:"-4px"},children:d.jsx(_k,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{mt:"-4px"},children:d.jsx(_k,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class Gk extends M.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=Bl[ta.GAME_ID]||Bl[0],s=Jl(a[e]),l=Fl[e],c=`${e==zl.star?t:t.toFixed(2)} ${l}`,u=` ${e==zl.star?n:n.toFixed(2)} ${l} `,d=window.innerWidth;let f=22,p=14;return d<=375?c.length>=11&&(f=18,p=10):d<=390&&c.length>=11&&(f=20,p=12),"1041"==ta.GAME_ID?this.render1041(s,c,u,r,o,f,p,!!i):"1048"==ta.GAME_ID?this.render1048(s,c,u,r,o,f,p,!!i,e==zl.coc):this.renderDefault(s,c,u,r,o,f,p,!!i)}renderDefault(e,t,n,r,o,i,a,s){return d.jsxs(ek,{sx:{height:50,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3,"& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"contained",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Vk,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(ek,{sx:{height:64,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Vk,{discount:r})]})}render1048(e,t,n,r,o,i,a,s,l){const c=l?"1048_pay_button_1.png":"1048_pay_button_0.png";return d.jsxs(ek,{sx:{height:54,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:"26px","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(Kk,{}):null,d.jsx(Vk,{discount:r})]})}}class Qk extends M.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(ek,{sx:{width:1,height:140,mb:2},children:[d.jsx(ek,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Jl("1048_suggest_bg.png")})`}}),d.jsxs(ek,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(ek,{sx:{position:"absolute",width:1},children:d.jsx(ek,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(_k,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(ek,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(ek,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(ek,{sx:{position:"absolute",width:1},children:d.jsx(ek,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(_k,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(ek,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(_k,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(ek,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(_k,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(ek,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(_k,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class Yk extends M.PureComponent{constructor(){super(...arguments),this._status=!1,this._cocInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{Fx.publish(_l,Nl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickCati=()=>{const e=Ul[zl.cati];this.connectWallet().then(()=>(Rk(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Pk()})},this.onClickPybobo=()=>{const e=Ul[zl.pybobo];this.connectWallet().then(()=>(Rk(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Pk()})},this.onClickTon=()=>{this._cacheData=void 0;const e=Ul[zl.ton];this.connectWallet().then(()=>(Rk(),qx.reqOrder($l.tonConnect,e))).then(e=>{this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Pk()})},this.onClickUsdt=()=>{const e=Ul[zl.usdt];this.connectWallet().then(()=>(Rk(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Pk()})},this.onClickStar=()=>{const e=Ul[zl.star];Rk(),qx.reqOrder($l.star,e).then(t=>{qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,0),qx.openInvoice(t.payLink).then(()=>{qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,1),this._status=!0,this.onClickClose()}).catch(n=>{console.log(n),qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,2),jk(n.message)})}).catch(e=>{jk(e.message)}).finally(()=>{Pk()})},this.onClickCoc=()=>{const e=Ul[zl.coc];Rk(),qx.reqOrder($l.coc,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._cocInsufficient=!0,this.onClickClose()):jk(e.message)}).finally(()=>{Pk()})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=cc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?cc.purchaseData.orderNo:""};this._cocInsufficient&&(o.cocInsufficient=!0),Fx.publish(Rl,o)}render(){const{usd:e,ton:t,tonOld:n,tonDiscount:r,usdt:o,usdtOld:i,usdtDiscount:a,cati:s,catiOld:l,catiDiscount:c,star:u,starOld:f,starDiscount:p,coc:h,cocOld:g,cocDiscount:m,pybobo:y,pyboboOld:b,pyboboDiscount:v}=cc.purchaseData,{showSlide:w}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(zk,{}),d.jsxs(ek,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(ek,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(ek,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:4,"@media (max-height: 480px)":{top:10}},children:d.jsx(pk,{direction:"up",in:w,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(ek,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(vk,{}),d.jsx(Uk,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(Hk,{}),this.cocPayEnable()&&h?d.jsx(Qk,{}):null,d.jsxs(yk,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(Gk,{currencyKey:zl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.cryptoPayEnable()?d.jsxs(d.Fragment,{children:[this.catiPayEnable()?d.jsx(d.Fragment,{children:d.jsx(Gk,{currencyKey:zl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati})}):null,this.pyboboPayEnable()?d.jsx(d.Fragment,{children:d.jsx(Gk,{currencyKey:zl.pybobo,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPybobo})}):null,this.tonPayEnable()?d.jsx(d.Fragment,{children:d.jsx(Gk,{currencyKey:zl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon})}):null,d.jsx(Gk,{currencyKey:zl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt})]}):null,this.starPayEnable()?d.jsx(Gk,{currencyKey:zl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null]})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Bx.connected)return e();Bx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Bx.chain;ta.TEST_MODE&&t==Oc.MAINNET?jk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Oc.TESTNET?Bx.sendTransaction(e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{console.log(e.message)}):jk("Please switch chain MAINNET")}cryptoPayEnable(){return!!ta.TEST_MODE||!rc()&&!oc()}tonPayEnable(){return["1000","1002","1041","1048"].includes(ta.GAME_ID)}catiPayEnable(){return["1000","1002","1041"].includes(ta.GAME_ID)}pyboboPayEnable(){return!1}starPayEnable(){return!!tc()}cocPayEnable(){return"1048"==ta.GAME_ID}}class Zk extends M.PureComponent{render(){const{name:e}=cc.checkInData;return d.jsxs(ek,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(ek,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(ek,{sx:{mx:5,mt:"1048"==ta.GAME_ID?3:1,position:"relative"},children:d.jsx(qk,{})})]})}}class Xk extends M.PureComponent{constructor(){super(...arguments),this.state={buttonText:Bx.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){Fx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){Fx.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(_k,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Jk extends M.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{Fx.publish(_l,Nl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=cc.checkInData;this.sendTransaction({amount:e,address:n,payload:t})}).catch(e=>{console.log(e)})},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=cc.checkInData;Fx.publish(Pl,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(zk,{}),d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(ek,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(pk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(ek,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(vk,{}),d.jsx(Uk,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(Zk,{}),d.jsx(yk,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(Xk,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Bx.connected)return e();Bx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Bx.chain;ta.TEST_MODE&&t==Oc.MAINNET?jk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Oc.TESTNET?Bx.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):jk("Please switch chain MAINNET")}verify(e){const t=Bx.chain,n=Bx.friendlyAddress,r=cc.checkInData.orderNo;Rk(),qx.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{jk(e.message),this.onClickClose()}).finally(()=>{Pk()})}}const eS=zi(ek)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class tS extends M.PureComponent{constructor(){super(...arguments),this.state={pageId:Nl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){Fx.subscribe(_l,this.onSwitchPage),Fx.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Nl.index:t=bk;break;case Nl.login:t=Wk;break;case Nl.purchase:t=Yk;break;case Nl.checkIn:t=Jk}return t?d.jsx(eS,{children:d.jsx(t,{})}):null}}const nS=()=>{console.info(`Pluto SDK version: ${ta.APP_VERSION}`),ta.init(),Vl.init(),qx.init(),Bx.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);L.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Qi,{}),d.jsx(tS,{})]}))};const rS=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{try{const e=this._handlerMap.event_playButtonClicked;if(!e)return;e.apply(null,[])}catch(n){console.error(n)}},this.onPuchaseCompleted=(e,t)=>{try{const e=this._handlerMap[Ol];e&&e.apply(null,[t]);const n=this._callbackMap[Ol];n&&(n.apply(null,[t]),this._callbackMap[Ol]=null)}catch(n){console.error(n)}},this.onCheckInCompleted=(e,t)=>{try{const e=this._handlerMap[Ll];e&&e.apply(null,[t]);const n=this._callbackMap[Ll];n&&(n.apply(null,[t]),this._callbackMap[Ll]=null)}catch(n){console.error(n)}},Fx.subscribe(Al,this.onPlayButtonClicked),Fx.subscribe(Rl,this.onPuchaseCompleted),Fx.subscribe(Pl,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class oS extends M.PureComponent{render(){const e=cc.gameInfo.orientation==Dl.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(ek,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(ek,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(ek,{component:"img",src:Jl(n),sx:{position:"relative"}}),d.jsx(ek,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(ek,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let iS=null;const aS=()=>{if(iS)return;const e=document.createElement("div");document.body.appendChild(e);const t=L.createRoot(e);t.render(d.jsx(oS,{})),iS={div:e,root:t}},sS=()=>{if(!iS)return;const e=iS.div;iS.root.unmount(),e.parentNode?.removeChild(e),iS=null};const lS=new class{constructor(){this._appDidMount=!1,this._loadGameState=Ml.init,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},Fx.subscribe(kl,this.onAppDidMount)}init(e){return e&&qx.requestFullScreen(),new Promise((e,t)=>{if(cc.gameInfo)return this._initialized=!0,this.addOrientationChangeListener(),e();Fx.subscribeOnce(Sl,(n,r)=>{if(r)return this._initialized=!0,this.addOrientationChangeListener(),e();jk("Init game error, please try again later"),t({code:Il.initError,message:"Init error"})}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject({code:Il.logined,message:"Pluto sdk already login"}):qx.reqLogin().then(e=>(this._logined=!0,e)):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}ready(){this._logined?ec()?Fx.publish(_l,Nl.none):Fx.publish(El,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:Il.purchaseing,message:"Payment is being processed"}):(rS.registerCallback(Ol,i),this._purchaseing=!0,void qx.reqPurchase(e,t,n,r,o).then(()=>{this._purchaseing=!1,Fx.publish(_l,Nl.purchase),a()}).catch(e=>{this._purchaseing=!1,console.log(e.message),s(e)})):s({code:Il.notLogin,message:"Pluto sdk not login"}):s({code:Il.paramError,message:"Params error"}))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i({code:Il.checkingIn,message:"Check in is being processed"}):(rS.registerCallback(Ll,r),this._checkingIn=!0,void qx.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,Fx.publish(_l,Nl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i({code:Il.notLogin,message:"Pluto sdk not login"}):i({code:Il.paramError,message:"Params error"}))}share(e,t,n,r,o){if(!this._logined)return Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"});if(!tc())return Promise.reject({code:Il.shareError,message:"Sharing is not available outside the Telegram environment"});if(!qx.shareMessageEnable())return jk("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject({code:Il.shareError,message:"Method not support"});const i=qx.formatShareLink(e);return qx.reqGetShareMessage(i,t,n,r,o).then(e=>qx.shareMessage(e))}getShareLink(e){return this._logined?qx.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n({code:Il.notLogin,message:"Pluto sdk not login"});let r=qx.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t({code:Il.clipboardError,message:"Param is null"});ac(o).then(()=>{e()}).catch(()=>{sc(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?qx.reqGetItem(e):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?qx.reqSetItem(e,t):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}consumePurchase(e){return this._initialized?e?qx.reqFinishOrder(e):Promise.reject({code:Il.paramError,message:"Params error"}):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}queryPurchases(){return this._initialized?qx.reqUnfinishRecord():Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&rS.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return ic()&&tc()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return ic()&&tc()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return tc()?qx.playAd(e):Promise.reject({code:Il.playAdError,message:"Playing ads is not available outside the Telegram environment"})}vibrate(e){tc()||console.log("Vibrate is not available outside the Telegram environment"),qx.vibrate(e)}isDesktopEnabled(){return nc()&&(rc()||oc())}isTelegramClient(){return nc()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!ta.GAME_URL)return void console.log("game url is null");const t=(new Xi.Base64).encode(ta.INIT_DATA),n=new URL(ta.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return ta.CP_CUSTOM_LINK}getStartParam(){return ta.START_PARAM}connectWallet(){return Bx.connect()}disconnectWallet(){return Bx.disconnect()}isConnectedWallet(){return Bx.connected}getWalletRawAddress(){return Bx.rawAddress}getWalletFriendlyAddress(){return Bx.friendlyAddress}getWalletName(){return Bx.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Ul[e];Bx.connect().then(()=>qx.reqDeposit(a,t,n,r)).then(e=>Bx.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return Bx.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t({code:Il.notLogin,message:"Pluto sdk not login"});qx.signData().then(()=>{e()}).catch(e=>{e.code==Il.walletBindInCd&&jk("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?qx.reqGetNfts():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}setGameUserId(e){this._logined?qx.reqSetGameUserId(e):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?qx.reqCocGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocWithdraw(e,t,n){return this._logined?qx.reqCocWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocClaim(e){return this._logined?qx.reqCocClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetWithdrawDetail(e){return this._logined?qx.reqCocGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetRecords(e,t,n){return this._logined?qx.reqCocGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocQueryConsume(e){return this._logined?qx.reqCocQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocCancelWithdraw(e){return this._logined?qx.reqCocCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetInfo(){return this._logined?qx.reqSpGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spWithdraw(e,t,n){return this._logined?qx.reqSpWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spClaim(e){return this._logined?qx.reqSpClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetWithdrawDetail(e){return this._logined?qx.reqSpGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetRecords(e,t,n){return this._logined?qx.reqSpGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spQueryConsume(e){return this._logined?qx.reqSpQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spCancelWithdraw(e){return this._logined?qx.reqSpCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}getGameInfo(){this._loadGameState==Ml.init&&(this._loadGameState=Ml.loading,qx.reqGameInfo().then(e=>{this._loadGameState=Ml.done,Fx.publish(Sl,!0),ec()||Fx.publish(_l,Nl.login)}).catch(e=>{this._loadGameState=Ml.init,Fx.publish(Sl,!1),console.log(e)}))}addOrientationChangeListener(){ic()&&window.screen.orientation&&(window.screen.orientation.addEventListener("change",e=>{this.checkOrientaiton()}),this.checkOrientaiton())}checkOrientaiton(){try{const e=window.screen.orientation.type;if((e.startsWith("portrait")?Dl.portrait:Dl.landscape)==cc.gameInfo.orientation)return void sS();aS()}catch(e){console.log(e)}}};return document.body?nS():document.addEventListener("DOMContentLoaded",e=>{nS()}),e.checkIn=(e,t,n="",r=null)=>lS.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>lS.cocCancelWithdraw(e),e.cocClaim=e=>lS.cocClaim(e),e.cocGetInfo=()=>lS.cocGetInfo(),e.cocGetRecords=(e,t,n)=>lS.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>lS.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>lS.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>lS.cocWithdraw(e,t,n),e.connectWallet=()=>lS.connectWallet(),e.consumePurchase=e=>lS.consumePurchase(e),e.copyShareLink=(e="")=>lS.copyShareLink(e),e.depositToken=(e,t,n,r)=>lS.depositToken(e,t,n,r),e.disconnectWallet=()=>lS.disconnectWallet(),e.getContentSafeAreaInset=()=>lS.getContentSafeAreaInset(),e.getCpCustomLink=()=>lS.getCpCustomLink(),e.getItem=e=>lS.getItem(e),e.getNfts=()=>lS.getNfts(),e.getSafeAreaInset=()=>lS.getSafeAreaInset(),e.getShareLink=(e="")=>lS.getShareLink(e),e.getStartParam=()=>lS.getStartParam(),e.getWalletFriendlyAddress=()=>lS.getWalletFriendlyAddress(),e.getWalletName=()=>lS.getWalletName(),e.getWalletRawAddress=()=>lS.getWalletRawAddress(),e.init=(e=!1)=>lS.init(e),e.isConnectedWallet=()=>lS.isConnectedWallet(),e.isDesktopEnabled=()=>lS.isDesktopEnabled(),e.isTelegramClient=()=>lS.isTelegramClient(),e.login=()=>lS.login(),e.onEvent=(e,t)=>{lS.onEvent(e,t)},e.openGameForWeb=(e="")=>{lS.openGameForWeb(e)},e.playAd=(e="ad_event1")=>lS.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>lS.purchase(e,t,n,r,o,i),e.queryPurchases=()=>lS.queryPurchases(),e.queryPurchses=()=>lS.queryPurchases(),e.ready=()=>{lS.ready()},e.setGameUserId=e=>{lS.setGameUserId(e)},e.setItem=(e,t)=>lS.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>lS.share(e,t,n,r,o),e.signData=()=>lS.signData(),e.spCancelWithdraw=e=>lS.spCancelWithdraw(e),e.spClaim=e=>lS.spClaim(e),e.spGetInfo=()=>lS.spGetInfo(),e.spGetRecords=(e,t,n)=>lS.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>lS.spGetWithdrawDetail(e),e.spQueryConsume=e=>lS.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>lS.spWithdraw(e,t,n),e.vibrate=e=>{lS.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
1285
+ `:null,qC=zi("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${$(n.color)}`]]}})(Hx(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:FC||{animation:`${zC} 1.4s linear infinite`}},...Object.entries(e.palette).filter($C()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),HC=zi("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),VC=zi("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hx(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:BC||{animation:`${UC} 1.4s ease-in-out infinite`}}]}))),KC=zi("circle",{name:"MuiCircularProgress",slot:"Track"})(Hx(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),GC=L.forwardRef(function(e,t){const n=Fi({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate",...p}=n,h={...n,color:o,disableShrink:i,size:s,thickness:c,value:u,variant:f,enableTrackSlot:a},g=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Kr({root:["root",n,`color${$(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${$(n)}`,o&&"circleDisableShrink"]},DC,t)})(h),m={},y={},b={};if("determinate"===f){const e=2*Math.PI*((WC-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return d.jsx(qC,{className:sr(g.root,r),style:{width:s,height:s,...y,...l},ownerState:h,ref:t,role:"progressbar",...b,...p,children:d.jsxs(HC,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:[a?d.jsx(KC,{className:g.track,ownerState:h,cx:WC,cy:WC,r:(WC-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,d.jsx(VC,{className:g.circle,style:m,ownerState:h,cx:WC,cy:WC,r:(WC-c)/2,fill:"none",strokeWidth:c})]})})});function QC(e){return parseInt(L.version,10)>=19?e?.props?.ref||null:e?.ref||null}const YC={entering:{opacity:1},entered:{opacity:1}},ZC=L.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=cC,...v}=e,w=L.useRef(null),x=Zx(w,QC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{xC(e);const r=CC({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=CC({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>L.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...YC[e],...m,...a.props.style},ref:x,...n})})}),XC=ur("MuiBox",["root"]),JC=ji(),ek=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Hn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ke);return L.forwardRef(function(e,a){const s=tr(n),{className:l,component:c="div",...u}=Ge(e);return d.jsx(i,{as:c,ref:a,className:sr(l,o?o(r):r),theme:t&&s[t]||s,...u})})}({themeId:Ni,defaultTheme:JC,defaultClassName:XC.root,generateClassName:ir.generate});function tk(e){return cr("MuiButton",e)}const nk=ur("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),rk=L.createContext({}),ok=L.createContext(void 0),ik=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ak=zi(IC,{shouldForwardProp:e=>Wi(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hx(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${nk.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nk.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${nk.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${nk.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter($C()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nk.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nk.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${nk.loading}`]:{color:"transparent"}}}]}})),sk=zi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${$(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ik]})),lk=zi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${$(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ik]})),ck=zi("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),uk=zi("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dk=L.forwardRef(function(e,t){const n=L.useContext(rk),r=L.useContext(ok),o=Fi({props:Cr(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:g=!1,id:m,loading:y=null,loadingIndicator:b,loadingPosition:v="center",size:w="medium",startIcon:x,type:C,variant:k="text",...S}=o,E=Fr(m),_=b??d.jsx(GC,{"aria-labelledby":E,color:"inherit",size:16}),T={...o,color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:f,fullWidth:g,loading:y,loadingIndicator:_,loadingPosition:v,size:w,type:C,variant:k},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:s,classes:l}=e,c=Kr({root:["root",a&&"loading",i,`${i}${$(t)}`,`size${$(o)}`,`${i}Size${$(o)}`,`color${$(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${$(s)}`],startIcon:["icon","startIcon",`iconSize${$(o)}`],endIcon:["icon","endIcon",`iconSize${$(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},tk,l);return{...l,...c}})(T),A=(x||y&&"start"===v)&&d.jsx(sk,{className:P.startIcon,ownerState:T,children:x||d.jsx(uk,{className:P.loadingIconPlaceholder,ownerState:T})}),R=(p||y&&"end"===v)&&d.jsx(lk,{className:P.endIcon,ownerState:T,children:p||d.jsx(uk,{className:P.loadingIconPlaceholder,ownerState:T})}),O=r||"",M="boolean"==typeof y?d.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:y&&d.jsx(ck,{className:P.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(ak,{ownerState:T,className:sr(n.className,P.root,l,O),component:s,disabled:c||y,focusRipple:!f,focusVisibleClassName:sr(P.focusVisible,h),ref:t,type:C,id:y?E:m,...S,classes:P,children:[A,"end"!==v&&M,i,"end"===v&&M,R]})});function fk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Qx(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"==typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const pk=L.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:c="down",easing:u=r,in:f,onEnter:p,onEntered:h,onEntering:g,onExit:m,onExited:y,onExiting:b,style:v,timeout:w=o,TransitionComponent:x=cC,...C}=e,k=L.useRef(null),S=Zx(QC(s),k,t),E=e=>t=>{e&&(void 0===t?e(k.current):e(k.current,t))},_=E((e,t)=>{fk(c,e,l),xC(e),p&&p(e,t)}),T=E((e,t)=>{const r=CC({timeout:w,style:v,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),P=E(h),A=E(b),R=E(e=>{const t=CC({timeout:w,style:v,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),fk(c,e,l),m&&m(e)}),O=E(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),M=L.useCallback(()=>{k.current&&fk(c,k.current,l)},[c,l]);return L.useEffect(()=>{if(f||"down"===c||"right"===c)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}(()=>{k.current&&fk(c,k.current,l)}),t=Qx(k.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,f,l]),L.useEffect(()=>{f||M()},[f,M]),d.jsx(x,{nodeRef:k,onEnter:_,onEntered:P,onEntering:T,onExit:R,onExited:O,onExiting:A,addEndListener:e=>{i&&i(k.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>L.cloneElement(s,{ref:S,style:{visibility:"exited"!==e||f?void 0:"hidden",...v,...s.props.style},...n})})}),hk=function(e={}){const{createStyledComponent:t=uo,useThemeProps:n=fo,useTheme:r=tr,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(to,ro,no,Jr,oo,io,eo),s=L.forwardRef(function(e,t){const s=r(),l=Ge(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(l,s.breakpoints);const{className:c,children:u,columns:f=12,container:p=!1,component:h="div",direction:g="row",wrap:m="wrap",size:y={},offset:b={},spacing:v=0,rowSpacing:w=v,columnSpacing:x=v,unstable_level:C=0,...k}=l,S=i(y,s.breakpoints,e=>!1!==e),E=i(b,s.breakpoints),_=e.columns??(C?void 0:f),T=e.spacing??(C?void 0:v),P=e.rowSpacing??e.spacing??(C?void 0:w),A=e.columnSpacing??e.spacing??(C?void 0:x),R={...l,level:C,columns:_,container:p,direction:g,wrap:m,spacing:T,rowSpacing:P,columnSpacing:A,size:S,offset:E},O=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:s}=e;return Kr({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...lo(r),...ao(s),...n?so(i,t.breakpoints.keys[0]):[]]},e=>cr(o,e),{})})(R,s);return d.jsx(a,{ref:t,as:h,ownerState:R,className:sr(O.root,c),...k,children:L.Children.map(u,e=>{return L.isValidElement(e)&&(t=e,n=["Grid"],L.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName))&&p&&e.props.container?L.cloneElement(e,{unstable_level:e.props?.unstable_level??C+1}):e;var t,n})})});return s.muiName="Grid",s}({createStyledComponent:zi("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Fi({props:e,name:"MuiGrid"}),useTheme:$i}),gk={entering:{transform:"none"},entered:{transform:"none"}},mk=L.forwardRef(function(e,t){const n=$i(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:f,onExit:p,onExited:h,onExiting:g,style:m,timeout:y=r,TransitionComponent:b=cC,...v}=e,w=L.useRef(null),x=Zx(w,QC(a),t),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=C(f),S=C((e,t)=>{xC(e);const r=CC({style:m,timeout:y,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),c&&c(e,t)}),E=C(u),_=C(g),T=C(e=>{const t=CC({style:m,timeout:y,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),p&&p(e)}),P=C(h);return d.jsx(b,{appear:i,in:l,nodeRef:w,onEnter:S,onEntered:E,onEntering:k,onExit:T,onExited:P,onExiting:_,addEndListener:e=>{o&&o(w.current,e)},timeout:y,...v,children:(e,{ownerState:t,...n})=>L.cloneElement(a,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...gk[e],...m,...a.props.style},ref:x,...n})})}),yk=function(e={}){const{createStyledComponent:t=ho,useThemeProps:n=go,componentName:r="MuiStack"}=e,o=t(yo);return L.forwardRef(function(e,t){const i=Ge(n(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:f,useFlexGap:p=!1,...h}=i,g={direction:s,spacing:l,useFlexGap:p},m=Kr({root:["root"]},e=>cr(r,e),{});return d.jsx(o,{as:a,ownerState:g,ref:t,className:sr(m.root,f),...h,children:c?mo(u,c):u})})}({createStyledComponent:zi("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Fi({props:e,name:"MuiStack"})});class bk extends L.PureComponent{componentDidMount(){}render(){return ec()?d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}}),d.jsx(ek,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(GC,{color:"inherit"})})]}):d.jsx(ek,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"}})}}class vk extends L.PureComponent{render(){return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041():"1048"==ta.GAME_ID?this.render1048():this.renderDefault()}renderDefault(){return d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:40,borderStyle:"solid",borderImage:`url(${Jl("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}render1041(){return d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:12,borderStyle:"solid",borderImage:`url(${Jl("1041_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"12 fill"}})}render1048(){return d.jsxs(d.Fragment,{children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,borderWidth:"75px 25px 25px 25px",borderStyle:"solid",borderImage:`url(${Jl("1048_bg_1.png")})`,borderImageRepeat:"repeat",borderImageSlice:"75 25 25 25 fill"}}),d.jsx(ek,{sx:{position:"absolute",top:80,bottom:15,left:15,right:15,borderWidth:"60px 0 130px 0",borderStyle:"solid",borderImage:`url(${Jl("1048_bg_2.png")})`,borderImageSlice:"60 0 130 0 fill",borderImageRepeat:"stretch",boxSizing:"border-box"}})]})}}const wk={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class xk extends L.PureComponent{constructor(){super(...arguments),this._aniUrl=`${Jl("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(wk).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=wk[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?d.jsx(ek,{sx:{marginLeft:8,height:118},children:d.jsx(ek,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):d.jsx(ek,{sx:{marginLeft:8,height:118}})}}class Ck extends L.PureComponent{render(){const e=window.Telegram.WebApp.isFullscreen;return d.jsx(ZC,{in:!0,timeout:{enter:1e3},children:d.jsxs(ek,{sx:{width:1,top:e?"10%":"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[d.jsx(xk,{}),d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),d.jsx(ek,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}class kk extends L.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=Hl[e];return d.jsxs(ek,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[d.jsx(ek,{component:"img",src:`${Jl(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),d.jsx(ek,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Sk extends L.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=cc.gameInfo;return d.jsxs(ek,{sx:{pb:2},children:[d.jsxs(ek,{sx:{display:"flex",alignItems:"center",pt:2},children:[d.jsx(ek,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),d.jsxs(ek,{children:[d.jsx(ek,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),d.jsx(hk,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map((e,t)=>d.jsx(hk,{children:d.jsx(kk,{tagId:e})},t))})]})]}),d.jsx(ek,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}const Ek=function(e){function t(t,n){return d.jsx(Gx,{"data-testid":void 0,ref:n,...t,children:e})}return t.muiName=Gx.muiName,L.memo(L.forwardRef(t))}(d.jsx("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}));class _k extends L.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i,isItalic:a}=this.props,s={color:n,fontSize:t,fontWeight:"bold",fontStyle:a?"italic":"normal",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:`"${e}"`,WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return d.jsx(ek,{content:e,sx:s,children:e})}}class Tk extends L.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout(()=>{this.setState({showCircle:!0})},600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return d.jsx(ek,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:d.jsxs(ek,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[d.jsx(ek,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),d.jsx(ek,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:d.jsx(GC,{color:"inherit"})})]})})}}let Pk=null;const Ak=()=>{if(Pk)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(Tk,{})),Pk={div:e,root:t}},Rk=()=>{if(!Pk)return;const e=Pk.div;Pk.root.unmount(),e.parentNode?.removeChild(e),Pk=null};class Ok extends L.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout(()=>{Lk(e)},500)}}componentDidMount(){this._aniTimer=window.setTimeout(()=>{this.setState({checked:!1})},2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return d.jsx(ek,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:d.jsx(pk,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:d.jsx(ek,{children:d.jsx(mk,{in:!0,timeout:{enter:1e3},children:d.jsx(ek,{sx:{display:"flex"},children:d.jsx(ZC,{in:e,timeout:{enter:1e3,exit:1e3},children:d.jsx(ek,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const Mk={},Lk=e=>{const t=Mk[e];if(!t)return;const n=t.div;t.root.unmount(),n.parentNode?.removeChild(n),delete Mk[e]},jk=e=>{const t=(n=1,r=1e3,Math.floor(Math.random()*(r-n+1)+n)+"-"+Date.now());var n,r;const o=document.createElement("div");document.body.appendChild(o);const i=M.createRoot(o);i.render(d.jsx(Ok,{id:t,text:e})),Mk[t]={div:o,root:i}};class Ik extends L.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!cc.plutoId)return void console.log("pluto id is null");if(!tc())return void console.log("sharing is not available outside the Telegram environment");if(!qx.shareMessageEnable())return void jk("If you are unable to share, please update Telegram to the latest version and try again.");const e=qx.formatShareLink();Ak(),qx.reqGetShareMessage(e).then(e=>(console.log("pluto sdk share"),qx.shareMessage(e))).then(()=>{console.log("share success")}).catch(e=>{console.log(e)}).finally(()=>{Rk()})}}render(){return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(Ek,{sx:{width:26,height:26,position:"relative",mr:1}}),d.jsx(_k,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Nk extends L.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){Fx.subscribe(El,this.onReady)}componentWillUnmount(){Fx.unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?d.jsx(ek,{sx:{height:50,position:"relative",mx:1.25},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(_k,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):d.jsxs(ek,{sx:{height:50,position:"relative",mx:1.25},children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill",filter:"grayscale(100%)"}}),d.jsxs(ek,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(_k,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),d.jsx(GC,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}class $k extends L.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{try{window.Telegram.WebApp.addToHomeScreen()}catch(e){}}}render(){return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{component:"img",src:Jl("add_screen.png"),sx:{position:"relative"}})]})})}}const Dk=zi(ek)(()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"}));class Wk extends L.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(_l,Nl.none)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(Pl,{})}}render(){const{showSlide:e}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${Jl("bg_1.png")})`}}),d.jsx(Ck,{}),d.jsx(ek,{sx:{width:1,bottom:ic()?40:20,position:"absolute"},children:d.jsx(pk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(ek,{children:[d.jsxs(Dk,{children:[d.jsx(vk,{}),d.jsxs(ek,{sx:{position:"relative",px:3,pt:1,pb:4},children:[d.jsx(Sk,{}),this.hideShare()?null:ic()?d.jsxs(ek,{sx:{height:50},children:[d.jsx(ek,{sx:{width:.8,height:50,float:"left"},children:d.jsx(Ik,{})}),d.jsx(ek,{sx:{width:.18,height:50,float:"right"},children:d.jsx($k,{})})]}):d.jsx(Ik,{})]})]}),d.jsx(Dk,{sx:{paddingTop:2},children:d.jsx(Nk,{onClick:this.onClickPlay})})]})})})]})}hideShare(){return"1002"==ta.GAME_ID}}class zk extends L.PureComponent{render(){return"1041"==ta.GAME_ID||"1048"==ta.GAME_ID?this.renderBlack():this.renderDefault()}renderDefault(){return d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}renderBlack(){return d.jsx(ek,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.6)"}})}}class Uk extends L.PureComponent{render(){const{title:e,onClickClose:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e)}renderDefault(e){return d.jsxs(d.Fragment,{children:[d.jsx(ek,{sx:{width:1,height:70,position:"relative"},children:d.jsxs(ek,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(ek,{component:"img",src:Jl("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5,mr:1}}),d.jsx(ek,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),d.jsx(ek,{component:"img",src:Jl("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5,ml:1}})]})}),d.jsx(ek,{sx:{mx:3,borderBottom:"3px solid #a8774d",position:"relative"}})]})}render1041(e){return d.jsx(ek,{sx:{width:1,height:60,position:"relative",pt:2},children:d.jsxs(ek,{sx:{width:1,height:50,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[d.jsx(ek,{component:"img",src:Jl("1041_title_1.png"),sx:{position:"relative",mr:2}}),d.jsx(_k,{content:e,fontSize:32,color:"#fff",strokeColor:"#000",strokeWidth:4}),d.jsx(ek,{component:"img",src:Jl("1041_title_2.png"),sx:{position:"relative",ml:2}})]})})}render1048(e,t){return d.jsxs(ek,{sx:{width:1,height:70},children:[d.jsx(ek,{sx:{width:1,height:1,position:"relative",display:"flex",justifyContent:"center",alignItems:"center"},children:d.jsx(_k,{content:e,fontSize:32,color:"#eac144",strokeColor:"#000",strokeWidth:4})}),d.jsx(ek,{component:"img",src:Jl("1048_close.png"),sx:{width:52,height:52,position:"absolute",top:10,right:10},onClick:t})]})}}class Fk extends L.PureComponent{render(){const{address:e,onClickWallet:t}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsx(dk,{sx:{width:1,height:30,color:"#fff",fontWeight:"bold",borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none"},variant:"outlined",onClick:t,children:e})}render1041(e,t){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:1.5},variant:"text",onClick:t,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:10,borderStyle:"solid",borderImage:`url(${Jl("1041_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"10 fill"}}),d.jsx(ek,{sx:{position:"relative"},children:d.jsx(_k,{content:e,fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e,t){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:t,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1048_wallet.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#fff"},children:e})]})}}class Bk extends L.PureComponent{render(){const{onClickDisconnect:e}=this.props;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(dk,{sx:{width:1,height:30,borderRadius:13,fontWeight:"bold",color:"#666666",backgroundColor:"#fff",borderColor:"#787772",textTransform:"none"},variant:"outlined",onClick:e,children:"Disconnect"})}render1041(e){return d.jsxs(dk,{sx:{width:1,height:40,borderRadius:2},variant:"text",onClick:e,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1041_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",pb:"4px"},children:d.jsx(_k,{content:"Disconnect",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})}render1048(e){return d.jsxs(dk,{sx:{width:1,height:32,borderRadius:3},variant:"text",onClick:e,children:[d.jsx(ek,{sx:{position:"absolute",width:1,height:1,top:0,borderWidth:15,borderStyle:"solid",borderImage:`url(${Jl("1048_disconnect.png")})`,borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{sx:{position:"relative",textTransform:"none",fontSize:16,fontWeight:"bold",color:"#785131"},children:"Disconnect"})]})}}class qk extends L.PureComponent{constructor(){super(...arguments),this.state={address:Bx.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Bx.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Bx.disconnect()}}componentDidMount(){Fx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){Fx.unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return d.jsxs(yk,{spacing:1,sx:{float:"right",width:114},children:[d.jsx(Fk,{address:r,onClickWallet:this.onClickWallet}),t?d.jsx(Bk,{onClickDisconnect:this.onClickDisconnect}):null]})}}class Hk extends L.PureComponent{render(){const{name:e,usd:t}=cc.purchaseData;return"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e,t):"1048"==ta.GAME_ID?this.render1048(e,t):this.renderDefault(e,t)}renderDefault(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(ek,{sx:{textAlign:"center",mb:2},children:[d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",color:"#7c4b30",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(ek,{sx:{mt:1,mb:4,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:20,pt:1},children:d.jsx(qk,{})})]})}render1041(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5},children:[d.jsxs(ek,{sx:{textAlign:"center",mb:2},children:[d.jsx(ek,{sx:{display:"flex",justifyContent:"center",width:"90%",mx:"auto"},children:d.jsx(_k,{content:e,fontSize:24,color:"#fff",strokeColor:"#000",strokeWidth:3})}),d.jsx(ek,{sx:{mt:1,mb:3,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:22,color:"#37d128",strokeColor:"#000",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:24,pt:1},children:d.jsx(qk,{})})]})}render1048(e,t){return d.jsxs(ek,{sx:{width:1,position:"relative",pt:5,pb:2},children:[d.jsxs(ek,{children:[d.jsx(ek,{sx:{fontSize:20,fontWeight:"bold",color:"#785131",width:"90%",mx:"auto",textAlign:"center"},children:e}),d.jsx(ek,{sx:{display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#785131",strokeWidth:3})})]}),d.jsx(ek,{sx:{position:"absolute",top:0,right:22,pt:2},children:d.jsx(qk,{})})]})}}class Vk extends L.PureComponent{render(){const{discount:e}=this.props;return e<=0?null:"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(e):"1048"==ta.GAME_ID?this.render1048(e):this.renderDefault(e)}renderDefault(e){return d.jsx(ek,{sx:{top:-12,right:-14,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(ek,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}render1041(e){return d.jsx(ek,{sx:{top:-15,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:66,height:62,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1041_sale_off.png"),sx:{width:1,height:1,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{position:"relative",justifyItems:"center",pt:"11px"},children:d.jsx(_k,{content:100*e+"%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{position:"relative",justifyItems:"center",mt:"-7px"},children:d.jsx(_k,{content:"OFF",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})]})})}render1048(e){return d.jsx(ek,{sx:{top:-11,right:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:52,height:66,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1048_sale_off.png"),sx:{width:52,height:66,position:"absolute",display:"block"}}),d.jsx(ek,{sx:{top:17,left:-8,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*e+"%"}),d.jsx(ek,{sx:{bottom:7,left:-2,width:62,height:25,rotate:"-20deg",textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})})}}class Kk extends L.PureComponent{render(){return d.jsx(ek,{sx:{top:-14,left:-20,position:"absolute",pointerEvents:"none"},children:d.jsxs(ek,{sx:{width:50,height:50,position:"relative",float:"right",display:"inline-block"},children:[d.jsx(ek,{component:"img",src:Jl("1048_greate_value.png"),sx:{width:50,height:50,position:"absolute",display:"block"}}),d.jsxs(ek,{sx:{width:1,display:"flex",flexDirection:"column",alignItems:"center"},children:[d.jsx(ek,{sx:{mt:"4px"},children:d.jsx(_k,{content:"Great",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{mt:"-4px"},children:d.jsx(_k,{content:"Value",fontSize:10,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsx(ek,{sx:{mt:"-4px"},children:d.jsx(_k,{content:"48%",fontSize:16,color:"#eef210",strokeColor:"#000",strokeWidth:2})})]})]})})}}class Gk extends L.PureComponent{render(){const{currencyKey:e,price:t,oldPrice:n,discount:r,onClickPay:o,isDisabled:i}=this.props,a=Bl[ta.GAME_ID]||Bl[0],s=Jl(a[e]),l=Fl[e];let c=`${e==zl.star?t:t.toFixed(2)}`,u=`${e==zl.star?n:n.toFixed(2)}`,d=(c+l).length;d<=13?(c+=` ${l}`,u=` ${u} ${l} `):d<=15&&(c+=` ${l}`,u=` ${u} `);let f=22,p=14;return window.innerWidth<=390&&(f=19,p=11),"1041"==ta.GAME_ID||"1060"==ta.GAME_ID?this.render1041(s,c,u,r,o,f,p,!!i):"1048"==ta.GAME_ID?this.render1048(s,c,u,r,o,f,p,!!i,e==zl.coc):this.renderDefault(s,c,u,r,o,f,p,!!i)}renderDefault(e,t,n,r,o,i,a,s){return d.jsxs(ek,{sx:{height:50,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3,"& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"contained",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:30,height:30,mr:1,position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Vk,{discount:r})]})}render1041(e,t,n,r,o,i,a,s){return d.jsxs(ek,{sx:{height:64,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:"12px",color:"#c2bcbc","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("1041_pay_button.png")})`,borderWidth:"0px 25px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"0 25 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:36,height:36,mr:1,mb:"4px",position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#fff",strokeColor:"#000",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#000",strokeWidth:2,decorationLine:!0}):null]}),d.jsx(Vk,{discount:r})]})}render1048(e,t,n,r,o,i,a,s,l){const c=l?"1048_pay_button_1.png":"1048_pay_button_0.png";return d.jsxs(ek,{sx:{height:54,position:"relative"},children:[d.jsxs(dk,{sx:{width:1,height:1,borderRadius:"26px","& > *":{filter:s?"grayscale(100%)":"none"}},disabled:s,variant:"text",onClick:o,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl(c)})`,borderWidth:"20px",borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),d.jsx(ek,{component:"img",src:e,sx:{width:34,height:34,mr:1,mb:"4px",position:"relative"}}),d.jsx(_k,{content:t,fontSize:i,color:"#feff9d",strokeColor:"#785131",strokeWidth:3}),d.jsx(ek,{sx:{width:"8px"}}),r>0?d.jsx(_k,{content:n,fontSize:a,color:"#fff",strokeColor:"#785131",strokeWidth:2,decorationLine:!0}):null]}),l?d.jsx(Kk,{}):null,d.jsx(Vk,{discount:r})]})}}class Qk extends L.PureComponent{render(){const e=window.innerWidth;let t=14;return e<=375?t=12:e<=390&&(t=13),d.jsxs(ek,{sx:{width:1,height:140,mb:2},children:[d.jsx(ek,{sx:{position:"absolute",top:182,left:24,right:24,height:140,backgroundSize:"100% 100%",backgroundRepeat:"no-repeat",backgroundImage:`url(${Jl("1048_suggest_bg.png")})`}}),d.jsxs(ek,{sx:{position:"absolute",width:"50%",height:140,left:24},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_0.png"),sx:{width:26,height:29,position:"absolute",left:"-4px",top:"-10px"}}),d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_1.png"),sx:{width:64,height:64,position:"absolute",left:"36%",top:"-32px"}}),d.jsx(ek,{sx:{position:"absolute",width:1},children:d.jsx(ek,{sx:{mt:1,display:"flex",justifyContent:"right",pr:1},children:d.jsx(_k,{content:"60%",fontSize:16,color:"#35f110",strokeColor:"#000",strokeWidth:2})})}),d.jsx(ek,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:"Use COC Payment",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px",pt:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"75%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"Discount",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"36%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"Cashback Lottery",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})]}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",pl:"10px"},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_2.png"),sx:{width:26,height:20}})," ",d.jsx(_k,{content:"Total savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"48%",fontSize:t,color:"#eee30b",strokeColor:"#000",strokeWidth:2,isItalic:!0})]})]}),d.jsxs(ek,{sx:{position:"absolute",width:"38%",height:140,right:24},children:[d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_3.png"),sx:{width:26,height:29,position:"absolute",right:"-4px",top:"-10px"}}),d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_4.png"),sx:{width:50,height:36,position:"absolute",left:"40%",top:"-16px"}}),d.jsx(ek,{sx:{position:"absolute",width:1},children:d.jsx(ek,{sx:{mt:1,display:"flex",justifyContent:"left",pl:2},children:d.jsx(_k,{content:"40%",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})})}),d.jsx(ek,{sx:{mt:3.5,display:"flex",justifyContent:"center"},children:d.jsx(_k,{content:"Other Methods",fontSize:16,color:"#fff",strokeColor:"#000",strokeWidth:2})}),d.jsxs(ek,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",pt:"10px",pr:"10px"},children:[d.jsx(_k,{content:"Full price(100%)",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(ek,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(_k,{content:"No cashback",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]}),d.jsxs(ek,{sx:{display:"flex",justifyContent:"flex-end",flexDirection:"row",pr:"10px"},children:[d.jsx(_k,{content:"savings:",fontSize:t,color:"#fff",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(_k,{content:"48%",fontSize:t,color:"#ee0f0b",strokeColor:"#000",strokeWidth:2,isItalic:!0})," ",d.jsx(ek,{component:"img",src:Jl("1048_suggest_icon_5.png"),sx:{width:20,height:20}})]})]})]})}}class Yk extends L.PureComponent{constructor(){super(...arguments),this._status=!1,this._cocInsufficient=!1,this._tokenInsufficient=!1,this.state={showSlide:!0},this.onExited=()=>{Fx.publish(_l,Nl.none)},this.onClickClose=()=>{this.setState({showSlide:!1})},this.onClickStar=()=>{const e=Ul[zl.star];Ak(),qx.reqOrder($l.star,e).then(t=>{qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,0),qx.openInvoice(t.payLink).then(()=>{qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,1),this._status=!0,this.onClickClose()}).catch(n=>{console.log(n),qx.reportStarPayStatus(e,t.orderNo,t.payLink,t.amount,2),jk(n.message)})}).catch(e=>{jk(e.message)}).finally(()=>{Rk()})},this.onClickCati=()=>{const e=Ul[zl.cati];this.connectWallet().then(()=>(Ak(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Rk()})},this.onClickPybobo=()=>{const e=Ul[zl.pybobo];this.connectWallet().then(()=>(Ak(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Rk()})},this.onClickTon=()=>{const e=Ul[zl.ton];this.connectWallet().then(()=>(Ak(),qx.reqOrder($l.tonConnect,e))).then(e=>{this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Rk()})},this.onClickUsdt=()=>{const e=Ul[zl.usdt];this.connectWallet().then(()=>(Ak(),qx.reqOrder($l.tonConnect,e))).then(t=>Bx.getTokenPayload(e,t.amount,t.payload,t.address)).then(e=>{this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})}).catch(e=>{e.code!=Il.walletError&&jk(e.message)}).finally(()=>{Rk()})},this.onClickCoc=()=>{const e=Ul[zl.coc];Ak(),qx.reqOrder($l.coc,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._cocInsufficient=!0,this.onClickClose()):jk(e.message)}).finally(()=>{Rk()})},this.onClickCroco=()=>{const e=Ul[zl.croco];Ak(),qx.reqOrder($l.croco,e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{26==e.code?(this._tokenInsufficient=!0,this.onClickClose()):jk(e.message)}).finally(()=>{Rk()})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=cc.purchaseData;let o={success:e,productId:t,orderId:n,customData:r,orderNo:e?cc.purchaseData.orderNo:""};this._cocInsufficient&&(o.cocInsufficient=!0),this._tokenInsufficient&&(o.tokenInsufficient=!0),Fx.publish(Al,o)}render(){const{usd:e,ton:t,tonOld:n,tonDiscount:r,usdt:o,usdtOld:i,usdtDiscount:a,cati:s,catiOld:l,catiDiscount:c,star:u,starOld:f,starDiscount:p,coc:h,cocOld:g,cocDiscount:m,pybobo:y,pyboboOld:b,pyboboDiscount:v,croco:w,crocoOld:x,crocoDiscount:C}=cc.purchaseData,{showSlide:k}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(zk,{}),d.jsxs(ek,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[d.jsx(ek,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(ek,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:4,"@media (max-height: 480px)":{top:10}},children:d.jsx(pk,{direction:"up",in:k,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:d.jsxs(ek,{sx:{width:1,maxWidth:420,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(vk,{}),d.jsx(Uk,{title:"Purchase",onClickClose:this.onClickClose}),d.jsx(Hk,{}),this.cocPayEnable()&&h?d.jsx(Qk,{}):null,d.jsxs(yk,{spacing:2,sx:{mx:3,pb:4,minHeight:110},children:[this.cocPayEnable()&&h?d.jsx(Gk,{currencyKey:zl.coc,price:h,oldPrice:g,discount:m,onClickPay:this.onClickCoc}):null,this.crocoPayEnable()&&w?d.jsx(Gk,{currencyKey:zl.croco,price:w,oldPrice:x,discount:C,onClickPay:this.onClickCroco}):null,this.catiPayEnable()?d.jsx(Gk,{currencyKey:zl.cati,price:s,oldPrice:l,discount:c,onClickPay:this.onClickCati}):null,this.pyboboPayEnable()?d.jsx(Gk,{currencyKey:zl.pybobo,price:y,oldPrice:b,discount:v,onClickPay:this.onClickPybobo}):null,this.tonPayEnable()?d.jsx(Gk,{currencyKey:zl.ton,price:t,oldPrice:n,discount:r,onClickPay:this.onClickTon}):null,this.usdtPayEnable()?d.jsx(Gk,{currencyKey:zl.usdt,price:o,oldPrice:i,discount:a,onClickPay:this.onClickUsdt}):null,this.starPayEnable()?d.jsx(Gk,{currencyKey:zl.star,price:u,oldPrice:f,discount:p,onClickPay:this.onClickStar,isDisabled:e>2e3}):null]})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Bx.connected)return e();Bx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Bx.chain;ta.TEST_MODE&&t==Oc.MAINNET?jk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Oc.TESTNET?Bx.sendTransaction(e).then(e=>{this._status=!0,this.onClickClose()}).catch(e=>{console.log(e.message)}):jk("Please switch chain MAINNET")}starPayEnable(){return!!tc()}usdtPayEnable(){return!this.onlyUsePyboboPayProduct()&&this.cryptoPayEnable()}tonPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041","1048","1060"].includes(ta.GAME_ID)}catiPayEnable(){if(this.onlyUsePyboboPayProduct())return!1;if(!this.cryptoPayEnable())return!1;return["1000","1002","1041"].includes(ta.GAME_ID)}pyboboPayEnable(){return this.onlyUsePyboboPayProduct()}cocPayEnable(){return"1048"==ta.GAME_ID}crocoPayEnable(){return"1060"==ta.GAME_ID}cryptoPayEnable(){return!!ta.TEST_MODE||!rc()&&!oc()}onlyUsePyboboPayProduct(){if("1060"!=ta.GAME_ID)return!1;const{productId:e}=cc.purchaseData,t=parseInt(e);return!(t<6e5||t>61e4)}}class Zk extends L.PureComponent{render(){const{name:e}=cc.checkInData;return d.jsxs(ek,{sx:{width:1,height:100,position:"relative"},children:[d.jsx(ek,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:d.jsx(ek,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),d.jsx(ek,{sx:{mx:5,mt:"1048"==ta.GAME_ID?3:1,position:"relative"},children:d.jsx(qk,{})})]})}}class Xk extends L.PureComponent{constructor(){super(...arguments),this.state={buttonText:Bx.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){Fx.subscribe(Tl,this.onWalletConnect)}componentWillUnmount(){Fx.unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return d.jsx(ek,{sx:{height:50,position:"relative"},children:d.jsxs(dk,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[d.jsx(ek,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${Jl("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),d.jsx(_k,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Jk extends L.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{Fx.publish(_l,Nl.none)},this.onClickSignIn=()=>{this.connectWallet().then(()=>{const{amount:e,payload:t,address:n}=cc.checkInData;this.sendTransaction({amount:e,address:n,payload:t})}).catch(e=>{console.log(e)})},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=cc.checkInData;Fx.publish(Rl,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(zk,{}),d.jsxs(ek,{sx:{width:1,height:1,position:"relative"},children:[d.jsx(ek,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),d.jsx(ek,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:d.jsx(pk,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:d.jsxs(ek,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[d.jsx(vk,{}),d.jsx(Uk,{title:"Claim",onClickClose:this.onClickClose}),d.jsx(Zk,{}),d.jsx(yk,{spacing:2,sx:{mx:5,pb:4,minHeight:110},children:d.jsx(Xk,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise((e,t)=>{if(Bx.connected)return e();Bx.connect().then(t=>{e()}).catch(e=>{t(e)})})}sendTransaction(e){const t=Bx.chain;ta.TEST_MODE&&t==Oc.MAINNET?jk("Please switch chain TESTNET"):ta.TEST_MODE||t!=Oc.TESTNET?Bx.sendTransaction(e).then(e=>{this.verify(e)}).catch(e=>{console.log(e.message)}):jk("Please switch chain MAINNET")}verify(e){const t=Bx.chain,n=Bx.friendlyAddress,r=cc.checkInData.orderNo;Ak(),qx.reqCheckInVerify(t,e,r,n).then(()=>{this._status=!0,this.onClickClose()}).catch(e=>{jk(e.message),this.onClickClose()}).finally(()=>{Rk()})}}const eS=zi(ek)(()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0}));class tS extends L.PureComponent{constructor(){super(...arguments),this.state={pageId:Nl.index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){Fx.subscribe(_l,this.onSwitchPage),Fx.publish(kl,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case Nl.index:t=bk;break;case Nl.login:t=Wk;break;case Nl.purchase:t=Yk;break;case Nl.checkIn:t=Jk}return t?d.jsx(eS,{children:d.jsx(t,{})}):null}}const nS=()=>{console.info(`Pluto SDK version: ${ta.APP_VERSION}`),ta.init(),Vl.init(),qx.init(),Bx.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);M.createRoot(e).render(d.jsxs(d.Fragment,{children:[d.jsx(Qi,{}),d.jsx(tS,{})]}))};const rS=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{try{const e=this._handlerMap.event_playButtonClicked;if(!e)return;e.apply(null,[])}catch(n){console.error(n)}},this.onPuchaseCompleted=(e,t)=>{try{const e=this._handlerMap[Ol];e&&e.apply(null,[t]);const n=this._callbackMap[Ol];n&&(n.apply(null,[t]),this._callbackMap[Ol]=null)}catch(n){console.error(n)}},this.onCheckInCompleted=(e,t)=>{try{const e=this._handlerMap[Ml];e&&e.apply(null,[t]);const n=this._callbackMap[Ml];n&&(n.apply(null,[t]),this._callbackMap[Ml]=null)}catch(n){console.error(n)}},Fx.subscribe(Pl,this.onPlayButtonClicked),Fx.subscribe(Al,this.onPuchaseCompleted),Fx.subscribe(Rl,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class oS extends L.PureComponent{render(){const e=cc.gameInfo.orientation==Dl.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return d.jsx(ek,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:d.jsxs(ek,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[d.jsx(ek,{component:"img",src:Jl(n),sx:{position:"relative"}}),d.jsx(ek,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),d.jsx(ek,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let iS=null;const aS=()=>{if(iS)return;const e=document.createElement("div");document.body.appendChild(e);const t=M.createRoot(e);t.render(d.jsx(oS,{})),iS={div:e,root:t}},sS=()=>{if(!iS)return;const e=iS.div;iS.root.unmount(),e.parentNode?.removeChild(e),iS=null};const lS=new class{constructor(){this._appDidMount=!1,this._loadGameState=Ll.init,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},Fx.subscribe(kl,this.onAppDidMount)}init(e){return e&&qx.requestFullScreen(),new Promise((e,t)=>{if(cc.gameInfo)return this._initialized=!0,this.addOrientationChangeListener(),e();Fx.subscribeOnce(Sl,(n,r)=>{if(r)return this._initialized=!0,this.addOrientationChangeListener(),e();jk("Init game error, please try again later"),t({code:Il.initError,message:"Init error"})}),this._appDidMount&&this.getGameInfo()})}login(){return this._initialized?this._logined?Promise.reject({code:Il.logined,message:"Pluto sdk already login"}):qx.reqLogin().then(e=>(this._logined=!0,e)):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}ready(){this._logined?ec()?Fx.publish(_l,Nl.none):Fx.publish(El,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:Il.purchaseing,message:"Payment is being processed"}):(rS.registerCallback(Ol,i),this._purchaseing=!0,void qx.reqPurchase(e,t,n,r,o).then(()=>{this._purchaseing=!1,Fx.publish(_l,Nl.purchase),a()}).catch(e=>{this._purchaseing=!1,console.log(e.message),s(e)})):s({code:Il.notLogin,message:"Pluto sdk not login"}):s({code:Il.paramError,message:"Params error"}))}checkIn(e,t,n,r){return new Promise((o,i)=>e&&t?this._logined?this._checkingIn?i({code:Il.checkingIn,message:"Check in is being processed"}):(rS.registerCallback(Ml,r),this._checkingIn=!0,void qx.reqCheckIn(e,t,n).then(()=>{this._checkingIn=!1,Fx.publish(_l,Nl.checkIn),o()}).catch(e=>{this._checkingIn=!1,console.log(e.message),i(e)})):i({code:Il.notLogin,message:"Pluto sdk not login"}):i({code:Il.paramError,message:"Params error"}))}share(e,t,n,r,o){if(!this._logined)return Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"});if(!tc())return Promise.reject({code:Il.shareError,message:"Sharing is not available outside the Telegram environment"});if(!qx.shareMessageEnable())return jk("If you are unable to share, please update Telegram to the latest version and try again."),Promise.reject({code:Il.shareError,message:"Method not support"});const i=qx.formatShareLink(e);return qx.reqGetShareMessage(i,t,n,r,o).then(e=>qx.shareMessage(e))}getShareLink(e){return this._logined?qx.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise((t,n)=>{if(!this._logined)return n({code:Il.notLogin,message:"Pluto sdk not login"});let r=qx.formatShareLink(e);var o;(o=r,new Promise((e,t)=>{if(!o)return t({code:Il.clipboardError,message:"Param is null"});ac(o).then(()=>{e()}).catch(()=>{sc(o).then(()=>{e()}).catch(e=>{t(e)})})})).then(()=>{t()}).catch(e=>{n(e)})})}getItem(e){return e?this._initialized?qx.reqGetItem(e):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?qx.reqSetItem(e,t):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"}):Promise.reject({code:Il.paramError,message:"Params error"})}consumePurchase(e){return this._initialized?e?qx.reqFinishOrder(e):Promise.reject({code:Il.paramError,message:"Params error"}):Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}queryPurchases(){return this._initialized?qx.reqUnfinishRecord():Promise.reject({code:Il.notInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&rS.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return ic()&&tc()?window.Telegram.WebApp.safeAreaInset:{top:0,bottom:0,left:0,right:0}}getContentSafeAreaInset(){return ic()&&tc()?window.Telegram.WebApp.contentSafeAreaInset:{top:0,bottom:0,left:0,right:0}}playAd(e){return tc()?qx.playAd(e):Promise.reject({code:Il.playAdError,message:"Playing ads is not available outside the Telegram environment"})}vibrate(e){tc()||console.log("Vibrate is not available outside the Telegram environment"),qx.vibrate(e)}isDesktopEnabled(){return nc()&&(rc()||oc())}isTelegramClient(){return nc()}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!ta.GAME_URL)return void console.log("game url is null");const t=(new Xi.Base64).encode(ta.INIT_DATA),n=new URL(ta.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),window.Telegram.WebApp.openLink(n.href)}getCpCustomLink(){return ta.CP_CUSTOM_LINK}getStartParam(){return ta.START_PARAM}connectWallet(){return Bx.connect()}disconnectWallet(){return Bx.disconnect()}isConnectedWallet(){return Bx.connected}getWalletRawAddress(){return Bx.rawAddress}getWalletFriendlyAddress(){return Bx.friendlyAddress}getWalletName(){return Bx.walletName}depositToken(e,t,n,r){return new Promise((o,i)=>{const a=Ul[e];Bx.connect().then(()=>qx.reqDeposit(a,t,n,r)).then(e=>Bx.getTokenPayload(a,e.amount,e.payload,e.address)).then(e=>{let t={amount:"100000000",address:e.address,payload:e.payload};return Bx.sendTransaction(t)}).then(e=>{o()}).catch(e=>{i(e)})})}signData(){return new Promise((e,t)=>{if(!this._logined)return t({code:Il.notLogin,message:"Pluto sdk not login"});qx.signData().then(()=>{e()}).catch(e=>{e.code==Il.walletBindInCd&&jk("Wallet binding is in CD."),t(e)})})}getNfts(){return this._logined?qx.reqGetNfts():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}setGameUserId(e){this._logined?qx.reqSetGameUserId(e):console.warn("Pluto sdk not login!")}cocGetInfo(){return this._logined?qx.reqCocGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocWithdraw(e,t,n){return this._logined?qx.reqCocWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocClaim(e){return this._logined?qx.reqCocClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetWithdrawDetail(e){return this._logined?qx.reqCocGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocGetRecords(e,t,n){return this._logined?qx.reqCocGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocQueryConsume(e){return this._logined?qx.reqCocQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}cocCancelWithdraw(e){return this._logined?qx.reqCocCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetInfo(){return this._logined?qx.reqSpGetInfo():Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spWithdraw(e,t,n){return this._logined?qx.reqSpWithdraw(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spClaim(e){return this._logined?qx.reqSpClaim(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetWithdrawDetail(e){return this._logined?qx.reqSpGetWithdrawDetail(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spGetRecords(e,t,n){return this._logined?qx.reqSpGetRecords(e,t,n):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spQueryConsume(e){return this._logined?qx.reqSpQueryConsume(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}spCancelWithdraw(e){return this._logined?qx.reqSpCancelWithdraw(e):Promise.reject({code:Il.notLogin,message:"Pluto sdk not login"})}getGameInfo(){this._loadGameState==Ll.init&&(this._loadGameState=Ll.loading,qx.reqGameInfo().then(e=>{this._loadGameState=Ll.done,Fx.publish(Sl,!0),ec()||Fx.publish(_l,Nl.login)}).catch(e=>{this._loadGameState=Ll.init,Fx.publish(Sl,!1),console.log(e)}))}addOrientationChangeListener(){ic()&&window.screen.orientation&&(window.screen.orientation.addEventListener("change",e=>{this.checkOrientaiton()}),this.checkOrientaiton())}checkOrientaiton(){try{const e=window.screen.orientation.type;if((e.startsWith("portrait")?Dl.portrait:Dl.landscape)==cc.gameInfo.orientation)return void sS();aS()}catch(e){console.log(e)}}};return document.body?nS():document.addEventListener("DOMContentLoaded",e=>{nS()}),e.checkIn=(e,t,n="",r=null)=>lS.checkIn(e,t,n,r),e.cocCancelWithdraw=e=>lS.cocCancelWithdraw(e),e.cocClaim=e=>lS.cocClaim(e),e.cocGetInfo=()=>lS.cocGetInfo(),e.cocGetRecords=(e,t,n)=>lS.cocGetRecords(e,t,n),e.cocGetWithdrawDetail=e=>lS.cocGetWithdrawDetail(e),e.cocQueryConsume=e=>lS.cocQueryConsume(e),e.cocWithdraw=(e,t,n="")=>lS.cocWithdraw(e,t,n),e.connectWallet=()=>lS.connectWallet(),e.consumePurchase=e=>lS.consumePurchase(e),e.copyShareLink=(e="")=>lS.copyShareLink(e),e.depositToken=(e,t,n,r)=>lS.depositToken(e,t,n,r),e.disconnectWallet=()=>lS.disconnectWallet(),e.getContentSafeAreaInset=()=>lS.getContentSafeAreaInset(),e.getCpCustomLink=()=>lS.getCpCustomLink(),e.getItem=e=>lS.getItem(e),e.getNfts=()=>lS.getNfts(),e.getSafeAreaInset=()=>lS.getSafeAreaInset(),e.getShareLink=(e="")=>lS.getShareLink(e),e.getStartParam=()=>lS.getStartParam(),e.getWalletFriendlyAddress=()=>lS.getWalletFriendlyAddress(),e.getWalletName=()=>lS.getWalletName(),e.getWalletRawAddress=()=>lS.getWalletRawAddress(),e.init=(e=!1)=>lS.init(e),e.isConnectedWallet=()=>lS.isConnectedWallet(),e.isDesktopEnabled=()=>lS.isDesktopEnabled(),e.isTelegramClient=()=>lS.isTelegramClient(),e.login=()=>lS.login(),e.onEvent=(e,t)=>{lS.onEvent(e,t)},e.openGameForWeb=(e="")=>{lS.openGameForWeb(e)},e.playAd=(e="ad_event1")=>lS.playAd(e),e.purchase=(e,t,n,r,o="",i=null)=>lS.purchase(e,t,n,r,o,i),e.queryPurchases=()=>lS.queryPurchases(),e.queryPurchses=()=>lS.queryPurchases(),e.ready=()=>{lS.ready()},e.setGameUserId=e=>{lS.setGameUserId(e)},e.setItem=(e,t)=>lS.setItem(e,t),e.share=(e="",t=[],n="",r="",o="")=>lS.share(e,t,n,r,o),e.signData=()=>lS.signData(),e.spCancelWithdraw=e=>lS.spCancelWithdraw(e),e.spClaim=e=>lS.spClaim(e),e.spGetInfo=()=>lS.spGetInfo(),e.spGetRecords=(e,t,n)=>lS.spGetRecords(e,t,n),e.spGetWithdrawDetail=e=>lS.spGetWithdrawDetail(e),e.spQueryConsume=e=>lS.spQueryConsume(e),e.spWithdraw=(e,t,n="")=>lS.spWithdraw(e,t,n),e.vibrate=e=>{lS.vibrate(e)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});