@must-b/must-b 1.6.0 → 1.7.1
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.
- package/dist/BUILD.json +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/public/assets/index-Br2oW4fy.css +1 -0
- package/dist/public/assets/index-E2Qi3RhY.js +383 -0
- package/dist/public/index.html +2 -2
- package/package.json +1 -1
- package/dist/public/assets/index-C-aFNlUS.js +0 -445
- package/dist/public/assets/index-CpBX4Opd.css +0 -1
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
function rv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pp={exports:{}},Uo={},_p={exports:{}},U={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var si=Symbol.for("react.element"),sv=Symbol.for("react.portal"),iv=Symbol.for("react.fragment"),ov=Symbol.for("react.strict_mode"),av=Symbol.for("react.profiler"),lv=Symbol.for("react.provider"),uv=Symbol.for("react.context"),cv=Symbol.for("react.forward_ref"),dv=Symbol.for("react.suspense"),fv=Symbol.for("react.memo"),hv=Symbol.for("react.lazy"),jd=Symbol.iterator;function pv(e){return e===null||typeof e!="object"?null:(e=jd&&e[jd]||e["@@iterator"],typeof e=="function"?e:null)}var Rp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ap=Object.assign,Mp={};function Ur(e,t,n){this.props=e,this.context=t,this.refs=Mp,this.updater=n||Rp}Ur.prototype.isReactComponent={};Ur.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ur.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lp(){}Lp.prototype=Ur.prototype;function zu(e,t,n){this.props=e,this.context=t,this.refs=Mp,this.updater=n||Rp}var Vu=zu.prototype=new Lp;Vu.constructor=zu;Ap(Vu,Ur.prototype);Vu.isPureReactComponent=!0;var Pd=Array.isArray,Dp=Object.prototype.hasOwnProperty,Bu={current:null},Op={key:!0,ref:!0,__self:!0,__source:!0};function zp(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Dp.call(t,r)&&!Op.hasOwnProperty(r)&&(s[r]=t[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];s.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)s[r]===void 0&&(s[r]=a[r]);return{$$typeof:si,type:e,key:i,ref:o,props:s,_owner:Bu.current}}function mv(e,t){return{$$typeof:si,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Iu(e){return typeof e=="object"&&e!==null&&e.$$typeof===si}function gv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _d=/\/+/g;function ka(e,t){return typeof e=="object"&&e!==null&&e.key!=null?gv(""+e.key):t.toString(36)}function Ui(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case si:case sv:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+ka(o,0):r,Pd(s)?(n="",e!=null&&(n=e.replace(_d,"$&/")+"/"),Ui(s,t,n,"",function(u){return u})):s!=null&&(Iu(s)&&(s=mv(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(_d,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Pd(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+ka(i,a);o+=Ui(i,t,n,l,s)}else if(l=pv(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+ka(i,a++),o+=Ui(i,t,n,l,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function gi(e,t,n){if(e==null)return e;var r=[],s=0;return Ui(e,r,"","",function(i){return t.call(n,i,s++)}),r}function yv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ze={current:null},$i={transition:null},vv={ReactCurrentDispatcher:ze,ReactCurrentBatchConfig:$i,ReactCurrentOwner:Bu};function Vp(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:gi,forEach:function(e,t,n){gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gi(e,function(){t++}),t},toArray:function(e){return gi(e,function(t){return t})||[]},only:function(e){if(!Iu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=Ur;U.Fragment=iv;U.Profiler=av;U.PureComponent=zu;U.StrictMode=ov;U.Suspense=dv;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vv;U.act=Vp;U.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ap({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Bu.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Dp.call(t,l)&&!Op.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:si,type:e.type,key:s,ref:i,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:uv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:lv,_context:e},e.Consumer=e};U.createElement=zp;U.createFactory=function(e){var t=zp.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:cv,render:e}};U.isValidElement=Iu;U.lazy=function(e){return{$$typeof:hv,_payload:{_status:-1,_result:e},_init:yv}};U.memo=function(e,t){return{$$typeof:fv,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=$i.transition;$i.transition={};try{e()}finally{$i.transition=t}};U.unstable_act=Vp;U.useCallback=function(e,t){return ze.current.useCallback(e,t)};U.useContext=function(e){return ze.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return ze.current.useDeferredValue(e)};U.useEffect=function(e,t){return ze.current.useEffect(e,t)};U.useId=function(){return ze.current.useId()};U.useImperativeHandle=function(e,t,n){return ze.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return ze.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return ze.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return ze.current.useMemo(e,t)};U.useReducer=function(e,t,n){return ze.current.useReducer(e,t,n)};U.useRef=function(e){return ze.current.useRef(e)};U.useState=function(e){return ze.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return ze.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return ze.current.useTransition()};U.version="18.3.1";_p.exports=U;var x=_p.exports;const R=jp(x),xv=rv({__proto__:null,default:R},[x]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var wv=x,kv=Symbol.for("react.element"),Sv=Symbol.for("react.fragment"),bv=Object.prototype.hasOwnProperty,Cv=wv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ev={key:!0,ref:!0,__self:!0,__source:!0};function Bp(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)bv.call(t,r)&&!Ev.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:kv,type:e,key:i,ref:o,props:s,_owner:Cv.current}}Uo.Fragment=Sv;Uo.jsx=Bp;Uo.jsxs=Bp;Pp.exports=Uo;var c=Pp.exports,Ip={exports:{}},et={},Fp={exports:{}},Up={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(P,_){var M=P.length;P.push(_);e:for(;0<M;){var X=M-1>>>1,V=P[X];if(0<s(V,_))P[X]=_,P[M]=V,M=X;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var _=P[0],M=P.pop();if(M!==_){P[0]=M;e:for(var X=0,V=P.length,$=V>>>1;X<$;){var B=2*(X+1)-1,ue=P[B],je=B+1,Y=P[je];if(0>s(ue,M))je<V&&0>s(Y,ue)?(P[X]=Y,P[je]=M,X=je):(P[X]=ue,P[B]=M,X=B);else if(je<V&&0>s(Y,M))P[X]=Y,P[je]=M,X=je;else break e}}return _}function s(P,_){var M=P.sortIndex-_.sortIndex;return M!==0?M:P.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,p=!1,w=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(P){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=P)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function b(P){if(v=!1,y(P),!w)if(n(l)!==null)w=!0,Ie(k);else{var _=n(u);_!==null&&F(b,_.startTime-P)}}function k(P,_){w=!1,v&&(v=!1,m(T),T=-1),p=!0;var M=h;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||P&&!G());){var X=f.callback;if(typeof X=="function"){f.callback=null,h=f.priorityLevel;var V=X(f.expirationTime<=_);_=e.unstable_now(),typeof V=="function"?f.callback=V:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var $=!0;else{var B=n(u);B!==null&&F(b,B.startTime-_),$=!1}return $}finally{f=null,h=M,p=!1}}var C=!1,E=null,T=-1,O=5,L=-1;function G(){return!(e.unstable_now()-L<O)}function fe(){if(E!==null){var P=e.unstable_now();L=P;var _=!0;try{_=E(!0,P)}finally{_?Ne():(C=!1,E=null)}}else C=!1}var Ne;if(typeof g=="function")Ne=function(){g(fe)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Tt=Be.port2;Be.port1.onmessage=fe,Ne=function(){Tt.postMessage(null)}}else Ne=function(){S(fe,0)};function Ie(P){E=P,C||(C=!0,Ne())}function F(P,_){T=S(function(){P(e.unstable_now())},_)}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(P){P.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,Ie(k))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var M=h;h=_;try{return P()}finally{h=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,_){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var M=h;h=P;try{return _()}finally{h=M}},e.unstable_scheduleCallback=function(P,_,M){var X=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?X+M:X):M=X,P){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=M+V,P={id:d++,callback:_,priorityLevel:P,startTime:M,expirationTime:V,sortIndex:-1},M>X?(P.sortIndex=M,t(u,P),n(l)===null&&P===n(u)&&(v?(m(T),T=-1):v=!0,F(b,M-X))):(P.sortIndex=V,t(l,P),w||p||(w=!0,Ie(k))),P},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(P){var _=h;return function(){var M=h;h=_;try{return P.apply(this,arguments)}finally{h=M}}}})(Up);Fp.exports=Up;var Tv=Fp.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Nv=x,Ze=Tv;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $p=new Set,Ms={};function er(e,t){Ar(e,t),Ar(e+"Capture",t)}function Ar(e,t){for(Ms[e]=t,e=0;e<t.length;e++)$p.add(t[e])}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hl=Object.prototype.hasOwnProperty,jv=/^[: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]*$/,Rd={},Ad={};function Pv(e){return hl.call(Ad,e)?!0:hl.call(Rd,e)?!1:jv.test(e)?Ad[e]=!0:(Rd[e]=!0,!1)}function _v(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rv(e,t,n,r){if(t===null||typeof t>"u"||_v(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ve(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fu=/[\-:]([a-z])/g;function Uu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fu,Uu);Te[t]=new Ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fu,Uu);Te[t]=new Ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fu,Uu);Te[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function $u(e,t,n,r){var s=Te.hasOwnProperty(t)?Te[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Rv(t,n,s,r)&&(n=null),r||s===null?Pv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yt=Nv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yi=Symbol.for("react.element"),ur=Symbol.for("react.portal"),cr=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),pl=Symbol.for("react.profiler"),Wp=Symbol.for("react.provider"),Hp=Symbol.for("react.context"),Hu=Symbol.for("react.forward_ref"),ml=Symbol.for("react.suspense"),gl=Symbol.for("react.suspense_list"),Ku=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),Kp=Symbol.for("react.offscreen"),Md=Symbol.iterator;function Jr(e){return e===null||typeof e!="object"?null:(e=Md&&e[Md]||e["@@iterator"],typeof e=="function"?e:null)}var le=Object.assign,Sa;function us(e){if(Sa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Sa=t&&t[1]||""}return`
|
|
34
|
+
`+Sa+e}var ba=!1;function Ca(e,t){if(!e||ba)return"";ba=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=s.length-1,a=i.length-1;1<=o&&0<=a&&s[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(s[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||s[o]!==i[a]){var l=`
|
|
37
|
+
`+s[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{ba=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?us(e):""}function Av(e){switch(e.tag){case 5:return us(e.type);case 16:return us("Lazy");case 13:return us("Suspense");case 19:return us("SuspenseList");case 0:case 2:case 15:return e=Ca(e.type,!1),e;case 11:return e=Ca(e.type.render,!1),e;case 1:return e=Ca(e.type,!0),e;default:return""}}function yl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cr:return"Fragment";case ur:return"Portal";case pl:return"Profiler";case Wu:return"StrictMode";case ml:return"Suspense";case gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hp:return(e.displayName||"Context")+".Consumer";case Wp:return(e._context.displayName||"Context")+".Provider";case Hu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ku:return t=e.displayName||null,t!==null?t:yl(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return yl(e(t))}catch{}}return null}function Mv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yl(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e){var t=qp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vi(e){e._valueTracker||(e._valueTracker=Lv(e))}function Gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ao(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vl(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yp(e,t){t=t.checked,t!=null&&$u(e,"checked",t,!1)}function xl(e,t){Yp(e,t);var n=Sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&wl(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wl(e,t,n){(t!=="number"||ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cs=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sn(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function kl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Od(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(cs(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sn(n)}}function Qp(e,t){var n=Sn(t.value),r=Sn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function zd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Sl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,Zp=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ls(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dv=["Webkit","ms","Moz","O"];Object.keys(vs).forEach(function(e){Dv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vs[t]=vs[e]})});function Jp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vs.hasOwnProperty(e)&&vs[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Jp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Ov=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(e,t){if(t){if(Ov[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Cl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var El=null;function qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tl=null,Nr=null,jr=null;function Vd(e){if(e=ai(e)){if(typeof Tl!="function")throw Error(j(280));var t=e.stateNode;t&&(t=qo(t),Tl(e.stateNode,e.type,t))}}function tm(e){Nr?jr?jr.push(e):jr=[e]:Nr=e}function nm(){if(Nr){var e=Nr,t=jr;if(jr=Nr=null,Vd(e),t)for(e=0;e<t.length;e++)Vd(t[e])}}function rm(e,t){return e(t)}function sm(){}var Ea=!1;function im(e,t,n){if(Ea)return e(t,n);Ea=!0;try{return rm(e,t,n)}finally{Ea=!1,(Nr!==null||jr!==null)&&(sm(),nm())}}function Ds(e,t){var n=e.stateNode;if(n===null)return null;var r=qo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Nl=!1;if(Wt)try{var es={};Object.defineProperty(es,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",es,es),window.removeEventListener("test",es,es)}catch{Nl=!1}function zv(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var xs=!1,lo=null,uo=!1,jl=null,Vv={onError:function(e){xs=!0,lo=e}};function Bv(e,t,n,r,s,i,o,a,l){xs=!1,lo=null,zv.apply(Vv,arguments)}function Iv(e,t,n,r,s,i,o,a,l){if(Bv.apply(this,arguments),xs){if(xs){var u=lo;xs=!1,lo=null}else throw Error(j(198));uo||(uo=!0,jl=u)}}function tr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function om(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bd(e){if(tr(e)!==e)throw Error(j(188))}function Fv(e){var t=e.alternate;if(!t){if(t=tr(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Bd(s),e;if(i===r)return Bd(s),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function am(e){return e=Fv(e),e!==null?lm(e):null}function lm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lm(e);if(t!==null)return t;e=e.sibling}return null}var um=Ze.unstable_scheduleCallback,Id=Ze.unstable_cancelCallback,Uv=Ze.unstable_shouldYield,$v=Ze.unstable_requestPaint,pe=Ze.unstable_now,Wv=Ze.unstable_getCurrentPriorityLevel,Gu=Ze.unstable_ImmediatePriority,cm=Ze.unstable_UserBlockingPriority,co=Ze.unstable_NormalPriority,Hv=Ze.unstable_LowPriority,dm=Ze.unstable_IdlePriority,$o=null,Rt=null;function Kv(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot($o,e,void 0,(e.current.flags&128)===128)}catch{}}var bt=Math.clz32?Math.clz32:Yv,qv=Math.log,Gv=Math.LN2;function Yv(e){return e>>>=0,e===0?32:31-(qv(e)/Gv|0)|0}var wi=64,ki=4194304;function ds(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function fo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=ds(a):(i&=o,i!==0&&(r=ds(i)))}else o=n&~s,o!==0?r=ds(o):i!==0&&(r=ds(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-bt(t),s=1<<n,r|=e[n],t&=~s;return r}function Qv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-bt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Qv(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Pl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fm(){var e=wi;return wi<<=1,!(wi&4194240)&&(wi=64),e}function Ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bt(t),e[t]=n}function Zv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-bt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Yu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Q=0;function hm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var pm,Qu,mm,gm,ym,_l=!1,Si=[],fn=null,hn=null,pn=null,Os=new Map,zs=new Map,on=[],Jv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fd(e,t){switch(e){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":Os.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function ts(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ai(t),t!==null&&Qu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function e1(e,t,n,r,s){switch(t){case"focusin":return fn=ts(fn,e,t,n,r,s),!0;case"dragenter":return hn=ts(hn,e,t,n,r,s),!0;case"mouseover":return pn=ts(pn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Os.set(i,ts(Os.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,zs.set(i,ts(zs.get(i)||null,e,t,n,r,s)),!0}return!1}function vm(e){var t=Fn(e.target);if(t!==null){var n=tr(t);if(n!==null){if(t=n.tag,t===13){if(t=om(n),t!==null){e.blockedOn=t,ym(e.priority,function(){mm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);El=r,n.target.dispatchEvent(r),El=null}else return t=ai(n),t!==null&&Qu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ud(e,t,n){Wi(e)&&n.delete(t)}function t1(){_l=!1,fn!==null&&Wi(fn)&&(fn=null),hn!==null&&Wi(hn)&&(hn=null),pn!==null&&Wi(pn)&&(pn=null),Os.forEach(Ud),zs.forEach(Ud)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,_l||(_l=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,t1)))}function Vs(e){function t(s){return ns(s,e)}if(0<Si.length){ns(Si[0],e);for(var n=1;n<Si.length;n++){var r=Si[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fn!==null&&ns(fn,e),hn!==null&&ns(hn,e),pn!==null&&ns(pn,e),Os.forEach(t),zs.forEach(t),n=0;n<on.length;n++)r=on[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<on.length&&(n=on[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&on.shift()}var Pr=Yt.ReactCurrentBatchConfig,ho=!0;function n1(e,t,n,r){var s=Q,i=Pr.transition;Pr.transition=null;try{Q=1,Xu(e,t,n,r)}finally{Q=s,Pr.transition=i}}function r1(e,t,n,r){var s=Q,i=Pr.transition;Pr.transition=null;try{Q=4,Xu(e,t,n,r)}finally{Q=s,Pr.transition=i}}function Xu(e,t,n,r){if(ho){var s=Rl(e,t,n,r);if(s===null)Oa(e,t,r,po,n),Fd(e,r);else if(e1(s,e,t,n,r))r.stopPropagation();else if(Fd(e,r),t&4&&-1<Jv.indexOf(e)){for(;s!==null;){var i=ai(s);if(i!==null&&pm(i),i=Rl(e,t,n,r),i===null&&Oa(e,t,r,po,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Oa(e,t,r,null,n)}}var po=null;function Rl(e,t,n,r){if(po=null,e=qu(r),e=Fn(e),e!==null)if(t=tr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=om(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return po=e,null}function xm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wv()){case Gu:return 1;case cm:return 4;case co:case Hv:return 16;case dm:return 536870912;default:return 16}default:return 16}}var ln=null,Zu=null,Hi=null;function wm(){if(Hi)return Hi;var e,t=Zu,n=t.length,r,s="value"in ln?ln.value:ln.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return Hi=s.slice(e,1<r?1-r:void 0)}function Ki(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bi(){return!0}function $d(){return!1}function tt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?bi:$d,this.isPropagationStopped=$d,this}return le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var $r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=tt($r),oi=le({},$r,{view:0,detail:0}),s1=tt(oi),Na,ja,rs,Wo=le({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rs&&(rs&&e.type==="mousemove"?(Na=e.screenX-rs.screenX,ja=e.screenY-rs.screenY):ja=Na=0,rs=e),Na)},movementY:function(e){return"movementY"in e?e.movementY:ja}}),Wd=tt(Wo),i1=le({},Wo,{dataTransfer:0}),o1=tt(i1),a1=le({},oi,{relatedTarget:0}),Pa=tt(a1),l1=le({},$r,{animationName:0,elapsedTime:0,pseudoElement:0}),u1=tt(l1),c1=le({},$r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),d1=tt(c1),f1=le({},$r,{data:0}),Hd=tt(f1),h1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={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"},m1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=m1[e])?!!t[e]:!1}function ec(){return g1}var y1=le({},oi,{key:function(e){if(e.key){var t=h1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?p1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),v1=tt(y1),x1=le({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kd=tt(x1),w1=le({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),k1=tt(w1),S1=le({},$r,{propertyName:0,elapsedTime:0,pseudoElement:0}),b1=tt(S1),C1=le({},Wo,{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}),E1=tt(C1),T1=[9,13,27,32],tc=Wt&&"CompositionEvent"in window,ws=null;Wt&&"documentMode"in document&&(ws=document.documentMode);var N1=Wt&&"TextEvent"in window&&!ws,km=Wt&&(!tc||ws&&8<ws&&11>=ws),qd=" ",Gd=!1;function Sm(e,t){switch(e){case"keyup":return T1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dr=!1;function j1(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(Gd=!0,qd);case"textInput":return e=t.data,e===qd&&Gd?null:e;default:return null}}function P1(e,t){if(dr)return e==="compositionend"||!tc&&Sm(e,t)?(e=wm(),Hi=Zu=ln=null,dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return km&&t.locale!=="ko"?null:t.data;default:return null}}var _1={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_1[e.type]:t==="textarea"}function Cm(e,t,n,r){tm(r),t=mo(t,"onChange"),0<t.length&&(n=new Ju("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ks=null,Bs=null;function R1(e){Dm(e,0)}function Ho(e){var t=pr(e);if(Gp(t))return e}function A1(e,t){if(e==="change")return t}var Em=!1;if(Wt){var _a;if(Wt){var Ra="oninput"in document;if(!Ra){var Qd=document.createElement("div");Qd.setAttribute("oninput","return;"),Ra=typeof Qd.oninput=="function"}_a=Ra}else _a=!1;Em=_a&&(!document.documentMode||9<document.documentMode)}function Xd(){ks&&(ks.detachEvent("onpropertychange",Tm),Bs=ks=null)}function Tm(e){if(e.propertyName==="value"&&Ho(Bs)){var t=[];Cm(t,Bs,e,qu(e)),im(R1,t)}}function M1(e,t,n){e==="focusin"?(Xd(),ks=t,Bs=n,ks.attachEvent("onpropertychange",Tm)):e==="focusout"&&Xd()}function L1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ho(Bs)}function D1(e,t){if(e==="click")return Ho(t)}function O1(e,t){if(e==="input"||e==="change")return Ho(t)}function z1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:z1;function Is(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!hl.call(t,s)||!Et(e[s],t[s]))return!1}return!0}function Zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jd(e,t){var n=Zd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zd(n)}}function Nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jm(){for(var e=window,t=ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ao(e.document)}return t}function nc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function V1(e){var t=jm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nm(n.ownerDocument.documentElement,n)){if(r!==null&&nc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Jd(n,i);var o=Jd(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var B1=Wt&&"documentMode"in document&&11>=document.documentMode,fr=null,Al=null,Ss=null,Ml=!1;function ef(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||fr==null||fr!==ao(r)||(r=fr,"selectionStart"in r&&nc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ss&&Is(Ss,r)||(Ss=r,r=mo(Al,"onSelect"),0<r.length&&(t=new Ju("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function Ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},Aa={},Pm={};Wt&&(Pm=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);function Ko(e){if(Aa[e])return Aa[e];if(!hr[e])return e;var t=hr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pm)return Aa[e]=t[n];return e}var _m=Ko("animationend"),Rm=Ko("animationiteration"),Am=Ko("animationstart"),Mm=Ko("transitionend"),Lm=new Map,tf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tn(e,t){Lm.set(e,t),er(t,[e])}for(var Ma=0;Ma<tf.length;Ma++){var La=tf[Ma],I1=La.toLowerCase(),F1=La[0].toUpperCase()+La.slice(1);Tn(I1,"on"+F1)}Tn(_m,"onAnimationEnd");Tn(Rm,"onAnimationIteration");Tn(Am,"onAnimationStart");Tn("dblclick","onDoubleClick");Tn("focusin","onFocus");Tn("focusout","onBlur");Tn(Mm,"onTransitionEnd");Ar("onMouseEnter",["mouseout","mouseover"]);Ar("onMouseLeave",["mouseout","mouseover"]);Ar("onPointerEnter",["pointerout","pointerover"]);Ar("onPointerLeave",["pointerout","pointerover"]);er("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));er("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));er("onBeforeInput",["compositionend","keypress","textInput","paste"]);er("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));er("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));er("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),U1=new Set("cancel close invalid load scroll toggle".split(" ").concat(fs));function nf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Iv(r,t,void 0,e),e.currentTarget=null}function Dm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;nf(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;nf(s,a,u),i=l}}}if(uo)throw e=jl,uo=!1,jl=null,e}function ee(e,t){var n=t[Vl];n===void 0&&(n=t[Vl]=new Set);var r=e+"__bubble";n.has(r)||(Om(t,e,2,!1),n.add(r))}function Da(e,t,n){var r=0;t&&(r|=4),Om(n,e,r,t)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function Fs(e){if(!e[Ei]){e[Ei]=!0,$p.forEach(function(n){n!=="selectionchange"&&(U1.has(n)||Da(n,!1,e),Da(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ei]||(t[Ei]=!0,Da("selectionchange",!1,t))}}function Om(e,t,n,r){switch(xm(t)){case 1:var s=n1;break;case 4:s=r1;break;default:s=Xu}n=s.bind(null,t,n,e),s=void 0,!Nl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Oa(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Fn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}im(function(){var u=i,d=qu(n),f=[];e:{var h=Lm.get(e);if(h!==void 0){var p=Ju,w=e;switch(e){case"keypress":if(Ki(n)===0)break e;case"keydown":case"keyup":p=v1;break;case"focusin":w="focus",p=Pa;break;case"focusout":w="blur",p=Pa;break;case"beforeblur":case"afterblur":p=Pa;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Wd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=o1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=k1;break;case _m:case Rm:case Am:p=u1;break;case Mm:p=b1;break;case"scroll":p=s1;break;case"wheel":p=E1;break;case"copy":case"cut":case"paste":p=d1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Kd}var v=(t&4)!==0,S=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var g=u,y;g!==null;){y=g;var b=y.stateNode;if(y.tag===5&&b!==null&&(y=b,m!==null&&(b=Ds(g,m),b!=null&&v.push(Us(g,b,y)))),S)break;g=g.return}0<v.length&&(h=new p(h,w,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==El&&(w=n.relatedTarget||n.fromElement)&&(Fn(w)||w[Ht]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=n.relatedTarget||n.toElement,p=u,w=w?Fn(w):null,w!==null&&(S=tr(w),w!==S||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=u),p!==w)){if(v=Wd,b="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Kd,b="onPointerLeave",m="onPointerEnter",g="pointer"),S=p==null?h:pr(p),y=w==null?h:pr(w),h=new v(b,g+"leave",p,n,d),h.target=S,h.relatedTarget=y,b=null,Fn(d)===u&&(v=new v(m,g+"enter",w,n,d),v.target=y,v.relatedTarget=S,b=v),S=b,p&&w)t:{for(v=p,m=w,g=0,y=v;y;y=ar(y))g++;for(y=0,b=m;b;b=ar(b))y++;for(;0<g-y;)v=ar(v),g--;for(;0<y-g;)m=ar(m),y--;for(;g--;){if(v===m||m!==null&&v===m.alternate)break t;v=ar(v),m=ar(m)}v=null}else v=null;p!==null&&rf(f,h,p,v,!1),w!==null&&S!==null&&rf(f,S,w,v,!0)}}e:{if(h=u?pr(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var k=A1;else if(Yd(h))if(Em)k=O1;else{k=L1;var C=M1}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=D1);if(k&&(k=k(e,u))){Cm(f,k,n,d);break e}C&&C(e,h,u),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&wl(h,"number",h.value)}switch(C=u?pr(u):window,e){case"focusin":(Yd(C)||C.contentEditable==="true")&&(fr=C,Al=u,Ss=null);break;case"focusout":Ss=Al=fr=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,ef(f,n,d);break;case"selectionchange":if(B1)break;case"keydown":case"keyup":ef(f,n,d)}var E;if(tc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else dr?Sm(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(km&&n.locale!=="ko"&&(dr||T!=="onCompositionStart"?T==="onCompositionEnd"&&dr&&(E=wm()):(ln=d,Zu="value"in ln?ln.value:ln.textContent,dr=!0)),C=mo(u,T),0<C.length&&(T=new Hd(T,e,null,n,d),f.push({event:T,listeners:C}),E?T.data=E:(E=bm(n),E!==null&&(T.data=E)))),(E=N1?j1(e,n):P1(e,n))&&(u=mo(u,"onBeforeInput"),0<u.length&&(d=new Hd("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=E))}Dm(f,t)})}function Us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ds(e,n),i!=null&&r.unshift(Us(e,i,s)),i=Ds(e,t),i!=null&&r.push(Us(e,i,s))),e=e.return}return r}function ar(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rf(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,s?(l=Ds(n,i),l!=null&&o.unshift(Us(n,l,a))):s||(l=Ds(n,i),l!=null&&o.push(Us(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var $1=/\r\n?/g,W1=/\u0000|\uFFFD/g;function sf(e){return(typeof e=="string"?e:""+e).replace($1,`
|
|
38
|
+
`).replace(W1,"")}function Ti(e,t,n){if(t=sf(t),sf(e)!==t&&n)throw Error(j(425))}function go(){}var Ll=null,Dl=null;function Ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zl=typeof setTimeout=="function"?setTimeout:void 0,H1=typeof clearTimeout=="function"?clearTimeout:void 0,of=typeof Promise=="function"?Promise:void 0,K1=typeof queueMicrotask=="function"?queueMicrotask:typeof of<"u"?function(e){return of.resolve(null).then(e).catch(q1)}:zl;function q1(e){setTimeout(function(){throw e})}function za(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Vs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Vs(t)}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function af(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Wr=Math.random().toString(36).slice(2),_t="__reactFiber$"+Wr,$s="__reactProps$"+Wr,Ht="__reactContainer$"+Wr,Vl="__reactEvents$"+Wr,G1="__reactListeners$"+Wr,Y1="__reactHandles$"+Wr;function Fn(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ht]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=af(e);e!==null;){if(n=e[_t])return n;e=af(e)}return t}e=n,n=e.parentNode}return null}function ai(e){return e=e[_t]||e[Ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function qo(e){return e[$s]||null}var Bl=[],mr=-1;function Nn(e){return{current:e}}function te(e){0>mr||(e.current=Bl[mr],Bl[mr]=null,mr--)}function J(e,t){mr++,Bl[mr]=e.current,e.current=t}var bn={},Le=Nn(bn),We=Nn(!1),Yn=bn;function Mr(e,t){var n=e.type.contextTypes;if(!n)return bn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function He(e){return e=e.childContextTypes,e!=null}function yo(){te(We),te(Le)}function lf(e,t,n){if(Le.current!==bn)throw Error(j(168));J(Le,t),J(We,n)}function zm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(j(108,Mv(e)||"Unknown",s));return le({},n,r)}function vo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bn,Yn=Le.current,J(Le,e),J(We,We.current),!0}function uf(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=zm(e,t,Yn),r.__reactInternalMemoizedMergedChildContext=e,te(We),te(Le),J(Le,e)):te(We),J(We,n)}var Vt=null,Go=!1,Va=!1;function Vm(e){Vt===null?Vt=[e]:Vt.push(e)}function Q1(e){Go=!0,Vm(e)}function jn(){if(!Va&&Vt!==null){Va=!0;var e=0,t=Q;try{var n=Vt;for(Q=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vt=null,Go=!1}catch(s){throw Vt!==null&&(Vt=Vt.slice(e+1)),um(Gu,jn),s}finally{Q=t,Va=!1}}return null}var gr=[],yr=0,xo=null,wo=0,it=[],ot=0,Qn=null,Bt=1,It="";function On(e,t){gr[yr++]=wo,gr[yr++]=xo,xo=e,wo=t}function Bm(e,t,n){it[ot++]=Bt,it[ot++]=It,it[ot++]=Qn,Qn=e;var r=Bt;e=It;var s=32-bt(r)-1;r&=~(1<<s),n+=1;var i=32-bt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Bt=1<<32-bt(t)+s|n<<s|r,It=i+e}else Bt=1<<i|n<<s|r,It=e}function rc(e){e.return!==null&&(On(e,1),Bm(e,1,0))}function sc(e){for(;e===xo;)xo=gr[--yr],gr[yr]=null,wo=gr[--yr],gr[yr]=null;for(;e===Qn;)Qn=it[--ot],it[ot]=null,It=it[--ot],it[ot]=null,Bt=it[--ot],it[ot]=null}var Qe=null,Ye=null,se=!1,kt=null;function Im(e,t){var n=lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function cf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=mn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qn!==null?{id:Bt,overflow:It}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Ye=null,!0):!1;default:return!1}}function Il(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fl(e){if(se){var t=Ye;if(t){var n=t;if(!cf(e,t)){if(Il(e))throw Error(j(418));t=mn(n.nextSibling);var r=Qe;t&&cf(e,t)?Im(r,n):(e.flags=e.flags&-4097|2,se=!1,Qe=e)}}else{if(Il(e))throw Error(j(418));e.flags=e.flags&-4097|2,se=!1,Qe=e}}}function df(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Ni(e){if(e!==Qe)return!1;if(!se)return df(e),se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ol(e.type,e.memoizedProps)),t&&(t=Ye)){if(Il(e))throw Fm(),Error(j(418));for(;t;)Im(e,t),t=mn(t.nextSibling)}if(df(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=mn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Qe?mn(e.stateNode.nextSibling):null;return!0}function Fm(){for(var e=Ye;e;)e=mn(e.nextSibling)}function Lr(){Ye=Qe=null,se=!1}function ic(e){kt===null?kt=[e]:kt.push(e)}var X1=Yt.ReactCurrentBatchConfig;function ss(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function ji(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ff(e){var t=e._init;return t(e._payload)}function Um(e){function t(m,g){if(e){var y=m.deletions;y===null?(m.deletions=[g],m.flags|=16):y.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function s(m,g){return m=xn(m,g),m.index=0,m.sibling=null,m}function i(m,g,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<g?(m.flags|=2,g):y):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,y,b){return g===null||g.tag!==6?(g=Ha(y,m.mode,b),g.return=m,g):(g=s(g,y),g.return=m,g)}function l(m,g,y,b){var k=y.type;return k===cr?d(m,g,y.props.children,b,y.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===rn&&ff(k)===g.type)?(b=s(g,y.props),b.ref=ss(m,g,y),b.return=m,b):(b=Ji(y.type,y.key,y.props,null,m.mode,b),b.ref=ss(m,g,y),b.return=m,b)}function u(m,g,y,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Ka(y,m.mode,b),g.return=m,g):(g=s(g,y.children||[]),g.return=m,g)}function d(m,g,y,b,k){return g===null||g.tag!==7?(g=qn(y,m.mode,b,k),g.return=m,g):(g=s(g,y),g.return=m,g)}function f(m,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ha(""+g,m.mode,y),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case yi:return y=Ji(g.type,g.key,g.props,null,m.mode,y),y.ref=ss(m,null,g),y.return=m,y;case ur:return g=Ka(g,m.mode,y),g.return=m,g;case rn:var b=g._init;return f(m,b(g._payload),y)}if(cs(g)||Jr(g))return g=qn(g,m.mode,y,null),g.return=m,g;ji(m,g)}return null}function h(m,g,y,b){var k=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:a(m,g,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case yi:return y.key===k?l(m,g,y,b):null;case ur:return y.key===k?u(m,g,y,b):null;case rn:return k=y._init,h(m,g,k(y._payload),b)}if(cs(y)||Jr(y))return k!==null?null:d(m,g,y,b,null);ji(m,y)}return null}function p(m,g,y,b,k){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(y)||null,a(g,m,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case yi:return m=m.get(b.key===null?y:b.key)||null,l(g,m,b,k);case ur:return m=m.get(b.key===null?y:b.key)||null,u(g,m,b,k);case rn:var C=b._init;return p(m,g,y,C(b._payload),k)}if(cs(b)||Jr(b))return m=m.get(y)||null,d(g,m,b,k,null);ji(g,b)}return null}function w(m,g,y,b){for(var k=null,C=null,E=g,T=g=0,O=null;E!==null&&T<y.length;T++){E.index>T?(O=E,E=null):O=E.sibling;var L=h(m,E,y[T],b);if(L===null){E===null&&(E=O);break}e&&E&&L.alternate===null&&t(m,E),g=i(L,g,T),C===null?k=L:C.sibling=L,C=L,E=O}if(T===y.length)return n(m,E),se&&On(m,T),k;if(E===null){for(;T<y.length;T++)E=f(m,y[T],b),E!==null&&(g=i(E,g,T),C===null?k=E:C.sibling=E,C=E);return se&&On(m,T),k}for(E=r(m,E);T<y.length;T++)O=p(E,m,T,y[T],b),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?T:O.key),g=i(O,g,T),C===null?k=O:C.sibling=O,C=O);return e&&E.forEach(function(G){return t(m,G)}),se&&On(m,T),k}function v(m,g,y,b){var k=Jr(y);if(typeof k!="function")throw Error(j(150));if(y=k.call(y),y==null)throw Error(j(151));for(var C=k=null,E=g,T=g=0,O=null,L=y.next();E!==null&&!L.done;T++,L=y.next()){E.index>T?(O=E,E=null):O=E.sibling;var G=h(m,E,L.value,b);if(G===null){E===null&&(E=O);break}e&&E&&G.alternate===null&&t(m,E),g=i(G,g,T),C===null?k=G:C.sibling=G,C=G,E=O}if(L.done)return n(m,E),se&&On(m,T),k;if(E===null){for(;!L.done;T++,L=y.next())L=f(m,L.value,b),L!==null&&(g=i(L,g,T),C===null?k=L:C.sibling=L,C=L);return se&&On(m,T),k}for(E=r(m,E);!L.done;T++,L=y.next())L=p(E,m,T,L.value,b),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?T:L.key),g=i(L,g,T),C===null?k=L:C.sibling=L,C=L);return e&&E.forEach(function(fe){return t(m,fe)}),se&&On(m,T),k}function S(m,g,y,b){if(typeof y=="object"&&y!==null&&y.type===cr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case yi:e:{for(var k=y.key,C=g;C!==null;){if(C.key===k){if(k=y.type,k===cr){if(C.tag===7){n(m,C.sibling),g=s(C,y.props.children),g.return=m,m=g;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===rn&&ff(k)===C.type){n(m,C.sibling),g=s(C,y.props),g.ref=ss(m,C,y),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===cr?(g=qn(y.props.children,m.mode,b,y.key),g.return=m,m=g):(b=Ji(y.type,y.key,y.props,null,m.mode,b),b.ref=ss(m,g,y),b.return=m,m=b)}return o(m);case ur:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=s(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Ka(y,m.mode,b),g.return=m,m=g}return o(m);case rn:return C=y._init,S(m,g,C(y._payload),b)}if(cs(y))return w(m,g,y,b);if(Jr(y))return v(m,g,y,b);ji(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=s(g,y),g.return=m,m=g):(n(m,g),g=Ha(y,m.mode,b),g.return=m,m=g),o(m)):n(m,g)}return S}var Dr=Um(!0),$m=Um(!1),ko=Nn(null),So=null,vr=null,oc=null;function ac(){oc=vr=So=null}function lc(e){var t=ko.current;te(ko),e._currentValue=t}function Ul(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _r(e,t){So=e,oc=vr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(oc!==e)if(e={context:e,memoizedValue:t,next:null},vr===null){if(So===null)throw Error(j(308));vr=e,So.dependencies={lanes:0,firstContext:e}}else vr=vr.next=e;return t}var Un=null;function uc(e){Un===null?Un=[e]:Un.push(e)}function Wm(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,uc(t)):(n.next=s.next,s.next=n),t.interleaved=n,Kt(e,r)}function Kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var sn=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Kt(e,n)}return s=r.interleaved,s===null?(t.next=t,uc(r)):(t.next=s.next,s.next=t),r.interleaved=t,Kt(e,n)}function qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yu(e,n)}}function hf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function bo(e,t,n,r){var s=e.updateQueue;sn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=s.baseState;o=0,d=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(h=t,p=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=le({},f,h);break e;case 2:sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(d===null&&(l=f),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Zn|=o,e.lanes=o,e.memoizedState=f}}function pf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(j(191,s));s.call(r)}}}var li={},At=Nn(li),Ws=Nn(li),Hs=Nn(li);function $n(e){if(e===li)throw Error(j(174));return e}function dc(e,t){switch(J(Hs,t),J(Ws,e),J(At,li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Sl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Sl(t,e)}te(At),J(At,t)}function Or(){te(At),te(Ws),te(Hs)}function Km(e){$n(Hs.current);var t=$n(At.current),n=Sl(t,e.type);t!==n&&(J(Ws,e),J(At,n))}function fc(e){Ws.current===e&&(te(At),te(Ws))}var ie=Nn(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ba=[];function hc(){for(var e=0;e<Ba.length;e++)Ba[e]._workInProgressVersionPrimary=null;Ba.length=0}var Gi=Yt.ReactCurrentDispatcher,Ia=Yt.ReactCurrentBatchConfig,Xn=0,ae=null,xe=null,ke=null,Eo=!1,bs=!1,Ks=0,Z1=0;function Pe(){throw Error(j(321))}function pc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function mc(e,t,n,r,s,i){if(Xn=i,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=e===null||e.memoizedState===null?nx:rx,e=n(r,s),bs){i=0;do{if(bs=!1,Ks=0,25<=i)throw Error(j(301));i+=1,ke=xe=null,t.updateQueue=null,Gi.current=sx,e=n(r,s)}while(bs)}if(Gi.current=To,t=xe!==null&&xe.next!==null,Xn=0,ke=xe=ae=null,Eo=!1,t)throw Error(j(300));return e}function gc(){var e=Ks!==0;return Ks=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ae.memoizedState=ke=e:ke=ke.next=e,ke}function dt(){if(xe===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=ke===null?ae.memoizedState:ke.next;if(t!==null)ke=t,xe=e;else{if(e===null)throw Error(j(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},ke===null?ae.memoizedState=ke=e:ke=ke.next=e}return ke}function qs(e,t){return typeof t=="function"?t(e):t}function Fa(e){var t=dt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=xe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var d=u.lane;if((Xn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,ae.lanes|=d,Zn|=d}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Et(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ae.lanes|=i,Zn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ua(e){var t=dt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Et(i,t.memoizedState)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qm(){}function Gm(e,t){var n=ae,r=dt(),s=t(),i=!Et(r.memoizedState,s);if(i&&(r.memoizedState=s,$e=!0),r=r.queue,yc(Xm.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,Gs(9,Qm.bind(null,n,r,s,t),void 0,null),Se===null)throw Error(j(349));Xn&30||Ym(n,t,s)}return s}function Ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qm(e,t,n,r){t.value=n,t.getSnapshot=r,Zm(t)&&Jm(e)}function Xm(e,t,n){return n(function(){Zm(t)&&Jm(e)})}function Zm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Jm(e){var t=Kt(e,1);t!==null&&Ct(t,e,1,-1)}function mf(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e},t.queue=e,e=e.dispatch=tx.bind(null,ae,e),[t.memoizedState,e]}function Gs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null,stores:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function e0(){return dt().memoizedState}function Yi(e,t,n,r){var s=Pt();ae.flags|=e,s.memoizedState=Gs(1|t,n,void 0,r===void 0?null:r)}function Yo(e,t,n,r){var s=dt();r=r===void 0?null:r;var i=void 0;if(xe!==null){var o=xe.memoizedState;if(i=o.destroy,r!==null&&pc(r,o.deps)){s.memoizedState=Gs(t,n,i,r);return}}ae.flags|=e,s.memoizedState=Gs(1|t,n,i,r)}function gf(e,t){return Yi(8390656,8,e,t)}function yc(e,t){return Yo(2048,8,e,t)}function t0(e,t){return Yo(4,2,e,t)}function n0(e,t){return Yo(4,4,e,t)}function r0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function s0(e,t,n){return n=n!=null?n.concat([e]):null,Yo(4,4,r0.bind(null,t,e),n)}function vc(){}function i0(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function o0(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&pc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function a0(e,t,n){return Xn&21?(Et(n,t)||(n=fm(),ae.lanes|=n,Zn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function J1(e,t){var n=Q;Q=n!==0&&4>n?n:4,e(!0);var r=Ia.transition;Ia.transition={};try{e(!1),t()}finally{Q=n,Ia.transition=r}}function l0(){return dt().memoizedState}function ex(e,t,n){var r=vn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},u0(e))c0(t,n);else if(n=Wm(e,t,n,r),n!==null){var s=Oe();Ct(n,e,r,s),d0(n,t,r)}}function tx(e,t,n){var r=vn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(u0(e))c0(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Et(a,o)){var l=t.interleaved;l===null?(s.next=s,uc(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=Wm(e,t,s,r),n!==null&&(s=Oe(),Ct(n,e,r,s),d0(n,t,r))}}function u0(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function c0(e,t){bs=Eo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function d0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yu(e,n)}}var To={readContext:ct,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useInsertionEffect:Pe,useLayoutEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useMutableSource:Pe,useSyncExternalStore:Pe,useId:Pe,unstable_isNewReconciler:!1},nx={readContext:ct,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:gf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yi(4194308,4,r0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yi(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ex.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:mf,useDebugValue:vc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=mf(!1),t=e[0];return e=J1.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,s=Pt();if(se){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Se===null)throw Error(j(349));Xn&30||Ym(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,gf(Xm.bind(null,r,i,e),[e]),r.flags|=2048,Gs(9,Qm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Se.identifierPrefix;if(se){var n=It,r=Bt;n=(r&~(1<<32-bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ks++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Z1++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rx={readContext:ct,useCallback:i0,useContext:ct,useEffect:yc,useImperativeHandle:s0,useInsertionEffect:t0,useLayoutEffect:n0,useMemo:o0,useReducer:Fa,useRef:e0,useState:function(){return Fa(qs)},useDebugValue:vc,useDeferredValue:function(e){var t=dt();return a0(t,xe.memoizedState,e)},useTransition:function(){var e=Fa(qs)[0],t=dt().memoizedState;return[e,t]},useMutableSource:qm,useSyncExternalStore:Gm,useId:l0,unstable_isNewReconciler:!1},sx={readContext:ct,useCallback:i0,useContext:ct,useEffect:yc,useImperativeHandle:s0,useInsertionEffect:t0,useLayoutEffect:n0,useMemo:o0,useReducer:Ua,useRef:e0,useState:function(){return Ua(qs)},useDebugValue:vc,useDeferredValue:function(e){var t=dt();return xe===null?t.memoizedState=e:a0(t,xe.memoizedState,e)},useTransition:function(){var e=Ua(qs)[0],t=dt().memoizedState;return[e,t]},useMutableSource:qm,useSyncExternalStore:Gm,useId:l0,unstable_isNewReconciler:!1};function vt(e,t){if(e&&e.defaultProps){t=le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $l(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qo={isMounted:function(e){return(e=e._reactInternals)?tr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=vn(e),i=Ft(r,s);i.payload=t,n!=null&&(i.callback=n),t=gn(e,i,s),t!==null&&(Ct(t,e,s,r),qi(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),s=vn(e),i=Ft(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=gn(e,i,s),t!==null&&(Ct(t,e,s,r),qi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=vn(e),s=Ft(n,r);s.tag=2,t!=null&&(s.callback=t),t=gn(e,s,r),t!==null&&(Ct(t,e,r,n),qi(t,e,r))}};function yf(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Is(n,r)||!Is(s,i):!0}function f0(e,t,n){var r=!1,s=bn,i=t.contextType;return typeof i=="object"&&i!==null?i=ct(i):(s=He(t)?Yn:Le.current,r=t.contextTypes,i=(r=r!=null)?Mr(e,s):bn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Qo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function vf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qo.enqueueReplaceState(t,t.state,null)}function Wl(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},cc(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=ct(i):(i=He(t)?Yn:Le.current,s.context=Mr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&($l(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Qo.enqueueReplaceState(s,s.state,null),bo(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function zr(e,t){try{var n="",r=t;do n+=Av(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function $a(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ix=typeof WeakMap=="function"?WeakMap:Map;function h0(e,t,n){n=Ft(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jo||(jo=!0,tu=r),Hl(e,t)},n}function p0(e,t,n){n=Ft(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Hl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Hl(e,t),typeof r!="function"&&(yn===null?yn=new Set([this]):yn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ix;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=xx.bind(null,e,t,n),t.then(e,e))}function wf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kf(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ft(-1,1),t.tag=2,gn(n,t,1))),n.lanes|=1),e)}var ox=Yt.ReactCurrentOwner,$e=!1;function De(e,t,n,r){t.child=e===null?$m(t,null,n,r):Dr(t,e.child,n,r)}function Sf(e,t,n,r,s){n=n.render;var i=t.ref;return _r(t,s),r=mc(e,t,n,r,i,s),n=gc(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,qt(e,t,s)):(se&&n&&rc(t),t.flags|=1,De(e,t,r,s),t.child)}function bf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Tc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,m0(e,t,i,r,s)):(e=Ji(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Is,n(o,r)&&e.ref===t.ref)return qt(e,t,s)}return t.flags|=1,e=xn(i,r),e.ref=t.ref,e.return=t,t.child=e}function m0(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Is(i,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,qt(e,t,s)}return Kl(e,t,n,r,s)}function g0(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(wr,Ge),Ge|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(wr,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(wr,Ge),Ge|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(wr,Ge),Ge|=r;return De(e,t,s,n),t.child}function y0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kl(e,t,n,r,s){var i=He(n)?Yn:Le.current;return i=Mr(t,i),_r(t,s),n=mc(e,t,n,r,i,s),r=gc(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,qt(e,t,s)):(se&&r&&rc(t),t.flags|=1,De(e,t,n,s),t.child)}function Cf(e,t,n,r,s){if(He(n)){var i=!0;vo(t)}else i=!1;if(_r(t,s),t.stateNode===null)Qi(e,t),f0(t,n,r),Wl(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=ct(u):(u=He(n)?Yn:Le.current,u=Mr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&vf(t,o,r,u),sn=!1;var h=t.memoizedState;o.state=h,bo(t,r,o,s),l=t.memoizedState,a!==r||h!==l||We.current||sn?(typeof d=="function"&&($l(t,n,d,r),l=t.memoizedState),(a=sn||yf(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Hm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vt(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=ct(l):(l=He(n)?Yn:Le.current,l=Mr(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&vf(t,o,r,l),sn=!1,h=t.memoizedState,o.state=h,bo(t,r,o,s);var w=t.memoizedState;a!==f||h!==w||We.current||sn?(typeof p=="function"&&($l(t,n,p,r),w=t.memoizedState),(u=sn||yf(t,n,u,r,h,w,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ql(e,t,n,r,i,s)}function ql(e,t,n,r,s,i){y0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&uf(t,n,!1),qt(e,t,i);r=t.stateNode,ox.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Dr(t,e.child,null,i),t.child=Dr(t,null,a,i)):De(e,t,a,i),t.memoizedState=r.state,s&&uf(t,n,!0),t.child}function v0(e){var t=e.stateNode;t.pendingContext?lf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lf(e,t.context,!1),dc(e,t.containerInfo)}function Ef(e,t,n,r,s){return Lr(),ic(s),t.flags|=256,De(e,t,n,r),t.child}var Gl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function x0(e,t,n){var r=t.pendingProps,s=ie.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),J(ie,s&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Jo(o,r,0,null),e=qn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Yl(n),t.memoizedState=Gl,e):xc(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return ax(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=xn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=xn(a,i):(i=qn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Yl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Gl,r}return i=e.child,e=i.sibling,r=xn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xc(e,t){return t=Jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pi(e,t,n,r){return r!==null&&ic(r),Dr(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ax(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=$a(Error(j(422))),Pi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Jo({mode:"visible",children:r.children},s,0,null),i=qn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Dr(t,e.child,null,o),t.child.memoizedState=Yl(o),t.memoizedState=Gl,i);if(!(t.mode&1))return Pi(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(j(419)),r=$a(i,r,void 0),Pi(e,t,o,r)}if(a=(o&e.childLanes)!==0,$e||a){if(r=Se,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Kt(e,s),Ct(r,e,s,-1))}return Ec(),r=$a(Error(j(421))),Pi(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=wx.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ye=mn(s.nextSibling),Qe=t,se=!0,kt=null,e!==null&&(it[ot++]=Bt,it[ot++]=It,it[ot++]=Qn,Bt=e.id,It=e.overflow,Qn=t),t=xc(t,r.children),t.flags|=4096,t)}function Tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ul(e.return,t,n)}function Wa(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function w0(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(De(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tf(e,n,t);else if(e.tag===19)Tf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(J(ie,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Wa(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Co(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Wa(t,!0,n,null,i);break;case"together":Wa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function lx(e,t,n){switch(t.tag){case 3:v0(t),Lr();break;case 5:Km(t);break;case 1:He(t.type)&&vo(t);break;case 4:dc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ko,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?x0(e,t,n):(J(ie,ie.current&1),e=qt(e,t,n),e!==null?e.sibling:null);J(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return w0(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,g0(e,t,n)}return qt(e,t,n)}var k0,Ql,S0,b0;k0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ql=function(){};S0=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,$n(At.current);var i=null;switch(n){case"input":s=vl(e,s),r=vl(e,r),i=[];break;case"select":s=le({},s,{value:void 0}),r=le({},r,{value:void 0}),i=[];break;case"textarea":s=kl(e,s),r=kl(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=go)}bl(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ms.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ms.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};b0=function(e,t,n,r){n!==r&&(t.flags|=4)};function is(e,t){if(!se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ux(e,t,n){var r=t.pendingProps;switch(sc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return He(t.type)&&yo(),_e(t),null;case 3:return r=t.stateNode,Or(),te(We),te(Le),hc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ni(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kt!==null&&(su(kt),kt=null))),Ql(e,t),_e(t),null;case 5:fc(t);var s=$n(Hs.current);if(n=t.type,e!==null&&t.stateNode!=null)S0(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return _e(t),null}if(e=$n(At.current),Ni(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_t]=t,r[$s]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<fs.length;s++)ee(fs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Ld(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Od(r,i),ee("invalid",r)}bl(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ti(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ti(r.textContent,a,e),s=["children",""+a]):Ms.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":vi(r),Dd(r,i,!0);break;case"textarea":vi(r),zd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=go)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[_t]=t,e[$s]=r,k0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Cl(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<fs.length;s++)ee(fs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Ld(e,r),s=vl(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=le({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Od(e,r),s=kl(e,r),ee("invalid",e);break;default:s=r}bl(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?em(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Zp(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ls(e,l):typeof l=="number"&&Ls(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ms.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&$u(e,i,l,o))}switch(n){case"input":vi(e),Dd(e,r,!1);break;case"textarea":vi(e),zd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Tr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=go)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _e(t),null;case 6:if(e&&t.stateNode!=null)b0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=$n(Hs.current),$n(At.current),Ni(t)){if(r=t.stateNode,n=t.memoizedProps,r[_t]=t,(i=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:Ti(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ti(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_t]=t,t.stateNode=r}return _e(t),null;case 13:if(te(ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(se&&Ye!==null&&t.mode&1&&!(t.flags&128))Fm(),Lr(),t.flags|=98560,i=!1;else if(i=Ni(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[_t]=t}else Lr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else kt!==null&&(su(kt),kt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ie.current&1?we===0&&(we=3):Ec())),t.updateQueue!==null&&(t.flags|=4),_e(t),null);case 4:return Or(),Ql(e,t),e===null&&Fs(t.stateNode.containerInfo),_e(t),null;case 10:return lc(t.type._context),_e(t),null;case 17:return He(t.type)&&yo(),_e(t),null;case 19:if(te(ie),i=t.memoizedState,i===null)return _e(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)is(i,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Co(e),o!==null){for(t.flags|=128,is(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&pe()>Vr&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304)}else{if(!r)if(e=Co(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),is(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!se)return _e(t),null}else 2*pe()-i.renderingStartTime>Vr&&n!==1073741824&&(t.flags|=128,r=!0,is(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ie.current,J(ie,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return Cc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function cx(e,t){switch(sc(t),t.tag){case 1:return He(t.type)&&yo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),te(We),te(Le),hc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fc(t),null;case 13:if(te(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Lr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(ie),null;case 4:return Or(),null;case 10:return lc(t.type._context),null;case 22:case 23:return Cc(),null;case 24:return null;default:return null}}var _i=!1,Ae=!1,dx=typeof WeakSet=="function"?WeakSet:Set,A=null;function xr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Xl(e,t,n){try{n()}catch(r){de(e,t,r)}}var Nf=!1;function fx(e,t){if(Ll=ho,e=jm(),nc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||s!==0&&f.nodeType!==3||(a=o+s),f!==i||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++d===r&&(l=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:e,selectionRange:n},ho=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,S=w.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:vt(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(b){de(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return w=Nf,Nf=!1,w}function Cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Xl(t,n,i)}s=s.next}while(s!==r)}}function Xo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function C0(e){var t=e.alternate;t!==null&&(e.alternate=null,C0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[$s],delete t[Vl],delete t[G1],delete t[Y1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function E0(e){return e.tag===5||e.tag===3||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||E0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=go));else if(r!==4&&(e=e.child,e!==null))for(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}function eu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(eu(e,t,n),e=e.sibling;e!==null;)eu(e,t,n),e=e.sibling}var be=null,xt=!1;function tn(e,t,n){for(n=n.child;n!==null;)T0(e,t,n),n=n.sibling}function T0(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount($o,n)}catch{}switch(n.tag){case 5:Ae||xr(n,t);case 6:var r=be,s=xt;be=null,tn(e,t,n),be=r,xt=s,be!==null&&(xt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(xt?(e=be,n=n.stateNode,e.nodeType===8?za(e.parentNode,n):e.nodeType===1&&za(e,n),Vs(e)):za(be,n.stateNode));break;case 4:r=be,s=xt,be=n.stateNode.containerInfo,xt=!0,tn(e,t,n),be=r,xt=s;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xl(n,t,o),s=s.next}while(s!==r)}tn(e,t,n);break;case 1:if(!Ae&&(xr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){de(n,t,a)}tn(e,t,n);break;case 21:tn(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,tn(e,t,n),Ae=r):tn(e,t,n);break;default:tn(e,t,n)}}function Pf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dx),t.forEach(function(r){var s=kx.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:be=a.stateNode,xt=!1;break e;case 3:be=a.stateNode.containerInfo,xt=!0;break e;case 4:be=a.stateNode.containerInfo,xt=!0;break e}a=a.return}if(be===null)throw Error(j(160));T0(i,o,s),be=null,xt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){de(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)N0(t,e),t=t.sibling}function N0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mt(t,e),Nt(e),r&4){try{Cs(3,e,e.return),Xo(3,e)}catch(v){de(e,e.return,v)}try{Cs(5,e,e.return)}catch(v){de(e,e.return,v)}}break;case 1:mt(t,e),Nt(e),r&512&&n!==null&&xr(n,n.return);break;case 5:if(mt(t,e),Nt(e),r&512&&n!==null&&xr(n,n.return),e.flags&32){var s=e.stateNode;try{Ls(s,"")}catch(v){de(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Yp(s,i),Cl(a,o);var u=Cl(a,i);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?em(s,f):d==="dangerouslySetInnerHTML"?Zp(s,f):d==="children"?Ls(s,f):$u(s,d,f,u)}switch(a){case"input":xl(s,i);break;case"textarea":Qp(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Tr(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?Tr(s,!!i.multiple,i.defaultValue,!0):Tr(s,!!i.multiple,i.multiple?[]:"",!1))}s[$s]=i}catch(v){de(e,e.return,v)}}break;case 6:if(mt(t,e),Nt(e),r&4){if(e.stateNode===null)throw Error(j(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){de(e,e.return,v)}}break;case 3:if(mt(t,e),Nt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vs(t.containerInfo)}catch(v){de(e,e.return,v)}break;case 4:mt(t,e),Nt(e);break;case 13:mt(t,e),Nt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Sc=pe())),r&4&&Pf(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ae=(u=Ae)||d,mt(t,e),Ae=u):mt(t,e),Nt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(A=e,d=e.child;d!==null;){for(f=A=d;A!==null;){switch(h=A,p=h.child,h.tag){case 0:case 11:case 14:case 15:Cs(4,h,h.return);break;case 1:xr(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){de(r,n,v)}}break;case 5:xr(h,h.return);break;case 22:if(h.memoizedState!==null){Rf(f);continue}}p!==null?(p.return=h,A=p):Rf(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Jp("display",o))}catch(v){de(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){de(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mt(t,e),Nt(e),r&4&&Pf(e);break;case 21:break;default:mt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(E0(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ls(s,""),r.flags&=-33);var i=jf(e);eu(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=jf(e);Jl(e,a,o);break;default:throw Error(j(161))}}catch(l){de(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hx(e,t,n){A=e,j0(e)}function j0(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var s=A,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||_i;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Ae;a=_i;var u=Ae;if(_i=o,(Ae=l)&&!u)for(A=s;A!==null;)o=A,l=o.child,o.tag===22&&o.memoizedState!==null?Af(s):l!==null?(l.return=o,A=l):Af(s);for(;i!==null;)A=i,j0(i),i=i.sibling;A=s,_i=a,Ae=u}_f(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,A=i):_f(e)}}function _f(e){for(;A!==null;){var t=A;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ae||Xo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ae)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:vt(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&pf(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pf(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Vs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Ae||t.flags&512&&Zl(t)}catch(h){de(t,t.return,h)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Rf(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Af(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xo(4,t)}catch(l){de(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){de(t,s,l)}}var i=t.return;try{Zl(t)}catch(l){de(t,i,l)}break;case 5:var o=t.return;try{Zl(t)}catch(l){de(t,o,l)}}}catch(l){de(t,t.return,l)}if(t===e){A=null;break}var a=t.sibling;if(a!==null){a.return=t.return,A=a;break}A=t.return}}var px=Math.ceil,No=Yt.ReactCurrentDispatcher,wc=Yt.ReactCurrentOwner,ut=Yt.ReactCurrentBatchConfig,K=0,Se=null,ge=null,Ee=0,Ge=0,wr=Nn(0),we=0,Ys=null,Zn=0,Zo=0,kc=0,Es=null,Ue=null,Sc=0,Vr=1/0,zt=null,jo=!1,tu=null,yn=null,Ri=!1,un=null,Po=0,Ts=0,nu=null,Xi=-1,Zi=0;function Oe(){return K&6?pe():Xi!==-1?Xi:Xi=pe()}function vn(e){return e.mode&1?K&2&&Ee!==0?Ee&-Ee:X1.transition!==null?(Zi===0&&(Zi=fm()),Zi):(e=Q,e!==0||(e=window.event,e=e===void 0?16:xm(e.type)),e):1}function Ct(e,t,n,r){if(50<Ts)throw Ts=0,nu=null,Error(j(185));ii(e,n,r),(!(K&2)||e!==Se)&&(e===Se&&(!(K&2)&&(Zo|=n),we===4&&an(e,Ee)),Ke(e,r),n===1&&K===0&&!(t.mode&1)&&(Vr=pe()+500,Go&&jn()))}function Ke(e,t){var n=e.callbackNode;Xv(e,t);var r=fo(e,e===Se?Ee:0);if(r===0)n!==null&&Id(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Id(n),t===1)e.tag===0?Q1(Mf.bind(null,e)):Vm(Mf.bind(null,e)),K1(function(){!(K&6)&&jn()}),n=null;else{switch(hm(r)){case 1:n=Gu;break;case 4:n=cm;break;case 16:n=co;break;case 536870912:n=dm;break;default:n=co}n=O0(n,P0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function P0(e,t){if(Xi=-1,Zi=0,K&6)throw Error(j(327));var n=e.callbackNode;if(Rr()&&e.callbackNode!==n)return null;var r=fo(e,e===Se?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_o(e,r);else{t=r;var s=K;K|=2;var i=R0();(Se!==e||Ee!==t)&&(zt=null,Vr=pe()+500,Kn(e,t));do try{yx();break}catch(a){_0(e,a)}while(!0);ac(),No.current=i,K=s,ge!==null?t=0:(Se=null,Ee=0,t=we)}if(t!==0){if(t===2&&(s=Pl(e),s!==0&&(r=s,t=ru(e,s))),t===1)throw n=Ys,Kn(e,0),an(e,r),Ke(e,pe()),n;if(t===6)an(e,r);else{if(s=e.current.alternate,!(r&30)&&!mx(s)&&(t=_o(e,r),t===2&&(i=Pl(e),i!==0&&(r=i,t=ru(e,i))),t===1))throw n=Ys,Kn(e,0),an(e,r),Ke(e,pe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:zn(e,Ue,zt);break;case 3:if(an(e,r),(r&130023424)===r&&(t=Sc+500-pe(),10<t)){if(fo(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Oe(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=zl(zn.bind(null,e,Ue,zt),t);break}zn(e,Ue,zt);break;case 4:if(an(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-bt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*px(r/1960))-r,10<r){e.timeoutHandle=zl(zn.bind(null,e,Ue,zt),r);break}zn(e,Ue,zt);break;case 5:zn(e,Ue,zt);break;default:throw Error(j(329))}}}return Ke(e,pe()),e.callbackNode===n?P0.bind(null,e):null}function ru(e,t){var n=Es;return e.current.memoizedState.isDehydrated&&(Kn(e,t).flags|=256),e=_o(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&su(t)),e}function su(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function mx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Et(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function an(e,t){for(t&=~kc,t&=~Zo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bt(t),r=1<<n;e[n]=-1,t&=~r}}function Mf(e){if(K&6)throw Error(j(327));Rr();var t=fo(e,0);if(!(t&1))return Ke(e,pe()),null;var n=_o(e,t);if(e.tag!==0&&n===2){var r=Pl(e);r!==0&&(t=r,n=ru(e,r))}if(n===1)throw n=Ys,Kn(e,0),an(e,t),Ke(e,pe()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zn(e,Ue,zt),Ke(e,pe()),null}function bc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(Vr=pe()+500,Go&&jn())}}function Jn(e){un!==null&&un.tag===0&&!(K&6)&&Rr();var t=K;K|=1;var n=ut.transition,r=Q;try{if(ut.transition=null,Q=1,e)return e()}finally{Q=r,ut.transition=n,K=t,!(K&6)&&jn()}}function Cc(){Ge=wr.current,te(wr)}function Kn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,H1(n)),ge!==null)for(n=ge.return;n!==null;){var r=n;switch(sc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yo();break;case 3:Or(),te(We),te(Le),hc();break;case 5:fc(r);break;case 4:Or();break;case 13:te(ie);break;case 19:te(ie);break;case 10:lc(r.type._context);break;case 22:case 23:Cc()}n=n.return}if(Se=e,ge=e=xn(e.current,null),Ee=Ge=t,we=0,Ys=null,kc=Zo=Zn=0,Ue=Es=null,Un!==null){for(t=0;t<Un.length;t++)if(n=Un[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Un=null}return e}function _0(e,t){do{var n=ge;try{if(ac(),Gi.current=To,Eo){for(var r=ae.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Eo=!1}if(Xn=0,ke=xe=ae=null,bs=!1,Ks=0,wc.current=null,n===null||n.return===null){we=1,Ys=t,ge=null;break}e:{var i=e,o=n.return,a=n,l=t;if(t=Ee,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=wf(o);if(p!==null){p.flags&=-257,kf(p,o,a,i,t),p.mode&1&&xf(i,u,t),t=p,l=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(l),t.updateQueue=v}else w.add(l);break e}else{if(!(t&1)){xf(i,u,t),Ec();break e}l=Error(j(426))}}else if(se&&a.mode&1){var S=wf(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),kf(S,o,a,i,t),ic(zr(l,a));break e}}i=l=zr(l,a),we!==4&&(we=2),Es===null?Es=[i]:Es.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=h0(i,l,t);hf(i,m);break e;case 1:a=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(yn===null||!yn.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=p0(i,a,t);hf(i,b);break e}}i=i.return}while(i!==null)}M0(n)}catch(k){t=k,ge===n&&n!==null&&(ge=n=n.return);continue}break}while(!0)}function R0(){var e=No.current;return No.current=To,e===null?To:e}function Ec(){(we===0||we===3||we===2)&&(we=4),Se===null||!(Zn&268435455)&&!(Zo&268435455)||an(Se,Ee)}function _o(e,t){var n=K;K|=2;var r=R0();(Se!==e||Ee!==t)&&(zt=null,Kn(e,t));do try{gx();break}catch(s){_0(e,s)}while(!0);if(ac(),K=n,No.current=r,ge!==null)throw Error(j(261));return Se=null,Ee=0,we}function gx(){for(;ge!==null;)A0(ge)}function yx(){for(;ge!==null&&!Uv();)A0(ge)}function A0(e){var t=D0(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?M0(e):ge=t,wc.current=null}function M0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cx(n,t),n!==null){n.flags&=32767,ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,ge=null;return}}else if(n=ux(n,t,Ge),n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);we===0&&(we=5)}function zn(e,t,n){var r=Q,s=ut.transition;try{ut.transition=null,Q=1,vx(e,t,n,r)}finally{ut.transition=s,Q=r}return null}function vx(e,t,n,r){do Rr();while(un!==null);if(K&6)throw Error(j(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Zv(e,i),e===Se&&(ge=Se=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ri||(Ri=!0,O0(co,function(){return Rr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ut.transition,ut.transition=null;var o=Q;Q=1;var a=K;K|=4,wc.current=null,fx(e,n),N0(n,e),V1(Dl),ho=!!Ll,Dl=Ll=null,e.current=n,hx(n),$v(),K=a,Q=o,ut.transition=i}else e.current=n;if(Ri&&(Ri=!1,un=e,Po=s),i=e.pendingLanes,i===0&&(yn=null),Kv(n.stateNode),Ke(e,pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(jo)throw jo=!1,e=tu,tu=null,e;return Po&1&&e.tag!==0&&Rr(),i=e.pendingLanes,i&1?e===nu?Ts++:(Ts=0,nu=e):Ts=0,jn(),null}function Rr(){if(un!==null){var e=hm(Po),t=ut.transition,n=Q;try{if(ut.transition=null,Q=16>e?16:e,un===null)var r=!1;else{if(e=un,un=null,Po=0,K&6)throw Error(j(331));var s=K;for(K|=4,A=e.current;A!==null;){var i=A,o=i.child;if(A.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(A=u;A!==null;){var d=A;switch(d.tag){case 0:case 11:case 15:Cs(8,d,i)}var f=d.child;if(f!==null)f.return=d,A=f;else for(;A!==null;){d=A;var h=d.sibling,p=d.return;if(C0(d),d===u){A=null;break}if(h!==null){h.return=p,A=h;break}A=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}A=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,A=o;else e:for(;A!==null;){if(i=A,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Cs(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,A=m;break e}A=i.return}}var g=e.current;for(A=g;A!==null;){o=A;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,A=y;else e:for(o=g;A!==null;){if(a=A,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xo(9,a)}}catch(k){de(a,a.return,k)}if(a===o){A=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,A=b;break e}A=a.return}}if(K=s,jn(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot($o,e)}catch{}r=!0}return r}finally{Q=n,ut.transition=t}}return!1}function Lf(e,t,n){t=zr(n,t),t=h0(e,t,1),e=gn(e,t,1),t=Oe(),e!==null&&(ii(e,1,t),Ke(e,t))}function de(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yn===null||!yn.has(r))){e=zr(n,e),e=p0(t,e,1),t=gn(t,e,1),e=Oe(),t!==null&&(ii(t,1,e),Ke(t,e));break}}t=t.return}}function xx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,Se===e&&(Ee&n)===n&&(we===4||we===3&&(Ee&130023424)===Ee&&500>pe()-Sc?Kn(e,0):kc|=n),Ke(e,t)}function L0(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=Oe();e=Kt(e,t),e!==null&&(ii(e,t,n),Ke(e,n))}function wx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),L0(e,n)}function kx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),L0(e,n)}var D0;D0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,lx(e,t,n);$e=!!(e.flags&131072)}else $e=!1,se&&t.flags&1048576&&Bm(t,wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qi(e,t),e=t.pendingProps;var s=Mr(t,Le.current);_r(t,n),s=mc(null,t,r,e,s,n);var i=gc();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(r)?(i=!0,vo(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,cc(t),s.updater=Qo,t.stateNode=s,s._reactInternals=t,Wl(t,r,e,n),t=ql(null,t,r,!0,i,n)):(t.tag=0,se&&i&&rc(t),De(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=bx(r),e=vt(r,e),s){case 0:t=Kl(null,t,r,e,n);break e;case 1:t=Cf(null,t,r,e,n);break e;case 11:t=Sf(null,t,r,e,n);break e;case 14:t=bf(null,t,r,vt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Kl(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Cf(e,t,r,s,n);case 3:e:{if(v0(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,s=i.element,Hm(e,t),bo(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=zr(Error(j(423)),t),t=Ef(e,t,r,n,s);break e}else if(r!==s){s=zr(Error(j(424)),t),t=Ef(e,t,r,n,s);break e}else for(Ye=mn(t.stateNode.containerInfo.firstChild),Qe=t,se=!0,kt=null,n=$m(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lr(),r===s){t=qt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Km(t),e===null&&Fl(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Ol(r,s)?o=null:i!==null&&Ol(r,i)&&(t.flags|=32),y0(e,t),De(e,t,o,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return x0(e,t,n);case 4:return dc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Sf(e,t,r,s,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ko,r._currentValue),r._currentValue=o,i!==null)if(Et(i.value,o)){if(i.children===s.children&&!We.current){t=qt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ft(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ul(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(j(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ul(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}De(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,_r(t,n),s=ct(s),r=r(s),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,s=vt(r,t.pendingProps),s=vt(r.type,s),bf(e,t,r,s,n);case 15:return m0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:vt(r,s),Qi(e,t),t.tag=1,He(r)?(e=!0,vo(t)):e=!1,_r(t,n),f0(t,r,s),Wl(t,r,s,n),ql(null,t,r,!0,e,n);case 19:return w0(e,t,n);case 22:return g0(e,t,n)}throw Error(j(156,t.tag))};function O0(e,t){return um(e,t)}function Sx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lt(e,t,n,r){return new Sx(e,t,n,r)}function Tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bx(e){if(typeof e=="function")return Tc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hu)return 11;if(e===Ku)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=lt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ji(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Tc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cr:return qn(n.children,s,i,t);case Wu:o=8,s|=8;break;case pl:return e=lt(12,n,t,s|2),e.elementType=pl,e.lanes=i,e;case ml:return e=lt(13,n,t,s),e.elementType=ml,e.lanes=i,e;case gl:return e=lt(19,n,t,s),e.elementType=gl,e.lanes=i,e;case Kp:return Jo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wp:o=10;break e;case Hp:o=9;break e;case Hu:o=11;break e;case Ku:o=14;break e;case rn:o=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=lt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function qn(e,t,n,r){return e=lt(7,e,r,t),e.lanes=n,e}function Jo(e,t,n,r){return e=lt(22,e,r,t),e.elementType=Kp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ha(e,t,n){return e=lt(6,e,null,t),e.lanes=n,e}function Ka(e,t,n){return t=lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cx(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ta(0),this.expirationTimes=Ta(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nc(e,t,n,r,s,i,o,a,l){return e=new Cx(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=lt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cc(i),e}function Ex(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ur,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function z0(e){if(!e)return bn;e=e._reactInternals;e:{if(tr(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(He(n))return zm(e,n,t)}return t}function V0(e,t,n,r,s,i,o,a,l){return e=Nc(n,r,!0,e,s,i,o,a,l),e.context=z0(null),n=e.current,r=Oe(),s=vn(n),i=Ft(r,s),i.callback=t??null,gn(n,i,s),e.current.lanes=s,ii(e,s,r),Ke(e,r),e}function ea(e,t,n,r){var s=t.current,i=Oe(),o=vn(s);return n=z0(n),t.context===null?t.context=n:t.pendingContext=n,t=Ft(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gn(s,t,o),e!==null&&(Ct(e,s,o,i),qi(e,s,o)),o}function Ro(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Df(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jc(e,t){Df(e,t),(e=e.alternate)&&Df(e,t)}function Tx(){return null}var B0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pc(e){this._internalRoot=e}ta.prototype.render=Pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));ea(e,t,null,null)};ta.prototype.unmount=Pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jn(function(){ea(null,e,null,null)}),t[Ht]=null}};function ta(e){this._internalRoot=e}ta.prototype.unstable_scheduleHydration=function(e){if(e){var t=gm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<on.length&&t!==0&&t<on[n].priority;n++);on.splice(n,0,e),n===0&&vm(e)}};function _c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Of(){}function Nx(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=Ro(o);i.call(u)}}var o=V0(t,r,e,0,null,!1,!1,"",Of);return e._reactRootContainer=o,e[Ht]=o.current,Fs(e.nodeType===8?e.parentNode:e),Jn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=Ro(l);a.call(u)}}var l=Nc(e,0,!1,null,null,!1,!1,"",Of);return e._reactRootContainer=l,e[Ht]=l.current,Fs(e.nodeType===8?e.parentNode:e),Jn(function(){ea(t,l,n,r)}),l}function ra(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=Ro(o);a.call(l)}}ea(t,o,e,s)}else o=Nx(n,t,e,s,r);return Ro(o)}pm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ds(t.pendingLanes);n!==0&&(Yu(t,n|1),Ke(t,pe()),!(K&6)&&(Vr=pe()+500,jn()))}break;case 13:Jn(function(){var r=Kt(e,1);if(r!==null){var s=Oe();Ct(r,e,1,s)}}),jc(e,1)}};Qu=function(e){if(e.tag===13){var t=Kt(e,134217728);if(t!==null){var n=Oe();Ct(t,e,134217728,n)}jc(e,134217728)}};mm=function(e){if(e.tag===13){var t=vn(e),n=Kt(e,t);if(n!==null){var r=Oe();Ct(n,e,t,r)}jc(e,t)}};gm=function(){return Q};ym=function(e,t){var n=Q;try{return Q=e,t()}finally{Q=n}};Tl=function(e,t,n){switch(t){case"input":if(xl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=qo(r);if(!s)throw Error(j(90));Gp(r),xl(r,s)}}}break;case"textarea":Qp(e,n);break;case"select":t=n.value,t!=null&&Tr(e,!!n.multiple,t,!1)}};rm=bc;sm=Jn;var jx={usingClientEntryPoint:!1,Events:[ai,pr,qo,tm,nm,bc]},os={findFiberByHostInstance:Fn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Px={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=am(e),e===null?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||Tx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ai.isDisabled&&Ai.supportsFiber)try{$o=Ai.inject(Px),Rt=Ai}catch{}}et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jx;et.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_c(t))throw Error(j(200));return Ex(e,t,null,n)};et.createRoot=function(e,t){if(!_c(e))throw Error(j(299));var n=!1,r="",s=B0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nc(e,1,!1,null,null,n,!1,r,s),e[Ht]=t.current,Fs(e.nodeType===8?e.parentNode:e),new Pc(t)};et.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=am(t),e=e===null?null:e.stateNode,e};et.flushSync=function(e){return Jn(e)};et.hydrate=function(e,t,n){if(!na(t))throw Error(j(200));return ra(null,e,t,!0,n)};et.hydrateRoot=function(e,t,n){if(!_c(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=B0;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=V0(t,null,e,1,n??null,s,!1,i,o),e[Ht]=t.current,Fs(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new ta(t)};et.render=function(e,t,n){if(!na(t))throw Error(j(200));return ra(null,e,t,!1,n)};et.unmountComponentAtNode=function(e){if(!na(e))throw Error(j(40));return e._reactRootContainer?(Jn(function(){ra(null,null,e,!1,function(){e._reactRootContainer=null,e[Ht]=null})}),!0):!1};et.unstable_batchedUpdates=bc;et.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!na(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return ra(e,t,n,!1,r)};et.version="18.3.1-next-f1338f8080-20240426";function I0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I0)}catch(e){console.error(e)}}I0(),Ip.exports=et;var F0=Ip.exports;const _x=jp(F0);var U0,zf=F0;U0=zf.createRoot,zf.hydrateRoot;/**
|
|
41
|
+
* @remix-run/router v1.23.2
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(this,arguments)}var cn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(cn||(cn={}));const Vf="popstate";function Rx(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:a}=r.location;return iu("",{pathname:i,search:o,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ao(s)}return Mx(t,n,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ax(){return Math.random().toString(36).substr(2,8)}function Bf(e,t){return{usr:e.state,key:e.key,idx:t}}function iu(e,t,n,r){return n===void 0&&(n=null),Qs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hr(t):t,{state:n,key:t&&t.key||r||Ax()})}function Ao(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Mx(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=cn.Pop,l=null,u=d();u==null&&(u=0,o.replaceState(Qs({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){a=cn.Pop;let S=d(),m=S==null?null:S-u;u=S,l&&l({action:a,location:v.location,delta:m})}function h(S,m){a=cn.Push;let g=iu(v.location,S,m);u=d()+1;let y=Bf(g,u),b=v.createHref(g);try{o.pushState(y,"",b)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;s.location.assign(b)}i&&l&&l({action:a,location:v.location,delta:1})}function p(S,m){a=cn.Replace;let g=iu(v.location,S,m);u=d();let y=Bf(g,u),b=v.createHref(g);o.replaceState(y,"",b),i&&l&&l({action:a,location:v.location,delta:0})}function w(S){let m=s.location.origin!=="null"?s.location.origin:s.location.href,g=typeof S=="string"?S:Ao(S);return g=g.replace(/ $/,"%20"),me(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return a},get location(){return e(s,o)},listen(S){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(Vf,f),l=S,()=>{s.removeEventListener(Vf,f),l=null}},createHref(S){return t(s,S)},createURL:w,encodeLocation(S){let m=w(S);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(S){return o.go(S)}};return v}var If;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(If||(If={}));function Lx(e,t,n){return n===void 0&&(n="/"),Dx(e,t,n)}function Dx(e,t,n,r){let s=typeof t=="string"?Hr(t):t,i=Ac(s.pathname||"/",n);if(i==null)return null;let o=$0(e);Ox(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=Gx(i);a=Hx(o[l],u)}return a}function $0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=wn([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$0(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:$x(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let l of W0(i.path))s(i,o,l)}),t}function W0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=W0(r.join("/")),a=[];return a.push(...o.map(l=>l===""?i:[i,l].join("/"))),s&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ox(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Wx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zx=/^:[\w-]+$/,Vx=3,Bx=2,Ix=1,Fx=10,Ux=-2,Ff=e=>e==="*";function $x(e,t){let n=e.split("/"),r=n.length;return n.some(Ff)&&(r+=Ux),t&&(r+=Bx),n.filter(s=>!Ff(s)).reduce((s,i)=>s+(zx.test(i)?Vx:i===""?Ix:Fx),r)}function Wx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Hx(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=Kx({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f)return null;Object.assign(s,f.params),o.push({params:s,pathname:wn([i,f.pathname]),pathnameBase:Jx(wn([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=wn([i,f.pathnameBase]))}return o}function Kx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=qx(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),a=s.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:p}=d;if(h==="*"){let v=a[f]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const w=a[f];return p&&!w?u[h]=void 0:u[h]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function qx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rc(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function Gx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ac(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Yx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qx=e=>Yx.test(e);function Xx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Hr(e):e,i;if(n)if(Qx(n))i=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Rc(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?i=Uf(n.substring(1),"/"):i=Uf(n,t)}else i=t;return{pathname:i,search:ew(r),hash:tw(s)}}function Uf(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function qa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Zx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Mc(e,t){let n=Zx(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Lc(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Hr(e):(s=Qs({},e),me(!s.pathname||!s.pathname.includes("?"),qa("?","pathname","search",s)),me(!s.pathname||!s.pathname.includes("#"),qa("#","pathname","hash",s)),me(!s.search||!s.search.includes("#"),qa("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;s.pathname=h.join("/")}a=f>=0?t[f]:"/"}let l=Xx(s,a),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const wn=e=>e.join("/").replace(/\/\/+/g,"/"),Jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const H0=["post","put","patch","delete"];new Set(H0);const rw=["get",...H0];new Set(rw);/**
|
|
50
|
+
* React Router v6.30.3
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(this,arguments)}const Dc=x.createContext(null),sw=x.createContext(null),Pn=x.createContext(null),sa=x.createContext(null),Qt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),K0=x.createContext(null);function iw(e,t){let{relative:n}=t===void 0?{}:t;Kr()||me(!1);let{basename:r,navigator:s}=x.useContext(Pn),{hash:i,pathname:o,search:a}=G0(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:wn([r,o])),s.createHref({pathname:l,search:a,hash:i})}function Kr(){return x.useContext(sa)!=null}function qr(){return Kr()||me(!1),x.useContext(sa).location}function q0(e){x.useContext(Pn).static||x.useLayoutEffect(e)}function ui(){let{isDataRoute:e}=x.useContext(Qt);return e?ww():ow()}function ow(){Kr()||me(!1);let e=x.useContext(Dc),{basename:t,future:n,navigator:r}=x.useContext(Pn),{matches:s}=x.useContext(Qt),{pathname:i}=qr(),o=JSON.stringify(Mc(s,n.v7_relativeSplatPath)),a=x.useRef(!1);return q0(()=>{a.current=!0}),x.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Lc(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:wn([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,i,e])}const aw=x.createContext(null);function lw(e){let t=x.useContext(Qt).outlet;return t&&x.createElement(aw.Provider,{value:e},t)}function G0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Pn),{matches:s}=x.useContext(Qt),{pathname:i}=qr(),o=JSON.stringify(Mc(s,r.v7_relativeSplatPath));return x.useMemo(()=>Lc(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function uw(e,t){return cw(e,t)}function cw(e,t,n,r){Kr()||me(!1);let{navigator:s}=x.useContext(Pn),{matches:i}=x.useContext(Qt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=qr(),d;if(t){var f;let S=typeof t=="string"?Hr(t):t;l==="/"||(f=S.pathname)!=null&&f.startsWith(l)||me(!1),d=S}else d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=Lx(e,{pathname:p}),v=mw(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:wn([l,s.encodeLocation?s.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:wn([l,s.encodeLocation?s.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&v?x.createElement(sa.Provider,{value:{location:Xs({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:cn.Pop}},v):v}function dw(){let e=xw(),t=nw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:s},n):null,null)}const fw=x.createElement(dw,null);class hw extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Qt.Provider,{value:this.props.routeContext},x.createElement(K0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pw(e){let{routeContext:t,match:n,children:r}=e,s=x.useContext(Dc);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Qt.Provider,{value:t},r)}function mw(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(s=n)==null?void 0:s.errors;if(a!=null){let d=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||me(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:p}=n,w=f.route.loader&&h[f.route.id]===void 0&&(!p||p[f.route.id]===void 0);if(f.route.lazy||w){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,h)=>{let p,w=!1,v=null,S=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||fw,l&&(u<0&&h===0?(kw("route-fallback"),w=!0,S=null):u===h&&(w=!0,S=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,h+1)),g=()=>{let y;return p?y=v:w?y=S:f.route.Component?y=x.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=d,x.createElement(pw,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?x.createElement(hw,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var Y0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Y0||{}),Q0=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Q0||{});function gw(e){let t=x.useContext(Dc);return t||me(!1),t}function yw(e){let t=x.useContext(sw);return t||me(!1),t}function vw(e){let t=x.useContext(Qt);return t||me(!1),t}function X0(e){let t=vw(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function xw(){var e;let t=x.useContext(K0),n=yw(),r=X0();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ww(){let{router:e}=gw(Y0.UseNavigateStable),t=X0(Q0.UseNavigateStable),n=x.useRef(!1);return q0(()=>{n.current=!0}),x.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Xs({fromRouteId:t},i)))},[e,t])}const $f={};function kw(e,t,n){$f[e]||($f[e]=!0)}function Sw(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Wf(e){let{to:t,replace:n,state:r,relative:s}=e;Kr()||me(!1);let{future:i,static:o}=x.useContext(Pn),{matches:a}=x.useContext(Qt),{pathname:l}=qr(),u=ui(),d=Lc(t,Mc(a,i.v7_relativeSplatPath),l,s==="path"),f=JSON.stringify(d);return x.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:s}),[u,f,s,n,r]),null}function bw(e){return lw(e.context)}function jt(e){me(!1)}function Cw(e){let{basename:t="/",children:n=null,location:r,navigationType:s=cn.Pop,navigator:i,static:o=!1,future:a}=e;Kr()&&me(!1);let l=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:l,navigator:i,static:o,future:Xs({v7_relativeSplatPath:!1},a)}),[l,a,i,o]);typeof r=="string"&&(r=Hr(r));let{pathname:d="/",search:f="",hash:h="",state:p=null,key:w="default"}=r,v=x.useMemo(()=>{let S=Ac(d,l);return S==null?null:{location:{pathname:S,search:f,hash:h,state:p,key:w},navigationType:s}},[l,d,f,h,p,w,s]);return v==null?null:x.createElement(Pn.Provider,{value:u},x.createElement(sa.Provider,{children:n,value:v}))}function Ew(e){let{children:t,location:n}=e;return uw(ou(t),n)}new Promise(()=>{});function ou(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,s)=>{if(!x.isValidElement(r))return;let i=[...t,s];if(r.type===x.Fragment){n.push.apply(n,ou(r.props.children,i));return}r.type!==jt&&me(!1),!r.props.index||!r.props.children||me(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=ou(r.props.children,i)),n.push(o)}),n}/**
|
|
59
|
+
* React Router DOM v6.30.3
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},au.apply(this,arguments)}function Tw(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Nw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jw(e,t){return e.button===0&&(!t||t==="_self")&&!Nw(e)}const Pw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_w="6";try{window.__reactRouterVersion=_w}catch{}const Rw="startTransition",Hf=xv[Rw];function Aw(e){let{basename:t,children:n,future:r,window:s}=e,i=x.useRef();i.current==null&&(i.current=Rx({window:s,v5Compat:!0}));let o=i.current,[a,l]=x.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=x.useCallback(f=>{u&&Hf?Hf(()=>l(f)):l(f)},[l,u]);return x.useLayoutEffect(()=>o.listen(d),[o,d]),x.useEffect(()=>Sw(r),[r]),x.createElement(Cw,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Mw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lu=x.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=Tw(t,Pw),{basename:p}=x.useContext(Pn),w,v=!1;if(typeof u=="string"&&Lw.test(u)&&(w=u,Mw))try{let y=new URL(window.location.href),b=u.startsWith("//")?new URL(y.protocol+u):new URL(u),k=Ac(b.pathname,p);b.origin===y.origin&&k!=null?u=k+b.search+b.hash:v=!0}catch{}let S=iw(u,{relative:s}),m=Dw(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:s,viewTransition:f});function g(y){r&&r(y),y.defaultPrevented||m(y)}return x.createElement("a",au({},h,{href:w||S,onClick:v||i?r:g,ref:n,target:l}))});var Kf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Kf||(Kf={}));var qf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(qf||(qf={}));function Dw(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=t===void 0?{}:t,l=ui(),u=qr(),d=G0(e,{relative:o});return x.useCallback(f=>{if(jw(f,n)){f.preventDefault();let h=r!==void 0?r:Ao(u)===Ao(d);l(e,{replace:h,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[u,l,d,r,s,n,e,i,o,a])}var Ow=e=>{switch(e){case"success":return Bw;case"info":return Fw;case"warning":return Iw;case"error":return Uw;default:return null}},zw=Array(12).fill(0),Vw=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},zw.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Bw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Iw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Fw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Uw=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),$w=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ww=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},uu=1,Hw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:uu++,i=this.toasts.find(a=>a.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...e,id:s,title:n}),{...a,...e,id:s,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async l=>{if(i=["resolve",l],R.isValidElement(l))s=!1,this.create({id:n,type:"default",message:l});else if(qw(l)&&!l.ok){s=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){s=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(i=["reject",l],t.error!==void 0){s=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;s&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>i[0]==="reject"?u(i[1]):l(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||uu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Fe=new Hw,Kw=(e,t)=>{let n=(t==null?void 0:t.id)||uu++;return Fe.addToast({title:e,...t,id:n}),n},qw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Gw=Kw,Yw=()=>Fe.toasts,Qw=()=>Fe.getActiveToasts();Object.assign(Gw,{success:Fe.success,info:Fe.info,warning:Fe.warning,error:Fe.error,custom:Fe.custom,message:Fe.message,promise:Fe.promise,dismiss:Fe.dismiss,loading:Fe.loading},{getHistory:Yw,getToasts:Qw});function Xw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}Xw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
68
|
+
`);function Mi(e){return e.label!==void 0}var Zw=3,Jw="32px",e2="16px",Gf=4e3,t2=356,n2=14,r2=20,s2=200;function gt(...e){return e.filter(Boolean).join(" ")}function i2(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var o2=e=>{var t,n,r,s,i,o,a,l,u,d,f;let{invert:h,toast:p,unstyled:w,interacting:v,setHeights:S,visibleToasts:m,heights:g,index:y,toasts:b,expanded:k,removeToast:C,defaultRichColors:E,closeButton:T,style:O,cancelButtonStyle:L,actionButtonStyle:G,className:fe="",descriptionClassName:Ne="",duration:Be,position:Tt,gap:Ie,loadingIcon:F,expandByDefault:P,classNames:_,icons:M,closeButtonAriaLabel:X="Close toast",pauseWhenPageIsHidden:V}=e,[$,B]=R.useState(null),[ue,je]=R.useState(null),[Y,Xr]=R.useState(!1),[Rn,An]=R.useState(!1),[Xt,N]=R.useState(!1),[q,qe]=R.useState(!1),[pi,kd]=R.useState(!1),[Ky,va]=R.useState(0),[qy,Sd]=R.useState(0),Zr=R.useRef(p.duration||Be||Gf),bd=R.useRef(null),Mn=R.useRef(null),Gy=y===0,Yy=y+1<=m,nt=p.type,sr=p.dismissible!==!1,Qy=p.className||"",Xy=p.descriptionClassName||"",mi=R.useMemo(()=>g.findIndex(I=>I.toastId===p.id)||0,[g,p.id]),Zy=R.useMemo(()=>{var I;return(I=p.closeButton)!=null?I:T},[p.closeButton,T]),Cd=R.useMemo(()=>p.duration||Be||Gf,[p.duration,Be]),xa=R.useRef(0),ir=R.useRef(0),Ed=R.useRef(0),or=R.useRef(null),[Jy,ev]=Tt.split("-"),Td=R.useMemo(()=>g.reduce((I,Z,re)=>re>=mi?I:I+Z.height,0),[g,mi]),Nd=Ww(),tv=p.invert||h,wa=nt==="loading";ir.current=R.useMemo(()=>mi*Ie+Td,[mi,Td]),R.useEffect(()=>{Zr.current=Cd},[Cd]),R.useEffect(()=>{Xr(!0)},[]),R.useEffect(()=>{let I=Mn.current;if(I){let Z=I.getBoundingClientRect().height;return Sd(Z),S(re=>[{toastId:p.id,height:Z,position:p.position},...re]),()=>S(re=>re.filter(ft=>ft.toastId!==p.id))}},[S,p.id]),R.useLayoutEffect(()=>{if(!Y)return;let I=Mn.current,Z=I.style.height;I.style.height="auto";let re=I.getBoundingClientRect().height;I.style.height=Z,Sd(re),S(ft=>ft.find(ht=>ht.toastId===p.id)?ft.map(ht=>ht.toastId===p.id?{...ht,height:re}:ht):[{toastId:p.id,height:re,position:p.position},...ft])},[Y,p.title,p.description,S,p.id]);let Zt=R.useCallback(()=>{An(!0),va(ir.current),S(I=>I.filter(Z=>Z.toastId!==p.id)),setTimeout(()=>{C(p)},s2)},[p,C,S,ir]);R.useEffect(()=>{if(p.promise&&nt==="loading"||p.duration===1/0||p.type==="loading")return;let I;return k||v||V&&Nd?(()=>{if(Ed.current<xa.current){let Z=new Date().getTime()-xa.current;Zr.current=Zr.current-Z}Ed.current=new Date().getTime()})():Zr.current!==1/0&&(xa.current=new Date().getTime(),I=setTimeout(()=>{var Z;(Z=p.onAutoClose)==null||Z.call(p,p),Zt()},Zr.current)),()=>clearTimeout(I)},[k,v,p,nt,V,Nd,Zt]),R.useEffect(()=>{p.delete&&Zt()},[Zt,p.delete]);function nv(){var I,Z,re;return M!=null&&M.loading?R.createElement("div",{className:gt(_==null?void 0:_.loader,(I=p==null?void 0:p.classNames)==null?void 0:I.loader,"sonner-loader"),"data-visible":nt==="loading"},M.loading):F?R.createElement("div",{className:gt(_==null?void 0:_.loader,(Z=p==null?void 0:p.classNames)==null?void 0:Z.loader,"sonner-loader"),"data-visible":nt==="loading"},F):R.createElement(Vw,{className:gt(_==null?void 0:_.loader,(re=p==null?void 0:p.classNames)==null?void 0:re.loader),visible:nt==="loading"})}return R.createElement("li",{tabIndex:0,ref:Mn,className:gt(fe,Qy,_==null?void 0:_.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,_==null?void 0:_.default,_==null?void 0:_[nt],(n=p==null?void 0:p.classNames)==null?void 0:n[nt]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:E,"data-styled":!(p.jsx||p.unstyled||w),"data-mounted":Y,"data-promise":!!p.promise,"data-swiped":pi,"data-removed":Rn,"data-visible":Yy,"data-y-position":Jy,"data-x-position":ev,"data-index":y,"data-front":Gy,"data-swiping":Xt,"data-dismissible":sr,"data-type":nt,"data-invert":tv,"data-swipe-out":q,"data-swipe-direction":ue,"data-expanded":!!(k||P&&Y),style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${Rn?Ky:ir.current}px`,"--initial-height":P?"auto":`${qy}px`,...O,...p.style},onDragEnd:()=>{N(!1),B(null),or.current=null},onPointerDown:I=>{wa||!sr||(bd.current=new Date,va(ir.current),I.target.setPointerCapture(I.pointerId),I.target.tagName!=="BUTTON"&&(N(!0),or.current={x:I.clientX,y:I.clientY}))},onPointerUp:()=>{var I,Z,re,ft;if(q||!sr)return;or.current=null;let ht=Number(((I=Mn.current)==null?void 0:I.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Jt=Number(((Z=Mn.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ln=new Date().getTime()-((re=bd.current)==null?void 0:re.getTime()),pt=$==="x"?ht:Jt,en=Math.abs(pt)/Ln;if(Math.abs(pt)>=r2||en>.11){va(ir.current),(ft=p.onDismiss)==null||ft.call(p,p),je($==="x"?ht>0?"right":"left":Jt>0?"down":"up"),Zt(),qe(!0),kd(!1);return}N(!1),B(null)},onPointerMove:I=>{var Z,re,ft,ht;if(!or.current||!sr||((Z=window.getSelection())==null?void 0:Z.toString().length)>0)return;let Jt=I.clientY-or.current.y,Ln=I.clientX-or.current.x,pt=(re=e.swipeDirections)!=null?re:i2(Tt);!$&&(Math.abs(Ln)>1||Math.abs(Jt)>1)&&B(Math.abs(Ln)>Math.abs(Jt)?"x":"y");let en={x:0,y:0};$==="y"?(pt.includes("top")||pt.includes("bottom"))&&(pt.includes("top")&&Jt<0||pt.includes("bottom")&&Jt>0)&&(en.y=Jt):$==="x"&&(pt.includes("left")||pt.includes("right"))&&(pt.includes("left")&&Ln<0||pt.includes("right")&&Ln>0)&&(en.x=Ln),(Math.abs(en.x)>0||Math.abs(en.y)>0)&&kd(!0),(ft=Mn.current)==null||ft.style.setProperty("--swipe-amount-x",`${en.x}px`),(ht=Mn.current)==null||ht.style.setProperty("--swipe-amount-y",`${en.y}px`)}},Zy&&!p.jsx?R.createElement("button",{"aria-label":X,"data-disabled":wa,"data-close-button":!0,onClick:wa||!sr?()=>{}:()=>{var I;Zt(),(I=p.onDismiss)==null||I.call(p,p)},className:gt(_==null?void 0:_.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=M==null?void 0:M.close)!=null?i:$w):null,p.jsx||x.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:R.createElement(R.Fragment,null,nt||p.icon||p.promise?R.createElement("div",{"data-icon":"",className:gt(_==null?void 0:_.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||nv():null,p.type!=="loading"?p.icon||(M==null?void 0:M[nt])||Ow(nt):null):null,R.createElement("div",{"data-content":"",className:gt(_==null?void 0:_.content,(a=p==null?void 0:p.classNames)==null?void 0:a.content)},R.createElement("div",{"data-title":"",className:gt(_==null?void 0:_.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?R.createElement("div",{"data-description":"",className:gt(Ne,Xy,_==null?void 0:_.description,(u=p==null?void 0:p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),x.isValidElement(p.cancel)?p.cancel:p.cancel&&Mi(p.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||L,onClick:I=>{var Z,re;Mi(p.cancel)&&sr&&((re=(Z=p.cancel).onClick)==null||re.call(Z,I),Zt())},className:gt(_==null?void 0:_.cancelButton,(d=p==null?void 0:p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,x.isValidElement(p.action)?p.action:p.action&&Mi(p.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||G,onClick:I=>{var Z,re;Mi(p.action)&&((re=(Z=p.action).onClick)==null||re.call(Z,I),!I.defaultPrevented&&Zt())},className:gt(_==null?void 0:_.actionButton,(f=p==null?void 0:p.classNames)==null?void 0:f.actionButton)},p.action.label):null))};function Yf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function a2(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,o=i?"--mobile-offset":"--offset",a=i?e2:Jw;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var l2=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:f,duration:h,style:p,visibleToasts:w=Zw,toastOptions:v,dir:S=Yf(),gap:m=n2,loadingIcon:g,icons:y,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:k}=e,[C,E]=R.useState([]),T=R.useMemo(()=>Array.from(new Set([r].concat(C.filter(V=>V.position).map(V=>V.position)))),[C,r]),[O,L]=R.useState([]),[G,fe]=R.useState(!1),[Ne,Be]=R.useState(!1),[Tt,Ie]=R.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=R.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=R.useRef(null),M=R.useRef(!1),X=R.useCallback(V=>{E($=>{var B;return(B=$.find(ue=>ue.id===V.id))!=null&&B.delete||Fe.dismiss(V.id),$.filter(({id:ue})=>ue!==V.id)})},[]);return R.useEffect(()=>Fe.subscribe(V=>{if(V.dismiss){E($=>$.map(B=>B.id===V.id?{...B,delete:!0}:B));return}setTimeout(()=>{_x.flushSync(()=>{E($=>{let B=$.findIndex(ue=>ue.id===V.id);return B!==-1?[...$.slice(0,B),{...$[B],...V},...$.slice(B+1)]:[V,...$]})})})}),[]),R.useEffect(()=>{if(d!=="system"){Ie(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ie("dark"):Ie("light")),typeof window>"u")return;let V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:$})=>{Ie($?"dark":"light")})}catch{V.addListener(({matches:B})=>{try{Ie(B?"dark":"light")}catch(ue){console.error(ue)}})}},[d]),R.useEffect(()=>{C.length<=1&&fe(!1)},[C]),R.useEffect(()=>{let V=$=>{var B,ue;s.every(je=>$[je]||$.code===je)&&(fe(!0),(B=F.current)==null||B.focus()),$.code==="Escape"&&(document.activeElement===F.current||(ue=F.current)!=null&&ue.contains(document.activeElement))&&fe(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[s]),R.useEffect(()=>{if(F.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,M.current=!1)}},[F.current]),R.createElement("section",{ref:t,"aria-label":`${b} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((V,$)=>{var B;let[ue,je]=V.split("-");return C.length?R.createElement("ol",{key:V,dir:S==="auto"?Yf():S,tabIndex:-1,ref:F,className:a,"data-sonner-toaster":!0,"data-theme":Tt,"data-y-position":ue,"data-lifted":G&&C.length>1&&!i,"data-x-position":je,style:{"--front-toast-height":`${((B=O[0])==null?void 0:B.height)||0}px`,"--width":`${t2}px`,"--gap":`${m}px`,...p,...a2(l,u)},onBlur:Y=>{M.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(M.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||M.current||(M.current=!0,_.current=Y.relatedTarget)},onMouseEnter:()=>fe(!0),onMouseMove:()=>fe(!0),onMouseLeave:()=>{Ne||fe(!1)},onDragEnd:()=>fe(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||Be(!0)},onPointerUp:()=>Be(!1)},C.filter(Y=>!Y.position&&$===0||Y.position===V).map((Y,Xr)=>{var Rn,An;return R.createElement(o2,{key:Y.id,icons:y,index:Xr,toast:Y,defaultRichColors:f,duration:(Rn=v==null?void 0:v.duration)!=null?Rn:h,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:w,closeButton:(An=v==null?void 0:v.closeButton)!=null?An:o,interacting:Ne,position:V,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:X,toasts:C.filter(Xt=>Xt.position==Y.position),heights:O.filter(Xt=>Xt.position==Y.position),setHeights:L,expandByDefault:i,gap:m,loadingIcon:g,expanded:G,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});const Oc=x.createContext({});function zc(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const ia=x.createContext(null),Vc=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class u2 extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c2({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),s=x.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=x.useContext(Vc);return x.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=s.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
69
|
+
[data-motion-pop-id="${n}"] {
|
|
70
|
+
position: absolute !important;
|
|
71
|
+
width: ${o}px !important;
|
|
72
|
+
height: ${a}px !important;
|
|
73
|
+
top: ${l}px !important;
|
|
74
|
+
left: ${u}px !important;
|
|
75
|
+
}
|
|
76
|
+
`),()=>{document.head.removeChild(d)}},[t]),c.jsx(u2,{isPresent:t,childRef:r,sizeRef:s,children:x.cloneElement(e,{ref:r})})}const d2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=zc(f2),l=x.useId(),u=x.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),i?[Math.random(),u]:[n,u]);return x.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(c2,{isPresent:n,children:e})),c.jsx(ia.Provider,{value:d,children:e})};function f2(){return new Map}function Z0(e=!0){const t=x.useContext(ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=x.useId();x.useEffect(()=>{e&&s(i)},[e]);const o=x.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Li=e=>e.key||"";function Qf(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const Bc=typeof window<"u",J0=Bc?x.useLayoutEffect:x.useEffect,nr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1})=>{const[a,l]=Z0(o),u=x.useMemo(()=>Qf(e),[e]),d=o&&!a?[]:u.map(Li),f=x.useRef(!0),h=x.useRef(u),p=zc(()=>new Map),[w,v]=x.useState(u),[S,m]=x.useState(u);J0(()=>{f.current=!1,h.current=u;for(let b=0;b<S.length;b++){const k=Li(S[b]);d.includes(k)?p.delete(k):p.get(k)!==!0&&p.set(k,!1)}},[S,d.length,d.join("-")]);const g=[];if(u!==w){let b=[...u];for(let k=0;k<S.length;k++){const C=S[k],E=Li(C);d.includes(E)||(b.splice(k,0,C),g.push(C))}i==="wait"&&g.length&&(b=g),m(Qf(b)),v(u);return}const{forceRender:y}=x.useContext(Oc);return c.jsx(c.Fragment,{children:S.map(b=>{const k=Li(b),C=o&&!a?!1:u===S||d.includes(k),E=()=>{if(p.has(k))p.set(k,!0);else return;let T=!0;p.forEach(O=>{O||(T=!1)}),T&&(y==null||y(),m(h.current),o&&(l==null||l()),r&&r())};return c.jsx(d2,{isPresent:C,initial:!f.current||n?void 0:!1,custom:C?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:C?void 0:E,children:b},k)})})},Xe=e=>e;let eg=Xe;function Ic(e){let t;return()=>(t===void 0&&(t=e()),t)}const Br=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Ut=e=>e*1e3,$t=e=>e/1e3,h2={useManualTiming:!1};function p2(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(u))}};return l}const Di=["read","resolveKeyframes","update","preRender","render","postRender"],m2=40;function tg(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Di.reduce((m,g)=>(m[g]=p2(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:h}=o,p=()=>{const m=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(m-s.timestamp,m2),1),s.timestamp=m,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),d.process(s),f.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},w=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:Di.reduce((m,g)=>{const y=o[g];return m[g]=(b,k=!1,C=!1)=>(n||w(),y.schedule(b,k,C)),m},{}),cancel:m=>{for(let g=0;g<Di.length;g++)o[Di[g]].cancel(m)},state:s,steps:o}}const{schedule:ne,cancel:Cn,state:Ce,steps:Ga}=tg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0),ng=x.createContext({strict:!1}),Xf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ir={};for(const e in Xf)Ir[e]={isEnabled:t=>Xf[e].some(n=>!!t[n])};function g2(e){for(const t in e)Ir[t]={...Ir[t],...e[t]}}const y2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Mo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||y2.has(e)}let rg=e=>!Mo(e);function v2(e){e&&(rg=t=>t.startsWith("on")?!Mo(t):e(t))}try{v2(require("@emotion/is-prop-valid").default)}catch{}function x2(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(rg(s)||n===!0&&Mo(s)||!t&&!Mo(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function w2(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const oa=x.createContext({});function Zs(e){return typeof e=="string"||Array.isArray(e)}function aa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Fc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uc=["initial",...Fc];function la(e){return aa(e.animate)||Uc.some(t=>Zs(e[t]))}function sg(e){return!!(la(e)||e.variants)}function k2(e,t){if(la(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function S2(e){const{initial:t,animate:n}=k2(e,x.useContext(oa));return x.useMemo(()=>({initial:t,animate:n}),[Zf(t),Zf(n)])}function Zf(e){return Array.isArray(e)?e.join(" "):e}const b2=Symbol.for("motionComponentSymbol");function kr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function C2(e,t,n){return x.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):kr(n)&&(n.current=r))},[t])}const $c=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),E2="framerAppearId",ig="data-"+$c(E2),{schedule:Wc}=tg(queueMicrotask,!1),og=x.createContext({});function T2(e,t,n,r,s){var i,o;const{visualElement:a}=x.useContext(oa),l=x.useContext(ng),u=x.useContext(ia),d=x.useContext(Vc).reducedMotion,f=x.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,p=x.useContext(og);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&N2(f.current,n,s,p);const w=x.useRef(!1);x.useInsertionEffect(()=>{h&&w.current&&h.update(n,u)});const v=n[ig],S=x.useRef(!!v&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return J0(()=>{h&&(w.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Wc.render(h.render),S.current&&h.animationState&&h.animationState.animateChanges())}),x.useEffect(()=>{h&&(!S.current&&h.animationState&&h.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),S.current=!1))}),h}function N2(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ag(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&kr(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function ag(e){if(e)return e.options.allowProjection!==!1?e.projection:ag(e.parent)}function j2({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&g2(e);function a(u,d){let f;const h={...x.useContext(Vc),...u,layoutId:P2(u)},{isStatic:p}=h,w=S2(u),v=r(u,p);if(!p&&Bc){_2();const S=R2(h);f=S.MeasureLayout,w.visualElement=T2(s,v,h,t,S.ProjectionNode)}return c.jsxs(oa.Provider,{value:w,children:[f&&w.visualElement?c.jsx(f,{visualElement:w.visualElement,...h}):null,n(s,u,C2(v,w.visualElement,d),v,p,w.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=x.forwardRef(a);return l[b2]=s,l}function P2({layoutId:e}){const t=x.useContext(Oc).id;return t&&e!==void 0?t+"-"+e:e}function _2(e,t){x.useContext(ng).strict}function R2(e){const{drag:t,layout:n}=Ir;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const A2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hc(e){return typeof e!="string"||e.includes("-")?!1:!!(A2.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jf(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kc(e,t,n,r){if(typeof t=="function"){const[s,i]=Jf(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Jf(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const cu=e=>Array.isArray(e),M2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),L2=e=>cu(e)?e[e.length-1]||0:e,Me=e=>!!(e&&e.getVelocity);function eo(e){const t=Me(e)?e.get():e;return M2(t)?t.toValue():t}function D2({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:O2(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const lg=e=>(t,n)=>{const r=x.useContext(oa),s=x.useContext(ia),i=()=>D2(e,t,r,s);return n?i():zc(i)};function O2(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=eo(i[h]);let{initial:o,animate:a}=e;const l=la(e),u=sg(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!aa(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const w=Kc(e,h[p]);if(w){const{transitionEnd:v,transition:S,...m}=w;for(const g in m){let y=m[g];if(Array.isArray(y)){const b=d?y.length-1:0;y=y[b]}y!==null&&(s[g]=y)}for(const g in v)s[g]=v[g]}}}return s}const Gr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rr=new Set(Gr),ug=e=>t=>typeof t=="string"&&t.startsWith(e),cg=ug("--"),z2=ug("var(--"),qc=e=>z2(e)?V2.test(e.split("/*")[0].trim()):!1,V2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gt=(e,t,n)=>n>t?t:n<e?e:n,Yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Js={...Yr,transform:e=>Gt(0,1,e)},Oi={...Yr,default:1},ci=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),nn=ci("deg"),Mt=ci("%"),z=ci("px"),B2=ci("vh"),I2=ci("vw"),eh={...Mt,parse:e=>Mt.parse(e)/100,transform:e=>Mt.transform(e*100)},F2={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z},U2={rotate:nn,rotateX:nn,rotateY:nn,rotateZ:nn,scale:Oi,scaleX:Oi,scaleY:Oi,scaleZ:Oi,skew:nn,skewX:nn,skewY:nn,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Js,originX:eh,originY:eh,originZ:z},th={...Yr,transform:Math.round},Gc={...F2,...U2,zIndex:th,size:z,fillOpacity:Js,strokeOpacity:Js,numOctaves:th},$2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W2=Gr.length;function H2(e,t,n){let r="",s=!0;for(let i=0;i<W2;i++){const o=Gr[i],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=dg(a,Gc[o]);if(!l){s=!1;const d=$2[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Yc(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(rr.has(l)){o=!0;continue}else if(cg(l)){s[l]=u;continue}else{const d=dg(u,Gc[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=H2(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${u} ${d}`}}const K2={offset:"stroke-dashoffset",array:"stroke-dasharray"},q2={offset:"strokeDashoffset",array:"strokeDasharray"};function G2(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?K2:q2;e[i.offset]=z.transform(-r);const o=z.transform(t),a=z.transform(n);e[i.array]=`${o} ${a}`}function nh(e,t,n){return typeof e=="string"?e:z.transform(t+n*e)}function Y2(e,t,n){const r=nh(t,e.x,e.width),s=nh(n,e.y,e.height);return`${r} ${s}`}function Qc(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,f){if(Yc(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:w}=e;h.transform&&(w&&(p.transform=h.transform),delete h.transform),w&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=Y2(w,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&G2(h,o,a,l,!1)}const Xc=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),fg=()=>({...Xc(),attrs:{}}),Zc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hg(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const pg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function mg(e,t,n,r){hg(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(pg.has(s)?s:$c(s),t.attrs[s])}const Lo={};function Q2(e){Object.assign(Lo,e)}function gg(e,{layout:t,layoutId:n}){return rr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lo[e]||e==="opacity")}function Jc(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Me(s[o])||t.style&&Me(t.style[o])||gg(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function yg(e,t,n){const r=Jc(e,t,n);for(const s in e)if(Me(e[s])||Me(t[s])){const i=Gr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function X2(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const rh=["x","y","width","height","cx","cy","r"],Z2={useVisualState:lg({scrapeMotionValuesFromProps:yg,createRenderState:fg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(rr.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<rh.length;a++){const l=rh[a];e[l]!==t[l]&&(o=!0)}o&&ne.read(()=>{X2(n,r),ne.render(()=>{Qc(r,s,Zc(n.tagName),e.transformTemplate),mg(n,r)})})}})},J2={useVisualState:lg({scrapeMotionValuesFromProps:Jc,createRenderState:Xc})};function vg(e,t,n){for(const r in t)!Me(t[r])&&!gg(r,n)&&(e[r]=t[r])}function ek({transformTemplate:e},t){return x.useMemo(()=>{const n=Xc();return Yc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tk(e,t){const n=e.style||{},r={};return vg(r,n,e),Object.assign(r,ek(e,t)),r}function nk(e,t){const n={},r=tk(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function rk(e,t,n,r){const s=x.useMemo(()=>{const i=fg();return Qc(i,t,Zc(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};vg(i,e.style,e),s.style={...i,...s.style}}return s}function sk(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Hc(n)?rk:nk)(r,i,o,n),u=x2(r,typeof n=="string",e),d=n!==x.Fragment?{...u,...l,ref:s}:{},{children:f}=r,h=x.useMemo(()=>Me(f)?f.get():f,[f]);return x.createElement(n,{...d,children:h})}}function ik(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Hc(r)?Z2:J2,preloadedFeatures:e,useRender:sk(s),createVisualElement:t,Component:r};return j2(o)}}function xg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ua(e,t,n){const r=e.getProps();return Kc(r,t,n!==void 0?n:r.custom,e)}const ok=Ic(()=>window.ScrollTimeline!==void 0);class ak{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(ok()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lk extends ak{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ed(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function wg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function td(e){return typeof e=="function"}function sh(e,t){e.timeline=t,e.onfinish=null}const nd=e=>Array.isArray(e)&&typeof e[0]=="number",uk={linearEasing:void 0};function ck(e,t){const n=Ic(e);return()=>{var r;return(r=uk[t])!==null&&r!==void 0?r:n()}}const Do=ck(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),kg=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(Br(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Sg(e){return!!(typeof e=="function"&&Do()||!e||typeof e=="string"&&(e in fu||Do())||nd(e)||Array.isArray(e)&&e.every(Sg))}const hs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hs([0,.65,.55,1]),circOut:hs([.55,0,1,.45]),backIn:hs([.31,.01,.66,-.59]),backOut:hs([.33,1.53,.69,.99])};function bg(e,t){if(e)return typeof e=="function"&&Do()?kg(e,t):nd(e)?hs(e):Array.isArray(e)?e.map(n=>bg(n,t)||fu.easeOut):fu[e]}const yt={x:!1,y:!1};function Cg(){return yt.x||yt.y}function dk(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Eg(e,t){const n=dk(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function ih(e){return t=>{t.pointerType==="touch"||Cg()||e(t)}}function fk(e,t,n={}){const[r,s,i]=Eg(e,n),o=ih(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const d=ih(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,s)});return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}const Tg=(e,t)=>t?e===t?!0:Tg(e,t.parentElement):!1,rd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pk(e){return hk.has(e.tagName)||e.tabIndex!==-1}const ps=new WeakSet;function oh(e){return t=>{t.key==="Enter"&&e(t)}}function Ya(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const mk=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=oh(()=>{if(ps.has(n))return;Ya(n,"down");const s=oh(()=>{Ya(n,"up")}),i=()=>Ya(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ah(e){return rd(e)&&!Cg()}function gk(e,t,n={}){const[r,s,i]=Eg(e,n),o=a=>{const l=a.currentTarget;if(!ah(a)||ps.has(l))return;ps.add(l);const u=t(a),d=(p,w)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!ah(p)||!ps.has(l))&&(ps.delete(l),typeof u=="function"&&u(p,{success:w}))},f=p=>{d(p,n.useGlobalTarget||Tg(l,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(a=>{!pk(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",u=>mk(u,s),s)}),i}function yk(e){return e==="x"||e==="y"?yt[e]?null:(yt[e]=!0,()=>{yt[e]=!1}):yt.x||yt.y?null:(yt.x=yt.y=!0,()=>{yt.x=yt.y=!1})}const Ng=new Set(["width","height","top","left","right","bottom",...Gr]);let to;function vk(){to=void 0}const Lt={now:()=>(to===void 0&&Lt.set(Ce.isProcessing||h2.useManualTiming?Ce.timestamp:performance.now()),to),set:e=>{to=e,queueMicrotask(vk)}};function sd(e,t){e.indexOf(t)===-1&&e.push(t)}function id(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class od{constructor(){this.subscriptions=[]}add(t){return sd(this.subscriptions,t),()=>id(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function jg(e,t){return t?e*(1e3/t):0}const lh=30,xk=e=>!isNaN(parseFloat(e));class wk{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Lt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xk(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new od);const r=this.events[t].add(n);return t==="change"?()=>{r(),ne.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>lh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,lh);return jg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(e,t){return new wk(e,t)}function kk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ei(n))}function Sk(e,t){const n=ua(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=L2(i[o]);kk(e,o,a)}}function bk(e){return!!(Me(e)&&e.add)}function hu(e,t){const n=e.getValue("willChange");if(bk(n))return n.add(t)}function Pg(e){return e.props[ig]}const _g=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ck=1e-7,Ek=12;function Tk(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=_g(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Ck&&++a<Ek);return o}function di(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>Tk(i,0,1,e,n);return i=>i===0||i===1?i:_g(s(i),t,r)}const Rg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ag=e=>t=>1-e(1-t),Mg=di(.33,1.53,.69,.99),ad=Ag(Mg),Lg=Rg(ad),Dg=e=>(e*=2)<1?.5*ad(e):.5*(2-Math.pow(2,-10*(e-1))),ld=e=>1-Math.sin(Math.acos(e)),Og=Ag(ld),zg=Rg(ld),Vg=e=>/^0[^.\s]+$/u.test(e);function Nk(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vg(e):!0}const Ns=e=>Math.round(e*1e5)/1e5,ud=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jk(e){return e==null}const Pk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cd=(e,t)=>n=>!!(typeof n=="string"&&Pk.test(n)&&n.startsWith(e)||t&&!jk(n)&&Object.prototype.hasOwnProperty.call(n,t)),Bg=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(ud);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},_k=e=>Gt(0,255,e),Qa={...Yr,transform:e=>Math.round(_k(e))},Wn={test:cd("rgb","red"),parse:Bg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qa.transform(e)+", "+Qa.transform(t)+", "+Qa.transform(n)+", "+Ns(Js.transform(r))+")"};function Rk(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const pu={test:cd("#"),parse:Rk,transform:Wn.transform},Sr={test:cd("hsl","hue"),parse:Bg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mt.transform(Ns(t))+", "+Mt.transform(Ns(n))+", "+Ns(Js.transform(r))+")"},Re={test:e=>Wn.test(e)||pu.test(e)||Sr.test(e),parse:e=>Wn.test(e)?Wn.parse(e):Sr.test(e)?Sr.parse(e):pu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Wn.transform(e):Sr.transform(e)},Ak=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mk(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ud))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ak))===null||n===void 0?void 0:n.length)||0)>0}const Ig="number",Fg="color",Lk="var",Dk="var(",uh="${}",Ok=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ti(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Ok,l=>(Re.test(l)?(r.color.push(i),s.push(Fg),n.push(Re.parse(l))):l.startsWith(Dk)?(r.var.push(i),s.push(Lk),n.push(l)):(r.number.push(i),s.push(Ig),n.push(parseFloat(l))),++i,uh)).split(uh);return{values:n,split:a,indexes:r,types:s}}function Ug(e){return ti(e).values}function $g(e){const{split:t,types:n}=ti(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const a=n[o];a===Ig?i+=Ns(s[o]):a===Fg?i+=Re.transform(s[o]):i+=s[o]}return i}}const zk=e=>typeof e=="number"?0:e;function Vk(e){const t=Ug(e);return $g(e)(t.map(zk))}const En={test:Mk,parse:Ug,createTransformer:$g,getAnimatableNone:Vk},Bk=new Set(["brightness","contrast","saturate","opacity"]);function Ik(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ud)||[];if(!r)return e;const s=n.replace(r,"");let i=Bk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Fk=/\b([a-z-]*)\(.*?\)/gu,mu={...En,getAnimatableNone:e=>{const t=e.match(Fk);return t?t.map(Ik).join(" "):e}},Uk={...Gc,color:Re,backgroundColor:Re,outlineColor:Re,fill:Re,stroke:Re,borderColor:Re,borderTopColor:Re,borderRightColor:Re,borderBottomColor:Re,borderLeftColor:Re,filter:mu,WebkitFilter:mu},dd=e=>Uk[e];function Wg(e,t){let n=dd(e);return n!==mu&&(n=En),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $k=new Set(["auto","none","0"]);function Wk(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!$k.has(i)&&ti(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Wg(n,s)}const ch=e=>e===Yr||e===z,dh=(e,t)=>parseFloat(e.split(", ")[t]),fh=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return dh(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?dh(i[1],e):0}},Hk=new Set(["x","y","z"]),Kk=Gr.filter(e=>!Hk.has(e));function qk(e){const t=[];return Kk.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:fh(4,13),y:fh(5,14)};Fr.translateX=Fr.x;Fr.translateY=Fr.y;const Gn=new Set;let gu=!1,yu=!1;function Hg(){if(yu){const e=Array.from(Gn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=qk(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}yu=!1,gu=!1,Gn.forEach(e=>e.complete()),Gn.clear()}function Kg(){Gn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yu=!0)})}function Gk(){Kg(),Hg()}class fd{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gn.add(this),gu||(gu=!0,ne.read(Kg),ne.resolveKeyframes(Hg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const qg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Yk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qk(e){const t=Yk.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Gg(e,t,n=1){const[r,s]=Qk(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return qg(o)?parseFloat(o):o}return qc(s)?Gg(s,t,n+1):s}const Yg=e=>t=>t.test(e),Xk={test:e=>e==="auto",parse:e=>e},Qg=[Yr,z,Mt,nn,I2,B2,Xk],hh=e=>Qg.find(Yg(e));class Xg extends fd{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),qc(u))){const d=Gg(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ng.has(r)||t.length!==2)return;const[s,i]=t,o=hh(s),a=hh(i);if(o!==a)if(ch(o)&&ch(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)Nk(t[s])&&r.push(s);r.length&&Wk(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=Fr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const ph=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(En.test(e)||e==="0")&&!e.startsWith("url("));function Zk(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Jk(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ph(s,t),a=ph(i,t);return!o||!a?!1:Zk(e)||(n==="spring"||td(n))&&r}const eS=e=>e!==null;function ca(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(eS),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const tS=40;class Zg{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Lt.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>tS?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gk(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Lt.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Jk(t,r,s,i))if(o)this.options.duration=0;else{l&&l(ca(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const oe=(e,t,n)=>e+(t-e)*n;function Xa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Xa(l,a,e+1/3),i=Xa(l,a,e),o=Xa(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Oo(e,t){return n=>n>0?t:e}const Za=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},rS=[pu,Wn,Sr],sS=e=>rS.find(t=>t.test(e));function mh(e){const t=sS(e);if(!t)return!1;let n=t.parse(e);return t===Sr&&(n=nS(n)),n}const gh=(e,t)=>{const n=mh(e),r=mh(t);if(!n||!r)return Oo(e,t);const s={...n};return i=>(s.red=Za(n.red,r.red,i),s.green=Za(n.green,r.green,i),s.blue=Za(n.blue,r.blue,i),s.alpha=oe(n.alpha,r.alpha,i),Wn.transform(s))},iS=(e,t)=>n=>t(e(n)),fi=(...e)=>e.reduce(iS),vu=new Set(["none","hidden"]);function oS(e,t){return vu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function aS(e,t){return n=>oe(e,t,n)}function hd(e){return typeof e=="number"?aS:typeof e=="string"?qc(e)?Oo:Re.test(e)?gh:cS:Array.isArray(e)?Jg:typeof e=="object"?Re.test(e)?gh:lS:Oo}function Jg(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>hd(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function lS(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=hd(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function uS(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[i]=l,s[o]++}return r}const cS=(e,t)=>{const n=En.createTransformer(t),r=ti(e),s=ti(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?vu.has(e)&&!s.values.length||vu.has(t)&&!r.values.length?oS(e,t):fi(Jg(uS(r,s),s.values),n):Oo(e,t)};function ey(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?oe(e,t,n):hd(e)(e,t)}const dS=5;function ty(e,t,n){const r=Math.max(t-dS,0);return jg(n-e(r),t-r)}const ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ja=.001;function fS({duration:e=ce.duration,bounce:t=ce.bounce,velocity:n=ce.velocity,mass:r=ce.mass}){let s,i,o=1-t;o=Gt(ce.minDamping,ce.maxDamping,o),e=Gt(ce.minDuration,ce.maxDuration,$t(e)),o<1?(s=u=>{const d=u*o,f=d*e,h=d-n,p=xu(u,o),w=Math.exp(-f);return Ja-h/p*w},i=u=>{const f=u*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,w=Math.exp(-f),v=xu(Math.pow(u,2),o);return(-s(u)+Ja>0?-1:1)*((h-p)*w)/v}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ja+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=pS(s,i,a);if(e=Ut(e),isNaN(l))return{stiffness:ce.stiffness,damping:ce.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const hS=12;function pS(e,t,n){let r=n;for(let s=1;s<hS;s++)r=r-e(r)/t(r);return r}function xu(e,t){return e*Math.sqrt(1-t*t)}const mS=["duration","bounce"],gS=["stiffness","damping","mass"];function yh(e,t){return t.some(n=>e[n]!==void 0)}function yS(e){let t={velocity:ce.velocity,stiffness:ce.stiffness,damping:ce.damping,mass:ce.mass,isResolvedFromDuration:!1,...e};if(!yh(e,gS)&&yh(e,mS))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Gt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ce.mass,stiffness:s,damping:i}}else{const n=fS(e);t={...t,...n,mass:ce.mass},t.isResolvedFromDuration=!0}return t}function ny(e=ce.visualDuration,t=ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=yS({...n,velocity:-$t(n.velocity||0)}),w=h||0,v=u/(2*Math.sqrt(l*d)),S=o-i,m=$t(Math.sqrt(l/d)),g=Math.abs(S)<5;r||(r=g?ce.restSpeed.granular:ce.restSpeed.default),s||(s=g?ce.restDelta.granular:ce.restDelta.default);let y;if(v<1){const k=xu(m,v);y=C=>{const E=Math.exp(-v*m*C);return o-E*((w+v*m*S)/k*Math.sin(k*C)+S*Math.cos(k*C))}}else if(v===1)y=k=>o-Math.exp(-m*k)*(S+(w+m*S)*k);else{const k=m*Math.sqrt(v*v-1);y=C=>{const E=Math.exp(-v*m*C),T=Math.min(k*C,300);return o-E*((w+v*m*S)*Math.sinh(T)+k*S*Math.cosh(T))/k}}const b={calculatedDuration:p&&f||null,next:k=>{const C=y(k);if(p)a.done=k>=f;else{let E=0;v<1&&(E=k===0?Ut(w):ty(y,k,C));const T=Math.abs(E)<=r,O=Math.abs(o-C)<=s;a.done=T&&O}return a.value=a.done?o:C,a},toString:()=>{const k=Math.min(wg(b),du),C=kg(E=>b.next(k*E).value,k,30);return k+"ms "+C}};return b}function vh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=T=>a!==void 0&&T<a||l!==void 0&&T>l,w=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const S=f+v,m=o===void 0?S:o(S);m!==S&&(v=m-f);const g=T=>-v*Math.exp(-T/r),y=T=>m+g(T),b=T=>{const O=g(T),L=y(T);h.done=Math.abs(O)<=u,h.value=h.done?m:L};let k,C;const E=T=>{p(h.value)&&(k=T,C=ny({keyframes:[h.value,w(h.value)],velocity:ty(y,T,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:T=>{let O=!1;return!C&&k===void 0&&(O=!0,b(T),E(T)),k!==void 0&&T>=k?C.next(T-k):(!O&&b(T),h)}}}const vS=di(.42,0,1,1),xS=di(0,0,.58,1),ry=di(.42,0,.58,1),wS=e=>Array.isArray(e)&&typeof e[0]!="number",kS={linear:Xe,easeIn:vS,easeInOut:ry,easeOut:xS,circIn:ld,circInOut:zg,circOut:Og,backIn:ad,backInOut:Lg,backOut:Mg,anticipate:Dg},xh=e=>{if(nd(e)){eg(e.length===4);const[t,n,r,s]=e;return di(t,n,r,s)}else if(typeof e=="string")return kS[e];return e};function SS(e,t,n){const r=[],s=n||ey,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=fi(l,a)}r.push(a)}return r}function bS(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(eg(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=SS(t,r,s),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Br(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Gt(e[0],e[i-1],d)):u}function CS(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Br(0,t,r);e.push(oe(n,1,s))}}function ES(e){const t=[0];return CS(t,e.length-1),t}function TS(e,t){return e.map(n=>n*t)}function NS(e,t){return e.map(()=>t||ry).splice(0,e.length-1)}function zo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=wS(r)?r.map(xh):xh(r),i={done:!1,value:t[0]},o=TS(n&&n.length===t.length?n:ES(t),e),a=bS(o,t,{ease:Array.isArray(s)?s:NS(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const jS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ne.update(t,!0),stop:()=>Cn(t),now:()=>Ce.isProcessing?Ce.timestamp:Lt.now()}},PS={decay:vh,inertia:vh,tween:zo,keyframes:zo,spring:ny},_S=e=>e/100;class pd extends Zg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||fd,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=td(n)?n:PS[n]||zo;let l,u;a!==zo&&typeof t[0]!="number"&&(l=fi(_S,ey(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=wg(d));const{calculatedDuration:f}=d,h=f+s,p=h*(r+1)-s;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:w,repeatDelay:v,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let y=this.currentTime,b=i;if(p){const T=Math.min(this.currentTime,d)/f;let O=Math.floor(T),L=T%1;!L&&T>=1&&(L=1),L===1&&O--,O=Math.min(O,p+1),!!(O%2)&&(w==="reverse"?(L=1-L,v&&(L-=v/f)):w==="mirror"&&(b=o)),y=Gt(0,1,L)*f}const k=g?{done:!1,value:l[0]}:b.next(y);a&&(k.value=a(k.value));let{done:C}=k;!g&&u!==null&&(C=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&s!==void 0&&(k.value=ca(l,this.options,s)),S&&S(k.value),E&&this.finish(),k}get duration(){const{resolved:t}=this;return t?$t(t.calculatedDuration):0}get time(){return $t(this.currentTime)}set time(t){t=Ut(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=$t(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=jS,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const RS=new Set(["opacity","clipPath","filter","transform"]);function AS(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=bg(a,s);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const MS=Ic(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Vo=10,LS=2e4;function DS(e){return td(e.type)||e.type==="spring"||!Sg(e.ease)}function OS(e,t){const n=new pd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<LS;)r=n.sample(i),s.push(r.value),i+=Vo;return{times:void 0,keyframes:s,duration:i-Vo,ease:"linear"}}const sy={anticipate:Dg,backInOut:Lg,circInOut:zg};function zS(e){return e in sy}class wh extends Zg{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new Xg(i,(o,a)=>this.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Do()&&zS(i)&&(i=sy[i]),DS(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:w,...v}=this.options,S=OS(t,v);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,s=S.times,i=S.ease,o="keyframes"}const d=AS(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(sh(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(ca(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return $t(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return $t(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ut(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xe;const{animation:r}=n;sh(r,t)}return Xe}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...p}=this.options,w=new pd({...p,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),v=Ut(this.time);u.setWithVelocity(w.sample(v-Vo).value,w.sample(v).value,Vo)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return MS()&&r&&RS.has(r)&&!l&&!u&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const VS={type:"spring",stiffness:500,damping:25,restSpeed:10},BS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),IS={type:"keyframes",duration:.8},FS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},US=(e,{keyframes:t})=>t.length>2?IS:rr.has(e)?e.startsWith("scale")?BS(t[1]):VS:FS;function $S({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const md=(e,t,n,r={},s,i)=>o=>{const a=ed(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Ut(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};$S(a)||(d={...d,...US(e,d)}),d.duration&&(d.duration=Ut(d.duration)),d.repeatDelay&&(d.repeatDelay=Ut(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const h=ca(d.keyframes,a);if(h!==void 0)return ne.update(()=>{d.onUpdate(h),d.onComplete()}),new lk([])}return!i&&wh.supports(d)?new wh(d):new pd(d)};function WS({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iy(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in l){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=l[f];if(p===void 0||d&&WS(d,f))continue;const w={delay:n,...ed(o||{},f)};let v=!1;if(window.MotionHandoffAnimation){const m=Pg(e);if(m){const g=window.MotionHandoffAnimation(m,f,ne);g!==null&&(w.startTime=g,v=!0)}}hu(e,f),h.start(md(f,h,p,e.shouldReduceMotion&&Ng.has(f)?{type:!1}:w,e,v));const S=h.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{ne.update(()=>{a&&Sk(e,a)})}),u}function wu(e,t,n={}){var r;const s=ua(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(iy(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return HS(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,d]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function HS(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(KS).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(wu(u,t,{...i,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function KS(e,t){return e.sortNodePosition(t)}function qS(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>wu(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=wu(e,t,n);else{const s=typeof t=="function"?ua(e,t,n.custom):t;r=Promise.all(iy(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const GS=Uc.length;function oy(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oy(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<GS;n++){const r=Uc[n],s=e.props[r];(Zs(s)||s===!1)&&(t[r]=s)}return t}const YS=[...Fc].reverse(),QS=Fc.length;function XS(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qS(e,n,r)))}function ZS(e){let t=XS(e),n=kh(),r=!0;const s=l=>(u,d)=>{var f;const h=ua(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:w,...v}=h;u={...u,...v,...w}}return u};function i(l){t=l(e)}function o(l){const{props:u}=e,d=oy(e.parent)||{},f=[],h=new Set;let p={},w=1/0;for(let S=0;S<QS;S++){const m=YS[S],g=n[m],y=u[m]!==void 0?u[m]:d[m],b=Zs(y),k=m===l?g.isActive:null;k===!1&&(w=S);let C=y===d[m]&&y!==u[m]&&b;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),g.protectedKeys={...p},!g.isActive&&k===null||!y&&!g.prevProp||aa(y)||typeof y=="boolean")continue;const E=JS(g.prevProp,y);let T=E||m===l&&g.isActive&&!C&&b||S>w&&b,O=!1;const L=Array.isArray(y)?y:[y];let G=L.reduce(s(m),{});k===!1&&(G={});const{prevResolvedValues:fe={}}=g,Ne={...fe,...G},Be=F=>{T=!0,h.has(F)&&(O=!0,h.delete(F)),g.needsAnimating[F]=!0;const P=e.getValue(F);P&&(P.liveStyle=!1)};for(const F in Ne){const P=G[F],_=fe[F];if(p.hasOwnProperty(F))continue;let M=!1;cu(P)&&cu(_)?M=!xg(P,_):M=P!==_,M?P!=null?Be(F):h.add(F):P!==void 0&&h.has(F)?Be(F):g.protectedKeys[F]=!0}g.prevProp=y,g.prevResolvedValues=G,g.isActive&&(p={...p,...G}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(C&&E)||O)&&f.push(...L.map(F=>({animation:F,options:{type:m}})))}if(h.size){const S={};h.forEach(m=>{const g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),S[m]=g??null}),f.push({animation:S})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=kh(),r=!0}}}function JS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xg(t,e):!1}function Dn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kh(){return{animate:Dn(!0),whileInView:Dn(),whileHover:Dn(),whileTap:Dn(),whileDrag:Dn(),whileFocus:Dn(),exit:Dn()}}class _n{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eb extends _n{constructor(t){super(t),t.animationState||(t.animationState=ZS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();aa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let tb=0;class nb extends _n{constructor(){super(...arguments),this.id=tb++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const rb={animation:{Feature:eb},exit:{Feature:nb}};function ni(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hi(e){return{point:{x:e.pageX,y:e.pageY}}}const sb=e=>t=>rd(t)&&e(t,hi(t));function js(e,t,n,r){return ni(e,t,sb(n),r)}const Sh=(e,t)=>Math.abs(e-t);function ib(e,t){const n=Sh(e.x,t.x),r=Sh(e.y,t.y);return Math.sqrt(n**2+r**2)}class ay{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=tl(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=ib(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:w}=f,{timestamp:v}=Ce;this.history.push({...w,timestamp:v});const{onStart:S,onMove:m}=this.handlers;h||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=el(h,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:w,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=tl(f.type==="pointercancel"?this.lastMoveEventInfo:el(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,S),w&&w(f,S)},!rd(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=hi(t),a=el(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ce;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,tl(a,this.history)),this.removeListeners=fi(js(this.contextWindow,"pointermove",this.handlePointerMove),js(this.contextWindow,"pointerup",this.handlePointerUp),js(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cn(this.updatePoint)}}function el(e,t){return t?{point:t(e.point)}:e}function bh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tl({point:e},t){return{point:e,delta:bh(e,ly(t)),offset:bh(e,ob(t)),velocity:ab(t,.1)}}function ob(e){return e[0]}function ly(e){return e[e.length-1]}function ab(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=ly(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Ut(t)));)n--;if(!r)return{x:0,y:0};const i=$t(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const uy=1e-4,lb=1-uy,ub=1+uy,cy=.01,cb=0-cy,db=0+cy;function Je(e){return e.max-e.min}function fb(e,t,n){return Math.abs(e-t)<=n}function Ch(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=Je(n)/Je(t),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lb&&e.scale<=ub||isNaN(e.scale))&&(e.scale=1),(e.translate>=cb&&e.translate<=db||isNaN(e.translate))&&(e.translate=0)}function Ps(e,t,n,r){Ch(e.x,t.x,n.x,r?r.originX:void 0),Ch(e.y,t.y,n.y,r?r.originY:void 0)}function Eh(e,t,n){e.min=n.min+t.min,e.max=e.min+Je(t)}function hb(e,t,n){Eh(e.x,t.x,n.x),Eh(e.y,t.y,n.y)}function Th(e,t,n){e.min=t.min-n.min,e.max=e.min+Je(t)}function _s(e,t,n){Th(e.x,t.x,n.x),Th(e.y,t.y,n.y)}function pb(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?oe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function Nh(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mb(e,{top:t,left:n,bottom:r,right:s}){return{x:Nh(e.x,n,s),y:Nh(e.y,t,r)}}function jh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function gb(e,t){return{x:jh(e.x,t.x),y:jh(e.y,t.y)}}function yb(e,t){let n=.5;const r=Je(e),s=Je(t);return s>r?n=Br(t.min,t.max-r,e.min):r>s&&(n=Br(e.min,e.max-s,t.min)),Gt(0,1,n)}function vb(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ku=.35;function xb(e=ku){return e===!1?e=0:e===!0&&(e=ku),{x:Ph(e,"left","right"),y:Ph(e,"top","bottom")}}function Ph(e,t,n){return{min:_h(e,t),max:_h(e,n)}}function _h(e,t){return typeof e=="number"?e:e[t]||0}const Rh=()=>({translate:0,scale:1,origin:0,originPoint:0}),br=()=>({x:Rh(),y:Rh()}),Ah=()=>({min:0,max:0}),he=()=>({x:Ah(),y:Ah()});function st(e){return[e("x"),e("y")]}function dy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function wb({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function kb(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function nl(e){return e===void 0||e===1}function Su({scale:e,scaleX:t,scaleY:n}){return!nl(e)||!nl(t)||!nl(n)}function Vn(e){return Su(e)||fy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fy(e){return Mh(e.x)||Mh(e.y)}function Mh(e){return e&&e!=="0%"}function Bo(e,t,n){const r=e-n,s=t*r;return n+s}function Lh(e,t,n,r,s){return s!==void 0&&(e=Bo(e,s,r)),Bo(e,n,r)+t}function bu(e,t=0,n=1,r,s){e.min=Lh(e.min,t,n,r,s),e.max=Lh(e.max,t,n,r,s)}function hy(e,{x:t,y:n}){bu(e.x,t.translate,t.scale,t.originPoint),bu(e.y,n.translate,n.scale,n.originPoint)}const Dh=.999999999999,Oh=1.0000000000001;function Sb(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Er(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,hy(e,o)),r&&Vn(i.latestValues)&&Er(e,i.latestValues))}t.x<Oh&&t.x>Dh&&(t.x=1),t.y<Oh&&t.y>Dh&&(t.y=1)}function Cr(e,t){e.min=e.min+t,e.max=e.max+t}function zh(e,t,n,r,s=.5){const i=oe(e.min,e.max,s);bu(e,t,n,i,r)}function Er(e,t){zh(e.x,t.x,t.scaleX,t.scale,t.originX),zh(e.y,t.y,t.scaleY,t.scale,t.originY)}function py(e,t){return dy(kb(e.getBoundingClientRect(),t))}function bb(e,t,n){const r=py(e,n),{scroll:s}=t;return s&&(Cr(r.x,s.offset.x),Cr(r.y,s.offset.y)),r}const my=({current:e})=>e?e.ownerDocument.defaultView:null,Cb=new WeakMap;class Eb{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hi(d).point)},i=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:w}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yk(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),st(S=>{let m=this.getAxisMotionValue(S).get()||0;if(Mt.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const y=g.layout.layoutBox[S];y&&(m=Je(y)*(parseFloat(m)/100))}}this.originPoint[S]=m}),w&&ne.postRender(()=>w(d,f)),hu(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:w,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:S}=f;if(p&&this.currentDirection===null){this.currentDirection=Tb(S),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>st(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ay(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:my(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ne.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!zi(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=pb(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&kr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=mb(s.layoutBox,n):this.constraints=!1,this.elastic=xb(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&st(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=vb(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!kr(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=bb(r,s.root,this.visualElement.getTransformPagePoint());let o=gb(s.layout.layoutBox,i);if(n){const a=n(wb(o));this.hasMutatedConstraints=!!a,a&&(o=dy(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=st(d=>{if(!zi(d,n,this.currentDirection))return;let f=l&&l[d]||{};o&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,w)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return hu(this.visualElement,t),r.start(md(t,r,0,n,this.visualElement,!1))}stopAnimation(){st(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){st(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){st(n=>{const{drag:r}=this.getProps();if(!zi(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-oe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!kr(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};st(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=yb({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),st(o=>{if(!zi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(oe(l,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;Cb.set(this.visualElement,this);const t=this.visualElement.current,n=js(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();kr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ne.read(r);const o=ni(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(st(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=ku,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function zi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Tb(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Nb extends _n{constructor(t){super(t),this.removeGroupControls=Xe,this.removeListeners=Xe,this.controls=new Eb(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Vh=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class jb extends _n{constructor(){super(...arguments),this.removePointerDownListener=Xe}onPointerDown(t){this.session=new ay(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:my(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Vh(t),onStart:Vh(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ne.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=js(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const no={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const as={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=Bh(e,t.target.x),r=Bh(e,t.target.y);return`${n}% ${r}%`}},Pb={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=En.parse(e);if(s.length>5)return r;const i=En.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=oe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),i(s)}};class _b extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Q2(Rb),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),no.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ne.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Wc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gy(e){const[t,n]=Z0(),r=x.useContext(Oc);return c.jsx(_b,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(og),isPresent:t,safeToRemove:n})}const Rb={borderRadius:{...as,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:as,borderTopRightRadius:as,borderBottomLeftRadius:as,borderBottomRightRadius:as,boxShadow:Pb};function Ab(e,t,n){const r=Me(e)?e:ei(e);return r.start(md("",r,t,n)),r.animation}function Mb(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Lb=(e,t)=>e.depth-t.depth;class Db{constructor(){this.children=[],this.isDirty=!1}add(t){sd(this.children,t),this.isDirty=!0}remove(t){id(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lb),this.isDirty=!1,this.children.forEach(t)}}function Ob(e,t){const n=Lt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Cn(r),e(i-t))};return ne.read(r,!0),()=>Cn(r)}const yy=["TopLeft","TopRight","BottomLeft","BottomRight"],zb=yy.length,Ih=e=>typeof e=="string"?parseFloat(e):e,Fh=e=>typeof e=="number"||z.test(e);function Vb(e,t,n,r,s,i){s?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,Bb(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,Ib(r))):i&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<zb;o++){const a=`border${yy[o]}Radius`;let l=Uh(t,a),u=Uh(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Fh(l)===Fh(u)?(e[a]=Math.max(oe(Ih(l),Ih(u),r),0),(Mt.test(u)||Mt.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=oe(t.rotate||0,n.rotate||0,r))}function Uh(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Bb=vy(0,.5,Og),Ib=vy(.5,.95,Xe);function vy(e,t,n){return r=>r<e?0:r>t?1:n(Br(e,t,r))}function $h(e,t){e.min=t.min,e.max=t.max}function rt(e,t){$h(e.x,t.x),$h(e.y,t.y)}function Wh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hh(e,t,n,r,s){return e-=t,e=Bo(e,1/n,r),s!==void 0&&(e=Bo(e,1/s,r)),e}function Fb(e,t=0,n=1,r=.5,s,i=e,o=e){if(Mt.test(t)&&(t=parseFloat(t),t=oe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=oe(i.min,i.max,r);e===i&&(a-=t),e.min=Hh(e.min,t,n,a,s),e.max=Hh(e.max,t,n,a,s)}function Kh(e,t,[n,r,s],i,o){Fb(e,t[n],t[r],t[s],t.scale,i,o)}const Ub=["x","scaleX","originX"],$b=["y","scaleY","originY"];function qh(e,t,n,r){Kh(e.x,t,Ub,n?n.x:void 0,r?r.x:void 0),Kh(e.y,t,$b,n?n.y:void 0,r?r.y:void 0)}function Gh(e){return e.translate===0&&e.scale===1}function xy(e){return Gh(e.x)&&Gh(e.y)}function Yh(e,t){return e.min===t.min&&e.max===t.max}function Wb(e,t){return Yh(e.x,t.x)&&Yh(e.y,t.y)}function Qh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wy(e,t){return Qh(e.x,t.x)&&Qh(e.y,t.y)}function Xh(e){return Je(e.x)/Je(e.y)}function Zh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Hb{constructor(){this.members=[]}add(t){sd(this.members,t),t.scheduleRender()}remove(t){if(id(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kb(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:p,skewY:w}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),w&&(r+=`skewY(${w}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Bn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ms=typeof window<"u"&&window.MotionDebug!==void 0,rl=["","X","Y","Z"],qb={visibility:"hidden"},Jh=1e3;let Gb=0;function sl(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ky(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Pg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ne,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ky(r)}function Sy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Gb++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ms&&(Bn.totalNodes=Bn.resolvedTargetDeltas=Bn.recalculatedProjection=0),this.nodes.forEach(Xb),this.nodes.forEach(n5),this.nodes.forEach(r5),this.nodes.forEach(Zb),ms&&window.MotionDebug.record(Bn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Db)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new od),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Mb(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Ob(h,250),no.hasAnimatedSinceResize&&(no.hasAnimatedSinceResize=!1,this.nodes.forEach(tp))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||l5,{onLayoutAnimationStart:S,onLayoutAnimationComplete:m}=d.getProps(),g=!this.targetLayout||!wy(this.targetLayout,w)||p,y=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const b={...ed(v,"layout"),onPlay:S,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else h||tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s5),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ky(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ep);return}this.isUpdating||this.nodes.forEach(e5),this.isUpdating=!1,this.nodes.forEach(t5),this.nodes.forEach(Yb),this.nodes.forEach(Qb),this.clearAllSnapshots();const a=Lt.now();Ce.delta=Gt(0,1e3/60,a-Ce.timestamp),Ce.timestamp=a,Ce.isProcessing=!0,Ga.update.process(Ce),Ga.preRender.process(Ce),Ga.render.process(Ce),Ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Wc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Jb),this.sharedNodes.forEach(i5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=he(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!xy(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||Vn(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),u5(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return he();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(c5))){const{scroll:d}=this.root;d&&(Cr(l.x,d.offset.x),Cr(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=he();if(rt(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&rt(l,o),Cr(l.x,f.offset.x),Cr(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=he();rt(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Er(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Vn(d.latestValues)&&Er(l,d.latestValues)}return Vn(this.latestValues)&&Er(l,this.latestValues),l}removeTransform(o){const a=he();rt(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Vn(u.latestValues))continue;Su(u.latestValues)&&u.updateSnapshot();const d=he(),f=u.measurePageBox();rt(d,f),qh(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Vn(this.latestValues)&&qh(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=Ce.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=he(),this.relativeTargetOrigin=he(),_s(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=he(),this.targetWithTransforms=he()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hb(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rt(this.target,this.layout.layoutBox),hy(this.target,this.targetDelta)):rt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=he(),this.relativeTargetOrigin=he(),_s(this.relativeTargetOrigin,this.target,p.target),rt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ms&&Bn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Su(this.parent.latestValues)||fy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Ce.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;rt(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;Sb(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=he());const{target:w}=a;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wh(this.prevProjectionDelta.x,this.projectionDelta.x),Wh(this.prevProjectionDelta.y,this.projectionDelta.y)),Ps(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!Zh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Zh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w)),ms&&Bn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=br(),this.projectionDelta=br(),this.projectionDeltaWithTransform=br()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=br();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=he(),p=l?l.source:void 0,w=this.layout?this.layout.source:void 0,v=p!==w,S=this.getStack(),m=!S||S.members.length<=1,g=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(a5));this.animationProgress=0;let y;this.mixTargetDelta=b=>{const k=b/1e3;np(f.x,o.x,k),np(f.y,o.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_s(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o5(this.relativeTarget,this.relativeTargetOrigin,h,k),y&&Wb(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=he()),rt(y,this.relativeTarget)),v&&(this.animationValues=d,Vb(d,u,this.latestValues,k,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ne.update(()=>{no.hasAnimatedSinceResize=!0,this.currentAnimation=Ab(0,Jh,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&by(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||he();const f=Je(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Je(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}rt(a,l),Er(a,d),Ps(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Hb),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&sl("z",o,u,this.animationValues);for(let d=0;d<rl.length;d++)sl(`rotate${rl[d]}`,o,u,this.animationValues),sl(`skew${rl[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qb;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=eo(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=eo(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Vn(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Kb(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:p,y:w}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${w.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in Lo){if(h[v]===void 0)continue;const{correct:S,applyTo:m}=Lo[v],g=u.transform==="none"?h[v]:S(h[v],f);if(m){const y=m.length;for(let b=0;b<y;b++)u[m[b]]=g}else u[v]=g}return this.options.layoutId&&(u.pointerEvents=f===this?eo(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ep),this.root.sharedNodes.clear()}}}function Yb(e){e.updateLayout()}function Qb(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?st(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],p=Je(h);h.min=r[f].min,h.max=h.min+p}):by(i,n.layoutBox,r)&&st(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],p=Je(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=br();Ps(a,r,n.layoutBox);const l=br();o?Ps(l,e.applyTransform(s,!0),n.measuredBox):Ps(l,r,n.layoutBox);const u=!xy(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const w=he();_s(w,n.layoutBox,h.layoutBox);const v=he();_s(v,r,p.layoutBox),wy(w,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=w,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Xb(e){ms&&Bn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Zb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Jb(e){e.clearSnapshot()}function ep(e){e.clearMeasurements()}function e5(e){e.isLayoutDirty=!1}function t5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n5(e){e.resolveTargetDelta()}function r5(e){e.calcProjection()}function s5(e){e.resetSkewAndRotation()}function i5(e){e.removeLeadSnapshot()}function np(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rp(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function o5(e,t,n,r){rp(e.x,t.x,n.x,r),rp(e.y,t.y,n.y,r)}function a5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const l5={duration:.45,ease:[.4,0,.1,1]},sp=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ip=sp("applewebkit/")&&!sp("chrome/")?Math.round:Xe;function op(e){e.min=ip(e.min),e.max=ip(e.max)}function u5(e){op(e.x),op(e.y)}function by(e,t,n){return e==="position"||e==="preserve-aspect"&&!fb(Xh(t),Xh(n),.2)}function c5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d5=Sy({attachResizeListener:(e,t)=>ni(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),il={current:void 0},Cy=Sy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!il.current){const e=new d5({});e.mount(window),e.setOptions({layoutScroll:!0}),il.current=e}return il.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),f5={pan:{Feature:jb},drag:{Feature:Nb,ProjectionNode:Cy,MeasureLayout:gy}};function ap(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ne.postRender(()=>i(t,hi(t)))}class h5 extends _n{mount(){const{current:t}=this.node;t&&(this.unmount=fk(t,n=>(ap(this.node,n,"Start"),r=>ap(this.node,r,"End"))))}unmount(){}}class p5 extends _n{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fi(ni(this.node.current,"focus",()=>this.onFocus()),ni(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function lp(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ne.postRender(()=>i(t,hi(t)))}class m5 extends _n{mount(){const{current:t}=this.node;t&&(this.unmount=gk(t,n=>(lp(this.node,n,"Start"),(r,{success:s})=>lp(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cu=new WeakMap,ol=new WeakMap,g5=e=>{const t=Cu.get(e.target);t&&t(e)},y5=e=>{e.forEach(g5)};function v5({root:e,...t}){const n=e||document;ol.has(n)||ol.set(n,{});const r=ol.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(y5,{root:e,...t})),r[s]}function x5(e,t,n){const r=v5(t);return Cu.set(e,n),r.observe(e),()=>{Cu.delete(e),r.unobserve(e)}}const w5={some:0,all:1};class k5 extends _n{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:w5[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(l)};return x5(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(S5(t,n))&&this.startObserver()}unmount(){}}function S5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const b5={inView:{Feature:k5},tap:{Feature:m5},focus:{Feature:p5},hover:{Feature:h5}},C5={layout:{ProjectionNode:Cy,MeasureLayout:gy}},Eu={current:null},Ey={current:!1};function E5(){if(Ey.current=!0,!!Bc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Eu.current=e.matches;e.addListener(t),t()}else Eu.current=!1}const T5=[...Qg,Re,En],N5=e=>T5.find(Yg(e)),up=new WeakMap;function j5(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Me(s))e.addValue(r,s);else if(Me(i))e.addValue(r,ei(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,ei(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const cp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class P5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Lt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ne.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=la(n),this.isVariantNode=sg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const w=h[p];l[p]!==void 0&&Me(w)&&w.set(l[p],!1)}}mount(t){this.current=t,up.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ey.current||E5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Eu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){up.delete(this.current),this.projection&&this.projection.unmount(),Cn(this.notifyUpdate),Cn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=rr.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ne.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ir){const n=Ir[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<cp.length;r++){const s=cp[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=j5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ei(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(qg(s)||Vg(s))?s=parseFloat(s):!N5(s)&&En.test(n)&&(s=Wg(t,n)),this.setBaseTarget(t,Me(s)?s.get():s)),Me(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Kc(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Me(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new od),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ty extends P5{constructor(){super(...arguments),this.KeyframeResolver=Xg}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _5(e){return window.getComputedStyle(e)}class R5 extends Ty{constructor(){super(...arguments),this.type="html",this.renderInstance=hg}readValueFromInstance(t,n){if(rr.has(n)){const r=dd(n);return r&&r.default||0}else{const r=_5(t),s=(cg(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return py(t,n)}build(t,n,r){Yc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Jc(t,n,r)}}class A5 extends Ty{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(rr.has(n)){const r=dd(n);return r&&r.default||0}return n=pg.has(n)?n:$c(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yg(t,n,r)}build(t,n,r){Qc(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){mg(t,n,r,s)}mount(t){this.isSVGTag=Zc(t.tagName),super.mount(t)}}const M5=(e,t)=>Hc(e)?new A5(t):new R5(t,{allowProjection:e!==x.Fragment}),L5=ik({...rb,...b5,...f5,...C5},M5),ye=w2(L5);/**
|
|
77
|
+
* @license lucide-react v0.462.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const D5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ny=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
82
|
+
* @license lucide-react v0.462.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/var O5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
87
|
+
* @license lucide-react v0.462.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const z5=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...O5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ny("lucide",s),...a},[...o.map(([u,d])=>x.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
92
|
+
* @license lucide-react v0.462.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const D=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(z5,{ref:i,iconNode:t,className:Ny(`lucide-${D5(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
|
|
97
|
+
* @license lucide-react v0.462.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const V5=D("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
102
|
+
* @license lucide-react v0.462.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Tu=D("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
107
|
+
* @license lucide-react v0.462.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const B5=D("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
112
|
+
* @license lucide-react v0.462.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const I5=D("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);/**
|
|
117
|
+
* @license lucide-react v0.462.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const dp=D("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
122
|
+
* @license lucide-react v0.462.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const F5=D("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
127
|
+
* @license lucide-react v0.462.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const U5=D("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
132
|
+
* @license lucide-react v0.462.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const da=D("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
137
|
+
* @license lucide-react v0.462.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const $5=D("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
142
|
+
* @license lucide-react v0.462.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const fp=D("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
147
|
+
* @license lucide-react v0.462.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const Nu=D("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
152
|
+
* @license lucide-react v0.462.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const hp=D("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
157
|
+
* @license lucide-react v0.462.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Io=D("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
162
|
+
* @license lucide-react v0.462.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const al=D("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
167
|
+
* @license lucide-react v0.462.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const W5=D("CloudDownload",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]);/**
|
|
172
|
+
* @license lucide-react v0.462.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const H5=D("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
177
|
+
* @license lucide-react v0.462.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const K5=D("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
182
|
+
* @license lucide-react v0.462.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const ju=D("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
187
|
+
* @license lucide-react v0.462.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const q5=D("EarOff",[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
|
|
192
|
+
* @license lucide-react v0.462.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const G5=D("Ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]);/**
|
|
197
|
+
* @license lucide-react v0.462.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Y5=D("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
202
|
+
* @license lucide-react v0.462.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const Q5=D("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
207
|
+
* @license lucide-react v0.462.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const X5=D("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
212
|
+
* @license lucide-react v0.462.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const pp=D("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
217
|
+
* @license lucide-react v0.462.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const Z5=D("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
222
|
+
* @license lucide-react v0.462.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const J5=D("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
227
|
+
* @license lucide-react v0.462.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const eC=D("GitMerge",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]);/**
|
|
232
|
+
* @license lucide-react v0.462.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Pu=D("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
237
|
+
* @license lucide-react v0.462.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const tC=D("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
242
|
+
* @license lucide-react v0.462.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const nC=D("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
247
|
+
* @license lucide-react v0.462.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const rC=D("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
252
|
+
* @license lucide-react v0.462.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const sC=D("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
257
|
+
* @license lucide-react v0.462.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const dn=D("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
262
|
+
* @license lucide-react v0.462.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const iC=D("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);/**
|
|
267
|
+
* @license lucide-react v0.462.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const mp=D("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
272
|
+
* @license lucide-react v0.462.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const fa=D("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
|
|
277
|
+
* @license lucide-react v0.462.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const ha=D("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
|
|
282
|
+
* @license lucide-react v0.462.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const gp=D("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
287
|
+
* @license lucide-react v0.462.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const oC=D("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
292
|
+
* @license lucide-react v0.462.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const jy=D("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
297
|
+
* @license lucide-react v0.462.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const aC=D("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
302
|
+
* @license lucide-react v0.462.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const yp=D("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
|
|
307
|
+
* @license lucide-react v0.462.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const Py=D("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
312
|
+
* @license lucide-react v0.462.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const lC=D("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
317
|
+
* @license lucide-react v0.462.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const uC=D("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/**
|
|
322
|
+
* @license lucide-react v0.462.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const _u=D("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
327
|
+
* @license lucide-react v0.462.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const cC=D("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
332
|
+
* @license lucide-react v0.462.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const Fo=D("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
337
|
+
* @license lucide-react v0.462.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const dC=D("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
342
|
+
* @license lucide-react v0.462.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const fC=D("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
347
|
+
* @license lucide-react v0.462.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const vp=D("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
352
|
+
* @license lucide-react v0.462.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const Rs=D("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
357
|
+
* @license lucide-react v0.462.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const hC=D("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
|
|
362
|
+
* @license lucide-react v0.462.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const pC=D("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
367
|
+
* @license lucide-react v0.462.0 - ISC
|
|
368
|
+
*
|
|
369
|
+
* This source code is licensed under the ISC license.
|
|
370
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
371
|
+
*/const mC=D("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
372
|
+
* @license lucide-react v0.462.0 - ISC
|
|
373
|
+
*
|
|
374
|
+
* This source code is licensed under the ISC license.
|
|
375
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
376
|
+
*/const gC=D("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]);/**
|
|
377
|
+
* @license lucide-react v0.462.0 - ISC
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the ISC license.
|
|
380
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
381
|
+
*/const ri=D("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),_y={welcome:{tagline:"Your AI Brain",title:"Must-b",sleeping:"Sleeping...",waking:"Waking up...",awake:"Awakening...",wakeBtn:"Wake Must-b",reconfigure:"Reconfigure",footer:"© 2026 Must-b — Auto Step Platform"},sidebar:{newChat:"New Chat",recentChats:"Recent Chats",platform:"Platform",system:"System",automations:"My Automations",activeWorkflows:"Active Workflows",products:"Products & Services",clients:"Client Management",integrations:"Integrations",logs:"Logs & Activity",settings:"Settings",logout:"Logout",poweredBy:"Powered by",deleteChat:"Delete Chat?",deleteConfirm:"This action cannot be undone.",cancel:"Cancel",delete:"Delete"},rightPanel:{agentRole:"Agent Role",hardware:"Hardware Score",model:"Active Model",connected:"Gateway Connected",rank:{master:"Master",planner:"Planner",worker:"Worker"}},workflow:{title:"Active Workflow",idle:"Idle — awaiting task",goal:"Goal",steps:{browse:"Opening browser",write:"Writing file",think:"Thinking",exec:"Executing command"}},dashboard:{placeholder:"Send a message to Must-b...",thinking:"Must-b is thinking..."},layout:{chats:"Chats",system:"System",openChats:"Open chat history",openSystem:"Open system panel",closePanel:"Close panel"},chat:{inputPlaceholder:"Ask Must-b anything…",listening:"Listening…",thoughtProcess:"Thought Process",saveAsSkill:"Save as Skill",skillSaved:"Skill saved to your library!",saving:"Saving…",retry:"Retry",save:"Save",guidance:"Guidance",errorBoundary:"Chat rendering error — reloading…"}},yC={welcome:{tagline:"Yapay Zeka Beyniniz",title:"Must-b",sleeping:"Uyuyor...",waking:"Uyandırılıyor...",awake:"Uyanıyor...",wakeBtn:"Must-b'yi Uyandır",reconfigure:"Yeniden Yapılandır",footer:"© 2026 Must-b — Auto Step Platform"},sidebar:{newChat:"Yeni Sohbet",recentChats:"Son Sohbetler",platform:"Platform",system:"Sistem",automations:"Otomasyonlarım",activeWorkflows:"Aktif İş Akışları",products:"Ürünler & Hizmetler",clients:"Müşteri Yönetimi",integrations:"Entegrasyonlar",logs:"Kayıtlar & Aktivite",settings:"Ayarlar",logout:"Çıkış",poweredBy:"Altyapısı:",deleteChat:"Sohbet Silinsin mi?",deleteConfirm:"Bu işlem geri alınamaz.",cancel:"İptal",delete:"Sil"},rightPanel:{agentRole:"Ajan Rolü",hardware:"Donanım Puanı",model:"Aktif Model",connected:"Gateway Bağlı",rank:{master:"Usta",planner:"Planlayıcı",worker:"İşçi"}},workflow:{title:"Aktif İş Akışı",idle:"Boşta — görev bekleniyor",goal:"Hedef",steps:{browse:"Tarayıcı açılıyor",write:"Dosya yazılıyor",think:"Düşünülüyor",exec:"Komut çalıştırılıyor"}},dashboard:{placeholder:"Must-b'ye bir mesaj gönderin...",thinking:"Must-b düşünüyor..."},layout:{chats:"Sohbetler",system:"Sistem",openChats:"Sohbet geçmişini aç",openSystem:"Sistem panelini aç",closePanel:"Paneli kapat"},chat:{inputPlaceholder:"Must-b'ye her şeyi sorun…",listening:"Dinleniyor…",thoughtProcess:"Düşünce Süreci",saveAsSkill:"Beceri Olarak Kaydet",skillSaved:"Beceri kütüphanenize kaydedildi!",saving:"Kaydediliyor…",retry:"Tekrar Dene",save:"Kaydet",guidance:"Rehberlik",errorBoundary:"Sohbet render hatası — yeniden yükleniyor…"}},vC={welcome:{tagline:"Ihr KI-Gehirn",title:"Must-b",sleeping:"Schläft...",waking:"Wird geweckt...",awake:"Erwacht...",wakeBtn:"Must-b wecken",reconfigure:"Neu konfigurieren",footer:"© 2026 Must-b — Auto Step Platform"},sidebar:{newChat:"Neuer Chat",recentChats:"Letzte Chats",platform:"Plattform",system:"System",automations:"Meine Automatisierungen",activeWorkflows:"Aktive Workflows",products:"Produkte & Dienste",clients:"Kundenverwaltung",integrations:"Integrationen",logs:"Protokolle & Aktivität",settings:"Einstellungen",logout:"Abmelden",poweredBy:"Betrieben von",deleteChat:"Chat löschen?",deleteConfirm:"Diese Aktion kann nicht rückgängig gemacht werden.",cancel:"Abbrechen",delete:"Löschen"},rightPanel:{agentRole:"Agentenrolle",hardware:"Hardware-Score",model:"Aktives Modell",connected:"Gateway verbunden",rank:{master:"Meister",planner:"Planer",worker:"Arbeiter"}},workflow:{title:"Aktiver Workflow",idle:"Leerlauf — wartet auf Aufgabe",goal:"Ziel",steps:{browse:"Browser wird geöffnet",write:"Datei wird geschrieben",think:"Wird nachgedacht",exec:"Befehl wird ausgeführt"}},dashboard:{placeholder:"Nachricht an Must-b senden...",thinking:"Must-b denkt nach..."},layout:{chats:"Chats",system:"System",openChats:"Chatverlauf öffnen",openSystem:"Systembereich öffnen",closePanel:"Bereich schließen"},chat:{inputPlaceholder:"Fragen Sie Must-b alles…",listening:"Höre zu…",thoughtProcess:"Denkprozess",saveAsSkill:"Als Fähigkeit speichern",skillSaved:"Fähigkeit in Ihrer Bibliothek gespeichert!",saving:"Speichere…",retry:"Erneut versuchen",save:"Speichern",guidance:"Hinweis",errorBoundary:"Chat-Fehler — wird neu geladen…"}},xp={en:_y,tr:yC,de:vC},Ry=x.createContext({locale:"en",t:_y,setLocale:()=>{}});function xC({children:e}){const t=typeof localStorage<"u"?localStorage.getItem("mustb-lang"):null,[n,r]=x.useState(t&&t in xp?t:"en"),s=i=>{r(i);try{localStorage.setItem("mustb-lang",i)}catch{}};return c.jsx(Ry.Provider,{value:{locale:n,t:xp[n],setLocale:s},children:e})}const pa=()=>x.useContext(Ry);function wp(){const e=ui(),{t}=pa(),[n,r]=x.useState(!1),[s,i]=x.useState(!1);x.useEffect(()=>{let a=!1;const u=setTimeout(async()=>{try{const d=await fetch("/api/setup/status");if(!d.ok||a)return;const f=await d.json();!a&&!f.configured&&e("/setup")}catch{}},800);return()=>{a=!0,clearTimeout(u)}},[e]);const o=async()=>{if(!n){r(!0);try{const a=await fetch("/api/setup/status");if(a.ok&&!(await a.json()).configured){e("/setup");return}await fetch("/api/auth/local")}catch{}setTimeout(()=>{i(!0),setTimeout(()=>e("/app"),500)},600)}};return c.jsxs("div",{className:"relative min-h-screen overflow-hidden flex flex-col",children:[c.jsx(nr,{children:s&&c.jsx(ye.div,{className:"fixed inset-0 z-50 pointer-events-none",style:{background:"linear-gradient(180deg, #fefaf5 0%, #f97316 30%, #0d0602 100%)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.45}})}),c.jsxs("header",{className:"fixed top-4 left-0 right-0 z-30 px-6 flex items-center justify-between",children:[c.jsx("span",{className:"text-[22px] font-black text-[#1a0c06] tracking-tighter drop-shadow-sm select-none",children:"Must-b"}),c.jsx("nav",{className:"nav-pill px-3 py-2 flex items-center gap-0.5",children:["Home","AI Models","API","Skills","Labs"].map((a,l)=>c.jsx("span",{className:`px-4 py-1.5 rounded-full text-[13px] font-semibold cursor-default select-none transition-colors ${l===0?"bg-black text-white":"text-black/60 hover:text-black"}`,children:a},a))}),c.jsxs(lu,{to:"/setup",className:"flex items-center gap-2 bg-[#1a0c06] hover:bg-[#3d1a06] text-white/90 rounded-full px-4 py-2 text-[13px] font-semibold shadow-lg transition-all",children:[c.jsx(Fo,{size:13}),t.welcome.reconfigure,c.jsx(Tu,{size:12,className:"opacity-60"})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-6 pb-20 pt-28 select-none",children:[c.jsx(ye.h1,{initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},className:"font-black leading-none tracking-tighter text-[#1a0c06] mb-12 text-center",style:{fontSize:"clamp(5rem, 18vw, 13rem)"},children:"Must-b"}),c.jsx(ye.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{delay:.3,duration:.6},className:"w-full max-w-2xl",children:c.jsxs("button",{onClick:o,disabled:n,className:"glass-input w-full rounded-2xl flex items-center justify-between px-5 py-4 group cursor-pointer disabled:opacity-70",children:[c.jsx("span",{className:"text-white/45 text-[16px] leading-relaxed font-normal",children:n?t.welcome.waking:"What do you want to know?"}),c.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center transition-all flex-shrink-0 ${n?"bg-white/10":"bg-[#1a0c06] group-hover:bg-[#3d1a06] shadow-lg"}`,children:n?c.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white/70 rounded-full animate-spin"}):c.jsx(Tu,{size:18,className:"text-white"})})]})}),c.jsx(ye.div,{initial:{opacity:0},animate:{opacity:.5},transition:{delay:1.4},className:"mt-12 flex flex-col items-center gap-1",children:c.jsx("div",{className:"w-6 h-9 rounded-full border-2 border-[#1a0c06]/30 flex items-start justify-center pt-1.5",children:c.jsx("div",{className:"w-1 h-2 rounded-full bg-[#1a0c06]/40 animate-bounce"})})})]}),c.jsx(ye.p,{initial:{opacity:0},animate:{opacity:.45},transition:{delay:1.6},className:"text-center pb-6 text-[11px] text-[#1a0c06]/50 font-medium tracking-widest uppercase select-none",children:t.welcome.footer})]})}function Ay(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Ay(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function St(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Ay(e))&&(r&&(r+=" "),r+=t);return r}const wC={frontier:"⚡ Frontier",gateway:"🌐 Gateway",fast:"🚀 Fast Inference",local:"💻 Local / Offline",open:"🔓 Open Source Cloud",specialist:"🎯 Specialist",regional:"🌏 Regional",enterprise:"🏢 Enterprise",custom:"⚙️ Custom"},kC=["frontier","gateway","fast","local","open","specialist","regional","enterprise","custom"],kp=[{value:"en-US",label:"English (US)"},{value:"tr-TR",label:"Türkçe"},{value:"de-DE",label:"Deutsch"},{value:"es-ES",label:"Español"},{value:"fr-FR",label:"Français"},{value:"zh-CN",label:"中文 (简体)"},{value:"ja-JP",label:"日本語"},{value:"ar-SA",label:"العربية"}],ro=["Identity","AI Engine","Workspace","Voice","Finalize"];function SC({index:e,current:t}){const n=e<t,r=e===t;return c.jsxs("div",{className:"flex items-center",children:[c.jsx("div",{className:St("w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all duration-300",n?"bg-orange-500 text-white":r?"bg-orange-500/20 border-2 border-orange-500 text-orange-400":"bg-white/5 border border-white/10 text-gray-600"),children:n?c.jsx(da,{size:13}):e+1}),e<ro.length-1&&c.jsx("div",{className:St("w-8 h-px transition-colors duration-300",n?"bg-orange-500/50":"bg-white/10")})]})}function bC({label:e}){return c.jsx("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-bold bg-white/5 text-gray-500 border border-white/8",children:e})}function CC({fit:e}){return e==="recommended"?c.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-bold text-green-400 bg-green-500/10 border border-green-500/20 px-1.5 py-0.5 rounded",children:[c.jsx(da,{size:9})," Recommended"]}):e==="marginal"?c.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-bold text-orange-400 bg-orange-500/10 border border-orange-500/20 px-1.5 py-0.5 rounded",children:[c.jsx(ri,{size:9})," Marginal"]}):c.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-bold text-red-400 bg-red-500/10 border border-red-500/20 px-1.5 py-0.5 rounded",children:[c.jsx(Rs,{size:9})," Heavy"]})}function Sp({checked:e,onChange:t,label:n,description:r}){return c.jsxs("button",{type:"button",onClick:()=>t(!e),className:St("w-full flex items-center gap-4 px-4 py-4 rounded-xl border transition-all text-left",e?"bg-orange-500/10 border-orange-500/30 text-white":"bg-white/3 border-white/8 text-gray-400 hover:border-white/20 hover:text-white"),children:[c.jsx("div",{className:St("relative flex-shrink-0 w-11 h-6 rounded-full transition-colors duration-200",e?"bg-orange-500":"bg-white/15"),children:c.jsx("div",{className:St("absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-all duration-200",e?"left-6":"left-1")})}),c.jsxs("div",{children:[c.jsx("p",{className:"font-semibold text-sm",children:n}),r&&c.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:r})]})]})}function EC(){var An,Xt;const e=ui(),[t,n]=x.useState([]),[r,s]=x.useState([]),[i,o]=x.useState(null),[a,l]=x.useState(!0),[u,d]=x.useState("~/Mustb-Projects"),[f,h]=x.useState(0),[p,w]=x.useState(""),[v,S]=x.useState("en-US"),[m,g]=x.useState("openrouter"),[y,b]=x.useState(""),[k,C]=x.useState(""),[E,T]=x.useState("http://localhost:11434"),[O,L]=x.useState(""),[G,fe]=x.useState(""),[Ne,Be]=x.useState(!1),[Tt,Ie]=x.useState(!1),[F,P]=x.useState("idle"),[_,M]=x.useState(!1),[X,V]=x.useState(null);x.useEffect(()=>{fetch("/api/setup/providers").then(N=>N.ok?N.json():{providers:[]}).then(N=>{var q;(q=N.providers)!=null&&q.length&&n(N.providers)}).catch(()=>{}).finally(()=>l(!1)),fetch("/api/setup/workspace-default").then(N=>N.ok?N.json():null).then(N=>{N!=null&&N.suggested&&(d(N.suggested),fe(N.suggested))}).catch(()=>{})},[]),x.useEffect(()=>{m==="ollama"&&fetch("/api/setup/ollama-models").then(N=>N.ok?N.json():null).then(N=>{N!=null&&N.models&&s(N.models),N!=null&&N.hardware&&o(N.hardware)}).catch(()=>{})},[m]);const $=m==="ollama",B=t.find(N=>N.id===m),ue=x.useMemo(()=>{const N=y.toLowerCase().trim();return N?t.filter(q=>q.label.toLowerCase().includes(N)||q.description.toLowerCase().includes(N)||q.tags.some(qe=>qe.toLowerCase().includes(N))):t},[t,y]),je=x.useMemo(()=>{const N={};for(const q of ue)N[q.category]||(N[q.category]=[]),N[q.category].push(q);return N},[ue]),Y=()=>{switch(f){case 0:return p.trim().length>0;case 1:return $?E.trim().length>0:B!=null&&B.envKeyIsUrl?!0:k.trim().length>0;case 2:return G.trim().length>0;default:return!0}},Xr=async()=>{P("testing");try{(await navigator.mediaDevices.getUserMedia({audio:!0})).getTracks().forEach(q=>q.stop()),P("granted")}catch{P("denied")}},Rn=async()=>{M(!0),V(null);try{const N={name:p.trim()||"User",language:v,provider:m,apiKey:$?E:k,model:$?O:B==null?void 0:B.defaultModel,skills:["browser","terminal","memory","web_search","filesystem","git","vision","input","telegram","analyzer"],mode:"local",workspacePath:G.trim()||u,wakeWord:Ne,telemetry:Tt};let q=await fetch("/api/setup/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)});if(!q.ok&&q.status===404&&(q=await fetch("/api/setup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)})),!q.ok){const qe=await q.json().catch(()=>({}));throw new Error(qe.error??"Setup failed")}e("/app")}catch(N){V(N instanceof Error?N.message:"Unknown error"),M(!1)}};return c.jsxs("div",{className:"min-h-screen bg-[#02040a] flex flex-col items-center justify-center px-4 py-12 relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 pointer-events-none",children:c.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-orange-900/12 rounded-full blur-[120px]"})}),c.jsxs("div",{className:"relative z-10 w-full max-w-xl",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("div",{className:"flex justify-center mb-4",children:c.jsxs("div",{className:"relative w-14 h-14",children:[c.jsx("div",{className:"absolute inset-0 bg-orange-500 rounded-full blur-lg opacity-40 animate-pulse"}),c.jsx("img",{src:"/logo.png",alt:"Must-b",className:"w-full h-full object-contain relative z-10"})]})}),c.jsx("h1",{className:"text-3xl font-extrabold text-white tracking-tight",children:"Setup Must-b"}),c.jsx("p",{className:"text-gray-500 mt-1.5 text-sm",children:"First-time configuration · 5 steps"})]}),c.jsx("div",{className:"flex justify-center items-center mb-6",children:ro.map((N,q)=>c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx(SC,{index:q,current:f}),c.jsx("span",{className:St("text-[9px] font-bold uppercase tracking-widest transition-colors",q===f?"text-orange-400":q<f?"text-orange-500/50":"text-gray-700"),children:N})]},q))}),c.jsx(nr,{mode:"wait",children:c.jsxs(ye.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.18},className:"glass rounded-2xl p-6 border border-white/8",children:[c.jsxs("p",{className:"text-[10px] font-bold text-orange-500/60 uppercase tracking-widest mb-1",children:["Step ",f+1," of ",ro.length]}),c.jsx("h2",{className:"text-xl font-bold text-white mb-5",children:ro[f]}),f===0&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-xs text-gray-400 uppercase tracking-widest font-bold",children:"Your name"}),c.jsx("input",{autoFocus:!0,type:"text",value:p,onChange:N=>w(N.target.value),onKeyDown:N=>N.key==="Enter"&&Y()&&h(1),placeholder:"e.g. Burak",className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white placeholder-gray-600 focus:outline-none focus:ring-1 focus:ring-orange-500/50 transition-all text-base"}),c.jsx("p",{className:"text-gray-600 text-xs",children:"Used in greetings and memory. Editable anytime in Settings."})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-xs text-gray-400 uppercase tracking-widest font-bold",children:"Language"}),c.jsxs("div",{className:"relative",children:[c.jsx(Pu,{size:14,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-gray-500 pointer-events-none"}),c.jsx("select",{value:v,onChange:N=>S(N.target.value),className:"w-full bg-white/5 border border-white/10 rounded-xl pl-9 pr-4 py-3 text-white focus:outline-none focus:ring-1 focus:ring-orange-500/50 transition-all text-sm appearance-none cursor-pointer",children:kp.map(N=>c.jsx("option",{value:N.value,className:"bg-[#0d1117] text-white",children:N.label},N.value))}),c.jsx(Nu,{size:13,className:"absolute right-3.5 top-1/2 -translate-y-1/2 text-gray-500 pointer-events-none rotate-90"})]})]})]}),f===1&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(_u,{size:13,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),c.jsx("input",{type:"text",value:y,onChange:N=>b(N.target.value),placeholder:"Search providers…",className:"w-full bg-white/5 border border-white/10 rounded-xl pl-9 pr-4 py-2.5 text-white placeholder-gray-600 focus:outline-none focus:ring-1 focus:ring-orange-500/50 text-sm"})]}),c.jsxs("div",{className:"max-h-[260px] overflow-y-auto space-y-4 pr-1 scrollbar-thin scrollbar-thumb-white/10 scrollbar-track-transparent",children:[a?c.jsx("p",{className:"text-center py-6 text-gray-600 text-sm",children:"Loading providers…"}):kC.map(N=>{const q=je[N];return q!=null&&q.length?c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] font-bold text-gray-600 uppercase tracking-widest mb-1.5 px-1",children:wC[N]}),c.jsx("div",{className:"space-y-1",children:q.map(qe=>c.jsxs("button",{onClick:()=>{g(qe.id),C("")},className:St("w-full flex items-center gap-3 px-3 py-2.5 rounded-xl border transition-all text-left",m===qe.id?"bg-orange-500/10 border-orange-500/40 text-white":"bg-white/3 border-white/8 text-gray-400 hover:border-white/20 hover:text-white"),children:[c.jsx("div",{className:St("w-3 h-3 rounded-full border-2 flex-shrink-0 transition-all",m===qe.id?"border-orange-500 bg-orange-500":"border-gray-600")}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"font-semibold text-sm leading-tight",children:qe.label}),c.jsx("p",{className:"text-xs text-gray-500 truncate",children:qe.description})]}),c.jsx("div",{className:"flex flex-wrap gap-1 justify-end flex-shrink-0 max-w-[120px]",children:qe.tags.slice(0,2).map(pi=>c.jsx(bC,{label:pi},pi))})]},qe.id))})]},N):null}),!a&&ue.length===0&&c.jsxs("p",{className:"text-center py-6 text-gray-600 text-sm",children:['No providers match "',y,'"']})]}),$?c.jsxs("div",{className:"space-y-3 pt-1 border-t border-white/6",children:[c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:"text-xs text-gray-400 uppercase tracking-widest font-bold",children:"Ollama Base URL"}),c.jsx("input",{type:"url",value:E,onChange:N=>T(N.target.value),placeholder:"http://localhost:11434",className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-2.5 text-white placeholder-gray-600 focus:outline-none focus:ring-1 focus:ring-orange-500/50 font-mono text-sm"})]}),i&&c.jsxs("div",{className:"flex items-center gap-4 rounded-xl bg-white/3 border border-white/8 px-3 py-2 text-xs text-gray-500",children:[c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(iC,{size:11,className:"text-orange-400"}),i.ramGb.toFixed(1)," GB RAM"]}),c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(ju,{size:11,className:"text-orange-400"}),i.cpuCount," CPUs"]}),c.jsxs("span",{className:"flex items-center gap-1.5",children:[c.jsx(ri,{size:11,className:"text-orange-400"}),"Score ",i.score," · ",i.tier]})]}),r.length>0&&c.jsx("div",{className:"max-h-[180px] overflow-y-auto space-y-1.5 pr-1",children:r.map(N=>c.jsxs("button",{onClick:()=>L(N.modelId),className:St("w-full flex items-center gap-3 px-3 py-2.5 rounded-xl border transition-all text-left",O===N.modelId?"bg-orange-500/10 border-orange-500/40 text-white":"bg-white/3 border-white/8 text-gray-400 hover:border-white/20 hover:text-white"),children:[c.jsx("div",{className:St("w-3 h-3 rounded-full border-2 flex-shrink-0",O===N.modelId?"border-orange-500 bg-orange-500":"border-gray-600")}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("p",{className:"font-semibold text-sm",children:N.name}),c.jsx("span",{className:"text-[10px] text-gray-600 font-mono",children:N.params})]}),c.jsx("p",{className:"text-xs text-gray-500 truncate",children:N.description})]}),c.jsxs("div",{className:"flex flex-col items-end gap-1 flex-shrink-0",children:[c.jsx(CC,{fit:N.fit}),c.jsxs("span",{className:"text-[10px] text-gray-600",children:[N.ramGb," GB"]})]})]},N.id))})]}):B?c.jsxs("div",{className:"space-y-2 pt-1 border-t border-white/6",children:[c.jsx("label",{className:"text-xs text-gray-400 uppercase tracking-widest font-bold",children:B.envKeyIsUrl?"Base URL":`${B.label} API Key`}),c.jsx("input",{type:B.envKeyIsUrl?"url":"password",value:k,onChange:N=>C(N.target.value),placeholder:B.placeholder,className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-2.5 text-white placeholder-gray-600 focus:outline-none focus:ring-1 focus:ring-orange-500/50 font-mono text-sm"}),B.latestModels.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1.5 pt-1",children:B.latestModels.slice(0,4).map(N=>c.jsx("span",{className:"text-[11px] font-mono text-orange-400/60 bg-orange-500/5 border border-orange-500/10 px-2 py-0.5 rounded-lg",children:N},N))}),c.jsxs("p",{className:"text-gray-600 text-xs",children:["Stored locally in ",c.jsx("code",{className:"text-orange-500/60",children:".env"})," — never sent to external servers."]})]}):null]}),f===2&&c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-xs text-gray-400 uppercase tracking-widest font-bold",children:"Workspace Directory"}),c.jsxs("div",{className:"relative",children:[c.jsx(Z5,{size:13,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-gray-500 pointer-events-none"}),c.jsx("input",{autoFocus:!0,type:"text",value:G,onChange:N=>fe(N.target.value),placeholder:u,className:"w-full bg-white/5 border border-white/10 rounded-xl pl-9 pr-4 py-3 text-white placeholder-gray-600 focus:outline-none focus:ring-1 focus:ring-orange-500/50 font-mono text-sm"})]}),c.jsxs("p",{className:"text-gray-600 text-xs",children:["Must-b will read and write files ",c.jsx("span",{className:"text-orange-500/70 font-medium",children:"only within this directory"}),". The folder will be created if it doesn't exist."]})]}),c.jsxs("div",{className:"flex items-start gap-3 rounded-xl bg-white/3 border border-white/8 px-4 py-3",children:[c.jsx(dC,{size:15,className:"text-green-400 flex-shrink-0 mt-0.5"}),c.jsx("p",{className:"text-xs text-gray-500 leading-relaxed",children:"Must-b operates in a sandboxed workspace. It cannot access files outside this directory unless you explicitly provide a path in a prompt."})]})]}),f===3&&c.jsxs("div",{className:"space-y-4",children:[c.jsx(Sp,{checked:Ne,onChange:Be,label:'Enable "Hey Must-b" Wake Word',description:"Always-on voice activation — must-b-ui listens passively via your microphone."}),c.jsx("div",{className:"rounded-xl bg-white/3 border border-white/8 px-4 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-semibold text-white",children:"Test Microphone Permission"}),c.jsxs("p",{className:"text-xs text-gray-500 mt-0.5",children:[F==="idle"&&"Click to verify your browser can access the microphone.",F==="testing"&&"Requesting permission…",F==="granted"&&"Microphone access granted ✓",F==="denied"&&"Permission denied — check browser settings."]})]}),c.jsx("button",{onClick:Xr,disabled:F==="testing",className:St("flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all shrink-0",F==="granted"?"bg-green-500/10 border border-green-500/20 text-green-400 cursor-default":F==="denied"?"bg-red-500/10 border border-red-500/20 text-red-400":"bg-white/5 border border-white/10 text-gray-300 hover:border-white/25 hover:text-white"),children:F==="granted"?c.jsxs(c.Fragment,{children:[c.jsx(da,{size:12})," Granted"]}):F==="denied"?c.jsxs(c.Fragment,{children:[c.jsx(fa,{size:12})," Denied"]}):c.jsxs(c.Fragment,{children:[c.jsx(ha,{size:12})," Test"]})})]})}),c.jsx("p",{className:"text-gray-700 text-xs px-1",children:"Wake word and microphone can be reconfigured at any time in Settings → Voice."})]}),f===4&&c.jsxs("div",{className:"space-y-5",children:[c.jsx(Sp,{checked:Tt,onChange:Ie,label:"Send anonymous crash reports",description:"Helps improve Must-b. No personal data, no conversation content — only error traces."}),c.jsxs("div",{className:"rounded-xl bg-white/3 border border-white/6 px-4 py-4 space-y-2",children:[c.jsx("p",{className:"text-[11px] font-bold text-gray-500 uppercase tracking-widest mb-2",children:"Configuration Summary"}),[{label:"Name",value:p||"—"},{label:"Language",value:((An=kp.find(N=>N.value===v))==null?void 0:An.label)??v},{label:"Provider",value:((Xt=t.find(N=>N.id===m))==null?void 0:Xt.label)??m},{label:"Workspace",value:(G||u).replace(/^.*\/([^/]+\/[^/]+)$/,"…/$1")},{label:"Wake Word",value:Ne?"Enabled":"Disabled"}].map(N=>c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsx("span",{className:"text-gray-600",children:N.label}),c.jsx("span",{className:"text-gray-300 font-mono truncate max-w-[200px]",children:N.value})]},N.label))]}),X&&c.jsx("div",{className:"rounded-xl bg-red-500/10 border border-red-500/20 px-4 py-3 text-red-400 text-sm",children:X}),c.jsx("button",{onClick:Rn,disabled:_,className:"w-full flex items-center justify-center gap-3 px-8 py-4 rounded-2xl bg-gradient-to-r from-orange-600 to-amber-600 hover:from-orange-500 hover:to-amber-500 text-white font-bold text-base transition-all shadow-lg shadow-orange-500/25 active:scale-[0.98] disabled:opacity-50 disabled:cursor-not-allowed",children:_?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"w-5 h-5 border-2 border-white/40 border-t-white rounded-full animate-spin"})," Initializing…"]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-lg",children:"🚀"})," Initialize Must-b"]})})]})]},f)}),f<4&&c.jsxs("div",{className:"flex items-center justify-between mt-5",children:[c.jsxs("button",{onClick:()=>h(N=>N-1),disabled:f===0,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-gray-400 hover:text-white hover:bg-white/5 transition-all disabled:opacity-25 disabled:cursor-not-allowed text-sm font-medium",children:[c.jsx(fp,{size:16})," Back"]}),c.jsxs("button",{onClick:()=>h(N=>N+1),disabled:!Y(),className:"flex items-center gap-2 px-6 py-2.5 rounded-xl bg-orange-600 hover:bg-orange-500 text-white font-semibold text-sm transition-all shadow-lg shadow-orange-500/20 active:scale-[0.97] disabled:opacity-40 disabled:cursor-not-allowed",children:["Continue ",c.jsx(Nu,{size:16})]})]}),f===4&&c.jsx("div",{className:"flex justify-start mt-5",children:c.jsxs("button",{onClick:()=>h(3),className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-gray-400 hover:text-white hover:bg-white/5 transition-all text-sm font-medium",children:[c.jsx(fp,{size:16})," Back"]})}),c.jsxs("p",{className:"text-center text-xs text-gray-700 mt-5",children:["All settings saved locally · Run ",c.jsx("code",{className:"text-orange-500/60",children:"must-b doctor"})," to verify"]})]})]})}const Ot=Object.create(null);Ot.open="0";Ot.close="1";Ot.ping="2";Ot.pong="3";Ot.message="4";Ot.upgrade="5";Ot.noop="6";const so=Object.create(null);Object.keys(Ot).forEach(e=>{so[Ot[e]]=e});const Ru={type:"error",data:"parser error"},My=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ly=typeof ArrayBuffer=="function",Dy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,gd=({type:e,data:t},n,r)=>My&&t instanceof Blob?n?r(t):bp(t,r):Ly&&(t instanceof ArrayBuffer||Dy(t))?n?r(t):bp(new Blob([t]),r):r(Ot[e]+(t||"")),bp=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Cp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ll;function TC(e,t){if(My&&e.data instanceof Blob)return e.data.arrayBuffer().then(Cp).then(t);if(Ly&&(e.data instanceof ArrayBuffer||Dy(e.data)))return t(Cp(e.data));gd(e,!1,n=>{ll||(ll=new TextEncoder),t(ll.encode(n))})}const Ep="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Ep.length;e++)gs[Ep.charCodeAt(e)]=e;const NC=e=>{let t=e.length*.75,n=e.length,r,s=0,i,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)i=gs[e.charCodeAt(r)],o=gs[e.charCodeAt(r+1)],a=gs[e.charCodeAt(r+2)],l=gs[e.charCodeAt(r+3)],d[s++]=i<<2|o>>4,d[s++]=(o&15)<<4|a>>2,d[s++]=(a&3)<<6|l&63;return u},jC=typeof ArrayBuffer=="function",yd=(e,t)=>{if(typeof e!="string")return{type:"message",data:Oy(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:PC(e.substring(1),t)}:so[n]?e.length>1?{type:so[n],data:e.substring(1)}:{type:so[n]}:Ru},PC=(e,t)=>{if(jC){const n=NC(e);return Oy(n,t)}else return{base64:!0,data:e}},Oy=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},zy="",_C=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((i,o)=>{gd(i,!1,a=>{r[o]=a,++s===n&&t(r.join(zy))})})},RC=(e,t)=>{const n=e.split(zy),r=[];for(let s=0;s<n.length;s++){const i=yd(n[s],t);if(r.push(i),i.type==="error")break}return r};function AC(){return new TransformStream({transform(e,t){TC(e,n=>{const r=n.length;let s;if(r<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,r);else if(r<65536){s=new Uint8Array(3);const i=new DataView(s.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{s=new Uint8Array(9);const i=new DataView(s.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(s[0]|=128),t.enqueue(s),t.enqueue(n)})}})}let ul;function Vi(e){return e.reduce((t,n)=>t+n.length,0)}function Bi(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let s=0;s<t;s++)n[s]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function MC(e,t){ul||(ul=new TextDecoder);const n=[];let r=0,s=-1,i=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(r===0){if(Vi(n)<1)break;const l=Bi(n,1);i=(l[0]&128)===128,s=l[0]&127,s<126?r=3:s===126?r=1:r=2}else if(r===1){if(Vi(n)<2)break;const l=Bi(n,2);s=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(Vi(n)<8)break;const l=Bi(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Ru);break}s=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Vi(n)<s)break;const l=Bi(n,s);a.enqueue(yd(i?l:ul.decode(l),t)),r=0}if(s===0||s>e){a.enqueue(Ru);break}}}})}const Vy=4;function ve(e){if(e)return LC(e)}function LC(e){for(var t in ve.prototype)e[t]=ve.prototype[t];return e}ve.prototype.on=ve.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ve.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};ve.prototype.off=ve.prototype.removeListener=ve.prototype.removeAllListeners=ve.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,s=0;s<n.length;s++)if(r=n[s],r===t||r.fn===t){n.splice(s,1);break}return n.length===0&&delete this._callbacks["$"+e],this};ve.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,s=n.length;r<s;++r)n[r].apply(this,t)}return this};ve.prototype.emitReserved=ve.prototype.emit;ve.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ve.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ma=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),at=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),DC="arraybuffer";function By(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const OC=at.setTimeout,zC=at.clearTimeout;function ga(e,t){t.useNativeTimers?(e.setTimeoutFn=OC.bind(at),e.clearTimeoutFn=zC.bind(at)):(e.setTimeoutFn=at.setTimeout.bind(at),e.clearTimeoutFn=at.clearTimeout.bind(at))}const VC=1.33;function BC(e){return typeof e=="string"?IC(e):Math.ceil((e.byteLength||e.size)*VC)}function IC(e){let t=0,n=0;for(let r=0,s=e.length;r<s;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Iy(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function FC(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function UC(e){let t={},n=e.split("&");for(let r=0,s=n.length;r<s;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class $C extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class vd extends ve{constructor(t){super(),this.writable=!1,ga(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new $C(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=yd(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=FC(t);return n.length?"?"+n:""}}class WC extends vd{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};RC(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,_C(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Iy()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Fy=!1;try{Fy=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const HC=Fy;function KC(){}class qC extends WC{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,i)=>{this.onError("xhr post error",s,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Dt extends ve{constructor(t,n,r){super(),this.createRequest=t,ga(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=By(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&r.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var s;r.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=Dt.requestsCount++,Dt.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=KC,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Dt.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Dt.requestsCount=0;Dt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Tp);else if(typeof addEventListener=="function"){const e="onpagehide"in at?"pagehide":"unload";addEventListener(e,Tp,!1)}}function Tp(){for(let e in Dt.requests)Dt.requests.hasOwnProperty(e)&&Dt.requests[e].abort()}const GC=function(){const e=Uy({xdomain:!1});return e&&e.responseType!==null}();class YC extends qC{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=GC&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Dt(Uy,this.uri(),t)}}function Uy(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||HC))return new XMLHttpRequest}catch{}if(!t)try{return new at[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const $y=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class QC extends vd{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=$y?{}:By(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],s=n===t.length-1;gd(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}s&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Iy()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const cl=at.WebSocket||at.MozWebSocket;class XC extends QC{createSocket(t,n,r){return $y?new cl(t,n,r):n?new cl(t,n):new cl(t)}doWrite(t,n){this.ws.send(n)}}class ZC extends vd{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=MC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),s=AC();s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],s=n===t.length-1;this._writer.write(r).then(()=>{s&&ma(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const JC={websocket:XC,webtransport:ZC,polling:YC},eE=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Au(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let s=eE.exec(e||""),i={},o=14;for(;o--;)i[tE[o]]=s[o]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=nE(i,i.path),i.queryKey=rE(i,i.query),i}function nE(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function rE(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,i){s&&(n[s]=i)}),n}const Mu=typeof addEventListener=="function"&&typeof removeEventListener=="function",io=[];Mu&&addEventListener("offline",()=>{io.forEach(e=>e())},!1);class kn extends ve{constructor(t,n){if(super(),this.binaryType=DC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Au(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Au(n.host).host);ga(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const s=r.prototype.name;this.transports.push(s),this._transportsByName[s]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=UC(this.opts.query)),Mu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},io.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Vy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&kn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",kn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const s=this.writeBuffer[r].data;if(s&&(n+=BC(s)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ma(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(kn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Mu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=io.indexOf(this._offlineEventListener);r!==-1&&io.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}kn.protocol=Vy;class sE extends kn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;kn.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;kn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function i(){r||(r=!0,d(),n.close(),n=null)}const o=f=>{const h=new Error("probe error: "+f);h.transport=n.name,i(),this.emitReserved("upgradeError",h)};function a(){o("transport closed")}function l(){o("socket closed")}function u(f){n&&f.name!==n.name&&i()}const d=()=>{n.removeListener("open",s),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let iE=class extends sE{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(s=>JC[s]).filter(s=>!!s)),super(t,r)}};function oE(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Au(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const aE=typeof ArrayBuffer=="function",lE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Wy=Object.prototype.toString,uE=typeof Blob=="function"||typeof Blob<"u"&&Wy.call(Blob)==="[object BlobConstructor]",cE=typeof File=="function"||typeof File<"u"&&Wy.call(File)==="[object FileConstructor]";function xd(e){return aE&&(e instanceof ArrayBuffer||lE(e))||uE&&e instanceof Blob||cE&&e instanceof File}function oo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(oo(e[n]))return!0;return!1}if(xd(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return oo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&oo(e[n]))return!0;return!1}function dE(e){const t=[],n=e.data,r=e;return r.data=Lu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Lu(e,t){if(!e)return e;if(xd(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Lu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Lu(e[r],t));return n}return e}function fE(e,t){return e.data=Du(e.data,t),delete e.attachments,e}function Du(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Du(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Du(e[n],t));return e}const hE=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var W;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(W||(W={}));class pE{constructor(t){this.replacer=t}encode(t){return(t.type===W.EVENT||t.type===W.ACK)&&oo(t)?this.encodeAsBinary({type:t.type===W.EVENT?W.BINARY_EVENT:W.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===W.BINARY_EVENT||t.type===W.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=dE(t),r=this.encodeAsString(n.packet),s=n.buffers;return s.unshift(r),s}}class wd extends ve{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===W.BINARY_EVENT;r||n.type===W.BINARY_ACK?(n.type=r?W.EVENT:W.ACK,this.reconstructor=new mE(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(xd(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(W[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===W.BINARY_EVENT||r.type===W.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(i,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const s=t.charAt(n+1);if(s!==""&&Number(s)==s){const i=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(wd.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case W.CONNECT:return Np(n);case W.DISCONNECT:return n===void 0;case W.CONNECT_ERROR:return typeof n=="string"||Np(n);case W.EVENT:case W.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&hE.indexOf(n[0])===-1);case W.ACK:case W.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class mE{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=fE(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Np(e){return Object.prototype.toString.call(e)==="[object Object]"}const gE=Object.freeze(Object.defineProperty({__proto__:null,Decoder:wd,Encoder:pE,get PacketType(){return W}},Symbol.toStringTag,{value:"Module"}));function wt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const yE=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Hy extends ve{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[wt(t,"open",this.onopen.bind(this)),wt(t,"packet",this.onpacket.bind(this)),wt(t,"error",this.onerror.bind(this)),wt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,s,i;if(yE.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:W.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,f=n.pop();this._registerAckCallback(d,f),o.id=d}const a=(s=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||s===void 0?void 0:s.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const s=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(s===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},s),o=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,a)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,s)=>{const i=(o,a)=>o?s(o):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...i)=>(this._queue[0],s!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(s)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:W.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case W.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case W.EVENT:case W.BINARY_EVENT:this.onevent(t);break;case W.ACK:case W.BINARY_ACK:this.onack(t);break;case W.DISCONNECT:this.ondisconnect();break;case W.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:W.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:W.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Qr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Qr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Qr.prototype.reset=function(){this.attempts=0};Qr.prototype.setMin=function(e){this.ms=e};Qr.prototype.setMax=function(e){this.max=e};Qr.prototype.setJitter=function(e){this.jitter=e};class Ou extends ve{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ga(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Qr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||gE;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new iE(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=wt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=wt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(wt(t,"ping",this.onping.bind(this)),wt(t,"data",this.ondata.bind(this)),wt(t,"error",this.onerror.bind(this)),wt(t,"close",this.onclose.bind(this)),wt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){ma(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Hy(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ls={};function As(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=oE(e,t.path||"/socket.io"),r=n.source,s=n.id,i=n.path,o=ls[s]&&i in ls[s].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new Ou(r,t):(ls[s]||(ls[s]=new Ou(r,t)),l=ls[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(As,{Manager:Ou,Socket:Hy,io:As,connect:As});let Ii=null;function ya(){return Ii||(Ii=As(window.location.origin,{transports:["websocket","polling"]}),Ii.on("agentUpdate",e=>{try{e!=null&&window.dispatchEvent(new CustomEvent("mustb:agentUpdate",{detail:e}))}catch{}})),Ii}let ys=null;async function vE(){if(ys)return ys;try{const e=await fetch("/api/auth/local");if(e.ok)return ys=(await e.json()).token??null,ys}catch{}return null}async function Hn(e,t={}){const n=await vE(),r={"Content-Type":"application/json",...t.headers};n&&(r.Authorization=`Bearer ${n}`);const s=await fetch(e,{...t,headers:r});return s.status===401&&(ys=null,window.dispatchEvent(new CustomEvent("mustb:401",{detail:{url:e}}))),s}function In(e){if(typeof e=="string")return e;if(e==null)return"";if(typeof e=="object"){const t=e,n=t.message??t.error??t.text??t.content??t.result;return n!==void 0?In(n):JSON.stringify(e)}return String(e)}function xE(e,t){switch(e){case"planGenerated":{const n=t.steps;return`Plan ready — ${(n==null?void 0:n.length)??0} step(s)`}case"stepStart":{const n=t.step;return`▶ ${(n==null?void 0:n.description)??In(t.step)}`}case"stepFinish":{if(t.status==="error")return`✗ ${In(t.error)}`;const n=t.step,r=t.result!==void 0?In(t.result):void 0,s=(n==null?void 0:n.description)??"Step complete";return r&&r.length<180?`✓ ${s} → ${r}`:`✓ ${s}`}case"agentRepair":{const n=In(t.action),r=t.reason?` — ${In(t.reason).slice(0,120)}`:"";return`⟳ Repair: ${n}${r}`}default:return null}}function wE({lang:e,code:t}){const[n,r]=x.useState(!1);return c.jsxs("div",{className:"my-3 rounded-xl overflow-hidden border border-white/8 bg-[#0a1a06]/90",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 border-b border-white/6 select-none",children:[c.jsx("span",{className:"text-[11px] font-mono text-green-300/50",children:e||"code"}),c.jsx("button",{onClick:()=>{navigator.clipboard.writeText(t).catch(()=>{}),r(!0),setTimeout(()=>r(!1),2e3)},className:"flex items-center gap-1.5 text-[11px] text-green-300/50 hover:text-green-200 transition-colors",children:n?c.jsxs(c.Fragment,{children:[c.jsx(da,{size:10,className:"text-green-400"}),c.jsx("span",{className:"text-green-400",children:"Copied"})]}):c.jsxs(c.Fragment,{children:[c.jsx(K5,{size:10}),"Copy"]})})]}),c.jsx("pre",{className:"overflow-x-auto px-4 py-3 text-[13px] text-green-100 font-mono leading-relaxed whitespace-pre",children:c.jsx("code",{children:t})})]})}function lr(e,t){return e.split(/(`[^`\n]+`)/).map((r,s)=>{if(r.startsWith("`")&&r.endsWith("`")&&r.length>2)return c.jsx("code",{className:"px-1.5 py-0.5 rounded bg-black/15 text-green-800 font-mono text-[12px]",children:r.slice(1,-1)},`${t}-ic${s}`);const i=r.split(/(\*\*[^*\n]+\*\*|\*[^*\n]+\*)/);return c.jsx(x.Fragment,{children:i.map((o,a)=>o.startsWith("**")&&o.endsWith("**")&&o.length>4?c.jsx("strong",{className:"font-bold text-[#1a0c06]",children:o.slice(2,-2)},`${t}-b${s}-${a}`):o.startsWith("*")&&o.endsWith("*")&&o.length>2?c.jsx("em",{className:"italic",children:o.slice(1,-1)},`${t}-em${s}-${a}`):c.jsx("span",{children:o},`${t}-s${s}-${a}`))},`${t}-bi${s}`)})}function kE({text:e,dark:t=!1}){const n=t?"text-green-100":"text-[#1a3810]",r=[],s=e.split(`
|
|
382
|
+
`);let i=0,o=0;const a=()=>`md-${o++}`;for(;i<s.length;){const l=s[i],u=l.match(/^```(\w*)/);if(u){const w=u[1]??"",v=[];for(i++;i<s.length&&!s[i].startsWith("```");)v.push(s[i]),i++;i<s.length&&i++,r.push(c.jsx(wE,{lang:w,code:v.join(`
|
|
383
|
+
`)},a()));continue}const d=l.match(/^### (.+)/);if(d){r.push(c.jsx("h3",{className:`text-sm font-bold mt-4 mb-1 ${n}`,children:lr(d[1],a())},a())),i++;continue}const f=l.match(/^## (.+)/);if(f){r.push(c.jsx("h2",{className:`text-base font-bold mt-5 mb-1.5 ${n}`,children:lr(f[1],a())},a())),i++;continue}const h=l.match(/^# (.+)/);if(h){r.push(c.jsx("h1",{className:`text-lg font-bold mt-6 mb-2 ${n}`,children:lr(h[1],a())},a())),i++;continue}if(l.match(/^[-*]{3,}$/)){r.push(c.jsx("hr",{className:"border-black/10 my-4"},a())),i++;continue}if(l.match(/^[-*•] /)){const w=[];for(;i<s.length&&s[i].match(/^[-*•] /);)w.push(s[i].replace(/^[-*•] /,"")),i++;r.push(c.jsx("ul",{className:"my-2 space-y-1.5 pl-1",children:w.map((v,S)=>c.jsxs("li",{className:`flex items-start gap-2.5 text-[14px] leading-relaxed ${n}`,children:[c.jsx("span",{className:"mt-[7px] w-1.5 h-1.5 rounded-full bg-green-600/50 flex-shrink-0"}),c.jsx("span",{children:lr(v,`ul-${S}`)})]},S))},a()));continue}if(l.match(/^\d+\. /)){const w=[];for(;i<s.length&&s[i].match(/^\d+\. /);)w.push(s[i].replace(/^\d+\. /,"")),i++;r.push(c.jsx("ol",{className:"my-2 space-y-1.5 pl-1",children:w.map((v,S)=>c.jsxs("li",{className:`flex items-start gap-2.5 text-[14px] leading-relaxed ${n}`,children:[c.jsxs("span",{className:"flex-shrink-0 mt-px font-mono text-[12px] w-5 text-right text-green-700/60",children:[S+1,"."]}),c.jsx("span",{children:lr(v,`ol-${S}`)})]},S))},a()));continue}if(l.trim()===""){i++;continue}const p=[];for(;i<s.length&&s[i].trim()!==""&&!s[i].match(/^(```|#{1,3} |[-*•] |\d+\. |[-*]{3,}$)/);)p.push(s[i]),i++;p.length&&r.push(c.jsx("p",{className:`text-[14px] leading-[1.75] my-1.5 ${n}`,children:lr(p.join(" "),`p-${o}`)},a()))}return c.jsx("div",{children:r})}function SE({workflow:e,onDismiss:t}){const[n,r]=x.useState("idle"),[s,i]=x.useState(e.goal.slice(0,52)+(e.goal.length>52?"…":"")),o=async()=>{r("saving");try{const a=await Hn("/api/skills/save",{method:"POST",body:JSON.stringify({goal:e.goal,answer:e.answer,steps:e.steps,name:s.trim()||void 0})});if(!a.ok)throw new Error(`HTTP ${a.status}`);r("saved"),setTimeout(t,1800)}catch{r("error"),setTimeout(()=>r("idle"),3e3)}};return c.jsx(ye.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2},className:"mt-3",children:c.jsx("div",{className:"flex items-center gap-3 px-4 py-2.5 rounded-xl bg-green-900/20 border border-green-600/30",children:n==="saved"?c.jsxs(c.Fragment,{children:[c.jsx(Io,{size:13,className:"text-green-400 shrink-0"}),c.jsx("span",{className:"text-xs font-medium text-green-400",children:"Skill saved!"})]}):c.jsxs(c.Fragment,{children:[c.jsx(I5,{size:13,className:"text-green-700 shrink-0"}),c.jsx("span",{className:"text-[11px] text-green-900 shrink-0 font-medium",children:"Save as Skill:"}),c.jsx("input",{value:s,onChange:a=>i(a.target.value),onKeyDown:a=>a.key==="Enter"&&n==="idle"&&o(),placeholder:"Skill name…",className:"flex-1 bg-transparent text-[12px] text-green-900 outline-none placeholder-green-700/50 min-w-0"}),c.jsx("button",{onClick:o,disabled:n!=="idle",className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-green-900/30 hover:bg-green-900/50 border border-green-800/40 text-green-200 text-[11px] font-semibold transition-all shrink-0 disabled:opacity-50",children:n==="saving"?c.jsxs(c.Fragment,{children:[c.jsx(dn,{size:10,className:"animate-spin"})," Saving…"]}):n==="error"?"Retry":"Save"}),c.jsx("button",{onClick:t,className:"text-green-800 hover:text-green-600 transition-colors text-[11px] shrink-0",children:"✕"})]})})})}class bE extends x.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t.message??"Unknown error"}}componentDidCatch(t,n){console.error("[ChatErrorBoundary]",t,n.componentStack)}render(){return this.state.error?c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 p-8 text-center",children:[c.jsx("span",{className:"text-2xl",children:"⚠️"}),c.jsx("p",{className:"text-red-500 font-bold text-sm",children:"Chat render error"}),c.jsx("p",{className:"text-green-900 text-xs font-mono max-w-sm break-all",children:this.state.error}),c.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-1 px-4 py-2 rounded-xl bg-green-900/20 border border-green-800/30 text-green-200 text-xs font-bold hover:bg-green-900/40 transition-all",children:"Retry"})]}):this.props.children}}function CE({onSend:e,disabled:t}){const{t:n}=pa(),[r,s]=x.useState(""),[i,o]=x.useState(!1),a=x.useRef(null),l=x.useRef(null);x.useEffect(()=>{var h;(h=l.current)==null||h.focus()},[]);const u=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition),d=()=>{var w;if(i){(w=a.current)==null||w.stop();return}const h=window.SpeechRecognition||window.webkitSpeechRecognition;if(!h)return;const p=new h;p.continuous=!1,p.interimResults=!0,p.onresult=v=>{let S="";for(let m=v.resultIndex;m<v.results.length;m++)S+=v.results[m][0].transcript;s(S)},p.onend=()=>{o(!1),a.current=null},p.onerror=()=>{o(!1),a.current=null},a.current=p,p.start(),o(!0)},f=()=>{var p;const h=r.trim();!h||t||(i&&((p=a.current)==null||p.stop()),s(""),e(h))};return c.jsx("div",{className:"w-full max-w-2xl mx-auto",children:c.jsxs("div",{className:"glass-input rounded-2xl flex items-center gap-3 px-5 py-4",children:[c.jsx("input",{ref:l,value:r,onChange:h=>s(h.target.value),onKeyDown:h=>{h.key==="Enter"&&f()},placeholder:i?n.chat.listening:"What do you want to know?",disabled:t,className:"flex-1 bg-transparent text-white/90 placeholder-white/35 text-[16px] outline-none min-w-0 leading-relaxed"}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[u&&c.jsx("button",{type:"button",onClick:d,className:`p-2 rounded-full transition-all ${i?"text-green-300 bg-green-800/40 animate-pulse":"text-white/40 hover:text-white/70 hover:bg-white/8"}`,children:i?c.jsx(fa,{size:18}):c.jsx(ha,{size:18})}),c.jsx("button",{onClick:f,disabled:!r.trim()||t,className:`w-10 h-10 rounded-full flex items-center justify-center transition-all ${r.trim()&&!t?"bg-[#1a0c06] hover:bg-[#3d1a06] text-white shadow-lg active:scale-95":"bg-white/10 text-white/25 cursor-not-allowed"}`,children:t?c.jsx(dn,{size:16,className:"animate-spin text-white/50"}):c.jsx(Tu,{size:18})})]})]})})}function EE({onSend:e,disabled:t}){const{t:n}=pa(),[r,s]=x.useState(""),[i,o]=x.useState(!1),a=x.useRef(null),l=x.useRef(null),u=typeof window<"u"&&!!(window.SpeechRecognition||window.webkitSpeechRecognition),d=()=>{var w;if(i){(w=a.current)==null||w.stop();return}const h=window.SpeechRecognition||window.webkitSpeechRecognition;if(!h)return;const p=new h;p.continuous=!1,p.interimResults=!0,p.onresult=v=>{let S="";for(let m=v.resultIndex;m<v.results.length;m++)S+=v.results[m][0].transcript;s(S)},p.onend=()=>{o(!1),a.current=null},p.onerror=()=>{o(!1),a.current=null},a.current=p,p.start(),o(!0)},f=()=>{var p;const h=r.trim();!h||t||(i&&((p=a.current)==null||p.stop()),s(""),e(h))};return x.useEffect(()=>{l.current&&(l.current.style.height="auto",l.current.style.height=`${Math.min(l.current.scrollHeight,160)}px`)},[r]),c.jsx("div",{className:"px-4 pb-4 pt-3",children:c.jsx("div",{className:"max-w-3xl mx-auto",children:c.jsxs("div",{className:"glass-input rounded-2xl flex items-end gap-3 px-5 py-3",children:[c.jsx("textarea",{ref:l,value:r,onChange:h=>s(h.target.value),onKeyDown:h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),f())},placeholder:i?n.chat.listening:"What do you want to know?",disabled:t,rows:1,className:"flex-1 bg-transparent text-white/90 placeholder-white/35 text-[15px] outline-none resize-none min-h-[28px] max-h-[160px] scrollbar-hide leading-relaxed"}),c.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5 shrink-0",children:[u&&c.jsx("button",{onClick:d,className:`p-2 rounded-full transition-all ${i?"text-green-300 bg-green-800/40 animate-pulse":"text-white/40 hover:text-white/70 hover:bg-white/8"}`,children:i?c.jsx(fa,{size:17}):c.jsx(ha,{size:17})}),c.jsx("button",{onClick:f,disabled:!r.trim()||t,className:`w-9 h-9 rounded-full flex items-center justify-center transition-all ${r.trim()&&!t?"bg-[#1a0c06] hover:bg-[#3d1a06] text-white shadow-lg active:scale-95":"bg-white/10 text-white/25 cursor-not-allowed"}`,children:t?c.jsx(dn,{size:14,className:"animate-spin text-white/50"}):c.jsx(cC,{size:16})})]})]})})})}function TE(){const[e,t]=x.useState([]),n=x.useRef(null),r=x.useRef(null),s=e.some(a=>a.kind==="assistant"&&a.status==="pending");x.useEffect(()=>{const a=ya();return a.on("agentUpdate",l=>{const{type:u,...d}=l;if(u==="planStart"){const p=`asst-${Date.now()}-${Math.random().toString(36).slice(2)}`;n.current=p,t(w=>[...w,{id:p,kind:"assistant",content:"",thoughts:[],status:"pending"}]);return}if(u==="finalAnswer"){const p=n.current;if(!p)return;t(w=>w.map(v=>v.id===p?{...v,content:In(d.answer??"Done.")}:v));return}if(u==="planFinish"){const p=n.current;if(!p)return;const w=d.status==="failed"?"error":"done",v=d.status==="completed"?{goal:String(d.goal??""),answer:String(d.answer??""),steps:d.steps??[]}:void 0;t(S=>S.map(m=>m.id===p?{...m,status:w,...v?{workflow:v}:{}}:m)),n.current=null;return}const f=xE(u,d);if(!f)return;const h=n.current;h&&t(p=>p.map(w=>w.id===h?{...w,thoughts:[...w.thoughts,f]}:w))}),()=>{a.off("agentUpdate")}},[]),x.useEffect(()=>{var a;(a=r.current)==null||a.scrollIntoView({behavior:"smooth"})},[e]);const i=async a=>{if(a.startsWith("__GUIDANCE__")){const l=a.slice(12);t(u=>[...u,{id:`guidance-${Date.now()}`,kind:"assistant",content:`ℹ ${l}`,thoughts:[],status:"done"}]);return}t(l=>l.map(u=>({...u,workflow:void 0}))),t(l=>[...l,{id:`user-${Date.now()}`,kind:"user",content:a,thoughts:[],status:"done"}]);try{await Hn("/api/goal",{method:"POST",body:JSON.stringify({goal:a})})}catch{}},o=e.length>0;return c.jsx(bE,{children:c.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[!o&&c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-6 pb-16 select-none",children:[c.jsx(ye.h1,{initial:{opacity:0,y:-24},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},className:"font-black leading-none tracking-tighter text-[#1a0c06] mb-10 text-center",style:{fontSize:"clamp(5rem, 18vw, 12rem)"},children:"Must-b"}),c.jsx(ye.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.25,duration:.6,ease:"easeOut"},className:"w-full max-w-2xl",children:c.jsx(CE,{onSend:i,disabled:s})}),c.jsx(ye.div,{initial:{opacity:0},animate:{opacity:.5},transition:{delay:1.2},className:"mt-10 flex flex-col items-center gap-1",children:c.jsx("div",{className:"w-6 h-9 rounded-full border-2 border-[#1a0c06]/30 flex items-start justify-center pt-1.5",children:c.jsx("div",{className:"w-1 h-2 rounded-full bg-[#1a0c06]/40 animate-bounce"})})})]}),o&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-hide",children:c.jsxs("div",{className:"max-w-3xl mx-auto w-full px-5 pt-6 pb-4",children:[e.map(a=>{if(a.kind==="user")return c.jsx("div",{className:"flex justify-end mb-5",children:c.jsx("div",{className:"max-w-[78%]",children:c.jsx("div",{className:"rounded-2xl rounded-br-sm px-5 py-3 text-white text-[14px] leading-relaxed whitespace-pre-wrap",style:{background:"rgba(10,25,8,0.62)",border:"1px solid rgba(160,220,80,0.18)",backdropFilter:"blur(12px)"},children:a.content})})},a.id);const l=a.thoughts.length>0,u=a.content.length>0,d=a.status==="pending",f=a.status==="error"&&!u;return c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2.5",children:[c.jsxs("div",{className:"relative w-5 h-5 shrink-0",children:[c.jsx("div",{className:"absolute inset-0 bg-green-700/30 rounded-full blur-sm"}),c.jsx("img",{src:"/logo.png",alt:"Must-b",className:"w-full h-full object-contain relative z-10"})]}),c.jsx("span",{className:"text-[12px] font-semibold text-[#1a0c06]/70 tracking-wide",children:"Must-b"}),l&&c.jsxs("span",{className:"text-[10px] text-[#1a0c06]/40 font-mono",children:[a.thoughts.length," step",a.thoughts.length!==1?"s":""]})]}),l&&c.jsxs("details",{className:"mb-3 group",...u?{}:{open:!0},children:[c.jsxs("summary",{className:"flex items-center gap-1.5 cursor-pointer list-none select-none w-fit",children:[c.jsx(Nu,{size:11,className:"text-[#1a0c06]/40 group-open:rotate-90 transition-transform duration-150 flex-shrink-0"}),c.jsx("span",{className:"text-[11px] font-medium text-[#1a0c06]/50 hover:text-[#1a0c06]/70 transition-colors",children:"Thought Process"})]}),c.jsx("div",{className:"mt-2 ml-3.5 pl-3.5 border-l border-[#1a0c06]/10 space-y-1",children:a.thoughts.map((h,p)=>c.jsx("p",{className:"text-[11px] font-mono text-[#1a0c06]/50 leading-relaxed break-all",children:h},p))})]}),u?c.jsx("div",{className:"rounded-2xl px-5 py-4",style:{background:"rgba(255,255,255,0.82)",border:"1px solid rgba(0,0,0,0.06)",backdropFilter:"blur(16px)"},children:c.jsx(kE,{text:a.content,dark:!1})}):d?c.jsx("div",{className:"flex items-center gap-1.5 py-2 px-1",children:[0,150,300].map(h=>c.jsx("div",{className:"w-2 h-2 bg-green-700/60 rounded-full animate-bounce",style:{animationDelay:`-${h}ms`}},h))}):f?c.jsx("p",{className:"text-sm text-red-600/80",children:"Something went wrong. Please try again."}):null,c.jsx(nr,{children:a.workflow&&!d&&c.jsx(SE,{workflow:a.workflow,onDismiss:()=>t(h=>h.map(p=>p.id===a.id?{...p,workflow:void 0}:p))})})]},a.id)}),c.jsx("div",{ref:r,className:"h-2"})]})}),c.jsx(EE,{onSend:i,disabled:s})]})]})})}function NE(){const[e,t]=x.useState(!1);return x.useEffect(()=>{const n=ya();return n.on("agentUpdate",r=>{r.type==="SCREEN_CAPTURE_START"&&t(!0),(r.type==="SCREEN_CAPTURED"||r.type==="SCREEN_CAPTURE_END")&&setTimeout(()=>t(!1),700)}),()=>{n.off("agentUpdate")}},[]),c.jsx(nr,{children:e&&c.jsxs(ye.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-[9999] pointer-events-none",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("div",{className:"absolute top-0 left-0 w-12 h-12 border-t-2 border-l-2 border-orange-500/70"}),c.jsx("div",{className:"absolute top-0 right-0 w-12 h-12 border-t-2 border-r-2 border-orange-500/70"}),c.jsx("div",{className:"absolute bottom-0 left-0 w-12 h-12 border-b-2 border-l-2 border-orange-500/70"}),c.jsx("div",{className:"absolute bottom-0 right-0 w-12 h-12 border-b-2 border-r-2 border-orange-500/70"})]}),c.jsx(ye.div,{className:"absolute left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-orange-500/60 to-transparent",animate:{top:["0%","100%"]},transition:{duration:1.4,repeat:1/0,ease:"linear"}}),c.jsx("div",{className:"absolute top-4 left-1/2 -translate-x-1/2",children:c.jsxs(ye.div,{initial:{y:-10,opacity:0},animate:{y:0,opacity:1},className:"flex items-center gap-2 px-4 py-2 bg-black/80 border border-orange-500/30 rounded-full shadow-[0_0_20px_rgba(234,88,12,0.3)] backdrop-blur-xl",children:[c.jsxs("span",{className:"relative flex h-2 w-2",children:[c.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-orange-400 opacity-75"}),c.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-orange-500"})]}),c.jsx(uC,{size:12,className:"text-orange-400 animate-spin"}),c.jsx("span",{className:"text-orange-300 text-xs font-semibold tracking-wide",children:"Scanning screen…"})]})})]},"scan-overlay")})}function jE(){return x.useEffect(()=>{ya()},[]),c.jsxs("div",{className:"flex flex-col h-[calc(100vh-72px)] overflow-hidden",children:[c.jsx(NE,{}),c.jsx(TE,{})]})}const dl=[{id:"openrouter",label:"OpenRouter",placeholder:"sk-or-v1-..."},{id:"openai",label:"OpenAI",placeholder:"sk-..."},{id:"anthropic",label:"Anthropic",placeholder:"sk-ant-..."},{id:"ollama",label:"Ollama (local)",placeholder:"ollama (no key needed)"}];function PE(){const[e,t]=x.useState(null),[n,r]=x.useState("openrouter"),[s,i]=x.useState(""),[o,a]=x.useState(!1),[l,u]=x.useState(!1),[d,f]=x.useState(!1),[h,p]=x.useState(null),[w,v]=x.useState(null),[S,m]=x.useState(!!window.__MUSTB_NEED_API_KEY);x.useEffect(()=>{Hn("/api/setup/status").then(E=>E.ok?E.json():null).then(E=>{E&&(t(E),E.provider&&r(E.provider))}).catch(()=>{});const C=()=>{m(!0),window.__MUSTB_NEED_API_KEY=!0};return window.addEventListener("mustb:401",C),()=>window.removeEventListener("mustb:401",C)},[]);const g=async()=>{u(!0),p(null);try{const E=await(await Hn("/api/setup/test-key",{method:"POST",body:JSON.stringify({provider:n,apiKey:s||void 0})})).json();p({ok:E.ok,msg:E.message??(E.ok?"Connection successful":"Connection failed")})}catch{p({ok:!1,msg:"Gateway unreachable"})}u(!1)},y=async()=>{if(!(!s.trim()&&n!=="ollama")){f(!0),v(null);try{const C=await Hn("/api/setup/update-key",{method:"POST",body:JSON.stringify({provider:n,apiKey:s})});if(C.ok){v("API key saved."),i(""),window.__MUSTB_NEED_API_KEY=!1,m(!1);const E=await Hn("/api/setup/status");E.ok&&t(await E.json())}else{const E=await C.json();v(E.error??"Failed to save.")}}catch{v("Gateway unreachable.")}f(!1),setTimeout(()=>v(null),5e3)}},b=dl.find(C=>C.id===n)??dl[0],k=n==="ollama";return c.jsx("div",{className:"h-full overflow-y-auto p-6 font-sans",children:c.jsxs("div",{className:"max-w-xl mx-auto space-y-5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-2xl bg-orange-500/10 border border-orange-500/20 flex items-center justify-center shrink-0",children:c.jsx(Fo,{size:18,className:"text-orange-400"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-bold text-white",children:"Settings"}),c.jsxs("p",{className:"text-[12px] text-gray-500",children:[e!=null&&e.name?`Signed in as ${e.name}`:"Configure Must-b",e!=null&&e.mode?` · ${e.mode} mode`:""]})]})]}),S&&c.jsxs("div",{className:"flex items-start gap-3 px-4 py-3 rounded-xl bg-red-500/10 border border-red-500/25 text-red-300",children:[c.jsx(Rs,{size:15,className:"shrink-0 mt-0.5"}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[13px] font-semibold",children:"API key missing or invalid"}),c.jsx("p",{className:"text-[11px] text-red-400/70 mt-0.5",children:"A request returned 401 Unauthorized. Update your API key below."})]})]}),e&&c.jsxs("div",{className:"px-4 py-3 rounded-xl bg-white/3 border border-white/8",children:[c.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-2",children:"Current Configuration"}),c.jsxs("div",{className:"flex items-center gap-2",children:[e.configured?c.jsx(Io,{size:13,className:"text-green-400"}):c.jsx(Rs,{size:13,className:"text-amber-400"}),c.jsx("span",{className:"text-[13px] text-gray-300",children:e.configured?`Active · Provider: ${e.provider??"unknown"}`:"Not configured — use the setup wizard below"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest px-1",children:"LLM Provider"}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:dl.map(C=>c.jsx("button",{onClick:()=>{r(C.id),p(null)},className:`px-3 py-2.5 rounded-xl border text-[13px] font-medium text-left transition-all ${n===C.id?"bg-orange-500/10 border-orange-500/30 text-orange-300":"bg-white/3 border-white/8 text-gray-400 hover:text-white hover:bg-white/6"}`,children:C.label},C.id))})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest px-1 flex items-center gap-1.5",children:[c.jsx(nC,{size:9})," API Key"]}),k?c.jsx("div",{className:"px-4 py-3 rounded-xl bg-green-500/5 border border-green-500/15 text-green-400 text-[13px]",children:"Ollama runs locally — no API key required."}):c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:o?"text":"password",value:s,onChange:C=>{i(C.target.value),p(null)},placeholder:b.placeholder,className:"w-full bg-white/4 border border-white/10 rounded-xl px-4 py-3 pr-10 text-[13px] text-white placeholder:text-gray-600 outline-none focus:border-orange-500/40 transition-colors"}),c.jsx("button",{onClick:()=>a(C=>!C),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:o?c.jsx(Y5,{size:13}):c.jsx(Q5,{size:13})})]}),c.jsx("p",{className:"text-[11px] text-gray-600 px-1",children:"Stored locally in .env — never sent to external servers."})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[!k&&c.jsxs("button",{onClick:g,disabled:l||!s&&!(e!=null&&e.configured),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl bg-white/5 border border-white/10 text-[13px] text-gray-300 font-medium hover:bg-white/8 hover:text-white transition-all disabled:opacity-40",children:[c.jsx(Py,{size:13,className:l?"animate-spin":""}),"Test Connection"]}),c.jsxs("button",{onClick:y,disabled:d||!s.trim()&&!k,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl bg-orange-600 hover:bg-orange-500 text-white text-[13px] font-semibold transition-all disabled:opacity-40 shadow-lg shadow-orange-500/20",children:[c.jsx(lC,{size:13,className:d?"animate-spin":""}),"Save Key"]})]}),h&&c.jsxs("div",{className:`flex items-start gap-2.5 px-4 py-3 rounded-xl border text-[13px] ${h.ok?"bg-green-500/8 border-green-500/20 text-green-300":"bg-red-500/8 border-red-500/20 text-red-300"}`,children:[h.ok?c.jsx(Io,{size:14,className:"shrink-0 mt-0.5"}):c.jsx(Rs,{size:14,className:"shrink-0 mt-0.5"}),h.msg]}),w&&c.jsx("div",{className:"px-4 py-3 rounded-xl bg-orange-500/8 border border-orange-500/20 text-orange-300 text-[13px]",children:w}),c.jsxs("div",{className:"pt-2 border-t border-white/5",children:[c.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-3",children:"Advanced"}),c.jsxs("a",{href:"/setup",className:"inline-flex items-center gap-2 px-4 py-2.5 rounded-xl bg-white/4 border border-white/8 text-[13px] text-gray-400 hover:text-white hover:bg-white/7 transition-all font-medium",children:[c.jsx(Fo,{size:13}),"Re-run Setup Wizard"]})]})]})})}function _E(){return new URLSearchParams(window.location.search).get("token")??""}function RE(){const[e,t]=x.useState("connecting"),[n,r]=x.useState([]),[s,i]=x.useState([]),[o,a]=x.useState("idle"),[l,u]=x.useState(null),[d,f]=x.useState(""),h=x.useRef(null),p=x.useRef(null),w=x.useRef([]),v=_E();x.useEffect(()=>{if(!v){t("denied");return}const k=As(`${window.location.origin}/mobile`,{query:{token:v},transports:["websocket","polling"]});return h.current=k,k.on("connect",()=>t("connected")),k.on("disconnect",()=>t("disconnected")),k.on("authError",()=>{t("denied"),k.disconnect()}),k.on("agentUpdate",C=>{const{type:E}=C;if(E==="planStart"&&r([]),E==="stepStart"){const T=C.step;r(O=>[...O,{id:`${Date.now()}-${Math.random()}`,description:(T==null?void 0:T.description)??"Working…",status:"running"}])}E==="stepFinish"&&r(T=>{const O=[...T],L=O.findLastIndex(G=>G.status==="running");return L>=0&&(O[L]={...O[L],status:C.status==="error"?"error":"done"}),O}),E==="skillRunStart"&&C.skillId&&u(C.skillId),E==="planFinish"&&u(null)}),()=>{k.disconnect()}},[v]);const S=x.useCallback(async()=>{try{const k=await fetch("/api/skills/list",{headers:{Authorization:`Bearer ${v}`}});if(k.ok){const C=await k.json();i(C.skills??[])}}catch{}},[v]);x.useEffect(()=>{S()},[S]);const m=async()=>{try{const k=await navigator.mediaDevices.getUserMedia({audio:!0}),C=new MediaRecorder(k,{mimeType:"audio/webm"});w.current=[],C.ondataavailable=E=>{E.data.size>0&&w.current.push(E.data)},C.onstop=()=>{k.getTracks().forEach(E=>E.stop()),y()},C.start(),p.current=C,a("recording")}catch{a("idle")}},g=()=>{var k;(k=p.current)==null||k.stop(),a("sending")},y=async()=>{const k=new Blob(w.current,{type:"audio/webm"}),C=new FormData;C.append("audio",k,"voice.webm");try{const E=await fetch("/api/voice/transcribe",{method:"POST",headers:{Authorization:`Bearer ${v}`},body:C});if(E.ok){const{text:T}=await E.json();f(T),await fetch("/api/goal",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`},body:JSON.stringify({goal:T})})}}catch{}a("idle")},b=async k=>{if(!l){u(k.id);try{await fetch("/api/skills/run",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`},body:JSON.stringify({id:k.id})})}catch{u(null)}}};return!v||e==="denied"?c.jsxs("div",{className:"min-h-screen bg-[#02040a] flex flex-col items-center justify-center gap-4 text-center px-8",children:[c.jsx(hp,{size:40,className:"text-red-400"}),c.jsx("p",{className:"text-white font-bold text-xl",children:"Access Denied"}),c.jsxs("p",{className:"text-gray-500 text-sm",children:["This link is invalid or has expired.",c.jsx("br",{}),"Generate a new QR code from your desktop."]})]}):c.jsxs("div",{className:"min-h-screen bg-[#02040a] text-white flex flex-col pb-8",children:[c.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-white/5",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("img",{src:"/logo.png",alt:"Must-b",className:"w-8 h-8 object-contain"}),c.jsx("span",{className:"font-bold text-base",children:"Must-b"}),c.jsx("span",{className:"text-[10px] text-orange-400 font-medium bg-orange-400/10 border border-orange-400/20 px-2 py-0.5 rounded-full",children:"Companion"})]}),c.jsx("div",{className:"flex items-center gap-1.5 text-xs",children:e==="connected"?c.jsxs(c.Fragment,{children:[c.jsx(mC,{size:13,className:"text-green-400"}),c.jsx("span",{className:"text-green-400",children:"Connected"})]}):e==="connecting"?c.jsxs(c.Fragment,{children:[c.jsx(dn,{size:13,className:"animate-spin text-orange-400"}),c.jsx("span",{className:"text-orange-400",children:"Connecting…"})]}):c.jsxs(c.Fragment,{children:[c.jsx(pC,{size:13,className:"text-gray-600"}),c.jsx("span",{className:"text-gray-500",children:"Offline"})]})})]}),c.jsxs("div",{className:"flex flex-col items-center justify-center py-10 px-6 border-b border-white/5",children:[c.jsx("p",{className:"text-[11px] text-gray-500 font-medium uppercase tracking-widest mb-6",children:"Voice Command"}),c.jsxs(ye.button,{onPointerDown:m,onPointerUp:g,onPointerLeave:o==="recording"?g:void 0,disabled:o==="sending"||e!=="connected",whileTap:{scale:.93},className:`relative w-28 h-28 rounded-full flex items-center justify-center transition-all select-none ${o==="recording"?"bg-red-500/20 border-2 border-red-500 shadow-[0_0_40px_rgba(239,68,68,0.4)]":o==="sending"?"bg-orange-500/10 border-2 border-orange-500/30":"bg-orange-500/10 border-2 border-orange-500/40 hover:bg-orange-500/20 active:scale-95"} disabled:opacity-40`,children:[o==="sending"?c.jsx(dn,{size:36,className:"text-orange-400 animate-spin"}):o==="recording"?c.jsx(fa,{size:36,className:"text-red-400"}):c.jsx(ha,{size:36,className:"text-orange-400"}),o==="recording"&&c.jsx(ye.span,{className:"absolute inset-0 rounded-full border-2 border-red-500",animate:{scale:[1,1.3,1],opacity:[.8,0,.8]},transition:{duration:1.4,repeat:1/0}})]}),c.jsx("p",{className:"text-[12px] text-gray-600 mt-4",children:o==="recording"?"Listening… release to send":"Hold to speak"}),d&&c.jsxs("p",{className:"text-[11px] text-orange-300 mt-3 text-center max-w-xs",children:['"',d,'"']})]}),c.jsxs("div",{className:"px-5 pt-6 pb-4 border-b border-white/5",children:[c.jsx("p",{className:"text-[10px] text-gray-500 font-bold uppercase tracking-widest mb-3",children:"Live Workflow"}),c.jsx(nr,{children:n.length===0?c.jsx("p",{className:"text-[12px] text-gray-700 text-center py-4",children:"No active workflow"}):c.jsx("div",{className:"space-y-2",children:n.slice(-6).map(k=>c.jsxs(ye.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:`flex items-start gap-2.5 p-3 rounded-xl border text-[12px] ${k.status==="running"?"bg-orange-500/8 border-orange-500/20":k.status==="error"?"bg-red-500/8 border-red-500/15":"bg-white/3 border-white/5"}`,children:[k.status==="running"&&c.jsx(dn,{size:12,className:"animate-spin text-orange-400 mt-0.5 shrink-0"}),k.status==="done"&&c.jsx(Io,{size:12,className:"text-green-400 mt-0.5 shrink-0"}),k.status==="error"&&c.jsx(hp,{size:12,className:"text-red-400 mt-0.5 shrink-0"}),c.jsx("span",{className:k.status==="running"?"text-orange-300":k.status==="error"?"text-red-300":"text-gray-400",children:k.description})]},k.id))})})]}),c.jsxs("div",{className:"px-5 pt-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("p",{className:"text-[10px] text-gray-500 font-bold uppercase tracking-widest",children:"My Skills"}),c.jsx("button",{onClick:S,className:"text-gray-600 hover:text-gray-400 transition-colors",children:c.jsx(Py,{size:12})})]}),s.length===0?c.jsx("p",{className:"text-[12px] text-gray-700 text-center py-6",children:"No skills saved yet"}):c.jsx("div",{className:"space-y-2.5",children:s.map(k=>{const C=l===k.id;return c.jsxs(ye.div,{layout:!0,className:`flex items-center gap-3 p-3.5 rounded-2xl border transition-all ${C?"bg-orange-500/10 border-orange-500/25":"bg-[#0c0f18] border-white/6"}`,children:[c.jsx(ri,{size:14,className:"text-orange-400 shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"font-semibold text-[13px] text-white truncate",children:k.name}),c.jsxs("p",{className:"text-[10px] text-gray-600 mt-0.5",children:[k.runCount,"× run"]})]}),c.jsxs("button",{onClick:()=>b(k),disabled:!!l,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-[11px] font-semibold transition-all ${C?"bg-orange-500/15 text-orange-400 border border-orange-500/25 cursor-not-allowed":"bg-orange-500/10 border border-orange-500/20 text-orange-400 hover:bg-orange-500/20 disabled:opacity-40 disabled:cursor-not-allowed"}`,children:[C?c.jsx(dn,{size:11,className:"animate-spin"}):c.jsx(jy,{size:11}),C?"Running":"Run"]})]},k.id)})})]})]})}function AE({onWake:e}){const[t,n]=x.useState(!1),[r,s]=x.useState("Must-b"),[i,o]=x.useState(!1),a=x.useRef(null),l=x.useRef(!1);x.useEffect(()=>{l.current=t},[t]),x.useEffect(()=>{const f=window.SpeechRecognition||window.webkitSpeechRecognition;o(!!f),Hn("/api/identity").then(h=>h.json()).then(h=>{h.name&&s(h.name)}).catch(()=>{})},[]);const u=`hey ${r}`.toLowerCase(),d=x.useCallback(()=>{const f=window.SpeechRecognition||window.webkitSpeechRecognition;if(!f||!l.current)return;const h=new f;h.continuous=!0,h.interimResults=!0,h.lang="en-US",h.maxAlternatives=1,h.onresult=p=>{for(let w=p.resultIndex;w<p.results.length;w++)p.results[w][0].transcript.toLowerCase().trim().includes(u)&&e()},h.onend=()=>{l.current&&setTimeout(d,300)},h.onerror=p=>{p.error!=="no-speech"&&console.warn("[WakeWord] SpeechRecognition error:",p.error),l.current&&setTimeout(d,1e3)},a.current=h;try{h.start()}catch{}},[u,e]);return x.useEffect(()=>{var f;return t?d():((f=a.current)==null||f.stop(),a.current=null),()=>{var h;(h=a.current)==null||h.stop()}},[t,d]),i?c.jsx("button",{type:"button",onClick:()=>n(f=>!f),title:t?`Listening for "Hey ${r}" — click to disable`:`Enable wake word "Hey ${r}"`,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200 ${t?"text-orange-400 bg-orange-500/10 border border-orange-500/20 shadow-[0_0_8px_rgba(234,88,12,0.2)]":"text-gray-600 hover:text-gray-400 hover:bg-white/5 border border-transparent"}`,children:t?c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"relative flex h-2 w-2",children:[c.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-orange-400 opacity-75"}),c.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-orange-500"})]}),c.jsx(G5,{size:13}),c.jsxs("span",{children:["Hey ",r]})]}):c.jsxs(c.Fragment,{children:[c.jsx(q5,{size:13}),c.jsx("span",{children:"Wake word off"})]})}):null}function H(e){window.dispatchEvent(new CustomEvent("mustb:invoke-skill",{detail:{skill:e}})),setTimeout(()=>{var t;(t=document.querySelector("textarea"))==null||t.focus()},80)}function Fi({id:e,label:t,icon:n,groups:r,isOpen:s,onToggle:i}){const o=x.useRef(null);return x.useEffect(()=>{if(!s)return;const a=l=>{o.current&&!o.current.contains(l.target)&&i("")};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[s,i]),c.jsxs("div",{ref:o,className:"relative",children:[c.jsxs("button",{onClick:()=>i(e),className:`flex items-center gap-1 px-3 py-1.5 rounded-full text-[12px] font-semibold transition-all select-none ${s?"bg-orange-500/15 text-orange-600 border border-orange-400/30":"text-black/65 hover:text-black hover:bg-black/6"}`,children:[c.jsx("span",{className:s?"text-orange-500":"text-black/50",children:n}),t,c.jsx($5,{size:11,className:`transition-transform duration-200 ${s?"rotate-180 text-orange-500":""}`})]}),c.jsx(nr,{children:s&&c.jsx(ye.div,{initial:{opacity:0,y:-10,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.96},transition:{duration:.16,ease:[.22,1,.36,1]},className:"absolute top-full mt-3 left-1/2 -translate-x-1/2 z-50 min-w-[280px] glass-panel rounded-2xl p-2 shadow-2xl",style:{boxShadow:"0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(249,115,22,0.15)"},children:r.map(a=>c.jsxs("div",{className:"mb-1 last:mb-0",children:[c.jsx("div",{className:"px-2.5 pt-2 pb-1 text-[9.5px] font-black uppercase tracking-[0.12em] text-orange-400/60",children:a.category}),a.items.map(l=>c.jsxs("button",{onClick:()=>{l.action(),i("")},className:"w-full flex items-center gap-2.5 px-2.5 py-2 rounded-xl hover:bg-orange-500/10 text-left transition-colors group",children:[c.jsx("span",{className:"w-6 h-6 flex items-center justify-center rounded-lg bg-orange-500/10 text-orange-400/70 group-hover:text-orange-400 group-hover:bg-orange-500/18 transition-all flex-shrink-0",children:l.icon}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"text-[12px] font-semibold text-white/85 leading-tight",children:l.label}),l.desc&&c.jsx("div",{className:"text-[10px] text-white/35 leading-tight mt-0.5 truncate",children:l.desc})]})]},l.label))]},a.category))})})]})}function fl({icon:e,label:t,onClick:n,active:r}){return c.jsxs("button",{onClick:n,title:t,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-semibold transition-all select-none ${r?"bg-black text-white shadow-sm":"text-black/65 hover:text-black hover:bg-black/6"}`,children:[e,c.jsx("span",{className:"hidden sm:inline",children:t})]})}function ME(){var f;const{t:e}=pa(),t=qr(),[n,r]=x.useState(""),s=t.pathname==="/app/settings",i=x.useCallback(h=>{r(p=>p===h?"":h)},[]),o=()=>{var h;(h=document.querySelector("textarea"))==null||h.focus()},a=[{category:"Web Tools",items:[{icon:c.jsx(_u,{size:13}),label:"Web Search",desc:"Real-time web search (multi-provider)",action:()=>H("web-search")},{icon:c.jsx(Pu,{size:13}),label:"Web Fetch",desc:"Fetch any URL as clean text",action:()=>H("web-fetch")},{icon:c.jsx(U5,{size:13}),label:"Browser Control",desc:"Full Playwright browser automation",action:()=>H("browser")}]},{category:"File & Media",items:[{icon:c.jsx(X5,{size:13}),label:"PDF Reader",desc:"Extract & analyse PDF documents",action:()=>H("pdf")},{icon:c.jsx(tC,{size:13}),label:"Image Analysis",desc:"Describe and analyse images",action:()=>H("image-analysis")},{icon:c.jsx(ri,{size:13}),label:"Image Generation",desc:"Create AI-generated images",action:()=>H("image-generate")},{icon:c.jsx(hC,{size:13}),label:"Text-to-Speech",desc:"Convert text to natural speech",action:()=>H("tts")}]},{category:"AI & Agents",items:[{icon:c.jsx(dp,{size:13}),label:"Spawn Sub-Agent",desc:"Launch a new autonomous agent session",action:()=>H("spawn-agent")},{icon:c.jsx(rC,{size:13}),label:"Agent Sessions",desc:"List and manage active sessions",action:()=>H("sessions")},{icon:c.jsx(V5,{size:13}),label:"Canvas",desc:"Visual drawing & whiteboard workspace",action:()=>H("canvas")},{icon:c.jsx(J5,{size:13}),label:"Git Operations",desc:"Commit, branch, diff, push/pull",action:()=>H("git")}]},{category:"System Tools",items:[{icon:c.jsx(gp,{size:13}),label:"Gateway",desc:"Inter-system & A2A communication",action:()=>H("gateway")},{icon:c.jsx(pp,{size:13}),label:"File Manager",desc:"Read, write & manage files",action:()=>H("file-manager")},{icon:c.jsx(al,{size:13}),label:"Cron Scheduler",desc:"Schedule recurring tasks",action:()=>H("cron")},{icon:c.jsx(mp,{size:13}),label:"Messages",desc:"Send & receive inter-agent messages",action:()=>H("messages")}]}],l=[{category:"Knowledge Base",items:[{icon:c.jsx(B5,{size:13}),label:"Browse Memories",desc:"View all stored knowledge entries",action:()=>H("memory-browse")},{icon:c.jsx(_u,{size:13}),label:"Search Memory",desc:"Semantic search across your KB",action:()=>H("memory-search")},{icon:c.jsx(aC,{size:13}),label:"Add Memory",desc:"Store new facts and knowledge",action:()=>H("memory-add")}]},{category:"Personal Organisation",items:[{icon:c.jsx(ju,{size:13}),label:"Contacts",desc:"Manage people and organisations",action:()=>H("contacts")},{icon:c.jsx(al,{size:13}),label:"Calendar",desc:"Schedule and manage events",action:()=>H("calendar")}]}],u=[{category:"Plugin Manager",items:[{icon:c.jsx(oC,{size:13}),label:"Marketplace",desc:"Discover plugins on ClawHub",action:()=>H("plugins-marketplace")},{icon:c.jsx(yp,{size:13}),label:"Installed",desc:"Manage and configure installed plugins",action:()=>H("plugins-installed")},{icon:c.jsx(sC,{size:13}),label:"MCP Servers",desc:"Model Context Protocol integrations",action:()=>H("plugins-mcp")}]},{category:"Developer",items:[{icon:c.jsx(H5,{size:13}),label:"Bundle MCP",desc:"Package & deploy MCP tool bundles",action:()=>H("bundle-mcp")},{icon:c.jsx(vp,{size:13}),label:"CLI Commands",desc:"Custom slash command registration",action:()=>H("cli-commands")}]}],d=[{category:"Automation",items:[{icon:c.jsx(jy,{size:13}),label:"Automations",desc:"Build and run automated workflows",action:()=>H("automations")},{icon:c.jsx(al,{size:13}),label:"Scheduled Tasks",desc:"Manage all cron schedules",action:()=>H("scheduled-tasks")},{icon:c.jsx(vp,{size:13}),label:"Commands",desc:"Custom slash commands",action:()=>H("commands")}]},{category:"Advanced",items:[{icon:c.jsx(gp,{size:13}),label:"Nodes Workflow",desc:"Visual node-graph pipelines",action:()=>H("nodes")},{icon:c.jsx(dp,{size:13}),label:"Multi-Agent",desc:"Orchestrate agent collaboration",action:()=>H("multi-agent")}]}];return c.jsxs("div",{className:"relative min-h-screen overflow-x-hidden font-sans",children:[c.jsx("header",{className:"fixed top-4 left-0 right-0 z-30 px-4 flex items-center justify-center pointer-events-none",children:c.jsxs("nav",{className:"pointer-events-auto nav-pill flex items-center gap-0.5 px-2 py-1.5",style:{maxWidth:"calc(100vw - 32px)"},children:[c.jsxs(lu,{to:"/app",className:"flex items-center gap-1.5 px-3 py-1 mr-0.5 select-none group",children:[c.jsx("span",{className:"text-[18px] font-black tracking-tighter leading-none",style:{color:"#1a0c06"},children:"Must‑b"}),c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-orange-500 animate-orange-pulse",title:"Online"})]}),c.jsx("div",{className:"w-px h-4 bg-black/10 mx-0.5"}),c.jsx(fl,{icon:c.jsx(mp,{size:13}),label:"Chat",onClick:()=>H("chat-focus"),active:!s}),c.jsx(fl,{icon:c.jsx(pp,{size:13}),label:"Files",onClick:()=>H("files")}),c.jsx(fl,{icon:c.jsx(Pu,{size:13}),label:"Browser",onClick:()=>H("browser")}),c.jsx("div",{className:"w-px h-4 bg-black/10 mx-0.5"}),c.jsx(Fi,{id:"skills",label:"Skills",icon:c.jsx(ri,{size:12}),groups:a,isOpen:n==="skills",onToggle:i}),c.jsx(Fi,{id:"memory",label:"Memory",icon:c.jsx(F5,{size:12}),groups:l,isOpen:n==="memory",onToggle:i}),c.jsx(Fi,{id:"plugins",label:"Plugins",icon:c.jsx(yp,{size:12}),groups:u,isOpen:n==="plugins",onToggle:i}),c.jsx(Fi,{id:"workflows",label:"Workflows",icon:c.jsx(gC,{size:12}),groups:d,isOpen:n==="workflows",onToggle:i}),c.jsx("div",{className:"w-px h-4 bg-black/10 mx-0.5"}),c.jsxs(lu,{to:"/app/settings",className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-semibold transition-all select-none ${s?"bg-black text-white shadow-sm":"text-black/65 hover:text-black hover:bg-black/6"}`,children:[c.jsx(Fo,{size:12}),c.jsx("span",{className:"hidden md:inline",children:"Settings"})]}),c.jsx("div",{className:"w-px h-4 bg-black/10 mx-0.5"}),c.jsx(AE,{onWake:o}),c.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 ml-0.5 rounded-full select-none",style:{background:"rgba(26, 12, 6, 0.08)",border:"1px solid rgba(0,0,0,0.08)"},children:[c.jsx(ju,{size:12,style:{color:"#ea580c"}}),c.jsx("span",{className:"text-[11px] font-semibold hidden sm:inline",style:{color:"rgba(0,0,0,0.55)"},children:((f=e.layout)==null?void 0:f.system)??"System"})]})]})}),c.jsx("main",{className:"relative min-h-screen pt-[72px]",children:c.jsx(bw,{})})]})}const LE=[{decision:"duplicate",label:"Create New Agent",sublabel:"Keep both — cloud data is copied to a separate folder",icon:eC,accent:"border-blue-500/30 bg-blue-500/8 hover:border-blue-500/50 text-blue-400"},{decision:"restore",label:"Use Cloud (Overwrite)",sublabel:"Cloud wins — local memory is replaced with cloud version",icon:W5,accent:"border-orange-500/30 bg-orange-500/8 hover:border-orange-500/50 text-orange-400"},{decision:"upload",label:"Keep Mine",sublabel:"Local wins — cloud memory is overwritten with local data",icon:fC,accent:"border-green-500/30 bg-green-500/8 hover:border-green-500/50 text-green-400"}];function DE(){const[e,t]=x.useState(null),[n,r]=x.useState(!1),[s,i]=x.useState(!1);x.useEffect(()=>{const l=ya(),u=d=>{d.type==="CONFLICT_DETECTED"&&(t({localAgentName:d.localAgentName??null,cloudAgentName:d.cloudAgentName??null,localMtime:d.localMtime??null,cloudTimestamp:d.cloudTimestamp??null}),i(!1)),d.type==="syncResolveFinish"&&(i(!0),setTimeout(()=>{t(null),i(!1)},1800))};return l.on("agentUpdate",u),()=>{l.off("agentUpdate",u)}},[]);const o=async l=>{if(!n){r(!0);try{await fetch("/api/setup/sync-resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:l})})}catch{}r(!1)}},a=l=>{if(!l)return"—";try{return new Date(l).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"})}catch{return l}};return c.jsx(nr,{children:e&&c.jsx(ye.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/70 backdrop-blur-sm px-4",children:c.jsxs(ye.div,{initial:{opacity:0,y:24,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.95},transition:{duration:.25},className:"w-full max-w-md bg-[#0c0f18] border border-white/10 rounded-2xl shadow-2xl overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-3 px-6 py-5 border-b border-white/8 bg-amber-500/5",children:[c.jsx("div",{className:"w-9 h-9 rounded-full bg-amber-500/15 flex items-center justify-center flex-shrink-0",children:c.jsx(Rs,{size:18,className:"text-amber-400"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-white font-bold text-base",children:"Memory Conflict Detected"}),c.jsx("p",{className:"text-gray-500 text-xs mt-0.5",children:"Two agent identities found — action required"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 px-6 pt-5 pb-2",children:[c.jsxs("div",{className:"rounded-xl border border-white/8 bg-white/3 px-4 py-3",children:[c.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-1",children:"Local Agent"}),c.jsx("p",{className:"text-white font-bold text-sm",children:e.localAgentName??"—"}),c.jsx("p",{className:"text-gray-600 text-[10px] mt-1",children:a(e.localMtime)})]}),c.jsxs("div",{className:"rounded-xl border border-orange-500/20 bg-orange-500/5 px-4 py-3",children:[c.jsx("p",{className:"text-[10px] font-bold text-orange-400/60 uppercase tracking-widest mb-1",children:"Cloud Agent"}),c.jsx("p",{className:"text-orange-300 font-bold text-sm",children:e.cloudAgentName??"—"}),c.jsx("p",{className:"text-orange-400/40 text-[10px] mt-1",children:a(e.cloudTimestamp)})]})]}),c.jsx("div",{className:"px-6 py-4 space-y-2",children:s?c.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-green-400 text-sm font-semibold",children:[c.jsx("span",{className:"w-4 h-4 rounded-full border-2 border-green-400 flex items-center justify-center text-[10px]",children:"✓"}),"Conflict resolved"]}):LE.map(l=>{const u=l.icon;return c.jsxs("button",{onClick:()=>o(l.decision),disabled:n,className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl border transition-all text-left disabled:opacity-50 disabled:cursor-not-allowed ${l.accent}`,children:[n?c.jsx(dn,{size:16,className:"animate-spin flex-shrink-0"}):c.jsx(u,{size:16,className:"flex-shrink-0"}),c.jsxs("div",{children:[c.jsx("p",{className:"font-semibold text-sm text-white",children:l.label}),c.jsx("p",{className:"text-[11px] text-gray-500 mt-0.5",children:l.sublabel})]})]},l.decision)})}),c.jsx("div",{className:"px-6 pb-5 pt-1",children:c.jsx("p",{className:"text-[10px] text-gray-700 text-center",children:'This action cannot be undone · If unsure, choose "Create New Agent" first'})})]})})})}class OE extends x.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error("[ErrorBoundary]",t,n.componentStack)}render(){return this.state.error?c.jsxs("div",{className:"min-h-screen bg-[#02040a] flex flex-col items-center justify-center gap-4 text-center px-6",children:[c.jsx("span",{className:"text-3xl",children:"⚠️"}),c.jsx("p",{className:"text-orange-400 font-bold text-sm",children:"Something went wrong"}),c.jsx("p",{className:"text-gray-600 text-xs font-mono max-w-sm break-all",children:this.state.error.message}),c.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-2 px-4 py-2 rounded-xl bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-bold hover:bg-orange-500/20 transition-all",children:"Retry"})]}):this.props.children}}function zE({children:e}){const t=ui(),[n,r]=x.useState(!1);return x.useEffect(()=>{let s=!1;return fetch("/api/setup/status").then(i=>i.ok?i.json():{configured:!0}).then(i=>{s||(i.configured?r(!0):t("/setup",{replace:!0}))}).catch(()=>{s||r(!0)}),()=>{s=!0}},[t]),n?c.jsx(c.Fragment,{children:e}):null}function VE(){return c.jsx(OE,{children:c.jsx(xC,{children:c.jsxs(Aw,{children:[c.jsx(l2,{position:"top-right",theme:"dark",closeButton:!0,richColors:!0}),c.jsx(DE,{}),c.jsxs(Ew,{children:[c.jsx(jt,{path:"/",element:c.jsx(wp,{})}),c.jsx(jt,{path:"/welcome",element:c.jsx(wp,{})}),c.jsx(jt,{path:"/setup",element:c.jsx(EC,{})}),c.jsxs(jt,{path:"/app",element:c.jsx(zE,{children:c.jsx(ME,{})}),children:[c.jsx(jt,{index:!0,element:c.jsx(jE,{})}),c.jsx(jt,{path:"settings",element:c.jsx(PE,{})}),c.jsx(jt,{path:"*",element:c.jsx(Wf,{to:"/app",replace:!0})})]}),c.jsx(jt,{path:"/mobile",element:c.jsx(RE,{})}),c.jsx(jt,{path:"*",element:c.jsx(Wf,{to:"/",replace:!0})})]})]})})})}U0(document.getElementById("root")).render(c.jsx(x.StrictMode,{children:c.jsx(VE,{})}));
|